@ws-ui/shared 0.3.12 → 1.1.1
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/README.md +4 -24
- package/dist/components/AppLoader.d.ts +5 -5
- package/dist/components/ControlledSwitch.d.ts +2 -2
- package/dist/components/Dialog.d.ts +2 -1
- package/dist/components/Incase/index.d.ts +2 -1
- package/dist/components/Modal/Button.d.ts +1 -0
- package/dist/components/Modal/Icon.d.ts +1 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Portal.d.ts +1 -0
- package/dist/components/Tips/components/CarouselTip.d.ts +1 -0
- package/dist/components/Tips/components/TextTip.d.ts +2 -1
- package/dist/components/Tips/components/VideoTip.d.ts +1 -0
- package/dist/components/Tips/components/index.d.ts +2 -1
- package/dist/components/Tips/index.d.ts +1 -0
- package/dist/components/Tips/provider.d.ts +1 -0
- package/dist/components/Toast.d.ts +3 -2
- package/dist/components/Tooltip.d.ts +2 -1
- package/dist/components/Tree/components/IndentLines.d.ts +2 -0
- package/dist/components/Tree/components/Switcher.d.ts +1 -0
- package/dist/components/Tree/components/Tree.d.ts +1 -0
- package/dist/components/Tree/components/TreeNode.d.ts +1 -0
- package/dist/components/Tree/index.d.ts +5 -4
- package/dist/components/Tree/interfaces.d.ts +5 -0
- package/dist/components/Tree/styled.d.ts +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/datasource-themes.d.ts +1 -0
- package/dist/declarations/datasources/datasource.d.ts +13 -6
- package/dist/declarations/webform/webform.d.ts +1 -0
- package/dist/hooks/use-didmounteffect.d.ts +1 -0
- package/dist/hooks/use-forwarded-ref.d.ts +2 -1
- package/dist/hooks/use-hotkeys.d.ts +1 -0
- package/dist/hooks/use-outside-click.d.ts +1 -1
- package/dist/hooks/use-state-ref.d.ts +1 -1
- package/dist/hooks/useDoubleClick.d.ts +2 -1
- package/dist/hooks/useIdentity.d.ts +2 -1
- package/dist/hooks/useStateObject.d.ts +1 -0
- package/dist/index.cjs.js +75 -125
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7063 -8456
- package/dist/index.es.js.map +1 -1
- package/dist/package.json +70 -0
- package/dist/services/api.d.ts +1 -0
- package/dist/services/explorer.d.ts +2 -1
- package/dist/services/tracking.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tailwind.preset.js +1 -2
- package/dist/types/api.d.ts +4 -6
- package/dist/types/debugger.d.ts +18 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/modal.d.ts +4 -4
- package/dist/types/shared.d.ts +3 -13
- package/dist/types/webform-editor.d.ts +1 -0
- package/dist/utils/code.d.ts +1 -0
- package/dist/utils/common.d.ts +6 -6
- package/dist/utils/datasources.d.ts +1 -1
- package/dist/utils/explorer.d.ts +1 -0
- package/dist/utils/subjects.d.ts +1 -0
- package/package.json +6 -12
- package/dist/utils/parser.spec.d.ts +0 -1
- package/dist/utils/validation.test.d.ts +0 -1
- package/dist/utils/waiter/waiter.test.d.ts +0 -1
- package/dist/vite.svg +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,92 +1,38 @@
|
|
|
1
|
-
"use strict";var U_=Object.defineProperty;var H_=(e,t,r)=>t in e?U_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wt=(e,t,r)=>(H_(e,typeof t!="symbol"?t+"":t,r),r),ml=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var X=(e,t,r)=>(ml(e,t,"read from private field"),r?r.call(e):t.get(e)),Wt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},gt=(e,t,r,i)=>(ml(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var $n=(e,t,r)=>(ml(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react"),Qo=require("react-dom"),ac=require("@emotion/react");function Fv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const F=Fv(k),B_=Fv(Qo);var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var sc={exports:{}},Ki={};/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/var gl,Vp;function Dc(){if(Vp)return gl;Vp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gl=a()?Object.assign:function(s,l){for(var c,d=i(s),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var w in c)t.call(c,w)&&(d[w]=c[w]);if(e){p=e(c);for(var S=0;S<p.length;S++)r.call(c,p[S])&&(d[p[S]]=c[p[S]])}}return d},gl}/** @license React v17.0.2
|
|
6
|
-
* react-jsx-runtime.production.min.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var Xp;function q_(){if(Xp)return Ki;Xp=1,Dc();var e=k,t=60103;if(Ki.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),Ki.Fragment=r("react.fragment")}var i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,p){var h,w={},S=null,v=null;p!==void 0&&(S=""+p),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(v=d.ref);for(h in d)a.call(d,h)&&!s.hasOwnProperty(h)&&(w[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)w[h]===void 0&&(w[h]=d[h]);return{$$typeof:t,type:c,key:S,ref:v,props:w,_owner:i.current}}return Ki.jsx=l,Ki.jsxs=l,Ki}var yl={};/** @license React v17.0.2
|
|
13
|
-
* react-jsx-runtime.development.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var Jp;function Z_(){return Jp||(Jp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=k,r=Dc(),i=60103,a=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,d=60110,p=60112,h=60113,w=60120,S=60115,v=60116,_=60121,g=60122,x=60117,C=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;i=T("react.element"),a=T("react.portal"),e.Fragment=T("react.fragment"),s=T("react.strict_mode"),l=T("react.profiler"),c=T("react.provider"),d=T("react.context"),p=T("react.forward_ref"),h=T("react.suspense"),w=T("react.suspense_list"),S=T("react.memo"),v=T("react.lazy"),_=T("react.block"),g=T("react.server.block"),x=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),C=T("react.debug_trace_mode"),T("react.offscreen"),P=T("react.legacy_hidden")}var $=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function D(m){if(m===null||typeof m!="object")return null;var I=$&&m[$]||m[A];return typeof I=="function"?I:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(m){{for(var I=arguments.length,W=new Array(I>1?I-1:0),K=1;K<I;K++)W[K-1]=arguments[K];V("error",m,W)}}function V(m,I,W){{var K=H.ReactDebugCurrentFrame,ce=K.getStackAddendum();ce!==""&&(I+="%s",W=W.concat([ce]));var ae=W.map(function(re){return""+re});ae.unshift("Warning: "+I),Function.prototype.apply.call(console[m],console,ae)}}var ee=!1;function ye(m){return!!(typeof m=="string"||typeof m=="function"||m===e.Fragment||m===l||m===C||m===s||m===h||m===w||m===P||ee||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===S||m.$$typeof===c||m.$$typeof===d||m.$$typeof===p||m.$$typeof===x||m.$$typeof===_||m[0]===g))}function Re(m,I,W){var K=I.displayName||I.name||"";return m.displayName||(K!==""?W+"("+K+")":W)}function Ee(m){return m.displayName||"Context"}function se(m){if(m==null)return null;if(typeof m.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case w:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var I=m;return Ee(I)+".Consumer";case c:var W=m;return Ee(W._context)+".Provider";case p:return Re(m,m.render,"ForwardRef");case S:return se(m.type);case _:return se(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return se(ae(ce))}catch{return null}}}return null}var Fe=0,be,Oe,Be,pt,Z,Y,pe;function oe(){}oe.__reactDisabledLog=!0;function fe(){{if(Fe===0){be=console.log,Oe=console.info,Be=console.warn,pt=console.error,Z=console.group,Y=console.groupCollapsed,pe=console.groupEnd;var m={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Fe++}}function de(){{if(Fe--,Fe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},m,{value:be}),info:r({},m,{value:Oe}),warn:r({},m,{value:Be}),error:r({},m,{value:pt}),group:r({},m,{value:Z}),groupCollapsed:r({},m,{value:Y}),groupEnd:r({},m,{value:pe})})}Fe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=H.ReactCurrentDispatcher,he;function le(m,I,W){{if(he===void 0)try{throw Error()}catch(ce){var K=ce.stack.trim().match(/\n( *(at )?)/);he=K&&K[1]||""}return`
|
|
20
|
-
`+he+m}}var we=!1,Se;{var Ve=typeof WeakMap=="function"?WeakMap:Map;Se=new Ve}function J(m,I){if(!m||we)return"";{var W=Se.get(m);if(W!==void 0)return W}var K;we=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,fe();try{if(I){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(ht){K=ht}Reflect.construct(m,[],re)}else{try{re.call()}catch(ht){K=ht}m.call(re.prototype)}}else{try{throw Error()}catch(ht){K=ht}m()}}catch(ht){if(ht&&K&&typeof ht.stack=="string"){for(var te=ht.stack.split(`
|
|
21
|
-
`),je=K.stack.split(`
|
|
22
|
-
`),_e=te.length-1,Ae=je.length-1;_e>=1&&Ae>=0&&te[_e]!==je[Ae];)Ae--;for(;_e>=1&&Ae>=0;_e--,Ae--)if(te[_e]!==je[Ae]){if(_e!==1||Ae!==1)do if(_e--,Ae--,Ae<0||te[_e]!==je[Ae]){var lt=`
|
|
23
|
-
`+te[_e].replace(" at new "," at ");return typeof m=="function"&&Se.set(m,lt),lt}while(_e>=1&&Ae>=0);break}}}finally{we=!1,ue.current=ae,de(),Error.prepareStackTrace=ce}var Yt=m?m.displayName||m.name:"",ni=Yt?le(Yt):"";return typeof m=="function"&&Se.set(m,ni),ni}function st(m,I,W){return J(m,!1)}function ut(m){var I=m.prototype;return!!(I&&I.isReactComponent)}function yt(m,I,W){if(m==null)return"";if(typeof m=="function")return J(m,ut(m));if(typeof m=="string")return le(m);switch(m){case h:return le("Suspense");case w:return le("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case p:return st(m.render);case S:return yt(m.type,I,W);case _:return st(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return yt(ae(ce),I,W)}catch{}}}return""}var Gr={},At=H.ReactDebugCurrentFrame;function er(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);At.setExtraStackFrame(W)}else At.setExtraStackFrame(null)}function Kn(m,I,W,K,ce){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var re in m)if(ae(m,re)){var te=void 0;try{if(typeof m[re]!="function"){var je=Error((K||"React class")+": "+W+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}te=m[re](I,re,K,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){te=_e}te&&!(te instanceof Error)&&(er(ce),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).",K||"React class",W,re,typeof te),er(null)),te instanceof Error&&!(te.message in Gr)&&(Gr[te.message]=!0,er(ce),j("Failed %s type: %s",W,te.message),er(null))}}}var et=H.ReactCurrentOwner,rt=Object.prototype.hasOwnProperty,yr={key:!0,ref:!0,__self:!0,__source:!0},sr,Lr,kt;kt={};function xn(m){if(rt.call(m,"ref")){var I=Object.getOwnPropertyDescriptor(m,"ref").get;if(I&&I.isReactWarning)return!1}return m.ref!==void 0}function wr(m){if(rt.call(m,"key")){var I=Object.getOwnPropertyDescriptor(m,"key").get;if(I&&I.isReactWarning)return!1}return m.key!==void 0}function ur(m,I){if(typeof m.ref=="string"&&et.current&&I&&et.current.stateNode!==I){var W=se(et.current.type);kt[W]||(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(et.current.type),m.ref),kt[W]=!0)}}function Yn(m,I){{var W=function(){sr||(sr=!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)",I))};W.isReactWarning=!0,Object.defineProperty(m,"key",{get:W,configurable:!0})}}function Vn(m,I){{var W=function(){Lr||(Lr=!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)",I))};W.isReactWarning=!0,Object.defineProperty(m,"ref",{get:W,configurable:!0})}}var Xn=function(m,I,W,K,ce,ae,re){var te={$$typeof:i,type:m,key:I,ref:W,props:re,_owner:ae};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Jn(m,I,W,K,ce){{var ae,re={},te=null,je=null;W!==void 0&&(te=""+W),wr(I)&&(te=""+I.key),xn(I)&&(je=I.ref,ur(I,ce));for(ae in I)rt.call(I,ae)&&!yr.hasOwnProperty(ae)&&(re[ae]=I[ae]);if(m&&m.defaultProps){var _e=m.defaultProps;for(ae in _e)re[ae]===void 0&&(re[ae]=_e[ae])}if(te||je){var Ae=typeof m=="function"?m.displayName||m.name||"Unknown":m;te&&Yn(re,Ae),je&&Vn(re,Ae)}return Xn(m,te,je,ce,K,et.current,re)}}var $r=H.ReactCurrentOwner,un=H.ReactDebugCurrentFrame;function It(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);un.setExtraStackFrame(W)}else un.setExtraStackFrame(null)}var Dr;Dr=!1;function kr(m){return typeof m=="object"&&m!==null&&m.$$typeof===i}function Qn(){{if($r.current){var m=se($r.current.type);if(m)return`
|
|
24
|
-
|
|
25
|
-
Check the render method of \``+m+"`."}return""}}function co(m){{if(m!==void 0){var I=m.fileName.replace(/^.*[\\\/]/,""),W=m.lineNumber;return`
|
|
26
|
-
|
|
27
|
-
Check your code at `+I+":"+W+"."}return""}}var ei={};function Mi(m){{var I=Qn();if(!I){var W=typeof m=="string"?m:m.displayName||m.name;W&&(I=`
|
|
28
|
-
|
|
29
|
-
Check the top-level render call using <`+W+">.")}return I}}function On(m,I){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var W=Mi(I);if(ei[W])return;ei[W]=!0;var K="";m&&m._owner&&m._owner!==$r.current&&(K=" It was passed a child from "+se(m._owner.type)+"."),It(m),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,K),It(null)}}function ti(m,I){{if(typeof m!="object")return;if(Array.isArray(m))for(var W=0;W<m.length;W++){var K=m[W];kr(K)&&On(K,I)}else if(kr(m))m._store&&(m._store.validated=!0);else if(m){var ce=D(m);if(typeof ce=="function"&&ce!==m.entries)for(var ae=ce.call(m),re;!(re=ae.next()).done;)kr(re.value)&&On(re.value,I)}}}function fo(m){{var I=m.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===p||I.$$typeof===S))W=I.propTypes;else return;if(W){var K=se(I);Kn(W,m.props,"prop",K,m)}else if(I.PropTypes!==void 0&&!Dr){Dr=!0;var ce=se(I);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function po(m){{for(var I=Object.keys(m.props),W=0;W<I.length;W++){var K=I[W];if(K!=="children"&&K!=="key"){It(m),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),It(null);break}}m.ref!==null&&(It(m),j("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}function ri(m,I,W,K,ce,ae){{var re=ye(m);if(!re){var te="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(te+=" 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=co(ce);je?te+=je:te+=Qn();var _e;m===null?_e="null":Array.isArray(m)?_e="array":m!==void 0&&m.$$typeof===i?(_e="<"+(se(m.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof m,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,te)}var Ae=Jn(m,I,W,ce,ae);if(Ae==null)return Ae;if(re){var lt=I.children;if(lt!==void 0)if(K)if(Array.isArray(lt)){for(var Yt=0;Yt<lt.length;Yt++)ti(lt[Yt],m);Object.freeze&&Object.freeze(lt)}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 ti(lt,m)}return m===e.Fragment?po(Ae):fo(Ae),Ae}}function Fi(m,I,W){return ri(m,I,W,!0)}function ho(m,I,W){return ri(m,I,W,!1)}var vo=ho,mo=Fi;e.jsx=vo,e.jsxs=mo}()}(yl)),yl}process.env.NODE_ENV==="production"?sc.exports=q_():sc.exports=Z_();var N=sc.exports;const Lv=({children:e})=>Qo.createPortal(e,document.querySelector("body"));var Qp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},eh=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,or="top",Mr="bottom",Fr="right",ar="left",kc="auto",ea=[or,Mr,Fr,ar],io="start",Ho="end",G_="clippingParents",$v="viewport",Mo="popper",K_="reference",th=ea.reduce(function(e,t){return e.concat([t+"-"+io,t+"-"+Ho])},[]),Dv=[].concat(ea,[kc]).reduce(function(e,t){return e.concat([t,t+"-"+io,t+"-"+Ho])},[]),Y_="beforeRead",V_="read",X_="afterRead",J_="beforeMain",Q_="main",ex="afterMain",tx="beforeWrite",rx="write",nx="afterWrite",ix=[Y_,V_,X_,J_,Q_,ex,tx,rx,nx];function nn(e){return e?(e.nodeName||"").toLowerCase():null}function gr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xi(e){var t=gr(e).Element;return e instanceof t||e instanceof Element}function Ir(e){var t=gr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Nc(e){if(typeof ShadowRoot>"u")return!1;var t=gr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ox(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!Ir(s)||!nn(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function ax(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(d,p){return d[p]="",d},{});!Ir(a)||!nn(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const sx={name:"applyStyles",enabled:!0,phase:"write",fn:ox,effect:ax,requires:["computeStyles"]};function rn(e){return e.split("-")[0]}var Si=Math.max,Ts=Math.min,oo=Math.round;function uc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function kv(){return!/^((?!chrome|android).)*safari/i.test(uc())}function ao(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&Ir(e)&&(a=e.offsetWidth>0&&oo(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&oo(i.height)/e.offsetHeight||1);var l=xi(e)?gr(e):window,c=l.visualViewport,d=!kv()&&r,p=(i.left+(d&&c?c.offsetLeft:0))/a,h=(i.top+(d&&c?c.offsetTop:0))/s,w=i.width/a,S=i.height/s;return{width:w,height:S,top:h,right:p+w,bottom:h+S,left:p,x:p,y:h}}function jc(e){var t=ao(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Nv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Nc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _n(e){return gr(e).getComputedStyle(e)}function ux(e){return["table","td","th"].indexOf(nn(e))>=0}function qn(e){return((xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hs(e){return nn(e)==="html"?e:e.assignedSlot||e.parentNode||(Nc(e)?e.host:null)||qn(e)}function rh(e){return!Ir(e)||_n(e).position==="fixed"?null:e.offsetParent}function lx(e){var t=/firefox/i.test(uc()),r=/Trident/i.test(uc());if(r&&Ir(e)){var i=_n(e);if(i.position==="fixed")return null}var a=Hs(e);for(Nc(a)&&(a=a.host);Ir(a)&&["html","body"].indexOf(nn(a))<0;){var s=_n(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function ta(e){for(var t=gr(e),r=rh(e);r&&ux(r)&&_n(r).position==="static";)r=rh(r);return r&&(nn(r)==="html"||nn(r)==="body"&&_n(r).position==="static")?t:r||lx(e)||t}function Wc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function No(e,t,r){return Si(e,Ts(t,r))}function cx(e,t,r){var i=No(e,t,r);return i>r?r:i}function jv(){return{top:0,right:0,bottom:0,left:0}}function Wv(e){return Object.assign({},jv(),e)}function Uv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var fx=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Wv(typeof t!="number"?t:Uv(t,ea))};function dx(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=rn(r.placement),d=Wc(c),p=[ar,Fr].indexOf(c)>=0,h=p?"height":"width";if(!(!s||!l)){var w=fx(a.padding,r),S=jc(s),v=d==="y"?or:ar,_=d==="y"?Mr:Fr,g=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],x=l[d]-r.rects.reference[d],C=ta(s),P=C?d==="y"?C.clientHeight||0:C.clientWidth||0:0,T=g/2-x/2,$=w[v],A=P-S[h]-w[_],D=P/2-S[h]/2+T,H=No($,D,A),j=d;r.modifiersData[i]=(t={},t[j]=H,t.centerOffset=H-D,t)}}function px(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Nv(t.elements.popper,a)&&(t.elements.arrow=a))}const hx={name:"arrow",enabled:!0,phase:"main",fn:dx,effect:px,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function so(e){return e.split("-")[1]}var vx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mx(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:oo(r*a)/a||0,y:oo(i*a)/a||0}}function nh(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,w=e.isFixed,S=l.x,v=S===void 0?0:S,_=l.y,g=_===void 0?0:_,x=typeof h=="function"?h({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var C=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),T=ar,$=or,A=window;if(p){var D=ta(r),H="clientHeight",j="clientWidth";if(D===gr(r)&&(D=qn(r),_n(D).position!=="static"&&c==="absolute"&&(H="scrollHeight",j="scrollWidth")),D=D,a===or||(a===ar||a===Fr)&&s===Ho){$=Mr;var V=w&&D===A&&A.visualViewport?A.visualViewport.height:D[H];g-=V-i.height,g*=d?1:-1}if(a===ar||(a===or||a===Mr)&&s===Ho){T=Fr;var ee=w&&D===A&&A.visualViewport?A.visualViewport.width:D[j];v-=ee-i.width,v*=d?1:-1}}var ye=Object.assign({position:c},p&&vx),Re=h===!0?mx({x:v,y:g},gr(r)):{x:v,y:g};if(v=Re.x,g=Re.y,d){var Ee;return Object.assign({},ye,(Ee={},Ee[$]=P?"0":"",Ee[T]=C?"0":"",Ee.transform=(A.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",Ee))}return Object.assign({},ye,(t={},t[$]=P?g+"px":"",t[T]=C?v+"px":"",t.transform="",t))}function gx(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,d=c===void 0?!0:c,p={placement:rn(t.placement),variation:so(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gx,data:{}};var es={passive:!0};function wx(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,d=gr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,es)}),c&&d.addEventListener("resize",r.update,es),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,es)}),c&&d.removeEventListener("resize",r.update,es)}}const bx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wx,data:{}};var Sx={left:"right",right:"left",bottom:"top",top:"bottom"};function ws(e){return e.replace(/left|right|bottom|top/g,function(t){return Sx[t]})}var Ex={start:"end",end:"start"};function ih(e){return e.replace(/start|end/g,function(t){return Ex[t]})}function Uc(e){var t=gr(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Hc(e){return ao(qn(e)).left+Uc(e).scrollLeft}function _x(e,t){var r=gr(e),i=qn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,d=0;if(a){s=a.width,l=a.height;var p=kv();(p||!p&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:c+Hc(e),y:d}}function xx(e){var t,r=qn(e),i=Uc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Si(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Si(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+Hc(e),d=-i.scrollTop;return _n(a||r).direction==="rtl"&&(c+=Si(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function Bc(e){var t=_n(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Hv(e){return["html","body","#document"].indexOf(nn(e))>=0?e.ownerDocument.body:Ir(e)&&Bc(e)?e:Hv(Hs(e))}function jo(e,t){var r;t===void 0&&(t=[]);var i=Hv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=gr(i),l=a?[s].concat(s.visualViewport||[],Bc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(jo(Hs(l)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ox(e,t){var r=ao(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function oh(e,t,r){return t===$v?lc(_x(e,r)):xi(t)?Ox(t,r):lc(xx(qn(e)))}function Ax(e){var t=jo(Hs(e)),r=["absolute","fixed"].indexOf(_n(e).position)>=0,i=r&&Ir(e)?ta(e):e;return xi(i)?t.filter(function(a){return xi(a)&&Nv(a,i)&&nn(a)!=="body"}):[]}function Tx(e,t,r,i){var a=t==="clippingParents"?Ax(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(d,p){var h=oh(e,p,i);return d.top=Si(h.top,d.top),d.right=Ts(h.right,d.right),d.bottom=Ts(h.bottom,d.bottom),d.left=Si(h.left,d.left),d},oh(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Bv(e){var t=e.reference,r=e.element,i=e.placement,a=i?rn(i):null,s=i?so(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,d;switch(a){case or:d={x:l,y:t.y-r.height};break;case Mr:d={x:l,y:t.y+t.height};break;case Fr:d={x:t.x+t.width,y:c};break;case ar:d={x:t.x-r.width,y:c};break;default:d={x:t.x,y:t.y}}var p=a?Wc(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case io:d[p]=d[p]-(t[h]/2-r[h]/2);break;case Ho:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function Bo(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,d=c===void 0?G_:c,p=r.rootBoundary,h=p===void 0?$v:p,w=r.elementContext,S=w===void 0?Mo:w,v=r.altBoundary,_=v===void 0?!1:v,g=r.padding,x=g===void 0?0:g,C=Wv(typeof x!="number"?x:Uv(x,ea)),P=S===Mo?K_:Mo,T=e.rects.popper,$=e.elements[_?P:S],A=Tx(xi($)?$:$.contextElement||qn(e.elements.popper),d,h,l),D=ao(e.elements.reference),H=Bv({reference:D,element:T,strategy:"absolute",placement:a}),j=lc(Object.assign({},T,H)),V=S===Mo?j:D,ee={top:A.top-V.top+C.top,bottom:V.bottom-A.bottom+C.bottom,left:A.left-V.left+C.left,right:V.right-A.right+C.right},ye=e.modifiersData.offset;if(S===Mo&&ye){var Re=ye[a];Object.keys(ee).forEach(function(Ee){var se=[Fr,Mr].indexOf(Ee)>=0?1:-1,Fe=[or,Mr].indexOf(Ee)>=0?"y":"x";ee[Ee]+=Re[Fe]*se})}return ee}function Rx(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?Dv:d,h=so(i),w=h?c?th:th.filter(function(_){return so(_)===h}):ea,S=w.filter(function(_){return p.indexOf(_)>=0});S.length===0&&(S=w);var v=S.reduce(function(_,g){return _[g]=Bo(e,{placement:g,boundary:a,rootBoundary:s,padding:l})[rn(g)],_},{});return Object.keys(v).sort(function(_,g){return v[_]-v[g]})}function Cx(e){if(rn(e)===kc)return[];var t=ws(e);return[ih(e),t,ih(t)]}function Px(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,w=r.rootBoundary,S=r.altBoundary,v=r.flipVariations,_=v===void 0?!0:v,g=r.allowedAutoPlacements,x=t.options.placement,C=rn(x),P=C===x,T=d||(P||!_?[ws(x)]:Cx(x)),$=[x].concat(T).reduce(function(fe,de){return fe.concat(rn(de)===kc?Rx(t,{placement:de,boundary:h,rootBoundary:w,padding:p,flipVariations:_,allowedAutoPlacements:g}):de)},[]),A=t.rects.reference,D=t.rects.popper,H=new Map,j=!0,V=$[0],ee=0;ee<$.length;ee++){var ye=$[ee],Re=rn(ye),Ee=so(ye)===io,se=[or,Mr].indexOf(Re)>=0,Fe=se?"width":"height",be=Bo(t,{placement:ye,boundary:h,rootBoundary:w,altBoundary:S,padding:p}),Oe=se?Ee?Fr:ar:Ee?Mr:or;A[Fe]>D[Fe]&&(Oe=ws(Oe));var Be=ws(Oe),pt=[];if(s&&pt.push(be[Re]<=0),c&&pt.push(be[Oe]<=0,be[Be]<=0),pt.every(function(fe){return fe})){V=ye,j=!1;break}H.set(ye,pt)}if(j)for(var Z=_?3:1,Y=function(de){var ue=$.find(function(he){var le=H.get(he);if(le)return le.slice(0,de).every(function(we){return we})});if(ue)return V=ue,"break"},pe=Z;pe>0;pe--){var oe=Y(pe);if(oe==="break")break}t.placement!==V&&(t.modifiersData[i]._skip=!0,t.placement=V,t.reset=!0)}}const Ix={name:"flip",enabled:!0,phase:"main",fn:Px,requiresIfExists:["offset"],data:{_skip:!1}};function ah(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function sh(e){return[or,Fr,Mr,ar].some(function(t){return e[t]>=0})}function Mx(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=Bo(t,{elementContext:"reference"}),c=Bo(t,{altBoundary:!0}),d=ah(l,i),p=ah(c,a,s),h=sh(d),w=sh(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:w},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":w})}const Fx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mx};function Lx(e,t,r){var i=rn(e),a=[ar,or].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[ar,Fr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function $x(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=Dv.reduce(function(h,w){return h[w]=Lx(w,t.rects,s),h},{}),c=l[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const Dx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$x};function kx(e){var t=e.state,r=e.name;t.modifiersData[r]=Bv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Nx={name:"popperOffsets",enabled:!0,phase:"read",fn:kx,data:{}};function jx(e){return e==="x"?"y":"x"}function Wx(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,w=r.padding,S=r.tether,v=S===void 0?!0:S,_=r.tetherOffset,g=_===void 0?0:_,x=Bo(t,{boundary:d,rootBoundary:p,padding:w,altBoundary:h}),C=rn(t.placement),P=so(t.placement),T=!P,$=Wc(C),A=jx($),D=t.modifiersData.popperOffsets,H=t.rects.reference,j=t.rects.popper,V=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,ee=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),ye=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Re={x:0,y:0};if(D){if(s){var Ee,se=$==="y"?or:ar,Fe=$==="y"?Mr:Fr,be=$==="y"?"height":"width",Oe=D[$],Be=Oe+x[se],pt=Oe-x[Fe],Z=v?-j[be]/2:0,Y=P===io?H[be]:j[be],pe=P===io?-j[be]:-H[be],oe=t.elements.arrow,fe=v&&oe?jc(oe):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jv(),ue=de[se],he=de[Fe],le=No(0,H[be],fe[be]),we=T?H[be]/2-Z-le-ue-ee.mainAxis:Y-le-ue-ee.mainAxis,Se=T?-H[be]/2+Z+le+he+ee.mainAxis:pe+le+he+ee.mainAxis,Ve=t.elements.arrow&&ta(t.elements.arrow),J=Ve?$==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,st=(Ee=ye==null?void 0:ye[$])!=null?Ee:0,ut=Oe+we-st-J,yt=Oe+Se-st,Gr=No(v?Ts(Be,ut):Be,Oe,v?Si(pt,yt):pt);D[$]=Gr,Re[$]=Gr-Oe}if(c){var At,er=$==="x"?or:ar,Kn=$==="x"?Mr:Fr,et=D[A],rt=A==="y"?"height":"width",yr=et+x[er],sr=et-x[Kn],Lr=[or,ar].indexOf(C)!==-1,kt=(At=ye==null?void 0:ye[A])!=null?At:0,xn=Lr?yr:et-H[rt]-j[rt]-kt+ee.altAxis,wr=Lr?et+H[rt]+j[rt]-kt-ee.altAxis:sr,ur=v&&Lr?cx(xn,et,wr):No(v?xn:yr,et,v?wr:sr);D[A]=ur,Re[A]=ur-et}t.modifiersData[i]=Re}}const Ux={name:"preventOverflow",enabled:!0,phase:"main",fn:Wx,requiresIfExists:["offset"]};function Hx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bx(e){return e===gr(e)||!Ir(e)?Uc(e):Hx(e)}function zx(e){var t=e.getBoundingClientRect(),r=oo(t.width)/e.offsetWidth||1,i=oo(t.height)/e.offsetHeight||1;return r!==1||i!==1}function qx(e,t,r){r===void 0&&(r=!1);var i=Ir(t),a=Ir(t)&&zx(t),s=qn(t),l=ao(e,a,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((nn(t)!=="body"||Bc(s))&&(c=Bx(t)),Ir(t)?(d=ao(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Hc(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Zx(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=t.get(c);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function Gx(e){var t=Zx(e);return ix.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function Kx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yx(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var uh={placement:"bottom",modifiers:[],strategy:"absolute"};function lh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Vx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?uh:a;return function(c,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},uh,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},w=[],S=!1,v={state:h,setOptions:function(C){var P=typeof C=="function"?C(h.options):C;g(),h.options=Object.assign({},s,h.options,P),h.scrollParents={reference:xi(c)?jo(c):c.contextElement?jo(c.contextElement):[],popper:jo(d)};var T=Gx(Yx([].concat(i,h.options.modifiers)));return h.orderedModifiers=T.filter(function($){return $.enabled}),_(),v.update()},forceUpdate:function(){if(!S){var C=h.elements,P=C.reference,T=C.popper;if(lh(P,T)){h.rects={reference:qx(P,ta(T),h.options.strategy==="fixed"),popper:jc(T)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(ee){return h.modifiersData[ee.name]=Object.assign({},ee.data)});for(var $=0;$<h.orderedModifiers.length;$++){if(h.reset===!0){h.reset=!1,$=-1;continue}var A=h.orderedModifiers[$],D=A.fn,H=A.options,j=H===void 0?{}:H,V=A.name;typeof D=="function"&&(h=D({state:h,options:j,name:V,instance:v})||h)}}}},update:Kx(function(){return new Promise(function(x){v.forceUpdate(),x(h)})}),destroy:function(){g(),S=!0}};if(!lh(c,d))return v;v.setOptions(p).then(function(x){!S&&p.onFirstUpdate&&p.onFirstUpdate(x)});function _(){h.orderedModifiers.forEach(function(x){var C=x.name,P=x.options,T=P===void 0?{}:P,$=x.effect;if(typeof $=="function"){var A=$({state:h,name:C,instance:v,options:T}),D=function(){};w.push(A||D)}})}function g(){w.forEach(function(x){return x()}),w=[]}return v}}var Xx=[bx,Nx,yx,sx,Dx,Ix,Ux,hx,Fx],Jx=Vx({defaultModifiers:Xx}),Qx=typeof Element<"u",eO=typeof Map=="function",tO=typeof Set=="function",rO=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function bs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!bs(e[i],t[i]))return!1;return!0}var s;if(eO&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!bs(i.value[1],t.get(i.value[0])))return!1;return!0}if(tO&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(rO&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(Qx&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!bs(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var nO=function(t,r){try{return bs(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const iO=$c(nO);var oO=[],zv=function(t,r,i){i===void 0&&(i={});var a=F.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||oO},l=F.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],d=l[1],p=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var _=v.state,g=Object.keys(_.elements);B_.flushSync(function(){d({styles:Qp(g.map(function(x){return[x,_.styles[x]||{}]})),attributes:Qp(g.map(function(x){return[x,_.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=F.useMemo(function(){var S={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return iO(a.current,S)?a.current||S:(a.current=S,S)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),w=F.useRef();return eh(function(){w.current&&w.current.setOptions(h)},[h]),eh(function(){if(!(t==null||r==null)){var S=i.createPopper||Jx,v=S(t,r,h);return w.current=v,function(){v.destroy(),w.current=null}}},[t,r,i.createPopper]),{state:w.current?w.current.state:null,styles:c.styles,attributes:c.attributes,update:w.current?w.current.update:null,forceUpdate:w.current?w.current.forceUpdate:null}};const qv=e=>N.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Zv=k.forwardRef(({children:e,style:t,attributes:r},i)=>N.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),aO=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=k.useState(null),{styles:c,attributes:d}=zv(e,s,{placement:t||"bottom-start"}),p=k.useCallback(()=>{a&&a()},[a]);return r?N.jsxs(Lv,{children:[N.jsx(qv,{onClick:()=>p()}),N.jsx(Zv,{ref:l,style:c.popper,attributes:d.popper,children:i})]}):null};var cc={exports:{}},Yi={};/*
|
|
30
|
-
object-assign
|
|
31
|
-
(c) Sindre Sorhus
|
|
32
|
-
@license MIT
|
|
33
|
-
*/var wl,ch;function Gv(){if(ch)return wl;ch=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wl=a()?Object.assign:function(s,l){for(var c,d=i(s),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var w in c)t.call(c,w)&&(d[w]=c[w]);if(e){p=e(c);for(var S=0;S<p.length;S++)r.call(c,p[S])&&(d[p[S]]=c[p[S]])}}return d},wl}/** @license React v17.0.2
|
|
34
|
-
* react-jsx-runtime.production.min.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var fh;function sO(){if(fh)return Yi;fh=1,Gv();var e=k,t=60103;if(Yi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),Yi.Fragment=r("react.fragment")}var i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,p){var h,w={},S=null,v=null;p!==void 0&&(S=""+p),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(v=d.ref);for(h in d)a.call(d,h)&&!s.hasOwnProperty(h)&&(w[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)w[h]===void 0&&(w[h]=d[h]);return{$$typeof:t,type:c,key:S,ref:v,props:w,_owner:i.current}}return Yi.jsx=l,Yi.jsxs=l,Yi}var dh={};/** @license React v17.0.2
|
|
41
|
-
* react-jsx-runtime.development.js
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var ph;function uO(){return ph||(ph=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=k,r=Gv(),i=60103,a=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,d=60110,p=60112,h=60113,w=60120,S=60115,v=60116,_=60121,g=60122,x=60117,C=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;i=T("react.element"),a=T("react.portal"),e.Fragment=T("react.fragment"),s=T("react.strict_mode"),l=T("react.profiler"),c=T("react.provider"),d=T("react.context"),p=T("react.forward_ref"),h=T("react.suspense"),w=T("react.suspense_list"),S=T("react.memo"),v=T("react.lazy"),_=T("react.block"),g=T("react.server.block"),x=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),C=T("react.debug_trace_mode"),T("react.offscreen"),P=T("react.legacy_hidden")}var $=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function D(m){if(m===null||typeof m!="object")return null;var I=$&&m[$]||m[A];return typeof I=="function"?I:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(m){{for(var I=arguments.length,W=new Array(I>1?I-1:0),K=1;K<I;K++)W[K-1]=arguments[K];V("error",m,W)}}function V(m,I,W){{var K=H.ReactDebugCurrentFrame,ce=K.getStackAddendum();ce!==""&&(I+="%s",W=W.concat([ce]));var ae=W.map(function(re){return""+re});ae.unshift("Warning: "+I),Function.prototype.apply.call(console[m],console,ae)}}var ee=!1;function ye(m){return!!(typeof m=="string"||typeof m=="function"||m===e.Fragment||m===l||m===C||m===s||m===h||m===w||m===P||ee||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===S||m.$$typeof===c||m.$$typeof===d||m.$$typeof===p||m.$$typeof===x||m.$$typeof===_||m[0]===g))}function Re(m,I,W){var K=I.displayName||I.name||"";return m.displayName||(K!==""?W+"("+K+")":W)}function Ee(m){return m.displayName||"Context"}function se(m){if(m==null)return null;if(typeof m.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case w:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var I=m;return Ee(I)+".Consumer";case c:var W=m;return Ee(W._context)+".Provider";case p:return Re(m,m.render,"ForwardRef");case S:return se(m.type);case _:return se(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return se(ae(ce))}catch{return null}}}return null}var Fe=0,be,Oe,Be,pt,Z,Y,pe;function oe(){}oe.__reactDisabledLog=!0;function fe(){{if(Fe===0){be=console.log,Oe=console.info,Be=console.warn,pt=console.error,Z=console.group,Y=console.groupCollapsed,pe=console.groupEnd;var m={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Fe++}}function de(){{if(Fe--,Fe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},m,{value:be}),info:r({},m,{value:Oe}),warn:r({},m,{value:Be}),error:r({},m,{value:pt}),group:r({},m,{value:Z}),groupCollapsed:r({},m,{value:Y}),groupEnd:r({},m,{value:pe})})}Fe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=H.ReactCurrentDispatcher,he;function le(m,I,W){{if(he===void 0)try{throw Error()}catch(ce){var K=ce.stack.trim().match(/\n( *(at )?)/);he=K&&K[1]||""}return`
|
|
48
|
-
`+he+m}}var we=!1,Se;{var Ve=typeof WeakMap=="function"?WeakMap:Map;Se=new Ve}function J(m,I){if(!m||we)return"";{var W=Se.get(m);if(W!==void 0)return W}var K;we=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,fe();try{if(I){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(ht){K=ht}Reflect.construct(m,[],re)}else{try{re.call()}catch(ht){K=ht}m.call(re.prototype)}}else{try{throw Error()}catch(ht){K=ht}m()}}catch(ht){if(ht&&K&&typeof ht.stack=="string"){for(var te=ht.stack.split(`
|
|
49
|
-
`),je=K.stack.split(`
|
|
50
|
-
`),_e=te.length-1,Ae=je.length-1;_e>=1&&Ae>=0&&te[_e]!==je[Ae];)Ae--;for(;_e>=1&&Ae>=0;_e--,Ae--)if(te[_e]!==je[Ae]){if(_e!==1||Ae!==1)do if(_e--,Ae--,Ae<0||te[_e]!==je[Ae]){var lt=`
|
|
51
|
-
`+te[_e].replace(" at new "," at ");return typeof m=="function"&&Se.set(m,lt),lt}while(_e>=1&&Ae>=0);break}}}finally{we=!1,ue.current=ae,de(),Error.prepareStackTrace=ce}var Yt=m?m.displayName||m.name:"",ni=Yt?le(Yt):"";return typeof m=="function"&&Se.set(m,ni),ni}function st(m,I,W){return J(m,!1)}function ut(m){var I=m.prototype;return!!(I&&I.isReactComponent)}function yt(m,I,W){if(m==null)return"";if(typeof m=="function")return J(m,ut(m));if(typeof m=="string")return le(m);switch(m){case h:return le("Suspense");case w:return le("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case p:return st(m.render);case S:return yt(m.type,I,W);case _:return st(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return yt(ae(ce),I,W)}catch{}}}return""}var Gr={},At=H.ReactDebugCurrentFrame;function er(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);At.setExtraStackFrame(W)}else At.setExtraStackFrame(null)}function Kn(m,I,W,K,ce){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var re in m)if(ae(m,re)){var te=void 0;try{if(typeof m[re]!="function"){var je=Error((K||"React class")+": "+W+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}te=m[re](I,re,K,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){te=_e}te&&!(te instanceof Error)&&(er(ce),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).",K||"React class",W,re,typeof te),er(null)),te instanceof Error&&!(te.message in Gr)&&(Gr[te.message]=!0,er(ce),j("Failed %s type: %s",W,te.message),er(null))}}}var et=H.ReactCurrentOwner,rt=Object.prototype.hasOwnProperty,yr={key:!0,ref:!0,__self:!0,__source:!0},sr,Lr,kt;kt={};function xn(m){if(rt.call(m,"ref")){var I=Object.getOwnPropertyDescriptor(m,"ref").get;if(I&&I.isReactWarning)return!1}return m.ref!==void 0}function wr(m){if(rt.call(m,"key")){var I=Object.getOwnPropertyDescriptor(m,"key").get;if(I&&I.isReactWarning)return!1}return m.key!==void 0}function ur(m,I){if(typeof m.ref=="string"&&et.current&&I&&et.current.stateNode!==I){var W=se(et.current.type);kt[W]||(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(et.current.type),m.ref),kt[W]=!0)}}function Yn(m,I){{var W=function(){sr||(sr=!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)",I))};W.isReactWarning=!0,Object.defineProperty(m,"key",{get:W,configurable:!0})}}function Vn(m,I){{var W=function(){Lr||(Lr=!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)",I))};W.isReactWarning=!0,Object.defineProperty(m,"ref",{get:W,configurable:!0})}}var Xn=function(m,I,W,K,ce,ae,re){var te={$$typeof:i,type:m,key:I,ref:W,props:re,_owner:ae};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Jn(m,I,W,K,ce){{var ae,re={},te=null,je=null;W!==void 0&&(te=""+W),wr(I)&&(te=""+I.key),xn(I)&&(je=I.ref,ur(I,ce));for(ae in I)rt.call(I,ae)&&!yr.hasOwnProperty(ae)&&(re[ae]=I[ae]);if(m&&m.defaultProps){var _e=m.defaultProps;for(ae in _e)re[ae]===void 0&&(re[ae]=_e[ae])}if(te||je){var Ae=typeof m=="function"?m.displayName||m.name||"Unknown":m;te&&Yn(re,Ae),je&&Vn(re,Ae)}return Xn(m,te,je,ce,K,et.current,re)}}var $r=H.ReactCurrentOwner,un=H.ReactDebugCurrentFrame;function It(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);un.setExtraStackFrame(W)}else un.setExtraStackFrame(null)}var Dr;Dr=!1;function kr(m){return typeof m=="object"&&m!==null&&m.$$typeof===i}function Qn(){{if($r.current){var m=se($r.current.type);if(m)return`
|
|
52
|
-
|
|
53
|
-
Check the render method of \``+m+"`."}return""}}function co(m){return""}var ei={};function Mi(m){{var I=Qn();if(!I){var W=typeof m=="string"?m:m.displayName||m.name;W&&(I=`
|
|
54
|
-
|
|
55
|
-
Check the top-level render call using <`+W+">.")}return I}}function On(m,I){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var W=Mi(I);if(ei[W])return;ei[W]=!0;var K="";m&&m._owner&&m._owner!==$r.current&&(K=" It was passed a child from "+se(m._owner.type)+"."),It(m),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,K),It(null)}}function ti(m,I){{if(typeof m!="object")return;if(Array.isArray(m))for(var W=0;W<m.length;W++){var K=m[W];kr(K)&&On(K,I)}else if(kr(m))m._store&&(m._store.validated=!0);else if(m){var ce=D(m);if(typeof ce=="function"&&ce!==m.entries)for(var ae=ce.call(m),re;!(re=ae.next()).done;)kr(re.value)&&On(re.value,I)}}}function fo(m){{var I=m.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===p||I.$$typeof===S))W=I.propTypes;else return;if(W){var K=se(I);Kn(W,m.props,"prop",K,m)}else if(I.PropTypes!==void 0&&!Dr){Dr=!0;var ce=se(I);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function po(m){{for(var I=Object.keys(m.props),W=0;W<I.length;W++){var K=I[W];if(K!=="children"&&K!=="key"){It(m),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),It(null);break}}m.ref!==null&&(It(m),j("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}function ri(m,I,W,K,ce,ae){{var re=ye(m);if(!re){var te="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(te+=" 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=co();je?te+=je:te+=Qn();var _e;m===null?_e="null":Array.isArray(m)?_e="array":m!==void 0&&m.$$typeof===i?(_e="<"+(se(m.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof m,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,te)}var Ae=Jn(m,I,W,ce,ae);if(Ae==null)return Ae;if(re){var lt=I.children;if(lt!==void 0)if(K)if(Array.isArray(lt)){for(var Yt=0;Yt<lt.length;Yt++)ti(lt[Yt],m);Object.freeze&&Object.freeze(lt)}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 ti(lt,m)}return m===e.Fragment?po(Ae):fo(Ae),Ae}}function Fi(m,I,W){return ri(m,I,W,!0)}function ho(m,I,W){return ri(m,I,W,!1)}var vo=ho,mo=Fi;e.jsx=vo,e.jsxs=mo}()}(dh)),dh}process.env.NODE_ENV==="production"?cc.exports=sO():cc.exports=uO();var at=cc.exports;const lO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.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"})}),cO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.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"})}),bl=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.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"})}),fc=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.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"})}),fO=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.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"}),at.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"})]}),Kv=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),at.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),dO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.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"})}),pO=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),hO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.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"})}),zc=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.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 Yv={exports:{}};/*!
|
|
1
|
+
"use strict";var Ex=Object.defineProperty;var Ep=e=>{throw TypeError(e)};var xx=(e,t,r)=>t in e?Ex(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var it=(e,t,r)=>xx(e,typeof t!="symbol"?t+"":t,r),qu=(e,t,r)=>t.has(e)||Ep("Cannot "+r);var Z=(e,t,r)=>(qu(e,t,"read from private field"),r?r.call(e):t.get(e)),Nt=(e,t,r)=>t.has(e)?Ep("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Je=(e,t,r,i)=>(qu(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),fn=(e,t,r)=>(qu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),D=require("react"),ho=require("react-dom"),mt=require("@ws-ui/icons"),Ml=require("@emotion/react");function Jh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const C=Jh(D),_x=Jh(ho),Qh=({children:e})=>ho.createPortal(e,document.querySelector("body"));var xp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},_p=typeof window<"u"&&window.document&&window.document.createElement?C.useLayoutEffect:C.useEffect,jt="top",fr="bottom",cr="right",Wt="left",af="auto",vo=[jt,fr,cr,Wt],bi="start",ro="end",Ox="clippingParents",ev="viewport",Bi="popper",Ax="reference",Op=vo.reduce(function(e,t){return e.concat([t+"-"+bi,t+"-"+ro])},[]),tv=[].concat(vo,[af]).reduce(function(e,t){return e.concat([t,t+"-"+bi,t+"-"+ro])},[]),Tx="beforeRead",Cx="read",Px="afterRead",Rx="beforeMain",Ix="main",Mx="afterMain",Fx="beforeWrite",Lx="write",$x="afterWrite",Dx=[Tx,Cx,Px,Rx,Ix,Mx,Fx,Lx,$x];function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qn(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sf(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kx(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!lr(s)||!Rr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var f=a[l];f===!1?s.removeAttribute(l):s.setAttribute(l,f===!0?"":f)}))})}function Nx(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),f=l.reduce(function(d,p){return d[p]="",d},{});!lr(a)||!Rr(a)||(Object.assign(a.style,f),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const jx={name:"applyStyles",enabled:!0,phase:"write",fn:kx,effect:Nx,requires:["computeStyles"]};function Pr(e){return e.split("-")[0]}var Un=Math.max,Za=Math.min,Si=Math.round;function Fl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function rv(){return!/^((?!chrome|android).)*safari/i.test(Fl())}function Ei(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&lr(e)&&(a=e.offsetWidth>0&&Si(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Si(i.height)/e.offsetHeight||1);var l=qn(e)?Vt(e):window,f=l.visualViewport,d=!rv()&&r,p=(i.left+(d&&f?f.offsetLeft:0))/a,h=(i.top+(d&&f?f.offsetTop:0))/s,b=i.width/a,v=i.height/s;return{width:b,height:v,top:h,right:p+b,bottom:h+v,left:p,x:p,y:h}}function uf(e){var t=Ei(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function nv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sf(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Vr(e){return Vt(e).getComputedStyle(e)}function Wx(e){return["table","td","th"].indexOf(Rr(e))>=0}function Sn(e){return((qn(e)?e.ownerDocument:e.document)||window.document).documentElement}function is(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(sf(e)?e.host:null)||Sn(e)}function Ap(e){return!lr(e)||Vr(e).position==="fixed"?null:e.offsetParent}function zx(e){var t=/firefox/i.test(Fl()),r=/Trident/i.test(Fl());if(r&&lr(e)){var i=Vr(e);if(i.position==="fixed")return null}var a=is(e);for(sf(a)&&(a=a.host);lr(a)&&["html","body"].indexOf(Rr(a))<0;){var s=Vr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function mo(e){for(var t=Vt(e),r=Ap(e);r&&Wx(r)&&Vr(r).position==="static";)r=Ap(r);return r&&(Rr(r)==="html"||Rr(r)==="body"&&Vr(r).position==="static")?t:r||zx(e)||t}function lf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xi(e,t,r){return Un(e,Za(t,r))}function Ux(e,t,r){var i=Xi(e,t,r);return i>r?r:i}function iv(){return{top:0,right:0,bottom:0,left:0}}function ov(e){return Object.assign({},iv(),e)}function av(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Bx=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ov(typeof t!="number"?t:av(t,vo))};function Hx(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,f=Pr(r.placement),d=lf(f),p=[Wt,cr].indexOf(f)>=0,h=p?"height":"width";if(!(!s||!l)){var b=Bx(a.padding,r),v=uf(s),w=d==="y"?jt:Wt,E=d==="y"?fr:cr,y=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],x=l[d]-r.rects.reference[d],A=mo(s),I=A?d==="y"?A.clientHeight||0:A.clientWidth||0:0,P=y/2-x/2,F=b[w],O=I-v[h]-b[E],L=I/2-v[h]/2+P,U=Xi(F,L,O),z=d;r.modifiersData[i]=(t={},t[z]=U,t.centerOffset=U-L,t)}}function qx(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||nv(t.elements.popper,a)&&(t.elements.arrow=a))}const Zx={name:"arrow",enabled:!0,phase:"main",fn:Hx,effect:qx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xi(e){return e.split("-")[1]}var Gx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kx(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Si(r*a)/a||0,y:Si(i*a)/a||0}}function Tp(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,b=e.isFixed,v=l.x,w=v===void 0?0:v,E=l.y,y=E===void 0?0:E,x=typeof h=="function"?h({x:w,y}):{x:w,y};w=x.x,y=x.y;var A=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),P=Wt,F=jt,O=window;if(p){var L=mo(r),U="clientHeight",z="clientWidth";if(L===Vt(r)&&(L=Sn(r),Vr(L).position!=="static"&&f==="absolute"&&(U="scrollHeight",z="scrollWidth")),L=L,a===jt||(a===Wt||a===cr)&&s===ro){F=fr;var q=b&&L===O&&O.visualViewport?O.visualViewport.height:L[U];y-=q-i.height,y*=d?1:-1}if(a===Wt||(a===jt||a===fr)&&s===ro){P=cr;var V=b&&L===O&&O.visualViewport?O.visualViewport.width:L[z];w-=V-i.width,w*=d?1:-1}}var ee=Object.assign({position:f},p&&Gx),be=h===!0?Kx({x:w,y},Vt(r)):{x:w,y};if(w=be.x,y=be.y,d){var pe;return Object.assign({},ee,(pe={},pe[F]=I?"0":"",pe[P]=A?"0":"",pe.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",pe))}return Object.assign({},ee,(t={},t[F]=I?y+"px":"",t[P]=A?w+"px":"",t.transform="",t))}function Yx(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,f=r.roundOffsets,d=f===void 0?!0:f,p={placement:Pr(t.placement),variation:xi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Tp(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tp(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yx,data:{}};var wa={passive:!0};function Xx(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,f=l===void 0?!0:l,d=Vt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,wa)}),f&&d.addEventListener("resize",r.update,wa),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,wa)}),f&&d.removeEventListener("resize",r.update,wa)}}const Jx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xx,data:{}};var Qx={left:"right",right:"left",bottom:"top",top:"bottom"};function ka(e){return e.replace(/left|right|bottom|top/g,function(t){return Qx[t]})}var e_={start:"end",end:"start"};function Cp(e){return e.replace(/start|end/g,function(t){return e_[t]})}function ff(e){var t=Vt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function cf(e){return Ei(Sn(e)).left+ff(e).scrollLeft}function t_(e,t){var r=Vt(e),i=Sn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,f=0,d=0;if(a){s=a.width,l=a.height;var p=rv();(p||!p&&t==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:f+cf(e),y:d}}function r_(e){var t,r=Sn(e),i=ff(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Un(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Un(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-i.scrollLeft+cf(e),d=-i.scrollTop;return Vr(a||r).direction==="rtl"&&(f+=Un(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:f,y:d}}function df(e){var t=Vr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function sv(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:lr(e)&&df(e)?e:sv(is(e))}function Ji(e,t){var r;t===void 0&&(t=[]);var i=sv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Vt(i),l=a?[s].concat(s.visualViewport||[],df(i)?i:[]):i,f=t.concat(l);return a?f:f.concat(Ji(is(l)))}function Ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n_(e,t){var r=Ei(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Pp(e,t,r){return t===ev?Ll(t_(e,r)):qn(t)?n_(t,r):Ll(r_(Sn(e)))}function i_(e){var t=Ji(is(e)),r=["absolute","fixed"].indexOf(Vr(e).position)>=0,i=r&&lr(e)?mo(e):e;return qn(i)?t.filter(function(a){return qn(a)&&nv(a,i)&&Rr(a)!=="body"}):[]}function o_(e,t,r,i){var a=t==="clippingParents"?i_(e):[].concat(t),s=[].concat(a,[r]),l=s[0],f=s.reduce(function(d,p){var h=Pp(e,p,i);return d.top=Un(h.top,d.top),d.right=Za(h.right,d.right),d.bottom=Za(h.bottom,d.bottom),d.left=Un(h.left,d.left),d},Pp(e,l,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function uv(e){var t=e.reference,r=e.element,i=e.placement,a=i?Pr(i):null,s=i?xi(i):null,l=t.x+t.width/2-r.width/2,f=t.y+t.height/2-r.height/2,d;switch(a){case jt:d={x:l,y:t.y-r.height};break;case fr:d={x:l,y:t.y+t.height};break;case cr:d={x:t.x+t.width,y:f};break;case Wt:d={x:t.x-r.width,y:f};break;default:d={x:t.x,y:t.y}}var p=a?lf(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case bi:d[p]=d[p]-(t[h]/2-r[h]/2);break;case ro:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function no(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,f=r.boundary,d=f===void 0?Ox:f,p=r.rootBoundary,h=p===void 0?ev:p,b=r.elementContext,v=b===void 0?Bi:b,w=r.altBoundary,E=w===void 0?!1:w,y=r.padding,x=y===void 0?0:y,A=ov(typeof x!="number"?x:av(x,vo)),I=v===Bi?Ax:Bi,P=e.rects.popper,F=e.elements[E?I:v],O=o_(qn(F)?F:F.contextElement||Sn(e.elements.popper),d,h,l),L=Ei(e.elements.reference),U=uv({reference:L,element:P,placement:a}),z=Ll(Object.assign({},P,U)),q=v===Bi?z:L,V={top:O.top-q.top+A.top,bottom:q.bottom-O.bottom+A.bottom,left:O.left-q.left+A.left,right:q.right-O.right+A.right},ee=e.modifiersData.offset;if(v===Bi&&ee){var be=ee[a];Object.keys(V).forEach(function(pe){var Ae=[cr,fr].indexOf(pe)>=0?1:-1,Ne=[jt,fr].indexOf(pe)>=0?"y":"x";V[pe]+=be[Ne]*Ae})}return V}function a_(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,f=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?tv:d,h=xi(i),b=h?f?Op:Op.filter(function(E){return xi(E)===h}):vo,v=b.filter(function(E){return p.indexOf(E)>=0});v.length===0&&(v=b);var w=v.reduce(function(E,y){return E[y]=no(e,{placement:y,boundary:a,rootBoundary:s,padding:l})[Pr(y)],E},{});return Object.keys(w).sort(function(E,y){return w[E]-w[y]})}function s_(e){if(Pr(e)===af)return[];var t=ka(e);return[Cp(e),t,Cp(t)]}function u_(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,b=r.rootBoundary,v=r.altBoundary,w=r.flipVariations,E=w===void 0?!0:w,y=r.allowedAutoPlacements,x=t.options.placement,A=Pr(x),I=A===x,P=d||(I||!E?[ka(x)]:s_(x)),F=[x].concat(P).reduce(function(Q,ae){return Q.concat(Pr(ae)===af?a_(t,{placement:ae,boundary:h,rootBoundary:b,padding:p,flipVariations:E,allowedAutoPlacements:y}):ae)},[]),O=t.rects.reference,L=t.rects.popper,U=new Map,z=!0,q=F[0],V=0;V<F.length;V++){var ee=F[V],be=Pr(ee),pe=xi(ee)===bi,Ae=[jt,fr].indexOf(be)>=0,Ne=Ae?"width":"height",ve=no(t,{placement:ee,boundary:h,rootBoundary:b,altBoundary:v,padding:p}),Te=Ae?pe?cr:Wt:pe?fr:jt;O[Ne]>L[Ne]&&(Te=ka(Te));var Ge=ka(Te),Ct=[];if(s&&Ct.push(ve[be]<=0),f&&Ct.push(ve[Te]<=0,ve[Ge]<=0),Ct.every(function(Q){return Q})){q=ee,z=!1;break}U.set(ee,Ct)}if(z)for(var H=E?3:1,G=function(ae){var se=F.find(function(ce){var ue=U.get(ce);if(ue)return ue.slice(0,ae).every(function(ge){return ge})});if(se)return q=se,"break"},re=H;re>0;re--){var le=G(re);if(le==="break")break}t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}}const l_={name:"flip",enabled:!0,phase:"main",fn:u_,requiresIfExists:["offset"],data:{_skip:!1}};function Rp(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ip(e){return[jt,cr,fr,Wt].some(function(t){return e[t]>=0})}function f_(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),f=no(t,{altBoundary:!0}),d=Rp(l,i),p=Rp(f,a,s),h=Ip(d),b=Ip(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":b})}const c_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f_};function d_(e,t,r){var i=Pr(e),a=[Wt,jt].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],f=s[1];return l=l||0,f=(f||0)*a,[Wt,cr].indexOf(i)>=0?{x:f,y:l}:{x:l,y:f}}function p_(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=tv.reduce(function(h,b){return h[b]=d_(b,t.rects,s),h},{}),f=l[t.placement],d=f.x,p=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const h_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p_};function v_(e){var t=e.state,r=e.name;t.modifiersData[r]=uv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const m_={name:"popperOffsets",enabled:!0,phase:"read",fn:v_,data:{}};function g_(e){return e==="x"?"y":"x"}function y_(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.padding,v=r.tether,w=v===void 0?!0:v,E=r.tetherOffset,y=E===void 0?0:E,x=no(t,{boundary:d,rootBoundary:p,padding:b,altBoundary:h}),A=Pr(t.placement),I=xi(t.placement),P=!I,F=lf(A),O=g_(F),L=t.modifiersData.popperOffsets,U=t.rects.reference,z=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,V=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),ee=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,be={x:0,y:0};if(L){if(s){var pe,Ae=F==="y"?jt:Wt,Ne=F==="y"?fr:cr,ve=F==="y"?"height":"width",Te=L[F],Ge=Te+x[Ae],Ct=Te-x[Ne],H=w?-z[ve]/2:0,G=I===bi?U[ve]:z[ve],re=I===bi?-z[ve]:-U[ve],le=t.elements.arrow,Q=w&&le?uf(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iv(),se=ae[Ae],ce=ae[Ne],ue=Xi(0,U[ve],Q[ve]),ge=P?U[ve]/2-H-ue-se-V.mainAxis:G-ue-se-V.mainAxis,xe=P?-U[ve]/2+H+ue+ce+V.mainAxis:re+ue+ce+V.mainAxis,He=t.elements.arrow&&mo(t.elements.arrow),K=He?F==="y"?He.clientTop||0:He.clientLeft||0:0,gt=(pe=ee==null?void 0:ee[F])!=null?pe:0,st=Te+ge-gt-K,br=Te+xe-gt,Co=Xi(w?Za(Ge,st):Ge,Te,w?Un(Ct,br):Ct);L[F]=Co,be[F]=Co-Te}if(f){var Xt,Po=F==="x"?jt:Wt,xs=F==="x"?fr:cr,zt=L[O],yt=O==="y"?"height":"width",Xr=zt+x[Po],_n=zt-x[xs],Ti=[jt,Wt].indexOf(A)!==-1,Jr=(Xt=ee==null?void 0:ee[O])!=null?Xt:0,Ro=Ti?Xr:zt-U[yt]-z[yt]-Jr+V.altAxis,Qr=Ti?zt+U[yt]+z[yt]-Jr-V.altAxis:_n,Lr=w&&Ti?Ux(Ro,zt,Qr):Xi(w?Ro:Xr,zt,w?Qr:_n);L[O]=Lr,be[O]=Lr-zt}t.modifiersData[i]=be}}const w_={name:"preventOverflow",enabled:!0,phase:"main",fn:y_,requiresIfExists:["offset"]};function b_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function S_(e){return e===Vt(e)||!lr(e)?ff(e):b_(e)}function E_(e){var t=e.getBoundingClientRect(),r=Si(t.width)/e.offsetWidth||1,i=Si(t.height)/e.offsetHeight||1;return r!==1||i!==1}function x_(e,t,r){r===void 0&&(r=!1);var i=lr(t),a=lr(t)&&E_(t),s=Sn(t),l=Ei(e,a,r),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((Rr(t)!=="body"||df(s))&&(f=S_(t)),lr(t)?(d=Ei(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=cf(s))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function __(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(f){if(!r.has(f)){var d=t.get(f);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function O_(e){var t=__(e);return Dx.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function A_(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function T_(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Mp={placement:"bottom",modifiers:[],strategy:"absolute"};function Fp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function C_(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?Mp:a;return function(f,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mp,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},b=[],v=!1,w={state:h,setOptions:function(A){var I=typeof A=="function"?A(h.options):A;y(),h.options=Object.assign({},s,h.options,I),h.scrollParents={reference:qn(f)?Ji(f):f.contextElement?Ji(f.contextElement):[],popper:Ji(d)};var P=O_(T_([].concat(i,h.options.modifiers)));return h.orderedModifiers=P.filter(function(F){return F.enabled}),E(),w.update()},forceUpdate:function(){if(!v){var A=h.elements,I=A.reference,P=A.popper;if(Fp(I,P)){h.rects={reference:x_(I,mo(P),h.options.strategy==="fixed"),popper:uf(P)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(V){return h.modifiersData[V.name]=Object.assign({},V.data)});for(var F=0;F<h.orderedModifiers.length;F++){if(h.reset===!0){h.reset=!1,F=-1;continue}var O=h.orderedModifiers[F],L=O.fn,U=O.options,z=U===void 0?{}:U,q=O.name;typeof L=="function"&&(h=L({state:h,options:z,name:q,instance:w})||h)}}}},update:A_(function(){return new Promise(function(x){w.forceUpdate(),x(h)})}),destroy:function(){y(),v=!0}};if(!Fp(f,d))return w;w.setOptions(p).then(function(x){!v&&p.onFirstUpdate&&p.onFirstUpdate(x)});function E(){h.orderedModifiers.forEach(function(x){var A=x.name,I=x.options,P=I===void 0?{}:I,F=x.effect;if(typeof F=="function"){var O=F({state:h,name:A,instance:w,options:P}),L=function(){};b.push(O||L)}})}function y(){b.forEach(function(x){return x()}),b=[]}return w}}var P_=[Jx,m_,Vx,jx,h_,l_,w_,Zx,c_],R_=C_({defaultModifiers:P_}),kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function I_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var M_=typeof Element<"u",F_=typeof Map=="function",L_=typeof Set=="function",$_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Na(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Na(e[i],t[i]))return!1;return!0}var s;if(F_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!Na(i.value[1],t.get(i.value[0])))return!1;return!0}if(L_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if($_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(M_&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!Na(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var D_=function(t,r){try{return Na(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const k_=pf(D_);var N_=[],lv=function(t,r,i){i===void 0&&(i={});var a=C.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||N_},l=C.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],d=l[1],p=C.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var E=w.state,y=Object.keys(E.elements);_x.flushSync(function(){d({styles:xp(y.map(function(x){return[x,E.styles[x]||{}]})),attributes:xp(y.map(function(x){return[x,E.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=C.useMemo(function(){var v={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return k_(a.current,v)?a.current||v:(a.current=v,v)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),b=C.useRef();return _p(function(){b.current&&b.current.setOptions(h)},[h]),_p(function(){if(!(t==null||r==null)){var v=i.createPopper||R_,w=v(t,r,h);return b.current=w,function(){w.destroy(),b.current=null}}},[t,r,i.createPopper]),{state:b.current?b.current.state:null,styles:f.styles,attributes:f.attributes,update:b.current?b.current.update:null,forceUpdate:b.current?b.current.forceUpdate:null}};const fv=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),cv=D.forwardRef(({children:e,style:t,attributes:r},i)=>$.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),j_=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=D.useState(null),{styles:f,attributes:d}=lv(e,s,{placement:t||"bottom-start"}),p=D.useCallback(()=>{a&&a()},[a]);return r?$.jsxs(Qh,{children:[$.jsx(fv,{onClick:()=>p()}),$.jsx(cv,{ref:l,style:f.popper,attributes:d.popper,children:i})]}):null};var dv={exports:{}};/*!
|
|
56
2
|
Copyright (c) 2018 Jed Watson.
|
|
57
3
|
Licensed under the MIT License (MIT), see
|
|
58
4
|
http://jedwatson.github.io/classnames
|
|
59
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var
|
|
60
|
-
`).match(a);let
|
|
5
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(s=a(s,i(f)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var f in s)t.call(s,f)&&s[f]&&(l=a(l,f));return l}function a(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(dv);var pv=dv.exports;const ft=pf(pv);function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Nn.apply(this,arguments)}const W_=["children","options"],oe={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Lp;(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"})(Lp||(Lp={}));const $p=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","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,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Dp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},z_=["style","script"],U_=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,B_=/mailto:/i,H_=/\n{2,}$/,hv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,q_=/^ *> ?/gm,Z_=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,G_=/^ {2,}\n/,K_=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,vv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Y_=/^(`+)((?:\\`|[^`])+)\1/,V_=/^(?:\n *)*\n/,X_=/\r\n?/g,J_=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Q_=/^\[\^([^\]]+)]/,eO=/\f/g,tO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,rO=/^\s*?\[(x|\s)\]/,gv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$l=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,nO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,bv=/^<!--[\s\S]*?(?:-->)/,iO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Dl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oO=/^\{.*\}$/,aO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sO=/^<([^ >]+@[^ >]+)>/,uO=/^<([^ >]+:\/[^ >]+)>/,lO=/-([a-z])?/gi,Sv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,fO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,cO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,dO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hO=/\t/g,vO=/(^ *\||\| *$)/g,mO=/^ *:-+: *$/,gO=/^ *:-+ *$/,yO=/^ *-+: *$/,os="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wO=new RegExp(`^([*_])\\1${os}\\1\\1(?!\\1)`),bO=new RegExp(`^([*_])${os}\\1(?!\\1)`),SO=new RegExp(`^(==)${os}\\1`),EO=new RegExp(`^(~~)${os}\\1`),xO=/^\\([^0-9A-Za-z\s])/,Zu=/\\([^0-9A-Za-z\s])/g,_O=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,OO=/^\n+/,AO=/^([ \t]*)/,TO=/\\([^\\])/g,CO=/(?:^|\n)( *)$/,hf="(?:\\d+\\.)",vf="(?:[*+-])";function Ev(e){return"( *)("+(e===1?hf:vf)+") +"}const xv=Ev(1),_v=Ev(2);function Ov(e){return new RegExp("^"+(e===1?xv:_v))}const PO=Ov(1),RO=Ov(2);function Av(e){return new RegExp("^"+(e===1?xv:_v)+"[^\\n]*(?:\\n(?!\\1"+(e===1?hf:vf)+" )[^\\n]*)*(\\n|$)","gm")}const IO=Av(1),MO=Av(2);function Tv(e){const t=e===1?hf:vf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Cv=Tv(1),Pv=Tv(2);function kp(e,t){const r=t===1,i=r?Cv:Pv,a=r?IO:MO,s=r?PO:RO;return{match:_i(function(l,f){const d=CO.exec(f.prevCapture);return d&&(f.list||!f.inline&&!f.simple)?i.exec(l=d[1]+l):null}),order:1,parse(l,f,d){const p=r?+l[2]:void 0,h=l[0].replace(H_,`
|
|
6
|
+
`).match(a);let b=!1;return{items:h.map(function(v,w){const E=s.exec(v)[0].length,y=new RegExp("^ {1,"+E+"}","gm"),x=v.replace(y,"").replace(s,""),A=w===h.length-1,I=x.indexOf(`
|
|
61
7
|
|
|
62
|
-
`)!==-1||
|
|
8
|
+
`)!==-1||A&&b;b=I;const P=d.inline,F=d.list;let O;d.list=!0,I?(d.inline=!1,O=io(x)+`
|
|
63
9
|
|
|
64
|
-
`)
|
|
65
|
-
`).map(function(p){return
|
|
66
|
-
`)
|
|
67
|
-
|
|
68
|
-
`,s.trim()));const a=i.trimEnd();return a==""?null:[i,a]}function Vi(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 bh(e){return e.replace(nA,"$1")}function Ss(e,t,r){const i=r._||!1,a=r.u||!1;r._=!0,r.u=!0;const s=e(t,r);return r._=i,r.u=a,s}function hA(e,t,r){const i=r._||!1,a=r.u||!1;r._=!1,r.u=!0;const s=e(t,r);return r._=i,r.u=a,s}function vA(e,t,r){return r._=!1,e(t,r)}const Sl=(e,t,r)=>({v:Ss(t,e[1],r)});function El(){return{}}function _l(){return null}function mA(...e){return e.filter(Boolean).join(" ")}function xl(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}var Ne;function gA(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||cA,t.namedCodesToUnicode=t.namedCodesToUnicode?gi({},vh,t.namedCodesToUnicode):vh;const r=t.createElement||F.createElement;function i(v,_,...g){const x=xl(t.overrides,`${v}.props`,{});return r(function(C,P){const T=xl(P,C);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:xl(P,`${C}.component`,C):C}(v,t.overrides),gi({},_,x,{className:mA(_==null?void 0:_.className,x.className)||void 0}),...g)}function a(v){let _=!1;t.forceInline?_=!0:t.forceBlock||(_=UO.test(v)===!1);const g=h(p(_?v:`${v.trimEnd().replace(tA,"")}
|
|
10
|
+
`):(d.inline=!0,O=io(x));const L=f(O,d);return d.inline=P,d.list=F,L}),ordered:r,start:p}},render:(l,f,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type===oe.orderedList?l.start:void 0},l.items.map(function(p,h){return e("li",{key:h},f(p,d))}))}}const FO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),LO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Rv=[hv,vv,mv,gv,wv,yv,Sv,Cv,Pv],$O=[...Rv,/^[^\n]+(?: \n|\n{2,})/,$l,bv,Dl];function io(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Hi(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 DO(e){return yO.test(e)?"right":mO.test(e)?"center":gO.test(e)?"left":null}function Np(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function f(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,p,h)=>{d.trim()==="|"&&(f(),i)?p!==0&&p!==h.length-1&&s.push([]):l+=d}),f(),r.inTable=a,s}function kO(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(vO,"").split("|").map(DO):[],a=e[3]?function(l,f,d){return l.trim().split(`
|
|
11
|
+
`).map(function(p){return Np(p,f,d,!0)})}(e[3],t,r):[],s=Np(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:oe.table}:{children:s,type:oe.paragraph}}function jp(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function _i(e){return e.inline=1,e}function cn(e){return _i(function(t,r){return r.inline?e.exec(t):null})}function dn(e){return _i(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Hr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function qi(e){return _i(function(t){return e.exec(t)})}function NO(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
|
|
12
|
+
`).every(a=>(a+=`
|
|
13
|
+
`,!Rv.some(s=>s.test(a))&&(r+=a,!!a.trim())));const i=io(r);return i==""?null:[r,,i]}function jO(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Wp(e){return e.replace(TO,"$1")}function ja(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function WO(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function zO(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const Gu=(e,t,r)=>({children:ja(t,e[2],r)});function Ku(){return{}}function Yu(){return null}function UO(...e){return e.filter(Boolean).join(" ")}function Vu(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}function BO(e="",t={}){function r(v,w,...E){const y=Vu(t.overrides,`${v}.props`,{});return t.createElement(function(x,A){const I=Vu(A,x);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:Vu(A,`${x}.component`,x):x}(v,t.overrides),Nn({},w,y,{className:UO(w==null?void 0:w.className,y.className)||void 0}),...E)}function i(v){v=v.replace(tO,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=pO.test(v)===!1);const E=p(d(w?v:`${io(v).replace(OO,"")}
|
|
69
14
|
|
|
70
|
-
`,{
|
|
71
|
-
`},paragraph:{
|
|
72
|
-
`).replace(RO,"").replace(HO," ")}(x),C)}}(d),h=(w=function(v){return function(_,g,x){return v[_.type].h(_,g,x)}}(d),function v(_,g={}){if(Array.isArray(_)){const x=g.k,C=[];let P=!1;for(let T=0;T<_.length;T++){g.k=T;const $=v(_[T],g),A=typeof $=="string";A&&P?C[C.length-1]+=$:$!==null&&C.push($),P=A}return g.k=x,C}return w(_,v,g)});var w;const S=a(e);return l.length?i("div",null,S,i("footer",{key:"footer"},l.map(function(v){return i("div",{id:t.slugify(v.j),key:v.j},v.j,h(p(v.I,{_:!0})))}))):S}(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"})(Ne||(Ne={}));const Rs=e=>{let{children:t,options:r}=e,i=function(a,s){if(a==null)return{};var l,c,d={},p=Object.keys(a);for(c=0;c<p.length;c++)s.indexOf(l=p[c])>=0||(d[l]=a[l]);return d}(e,vO);return F.cloneElement(gA(t,r),i)},Sh=({kind:e,customIcon:t})=>{if(t)return N.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return N.jsx(pO,{className:"flex-none h-6 w-6"});case"info":return N.jsx(N.Fragment,{children:N.jsx(fc,{className:"flex-none h-6 w-6"})});case"warning":return N.jsx(N.Fragment,{children:N.jsx(zc,{className:"flex-none h-6 w-6"})});case"message":return N.jsx(N.Fragment,{children:N.jsx(fc,{className:"flex-none h-6 w-6"})});default:return null}},yA=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>N.jsx("button",{onClick:t,className:Dt("flex items-center justify-center p-1",c),children:N.jsx(cO,{className:"h-5 w-5 font-thin stroke-current"})});return N.jsx("div",{className:Dt("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="string"?N.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[N.jsxs("div",{className:"flex items-center gap-1",children:[N.jsx(Sh,{kind:r,customIcon:s}),a?N.jsx(Rs,{children:i}):N.jsx(N.Fragment,{children:i})]}),l()]}):N.jsxs("div",{className:"flex items-start",children:[N.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>N.jsxs(N.Fragment,{children:[N.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[N.jsx(Sh,{kind:r,customIcon:s}),N.jsxs("span",{children:[c.title," :"]})]}),N.jsx("ul",{className:"list-disc px-12",children:c.messages.map(d=>N.jsx("li",{children:a?N.jsx(Rs,{children:d}):N.jsx(N.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},mm=({children:e,size:t,className:r,...i})=>N.jsx("div",{style:{"--width":`${t||24}px`},className:Dt("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var ts,wA=new Uint8Array(16);function gm(){if(!ts&&(ts=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ts))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ts(wA)}const bA=/^(?:[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 Bs(e){return typeof e=="string"&&bA.test(e)}var Lt=[];for(var Ol=0;Ol<256;++Ol)Lt.push((Ol+256).toString(16).substr(1));function zs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Lt[e[t+0]]+Lt[e[t+1]]+Lt[e[t+2]]+Lt[e[t+3]]+"-"+Lt[e[t+4]]+Lt[e[t+5]]+"-"+Lt[e[t+6]]+Lt[e[t+7]]+"-"+Lt[e[t+8]]+Lt[e[t+9]]+"-"+Lt[e[t+10]]+Lt[e[t+11]]+Lt[e[t+12]]+Lt[e[t+13]]+Lt[e[t+14]]+Lt[e[t+15]]).toLowerCase();if(!Bs(r))throw TypeError("Stringified UUID is invalid");return r}var Eh,Al,Tl=0,Rl=0;function SA(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||Eh,l=e.clockseq!==void 0?e.clockseq:Al;if(s==null||l==null){var c=e.random||(e.rng||gm)();s==null&&(s=Eh=[c[0]|1,c[1],c[2],c[3],c[4],c[5]]),l==null&&(l=Al=(c[6]<<8|c[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Rl+1,h=d-Tl+(p-Rl)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Tl)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Tl=d,Rl=p,Al=l,d+=122192928e5;var w=((d&268435455)*1e4+p)%4294967296;a[i++]=w>>>24&255,a[i++]=w>>>16&255,a[i++]=w>>>8&255,a[i++]=w&255;var S=d/4294967296*1e4&268435455;a[i++]=S>>>8&255,a[i++]=S&255,a[i++]=S>>>24&15|16,a[i++]=S>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var v=0;v<6;++v)a[i+v]=s[v];return t||zs(a)}function ym(e){if(!Bs(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function EA(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var _A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",xA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function wm(e,t,r){function i(a,s,l,c){if(typeof a=="string"&&(a=EA(a)),typeof s=="string"&&(s=ym(s)),s.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(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){c=c||0;for(var p=0;p<16;++p)l[c+p]=d[p];return l}return zs(d)}try{i.name=e}catch{}return i.DNS=_A,i.URL=xA,i}function OA(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return AA(TA(RA(e),e.length*8))}function AA(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function bm(e){return(e+64>>>9<<4)+14+1}function TA(e,t){e[t>>5]|=128<<t%32,e[bm(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var c=r,d=i,p=a,h=s;r=Ut(r,i,a,s,e[l],7,-680876936),s=Ut(s,r,i,a,e[l+1],12,-389564586),a=Ut(a,s,r,i,e[l+2],17,606105819),i=Ut(i,a,s,r,e[l+3],22,-1044525330),r=Ut(r,i,a,s,e[l+4],7,-176418897),s=Ut(s,r,i,a,e[l+5],12,1200080426),a=Ut(a,s,r,i,e[l+6],17,-1473231341),i=Ut(i,a,s,r,e[l+7],22,-45705983),r=Ut(r,i,a,s,e[l+8],7,1770035416),s=Ut(s,r,i,a,e[l+9],12,-1958414417),a=Ut(a,s,r,i,e[l+10],17,-42063),i=Ut(i,a,s,r,e[l+11],22,-1990404162),r=Ut(r,i,a,s,e[l+12],7,1804603682),s=Ut(s,r,i,a,e[l+13],12,-40341101),a=Ut(a,s,r,i,e[l+14],17,-1502002290),i=Ut(i,a,s,r,e[l+15],22,1236535329),r=Ht(r,i,a,s,e[l+1],5,-165796510),s=Ht(s,r,i,a,e[l+6],9,-1069501632),a=Ht(a,s,r,i,e[l+11],14,643717713),i=Ht(i,a,s,r,e[l],20,-373897302),r=Ht(r,i,a,s,e[l+5],5,-701558691),s=Ht(s,r,i,a,e[l+10],9,38016083),a=Ht(a,s,r,i,e[l+15],14,-660478335),i=Ht(i,a,s,r,e[l+4],20,-405537848),r=Ht(r,i,a,s,e[l+9],5,568446438),s=Ht(s,r,i,a,e[l+14],9,-1019803690),a=Ht(a,s,r,i,e[l+3],14,-187363961),i=Ht(i,a,s,r,e[l+8],20,1163531501),r=Ht(r,i,a,s,e[l+13],5,-1444681467),s=Ht(s,r,i,a,e[l+2],9,-51403784),a=Ht(a,s,r,i,e[l+7],14,1735328473),i=Ht(i,a,s,r,e[l+12],20,-1926607734),r=Bt(r,i,a,s,e[l+5],4,-378558),s=Bt(s,r,i,a,e[l+8],11,-2022574463),a=Bt(a,s,r,i,e[l+11],16,1839030562),i=Bt(i,a,s,r,e[l+14],23,-35309556),r=Bt(r,i,a,s,e[l+1],4,-1530992060),s=Bt(s,r,i,a,e[l+4],11,1272893353),a=Bt(a,s,r,i,e[l+7],16,-155497632),i=Bt(i,a,s,r,e[l+10],23,-1094730640),r=Bt(r,i,a,s,e[l+13],4,681279174),s=Bt(s,r,i,a,e[l],11,-358537222),a=Bt(a,s,r,i,e[l+3],16,-722521979),i=Bt(i,a,s,r,e[l+6],23,76029189),r=Bt(r,i,a,s,e[l+9],4,-640364487),s=Bt(s,r,i,a,e[l+12],11,-421815835),a=Bt(a,s,r,i,e[l+15],16,530742520),i=Bt(i,a,s,r,e[l+2],23,-995338651),r=zt(r,i,a,s,e[l],6,-198630844),s=zt(s,r,i,a,e[l+7],10,1126891415),a=zt(a,s,r,i,e[l+14],15,-1416354905),i=zt(i,a,s,r,e[l+5],21,-57434055),r=zt(r,i,a,s,e[l+12],6,1700485571),s=zt(s,r,i,a,e[l+3],10,-1894986606),a=zt(a,s,r,i,e[l+10],15,-1051523),i=zt(i,a,s,r,e[l+1],21,-2054922799),r=zt(r,i,a,s,e[l+8],6,1873313359),s=zt(s,r,i,a,e[l+15],10,-30611744),a=zt(a,s,r,i,e[l+6],15,-1560198380),i=zt(i,a,s,r,e[l+13],21,1309151649),r=zt(r,i,a,s,e[l+4],6,-145523070),s=zt(s,r,i,a,e[l+11],10,-1120210379),a=zt(a,s,r,i,e[l+2],15,718787259),i=zt(i,a,s,r,e[l+9],21,-343485551),r=Hn(r,c),i=Hn(i,d),a=Hn(a,p),s=Hn(s,h)}return[r,i,a,s]}function RA(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array(bm(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function Hn(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function CA(e,t){return e<<t|e>>>32-t}function qs(e,t,r,i,a,s){return Hn(CA(Hn(Hn(t,e),Hn(i,s)),a),r)}function Ut(e,t,r,i,a,s,l){return qs(t&r|~t&i,e,t,a,s,l)}function Ht(e,t,r,i,a,s,l){return qs(t&i|r&~i,e,t,a,s,l)}function Bt(e,t,r,i,a,s,l){return qs(t^r^i,e,t,a,s,l)}function zt(e,t,r,i,a,s,l){return qs(r^(t|~i),e,t,a,s,l)}var PA=wm("v3",48,OA);const IA=PA;function MA(e,t,r){e=e||{};var i=e.random||(e.rng||gm)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return zs(i)}function FA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function Cl(e,t){return e<<t|e>>>32-t}function LA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),c=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];c[d]=p}c[l-1][14]=(e.length-1)*8/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=(e.length-1)*8&4294967295;for(var w=0;w<l;++w){for(var S=new Uint32Array(80),v=0;v<16;++v)S[v]=c[w][v];for(var _=16;_<80;++_)S[_]=Cl(S[_-3]^S[_-8]^S[_-14]^S[_-16],1);for(var g=r[0],x=r[1],C=r[2],P=r[3],T=r[4],$=0;$<80;++$){var A=Math.floor($/20),D=Cl(g,5)+FA(A,x,C,P)+T+t[A]+S[$]>>>0;T=P,P=C,C=Cl(x,30)>>>0,x=g,g=D}r[0]=r[0]+g>>>0,r[1]=r[1]+x>>>0,r[2]=r[2]+C>>>0,r[3]=r[3]+P>>>0,r[4]=r[4]+T>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var $A=wm("v5",80,LA);const DA=$A,kA="00000000-0000-0000-0000-000000000000";function NA(e){if(!Bs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const jA=Object.freeze(Object.defineProperty({__proto__:null,NIL:kA,parse:ym,stringify:zs,v1:SA,v3:IA,v4:MA,v5:DA,validate:Bs,version:NA},Symbol.toStringTag,{value:"Module"})),WA=z_(jA);function Gc(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}Gc.prototype.convert=function(e){var t,r,i,a={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,c=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(t=0;t<c;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<c;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);c=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};Gc.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var UA=Gc,HA=UA;function ra(e,t){var r=new HA(e,t);return function(i){return r.convert(i)}}ra.BIN="01";ra.OCT="01234567";ra.DEC="0123456789";ra.HEX="0123456789abcdef";var BA=ra;const{v4:Pl}=WA,rs=BA,Il="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",zA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",qA={consistentLength:!0};let Ml;const _h=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},ZA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},GA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Kc=(()=>{const e=(t,r)=>{const i=t||Il,a={...qA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=GA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},c=rs(rs.HEX,i),d=rs(i,rs.HEX),p=()=>_h(Pl(),c,l),h={new:p,generate:p,uuid:Pl,fromUUID:w=>_h(w,c,l),toUUID:w=>ZA(w,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:Il,cookieBase90:zA},e.uuid=Pl,e.generate=()=>(Ml||(Ml=e(Il).generate),Ml()),e})();const Sm=({depth:e,height:t=24,width:r=11,showLines:i=!0})=>{const a=`indent_line_${Kc.generate()}`;return N.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[N.jsx("defs",{children:N.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:N.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:"rgb(241, 245, 249)"})})}),i?N.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):N.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Em=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?N.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return N.jsx(bl,{className:Dt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?N.jsx(bl,{}):N.jsx(dO,{});default:return N.jsx(bl,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):N.jsx("div",{className:"flex h-6 w-3 items-center"}),Yc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:c})=>{var v;const{key:d,children:p}=e,h=k.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),w=l&&typeof l=="function"?l(e,t,h,a,s):VA(e,t,h,c);return!((v=e.options)!=null&&v.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"flex items-center space-x-2",children:w},d),YA(p||[],t,s,r,i,h.expanded,a,c,l)]}):null},KA=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=N.jsx(mm,{children:i})),N.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:()=>{t&&t(e)},children:[s,N.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&N.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},YA=function(e,t,r,i,a,s,l,c,d){return e.length&&s?e.map(p=>N.jsx(Yc,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:d},p.key)):null},VA=function(e,t,r,i){return N.jsxs(N.Fragment,{children:[N.jsx(Sm,{showLines:!0,depth:t}),N.jsx(Em,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),KA(e,i)]})},ns=e=>t=>e===t,XA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:d}){const[p,h]=k.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));k.useEffect(()=>{c==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const w=k.useCallback(x=>{if(!x)return;const C=p.expandedKeys.findIndex(ns(x.key));let P=[];C===-1?(P=[...p.expandedKeys,x.key],h(()=>({...p,expandedKeys:P})),a&&a(P)):(P=p.expandedKeys.filter(T=>T!==x.key),h(()=>({...p,expandedKeys:P})),a&&a(P))},[p]),S=k.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(ns(x.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,x.key]})},[p]),v=k.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(ns(x.key))===-1&&h({...p,selectedKeys:[x.key]})},[p]),_=k.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex(ns(x.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(T=>T!==x.key)})},[p]),g=k.useMemo(()=>({expand:w,select:S,selectSingle:v,deselect:_}),[_,w,S,v]);return N.jsx("div",{className:Dt("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(x=>N.jsx(Yc,{node:x,searchQuery:s||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:g,renderNode:r,onNodeClick:i},x.key))})};function JA(e){return e.of&&e.children?N.jsx(N.Fragment,{children:e.children}):null}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ct.apply(this,arguments)}function _m(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var QA=/^((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)-.*))$/,eT=_m(function(e){return QA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tT=!0;function rT(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):i+=a+" "}),i}var xm=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||tT===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},nT=function(t,r,i){xm(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function iT(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oT={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},xh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
73
|
-
|
|
74
|
-
You can read more about this here:
|
|
75
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,aT="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",sT=/[A-Z]|^ms/g,Om=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vc=function(t){return t.charCodeAt(1)===45},Oh=function(t){return t!=null&&typeof t!="boolean"},Fl=_m(function(e){return Vc(e)?e:e.replace(sT,"-$&").toLowerCase()}),Cs=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Om,function(i,a,s){return zr={name:a,styles:s,next:zr},a})}return oT[t]!==1&&!Vc(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var uT=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,lT=["normal","none","initial","inherit","unset"],cT=Cs,fT=/^-ms-/,dT=/-(.)/g,Ah={};Cs=function(t,r){if(t==="content"&&(typeof r!="string"||lT.indexOf(r)===-1&&!uT.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var i=cT(t,r);return i!==""&&!Vc(t)&&t.indexOf("-")!==-1&&Ah[t]===void 0&&(Ah[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(fT,"ms-").replace(dT,function(a,s){return s.toUpperCase()})+"?")),i}}var Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function zo(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Am);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return zr={name:r.name,styles:r.styles,next:zr},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)zr={name:i.name,styles:i.styles,next:zr},i=i.next;var a=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(a+=r.map),a}return pT(e,t,r)}case"function":{if(e!==void 0){var s=zr,l=r(e);return zr=s,zo(e,t,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 c=[],d=r.replace(Om,function(h,w,S){var v="animation"+c.length;return c.push("const "+v+" = keyframes`"+S.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join(`
|
|
76
|
-
`)+`
|
|
15
|
+
`,{inline:w}));for(;typeof E[E.length-1]=="string"&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const y=t.wrapper||(w?"span":"div");let x;if(E.length>1||t.forceWrapper)x=E;else{if(E.length===1)return x=E[0],typeof x=="string"?r("span",{key:"outer"},x):x;x=null}return t.createElement(y,{key:"outer"},x)}function a(v,w){const E=w.match(U_);return E?E.reduce(function(y,x){const A=x.indexOf("=");if(A!==-1){const I=function(L){return L.indexOf("-")!==-1&&L.match(iO)===null&&(L=L.replace(lO,function(U,z){return z.toUpperCase()})),L}(x.slice(0,A)).trim(),P=function(L){const U=L[0];return(U==='"'||U==="'")&&L.length>=2&&L[L.length-1]===U?L.slice(1,-1):L}(x.slice(A+1).trim()),F=$p[I]||I;if(F==="ref")return y;const O=y[F]=function(L,U,z,q){return U==="style"?z.split(/;\s?/).reduce(function(V,ee){const be=ee.slice(0,ee.indexOf(":"));return V[be.trim().replace(/(-[a-z])/g,pe=>pe[1].toUpperCase())]=ee.slice(be.length+1).trim(),V},{}):U==="href"||U==="src"?q(z,L,U):(z.match(oO)&&(z=z.slice(1,z.length-1)),z==="true"||z!=="false"&&z)}(v,I,P,t.sanitizer);typeof O=="string"&&($l.test(O)||Dl.test(O))&&(y[F]=i(O.trim()))}else x!=="style"&&(y[$p[x]||x]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||jO,t.slugify=t.slugify||Hi,t.namedCodesToUnicode=t.namedCodesToUnicode?Nn({},Dp,t.namedCodesToUnicode):Dp,t.createElement=t.createElement||C.createElement;const s=[],l={},f={[oe.blockQuote]:{match:Hr(hv),order:1,parse(v,w,E){const[,y,x]=v[0].replace(q_,"").match(Z_);return{alert:y,children:w(x,E)}},render(v,w,E){const y={key:E.key};return v.alert&&(y.className="markdown-alert-"+t.slugify(v.alert.toLowerCase(),Hi),v.children.unshift({attrs:{},children:[{type:oe.text,text:v.alert}],noInnerParse:!0,type:oe.htmlBlock,tag:"header"})),r("blockquote",y,w(v.children,E))}},[oe.breakLine]:{match:qi(G_),order:1,parse:Ku,render:(v,w,E)=>r("br",{key:E.key})},[oe.breakThematic]:{match:Hr(K_),order:1,parse:Ku,render:(v,w,E)=>r("hr",{key:E.key})},[oe.codeBlock]:{match:Hr(mv),order:0,parse:v=>({lang:void 0,text:io(v[0].replace(/^ {4}/gm,"")).replace(Zu,"$1")}),render:(v,w,E)=>r("pre",{key:E.key},r("code",Nn({},v.attrs,{className:v.lang?`lang-${v.lang}`:""}),v.text))},[oe.codeFenced]:{match:Hr(vv),order:0,parse:v=>({attrs:a("code",v[3]||""),lang:v[2]||void 0,text:v[4].replace(Zu,"$1"),type:oe.codeBlock})},[oe.codeInline]:{match:dn(Y_),order:3,parse:v=>({text:v[2].replace(Zu,"$1")}),render:(v,w,E)=>r("code",{key:E.key},v.text)},[oe.footnote]:{match:Hr(J_),order:0,parse:v=>(s.push({footnote:v[2],identifier:v[1]}),{}),render:Yu},[oe.footnoteReference]:{match:cn(Q_),order:1,parse:v=>({target:`#${t.slugify(v[1],Hi)}`,text:v[1]}),render:(v,w,E)=>r("a",{key:E.key,href:t.sanitizer(v.target,"a","href")},r("sup",{key:E.key},v.text))},[oe.gfmTask]:{match:cn(rO),order:1,parse:v=>({completed:v[1].toLowerCase()==="x"}),render:(v,w,E)=>r("input",{checked:v.completed,key:E.key,readOnly:!0,type:"checkbox"})},[oe.heading]:{match:Hr(t.enforceAtxHeadings?yv:gv),order:1,parse:(v,w,E)=>({children:ja(w,v[2],E),id:t.slugify(v[2],Hi),level:v[1].length}),render:(v,w,E)=>r(`h${v.level}`,{id:v.id,key:E.key},w(v.children,E))},[oe.headingSetext]:{match:Hr(wv),order:0,parse:(v,w,E)=>({children:ja(w,v[1],E),level:v[2]==="="?1:2,type:oe.heading})},[oe.htmlBlock]:{match:qi($l),order:1,parse(v,w,E){const[,y]=v[3].match(AO),x=new RegExp(`^${y}`,"gm"),A=v[3].replace(x,""),I=(P=A,$O.some(z=>z.test(P))?zO:ja);var P;const F=v[1].toLowerCase(),O=z_.indexOf(F)!==-1,L=(O?F:v[1]).trim(),U={attrs:a(L,v[2]),noInnerParse:O,tag:L};return E.inAnchor=E.inAnchor||F==="a",O?U.text=v[3]:U.children=I(w,A,E),E.inAnchor=!1,U},render:(v,w,E)=>r(v.tag,Nn({key:E.key},v.attrs),v.text||(v.children?w(v.children,E):""))},[oe.htmlSelfClosing]:{match:qi(Dl),order:1,parse(v){const w=v[1].trim();return{attrs:a(w,v[2]||""),tag:w}},render:(v,w,E)=>r(v.tag,Nn({},v.attrs,{key:E.key}))},[oe.htmlComment]:{match:qi(bv),order:1,parse:()=>({}),render:Yu},[oe.image]:{match:dn(LO),order:1,parse:v=>({alt:v[1],target:Wp(v[2]),title:v[3]}),render:(v,w,E)=>r("img",{key:E.key,alt:v.alt||void 0,title:v.title||void 0,src:t.sanitizer(v.target,"img","src")})},[oe.link]:{match:cn(FO),order:3,parse:(v,w,E)=>({children:WO(w,v[1],E),target:Wp(v[2]),title:v[3]}),render:(v,w,E)=>r("a",{key:E.key,href:t.sanitizer(v.target,"a","href"),title:v.title},w(v.children,E))},[oe.linkAngleBraceStyleDetector]:{match:cn(uO),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],type:oe.link})},[oe.linkBareUrlDetector]:{match:_i((v,w)=>w.inAnchor||t.disableAutoLink?null:cn(aO)(v,w)),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],title:void 0,type:oe.link})},[oe.linkMailtoDetector]:{match:cn(sO),order:0,parse(v){let w=v[1],E=v[1];return B_.test(E)||(E="mailto:"+E),{children:[{text:w.replace("mailto:",""),type:oe.text}],target:E,type:oe.link}}},[oe.orderedList]:kp(r,1),[oe.unorderedList]:kp(r,2),[oe.newlineCoalescer]:{match:Hr(V_),order:3,parse:Ku,render:()=>`
|
|
16
|
+
`},[oe.paragraph]:{match:_i(NO),order:3,parse:Gu,render:(v,w,E)=>r("p",{key:E.key},w(v.children,E))},[oe.ref]:{match:cn(fO),order:0,parse:v=>(l[v[1]]={target:v[2],title:v[4]},{}),render:Yu},[oe.refImage]:{match:dn(cO),order:0,parse:v=>({alt:v[1]||void 0,ref:v[2]}),render:(v,w,E)=>l[v.ref]?r("img",{key:E.key,alt:v.alt,src:t.sanitizer(l[v.ref].target,"img","src"),title:l[v.ref].title}):null},[oe.refLink]:{match:cn(dO),order:0,parse:(v,w,E)=>({children:w(v[1],E),fallbackChildren:v[0],ref:v[2]}),render:(v,w,E)=>l[v.ref]?r("a",{key:E.key,href:t.sanitizer(l[v.ref].target,"a","href"),title:l[v.ref].title},w(v.children,E)):r("span",{key:E.key},v.fallbackChildren)},[oe.table]:{match:Hr(Sv),order:1,parse:kO,render(v,w,E){const y=v;return r("table",{key:E.key},r("thead",null,r("tr",null,y.header.map(function(x,A){return r("th",{key:A,style:jp(y,A)},w(x,E))}))),r("tbody",null,y.cells.map(function(x,A){return r("tr",{key:A},x.map(function(I,P){return r("td",{key:P,style:jp(y,P)},w(I,E))}))})))}},[oe.text]:{match:qi(_O),order:4,parse:v=>({text:v[0].replace(nO,(w,E)=>t.namedCodesToUnicode[E]?t.namedCodesToUnicode[E]:w)}),render:v=>v.text},[oe.textBolded]:{match:dn(wO),order:2,parse:(v,w,E)=>({children:w(v[2],E)}),render:(v,w,E)=>r("strong",{key:E.key},w(v.children,E))},[oe.textEmphasized]:{match:dn(bO),order:3,parse:(v,w,E)=>({children:w(v[2],E)}),render:(v,w,E)=>r("em",{key:E.key},w(v.children,E))},[oe.textEscaped]:{match:dn(xO),order:1,parse:v=>({text:v[1],type:oe.text})},[oe.textMarked]:{match:dn(SO),order:3,parse:Gu,render:(v,w,E)=>r("mark",{key:E.key},w(v.children,E))},[oe.textStrikethroughed]:{match:dn(EO),order:3,parse:Gu,render:(v,w,E)=>r("del",{key:E.key},w(v.children,E))}};t.disableParsingRawHTML===!0&&(delete f[oe.htmlBlock],delete f[oe.htmlSelfClosing]);const d=function(v){let w=Object.keys(v);function E(y,x){let A,I,P=[],F="",O="";for(x.prevCapture=x.prevCapture||"";y;){let L=0;for(;L<w.length;){if(F=w[L],A=v[F],x.inline&&!A.match.inline){L++;continue}const U=A.match(y,x);if(U){O=U[0],x.prevCapture+=O,y=y.substring(O.length),I=A.parse(U,E,x),I.type==null&&(I.type=F),P.push(I);break}L++}}return x.prevCapture="",P}return w.sort(function(y,x){let A=v[y].order,I=v[x].order;return A!==I?A-I:y<x?-1:1}),function(y,x){return E(function(A){return A.replace(X_,`
|
|
17
|
+
`).replace(eO,"").replace(hO," ")}(y),x)}}(f),p=(h=function(v,w){return function(E,y,x){const A=v[E.type].render;return w?w(()=>A(E,y,x),E,y,x):A(E,y,x)}}(f,t.renderRule),function v(w,E={}){if(Array.isArray(w)){const y=E.key,x=[];let A=!1;for(let I=0;I<w.length;I++){E.key=I;const P=v(w[I],E),F=typeof P=="string";F&&A?x[x.length-1]+=P:P!==null&&x.push(P),A=F}return E.key=y,x}return h(w,v,E)});var h;const b=i(e);return s.length?r("div",null,b,r("footer",{key:"footer"},s.map(function(v){return r("div",{id:t.slugify(v.identifier,Hi),key:v.identifier},v.identifier,p(d(v.footnote,{inline:!0})))}))):b}const Ga=e=>{let{children:t="",options:r}=e,i=function(a,s){if(a==null)return{};var l,f,d={},p=Object.keys(a);for(f=0;f<p.length;f++)s.indexOf(l=p[f])>=0||(d[l]=a[l]);return d}(e,W_);return C.cloneElement(BO(t,r),i)},zp=({kind:e,customIcon:t})=>{if(t)return $.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(mt.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(mt.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(mt.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(mt.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},HO=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:f}={})=>$.jsx("button",{onClick:t,className:ft("flex items-center justify-center p-1",f),children:$.jsx(mt.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:ft("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="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(zp,{kind:r,customIcon:s}),a?$.jsx(Ga,{children:i}):$.jsx($.Fragment,{children:i})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(f=>f.messages.length>0).map(f=>$.jsxs($.Fragment,{children:[f.title&&$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(zp,{kind:r,customIcon:s}),$.jsxs("span",{children:[f.title," :"]})]}),$.jsx("ul",{className:ft("list-disc",{"px-12":f.title,"px-6":!f.title}),children:f.messages.map(d=>$.jsx("li",{children:a?$.jsx(Ga,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Iv=({children:e,size:t,className:r,...i})=>$.jsx("div",{style:{"--width":`${t||24}px`},className:ft("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var ba,qO=new Uint8Array(16);function Mv(){if(!ba&&(ba=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ba))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ba(qO)}const ZO=/^(?:[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 as(e){return typeof e=="string"&&ZO.test(e)}var ht=[];for(var Xu=0;Xu<256;++Xu)ht.push((Xu+256).toString(16).substr(1));function ss(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(ht[e[t+0]]+ht[e[t+1]]+ht[e[t+2]]+ht[e[t+3]]+"-"+ht[e[t+4]]+ht[e[t+5]]+"-"+ht[e[t+6]]+ht[e[t+7]]+"-"+ht[e[t+8]]+ht[e[t+9]]+"-"+ht[e[t+10]]+ht[e[t+11]]+ht[e[t+12]]+ht[e[t+13]]+ht[e[t+14]]+ht[e[t+15]]).toLowerCase();if(!as(r))throw TypeError("Stringified UUID is invalid");return r}var Up,Ju,Qu=0,el=0;function GO(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||Up,l=e.clockseq!==void 0?e.clockseq:Ju;if(s==null||l==null){var f=e.random||(e.rng||Mv)();s==null&&(s=Up=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=Ju=(f[6]<<8|f[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:el+1,h=d-Qu+(p-el)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Qu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Qu=d,el=p,Ju=l,d+=122192928e5;var b=((d&268435455)*1e4+p)%4294967296;a[i++]=b>>>24&255,a[i++]=b>>>16&255,a[i++]=b>>>8&255,a[i++]=b&255;var v=d/4294967296*1e4&268435455;a[i++]=v>>>8&255,a[i++]=v&255,a[i++]=v>>>24&15|16,a[i++]=v>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var w=0;w<6;++w)a[i+w]=s[w];return t||ss(a)}function Fv(e){if(!as(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function KO(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var YO="6ba7b810-9dad-11d1-80b4-00c04fd430c8",VO="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Lv(e,t,r){function i(a,s,l,f){if(typeof a=="string"&&(a=KO(a)),typeof s=="string"&&(s=Fv(s)),s.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(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){f=f||0;for(var p=0;p<16;++p)l[f+p]=d[p];return l}return ss(d)}try{i.name=e}catch{}return i.DNS=YO,i.URL=VO,i}function XO(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return JO(QO(eA(e),e.length*8))}function JO(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function $v(e){return(e+64>>>9<<4)+14+1}function QO(e,t){e[t>>5]|=128<<t%32,e[$v(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var f=r,d=i,p=a,h=s;r=St(r,i,a,s,e[l],7,-680876936),s=St(s,r,i,a,e[l+1],12,-389564586),a=St(a,s,r,i,e[l+2],17,606105819),i=St(i,a,s,r,e[l+3],22,-1044525330),r=St(r,i,a,s,e[l+4],7,-176418897),s=St(s,r,i,a,e[l+5],12,1200080426),a=St(a,s,r,i,e[l+6],17,-1473231341),i=St(i,a,s,r,e[l+7],22,-45705983),r=St(r,i,a,s,e[l+8],7,1770035416),s=St(s,r,i,a,e[l+9],12,-1958414417),a=St(a,s,r,i,e[l+10],17,-42063),i=St(i,a,s,r,e[l+11],22,-1990404162),r=St(r,i,a,s,e[l+12],7,1804603682),s=St(s,r,i,a,e[l+13],12,-40341101),a=St(a,s,r,i,e[l+14],17,-1502002290),i=St(i,a,s,r,e[l+15],22,1236535329),r=Et(r,i,a,s,e[l+1],5,-165796510),s=Et(s,r,i,a,e[l+6],9,-1069501632),a=Et(a,s,r,i,e[l+11],14,643717713),i=Et(i,a,s,r,e[l],20,-373897302),r=Et(r,i,a,s,e[l+5],5,-701558691),s=Et(s,r,i,a,e[l+10],9,38016083),a=Et(a,s,r,i,e[l+15],14,-660478335),i=Et(i,a,s,r,e[l+4],20,-405537848),r=Et(r,i,a,s,e[l+9],5,568446438),s=Et(s,r,i,a,e[l+14],9,-1019803690),a=Et(a,s,r,i,e[l+3],14,-187363961),i=Et(i,a,s,r,e[l+8],20,1163531501),r=Et(r,i,a,s,e[l+13],5,-1444681467),s=Et(s,r,i,a,e[l+2],9,-51403784),a=Et(a,s,r,i,e[l+7],14,1735328473),i=Et(i,a,s,r,e[l+12],20,-1926607734),r=xt(r,i,a,s,e[l+5],4,-378558),s=xt(s,r,i,a,e[l+8],11,-2022574463),a=xt(a,s,r,i,e[l+11],16,1839030562),i=xt(i,a,s,r,e[l+14],23,-35309556),r=xt(r,i,a,s,e[l+1],4,-1530992060),s=xt(s,r,i,a,e[l+4],11,1272893353),a=xt(a,s,r,i,e[l+7],16,-155497632),i=xt(i,a,s,r,e[l+10],23,-1094730640),r=xt(r,i,a,s,e[l+13],4,681279174),s=xt(s,r,i,a,e[l],11,-358537222),a=xt(a,s,r,i,e[l+3],16,-722521979),i=xt(i,a,s,r,e[l+6],23,76029189),r=xt(r,i,a,s,e[l+9],4,-640364487),s=xt(s,r,i,a,e[l+12],11,-421815835),a=xt(a,s,r,i,e[l+15],16,530742520),i=xt(i,a,s,r,e[l+2],23,-995338651),r=_t(r,i,a,s,e[l],6,-198630844),s=_t(s,r,i,a,e[l+7],10,1126891415),a=_t(a,s,r,i,e[l+14],15,-1416354905),i=_t(i,a,s,r,e[l+5],21,-57434055),r=_t(r,i,a,s,e[l+12],6,1700485571),s=_t(s,r,i,a,e[l+3],10,-1894986606),a=_t(a,s,r,i,e[l+10],15,-1051523),i=_t(i,a,s,r,e[l+1],21,-2054922799),r=_t(r,i,a,s,e[l+8],6,1873313359),s=_t(s,r,i,a,e[l+15],10,-30611744),a=_t(a,s,r,i,e[l+6],15,-1560198380),i=_t(i,a,s,r,e[l+13],21,1309151649),r=_t(r,i,a,s,e[l+4],6,-145523070),s=_t(s,r,i,a,e[l+11],10,-1120210379),a=_t(a,s,r,i,e[l+2],15,718787259),i=_t(i,a,s,r,e[l+9],21,-343485551),r=gn(r,f),i=gn(i,d),a=gn(a,p),s=gn(s,h)}return[r,i,a,s]}function eA(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array($v(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function gn(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function tA(e,t){return e<<t|e>>>32-t}function us(e,t,r,i,a,s){return gn(tA(gn(gn(t,e),gn(i,s)),a),r)}function St(e,t,r,i,a,s,l){return us(t&r|~t&i,e,t,a,s,l)}function Et(e,t,r,i,a,s,l){return us(t&i|r&~i,e,t,a,s,l)}function xt(e,t,r,i,a,s,l){return us(t^r^i,e,t,a,s,l)}function _t(e,t,r,i,a,s,l){return us(r^(t|~i),e,t,a,s,l)}var rA=Lv("v3",48,XO);function nA(e,t,r){e=e||{};var i=e.random||(e.rng||Mv)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return ss(i)}function iA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function tl(e,t){return e<<t|e>>>32-t}function oA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),f=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];f[d]=p}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 b=0;b<l;++b){for(var v=new Uint32Array(80),w=0;w<16;++w)v[w]=f[b][w];for(var E=16;E<80;++E)v[E]=tl(v[E-3]^v[E-8]^v[E-14]^v[E-16],1);for(var y=r[0],x=r[1],A=r[2],I=r[3],P=r[4],F=0;F<80;++F){var O=Math.floor(F/20),L=tl(y,5)+iA(O,x,A,I)+P+t[O]+v[F]>>>0;P=I,I=A,A=tl(x,30)>>>0,x=y,y=L}r[0]=r[0]+y>>>0,r[1]=r[1]+x>>>0,r[2]=r[2]+A>>>0,r[3]=r[3]+I>>>0,r[4]=r[4]+P>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var aA=Lv("v5",80,oA);const sA="00000000-0000-0000-0000-000000000000";function uA(e){if(!as(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const lA=Object.freeze(Object.defineProperty({__proto__:null,NIL:sA,parse:Fv,stringify:ss,v1:GO,v3:rA,v4:nA,v5:aA,validate:as,version:uA},Symbol.toStringTag,{value:"Module"})),fA=I_(lA);function mf(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}mf.prototype.convert=function(e){var t,r,i,a={},s=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(t=0;t<f;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<f;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);f=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};mf.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var cA=mf,dA=cA;function go(e,t){var r=new dA(e,t);return function(i){return r.convert(i)}}go.BIN="01";go.OCT="01234567";go.DEC="0123456789";go.HEX="0123456789abcdef";var pA=go;const{v4:rl}=fA,Sa=pA,nl="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",hA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",vA={consistentLength:!0};let il;const Bp=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},mA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},gA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var gf=(()=>{const e=(t,r)=>{const i=t||nl,a={...vA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=gA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},f=Sa(Sa.HEX,i),d=Sa(i,Sa.HEX),p=()=>Bp(rl(),f,l),h={new:p,generate:p,uuid:rl,fromUUID:b=>Bp(b,f,l),toUUID:b=>mA(b,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:nl,cookieBase90:hA},e.uuid=rl,e.generate=()=>(il||(il=e(nl).generate),il()),e})();const Dv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:a="rgb(241, 245, 249)"})=>{const s=`indent_line_${gf.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[$.jsx("defs",{children:$.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:a})})}),i?$.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):$.jsx("rect",{fill:i?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},kv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return $.jsx(mt.FdDown,{className:ft(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?$.jsx(mt.FdDown,{}):$.jsx(mt.FdRight,{});default:return $.jsx(mt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),yf=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:f})=>{var w;const{key:d,children:p}=e,h=D.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),b=l&&typeof l=="function"?l(e,t,h,a,s):bA(e,t,h,f);return!((w=e.options)!=null&&w.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:b},d),wA(p||[],t,s,r,i,h.expanded,a,f,l)]}):null},yA=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=$.jsx(Iv,{children:i})),$.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:()=>{t&&t(e)},children:[s,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},wA=function(e,t,r,i,a,s,l,f,d){return e.length&&s?e.map(p=>$.jsx(yf,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:f,renderNode:d},p.key)):null},bA=function(e,t,r,i){return $.jsxs($.Fragment,{children:[$.jsx(Dv,{showLines:!0,depth:t}),$.jsx(kv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),yA(e,i)]})},Ea=e=>t=>e===t,SA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:f="always",encapsulated:d,className:p}){const[h,b]=D.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));D.useEffect(()=>{f==="when-collapsed"&&h.expandedKeys.length>0||b({...h,expandedKeys:l||h.expandedKeys})},[l]);const v=D.useCallback(A=>{if(!A)return;const I=h.expandedKeys.findIndex(Ea(A.key));let P=[];I===-1?(P=[...h.expandedKeys,A.key],b(()=>({...h,expandedKeys:P})),a&&a(P)):(P=h.expandedKeys.filter(F=>F!==A.key),b(()=>({...h,expandedKeys:P})),a&&a(P))},[h]),w=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable))return;h.selectedKeys.findIndex(Ea(A.key))===-1&&b({...h,selectedKeys:[...h.selectedKeys,A.key]})},[h]),E=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable))return;h.selectedKeys.findIndex(Ea(A.key))===-1&&b({...h,selectedKeys:[A.key]})},[h]),y=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable)){b({...h,selectedKeys:[]});return}h.selectedKeys.findIndex(Ea(A.key))!==-1&&b({...h,selectedKeys:h.selectedKeys.filter(F=>F!==A.key)})},[h]),x=D.useMemo(()=>({expand:v,select:w,selectSingle:E,deselect:y}),[y,v,w,E]);return $.jsx("div",{className:ft("fd-tree",p,{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(A=>$.jsx(yf,{node:A,searchQuery:s||"",depth:0,expandedKeys:h.expandedKeys,selectedKeys:h.selectedKeys,actions:x,renderNode:r,onNodeClick:i},A.key))})};function EA(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qe.apply(null,arguments)}function xA(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _A={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Nv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var OA=/[A-Z]|^ms/g,AA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jv=function(t){return t.charCodeAt(1)===45},Hp=function(t){return t!=null&&typeof t!="boolean"},ol=Nv(function(e){return jv(e)?e:e.replace(OA,"-$&").toLowerCase()}),qp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(AA,function(i,a,s){return Or={name:a,styles:s,next:Or},a})}return _A[t]!==1&&!jv(t)&&typeof r=="number"&&r!==0?r+"px":r};function oo(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Or={name:a.name,styles:a.styles,next:Or},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Or={name:l.name,styles:l.styles,next:Or},l=l.next;var f=s.styles+";";return f}return TA(e,t,r)}case"function":{if(e!==void 0){var d=Or,p=r(e);return Or=d,oo(e,t,p)}break}}var h=r;if(t==null)return h;var b=t[h];return b!==void 0?b:h}function TA(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=oo(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var f=l;t!=null&&t[f]!==void 0?i+=s+"{"+t[f]+"}":Hp(f)&&(i+=ol(s)+":"+qp(s,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)Hp(l[d])&&(i+=ol(s)+":"+qp(s,l[d])+";");else{var p=oo(e,t,l);switch(s){case"animation":case"animationName":{i+=ol(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var Zp=/label:\s*([^\s;{]+)\s*(;|$)/g,Or;function CA(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";Or=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=oo(r,t,s);else{var l=s;a+=l[0]}for(var f=1;f<e.length;f++)if(a+=oo(r,t,e[f]),i){var d=s;a+=d[f]}Zp.lastIndex=0;for(var p="",h;(h=Zp.exec(a))!==null;)p+="-"+h[1];var b=xA(a)+p;return{name:b,styles:a,next:Or}}var PA=function(t){return t()},RA=C.useInsertionEffect?C.useInsertionEffect:!1,IA=RA||PA,MA=!0;function FA(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var Wv=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||MA===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},LA=function(t,r,i){Wv(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},$A=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,DA=Nv(function(e){return $A.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),kA=DA,NA=function(t){return t!=="theme"},Gp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?kA:NA},Kp=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},jA=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return Wv(r,i,a),IA(function(){return LA(r,i,a)}),null},WA=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var f=Kp(t,r,i),d=f||Gp(a),p=!d("as");return function(){var h=arguments,b=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)b.push.apply(b,h);else{var v=h[0];b.push(v[0]);for(var w=h.length,E=1;E<w;E++)b.push(h[E],v[E])}var y=Ml.withEmotionCache(function(x,A,I){var P=p&&x.as||a,F="",O=[],L=x;if(x.theme==null){L={};for(var U in x)L[U]=x[U];L.theme=C.useContext(Ml.ThemeContext)}typeof x.className=="string"?F=FA(A.registered,O,x.className):x.className!=null&&(F=x.className+" ");var z=CA(b.concat(O),A.registered,L);F+=A.key+"-"+z.name,l!==void 0&&(F+=" "+l);var q=p&&f===void 0?Gp(P):d,V={};for(var ee in x)p&&ee==="as"||q(ee)&&(V[ee]=x[ee]);return V.className=F,I&&(V.ref=I),C.createElement(C.Fragment,null,C.createElement(jA,{cache:A,serialized:z,isStringTag:typeof P=="string"}),C.createElement(P,V))});return y.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=b,y.__emotion_forwardProp=f,Object.defineProperty(y,"toString",{value:function(){return"."+l}}),y.withComponent=function(x,A){var I=e(x,Qe({},r,A,{shouldForwardProp:Kp(y,A,!0)}));return I.apply(void 0,b)},y}},zA=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ka=WA.bind(null);zA.forEach(function(e){Ka[e]=Ka(e)});var UA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},di=new WeakMap,xa=new WeakMap,_a={},al=0,zv=function(e){return e&&(e.host||zv(e.parentNode))},BA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=zv(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},HA=function(e,t,r,i){var a=BA(t,Array.isArray(e)?e:[e]);_a[r]||(_a[r]=new WeakMap);var s=_a[r],l=[],f=new Set,d=new Set(a),p=function(b){!b||f.has(b)||(f.add(b),p(b.parentNode))};a.forEach(p);var h=function(b){!b||d.has(b)||Array.prototype.forEach.call(b.children,function(v){if(f.has(v))h(v);else try{var w=v.getAttribute(i),E=w!==null&&w!=="false",y=(di.get(v)||0)+1,x=(s.get(v)||0)+1;di.set(v,y),s.set(v,x),l.push(v),y===1&&E&&xa.set(v,!0),x===1&&v.setAttribute(r,"true"),E||v.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",v,A)}})};return h(t),f.clear(),al++,function(){l.forEach(function(b){var v=di.get(b)-1,w=s.get(b)-1;di.set(b,v),s.set(b,w),v||(xa.has(b)||b.removeAttribute(i),xa.delete(b)),w||b.removeAttribute(r)}),al--,al||(di=new WeakMap,di=new WeakMap,xa=new WeakMap,_a={})}},qA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=UA(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),HA(i,a,r,"aria-hidden")):function(){return null}};/*! *****************************************************************************
|
|
18
|
+
Copyright (c) Microsoft Corporation.
|
|
77
19
|
|
|
78
|
-
|
|
20
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
21
|
+
purpose with or without fee is hereby granted.
|
|
79
22
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
24
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
25
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
26
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
27
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
28
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
29
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
30
|
+
***************************************************************************** */var mi=function(){return mi=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},mi.apply(this,arguments)};function ZA(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}var Wa="right-scroll-bar-position",za="width-before-scroll-bar",GA="with-scroll-bars-hidden",KA="--removed-body-scroll-bar-size",kl=function(e,t){return kl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},kl(e,t)};function ls(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ya=function(){return Ya=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ya.apply(this,arguments)};function YA(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function Nl(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(f){l={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function Wl(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function VA(e){return e}function XA(e,t){t===void 0&&(t=VA);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(f){return f!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var f=r;r=[],f.forEach(s),l=r}var d=function(){var h=l;l=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return a}function JA(e){e===void 0&&(e={});var t=XA(null);return t.options=Ya({async:!0,ssr:!1},e),t}var Uv=function(e){var t=e.sideCar,r=YA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,Ya({},r))};Uv.isSideCarExport=!0;function QA(e,t){return e.useMedium(t),Uv}var Bv=JA();function sl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eT(e,t){var r=D.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var tT=typeof window<"u"?C.useLayoutEffect:C.useEffect,Yp=new WeakMap;function rT(e,t){var r=eT(null,function(i){return e.forEach(function(a){return sl(a,i)})});return tT(function(){var i=Yp.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(f){s.has(f)||sl(f,null)}),s.forEach(function(f){a.has(f)||sl(f,l)})}Yp.set(r,e)},[e]),r}var ul=function(){},fs=C.forwardRef(function(e,t){var r=C.useRef(null),i=C.useState({onScrollCapture:ul,onWheelCapture:ul,onTouchMoveCapture:ul}),a=i[0],s=i[1],l=e.forwardProps,f=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,b=e.shards,v=e.sideCar,w=e.noIsolation,E=e.inert,y=e.allowPinchZoom,x=e.as,A=x===void 0?"div":x,I=ZA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=v,F=rT([r,t]),O=mi({},I,a);return C.createElement(C.Fragment,null,h&&C.createElement(P,{sideCar:Bv,removeScrollBar:p,shards:b,noIsolation:w,inert:E,setCallbacks:s,allowPinchZoom:!!y,lockRef:r}),l?C.cloneElement(C.Children.only(f),mi({},O,{ref:F})):C.createElement(A,mi({},O,{className:d,ref:F}),f))});fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fs.classNames={fullWidth:za,zeroRight:Wa};var nT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nT();return t&&e.setAttribute("nonce",t),e}function oT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=iT())&&(oT(t,r),aT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uT=function(){var e=sT();return function(t,r){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Hv=function(){var e=uT(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},lT={left:0,top:0,right:0,gap:0},ll=function(e){return parseInt(e||"",10)||0},fT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[ll(r),ll(i),ll(a)]},cT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lT;var t=fT(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},dT=Hv(),gi="data-scroll-locked",pT=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
31
|
+
.`.concat(GA,` {
|
|
86
32
|
overflow: hidden `).concat(i,`;
|
|
87
|
-
padding-right: `).concat(
|
|
33
|
+
padding-right: `).concat(f,"px ").concat(i,`;
|
|
88
34
|
}
|
|
89
|
-
body {
|
|
35
|
+
body[`).concat(gi,`] {
|
|
90
36
|
overflow: hidden `).concat(i,`;
|
|
91
37
|
overscroll-behavior: contain;
|
|
92
38
|
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
@@ -95,62 +41,66 @@ You may have forgotten to import it.`);var i=t.__emotion_real===t,a=i&&t.__emoti
|
|
|
95
41
|
padding-right: `).concat(l,`px;
|
|
96
42
|
margin-left:0;
|
|
97
43
|
margin-top:0;
|
|
98
|
-
margin-right: `).concat(
|
|
99
|
-
`),r==="padding"&&"padding-right: ".concat(
|
|
44
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
45
|
+
`),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
100
46
|
}
|
|
101
47
|
|
|
102
|
-
.`).concat(
|
|
103
|
-
right: `).concat(
|
|
48
|
+
.`).concat(Wa,` {
|
|
49
|
+
right: `).concat(f,"px ").concat(i,`;
|
|
104
50
|
}
|
|
105
51
|
|
|
106
|
-
.`).concat(
|
|
107
|
-
margin-right: `).concat(
|
|
52
|
+
.`).concat(za,` {
|
|
53
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
108
54
|
}
|
|
109
55
|
|
|
110
|
-
.`).concat(
|
|
56
|
+
.`).concat(Wa," .").concat(Wa,` {
|
|
111
57
|
right: 0 `).concat(i,`;
|
|
112
58
|
}
|
|
113
59
|
|
|
114
|
-
.`).concat(
|
|
60
|
+
.`).concat(za," .").concat(za,` {
|
|
115
61
|
margin-right: 0 `).concat(i,`;
|
|
116
62
|
}
|
|
117
63
|
|
|
118
|
-
body {
|
|
119
|
-
`).concat(
|
|
64
|
+
body[`).concat(gi,`] {
|
|
65
|
+
`).concat(KA,": ").concat(f,`px;
|
|
120
66
|
}
|
|
121
|
-
`)},
|
|
122
|
-
.block-interactivity
|
|
123
|
-
.allow-interactivity
|
|
124
|
-
`)},nR=0,Qi=[];function iR(e){var t=F.useRef([]),r=F.useRef([0,0]),i=F.useRef(),a=F.useState(nR++)[0],s=F.useState(Mm)[0],l=F.useRef(e);F.useEffect(function(){l.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=qo([e.lockRef.current],(e.shards||[]).map(Lh),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=F.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!l.current.allowPinchZoom;var C=ss(g),P=r.current,T="deltaX"in g?g.deltaX:P[0]-C[0],$="deltaY"in g?g.deltaY:P[1]-C[1],A,D=g.target,H=Math.abs(T)>Math.abs($)?"h":"v";if("touches"in g&&H==="h"&&D.type==="range")return!1;var j=Mh(H,D);if(!j)return!0;if(j?A=H:(A=H==="v"?"h":"v",j=Mh(H,D)),!j)return!1;if(!i.current&&"changedTouches"in g&&(T||$)&&(i.current=A),!A)return!0;var V=i.current||A;return eR(V,x,g,V==="h"?T:$,!0)},[]),d=F.useCallback(function(g){var x=g;if(!(!Qi.length||Qi[Qi.length-1]!==s)){var C="deltaY"in x?Fh(x):ss(x),P=t.current.filter(function(A){return A.name===x.type&&(A.target===x.target||x.target===A.shadowParent)&&tR(A.delta,C)})[0];if(P&&P.should){x.cancelable&&x.preventDefault();return}if(!P){var T=(l.current.shards||[]).map(Lh).filter(Boolean).filter(function(A){return A.contains(x.target)}),$=T.length>0?c(x,T[0]):!l.current.noIsolation;$&&x.cancelable&&x.preventDefault()}}},[]),p=F.useCallback(function(g,x,C,P){var T={name:g,delta:x,target:C,should:P,shadowParent:oR(C)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function($){return $!==T})},1)},[]),h=F.useCallback(function(g){r.current=ss(g),i.current=void 0},[]),w=F.useCallback(function(g){p(g.type,Fh(g),g.target,c(g,e.lockRef.current))},[]),S=F.useCallback(function(g){p(g.type,ss(g),g.target,c(g,e.lockRef.current))},[]);F.useEffect(function(){return Qi.push(s),e.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:S}),document.addEventListener("wheel",d,Ji),document.addEventListener("touchmove",d,Ji),document.addEventListener("touchstart",h,Ji),function(){Qi=Qi.filter(function(g){return g!==s}),document.removeEventListener("wheel",d,Ji),document.removeEventListener("touchmove",d,Ji),document.removeEventListener("touchstart",h,Ji)}},[]);var v=e.removeScrollBar,_=e.inert;return F.createElement(F.Fragment,null,_?F.createElement(s,{styles:rR(a)}):null,v?F.createElement(GT,{gapMode:e.gapMode}):null)}function oR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aR=$T(Im,iR);var Dm=F.forwardRef(function(e,t){return F.createElement(Gs,Jr({},e,{ref:t,sideCar:aR}))});Dm.classNames=Gs.classNames;const sR=Dm,Zo=globalThis!=null&&globalThis.document?F.useLayoutEffect:()=>{},uR=F["useId".toString()]||(()=>{});let lR=0;function cR(e){const[t,r]=F.useState(uR());return Zo(()=>{e||r(i=>i??String(lR++))},[e]),e||(t?`radix-${t}`:"")}function km(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function Ti(...e){return F.useCallback(km(...e),e)}const Nm=F.forwardRef((e,t)=>{const{children:r,...i}=e;return F.Children.toArray(r).some($h)?F.createElement(F.Fragment,null,F.Children.map(r,a=>$h(a)?F.createElement(gc,Ct({},i,{ref:t}),a.props.children):a)):F.createElement(gc,Ct({},i,{ref:t}),r)});Nm.displayName="Slot";const gc=F.forwardRef((e,t)=>{const{children:r,...i}=e;return F.isValidElement(r)?F.cloneElement(r,{...dR(i,r.props),ref:km(t,r.ref)}):F.Children.count(r)>1?F.Children.only(null):null});gc.displayName="SlotClone";const fR=({children:e})=>F.createElement(F.Fragment,null,e);function $h(e){return F.isValidElement(e)&&e.type===fR}function dR(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const uo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:F.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Nm:t;return F.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),F.createElement(l,Ct({},s,{ref:i}))})}),{}),jm=e=>{const{present:t,children:r}=e,i=function(l){const[c,d]=F.useState(),p=F.useRef({}),h=F.useRef(l),w=F.useRef("none"),S=l?"mounted":"unmounted",[v,_]=function(g,x){return F.useReducer((C,P)=>{const T=x[C][P];return T??C},g)}(S,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const g=us(p.current);w.current=v==="mounted"?g:"none"},[v]),Zo(()=>{const g=p.current,x=h.current;if(x!==l){const C=w.current,P=us(g);l?_("MOUNT"):P==="none"||(g==null?void 0:g.display)==="none"?_("UNMOUNT"):_(x&&C!==P?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,_]),Zo(()=>{if(c){const g=C=>{const P=us(p.current).includes(C.animationName);C.target===c&&P&&_("ANIMATION_END")},x=C=>{C.target===c&&(w.current=us(p.current))};return c.addEventListener("animationstart",x),c.addEventListener("animationcancel",g),c.addEventListener("animationend",g),()=>{c.removeEventListener("animationstart",x),c.removeEventListener("animationcancel",g),c.removeEventListener("animationend",g)}}_("ANIMATION_END")},[c,_]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:F.useCallback(g=>{g&&(p.current=getComputedStyle(g)),d(g)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):F.Children.only(r),s=Ti(i.ref,a.ref);return typeof r=="function"||i.isPresent?F.cloneElement(a,{ref:s}):null};function us(e){return(e==null?void 0:e.animationName)||"none"}jm.displayName="Presence";let kl=0;function pR(){F.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Dh()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Dh()),kl++,()=>{kl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),kl--}},[])}function Dh(){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 Wm=F.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,d]=F.useState({});return Zo(()=>{d({})},[]),c?Qo.createPortal(F.createElement(uo.div,Ct({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null});function Oi(e){const t=F.useRef(e);return F.useEffect(()=>{t.current=e}),F.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}const kh={bubbles:!1,cancelable:!0},hR=F.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,d]=F.useState(null),p=Oi(a),h=Oi(s),w=F.useRef(null),S=Ti(t,g=>d(g)),v=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(i){let g=function(C){if(v.paused||!c)return;const P=C.target;c.contains(P)?w.current=P:pi(w.current,{select:!0})},x=function(C){!v.paused&&c&&(c.contains(C.relatedTarget)||pi(w.current,{select:!0}))};return document.addEventListener("focusin",g),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x)}}},[i,c,v.paused]),F.useEffect(()=>{if(c){Wh.add(v);const x=document.activeElement;if(!c.contains(x)){const C=new Event("focusScope.autoFocusOnMount",kh);c.addEventListener("focusScope.autoFocusOnMount",p),c.dispatchEvent(C),C.defaultPrevented||(function(P,{select:T=!1}={}){const $=document.activeElement;for(const A of P)if(pi(A,{select:T}),document.activeElement!==$)return}((g=Nh(c),g.filter(P=>P.tagName!=="A")),{select:!0}),document.activeElement===x&&pi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const C=new Event("focusScope.autoFocusOnUnmount",kh);c.addEventListener("focusScope.autoFocusOnUnmount",h),c.dispatchEvent(C),C.defaultPrevented||pi(x??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",h),Wh.remove(v)},0)}}var g},[c,p,h,v]);const _=F.useCallback(g=>{if(!r&&!i||v.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,C=document.activeElement;if(x&&C){const P=g.currentTarget,[T,$]=function(A){const D=Nh(A),H=jh(D,A),j=jh(D.reverse(),A);return[H,j]}(P);T&&$?g.shiftKey||C!==$?g.shiftKey&&C===T&&(g.preventDefault(),r&&pi($,{select:!0})):(g.preventDefault(),r&&pi(T,{select:!0})):C===P&&g.preventDefault()}},[r,i,v.paused]);return F.createElement(uo.div,Ct({tabIndex:-1},l,{ref:S,onKeyDown:_}))});function Nh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jh(e,t){for(const r of e)if(!vR(r,{upTo:t}))return r}function vR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(i){return i instanceof HTMLInputElement&&"select"in i}(e)&&t&&e.select()}}const Wh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Uh(e,t),e.unshift(t)},remove(t){var r;e=Uh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function Uh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function mR(e){const t=Oi(e);F.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let Hh,ls=0;function gR({disabled:e}){const t=F.useRef(!1);Zo(()=>{if(e){let r=function(){ls--,ls===0&&(document.body.style.pointerEvents=Hh)},i=function(a){t.current=a.pointerType!=="mouse"};return ls===0&&(Hh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ls++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function Ei(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const yR=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wR=F.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=e,p=F.useContext(yR),[h,w]=F.useState(null),[,S]=F.useState({}),v=Ti(t,D=>w(D)),_=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=_.indexOf(g),C=h?_.indexOf(h):-1,P=p.layersWithOutsidePointerEventsDisabled.size>0,T=C>=x,$=function(D){const H=Oi(D),j=F.useRef(!1);return F.useEffect(()=>{const V=ye=>{ye.target&&!j.current&&zh("dismissableLayer.pointerDownOutside",H,{originalEvent:ye}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",V)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",V)}},[H]),{onPointerDownCapture:()=>j.current=!0}}(D=>{const H=D.target,j=[...p.branches].some(V=>V.contains(H));T&&!j&&(a==null||a(D),l==null||l(D),D.defaultPrevented||c==null||c())}),A=function(D){const H=Oi(D),j=F.useRef(!1);return F.useEffect(()=>{const V=ee=>{ee.target&&!j.current&&zh("dismissableLayer.focusOutside",H,{originalEvent:ee})};return document.addEventListener("focusin",V),()=>document.removeEventListener("focusin",V)},[H]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(D=>{const H=D.target;[...p.branches].some(j=>j.contains(H))||(s==null||s(D),l==null||l(D),D.defaultPrevented||c==null||c())});return mR(D=>{C===p.layers.size-1&&(i==null||i(D),D.defaultPrevented||c==null||c())}),gR({disabled:r}),F.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),Bh())},[h,r,p]),F.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),Bh())},[h,p]),F.useEffect(()=>{const D=()=>S({});return document.addEventListener("dismissableLayer.update",D),()=>document.removeEventListener("dismissableLayer.update",D)},[]),F.createElement(uo.div,Ct({},d,{ref:v,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:Ei(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ei(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ei(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Bh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function zh(e,t,r){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function qh(e){const[t,r]=F.useState(void 0);return F.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,c=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,c=d.height}r({width:l,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function bR(e,t){const r=vi.get(e);return r===void 0?(vi.set(e,{rect:{},callbacks:[t]}),vi.size===1&&(yc=requestAnimationFrame(Um))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=vi.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(vi.delete(e),vi.size===0&&cancelAnimationFrame(yc))}}let yc;const vi=new Map;function Um(){const e=[];vi.forEach((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))}),e.forEach(t=>{t.callbacks.forEach(r=>r(t.rect))}),yc=requestAnimationFrame(Um)}function SR(e){const[t,r]=F.useState();return F.useEffect(()=>{if(e){const i=bR(e,r);return()=>{r(void 0),i()}}},[e]),t}function Hm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>F.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return F.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=F.createContext(s),c=r.length;function d(p){const{scope:h,children:w,...S}=p,v=(h==null?void 0:h[e][c])||l,_=F.useMemo(()=>S,Object.values(S));return F.createElement(v.Provider,{value:_},w)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const w=(h==null?void 0:h[e][c])||l,S=F.useContext(w);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},ER(i,...t)]}function ER(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const s=i.reduce((l,{useScope:c,scopeName:d})=>({...l,...c(a)[`__scope${d}`]}),{});return F.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function _R({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:xR,arrowStyles:Nl};const w=function(H,j,V=0,ee=0,ye){const Re=ye?ye.height:0,Ee=Zh(j,H,"x"),se=Zh(j,H,"y"),Fe=se.before-V-Re,be=se.after+V+Re,Oe=Ee.before-V-Re,Be=Ee.after+V+Re;return{top:{start:{x:Ee.start+ee,y:Fe},center:{x:Ee.center,y:Fe},end:{x:Ee.end-ee,y:Fe}},right:{start:{x:Be,y:se.start+ee},center:{x:Be,y:se.center},end:{x:Be,y:se.end-ee}},bottom:{start:{x:Ee.start+ee,y:be},center:{x:Ee.center,y:be},end:{x:Ee.end-ee,y:be}},left:{start:{x:Oe,y:se.start+ee},center:{x:Oe,y:se.center},end:{x:Oe,y:se.end-ee}}}}(t,e,s,c,r),S=w[a][l];if(d===!1){const H=Gh(S);let j=Nl;return r&&(j=Yh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Kh(t,a,l,i,r)},arrowStyles:j,placedSide:a,placedAlign:l}}const v=DOMRect.fromRect({...t,...S}),_=(g=p,x=h,DOMRect.fromRect({width:g.width-2*x,height:g.height-2*x,x:g.left+x,y:g.top+x}));var g,x;const C=Xh(v,_),P=w[Vh(a)][l],T=function(H,j,V){const ee=Vh(H);return j[H]&&!V[ee]?ee:H}(a,C,Xh(DOMRect.fromRect({...t,...P}),_)),$=function(H,j,V,ee,ye){const Re=V==="top"||V==="bottom",Ee=Re?"left":"top",se=Re?"right":"bottom",Fe=Re?"width":"height",be=j[Fe]>H[Fe];return(ee==="start"||ee==="center")&&(ye[Ee]&&be||ye[se]&&!be)?"end":(ee==="end"||ee==="center")&&(ye[se]&&be||ye[Ee]&&!be)?"start":ee}(t,e,a,l,C),A=Gh(w[T][$]);let D=Nl;return r&&(D=Yh({popperSize:t,arrowSize:r,arrowOffset:i,side:T,align:$})),{popperStyles:{...A,"--radix-popper-transform-origin":Kh(t,T,$,i,r)},arrowStyles:D,placedSide:T,placedAlign:$}}function Zh(e,t,r){const i=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}function Gh(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 Kh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+c}px`:-c+"px"):(p=t==="left"?`${e.width+c}px`:-c+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const xR={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Nl={position:"absolute",opacity:0};function Yh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:OR(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function OR(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Vh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Xh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Bm,zm]=Hm("Popper"),[AR,qm]=Bm("Popper"),TR=e=>{const{__scopePopper:t,children:r}=e,[i,a]=F.useState(null);return F.createElement(AR,{scope:t,anchor:i,onAnchorChange:a},r)},RR=F.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=qm("PopperAnchor",r),l=F.useRef(null),c=Ti(t,l);return F.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:F.createElement(uo.div,Ct({},a,{ref:c}))}),[CR,oF]=Bm("PopperContent"),PR=F.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:d=!0,...p}=e,h=qm("PopperContent",r),[w,S]=F.useState(),v=SR(h.anchor),[_,g]=F.useState(null),x=qh(_),[C,P]=F.useState(null),T=qh(C),$=Ti(t,Re=>g(Re)),A=function(){const[Re,Ee]=F.useState(void 0);return F.useEffect(()=>{let se;function Fe(){Ee({width:window.innerWidth,height:window.innerHeight})}function be(){window.clearTimeout(se),se=window.setTimeout(Fe,100)}return Fe(),window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]),Re}(),D=A?DOMRect.fromRect({...A,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:j,placedSide:V,placedAlign:ee}=_R({anchorRect:v,popperSize:x,arrowSize:T,arrowOffset:w,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:D,collisionTolerance:c}),ye=V!==void 0;return F.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},F.createElement(CR,{scope:r,arrowStyles:j,onArrowChange:P,onArrowOffsetChange:S},F.createElement(uo.div,Ct({"data-side":V,"data-align":ee},p,{style:{...p.style,animation:ye?void 0:"none"},ref:$}))))}),IR=TR,MR=RR,FR=PR;function LR({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=F.useState(d),[w]=h,S=F.useRef(w),v=Oi(p);return F.useEffect(()=>{S.current!==w&&(v(w),S.current=w)},[w,S,v]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,c=Oi(r);return[l,F.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&c(h)}else a(d)},[s,e,a,c])]}const[$R,aF]=Hm("Popover",[zm]),Xc=zm(),[DR,na]=$R("Popover"),kR=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Xc(t),d=F.useRef(null),[p,h]=F.useState(!1),[w=!1,S]=LR({prop:i,defaultProp:a,onChange:s});return F.createElement(IR,c,F.createElement(DR,{scope:t,contentId:cR(),triggerRef:d,open:w,onOpenChange:S,onOpenToggle:F.useCallback(()=>S(v=>!v),[S]),hasCustomAnchor:p,onCustomAnchorAdd:F.useCallback(()=>h(!0),[]),onCustomAnchorRemove:F.useCallback(()=>h(!1),[]),modal:l},r))},NR=F.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=na("PopoverTrigger",r),s=Xc(r),l=Ti(t,a.triggerRef),c=F.createElement(uo.button,Ct({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Gm(a.open)},i,{ref:l,onClick:Ei(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:F.createElement(MR,Ct({asChild:!0},s),c)}),jR=F.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=na("PopoverContent",e.__scopePopover);return F.createElement(jm,{present:r||a.open},a.modal?F.createElement(WR,Ct({},i,{ref:t})):F.createElement(UR,Ct({},i,{ref:t})))}),WR=F.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=na("PopoverContent",e.__scopePopover),l=F.useRef(null),c=Ti(t,l),d=F.useRef(!1);F.useEffect(()=>{const h=l.current;if(h)return AT(h)},[]);const p=i?Wm:F.Fragment;return F.createElement(p,null,F.createElement(sR,{allowPinchZoom:r},F.createElement(Zm,Ct({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ei(e.onCloseAutoFocus,h=>{var w;h.preventDefault(),d.current||(w=s.triggerRef.current)===null||w===void 0||w.focus()}),onPointerDownOutside:Ei(e.onPointerDownOutside,h=>{const w=h.detail.originalEvent,S=w.button===0&&w.ctrlKey===!0,v=w.button===2||S;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Ei(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),UR=F.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=na("PopoverContent",e.__scopePopover),s=F.useRef(!1),l=r?Wm:F.Fragment;return F.createElement(l,null,F.createElement(Zm,Ct({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current=!0);const h=c.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&c.preventDefault()}})))}),Zm=F.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...w}=e,S=na("PopoverContent",r),v=Xc(r);return pR(),F.createElement(hR,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},F.createElement(wR,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>S.onOpenChange(!1)},F.createElement(FR,Ct({"data-state":Gm(S.open),role:"dialog",id:S.contentId},v,w,{ref:t,style:{...w.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Gm(e){return e?"open":"closed"}const HR=kR,BR=NR,zR=jR;var xs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(xs||{});var Km={},Ks={},Jc={},jl={},cs={exports:{}},fs={exports:{}},qe={};/** @license React v16.13.1
|
|
67
|
+
`)},Vp=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},hT=function(){C.useEffect(function(){return document.body.setAttribute(gi,(Vp()+1).toString()),function(){var e=Vp()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},vT=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;hT();var s=C.useMemo(function(){return cT(a)},[a]);return C.createElement(dT,{styles:pT(s,!t,a,r?"":"!important")})},mT=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},gT=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Xp=function(e,t){var r=t;do{var i=qv(e,r);if(i){var a=Zv(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},yT=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},wT=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},qv=function(e,t){return e==="v"?mT(t):gT(t)},Zv=function(e,t){return e==="v"?yT(t):wT(t)},bT=function(e,t,r,i,a){var s=i,l=r.target,f=t.contains(l),d=!1,p=s>0,h=0,b=0;do{var v=Zv(e,l),w=v[0],E=v[1],y=v[2],x=E-y-w;(w||x)&&qv(e,l)&&(h+=x,b+=w),l=l.parentNode}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(p&&h===0||!p&&b===0)&&(d=!0),d},zl=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return zl=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{zl=!1}var pi=zl?{passive:!1}:!1,Aa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jp=function(e){return[e.deltaX,e.deltaY]},Qp=function(e){return e&&"current"in e?e.current:e},ST=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ET=function(e){return`
|
|
68
|
+
.block-interactivity-`+e+` {pointer-events: none;}
|
|
69
|
+
.allow-interactivity-`+e+` {pointer-events: all;}
|
|
70
|
+
`},xT=0,hi=[];function _T(e){var t=C.useRef([]),r=C.useRef([0,0]),i=C.useRef(),a=C.useState(xT++)[0],s=C.useState(function(){return Hv()})[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+a);var y=[e.lockRef.current].concat((e.shards||[]).map(Qp)).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-"+a)}),function(){document.body.classList.remove("block-interactivity-"+a),y.forEach(function(x){return x.classList.remove("allow-interactivity-"+a)})}}},[e.inert,e.lockRef.current,e.shards]);var f=C.useCallback(function(y,x){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var A=Aa(y),I=r.current,P="deltaX"in y?y.deltaX:I[0]-A[0],F="deltaY"in y?y.deltaY:I[1]-A[1],O,L=y.target,U=Math.abs(P)>Math.abs(F)?"h":"v",z=Xp(U,L);if(!z)return!0;if(z?O=U:(O=U==="v"?"h":"v",z=Xp(U,L)),!z)return!1;if(!i.current&&"changedTouches"in y&&(P||F)&&(i.current=O),!O)return!0;var q=i.current||O;return bT(q,x,y,q==="h"?P:F)},[]),d=C.useCallback(function(y){var x=y;if(!(!hi.length||hi[hi.length-1]!==s)){var A="deltaY"in x?Jp(x):Aa(x),I=t.current.filter(function(O){return O.name===x.type&&O.target===x.target&&ST(O.delta,A)})[0];if(I&&I.should){x.preventDefault();return}if(!I){var P=(l.current.shards||[]).map(Qp).filter(Boolean).filter(function(O){return O.contains(x.target)}),F=P.length>0?f(x,P[0]):!l.current.noIsolation;F&&x.preventDefault()}}},[]),p=C.useCallback(function(y,x,A,I){var P={name:y,delta:x,target:A,should:I};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(F){return F!==P})},1)},[]),h=C.useCallback(function(y){r.current=Aa(y),i.current=void 0},[]),b=C.useCallback(function(y){p(y.type,Jp(y),y.target,f(y,e.lockRef.current))},[]),v=C.useCallback(function(y){p(y.type,Aa(y),y.target,f(y,e.lockRef.current))},[]);C.useEffect(function(){return hi.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:v}),document.addEventListener("wheel",d,pi),document.addEventListener("touchmove",d,pi),document.addEventListener("touchstart",h,pi),function(){hi=hi.filter(function(y){return y!==s}),document.removeEventListener("wheel",d,pi),document.removeEventListener("touchmove",d,pi),document.removeEventListener("touchstart",h,pi)}},[]);var w=e.removeScrollBar,E=e.inert;return C.createElement(C.Fragment,null,E?C.createElement(s,{styles:ET(a)}):null,w?C.createElement(vT,{gapMode:"margin"}):null)}const OT=QA(Bv,_T);var Gv=C.forwardRef(function(e,t){return C.createElement(fs,mi({},e,{ref:t,sideCar:OT}))});Gv.classNames=fs.classNames;const ao=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},AT=C.useId||(()=>{});let TT=0;function CT(e){const[t,r]=C.useState(AT());return ao(()=>{r(i=>i??String(TT++))},[e]),e||(t?`radix-${t}`:"")}function Kv(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function Oi(...e){return C.useCallback(Kv(...e),e)}const Yv=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(eh)?C.createElement(C.Fragment,null,C.Children.map(r,a=>eh(a)?C.createElement(Ul,Qe({},i,{ref:t}),a.props.children):a)):C.createElement(Ul,Qe({},i,{ref:t}),r)});Yv.displayName="Slot";const Ul=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...RT(i,r.props),ref:Kv(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});Ul.displayName="SlotClone";const PT=({children:e})=>C.createElement(C.Fragment,null,e);function eh(e){return C.isValidElement(e)&&e.type===PT}function RT(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const yo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Yv:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,Qe({},s,{ref:i}))})}),{}),Vv=e=>{const{present:t,children:r}=e,i=function(l){const[f,d]=C.useState(),p=C.useRef({}),h=C.useRef(l),b=C.useRef("none"),v=l?"mounted":"unmounted",[w,E]=function(y,x){return C.useReducer((A,I)=>{const P=x[A][I];return P??A},y)}(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const y=Ta(p.current);b.current=w==="mounted"?y:"none"},[w]),ao(()=>{const y=p.current,x=h.current;if(x!==l){const A=b.current,I=Ta(y);l?E("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?E("UNMOUNT"):E(x&&A!==I?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,E]),ao(()=>{if(f){const y=A=>{const I=Ta(p.current).includes(A.animationName);A.target===f&&I&&E("ANIMATION_END")},x=A=>{A.target===f&&(b.current=Ta(p.current))};return f.addEventListener("animationstart",x),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",x),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}E("ANIMATION_END")},[f,E]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:C.useCallback(y=>{y&&(p.current=getComputedStyle(y)),d(y)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):C.Children.only(r),s=Oi(i.ref,a.ref);return typeof r=="function"||i.isPresent?C.cloneElement(a,{ref:s}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Vv.displayName="Presence";let fl=0;function IT(){C.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:th()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:th()),fl++,()=>{fl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),fl--}},[])}function th(){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 Xv=C.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,f=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,d]=C.useState({});return ao(()=>{d({})},[]),f?ho.createPortal(C.createElement(yo.div,Qe({"data-radix-portal":""},l,{ref:t,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),f):null});function rh(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function Jv(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function MT(...e){return C.useCallback(Jv(...e),e)}const Qv=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(nh)?C.createElement(C.Fragment,null,C.Children.map(r,a=>nh(a)?C.createElement(Bl,Qe({},i,{ref:t}),a.props.children):a)):C.createElement(Bl,Qe({},i,{ref:t}),r)});Qv.displayName="Slot";const Bl=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...LT(i,r.props),ref:Jv(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});Bl.displayName="SlotClone";const FT=({children:e})=>C.createElement(C.Fragment,null,e);function nh(e){return C.isValidElement(e)&&e.type===FT}function LT(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const $T=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Qv:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,Qe({},s,{ref:i}))})}),{}),ih={bubbles:!1,cancelable:!0},DT=C.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[f,d]=C.useState(null),p=rh(a),h=rh(s),b=C.useRef(null),v=MT(t,y=>d(y)),w=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let y=function(A){if(w.paused||!f)return;const I=A.target;f.contains(I)?b.current=I:Ln(b.current,{select:!0})},x=function(A){!w.paused&&f&&(f.contains(A.relatedTarget)||Ln(b.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x)}}},[i,f,w.paused]),C.useEffect(()=>{if(f){sh.add(w);const x=document.activeElement;if(!f.contains(x)){const A=new Event("focusScope.autoFocusOnMount",ih);f.addEventListener("focusScope.autoFocusOnMount",p),f.dispatchEvent(A),A.defaultPrevented||(function(I,{select:P=!1}={}){const F=document.activeElement;for(const O of I)if(Ln(O,{select:P}),document.activeElement!==F)return}((y=oh(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===x&&Ln(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const A=new Event("focusScope.autoFocusOnUnmount",ih);f.addEventListener("focusScope.autoFocusOnUnmount",h),f.dispatchEvent(A),A.defaultPrevented||Ln(x??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",h),sh.remove(w)},0)}}var y},[f,p,h,w]);const E=C.useCallback(y=>{if(!r&&!i||w.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,A=document.activeElement;if(x&&A){const I=y.currentTarget,[P,F]=function(O){const L=oh(O),U=ah(L,O),z=ah(L.reverse(),O);return[U,z]}(I);P&&F?y.shiftKey||A!==F?y.shiftKey&&A===P&&(y.preventDefault(),r&&Ln(F,{select:!0})):(y.preventDefault(),r&&Ln(P,{select:!0})):A===I&&y.preventDefault()}},[r,i,w.paused]);return C.createElement($T.div,Qe({tabIndex:-1},l,{ref:v,onKeyDown:E}))});function oh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ah(e,t){for(const r of e)if(!kT(r,{upTo:t}))return r}function kT(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ln(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(i){return i instanceof HTMLInputElement&&"select"in i}(e)&&t&&e.select()}}const sh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=uh(e,t),e.unshift(t)},remove(t){var r;e=uh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function uh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function so(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function NT(e){const t=so(e);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let lh,Ca=0;function jT({disabled:e}){const t=C.useRef(!1);ao(()=>{if(e){let r=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=lh)},i=function(a){t.current=a.pointerType!=="mouse"};return Ca===0&&(lh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function Bn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const WT=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zT=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:f,...d}=e,p=C.useContext(WT),[h,b]=C.useState(null),[,v]=C.useState({}),w=Oi(t,L=>b(L)),E=Array.from(p.layers),[y]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=E.indexOf(y),A=h?E.indexOf(h):-1,I=p.layersWithOutsidePointerEventsDisabled.size>0,P=A>=x,F=function(L){const U=so(L),z=C.useRef(!1);return C.useEffect(()=>{const q=ee=>{ee.target&&!z.current&&ch("dismissableLayer.pointerDownOutside",U,{originalEvent:ee}),z.current=!1},V=window.setTimeout(()=>{document.addEventListener("pointerdown",q)},0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",q)}},[U]),{onPointerDownCapture:()=>z.current=!0}}(L=>{const U=L.target,z=[...p.branches].some(q=>q.contains(U));P&&!z&&(a==null||a(L),l==null||l(L),L.defaultPrevented||f==null||f())}),O=function(L){const U=so(L),z=C.useRef(!1);return C.useEffect(()=>{const q=V=>{V.target&&!z.current&&ch("dismissableLayer.focusOutside",U,{originalEvent:V})};return document.addEventListener("focusin",q),()=>document.removeEventListener("focusin",q)},[U]),{onFocusCapture:()=>z.current=!0,onBlurCapture:()=>z.current=!1}}(L=>{const U=L.target;[...p.branches].some(z=>z.contains(U))||(s==null||s(L),l==null||l(L),L.defaultPrevented||f==null||f())});return NT(L=>{A===p.layers.size-1&&(i==null||i(L),L.defaultPrevented||f==null||f())}),jT({disabled:r}),C.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),fh())},[h,r,p]),C.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),fh())},[h,p]),C.useEffect(()=>{const L=()=>v({});return document.addEventListener("dismissableLayer.update",L),()=>document.removeEventListener("dismissableLayer.update",L)},[]),C.createElement(yo.div,Qe({},d,{ref:w,style:{pointerEvents:I?P?"auto":"none":void 0,...e.style},onFocusCapture:Bn(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Bn(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Bn(e.onPointerDownCapture,F.onPointerDownCapture)}))});function fh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function ch(e,t,r){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function dh(e){const[t,r]=C.useState(void 0);return C.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,f;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,f=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}r({width:l,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function UT(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(Hl=requestAnimationFrame(em))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(Hl))}}let Hl;const Dn=new Map;function em(){const e=[];Dn.forEach((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))}),e.forEach(t=>{t.callbacks.forEach(r=>r(t.rect))}),Hl=requestAnimationFrame(em)}function BT(e){const[t,r]=C.useState();return C.useEffect(()=>{if(e){const i=UT(e,r);return()=>{r(void 0),i()}}},[e]),t}function tm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>C.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return C.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=C.createContext(s),f=r.length;function d(p){const{scope:h,children:b,...v}=p,w=(h==null?void 0:h[e][f])||l,E=C.useMemo(()=>v,Object.values(v));return C.createElement(w.Provider,{value:E},b)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const b=(h==null?void 0:h[e][f])||l,v=C.useContext(b);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},HT(i,...t)]}function HT(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const s=i.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function qT({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:ZT,arrowStyles:cl};const b=function(U,z,q=0,V=0,ee){const be=ee?ee.height:0,pe=ph(z,U,"x"),Ae=ph(z,U,"y"),Ne=Ae.before-q-be,ve=Ae.after+q+be,Te=pe.before-q-be,Ge=pe.after+q+be;return{top:{start:{x:pe.start+V,y:Ne},center:{x:pe.center,y:Ne},end:{x:pe.end-V,y:Ne}},right:{start:{x:Ge,y:Ae.start+V},center:{x:Ge,y:Ae.center},end:{x:Ge,y:Ae.end-V}},bottom:{start:{x:pe.start+V,y:ve},center:{x:pe.center,y:ve},end:{x:pe.end-V,y:ve}},left:{start:{x:Te,y:Ae.start+V},center:{x:Te,y:Ae.center},end:{x:Te,y:Ae.end-V}}}}(t,e,s,f,r),v=b[a][l];if(d===!1){const U=hh(v);let z=cl;return r&&(z=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":vh(t,a,l,i,r)},arrowStyles:z,placedSide:a,placedAlign:l}}const w=DOMRect.fromRect({...t,...v}),E=(y=p,x=h,DOMRect.fromRect({width:y.width-2*x,height:y.height-2*x,x:y.left+x,y:y.top+x}));var y,x;const A=yh(w,E),I=b[gh(a)][l],P=function(U,z,q){const V=gh(U);return z[U]&&!q[V]?V:U}(a,A,yh(DOMRect.fromRect({...t,...I}),E)),F=function(U,z,q,V,ee){const be=q==="top"||q==="bottom",pe=be?"left":"top",Ae=be?"right":"bottom",Ne=be?"width":"height",ve=z[Ne]>U[Ne];return(V==="start"||V==="center")&&(ee[pe]&&ve||ee[Ae]&&!ve)?"end":(V==="end"||V==="center")&&(ee[Ae]&&ve||ee[pe]&&!ve)?"start":V}(t,e,a,l,A),O=hh(b[P][F]);let L=cl;return r&&(L=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:P,align:F})),{popperStyles:{...O,"--radix-popper-transform-origin":vh(t,P,F,i,r)},arrowStyles:L,placedSide:P,placedAlign:F}}function ph(e,t,r){const i=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}function hh(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 vh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+f}px`:-f+"px"):(p=t==="left"?`${e.width+f}px`:-f+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const ZT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},cl={position:"absolute",opacity:0};function mh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,f={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:GT(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function GT(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function gh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function yh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[rm,nm]=tm("Popper"),[KT,im]=rm("Popper"),YT=e=>{const{__scopePopper:t,children:r}=e,[i,a]=C.useState(null);return C.createElement(KT,{scope:t,anchor:i,onAnchorChange:a},r)},VT=C.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=im("PopperAnchor",r),l=C.useRef(null),f=Oi(t,l);return C.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:C.createElement(yo.div,Qe({},a,{ref:f}))}),[XT,C2]=rm("PopperContent"),JT=C.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...p}=e,h=im("PopperContent",r),[b,v]=C.useState(),w=BT(h.anchor),[E,y]=C.useState(null),x=dh(E),[A,I]=C.useState(null),P=dh(A),F=Oi(t,be=>y(be)),O=function(){const[be,pe]=C.useState(void 0);return C.useEffect(()=>{let Ae;function Ne(){pe({width:window.innerWidth,height:window.innerHeight})}function ve(){window.clearTimeout(Ae),Ae=window.setTimeout(Ne,100)}return Ne(),window.addEventListener("resize",ve),()=>window.removeEventListener("resize",ve)},[]),be}(),L=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:z,placedSide:q,placedAlign:V}=qT({anchorRect:w,popperSize:x,arrowSize:P,arrowOffset:b,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:L,collisionTolerance:f}),ee=q!==void 0;return C.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},C.createElement(XT,{scope:r,arrowStyles:z,onArrowChange:I,onArrowOffsetChange:v},C.createElement(yo.div,Qe({"data-side":q,"data-align":V},p,{style:{...p.style,animation:ee?void 0:"none"},ref:F}))))}),QT=YT,eC=VT,tC=JT;function rC({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=C.useState(d),[b]=h,v=C.useRef(b),w=so(p);return C.useEffect(()=>{v.current!==b&&(w(b),v.current=b)},[b,v,w]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,f=so(r);return[l,C.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&f(h)}else a(d)},[s,e,a,f])]}const[nC,P2]=tm("Popover",[nm]),wf=nm(),[iC,wo]=nC("Popover"),oC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,f=wf(t),d=C.useRef(null),[p,h]=C.useState(!1),[b=!1,v]=rC({prop:i,defaultProp:a,onChange:s});return C.createElement(QT,f,C.createElement(iC,{scope:t,contentId:CT(),triggerRef:d,open:b,onOpenChange:v,onOpenToggle:C.useCallback(()=>v(w=>!w),[v]),hasCustomAnchor:p,onCustomAnchorAdd:C.useCallback(()=>h(!0),[]),onCustomAnchorRemove:C.useCallback(()=>h(!1),[]),modal:l},r))},aC=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=wo("PopoverTrigger",r),s=wf(r),l=Oi(t,a.triggerRef),f=C.createElement(yo.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":am(a.open)},i,{ref:l,onClick:Bn(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:C.createElement(eC,Qe({asChild:!0},s),f)}),sC=C.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=wo("PopoverContent",e.__scopePopover);return C.createElement(Vv,{present:r||a.open},a.modal?C.createElement(uC,Qe({},i,{ref:t})):C.createElement(lC,Qe({},i,{ref:t})))}),uC=C.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=wo("PopoverContent",e.__scopePopover),l=C.useRef(null),f=Oi(t,l),d=C.useRef(!1);C.useEffect(()=>{const h=l.current;if(h)return qA(h)},[]);const p=i?Xv:C.Fragment;return C.createElement(p,null,C.createElement(Gv,{allowPinchZoom:r},C.createElement(om,Qe({},a,{ref:f,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bn(e.onCloseAutoFocus,h=>{var b;h.preventDefault(),d.current||(b=s.triggerRef.current)===null||b===void 0||b.focus()}),onPointerDownOutside:Bn(e.onPointerDownOutside,h=>{const b=h.detail.originalEvent,v=b.button===0&&b.ctrlKey===!0,w=b.button===2||v;d.current=w},{checkForDefaultPrevented:!1}),onFocusOutside:Bn(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),lC=C.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=wo("PopoverContent",e.__scopePopover),s=C.useRef(!1),l=r?Xv:C.Fragment;return C.createElement(l,null,C.createElement(om,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),f.preventDefault()),s.current=!1},onInteractOutside:f=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current=!0);const h=f.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&f.preventDefault()}})))}),om=C.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...b}=e,v=wo("PopoverContent",r),w=wf(r);return IT(),C.createElement(DT,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},C.createElement(zT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1)},C.createElement(tC,Qe({"data-state":am(v.open),role:"dialog",id:v.contentId},w,b,{ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function am(e){return e?"open":"closed"}const fC=oC,cC=aC,dC=sC;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{}),sm={},cs={},bf={},dl={},Pa={exports:{}},Ra={exports:{}},Me={};/** @license React v16.13.1
|
|
125
71
|
* react-is.production.min.js
|
|
126
72
|
*
|
|
127
73
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
128
74
|
*
|
|
129
75
|
* This source code is licensed under the MIT license found in the
|
|
130
76
|
* LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/var
|
|
77
|
+
*/var wh;function pC(){if(wh)return Me;wh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=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,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function P(O){if(typeof O=="object"&&O!==null){var L=O.$$typeof;switch(L){case t:switch(O=O.type,O){case d:case p:case i:case s:case a:case b:return O;default:switch(O=O&&O.$$typeof,O){case f:case h:case E:case w:case l:return O;default:return L}}case r:return L}}}function F(O){return P(O)===p}return Me.AsyncMode=d,Me.ConcurrentMode=p,Me.ContextConsumer=f,Me.ContextProvider=l,Me.Element=t,Me.ForwardRef=h,Me.Fragment=i,Me.Lazy=E,Me.Memo=w,Me.Portal=r,Me.Profiler=s,Me.StrictMode=a,Me.Suspense=b,Me.isAsyncMode=function(O){return F(O)||P(O)===d},Me.isConcurrentMode=F,Me.isContextConsumer=function(O){return P(O)===f},Me.isContextProvider=function(O){return P(O)===l},Me.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Me.isForwardRef=function(O){return P(O)===h},Me.isFragment=function(O){return P(O)===i},Me.isLazy=function(O){return P(O)===E},Me.isMemo=function(O){return P(O)===w},Me.isPortal=function(O){return P(O)===r},Me.isProfiler=function(O){return P(O)===s},Me.isStrictMode=function(O){return P(O)===a},Me.isSuspense=function(O){return P(O)===b},Me.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===p||O===s||O===a||O===b||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===E||O.$$typeof===w||O.$$typeof===l||O.$$typeof===f||O.$$typeof===h||O.$$typeof===x||O.$$typeof===A||O.$$typeof===I||O.$$typeof===y)},Me.typeOf=P,Me}var Fe={};/** @license React v16.13.1
|
|
132
78
|
* react-is.development.js
|
|
133
79
|
*
|
|
134
80
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
81
|
*
|
|
136
82
|
* This source code is licensed under the MIT license found in the
|
|
137
83
|
* LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/var Qh;function ZR(){return Qh||(Qh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function T(J){return typeof J=="string"||typeof J=="function"||J===i||J===p||J===s||J===a||J===w||J===S||typeof J=="object"&&J!==null&&(J.$$typeof===_||J.$$typeof===v||J.$$typeof===l||J.$$typeof===c||J.$$typeof===h||J.$$typeof===x||J.$$typeof===C||J.$$typeof===P||J.$$typeof===g)}function $(J){if(typeof J=="object"&&J!==null){var st=J.$$typeof;switch(st){case t:var ut=J.type;switch(ut){case d:case p:case i:case s:case a:case w:return ut;default:var yt=ut&&ut.$$typeof;switch(yt){case c:case h:case _:case v:case l:return yt;default:return st}}case r:return st}}}var A=d,D=p,H=c,j=l,V=t,ee=h,ye=i,Re=_,Ee=v,se=r,Fe=s,be=a,Oe=w,Be=!1;function pt(J){return Be||(Be=!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.")),Z(J)||$(J)===d}function Z(J){return $(J)===p}function Y(J){return $(J)===c}function pe(J){return $(J)===l}function oe(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function fe(J){return $(J)===h}function de(J){return $(J)===i}function ue(J){return $(J)===_}function he(J){return $(J)===v}function le(J){return $(J)===r}function we(J){return $(J)===s}function Se(J){return $(J)===a}function Ve(J){return $(J)===w}Ze.AsyncMode=A,Ze.ConcurrentMode=D,Ze.ContextConsumer=H,Ze.ContextProvider=j,Ze.Element=V,Ze.ForwardRef=ee,Ze.Fragment=ye,Ze.Lazy=Re,Ze.Memo=Ee,Ze.Portal=se,Ze.Profiler=Fe,Ze.StrictMode=be,Ze.Suspense=Oe,Ze.isAsyncMode=pt,Ze.isConcurrentMode=Z,Ze.isContextConsumer=Y,Ze.isContextProvider=pe,Ze.isElement=oe,Ze.isForwardRef=fe,Ze.isFragment=de,Ze.isLazy=ue,Ze.isMemo=he,Ze.isPortal=le,Ze.isProfiler=we,Ze.isStrictMode=Se,Ze.isSuspense=Ve,Ze.isValidElementType=T,Ze.typeOf=$}()),Ze}var ev;function Ym(){return ev||(ev=1,process.env.NODE_ENV==="production"?fs.exports=qR():fs.exports=ZR()),fs.exports}var Wl,tv;function Qc(){if(tv)return Wl;tv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wl=e,Wl}var Ul,rv;function Vm(){return rv||(rv=1,Ul=Function.call.bind(Object.prototype.hasOwnProperty)),Ul}var Hl,nv;function GR(){if(nv)return Hl;nv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qc(),r={},i=Vm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var w;try{if(typeof s[h]!="function"){var S=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}w=s[h](l,h,d,c,null,t)}catch(_){w=_}if(w&&!(w instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof w+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),w instanceof Error&&!(w.message in r)){r[w.message]=!0;var v=p?p():"";e("Failed "+c+" type: "+w.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Hl=a,Hl}var Bl,iv;function KR(){if(iv)return Bl;iv=1;var e=Ym(),t=Dc(),r=Qc(),i=Vm(),a=GR(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Bl=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function w(Z){var Y=Z&&(p&&Z[p]||Z[h]);if(typeof Y=="function")return Y}var S="<<anonymous>>",v={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:P(),arrayOf:T,element:$(),elementType:A(),instanceOf:D,node:ee(),objectOf:j,oneOf:H,oneOfType:V,shape:Re,exact:Ee};function _(Z,Y){return Z===Y?Z!==0||1/Z===1/Y:Z!==Z&&Y!==Y}function g(Z,Y){this.message=Z,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}g.prototype=Error.prototype;function x(Z){if(process.env.NODE_ENV!=="production")var Y={},pe=0;function oe(de,ue,he,le,we,Se,Ve){if(le=le||S,Se=Se||he,Ve!==r){if(d){var J=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 J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var st=le+":"+he;!Y[st]&&pe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Se+"` 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."),Y[st]=!0,pe++)}}return ue[he]==null?de?ue[he]===null?new g("The "+we+" `"+Se+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new g("The "+we+" `"+Se+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:Z(ue,he,le,we,Se)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function C(Z){function Y(pe,oe,fe,de,ue,he){var le=pe[oe],we=be(le);if(we!==Z){var Se=Oe(le);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+Se+"` supplied to `"+fe+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return x(Y)}function P(){return x(l)}function T(Z){function Y(pe,oe,fe,de,ue){if(typeof Z!="function")return new g("Property `"+ue+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var he=pe[oe];if(!Array.isArray(he)){var le=be(he);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected an array."))}for(var we=0;we<he.length;we++){var Se=Z(he,we,fe,de,ue+"["+we+"]",r);if(Se instanceof Error)return Se}return null}return x(Y)}function $(){function Z(Y,pe,oe,fe,de){var ue=Y[pe];if(!c(ue)){var he=be(ue);return new g("Invalid "+fe+" `"+de+"` of type "+("`"+he+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return x(Z)}function A(){function Z(Y,pe,oe,fe,de){var ue=Y[pe];if(!e.isValidElementType(ue)){var he=be(ue);return new g("Invalid "+fe+" `"+de+"` of type "+("`"+he+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return x(Z)}function D(Z){function Y(pe,oe,fe,de,ue){if(!(pe[oe]instanceof Z)){var he=Z.name||S,le=pt(pe[oe]);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected ")+("instance of `"+he+"`."))}return null}return x(Y)}function H(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function Y(pe,oe,fe,de,ue){for(var he=pe[oe],le=0;le<Z.length;le++)if(_(he,Z[le]))return null;var we=JSON.stringify(Z,function(Ve,J){var st=Oe(J);return st==="symbol"?String(J):J});return new g("Invalid "+de+" `"+ue+"` of value `"+String(he)+"` "+("supplied to `"+fe+"`, expected one of "+we+"."))}return x(Y)}function j(Z){function Y(pe,oe,fe,de,ue){if(typeof Z!="function")return new g("Property `"+ue+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected an object."));for(var we in he)if(i(he,we)){var Se=Z(he,we,fe,de,ue+"."+we,r);if(Se instanceof Error)return Se}return null}return x(Y)}function V(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Y=0;Y<Z.length;Y++){var pe=Z[Y];if(typeof pe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Be(pe)+" at index "+Y+"."),l}function oe(fe,de,ue,he,le){for(var we=[],Se=0;Se<Z.length;Se++){var Ve=Z[Se],J=Ve(fe,de,ue,he,le,r);if(J==null)return null;J.data&&i(J.data,"expectedType")&&we.push(J.data.expectedType)}var st=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new g("Invalid "+he+" `"+le+"` supplied to "+("`"+ue+"`"+st+"."))}return x(oe)}function ee(){function Z(Y,pe,oe,fe,de){return se(Y[pe])?null:new g("Invalid "+fe+" `"+de+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return x(Z)}function ye(Z,Y,pe,oe,fe){return new g((Z||"React class")+": "+Y+" type `"+pe+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function Re(Z){function Y(pe,oe,fe,de,ue){var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type `"+le+"` "+("supplied to `"+fe+"`, expected `object`."));for(var we in Z){var Se=Z[we];if(typeof Se!="function")return ye(fe,de,ue,we,Oe(Se));var Ve=Se(he,we,fe,de,ue+"."+we,r);if(Ve)return Ve}return null}return x(Y)}function Ee(Z){function Y(pe,oe,fe,de,ue){var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type `"+le+"` "+("supplied to `"+fe+"`, expected `object`."));var we=t({},pe[oe],Z);for(var Se in we){var Ve=Z[Se];if(i(Z,Se)&&typeof Ve!="function")return ye(fe,de,ue,Se,Oe(Ve));if(!Ve)return new g("Invalid "+de+" `"+ue+"` key `"+Se+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(pe[oe],null," ")+`
|
|
139
|
-
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var J=Ve(he,Se,fe,de,ue+"."+Se,r);if(J)return J}return null}return x(Y)}function se(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(se);if(Z===null||c(Z))return!0;var Y=w(Z);if(Y){var pe=Y.call(Z),oe;if(Y!==Z.entries){for(;!(oe=pe.next()).done;)if(!se(oe.value))return!1}else for(;!(oe=pe.next()).done;){var fe=oe.value;if(fe&&!se(fe[1]))return!1}}else return!1;return!0;default:return!1}}function Fe(Z,Y){return Z==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function be(Z){var Y=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":Fe(Y,Z)?"symbol":Y}function Oe(Z){if(typeof Z>"u"||Z===null)return""+Z;var Y=be(Z);if(Y==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Y}function Be(Z){var Y=Oe(Z);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function pt(Z){return!Z.constructor||!Z.constructor.name?S:Z.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},Bl}var zl,ov;function YR(){if(ov)return zl;ov=1;var e=Qc();function t(){}function r(){}return r.resetWarningCache=t,zl=function(){function i(l,c,d,p,h,w){if(w!==e){var S=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 S.name="Invariant Violation",S}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},zl}var av;function VR(){if(av)return cs.exports;if(av=1,process.env.NODE_ENV!=="production"){var e=Ym(),t=!0;cs.exports=KR()(e.isElement,t)}else cs.exports=YR()();return cs.exports}var sv;function XR(){return sv||(sv=1,function(e){(function(t,r){r(e,k,VR())})(mi,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=_;var a=l(r),s=l(i);function l(P){return P&&P.__esModule?P:{default:P}}var c=Object.assign||function(P){for(var T=1;T<arguments.length;T++){var $=arguments[T];for(var A in $)Object.prototype.hasOwnProperty.call($,A)&&(P[A]=$[A])}return P};function d(P,T){var $={};for(var A in P)T.indexOf(A)>=0||Object.prototype.hasOwnProperty.call(P,A)&&($[A]=P[A]);return $}function p(P,T){if(!(P instanceof T))throw new TypeError("Cannot call a class as a function")}var h=function(){function P(T,$){for(var A=0;A<$.length;A++){var D=$[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(T,D.key,D)}}return function(T,$,A){return $&&P(T.prototype,$),A&&P(T,A),T}}();function w(P,T){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:P}function S(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);P.prototype=Object.create(T&&T.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(P,T):P.__proto__=T)}var v=!1;function _(P){v=P}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){_(!0)}}))}catch{}function g(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?P:P.capture}function x(P){if("touches"in P){var T=P.touches[0],$=T.pageX,A=T.pageY;return{x:$,y:A}}var D=P.screenX,H=P.screenY;return{x:D,y:H}}var C=function(P){S(T,P);function T(){var $;p(this,T);for(var A=arguments.length,D=Array(A),H=0;H<A;H++)D[H]=arguments[H];var j=w(this,($=T.__proto__||Object.getPrototypeOf(T)).call.apply($,[this].concat(D)));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 h(T,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(A){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(A))}},{key:"_onMouseMove",value:function(A){this.mouseDown&&this._handleSwipeMove(A)}},{key:"_onMouseUp",value:function(A){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(A)}},{key:"_handleSwipeStart",value:function(A){var D=x(A),H=D.x,j=D.y;this.moveStart={x:H,y:j},this.props.onSwipeStart(A)}},{key:"_handleSwipeMove",value:function(A){if(this.moveStart){var D=x(A),H=D.x,j=D.y,V=H-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ye=this.props.onSwipeMove({x:V,y:ee},A);ye&&A.cancelable&&A.preventDefault(),this.movePosition={deltaX:V,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(A){this.props.onSwipeEnd(A);var D=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-D?this.props.onSwipeLeft(1,A):this.movePosition.deltaX>D&&this.props.onSwipeRight(1,A),this.movePosition.deltaY<-D?this.props.onSwipeUp(1,A):this.movePosition.deltaY>D&&this.props.onSwipeDown(1,A)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(A){this.swiper=A,this.props.innerRef(A)}},{key:"render",value:function(){var A=this.props;A.tagName;var D=A.className,H=A.style,j=A.children;A.allowMouseEvents,A.onSwipeUp,A.onSwipeDown,A.onSwipeLeft,A.onSwipeRight,A.onSwipeStart,A.onSwipeMove,A.onSwipeEnd,A.innerRef,A.tolerance;var V=d(A,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:D,style:H},V),j)}}]),T}(r.Component);C.displayName="ReactSwipe",C.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},C.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=C})}(jl)),jl}(function(e){(function(t,r){r(e,XR())})(mi,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(Jc);var ia={};Object.defineProperty(ia,"__esModule",{value:!0});ia.default=void 0;var Nn=JR(Vv);function JR(e){return e&&e.__esModule?e:{default:e}}function QR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eC={ROOT:function(t){return(0,Nn.default)(QR({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,Nn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,Nn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,Nn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,Nn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,Nn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,Nn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,Nn.default)({dot:!0,selected:t})}};ia.default=eC;var oa={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.outerWidth=void 0;var tC=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};Ys.outerWidth=tC;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var rC=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",c="("+s.join(",")+")";return l+c};lo.default=rC;var aa={};Object.defineProperty(aa,"__esModule",{value:!0});aa.default=void 0;var nC=function(){return window};aa.default=nC;Object.defineProperty(oa,"__esModule",{value:!0});oa.default=void 0;var Hr=aC(k),hi=Vs(ia),iC=Ys,uv=Vs(lo),oC=Vs(Jc),ds=Vs(aa);function Vs(e){return e&&e.__esModule?e:{default:e}}function Xm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Xm=function(){return e},e}function aC(e){if(e&&e.__esModule)return e;if(e===null||Wo(e)!=="object"&&typeof e!="function")return{default:e};var t=Xm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Wo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wo=function(r){return typeof r}:Wo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wo(e)}function wc(){return wc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},wc.apply(this,arguments)}function sC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lv(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function uC(e,t,r){return t&&lv(e.prototype,t),r&&lv(e,r),e}function lC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bc(e,t)}function bc(e,t){return bc=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},bc(e,t)}function cC(e){var t=dC();return function(){var i=Ms(e),a;if(t){var s=Ms(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return fC(this,a)}}function fC(e,t){return t&&(Wo(t)==="object"||typeof t=="function")?t:Qt(e)}function Qt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dC(){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 Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pC=function(t){return t.hasOwnProperty("key")},ef=function(e){lC(r,e);var t=cC(r);function r(i){var a;return sC(this,r),a=t.call(this,i),qt(Qt(a),"itemsWrapperRef",void 0),qt(Qt(a),"itemsListRef",void 0),qt(Qt(a),"thumbsRef",void 0),qt(Qt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),qt(Qt(a),"setItemsListRef",function(s){a.itemsListRef=s}),qt(Qt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),qt(Qt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=Hr.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,c=a.props.thumbWidth?a.props.thumbWidth:(0,iC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/c),p=d<s,h=p?s-d:0;a.setState(function(w,S){return{itemSize:c,visibleItems:d,firstItem:p?a.getFirstItem(S.selectedItem):0,lastPosition:h,showArrows:p}})}}),qt(Qt(a),"handleClickItem",function(s,l,c){if(!pC(c)||c.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),qt(Qt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),qt(Qt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),qt(Qt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var c=0,d=Hr.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),w=-h*100/a.state.visibleItems;p===c&&l>0&&(l=0),p===w&&l<0&&(l=0);var S=a.itemsWrapperRef.clientWidth,v=p+100/(S/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(_){a.itemsListRef.style[_]=(0,uv.default)(v,"%",a.props.axis)}),!0}),qt(Qt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),qt(Qt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),qt(Qt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return uC(r,[{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,ds.default)().addEventListener("resize",this.updateSizes),(0,ds.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,ds.default)().removeEventListener("resize",this.updateSizes),(0,ds.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var c=hi.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,l)},className:c,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 Hr.default.createElement("li",wc({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=Hr.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,c=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,uv.default)(p,"px",this.props.axis),w=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:w,MozTransitionDuration:w,MsTransitionDuration:w,OTransitionDuration:w,transitionDuration:w,msTransitionDuration:w},Hr.default.createElement("div",{className:hi.default.CAROUSEL(!1)},Hr.default.createElement("div",{className:hi.default.WRAPPER(!1),ref:this.setItemsWrapperRef},Hr.default.createElement("button",{type:"button",className:hi.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?Hr.default.createElement(oC.default,{tagName:"ul",className:hi.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()):Hr.default.createElement("ul",{className:hi.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:d},this.renderItems()),Hr.default.createElement("button",{type:"button",className:hi.default.ARROW_NEXT(!c),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(Hr.Component);oa.default=ef;qt(ef,"displayName","Thumbs");qt(ef,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;var hC=function(){return document};Xs.default=hC;var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.setPosition=vr.getPosition=vr.isKeyboardEvent=vr.defaultStatusFormatter=vr.noop=void 0;var vC=k,mC=gC(lo);function gC(e){return e&&e.__esModule?e:{default:e}}var yC=function(){};vr.noop=yC;var wC=function(t,r){return"".concat(t," of ").concat(r)};vr.defaultStatusFormatter=wC;var bC=function(t){return t?t.hasOwnProperty("key"):!1};vr.isKeyboardEvent=bC;var SC=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=vC.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};vr.getPosition=SC;var EC=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,mC.default)(t,"%",r)}),i};vr.setPosition=EC;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.fadeAnimationHandler=Qr.slideStopSwipingHandler=Qr.slideSwipeAnimationHandler=Qr.slideAnimationHandler=void 0;var Jm=k,_C=xC(lo),en=vr;function xC(e){return e&&e.__esModule?e:{default:e}}function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function yi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(r),!0).forEach(function(i){OC(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function OC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AC=function(t,r){var i={},a=r.selectedItem,s=a,l=Jm.Children.count(t.children)-1,c=t.infiniteLoop&&(a<0||a>l);if(c)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,en.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,en.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,en.setPosition)(0,t.axis)),i;var d=(0,en.getPosition)(a,t),p=(0,_C.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=yi(yi({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Qr.slideAnimationHandler=AC;var TC=function(t,r,i,a){var s={},l=r.axis==="horizontal",c=Jm.Children.count(r.children),d=0,p=(0,en.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,en.getPosition)(c-1,r)-100:(0,en.getPosition)(c-1,r),w=l?t.x:t.y,S=w;p===d&&w>0&&(S=0),p===h&&w<0&&(S=0);var v=p+100/(i.itemSize/S),_=Math.abs(w)>r.swipeScrollTolerance;return r.infiniteLoop&&_&&(i.selectedItem===0&&v>-100?v-=c*100:i.selectedItem===c-1&&v<-c*100&&(v+=c*100)),(!r.preventMovementUntilSwipeScrollTolerance||_||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,en.setPosition)(v,r.axis)),_&&!i.cancelClick&&a({cancelClick:!0}),s};Qr.slideSwipeAnimationHandler=TC;var RC=function(t,r){var i=(0,en.getPosition)(r.selectedItem,t),a=(0,en.setPosition)(i,t.axis);return{itemListStyle:a}};Qr.slideStopSwipingHandler=RC;var CC=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={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 r.swiping||(s=yi(yi({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:yi(yi({},s),{},{opacity:1,position:"relative"}),prevStyle:yi({},s)}};Qr.fadeAnimationHandler=CC;Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=void 0;var Ke=MC(k),PC=sa(Jc),wn=sa(ia),IC=sa(oa),ps=sa(Xs),hs=sa(aa),$o=vr,Fs=Qr;function sa(e){return e&&e.__esModule?e:{default:e}}function Qm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Qm=function(){return e},e}function MC(e){if(e&&e.__esModule)return e;if(e===null||Uo(e)!=="object"&&typeof e!="function")return{default:e};var t=Qm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Uo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uo=function(r){return typeof r}:Uo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uo(e)}function Sc(){return Sc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Sc.apply(this,arguments)}function fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fv(Object(r),!0).forEach(function(i){Me(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fv(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function FC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dv(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function LC(e,t,r){return t&&dv(e.prototype,t),r&&dv(e,r),e}function $C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ec(e,t)}function Ec(e,t){return Ec=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Ec(e,t)}function DC(e){var t=NC();return function(){var i=Ls(e),a;if(t){var s=Ls(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return kC(this,a)}}function kC(e,t){return t&&(Uo(t)==="object"||typeof t=="function")?t:Le(e)}function Le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NC(){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 Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function Me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tf=function(e){$C(r,e);var t=DC(r);function r(i){var a;FC(this,r),a=t.call(this,i),Me(Le(a),"thumbsRef",void 0),Me(Le(a),"carouselWrapperRef",void 0),Me(Le(a),"listRef",void 0),Me(Le(a),"itemsRef",void 0),Me(Le(a),"timer",void 0),Me(Le(a),"animationHandler",void 0),Me(Le(a),"setThumbsRef",function(l){a.thumbsRef=l}),Me(Le(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Me(Le(a),"setListRef",function(l){a.listRef=l}),Me(Le(a),"setItemsRef",function(l,c){a.itemsRef||(a.itemsRef=[]),a.itemsRef[c]=l}),Me(Le(a),"autoPlay",function(){Ke.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Me(Le(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Me(Le(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Me(Le(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Me(Le(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Me(Le(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,ps.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,ps.default)().activeElement)):!1}),Me(Le(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var c=a.props.axis,d=c==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,w=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():w===l.keyCode&&a.decrement()}}),Me(Le(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",c=a.itemsRef[0];if(c){var d=l?c.clientWidth:c.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Me(Le(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Me(Le(a),"handleClickItem",function(l,c){if(Ke.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,c),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Me(Le(a),"handleOnChange",function(l,c){Ke.Children.count(a.props.children)<=1||a.props.onChange(l,c)}),Me(Le(a),"handleClickThumb",function(l,c){a.props.onClickThumb(l,c),a.moveTo(l)}),Me(Le(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Me(Le(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Me(Le(a),"onSwipeMove",function(l,c){a.props.onSwipeMove(c);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Le(a)));return a.setState(Br({},d)),!!Object.keys(d).length}),Me(Le(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))}),Me(Le(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))}),Me(Le(a),"moveTo",function(l){if(typeof l=="number"){var c=Ke.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?c:0),l>c&&(l=a.props.infiniteLoop?0:c),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Me(Le(a),"onClickNext",function(){a.increment(1)}),Me(Le(a),"onClickPrev",function(){a.decrement(1)}),Me(Le(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Me(Le(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Me(Le(a),"changeItem",function(l){return function(c){(!(0,$o.isKeyboardEvent)(c)||c.key==="Enter")&&a.moveTo(l)}}),Me(Le(a),"selectItem",function(l){a.setState(Br({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,Ke.Children.toArray(a.props.children)[l.selectedItem])}),Me(Le(a),"getInitialImage",function(){var l=a.props.selectedItem,c=a.itemsRef&&a.itemsRef[l],d=c&&c.getElementsByTagName("img")||[];return d[0]}),Me(Le(a),"getVariableItemHeight",function(l){var c=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&c&&c.children.length){var d=c.children[0].getElementsByTagName("img")||[];if(d.length>0){var p=d[0];if(!p.complete){var h=function v(){a.forceUpdate(),p.removeEventListener("load",v)};p.addEventListener("load",h)}}var w=d[0]||c.children[0],S=w.clientHeight;return S>0?S:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Fs.fadeAnimationHandler||Fs.slideAnimationHandler,a.state=Br(Br({},s),a.animationHandler(i,s)),a}return LC(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(Br({},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&&Ke.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var s=a.getInitialImage();s&&!s.complete?s.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,hs.default)().addEventListener("resize",this.updateSizes),(0,hs.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,ps.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,hs.default)().removeEventListener("resize",this.updateSizes),(0,hs.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,ps.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 s=this;return this.props.children?Ke.Children.map(this.props.children,function(l,c){var d=c===s.state.selectedItem,p=c===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=Br(Br({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=Br(Br({},h),{},{pointerEvents:"none"}));var w={ref:function(v){return s.setItemsRef(v,c)},key:"itemKey"+c+(a?"clone":""),className:wn.default.ITEM(!0,c===s.state.selectedItem,c===s.state.previousItem),onClick:s.handleClickItem.bind(s,c,l),style:h};return Ke.default.createElement("li",w,s.props.renderItem(l,{isSelected:c===s.state.selectedItem,isPrevious:c===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,c=s.labels,d=s.renderIndicator,p=s.children;return l?Ke.default.createElement("ul",{className:"control-dots"},Ke.Children.map(p,function(h,w){return d&&d(a.changeItem(w),w===a.state.selectedItem,w,c.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?Ke.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,Ke.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||Ke.Children.count(this.props.children)===0?null:Ke.default.createElement(IC.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||Ke.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&Ke.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",c=this.props.showArrows&&Ke.Children.count(this.props.children)>1,d=c&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=c&&(this.state.selectedItem<Ke.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),w=h.shift(),S=h.pop(),v={className:wn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},_={};if(l){if(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var g=this.getVariableItemHeight(this.state.selectedItem);_.height=g||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=Br(Br({},v.style),{},{height:this.state.itemSize}),_.height=this.state.itemSize;return Ke.default.createElement("div",{"aria-label":this.props.ariaLabel,className:wn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},Ke.default.createElement("div",{className:wn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),Ke.default.createElement("div",{className:wn.default.WRAPPER(!0,this.props.axis),style:_},s?Ke.default.createElement(PC.default,Sc({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&S,this.renderItems(),this.props.infiniteLoop&&w):Ke.default.createElement("ul",{className:wn.default.SLIDER(!0,this.state.swiping),ref:function(C){return a.setListRef(C)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&S,this.renderItems(),this.props.infiniteLoop&&w)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}(Ke.default.Component);Ks.default=tf;Me(tf,"displayName","Carousel");Me(tf,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:$o.noop,onClickThumb:$o.noop,onChange:$o.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return Ke.default.createElement("button",{type:"button","aria-label":i,className:wn.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return Ke.default.createElement("button",{type:"button","aria-label":i,className:wn.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return Ke.default.createElement("li",{className:wn.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=Ke.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=Ke.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).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"),[]):r},statusFormatter:$o.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:Fs.slideSwipeAnimationHandler,stopSwipingHandler:Fs.slideStopSwipingHandler});var jC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(Ks),r=jC,i=a(oa);function a(s){return s&&s.__esModule?s:{default:s}}})(Km);const WC=({tip:e})=>N.jsx("div",{className:"px-8 pb-8",children:eg(e,!0)}),UC=({pages:e})=>N.jsx("div",{className:"min-h-[10rem] w-96",children:N.jsx(Km.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>N.jsx(WC,{tip:t},t.key))})}),HC=({body:e,isInsideCarousel:t})=>N.jsx("article",{className:Dt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:N.jsx(Rs,{children:e,options:{overrides:{a:{component:({children:r,...i})=>N.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,N.jsx(Kv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),BC=({video:e,body:t,title:r,isInsideCarousel:i})=>N.jsxs("div",{className:Dt([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[N.jsx("div",{className:Dt([{"mr-1":!i,"mb-1":i}]),children:N.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),N.jsx("article",{className:Dt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:N.jsx(Rs,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>N.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,N.jsx(Kv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),eg=(e,t)=>{switch(e.type){case xs.TEXT:return N.jsx(HC,{body:e.body,isInsideCarousel:t});case xs.VIDEO:return N.jsx(BC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case xs.CAROUSEL:return N.jsx(UC,{pages:e.pages})}},tg=k.createContext(void 0);function pv(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const zC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=k.useState({tips:{},show:!0});k.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,w)=>pv(d,w.key).length>1?{...h,[w.key]:{type:"carousel",pages:pv(d,w.key)}}:{...h,[w.key]:w},{});s(h=>({...h,tips:p}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return N.jsx(tg.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},rg=e=>{const t=k.useContext(tg);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},qC=Ps(BR)`
|
|
84
|
+
*/var bh;function hC(){return bh||(bh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=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,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function P(K){return typeof K=="string"||typeof K=="function"||K===i||K===p||K===s||K===a||K===b||K===v||typeof K=="object"&&K!==null&&(K.$$typeof===E||K.$$typeof===w||K.$$typeof===l||K.$$typeof===f||K.$$typeof===h||K.$$typeof===x||K.$$typeof===A||K.$$typeof===I||K.$$typeof===y)}function F(K){if(typeof K=="object"&&K!==null){var gt=K.$$typeof;switch(gt){case t:var st=K.type;switch(st){case d:case p:case i:case s:case a:case b:return st;default:var br=st&&st.$$typeof;switch(br){case f:case h:case E:case w:case l:return br;default:return gt}}case r:return gt}}}var O=d,L=p,U=f,z=l,q=t,V=h,ee=i,be=E,pe=w,Ae=r,Ne=s,ve=a,Te=b,Ge=!1;function Ct(K){return Ge||(Ge=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(K)||F(K)===d}function H(K){return F(K)===p}function G(K){return F(K)===f}function re(K){return F(K)===l}function le(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Q(K){return F(K)===h}function ae(K){return F(K)===i}function se(K){return F(K)===E}function ce(K){return F(K)===w}function ue(K){return F(K)===r}function ge(K){return F(K)===s}function xe(K){return F(K)===a}function He(K){return F(K)===b}Fe.AsyncMode=O,Fe.ConcurrentMode=L,Fe.ContextConsumer=U,Fe.ContextProvider=z,Fe.Element=q,Fe.ForwardRef=V,Fe.Fragment=ee,Fe.Lazy=be,Fe.Memo=pe,Fe.Portal=Ae,Fe.Profiler=Ne,Fe.StrictMode=ve,Fe.Suspense=Te,Fe.isAsyncMode=Ct,Fe.isConcurrentMode=H,Fe.isContextConsumer=G,Fe.isContextProvider=re,Fe.isElement=le,Fe.isForwardRef=Q,Fe.isFragment=ae,Fe.isLazy=se,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=ge,Fe.isStrictMode=xe,Fe.isSuspense=He,Fe.isValidElementType=P,Fe.typeOf=F}()),Fe}var Sh;function um(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Ra.exports=pC():Ra.exports=hC()),Ra.exports}/*
|
|
85
|
+
object-assign
|
|
86
|
+
(c) Sindre Sorhus
|
|
87
|
+
@license MIT
|
|
88
|
+
*/var pl,Eh;function vC(){if(Eh)return pl;Eh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pl=a()?Object.assign:function(s,l){for(var f,d=i(s),p,h=1;h<arguments.length;h++){f=Object(arguments[h]);for(var b in f)t.call(f,b)&&(d[b]=f[b]);if(e){p=e(f);for(var v=0;v<p.length;v++)r.call(f,p[v])&&(d[p[v]]=f[p[v]])}}return d},pl}var hl,xh;function Sf(){if(xh)return hl;xh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hl=e,hl}var vl,_h;function lm(){return _h||(_h=1,vl=Function.call.bind(Object.prototype.hasOwnProperty)),vl}var ml,Oh;function mC(){if(Oh)return ml;Oh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Sf(),r={},i=lm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,f,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var b;try{if(typeof s[h]!="function"){var v=Error((d||"React class")+": "+f+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}b=s[h](l,h,d,f,null,t)}catch(E){b=E}if(b&&!(b instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof b+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),b instanceof Error&&!(b.message in r)){r[b.message]=!0;var w=p?p():"";e("Failed "+f+" type: "+b.message+(w??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ml=a,ml}var gl,Ah;function gC(){if(Ah)return gl;Ah=1;var e=um(),t=vC(),r=Sf(),i=lm(),a=mC(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return gl=function(f,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function b(H){var G=H&&(p&&H[p]||H[h]);if(typeof G=="function")return G}var v="<<anonymous>>",w={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:I(),arrayOf:P,element:F(),elementType:O(),instanceOf:L,node:V(),objectOf:z,oneOf:U,oneOfType:q,shape:be,exact:pe};function E(H,G){return H===G?H!==0||1/H===1/G:H!==H&&G!==G}function y(H,G){this.message=H,this.data=G&&typeof G=="object"?G:{},this.stack=""}y.prototype=Error.prototype;function x(H){if(process.env.NODE_ENV!=="production")var G={},re=0;function le(ae,se,ce,ue,ge,xe,He){if(ue=ue||v,xe=xe||ce,He!==r){if(d){var K=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 K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var gt=ue+":"+ce;!G[gt]&&re<3&&(s("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ue+"`. 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."),G[gt]=!0,re++)}}return se[ce]==null?ae?se[ce]===null?new y("The "+ge+" `"+xe+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new y("The "+ge+" `"+xe+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(se,ce,ue,ge,xe)}var Q=le.bind(null,!1);return Q.isRequired=le.bind(null,!0),Q}function A(H){function G(re,le,Q,ae,se,ce){var ue=re[le],ge=ve(ue);if(ge!==H){var xe=Te(ue);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+xe+"` supplied to `"+Q+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return x(G)}function I(){return x(l)}function P(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ce=re[le];if(!Array.isArray(ce)){var ue=ve(ce);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an array."))}for(var ge=0;ge<ce.length;ge++){var xe=H(ce,ge,Q,ae,se+"["+ge+"]",r);if(xe instanceof Error)return xe}return null}return x(G)}function F(){function H(G,re,le,Q,ae){var se=G[re];if(!f(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return x(H)}function O(){function H(G,re,le,Q,ae){var se=G[re];if(!e.isValidElementType(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return x(H)}function L(H){function G(re,le,Q,ae,se){if(!(re[le]instanceof H)){var ce=H.name||v,ue=Ct(re[le]);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected ")+("instance of `"+ce+"`."))}return null}return x(G)}function U(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function G(re,le,Q,ae,se){for(var ce=re[le],ue=0;ue<H.length;ue++)if(E(ce,H[ue]))return null;var ge=JSON.stringify(H,function(He,K){var gt=Te(K);return gt==="symbol"?String(K):K});return new y("Invalid "+ae+" `"+se+"` of value `"+String(ce)+"` "+("supplied to `"+Q+"`, expected one of "+ge+"."))}return x(G)}function z(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an object."));for(var ge in ce)if(i(ce,ge)){var xe=H(ce,ge,Q,ae,se+"."+ge,r);if(xe instanceof Error)return xe}return null}return x(G)}function q(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var G=0;G<H.length;G++){var re=H[G];if(typeof re!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ge(re)+" at index "+G+"."),l}function le(Q,ae,se,ce,ue){for(var ge=[],xe=0;xe<H.length;xe++){var He=H[xe],K=He(Q,ae,se,ce,ue,r);if(K==null)return null;K.data&&i(K.data,"expectedType")&&ge.push(K.data.expectedType)}var gt=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new y("Invalid "+ce+" `"+ue+"` supplied to "+("`"+se+"`"+gt+"."))}return x(le)}function V(){function H(G,re,le,Q,ae){return Ae(G[re])?null:new y("Invalid "+Q+" `"+ae+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return x(H)}function ee(H,G,re,le,Q){return new y((H||"React class")+": "+G+" type `"+re+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function be(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));for(var ge in H){var xe=H[ge];if(typeof xe!="function")return ee(Q,ae,se,ge,Te(xe));var He=xe(ce,ge,Q,ae,se+"."+ge,r);if(He)return He}return null}return x(G)}function pe(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));var ge=t({},re[le],H);for(var xe in ge){var He=H[xe];if(i(H,xe)&&typeof He!="function")return ee(Q,ae,se,xe,Te(He));if(!He)return new y("Invalid "+ae+" `"+se+"` key `"+xe+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(re[le],null," ")+`
|
|
89
|
+
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var K=He(ce,xe,Q,ae,se+"."+xe,r);if(K)return K}return null}return x(G)}function Ae(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(Ae);if(H===null||f(H))return!0;var G=b(H);if(G){var re=G.call(H),le;if(G!==H.entries){for(;!(le=re.next()).done;)if(!Ae(le.value))return!1}else for(;!(le=re.next()).done;){var Q=le.value;if(Q&&!Ae(Q[1]))return!1}}else return!1;return!0;default:return!1}}function Ne(H,G){return H==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function ve(H){var G=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Ne(G,H)?"symbol":G}function Te(H){if(typeof H>"u"||H===null)return""+H;var G=ve(H);if(G==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return G}function Ge(H){var G=Te(H);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Ct(H){return!H.constructor||!H.constructor.name?v:H.constructor.name}return w.checkPropTypes=a,w.resetWarningCache=a.resetWarningCache,w.PropTypes=w,w},gl}var yl,Th;function yC(){if(Th)return yl;Th=1;var e=Sf();function t(){}function r(){}return r.resetWarningCache=t,yl=function(){function i(l,f,d,p,h,b){if(b!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},yl}var Ch;function wC(){if(Ch)return Pa.exports;if(Ch=1,process.env.NODE_ENV!=="production"){var e=um(),t=!0;Pa.exports=gC()(e.isElement,t)}else Pa.exports=yC()();return Pa.exports}var Ph;function bC(){return Ph||(Ph=1,function(e){(function(t,r){r(e,D,wC())})(kn,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=E;var a=l(r),s=l(i);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var P=1;P<arguments.length;P++){var F=arguments[P];for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&(I[O]=F[O])}return I};function d(I,P){var F={};for(var O in I)P.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(I,O)&&(F[O]=I[O]);return F}function p(I,P){if(!(I instanceof P))throw new TypeError("Cannot call a class as a function")}var h=function(){function I(P,F){for(var O=0;O<F.length;O++){var L=F[O];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,F,O){return F&&I(P.prototype,F),O&&I(P,O),P}}();function b(I,P){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:I}function v(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);I.prototype=Object.create(P&&P.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(I,P):I.__proto__=P)}var w=!1;function E(I){w=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){E(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?I:I.capture}function x(I){if("touches"in I){var P=I.touches[0],F=P.pageX,O=P.pageY;return{x:F,y:O}}var L=I.screenX,U=I.screenY;return{x:L,y:U}}var A=function(I){v(P,I);function P(){var F;p(this,P);for(var O=arguments.length,L=Array(O),U=0;U<O;U++)L[U]=arguments[U];var z=b(this,(F=P.__proto__||Object.getPrototypeOf(P)).call.apply(F,[this].concat(L)));return z._handleSwipeStart=z._handleSwipeStart.bind(z),z._handleSwipeMove=z._handleSwipeMove.bind(z),z._handleSwipeEnd=z._handleSwipeEnd.bind(z),z._onMouseDown=z._onMouseDown.bind(z),z._onMouseMove=z._onMouseMove.bind(z),z._onMouseUp=z._onMouseUp.bind(z),z._setSwiperRef=z._setSwiperRef.bind(z),z}return h(P,[{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(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var L=x(O),U=L.x,z=L.y;this.moveStart={x:U,y:z},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var L=x(O),U=L.x,z=L.y,q=U-this.moveStart.x,V=z-this.moveStart.y;this.moving=!0;var ee=this.props.onSwipeMove({x:q,y:V},O);ee&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:q,deltaY:V}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var L=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-L?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>L&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-L?this.props.onSwipeUp(1,O):this.movePosition.deltaY>L&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var L=O.className,U=O.style,z=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var q=d(O,["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:L,style:U},q),z)}}]),P}(r.Component);A.displayName="ReactSwipe",A.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},A.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=A})}(dl)),dl}(function(e){(function(t,r){r(e,bC())})(kn,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(bf);var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var pn=SC(pv);function SC(e){return e&&e.__esModule?e:{default:e}}function EC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xC={ROOT:function(t){return(0,pn.default)(EC({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,pn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,pn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,pn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,pn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,pn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,pn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,pn.default)({dot:!0,selected:t})}};bo.default=xC;var So={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});ds.outerWidth=void 0;var _C=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};ds.outerWidth=_C;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.default=void 0;var OC=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+s.join(",")+")";return l+f};Ai.default=OC;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var AC=function(){return window};Eo.default=AC;Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var mr=PC(D),$n=ps(bo),TC=ds,Rh=ps(Ai),CC=ps(bf),Ia=ps(Eo);function ps(e){return e&&e.__esModule?e:{default:e}}function fm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return fm=function(){return e},e}function PC(e){if(e&&e.__esModule)return e;if(e===null||Qi(e)!=="object"&&typeof e!="function")return{default:e};var t=fm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Qi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(r){return typeof r}:Qi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qi(e)}function ql(){return ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ql.apply(this,arguments)}function RC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function MC(e,t,r){return t&&IC(e.prototype,t),e}function FC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Zl(e,t)}function LC(e){var t=DC();return function(){var i=Va(e),a;if(t){var s=Va(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return $C(this,a)}}function $C(e,t){return t&&(Qi(t)==="object"||typeof t=="function")?t:Mt(e)}function Mt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DC(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kC=function(t){return t.hasOwnProperty("key")},Ef=function(e){FC(r,e);var t=LC(r);function r(i){var a;return RC(this,r),a=t.call(this,i),Ot(Mt(a),"itemsWrapperRef",void 0),Ot(Mt(a),"itemsListRef",void 0),Ot(Mt(a),"thumbsRef",void 0),Ot(Mt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),Ot(Mt(a),"setItemsListRef",function(s){a.itemsListRef=s}),Ot(Mt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),Ot(Mt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=mr.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,TC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),p=d<s,h=p?s-d:0;a.setState(function(b,v){return{itemSize:f,visibleItems:d,firstItem:p?a.getFirstItem(v.selectedItem):0,lastPosition:h,showArrows:p}})}}),Ot(Mt(a),"handleClickItem",function(s,l,f){if(!kC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),Ot(Mt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Ot(Mt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Ot(Mt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=mr.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),b=-h*100/a.state.visibleItems;p===f&&l>0&&(l=0),p===b&&l<0&&(l=0);var v=a.itemsWrapperRef.clientWidth,w=p+100/(v/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(E){a.itemsListRef.style[E]=(0,Rh.default)(w,"%",a.props.axis)}),!0}),Ot(Mt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),Ot(Mt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),Ot(Mt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return MC(r,[{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 s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var f=$n.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,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 mr.default.createElement("li",ql({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=mr.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={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,Rh.default)(p,"px",this.props.axis),b=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:b,MozTransitionDuration:b,MsTransitionDuration:b,OTransitionDuration:b,transitionDuration:b,msTransitionDuration:b},mr.default.createElement("div",{className:$n.default.CAROUSEL(!1)},mr.default.createElement("div",{className:$n.default.WRAPPER(!1),ref:this.setItemsWrapperRef},mr.default.createElement("button",{type:"button",className:$n.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?mr.default.createElement(CC.default,{tagName:"ul",className:$n.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()):mr.default.createElement("ul",{className:$n.default.SLIDER(!1,this.state.swiping),ref:function(w){return a.setItemsListRef(w)},style:d},this.renderItems()),mr.default.createElement("button",{type:"button",className:$n.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(mr.Component);So.default=Ef;Ot(Ef,"displayName","Thumbs");Ot(Ef,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var hs={};Object.defineProperty(hs,"__esModule",{value:!0});hs.default=void 0;var NC=function(){return document};hs.default=NC;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.setPosition=Kt.getPosition=Kt.isKeyboardEvent=Kt.defaultStatusFormatter=Kt.noop=void 0;var jC=D,WC=zC(Ai);function zC(e){return e&&e.__esModule?e:{default:e}}var UC=function(){};Kt.noop=UC;var BC=function(t,r){return"".concat(t," of ").concat(r)};Kt.defaultStatusFormatter=BC;var HC=function(t){return t?t.hasOwnProperty("key"):!1};Kt.isKeyboardEvent=HC;var qC=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=jC.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};Kt.getPosition=qC;var ZC=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,WC.default)(t,"%",r)}),i};Kt.setPosition=ZC;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.fadeAnimationHandler=Ar.slideStopSwipingHandler=Ar.slideSwipeAnimationHandler=Ar.slideAnimationHandler=void 0;var cm=D,GC=KC(Ai),Tr=Kt;function KC(e){return e&&e.__esModule?e:{default:e}}function Ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(r),!0).forEach(function(i){YC(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function YC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var VC=function(t,r){var i={},a=r.selectedItem,s=a,l=cm.Children.count(t.children)-1,f=t.infiniteLoop&&(a<0||a>l);if(f)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,Tr.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,Tr.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,Tr.setPosition)(0,t.axis)),i;var d=(0,Tr.getPosition)(a,t),p=(0,GC.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=jn(jn({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Ar.slideAnimationHandler=VC;var XC=function(t,r,i,a){var s={},l=r.axis==="horizontal",f=cm.Children.count(r.children),d=0,p=(0,Tr.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,Tr.getPosition)(f-1,r)-100:(0,Tr.getPosition)(f-1,r),b=l?t.x:t.y,v=b;p===d&&b>0&&(v=0),p===h&&b<0&&(v=0);var w=p+100/(i.itemSize/v),E=Math.abs(b)>r.swipeScrollTolerance;return r.infiniteLoop&&E&&(i.selectedItem===0&&w>-100?w-=f*100:i.selectedItem===f-1&&w<-f*100&&(w+=f*100)),(!r.preventMovementUntilSwipeScrollTolerance||E||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,Tr.setPosition)(w,r.axis)),E&&!i.cancelClick&&a({cancelClick:!0}),s};Ar.slideSwipeAnimationHandler=XC;var JC=function(t,r){var i=(0,Tr.getPosition)(r.selectedItem,t),a=(0,Tr.setPosition)(i,t.axis);return{itemListStyle:a}};Ar.slideStopSwipingHandler=JC;var QC=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={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 r.swiping||(s=jn(jn({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:jn(jn({},s),{},{opacity:1,position:"relative"}),prevStyle:jn({},s)}};Ar.fadeAnimationHandler=QC;Object.defineProperty(cs,"__esModule",{value:!0});cs.default=void 0;var $e=rP(D),eP=xo(bf),Zr=xo(bo),tP=xo(So),Ma=xo(hs),Fa=xo(Eo),Ki=Kt,Xa=Ar;function xo(e){return e&&e.__esModule?e:{default:e}}function dm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return dm=function(){return e},e}function rP(e){if(e&&e.__esModule)return e;if(e===null||eo(e)!=="object"&&typeof e!="function")return{default:e};var t=dm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function eo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eo=function(r){return typeof r}:eo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eo(e)}function Gl(){return Gl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Gl.apply(this,arguments)}function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(i){we(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function nP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iP(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function oP(e,t,r){return t&&iP(e.prototype,t),e}function aP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Kl(e,t)}function sP(e){var t=lP();return function(){var i=Ja(e),a;if(t){var s=Ja(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return uP(this,a)}}function uP(e,t){return t&&(eo(t)==="object"||typeof t=="function")?t:Se(e)}function Se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xf=function(e){aP(r,e);var t=sP(r);function r(i){var a;nP(this,r),a=t.call(this,i),we(Se(a),"thumbsRef",void 0),we(Se(a),"carouselWrapperRef",void 0),we(Se(a),"listRef",void 0),we(Se(a),"itemsRef",void 0),we(Se(a),"timer",void 0),we(Se(a),"animationHandler",void 0),we(Se(a),"setThumbsRef",function(l){a.thumbsRef=l}),we(Se(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),we(Se(a),"setListRef",function(l){a.listRef=l}),we(Se(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),we(Se(a),"autoPlay",function(){$e.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),we(Se(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),we(Se(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),we(Se(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),we(Se(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),we(Se(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,Ma.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,Ma.default)().activeElement)):!1}),we(Se(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,b=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():b===l.keyCode&&a.decrement()}}),we(Se(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()}}}),we(Se(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),we(Se(a),"handleClickItem",function(l,f){if($e.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})}}),we(Se(a),"handleOnChange",function(l,f){$e.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),we(Se(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),we(Se(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),we(Se(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),we(Se(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Se(a)));return a.setState(gr({},d)),!!Object.keys(d).length}),we(Se(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))}),we(Se(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))}),we(Se(a),"moveTo",function(l){if(typeof l=="number"){var f=$e.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()}}),we(Se(a),"onClickNext",function(){a.increment(1)}),we(Se(a),"onClickPrev",function(){a.decrement(1)}),we(Se(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"changeItem",function(l){return function(f){(!(0,Ki.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),we(Se(a),"selectItem",function(l){a.setState(gr({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,$e.Children.toArray(a.props.children)[l.selectedItem])}),we(Se(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),we(Se(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 p=d[0];if(!p.complete){var h=function w(){a.forceUpdate(),p.removeEventListener("load",w)};p.addEventListener("load",h)}}var b=d[0]||f.children[0],v=b.clientHeight;return v>0?v:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Xa.fadeAnimationHandler||Xa.slideAnimationHandler,a.state=gr(gr({},s),a.animationHandler(i,s)),a}return oP(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(gr({},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&&$e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var s=a.getInitialImage();s&&!s.complete?s.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,Fa.default)().addEventListener("resize",this.updateSizes),(0,Fa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,Ma.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Fa.default)().removeEventListener("resize",this.updateSizes),(0,Fa.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,Ma.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 s=this;return this.props.children?$e.Children.map(this.props.children,function(l,f){var d=f===s.state.selectedItem,p=f===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=gr(gr({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=gr(gr({},h),{},{pointerEvents:"none"}));var b={ref:function(w){return s.setItemsRef(w,f)},key:"itemKey"+f+(a?"clone":""),className:Zr.default.ITEM(!0,f===s.state.selectedItem,f===s.state.previousItem),onClick:s.handleClickItem.bind(s,f,l),style:h};return $e.default.createElement("li",b,s.props.renderItem(l,{isSelected:f===s.state.selectedItem,isPrevious:f===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,f=s.labels,d=s.renderIndicator,p=s.children;return l?$e.default.createElement("ul",{className:"control-dots"},$e.Children.map(p,function(h,b){return d&&d(a.changeItem(b),b===a.state.selectedItem,b,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?$e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,$e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||$e.Children.count(this.props.children)===0?null:$e.default.createElement(tP.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||$e.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&$e.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&$e.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=f&&(this.state.selectedItem<$e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),b=h.shift(),v=h.pop(),w={className:Zr.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},E={};if(l){if(w.onSwipeLeft=this.onSwipeForward,w.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);E.height=y||"auto"}}else w.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,w.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,w.style=gr(gr({},w.style),{},{height:this.state.itemSize}),E.height=this.state.itemSize;return $e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Zr.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},$e.default.createElement("div",{className:Zr.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),$e.default.createElement("div",{className:Zr.default.WRAPPER(!0,this.props.axis),style:E},s?$e.default.createElement(eP.default,Gl({tagName:"ul",innerRef:this.setListRef},w,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b):$e.default.createElement("ul",{className:Zr.default.SLIDER(!0,this.state.swiping),ref:function(A){return a.setListRef(A)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}($e.default.Component);cs.default=xf;we(xf,"displayName","Carousel");we(xf,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:Ki.noop,onClickThumb:Ki.noop,onChange:Ki.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return $e.default.createElement("li",{className:Zr.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=$e.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=$e.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).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"),[]):r},statusFormatter:Ki.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 fP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(cs),r=fP,i=a(So);function a(s){return s&&s.__esModule?s:{default:s}}})(sm);const cP=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:pm(e,!0)}),dP=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(sm.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>$.jsx(cP,{tip:t},t.key))})}),pP=({body:e,isInsideCarousel:t})=>$.jsx("article",{className:ft(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:$.jsx(Ga,{children:e,options:{overrides:{a:{component:({children:r,...i})=>$.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,$.jsx(mt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),hP=({video:e,body:t,title:r,isInsideCarousel:i})=>$.jsxs("div",{className:ft([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[$.jsx("div",{className:ft([{"mr-1":!i,"mb-1":i}]),children:$.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:ft(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:$.jsx(Ga,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>$.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(mt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),pm=(e,t)=>{switch(e.type){case Ua.TEXT:return $.jsx(pP,{body:e.body,isInsideCarousel:t});case Ua.VIDEO:return $.jsx(hP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Ua.CAROUSEL:return $.jsx(dP,{pages:e.pages})}},hm=D.createContext(void 0);function Fh(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const vP=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=D.useState({tips:{},show:!0});D.useEffect(()=>{const f=new AbortController;try{fetch(`${r}/tips.json`,{signal:f.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,b)=>Fh(d,b.key).length>1?{...h,[b.key]:{type:"carousel",pages:Fh(d,b.key)}}:{...h,[b.key]:b},{});s(h=>({...h,tips:p}))})}catch{}return()=>{f.abort()}},[]);const l=()=>{s(f=>({...f,show:!a}))};return $.jsx(hm.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},vm=e=>{const t=D.useContext(hm);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},mP=Ka(cC)`
|
|
140
90
|
&[data-state='open'] > * {
|
|
141
91
|
display: block !important;
|
|
142
92
|
}
|
|
143
|
-
`,
|
|
144
|
-
`),"","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(
|
|
93
|
+
`,gP=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=vm(e),[l,f]=D.useState(!1),d=D.useRef(null);return D.useEffect(()=>{if(d.current){const p=new IntersectionObserver(h=>{h[0].isIntersecting||f(!1)});return p.observe(d.current),()=>{d.current&&p.unobserve(d.current)}}},[]),a&&s?$.jsxs(fC,{open:l,onOpenChange:f,children:[$.jsx(mP,{ref:d,className:ft("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:$.jsx("span",{className:ft("group-hover:block",{hidden:!r}),children:$.jsx(mt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(dC,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:pm(a)})})]}):null};var yP=Object.defineProperty,wP=(e,t,r)=>t in e?yP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t,r)=>(wP(e,typeof t!="symbol"?t+"":t,r),r);let bP=class{constructor(){wl(this,"current",this.detect()),wl(this,"handoffState","pending"),wl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}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 bP,Ir=(e,t)=>{yi.isServer?D.useEffect(e,t):D.useLayoutEffect(e,t)};function wi(e){let t=D.useRef(e);return Ir(()=>{t.current=e},[e]),t}let At=function(e){let t=wi(e);return D.useCallback((...r)=>t.current(...r),[t])};function SP(e,t,r){let[i,a]=D.useState(r),s=e!==void 0,l=D.useRef(s),f=D.useRef(!1),d=D.useRef(!1);return s&&!l.current&&!f.current?(f.current=!0,l.current=s,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.")):!s&&l.current&&!d.current&&(d.current=!0,l.current=s,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.")),[s?e:i,At(p=>(s||a(p),t==null?void 0:t(p)))]}function EP(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _o(){let e=[],t={addEventListener(r,i,a,s){return r.addEventListener(i,a,s),t.add(()=>r.removeEventListener(i,a,s))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return EP(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,a){let s=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:a}),this.add(()=>{Object.assign(r.style,{[i]:s})})},group(r){let i=_o();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let a of e.splice(i,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function _f(){let[e]=D.useState(_o);return D.useEffect(()=>()=>e.dispose(),[e]),e}function xP(){let e=typeof document>"u";return"useSyncExternalStore"in C?(t=>t.useSyncExternalStore)(C)(()=>()=>{},()=>!1,()=>!e):!1}function Of(){let e=xP(),[t,r]=C.useState(yi.isHandoffComplete);return t&&yi.isHandoffComplete===!1&&r(!1),C.useEffect(()=>{t!==!0&&r(!0)},[t]),C.useEffect(()=>yi.handoff(),[]),e?!1:t}var Lh;let Af=(Lh=D.useId)!=null?Lh:function(){let e=Of(),[t,r]=D.useState(e?()=>yi.nextId():null);return Ir(()=>{t===null&&r(yi.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Cr),i}function $h(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function _P(e,t){let[r,i]=D.useState(()=>$h(e));return Ir(()=>{i($h(e))},[e.type,e.as]),Ir(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let OP=Symbol();function Oo(...e){let t=D.useRef(e);D.useEffect(()=>{t.current=e},[e]);let r=At(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[OP]))?void 0:r}function Qa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var mm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mm||{}),yn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yn||{});function Kn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:f}){f=f??AP;let d=gm(t,e);if(s)return La(d,r,i,l,f);let p=a??0;if(p&2){let{static:h=!1,...b}=d;if(h)return La(b,r,i,l,f)}if(p&1){let{unmount:h=!0,...b}=d;return Cr(h?0:1,{0(){return null},1(){return La({...b,hidden:!0,style:{display:"none"}},r,i,l,f)}})}return La(d,r,i,l,f)}function La(e,t={},r,i,a){let{as:s=r,children:l,refName:f="ref",...d}=bl(e,["unmount","static"]),p=e.ref!==void 0?{[f]:e.ref}:{},h=typeof l=="function"?l(t):l;"className"in d&&d.className&&typeof d.className=="function"&&(d.className=d.className(t));let b={};if(t){let v=!1,w=[];for(let[E,y]of Object.entries(t))typeof y=="boolean"&&(v=!0),y===!0&&w.push(E);v&&(b["data-headlessui-state"]=w.join(" "))}if(s===D.Fragment&&Object.keys(Yl(d)).length>0){if(!D.isValidElement(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d).map(y=>` - ${y}`).join(`
|
|
94
|
+
`),"","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(y=>` - ${y}`).join(`
|
|
145
95
|
`)].join(`
|
|
146
|
-
`));let w=p.props,S=typeof(w==null?void 0:w.className)=="function"?(..._)=>$s(w==null?void 0:w.className(..._),c.className):$s(w==null?void 0:w.className,c.className),v=S?{className:S}:{};return k.cloneElement(p,Object.assign({},ig(p.props,_c(Zl(c,["ref"]))),h,d,eP(p.ref,d.ref),v))}return k.createElement(a,Object.assign({},Zl(c,["ref"]),a!==k.Fragment&&d,a!==k.Fragment&&h),p)}function eP(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function ig(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});return t}function Ci(e){var t;return Object.assign(k.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function _c(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Zl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}function tP(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&rP(r)?!1:i}function rP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function nP(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.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}(r=i.requestSubmit)==null||r.call(i)}}let iP="div";var og=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(og||{});function oP(e,t){let{features:r=1,...i}=e,a={ref:t,"aria-hidden":(r&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",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ri({ourProps:a,theirProps:i,slot:{},defaultTag:iP,name:"Hidden"})}let aP=Ci(oP),af=k.createContext(null);af.displayName="OpenClosedContext";var bn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(bn||{});function ag(){return k.useContext(af)}function sP({value:e,children:t}){return k.createElement(af.Provider,{value:e},t)}var xc=(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))(xc||{});function uP(e,t,r){let[i,a]=k.useState(r),s=e!==void 0,l=k.useRef(s),c=k.useRef(!1),d=k.useRef(!1);return s&&!l.current&&!c.current?(c.current=!0,l.current=s,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.")):!s&&l.current&&!d.current&&(d.current=!0,l.current=s,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.")),[s?e:i,Gt(p=>(s||a(p),t==null?void 0:t(p)))]}function sf(){let e=k.useRef(!1);return on(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let sg=k.createContext(null);function ug(){let e=k.useContext(sg);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ug),t}return e}function lP(){let[e,t]=k.useState([]);return[e.length>0?e.join(" "):void 0,k.useMemo(()=>function(r){let i=Gt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=k.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return k.createElement(sg.Provider,{value:a},r.children)},[t])]}let cP="p";function fP(e,t){let r=of(),{id:i=`headlessui-description-${r}`,...a}=e,s=ug(),l=la(t);on(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Ri({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:cP,name:s.name||"Description"})}let dP=Ci(fP),pP=Object.assign(dP,{});function hP(e=0){let[t,r]=k.useState(e),i=sf(),a=k.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=k.useCallback(d=>!!(t&d),[t]),l=k.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),c=k.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let lg=k.createContext(null);function cg(){let e=k.useContext(lg);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,cg),t}return e}function vP(){let[e,t]=k.useState([]);return[e.length>0?e.join(" "):void 0,k.useMemo(()=>function(r){let i=Gt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=k.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return k.createElement(lg.Provider,{value:a},r.children)},[t])]}let mP="label";function gP(e,t){let r=of(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=cg(),c=la(t);on(()=>l.register(i),[i,l.register]);let d={ref:c,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Ri({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:mP,name:l.name||"Label"})}let yP=Ci(gP),wP=Object.assign(yP,{}),uf=k.createContext(null);uf.displayName="GroupContext";let bP=k.Fragment;function SP(e){var t;let[r,i]=k.useState(null),[a,s]=vP(),[l,c]=lP(),d=k.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return k.createElement(c,{name:"Switch.Description"},k.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(w){r&&(w.currentTarget.tagName==="LABEL"&&w.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},k.createElement(uf.Provider,{value:d},Ri({ourProps:p,theirProps:h,defaultTag:bP,name:"Switch.Group"}))))}let EP="button";function _P(e,t){let r=of(),{id:i=`headlessui-switch-${r}`,checked:a,defaultChecked:s=!1,onChange:l,name:c,value:d,form:p,...h}=e,w=k.useContext(uf),S=k.useRef(null),v=la(S,t,w===null?null:w.setSwitch),[_,g]=uP(a,l,s),x=Gt(()=>g==null?void 0:g(!_)),C=Gt(H=>{if(tP(H.currentTarget))return H.preventDefault();H.preventDefault(),x()}),P=Gt(H=>{H.key===xc.Space?(H.preventDefault(),x()):H.key===xc.Enter&&nP(H.currentTarget)}),T=Gt(H=>H.preventDefault()),$=k.useMemo(()=>({checked:_}),[_]),A={id:i,ref:v,role:"switch",type:JC(e,S),tabIndex:0,"aria-checked":_,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,onClick:C,onKeyUp:P,onKeyPress:T},D=rf();return k.useEffect(()=>{var H;let j=(H=S.current)==null?void 0:H.closest("form");j&&s!==void 0&&D.addEventListener(j,"reset",()=>{g(s)})},[S,g]),k.createElement(k.Fragment,null,c!=null&&_&&k.createElement(aP,{features:og.Hidden,..._c({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:p,checked:_,name:c,value:d})}),Ri({ourProps:A,theirProps:h,slot:$,defaultTag:EP,name:"Switch"}))}let xP=Ci(_P),OP=SP,AP=Object.assign(xP,{Group:OP,Label:wP,Description:pP});function TP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Gl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Kl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function RP(e,t){let r=ua();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,w)=>w-h);return p}),c=s+l;if(c!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},c),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function CP(e,t,r,i){let a=r?"enter":"leave",s=ua(),l=i!==void 0?TP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=tn(a,{enter:()=>t.enter,leave:()=>t.leave}),d=tn(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=tn(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Kl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gl(e,...t.base,...c,...p),s.nextFrame(()=>{Kl(e,...t.base,...c,...p),Gl(e,...t.base,...c,...d),RP(e,()=>(Kl(e,...t.base,...c),Gl(e,...t.base,...t.entered),l()))}),s.dispose}function PP({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=sf(),c=rf(),d=ro(r);on(()=>{e&&(d.current="enter")},[e]),on(()=>{let p=ua();c.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(CP(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function jn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Js=k.createContext(null);Js.displayName="TransitionContext";var IP=(e=>(e.Visible="visible",e.Hidden="hidden",e))(IP||{});function MP(){let e=k.useContext(Js);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function FP(){let e=k.useContext(Qs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Qs=k.createContext(null);Qs.displayName="NestingContext";function eu(e){return"children"in e?eu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function fg(e,t){let r=ro(e),i=k.useRef([]),a=sf(),s=rf(),l=Gt((v,_=Bn.Hidden)=>{let g=i.current.findIndex(({el:x})=>x===v);g!==-1&&(tn(_,{[Bn.Unmount](){i.current.splice(g,1)},[Bn.Hidden](){i.current[g].state="hidden"}}),s.microTask(()=>{var x;!eu(i)&&a.current&&((x=r.current)==null||x.call(r))}))}),c=Gt(v=>{let _=i.current.find(({el:g})=>g===v);return _?_.state!=="visible"&&(_.state="visible"):i.current.push({el:v,state:"visible"}),()=>l(v,Bn.Unmount)}),d=k.useRef([]),p=k.useRef(Promise.resolve()),h=k.useRef({enter:[],leave:[],idle:[]}),w=Gt((v,_,g)=>{d.current.splice(0),t&&(t.chains.current[_]=t.chains.current[_].filter(([x])=>x!==v)),t==null||t.chains.current[_].push([v,new Promise(x=>{d.current.push(x)})]),t==null||t.chains.current[_].push([v,new Promise(x=>{Promise.all(h.current[_].map(([C,P])=>P)).then(()=>x())})]),_==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(_)):g(_)}),S=Gt((v,_,g)=>{Promise.all(h.current[_].splice(0).map(([x,C])=>C)).then(()=>{var x;(x=d.current.shift())==null||x()}).then(()=>g(_))});return k.useMemo(()=>({children:i,register:c,unregister:l,onStart:w,onStop:S,wait:p,chains:h}),[c,l,i,w,S,h,p])}function LP(){}let $P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function mv(e){var t;let r={};for(let i of $P)r[i]=(t=e[i])!=null?t:LP;return r}function DP(e){let t=k.useRef(mv(e));return k.useEffect(()=>{t.current=mv(e)},[e]),t}let kP="div",dg=ng.RenderStrategy;function NP(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:d,enterFrom:p,enterTo:h,entered:w,leave:S,leaveFrom:v,leaveTo:_,...g}=e,x=k.useRef(null),C=la(x,t),P=(r=g.unmount)==null||r?Bn.Unmount:Bn.Hidden,{show:T,appear:$,initial:A}=MP(),[D,H]=k.useState(T?"visible":"hidden"),j=FP(),{register:V,unregister:ee}=j;k.useEffect(()=>V(x),[V,x]),k.useEffect(()=>{if(P===Bn.Hidden&&x.current){if(T&&D!=="visible"){H("visible");return}return tn(D,{hidden:()=>ee(x),visible:()=>V(x)})}},[D,x,V,ee,T,P]);let ye=ro({base:jn(g.className),enter:jn(d),enterFrom:jn(p),enterTo:jn(h),entered:jn(w),leave:jn(S),leaveFrom:jn(v),leaveTo:jn(_)}),Re=DP({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),Ee=nf();k.useEffect(()=>{if(Ee&&D==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,D,Ee]);let se=A&&!$,Fe=$&&T&&A,be=(()=>!Ee||se?"idle":T?"enter":"leave")(),Oe=hP(0),Be=Gt(oe=>tn(oe,{enter:()=>{Oe.addFlag(bn.Opening),Re.current.beforeEnter()},leave:()=>{Oe.addFlag(bn.Closing),Re.current.beforeLeave()},idle:()=>{}})),pt=Gt(oe=>tn(oe,{enter:()=>{Oe.removeFlag(bn.Opening),Re.current.afterEnter()},leave:()=>{Oe.removeFlag(bn.Closing),Re.current.afterLeave()},idle:()=>{}})),Z=fg(()=>{H("hidden"),ee(x)},j);PP({immediate:Fe,container:x,classes:ye,direction:be,onStart:ro(oe=>{Z.onStart(x,oe,Be)}),onStop:ro(oe=>{Z.onStop(x,oe,pt),oe==="leave"&&!eu(Z)&&(H("hidden"),ee(x))})});let Y=g,pe={ref:C};return Fe?Y={...Y,className:$s(g.className,...ye.current.enter,...ye.current.enterFrom)}:(Y.className=$s(g.className,(i=x.current)==null?void 0:i.className),Y.className===""&&delete Y.className),k.createElement(Qs.Provider,{value:Z},k.createElement(sP,{value:tn(D,{visible:bn.Open,hidden:bn.Closed})|Oe.flags},Ri({ourProps:pe,theirProps:Y,defaultTag:kP,features:dg,visible:D==="visible",name:"Transition.Child"})))}function jP(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=k.useRef(null),c=la(l,t);nf();let d=ag();if(r===void 0&&d!==null&&(r=(d&bn.Open)===bn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=k.useState(r?"visible":"hidden"),w=fg(()=>{h("hidden")}),[S,v]=k.useState(!0),_=k.useRef([r]);on(()=>{S!==!1&&_.current[_.current.length-1]!==r&&(_.current.push(r),v(!1))},[_,r]);let g=k.useMemo(()=>({show:r,appear:i,initial:S}),[r,i,S]);k.useEffect(()=>{if(r)h("visible");else if(!eu(w))h("hidden");else{let T=l.current;if(!T)return;let $=T.getBoundingClientRect();$.x===0&&$.y===0&&$.width===0&&$.height===0&&h("hidden")}},[r,w]);let x={unmount:a},C=Gt(()=>{var T;S&&v(!1),(T=e.beforeEnter)==null||T.call(e)}),P=Gt(()=>{var T;S&&v(!1),(T=e.beforeLeave)==null||T.call(e)});return k.createElement(Qs.Provider,{value:w},k.createElement(Js.Provider,{value:g},Ri({ourProps:{...x,as:k.Fragment,children:k.createElement(pg,{ref:c,...x,...s,beforeEnter:C,beforeLeave:P})},theirProps:{},defaultTag:k.Fragment,features:dg,visible:p==="visible",name:"Transition"})))}function WP(e,t){let r=k.useContext(Js)!==null,i=ag()!==null;return k.createElement(k.Fragment,null,!r&&i?k.createElement(Oc,{ref:t,...e}):k.createElement(pg,{ref:t,...e}))}let Oc=Ci(jP),pg=Ci(NP),UP=Ci(WP),Ds=Object.assign(Oc,{Child:UP,Root:Oc});const Yl={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"}},hg=k.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return N.jsx("div",{className:Dt("flex items-center",i),children:N.jsx(AP,{ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
147
|
-
relative inline-flex shrink-0 ${
|
|
148
|
-
pointer-events-none inline-block ${
|
|
96
|
+
`));let v=h.props,w=typeof(v==null?void 0:v.className)=="function"?(...y)=>Qa(v==null?void 0:v.className(...y),d.className):Qa(v==null?void 0:v.className,d.className),E=w?{className:w}:{};return D.cloneElement(h,Object.assign({},gm(h.props,Yl(bl(d,["ref"]))),b,p,{ref:a(h.ref,p.ref)},E))}return D.createElement(s,Object.assign({},bl(d,["ref"]),s!==D.Fragment&&p,s!==D.Fragment&&b),h)}function AP(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function gm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let f of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...s)}}});return t}function Yn(e){var t;return Object.assign(D.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yl(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function bl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let TP="div";var ym=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ym||{});function CP(e,t){var r;let{features:i=1,...a}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!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",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Kn({ourProps:s,theirProps:a,slot:{},defaultTag:TP,name:"Hidden"})}let PP=Yn(CP),Tf=D.createContext(null);Tf.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function wm(){return D.useContext(Tf)}function RP({value:e,children:t}){return D.createElement(Tf.Provider,{value:e},t)}function IP(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&MP(r)?!1:i}function MP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function FP(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.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}(r=i.requestSubmit)==null||r.call(i)}}var Vl=(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))(Vl||{});function Cf(){let e=D.useRef(!1);return Ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let bm=D.createContext(null);function Sm(){let e=D.useContext(bm);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Sm),t}return e}function LP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(bm.Provider,{value:a},r.children)},[t])]}let $P="p";function DP(e,t){let r=Af(),{id:i=`headlessui-description-${r}`,...a}=e,s=Sm(),l=Oo(t);Ir(()=>s.register(i),[i,s.register]);let f={ref:l,...s.props,id:i};return Kn({ourProps:f,theirProps:a,slot:s.slot||{},defaultTag:$P,name:s.name||"Description"})}let kP=Yn(DP),NP=Object.assign(kP,{}),Em=D.createContext(null);function xm(){let e=D.useContext(Em);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,xm),t}return e}function jP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(Em.Provider,{value:a},r.children)},[t])]}let WP="label";function zP(e,t){let r=Af(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=xm(),f=Oo(t);Ir(()=>l.register(i),[i,l.register]);let d={ref:f,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Kn({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:WP,name:l.name||"Label"})}let UP=Yn(zP),BP=Object.assign(UP,{});function HP(e=0){let[t,r]=D.useState(e),i=Cf(),a=D.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=D.useCallback(d=>!!(t&d),[t]),l=D.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),f=D.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:f}}let Pf=D.createContext(null);Pf.displayName="GroupContext";let qP=D.Fragment;function ZP(e){var t;let[r,i]=D.useState(null),[a,s]=jP(),[l,f]=LP(),d=D.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return D.createElement(f,{name:"Switch.Description"},D.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(b){r&&(b.currentTarget.tagName==="LABEL"&&b.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},D.createElement(Pf.Provider,{value:d},Kn({ourProps:p,theirProps:h,defaultTag:qP,name:"Switch.Group"}))))}let GP="button";function KP(e,t){var r;let i=Af(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:f,disabled:d=!1,name:p,value:h,form:b,...v}=e,w=D.useContext(Pf),E=D.useRef(null),y=Oo(E,t,w===null?null:w.setSwitch),[x,A]=SP(s,f,l),I=At(()=>A==null?void 0:A(!x)),P=At(q=>{if(IP(q.currentTarget))return q.preventDefault();q.preventDefault(),I()}),F=At(q=>{q.key===Vl.Space?(q.preventDefault(),I()):q.key===Vl.Enter&&FP(q.currentTarget)}),O=At(q=>q.preventDefault()),L=D.useMemo(()=>({checked:x}),[x]),U={id:a,ref:y,role:"switch",type:_P(e,E),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":x,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:d,onClick:P,onKeyUp:F,onKeyPress:O},z=_f();return D.useEffect(()=>{var q;let V=(q=E.current)==null?void 0:q.closest("form");V&&l!==void 0&&z.addEventListener(V,"reset",()=>{A(l)})},[E,A]),D.createElement(D.Fragment,null,p!=null&&x&&D.createElement(PP,{features:ym.Hidden,...Yl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:d,form:b,checked:x,name:p,value:h})}),Kn({ourProps:U,theirProps:v,slot:L,defaultTag:GP,name:"Switch"}))}let YP=Yn(KP),VP=ZP,XP=Object.assign(YP,{Group:VP,Label:BP,Description:NP});function JP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Sl(e,...t){e&&t.length>0&&e.classList.add(...t)}function El(e,...t){e&&t.length>0&&e.classList.remove(...t)}function QP(e,t){let r=_o();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,b)=>b-h);return p}),f=s+l;if(f!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},f),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function eR(e,t,r,i){let a=r?"enter":"leave",s=_o(),l=i!==void 0?JP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=Cr(a,{enter:()=>t.enter,leave:()=>t.leave}),d=Cr(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=Cr(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return El(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Sl(e,...t.base,...f,...p),s.nextFrame(()=>{El(e,...t.base,...f,...p),Sl(e,...t.base,...f,...d),QP(e,()=>(El(e,...t.base,...f),Sl(e,...t.base,...t.entered),l()))}),s.dispose}function tR({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=Cf(),f=_f(),d=wi(r);Ir(()=>{e&&(d.current="enter")},[e]),Ir(()=>{let p=_o();f.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(eR(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function hn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let vs=D.createContext(null);vs.displayName="TransitionContext";var rR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(rR||{});function nR(){let e=D.useContext(vs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function iR(){let e=D.useContext(ms);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ms=D.createContext(null);ms.displayName="NestingContext";function gs(e){return"children"in e?gs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function _m(e,t){let r=wi(e),i=D.useRef([]),a=Cf(),s=_f(),l=At((w,E=yn.Hidden)=>{let y=i.current.findIndex(({el:x})=>x===w);y!==-1&&(Cr(E,{[yn.Unmount](){i.current.splice(y,1)},[yn.Hidden](){i.current[y].state="hidden"}}),s.microTask(()=>{var x;!gs(i)&&a.current&&((x=r.current)==null||x.call(r))}))}),f=At(w=>{let E=i.current.find(({el:y})=>y===w);return E?E.state!=="visible"&&(E.state="visible"):i.current.push({el:w,state:"visible"}),()=>l(w,yn.Unmount)}),d=D.useRef([]),p=D.useRef(Promise.resolve()),h=D.useRef({enter:[],leave:[],idle:[]}),b=At((w,E,y)=>{d.current.splice(0),t&&(t.chains.current[E]=t.chains.current[E].filter(([x])=>x!==w)),t==null||t.chains.current[E].push([w,new Promise(x=>{d.current.push(x)})]),t==null||t.chains.current[E].push([w,new Promise(x=>{Promise.all(h.current[E].map(([A,I])=>I)).then(()=>x())})]),E==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(E)):y(E)}),v=At((w,E,y)=>{Promise.all(h.current[E].splice(0).map(([x,A])=>A)).then(()=>{var x;(x=d.current.shift())==null||x()}).then(()=>y(E))});return D.useMemo(()=>({children:i,register:f,unregister:l,onStart:b,onStop:v,wait:p,chains:h}),[f,l,i,b,v,h,p])}function oR(){}let aR=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Dh(e){var t;let r={};for(let i of aR)r[i]=(t=e[i])!=null?t:oR;return r}function sR(e){let t=D.useRef(Dh(e));return D.useEffect(()=>{t.current=Dh(e)},[e]),t}let uR="div",Om=mm.RenderStrategy;function lR(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f,enter:d,enterFrom:p,enterTo:h,entered:b,leave:v,leaveFrom:w,leaveTo:E,...y}=e,x=D.useRef(null),A=Oo(x,t),I=(r=y.unmount)==null||r?yn.Unmount:yn.Hidden,{show:P,appear:F,initial:O}=nR(),[L,U]=D.useState(P?"visible":"hidden"),z=iR(),{register:q,unregister:V}=z;D.useEffect(()=>q(x),[q,x]),D.useEffect(()=>{if(I===yn.Hidden&&x.current){if(P&&L!=="visible"){U("visible");return}return Cr(L,{hidden:()=>V(x),visible:()=>q(x)})}},[L,x,q,V,P,I]);let ee=wi({base:hn(y.className),enter:hn(d),enterFrom:hn(p),enterTo:hn(h),entered:hn(b),leave:hn(v),leaveFrom:hn(w),leaveTo:hn(E)}),be=sR({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f}),pe=Of();D.useEffect(()=>{if(pe&&L==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,L,pe]);let Ae=O&&!F,Ne=F&&P&&O,ve=!pe||Ae?"idle":P?"enter":"leave",Te=HP(0),Ge=At(Q=>Cr(Q,{enter:()=>{Te.addFlag(Gr.Opening),be.current.beforeEnter()},leave:()=>{Te.addFlag(Gr.Closing),be.current.beforeLeave()},idle:()=>{}})),Ct=At(Q=>Cr(Q,{enter:()=>{Te.removeFlag(Gr.Opening),be.current.afterEnter()},leave:()=>{Te.removeFlag(Gr.Closing),be.current.afterLeave()},idle:()=>{}})),H=_m(()=>{U("hidden"),V(x)},z),G=D.useRef(!1);tR({immediate:Ne,container:x,classes:ee,direction:ve,onStart:wi(Q=>{G.current=!0,H.onStart(x,Q,Ge)}),onStop:wi(Q=>{G.current=!1,H.onStop(x,Q,Ct),Q==="leave"&&!gs(H)&&(U("hidden"),V(x))})});let re=y,le={ref:A};return Ne?re={...re,className:Qa(y.className,...ee.current.enter,...ee.current.enterFrom)}:G.current&&(re.className=Qa(y.className,(i=x.current)==null?void 0:i.className),re.className===""&&delete re.className),D.createElement(ms.Provider,{value:H},D.createElement(RP,{value:Cr(L,{visible:Gr.Open,hidden:Gr.Closed})|Te.flags},Kn({ourProps:le,theirProps:re,defaultTag:uR,features:Om,visible:L==="visible",name:"Transition.Child"})))}function fR(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=D.useRef(null),f=Oo(l,t);Of();let d=wm();if(r===void 0&&d!==null&&(r=(d&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=D.useState(r?"visible":"hidden"),b=_m(()=>{h("hidden")}),[v,w]=D.useState(!0),E=D.useRef([r]);Ir(()=>{v!==!1&&E.current[E.current.length-1]!==r&&(E.current.push(r),w(!1))},[E,r]);let y=D.useMemo(()=>({show:r,appear:i,initial:v}),[r,i,v]);D.useEffect(()=>{if(r)h("visible");else if(!gs(b))h("hidden");else{let P=l.current;if(!P)return;let F=P.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&h("hidden")}},[r,b]);let x={unmount:a},A=At(()=>{var P;v&&w(!1),(P=e.beforeEnter)==null||P.call(e)}),I=At(()=>{var P;v&&w(!1),(P=e.beforeLeave)==null||P.call(e)});return D.createElement(ms.Provider,{value:b},D.createElement(vs.Provider,{value:y},Kn({ourProps:{...x,as:D.Fragment,children:D.createElement(Am,{ref:f,...x,...s,beforeEnter:A,beforeLeave:I})},theirProps:{},defaultTag:D.Fragment,features:Om,visible:p==="visible",name:"Transition"})))}function cR(e,t){let r=D.useContext(vs)!==null,i=wm()!==null;return D.createElement(D.Fragment,null,!r&&i?D.createElement(Xl,{ref:t,...e}):D.createElement(Am,{ref:t,...e}))}let Xl=Yn(fR),Am=Yn(lR),dR=Yn(cR),es=Object.assign(Xl,{Child:dR,Root:Xl});const xl={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},Tm=D.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return $.jsx("div",{className:ft("flex items-center",i),children:$.jsx(XP,{as:"span",ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
97
|
+
relative inline-flex shrink-0 ${xl[r].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:`${t?xl[r].translate:"translate-x-0"}
|
|
98
|
+
pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),pR=({children:e,label:t,placement:r="top",className:i})=>{const[a,s]=D.useState(null),[l,f]=D.useState(null),[d,p]=D.useState(!1),{styles:h,attributes:b}=lv(a,l,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),v=D.Children.map(e,w=>D.isValidElement(w)?D.cloneElement(w,{ref:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)}):w);return $.jsxs($.Fragment,{children:[v,d&&ho.createPortal($.jsx("div",{ref:f,style:h.popper,...b.popper,className:ft("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",i),children:t}),document.querySelector("body"))]})},hR=Ml.keyframes`
|
|
149
99
|
to {
|
|
150
100
|
fill: url(#d);
|
|
151
101
|
stroke-dashoffset: 0;
|
|
152
102
|
}
|
|
153
|
-
`,
|
|
103
|
+
`,Cm=Ka.svg`
|
|
154
104
|
& .e {
|
|
155
105
|
fill: url(#d);
|
|
156
106
|
}
|
|
@@ -161,7 +111,7 @@ pointer-events-none inline-block ${Yl[r].switch} transform rounded-full bg-white
|
|
|
161
111
|
fill: transparent;
|
|
162
112
|
stroke-dasharray: 700;
|
|
163
113
|
stroke-dashoffset: 700;
|
|
164
|
-
animation: ${
|
|
114
|
+
animation: ${hR} 1.5s ease-in-out infinite alternate-reverse;
|
|
165
115
|
}
|
|
166
116
|
|
|
167
117
|
& #circle {
|
|
@@ -171,37 +121,37 @@ pointer-events-none inline-block ${Yl[r].switch} transform rounded-full bg-white
|
|
|
171
121
|
stroke-dasharray: 700;
|
|
172
122
|
stroke-dashoffset: 700;
|
|
173
123
|
}
|
|
174
|
-
`,
|
|
124
|
+
`,vR=({message:e,version:t})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(Cm,{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:t}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var ts={exports:{}};/**
|
|
175
125
|
* @license
|
|
176
126
|
* Lodash <https://lodash.com/>
|
|
177
127
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
178
128
|
* Released under MIT license <https://lodash.com/license>
|
|
179
129
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
180
130
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
181
|
-
*/ks.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",w=1,S=2,v=4,_=1,g=2,x=1,C=2,P=4,T=8,$=16,A=32,D=64,H=128,j=256,V=512,ee=30,ye="...",Re=800,Ee=16,se=1,Fe=2,be=3,Oe=1/0,Be=9007199254740991,pt=17976931348623157e292,Z=0/0,Y=4294967295,pe=Y-1,oe=Y>>>1,fe=[["ary",H],["bind",x],["bindKey",C],["curry",T],["curryRight",$],["flip",V],["partial",A],["partialRight",D],["rearg",j]],de="[object Arguments]",ue="[object Array]",he="[object AsyncFunction]",le="[object Boolean]",we="[object Date]",Se="[object DOMException]",Ve="[object Error]",J="[object Function]",st="[object GeneratorFunction]",ut="[object Map]",yt="[object Number]",Gr="[object Null]",At="[object Object]",er="[object Promise]",Kn="[object Proxy]",et="[object RegExp]",rt="[object Set]",yr="[object String]",sr="[object Symbol]",Lr="[object Undefined]",kt="[object WeakMap]",xn="[object WeakSet]",wr="[object ArrayBuffer]",ur="[object DataView]",Yn="[object Float32Array]",Vn="[object Float64Array]",Xn="[object Int8Array]",Jn="[object Int16Array]",$r="[object Int32Array]",un="[object Uint8Array]",It="[object Uint8ClampedArray]",Dr="[object Uint16Array]",kr="[object Uint32Array]",Qn=/\b__p \+= '';/g,co=/\b(__p \+=) '' \+/g,ei=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,ti=RegExp(Mi.source),fo=RegExp(On.source),po=/<%-([\s\S]+?)%>/g,ri=/<%([\s\S]+?)%>/g,Fi=/<%=([\s\S]+?)%>/g,ho=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vo=/^\w*$/,mo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/[\\^$.*+?()[\]{}|]/g,I=RegExp(m.source),W=/^\s+/,K=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,re=/,? & /,te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,_e=/\\(\\)?/g,Ae=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,P0=/^0o[0-7]+$/i,I0=/^(?:0|[1-9]\d*)$/,M0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,F0=/['\n\r\u2028\u2029\\]/g,pa="\\ud800-\\udfff",L0="\\u0300-\\u036f",$0="\\ufe20-\\ufe2f",D0="\\u20d0-\\u20ff",Of=L0+$0+D0,Af="\\u2700-\\u27bf",Tf="a-z\\xdf-\\xf6\\xf8-\\xff",k0="\\xac\\xb1\\xd7\\xf7",N0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",j0="\\u2000-\\u206f",W0=" \\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",Rf="A-Z\\xc0-\\xd6\\xd8-\\xde",Cf="\\ufe0e\\ufe0f",Pf=k0+N0+j0+W0,au="['’]",U0="["+pa+"]",If="["+Pf+"]",ha="["+Of+"]",Mf="\\d+",H0="["+Af+"]",Ff="["+Tf+"]",Lf="[^"+pa+Pf+Mf+Af+Tf+Rf+"]",su="\\ud83c[\\udffb-\\udfff]",B0="(?:"+ha+"|"+su+")",$f="[^"+pa+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="["+Rf+"]",Df="\\u200d",kf="(?:"+Ff+"|"+Lf+")",z0="(?:"+Li+"|"+Lf+")",Nf="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",jf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Wf=B0+"?",Uf="["+Cf+"]?",q0="(?:"+Df+"(?:"+[$f,uu,lu].join("|")+")"+Uf+Wf+")*",Z0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",G0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hf=Uf+Wf+q0,K0="(?:"+[H0,uu,lu].join("|")+")"+Hf,Y0="(?:"+[$f+ha+"?",ha,uu,lu,U0].join("|")+")",V0=RegExp(au,"g"),X0=RegExp(ha,"g"),cu=RegExp(su+"(?="+su+")|"+Y0+Hf,"g"),J0=RegExp([Li+"?"+Ff+"+"+Nf+"(?="+[If,Li,"$"].join("|")+")",z0+"+"+jf+"(?="+[If,Li+kf,"$"].join("|")+")",Li+"?"+kf+"+"+Nf,Li+"+"+jf,G0,Z0,Mf,K0].join("|"),"g"),Q0=RegExp("["+Df+pa+Of+Cf+"]"),ey=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ty=["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"],ry=-1,tt={};tt[Yn]=tt[Vn]=tt[Xn]=tt[Jn]=tt[$r]=tt[un]=tt[It]=tt[Dr]=tt[kr]=!0,tt[de]=tt[ue]=tt[wr]=tt[le]=tt[ur]=tt[we]=tt[Ve]=tt[J]=tt[ut]=tt[yt]=tt[At]=tt[et]=tt[rt]=tt[yr]=tt[kt]=!1;var Je={};Je[de]=Je[ue]=Je[wr]=Je[ur]=Je[le]=Je[we]=Je[Yn]=Je[Vn]=Je[Xn]=Je[Jn]=Je[$r]=Je[ut]=Je[yt]=Je[At]=Je[et]=Je[rt]=Je[yr]=Je[sr]=Je[un]=Je[It]=Je[Dr]=Je[kr]=!0,Je[Ve]=Je[J]=Je[kt]=!1;var ny={À:"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"},iy={"&":"&","<":"<",">":">",'"':""","'":"'"},oy={"&":"&","<":"<",">":">",""":'"',"'":"'"},ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sy=parseFloat,uy=parseInt,Bf=typeof mi=="object"&&mi&&mi.Object===Object&&mi,ly=typeof self=="object"&&self&&self.Object===Object&&self,Mt=Bf||ly||Function("return this")(),fu=t&&!t.nodeType&&t,ii=fu&&!0&&e&&!e.nodeType&&e,zf=ii&&ii.exports===fu,du=zf&&Bf.process,br=function(){try{var M=ii&&ii.require&&ii.require("util").types;return M||du&&du.binding&&du.binding("util")}catch{}}(),qf=br&&br.isArrayBuffer,Zf=br&&br.isDate,Gf=br&&br.isMap,Kf=br&&br.isRegExp,Yf=br&&br.isSet,Vf=br&&br.isTypedArray;function lr(M,B,U){switch(U.length){case 0:return M.call(B);case 1:return M.call(B,U[0]);case 2:return M.call(B,U[0],U[1]);case 3:return M.call(B,U[0],U[1],U[2])}return M.apply(B,U)}function cy(M,B,U,ne){for(var xe=-1,He=M==null?0:M.length;++xe<He;){var Et=M[xe];B(ne,Et,U(Et),M)}return ne}function Sr(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne&&B(M[U],U,M)!==!1;);return M}function fy(M,B){for(var U=M==null?0:M.length;U--&&B(M[U],U,M)!==!1;);return M}function Xf(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne;)if(!B(M[U],U,M))return!1;return!0}function An(M,B){for(var U=-1,ne=M==null?0:M.length,xe=0,He=[];++U<ne;){var Et=M[U];B(Et,U,M)&&(He[xe++]=Et)}return He}function va(M,B){var U=M==null?0:M.length;return!!U&&$i(M,B,0)>-1}function pu(M,B,U){for(var ne=-1,xe=M==null?0:M.length;++ne<xe;)if(U(B,M[ne]))return!0;return!1}function nt(M,B){for(var U=-1,ne=M==null?0:M.length,xe=Array(ne);++U<ne;)xe[U]=B(M[U],U,M);return xe}function Tn(M,B){for(var U=-1,ne=B.length,xe=M.length;++U<ne;)M[xe+U]=B[U];return M}function hu(M,B,U,ne){var xe=-1,He=M==null?0:M.length;for(ne&&He&&(U=M[++xe]);++xe<He;)U=B(U,M[xe],xe,M);return U}function dy(M,B,U,ne){var xe=M==null?0:M.length;for(ne&&xe&&(U=M[--xe]);xe--;)U=B(U,M[xe],xe,M);return U}function vu(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne;)if(B(M[U],U,M))return!0;return!1}var py=mu("length");function hy(M){return M.split("")}function vy(M){return M.match(te)||[]}function Jf(M,B,U){var ne;return U(M,function(xe,He,Et){if(B(xe,He,Et))return ne=He,!1}),ne}function ma(M,B,U,ne){for(var xe=M.length,He=U+(ne?1:-1);ne?He--:++He<xe;)if(B(M[He],He,M))return He;return-1}function $i(M,B,U){return B===B?Ty(M,B,U):ma(M,Qf,U)}function my(M,B,U,ne){for(var xe=U-1,He=M.length;++xe<He;)if(ne(M[xe],B))return xe;return-1}function Qf(M){return M!==M}function ed(M,B){var U=M==null?0:M.length;return U?yu(M,B)/U:Z}function mu(M){return function(B){return B==null?r:B[M]}}function gu(M){return function(B){return M==null?r:M[B]}}function td(M,B,U,ne,xe){return xe(M,function(He,Et,Xe){U=ne?(ne=!1,He):B(U,He,Et,Xe)}),U}function gy(M,B){var U=M.length;for(M.sort(B);U--;)M[U]=M[U].value;return M}function yu(M,B){for(var U,ne=-1,xe=M.length;++ne<xe;){var He=B(M[ne]);He!==r&&(U=U===r?He:U+He)}return U}function wu(M,B){for(var U=-1,ne=Array(M);++U<M;)ne[U]=B(U);return ne}function yy(M,B){return nt(B,function(U){return[U,M[U]]})}function rd(M){return M&&M.slice(0,ad(M)+1).replace(W,"")}function cr(M){return function(B){return M(B)}}function bu(M,B){return nt(B,function(U){return M[U]})}function go(M,B){return M.has(B)}function nd(M,B){for(var U=-1,ne=M.length;++U<ne&&$i(B,M[U],0)>-1;);return U}function id(M,B){for(var U=M.length;U--&&$i(B,M[U],0)>-1;);return U}function wy(M,B){for(var U=M.length,ne=0;U--;)M[U]===B&&++ne;return ne}var by=gu(ny),Sy=gu(iy);function Ey(M){return"\\"+ay[M]}function _y(M,B){return M==null?r:M[B]}function Di(M){return Q0.test(M)}function xy(M){return ey.test(M)}function Oy(M){for(var B,U=[];!(B=M.next()).done;)U.push(B.value);return U}function Su(M){var B=-1,U=Array(M.size);return M.forEach(function(ne,xe){U[++B]=[xe,ne]}),U}function od(M,B){return function(U){return M(B(U))}}function Rn(M,B){for(var U=-1,ne=M.length,xe=0,He=[];++U<ne;){var Et=M[U];(Et===B||Et===h)&&(M[U]=h,He[xe++]=U)}return He}function ga(M){var B=-1,U=Array(M.size);return M.forEach(function(ne){U[++B]=ne}),U}function Ay(M){var B=-1,U=Array(M.size);return M.forEach(function(ne){U[++B]=[ne,ne]}),U}function Ty(M,B,U){for(var ne=U-1,xe=M.length;++ne<xe;)if(M[ne]===B)return ne;return-1}function Ry(M,B,U){for(var ne=U+1;ne--;)if(M[ne]===B)return ne;return ne}function ki(M){return Di(M)?Py(M):py(M)}function Nr(M){return Di(M)?Iy(M):hy(M)}function ad(M){for(var B=M.length;B--&&K.test(M.charAt(B)););return B}var Cy=gu(oy);function Py(M){for(var B=cu.lastIndex=0;cu.test(M);)++B;return B}function Iy(M){return M.match(cu)||[]}function My(M){return M.match(J0)||[]}var Fy=function M(B){B=B==null?Mt:Ni.defaults(Mt.Object(),B,Ni.pick(Mt,ty));var U=B.Array,ne=B.Date,xe=B.Error,He=B.Function,Et=B.Math,Xe=B.Object,Eu=B.RegExp,Ly=B.String,Er=B.TypeError,ya=U.prototype,$y=He.prototype,ji=Xe.prototype,wa=B["__core-js_shared__"],ba=$y.toString,Ge=ji.hasOwnProperty,Dy=0,sd=function(){var n=/[^.]+$/.exec(wa&&wa.keys&&wa.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Sa=ji.toString,ky=ba.call(Xe),Ny=Mt._,jy=Eu("^"+ba.call(Ge).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ea=zf?B.Buffer:r,Cn=B.Symbol,_a=B.Uint8Array,ud=Ea?Ea.allocUnsafe:r,xa=od(Xe.getPrototypeOf,Xe),ld=Xe.create,cd=ji.propertyIsEnumerable,Oa=ya.splice,fd=Cn?Cn.isConcatSpreadable:r,yo=Cn?Cn.iterator:r,oi=Cn?Cn.toStringTag:r,Aa=function(){try{var n=ci(Xe,"defineProperty");return n({},"",{}),n}catch{}}(),Wy=B.clearTimeout!==Mt.clearTimeout&&B.clearTimeout,Uy=ne&&ne.now!==Mt.Date.now&&ne.now,Hy=B.setTimeout!==Mt.setTimeout&&B.setTimeout,Ta=Et.ceil,Ra=Et.floor,_u=Xe.getOwnPropertySymbols,By=Ea?Ea.isBuffer:r,dd=B.isFinite,zy=ya.join,qy=od(Xe.keys,Xe),_t=Et.max,Nt=Et.min,Zy=ne.now,Gy=B.parseInt,pd=Et.random,Ky=ya.reverse,xu=ci(B,"DataView"),wo=ci(B,"Map"),Ou=ci(B,"Promise"),Wi=ci(B,"Set"),bo=ci(B,"WeakMap"),So=ci(Xe,"create"),Ca=bo&&new bo,Ui={},Yy=fi(xu),Vy=fi(wo),Xy=fi(Ou),Jy=fi(Wi),Qy=fi(bo),Pa=Cn?Cn.prototype:r,Eo=Pa?Pa.valueOf:r,hd=Pa?Pa.toString:r;function b(n){if(ct(n)&&!Te(n)&&!(n instanceof De)){if(n instanceof _r)return n;if(Ge.call(n,"__wrapped__"))return vp(n)}return new _r(n)}var Hi=function(){function n(){}return function(o){if(!ot(o))return{};if(ld)return ld(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Ia(){}function _r(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}b.templateSettings={escape:po,evaluate:ri,interpolate:Fi,variable:"",imports:{_:b}},b.prototype=Ia.prototype,b.prototype.constructor=b,_r.prototype=Hi(Ia.prototype),_r.prototype.constructor=_r;function De(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function e1(){var n=new De(this.__wrapped__);return n.__actions__=tr(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=tr(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=tr(this.__views__),n}function t1(){if(this.__filtered__){var n=new De(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function r1(){var n=this.__wrapped__.value(),o=this.__dir__,u=Te(n),f=o<0,y=u?n.length:0,E=hw(0,y,this.__views__),O=E.start,R=E.end,L=R-O,z=f?R:O-1,q=this.__iteratees__,G=q.length,Q=0,ie=Nt(L,this.__takeCount__);if(!u||!f&&y==L&&ie==L)return Nd(n,this.__actions__);var me=[];e:for(;L--&&Q<ie;){z+=o;for(var Pe=-1,ge=n[z];++Pe<G;){var $e=q[Pe],ke=$e.iteratee,pr=$e.type,Jt=ke(ge);if(pr==Fe)ge=Jt;else if(!Jt){if(pr==se)continue e;break e}}me[Q++]=ge}return me}De.prototype=Hi(Ia.prototype),De.prototype.constructor=De;function ai(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function n1(){this.__data__=So?So(null):{},this.size=0}function i1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function o1(n){var o=this.__data__;if(So){var u=o[n];return u===d?r:u}return Ge.call(o,n)?o[n]:r}function a1(n){var o=this.__data__;return So?o[n]!==r:Ge.call(o,n)}function s1(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=So&&o===r?d:o,this}ai.prototype.clear=n1,ai.prototype.delete=i1,ai.prototype.get=o1,ai.prototype.has=a1,ai.prototype.set=s1;function ln(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function u1(){this.__data__=[],this.size=0}function l1(n){var o=this.__data__,u=Ma(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():Oa.call(o,u,1),--this.size,!0}function c1(n){var o=this.__data__,u=Ma(o,n);return u<0?r:o[u][1]}function f1(n){return Ma(this.__data__,n)>-1}function d1(n,o){var u=this.__data__,f=Ma(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}ln.prototype.clear=u1,ln.prototype.delete=l1,ln.prototype.get=c1,ln.prototype.has=f1,ln.prototype.set=d1;function cn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function p1(){this.size=0,this.__data__={hash:new ai,map:new(wo||ln),string:new ai}}function h1(n){var o=za(this,n).delete(n);return this.size-=o?1:0,o}function v1(n){return za(this,n).get(n)}function m1(n){return za(this,n).has(n)}function g1(n,o){var u=za(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}cn.prototype.clear=p1,cn.prototype.delete=h1,cn.prototype.get=v1,cn.prototype.has=m1,cn.prototype.set=g1;function si(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new cn;++o<u;)this.add(n[o])}function y1(n){return this.__data__.set(n,d),this}function w1(n){return this.__data__.has(n)}si.prototype.add=si.prototype.push=y1,si.prototype.has=w1;function jr(n){var o=this.__data__=new ln(n);this.size=o.size}function b1(){this.__data__=new ln,this.size=0}function S1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function E1(n){return this.__data__.get(n)}function _1(n){return this.__data__.has(n)}function x1(n,o){var u=this.__data__;if(u instanceof ln){var f=u.__data__;if(!wo||f.length<a-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new cn(f)}return u.set(n,o),this.size=u.size,this}jr.prototype.clear=b1,jr.prototype.delete=S1,jr.prototype.get=E1,jr.prototype.has=_1,jr.prototype.set=x1;function vd(n,o){var u=Te(n),f=!u&&di(n),y=!u&&!f&&Ln(n),E=!u&&!f&&!y&&Zi(n),O=u||f||y||E,R=O?wu(n.length,Ly):[],L=R.length;for(var z in n)(o||Ge.call(n,z))&&!(O&&(z=="length"||y&&(z=="offset"||z=="parent")||E&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||hn(z,L)))&&R.push(z);return R}function md(n){var o=n.length;return o?n[Du(0,o-1)]:r}function O1(n,o){return qa(tr(n),ui(o,0,n.length))}function A1(n){return qa(tr(n))}function Au(n,o,u){(u!==r&&!Wr(n[o],u)||u===r&&!(o in n))&&fn(n,o,u)}function _o(n,o,u){var f=n[o];(!(Ge.call(n,o)&&Wr(f,u))||u===r&&!(o in n))&&fn(n,o,u)}function Ma(n,o){for(var u=n.length;u--;)if(Wr(n[u][0],o))return u;return-1}function T1(n,o,u,f){return Pn(n,function(y,E,O){o(f,y,u(y),O)}),f}function gd(n,o){return n&&Yr(o,Tt(o),n)}function R1(n,o){return n&&Yr(o,nr(o),n)}function fn(n,o,u){o=="__proto__"&&Aa?Aa(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Tu(n,o){for(var u=-1,f=o.length,y=U(f),E=n==null;++u<f;)y[u]=E?r:sl(n,o[u]);return y}function ui(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function xr(n,o,u,f,y,E){var O,R=o&w,L=o&S,z=o&v;if(u&&(O=y?u(n,f,y,E):u(n)),O!==r)return O;if(!ot(n))return n;var q=Te(n);if(q){if(O=mw(n),!R)return tr(n,O)}else{var G=jt(n),Q=G==J||G==st;if(Ln(n))return Ud(n,R);if(G==At||G==de||Q&&!y){if(O=L||Q?{}:ap(n),!R)return L?ow(n,R1(O,n)):iw(n,gd(O,n))}else{if(!Je[G])return y?n:{};O=gw(n,G,R)}}E||(E=new jr);var ie=E.get(n);if(ie)return ie;E.set(n,O),$p(n)?n.forEach(function(ge){O.add(xr(ge,o,u,ge,n,E))}):Fp(n)&&n.forEach(function(ge,$e){O.set($e,xr(ge,o,u,$e,n,E))});var me=z?L?Gu:Zu:L?nr:Tt,Pe=q?r:me(n);return Sr(Pe||n,function(ge,$e){Pe&&($e=ge,ge=n[$e]),_o(O,$e,xr(ge,o,u,$e,n,E))}),O}function C1(n){var o=Tt(n);return function(u){return yd(u,n,o)}}function yd(n,o,u){var f=u.length;if(n==null)return!f;for(n=Xe(n);f--;){var y=u[f],E=o[y],O=n[y];if(O===r&&!(y in n)||!E(O))return!1}return!0}function wd(n,o,u){if(typeof n!="function")throw new Er(l);return Po(function(){n.apply(r,u)},o)}function xo(n,o,u,f){var y=-1,E=va,O=!0,R=n.length,L=[],z=o.length;if(!R)return L;u&&(o=nt(o,cr(u))),f?(E=pu,O=!1):o.length>=a&&(E=go,O=!1,o=new si(o));e:for(;++y<R;){var q=n[y],G=u==null?q:u(q);if(q=f||q!==0?q:0,O&&G===G){for(var Q=z;Q--;)if(o[Q]===G)continue e;L.push(q)}else E(o,G,f)||L.push(q)}return L}var Pn=Zd(Kr),bd=Zd(Cu,!0);function P1(n,o){var u=!0;return Pn(n,function(f,y,E){return u=!!o(f,y,E),u}),u}function Fa(n,o,u){for(var f=-1,y=n.length;++f<y;){var E=n[f],O=o(E);if(O!=null&&(R===r?O===O&&!dr(O):u(O,R)))var R=O,L=E}return L}function I1(n,o,u,f){var y=n.length;for(u=Ce(u),u<0&&(u=-u>y?0:y+u),f=f===r||f>y?y:Ce(f),f<0&&(f+=y),f=u>f?0:kp(f);u<f;)n[u++]=o;return n}function Sd(n,o){var u=[];return Pn(n,function(f,y,E){o(f,y,E)&&u.push(f)}),u}function Ft(n,o,u,f,y){var E=-1,O=n.length;for(u||(u=ww),y||(y=[]);++E<O;){var R=n[E];o>0&&u(R)?o>1?Ft(R,o-1,u,f,y):Tn(y,R):f||(y[y.length]=R)}return y}var Ru=Gd(),Ed=Gd(!0);function Kr(n,o){return n&&Ru(n,o,Tt)}function Cu(n,o){return n&&Ed(n,o,Tt)}function La(n,o){return An(o,function(u){return vn(n[u])})}function li(n,o){o=Mn(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[Vr(o[u++])];return u&&u==f?n:r}function _d(n,o,u){var f=o(n);return Te(n)?f:Tn(f,u(n))}function Vt(n){return n==null?n===r?Lr:Gr:oi&&oi in Xe(n)?pw(n):Aw(n)}function Pu(n,o){return n>o}function M1(n,o){return n!=null&&Ge.call(n,o)}function F1(n,o){return n!=null&&o in Xe(n)}function L1(n,o,u){return n>=Nt(o,u)&&n<_t(o,u)}function Iu(n,o,u){for(var f=u?pu:va,y=n[0].length,E=n.length,O=E,R=U(E),L=1/0,z=[];O--;){var q=n[O];O&&o&&(q=nt(q,cr(o))),L=Nt(q.length,L),R[O]=!u&&(o||y>=120&&q.length>=120)?new si(O&&q):r}q=n[0];var G=-1,Q=R[0];e:for(;++G<y&&z.length<L;){var ie=q[G],me=o?o(ie):ie;if(ie=u||ie!==0?ie:0,!(Q?go(Q,me):f(z,me,u))){for(O=E;--O;){var Pe=R[O];if(!(Pe?go(Pe,me):f(n[O],me,u)))continue e}Q&&Q.push(me),z.push(ie)}}return z}function $1(n,o,u,f){return Kr(n,function(y,E,O){o(f,u(y),E,O)}),f}function Oo(n,o,u){o=Mn(o,n),n=cp(n,o);var f=n==null?n:n[Vr(Ar(o))];return f==null?r:lr(f,n,u)}function xd(n){return ct(n)&&Vt(n)==de}function D1(n){return ct(n)&&Vt(n)==wr}function k1(n){return ct(n)&&Vt(n)==we}function Ao(n,o,u,f,y){return n===o?!0:n==null||o==null||!ct(n)&&!ct(o)?n!==n&&o!==o:N1(n,o,u,f,Ao,y)}function N1(n,o,u,f,y,E){var O=Te(n),R=Te(o),L=O?ue:jt(n),z=R?ue:jt(o);L=L==de?At:L,z=z==de?At:z;var q=L==At,G=z==At,Q=L==z;if(Q&&Ln(n)){if(!Ln(o))return!1;O=!0,q=!1}if(Q&&!q)return E||(E=new jr),O||Zi(n)?np(n,o,u,f,y,E):fw(n,o,L,u,f,y,E);if(!(u&_)){var ie=q&&Ge.call(n,"__wrapped__"),me=G&&Ge.call(o,"__wrapped__");if(ie||me){var Pe=ie?n.value():n,ge=me?o.value():o;return E||(E=new jr),y(Pe,ge,u,f,E)}}return Q?(E||(E=new jr),dw(n,o,u,f,y,E)):!1}function j1(n){return ct(n)&&jt(n)==ut}function Mu(n,o,u,f){var y=u.length,E=y,O=!f;if(n==null)return!E;for(n=Xe(n);y--;){var R=u[y];if(O&&R[2]?R[1]!==n[R[0]]:!(R[0]in n))return!1}for(;++y<E;){R=u[y];var L=R[0],z=n[L],q=R[1];if(O&&R[2]){if(z===r&&!(L in n))return!1}else{var G=new jr;if(f)var Q=f(z,q,L,n,o,G);if(!(Q===r?Ao(q,z,_|g,f,G):Q))return!1}}return!0}function Od(n){if(!ot(n)||Sw(n))return!1;var o=vn(n)?jy:ht;return o.test(fi(n))}function W1(n){return ct(n)&&Vt(n)==et}function U1(n){return ct(n)&&jt(n)==rt}function H1(n){return ct(n)&&Xa(n.length)&&!!tt[Vt(n)]}function Ad(n){return typeof n=="function"?n:n==null?ir:typeof n=="object"?Te(n)?Cd(n[0],n[1]):Rd(n):Kp(n)}function Fu(n){if(!Co(n))return qy(n);var o=[];for(var u in Xe(n))Ge.call(n,u)&&u!="constructor"&&o.push(u);return o}function B1(n){if(!ot(n))return Ow(n);var o=Co(n),u=[];for(var f in n)f=="constructor"&&(o||!Ge.call(n,f))||u.push(f);return u}function Lu(n,o){return n<o}function Td(n,o){var u=-1,f=rr(n)?U(n.length):[];return Pn(n,function(y,E,O){f[++u]=o(y,E,O)}),f}function Rd(n){var o=Yu(n);return o.length==1&&o[0][2]?up(o[0][0],o[0][1]):function(u){return u===n||Mu(u,n,o)}}function Cd(n,o){return Xu(n)&&sp(o)?up(Vr(n),o):function(u){var f=sl(u,n);return f===r&&f===o?ul(u,n):Ao(o,f,_|g)}}function $a(n,o,u,f,y){n!==o&&Ru(o,function(E,O){if(y||(y=new jr),ot(E))z1(n,o,O,u,$a,f,y);else{var R=f?f(Qu(n,O),E,O+"",n,o,y):r;R===r&&(R=E),Au(n,O,R)}},nr)}function z1(n,o,u,f,y,E,O){var R=Qu(n,u),L=Qu(o,u),z=O.get(L);if(z){Au(n,u,z);return}var q=E?E(R,L,u+"",n,o,O):r,G=q===r;if(G){var Q=Te(L),ie=!Q&&Ln(L),me=!Q&&!ie&&Zi(L);q=L,Q||ie||me?Te(R)?q=R:vt(R)?q=tr(R):ie?(G=!1,q=Ud(L,!0)):me?(G=!1,q=Hd(L,!0)):q=[]:Io(L)||di(L)?(q=R,di(R)?q=Np(R):(!ot(R)||vn(R))&&(q=ap(L))):G=!1}G&&(O.set(L,q),y(q,L,f,E,O),O.delete(L)),Au(n,u,q)}function Pd(n,o){var u=n.length;if(u)return o+=o<0?u:0,hn(o,u)?n[o]:r}function Id(n,o,u){o.length?o=nt(o,function(E){return Te(E)?function(O){return li(O,E.length===1?E[0]:E)}:E}):o=[ir];var f=-1;o=nt(o,cr(ve()));var y=Td(n,function(E,O,R){var L=nt(o,function(z){return z(E)});return{criteria:L,index:++f,value:E}});return gy(y,function(E,O){return nw(E,O,u)})}function q1(n,o){return Md(n,o,function(u,f){return ul(n,f)})}function Md(n,o,u){for(var f=-1,y=o.length,E={};++f<y;){var O=o[f],R=li(n,O);u(R,O)&&To(E,Mn(O,n),R)}return E}function Z1(n){return function(o){return li(o,n)}}function $u(n,o,u,f){var y=f?my:$i,E=-1,O=o.length,R=n;for(n===o&&(o=tr(o)),u&&(R=nt(n,cr(u)));++E<O;)for(var L=0,z=o[E],q=u?u(z):z;(L=y(R,q,L,f))>-1;)R!==n&&Oa.call(R,L,1),Oa.call(n,L,1);return n}function Fd(n,o){for(var u=n?o.length:0,f=u-1;u--;){var y=o[u];if(u==f||y!==E){var E=y;hn(y)?Oa.call(n,y,1):ju(n,y)}}return n}function Du(n,o){return n+Ra(pd()*(o-n+1))}function G1(n,o,u,f){for(var y=-1,E=_t(Ta((o-n)/(u||1)),0),O=U(E);E--;)O[f?E:++y]=n,n+=u;return O}function ku(n,o){var u="";if(!n||o<1||o>Be)return u;do o%2&&(u+=n),o=Ra(o/2),o&&(n+=n);while(o);return u}function Ie(n,o){return el(lp(n,o,ir),n+"")}function K1(n){return md(Gi(n))}function Y1(n,o){var u=Gi(n);return qa(u,ui(o,0,u.length))}function To(n,o,u,f){if(!ot(n))return n;o=Mn(o,n);for(var y=-1,E=o.length,O=E-1,R=n;R!=null&&++y<E;){var L=Vr(o[y]),z=u;if(L==="__proto__"||L==="constructor"||L==="prototype")return n;if(y!=O){var q=R[L];z=f?f(q,L,R):r,z===r&&(z=ot(q)?q:hn(o[y+1])?[]:{})}_o(R,L,z),R=R[L]}return n}var Ld=Ca?function(n,o){return Ca.set(n,o),n}:ir,V1=Aa?function(n,o){return Aa(n,"toString",{configurable:!0,enumerable:!1,value:cl(o),writable:!0})}:ir;function X1(n){return qa(Gi(n))}function Or(n,o,u){var f=-1,y=n.length;o<0&&(o=-o>y?0:y+o),u=u>y?y:u,u<0&&(u+=y),y=o>u?0:u-o>>>0,o>>>=0;for(var E=U(y);++f<y;)E[f]=n[f+o];return E}function J1(n,o){var u;return Pn(n,function(f,y,E){return u=o(f,y,E),!u}),!!u}function Da(n,o,u){var f=0,y=n==null?f:n.length;if(typeof o=="number"&&o===o&&y<=oe){for(;f<y;){var E=f+y>>>1,O=n[E];O!==null&&!dr(O)&&(u?O<=o:O<o)?f=E+1:y=E}return y}return Nu(n,o,ir,u)}function Nu(n,o,u,f){var y=0,E=n==null?0:n.length;if(E===0)return 0;o=u(o);for(var O=o!==o,R=o===null,L=dr(o),z=o===r;y<E;){var q=Ra((y+E)/2),G=u(n[q]),Q=G!==r,ie=G===null,me=G===G,Pe=dr(G);if(O)var ge=f||me;else z?ge=me&&(f||Q):R?ge=me&&Q&&(f||!ie):L?ge=me&&Q&&!ie&&(f||!Pe):ie||Pe?ge=!1:ge=f?G<=o:G<o;ge?y=q+1:E=q}return Nt(E,pe)}function $d(n,o){for(var u=-1,f=n.length,y=0,E=[];++u<f;){var O=n[u],R=o?o(O):O;if(!u||!Wr(R,L)){var L=R;E[y++]=O===0?0:O}}return E}function Dd(n){return typeof n=="number"?n:dr(n)?Z:+n}function fr(n){if(typeof n=="string")return n;if(Te(n))return nt(n,fr)+"";if(dr(n))return hd?hd.call(n):"";var o=n+"";return o=="0"&&1/n==-Oe?"-0":o}function In(n,o,u){var f=-1,y=va,E=n.length,O=!0,R=[],L=R;if(u)O=!1,y=pu;else if(E>=a){var z=o?null:lw(n);if(z)return ga(z);O=!1,y=go,L=new si}else L=o?[]:R;e:for(;++f<E;){var q=n[f],G=o?o(q):q;if(q=u||q!==0?q:0,O&&G===G){for(var Q=L.length;Q--;)if(L[Q]===G)continue e;o&&L.push(G),R.push(q)}else y(L,G,u)||(L!==R&&L.push(G),R.push(q))}return R}function ju(n,o){return o=Mn(o,n),n=cp(n,o),n==null||delete n[Vr(Ar(o))]}function kd(n,o,u,f){return To(n,o,u(li(n,o)),f)}function ka(n,o,u,f){for(var y=n.length,E=f?y:-1;(f?E--:++E<y)&&o(n[E],E,n););return u?Or(n,f?0:E,f?E+1:y):Or(n,f?E+1:0,f?y:E)}function Nd(n,o){var u=n;return u instanceof De&&(u=u.value()),hu(o,function(f,y){return y.func.apply(y.thisArg,Tn([f],y.args))},u)}function Wu(n,o,u){var f=n.length;if(f<2)return f?In(n[0]):[];for(var y=-1,E=U(f);++y<f;)for(var O=n[y],R=-1;++R<f;)R!=y&&(E[y]=xo(E[y]||O,n[R],o,u));return In(Ft(E,1),o,u)}function jd(n,o,u){for(var f=-1,y=n.length,E=o.length,O={};++f<y;){var R=f<E?o[f]:r;u(O,n[f],R)}return O}function Uu(n){return vt(n)?n:[]}function Hu(n){return typeof n=="function"?n:ir}function Mn(n,o){return Te(n)?n:Xu(n,o)?[n]:hp(ze(n))}var Q1=Ie;function Fn(n,o,u){var f=n.length;return u=u===r?f:u,!o&&u>=f?n:Or(n,o,u)}var Wd=Wy||function(n){return Mt.clearTimeout(n)};function Ud(n,o){if(o)return n.slice();var u=n.length,f=ud?ud(u):new n.constructor(u);return n.copy(f),f}function Bu(n){var o=new n.constructor(n.byteLength);return new _a(o).set(new _a(n)),o}function ew(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function tw(n){var o=new n.constructor(n.source,lt.exec(n));return o.lastIndex=n.lastIndex,o}function rw(n){return Eo?Xe(Eo.call(n)):{}}function Hd(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Bd(n,o){if(n!==o){var u=n!==r,f=n===null,y=n===n,E=dr(n),O=o!==r,R=o===null,L=o===o,z=dr(o);if(!R&&!z&&!E&&n>o||E&&O&&L&&!R&&!z||f&&O&&L||!u&&L||!y)return 1;if(!f&&!E&&!z&&n<o||z&&u&&y&&!f&&!E||R&&u&&y||!O&&y||!L)return-1}return 0}function nw(n,o,u){for(var f=-1,y=n.criteria,E=o.criteria,O=y.length,R=u.length;++f<O;){var L=Bd(y[f],E[f]);if(L){if(f>=R)return L;var z=u[f];return L*(z=="desc"?-1:1)}}return n.index-o.index}function zd(n,o,u,f){for(var y=-1,E=n.length,O=u.length,R=-1,L=o.length,z=_t(E-O,0),q=U(L+z),G=!f;++R<L;)q[R]=o[R];for(;++y<O;)(G||y<E)&&(q[u[y]]=n[y]);for(;z--;)q[R++]=n[y++];return q}function qd(n,o,u,f){for(var y=-1,E=n.length,O=-1,R=u.length,L=-1,z=o.length,q=_t(E-R,0),G=U(q+z),Q=!f;++y<q;)G[y]=n[y];for(var ie=y;++L<z;)G[ie+L]=o[L];for(;++O<R;)(Q||y<E)&&(G[ie+u[O]]=n[y++]);return G}function tr(n,o){var u=-1,f=n.length;for(o||(o=U(f));++u<f;)o[u]=n[u];return o}function Yr(n,o,u,f){var y=!u;u||(u={});for(var E=-1,O=o.length;++E<O;){var R=o[E],L=f?f(u[R],n[R],R,u,n):r;L===r&&(L=n[R]),y?fn(u,R,L):_o(u,R,L)}return u}function iw(n,o){return Yr(n,Vu(n),o)}function ow(n,o){return Yr(n,ip(n),o)}function Na(n,o){return function(u,f){var y=Te(u)?cy:T1,E=o?o():{};return y(u,n,ve(f,2),E)}}function Bi(n){return Ie(function(o,u){var f=-1,y=u.length,E=y>1?u[y-1]:r,O=y>2?u[2]:r;for(E=n.length>3&&typeof E=="function"?(y--,E):r,O&&Xt(u[0],u[1],O)&&(E=y<3?r:E,y=1),o=Xe(o);++f<y;){var R=u[f];R&&n(o,R,f,E)}return o})}function Zd(n,o){return function(u,f){if(u==null)return u;if(!rr(u))return n(u,f);for(var y=u.length,E=o?y:-1,O=Xe(u);(o?E--:++E<y)&&f(O[E],E,O)!==!1;);return u}}function Gd(n){return function(o,u,f){for(var y=-1,E=Xe(o),O=f(o),R=O.length;R--;){var L=O[n?R:++y];if(u(E[L],L,E)===!1)break}return o}}function aw(n,o,u){var f=o&x,y=Ro(n);function E(){var O=this&&this!==Mt&&this instanceof E?y:n;return O.apply(f?u:this,arguments)}return E}function Kd(n){return function(o){o=ze(o);var u=Di(o)?Nr(o):r,f=u?u[0]:o.charAt(0),y=u?Fn(u,1).join(""):o.slice(1);return f[n]()+y}}function zi(n){return function(o){return hu(Zp(qp(o).replace(V0,"")),n,"")}}function Ro(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Hi(n.prototype),f=n.apply(u,o);return ot(f)?f:u}}function sw(n,o,u){var f=Ro(n);function y(){for(var E=arguments.length,O=U(E),R=E,L=qi(y);R--;)O[R]=arguments[R];var z=E<3&&O[0]!==L&&O[E-1]!==L?[]:Rn(O,L);if(E-=z.length,E<u)return Qd(n,o,ja,y.placeholder,r,O,z,r,r,u-E);var q=this&&this!==Mt&&this instanceof y?f:n;return lr(q,this,O)}return y}function Yd(n){return function(o,u,f){var y=Xe(o);if(!rr(o)){var E=ve(u,3);o=Tt(o),u=function(R){return E(y[R],R,y)}}var O=n(o,u,f);return O>-1?y[E?o[O]:O]:r}}function Vd(n){return pn(function(o){var u=o.length,f=u,y=_r.prototype.thru;for(n&&o.reverse();f--;){var E=o[f];if(typeof E!="function")throw new Er(l);if(y&&!O&&Ba(E)=="wrapper")var O=new _r([],!0)}for(f=O?f:u;++f<u;){E=o[f];var R=Ba(E),L=R=="wrapper"?Ku(E):r;L&&Ju(L[0])&&L[1]==(H|T|A|j)&&!L[4].length&&L[9]==1?O=O[Ba(L[0])].apply(O,L[3]):O=E.length==1&&Ju(E)?O[R]():O.thru(E)}return function(){var z=arguments,q=z[0];if(O&&z.length==1&&Te(q))return O.plant(q).value();for(var G=0,Q=u?o[G].apply(this,z):q;++G<u;)Q=o[G].call(this,Q);return Q}})}function ja(n,o,u,f,y,E,O,R,L,z){var q=o&H,G=o&x,Q=o&C,ie=o&(T|$),me=o&V,Pe=Q?r:Ro(n);function ge(){for(var $e=arguments.length,ke=U($e),pr=$e;pr--;)ke[pr]=arguments[pr];if(ie)var Jt=qi(ge),hr=wy(ke,Jt);if(f&&(ke=zd(ke,f,y,ie)),E&&(ke=qd(ke,E,O,ie)),$e-=hr,ie&&$e<z){var mt=Rn(ke,Jt);return Qd(n,o,ja,ge.placeholder,u,ke,mt,R,L,z-$e)}var Ur=G?u:this,gn=Q?Ur[n]:n;return $e=ke.length,R?ke=Tw(ke,R):me&&$e>1&&ke.reverse(),q&&L<$e&&(ke.length=L),this&&this!==Mt&&this instanceof ge&&(gn=Pe||Ro(gn)),gn.apply(Ur,ke)}return ge}function Xd(n,o){return function(u,f){return $1(u,n,o(f),{})}}function Wa(n,o){return function(u,f){var y;if(u===r&&f===r)return o;if(u!==r&&(y=u),f!==r){if(y===r)return f;typeof u=="string"||typeof f=="string"?(u=fr(u),f=fr(f)):(u=Dd(u),f=Dd(f)),y=n(u,f)}return y}}function zu(n){return pn(function(o){return o=nt(o,cr(ve())),Ie(function(u){var f=this;return n(o,function(y){return lr(y,f,u)})})})}function Ua(n,o){o=o===r?" ":fr(o);var u=o.length;if(u<2)return u?ku(o,n):o;var f=ku(o,Ta(n/ki(o)));return Di(o)?Fn(Nr(f),0,n).join(""):f.slice(0,n)}function uw(n,o,u,f){var y=o&x,E=Ro(n);function O(){for(var R=-1,L=arguments.length,z=-1,q=f.length,G=U(q+L),Q=this&&this!==Mt&&this instanceof O?E:n;++z<q;)G[z]=f[z];for(;L--;)G[z++]=arguments[++R];return lr(Q,y?u:this,G)}return O}function Jd(n){return function(o,u,f){return f&&typeof f!="number"&&Xt(o,u,f)&&(u=f=r),o=mn(o),u===r?(u=o,o=0):u=mn(u),f=f===r?o<u?1:-1:mn(f),G1(o,u,f,n)}}function Ha(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=Tr(o),u=Tr(u)),n(o,u)}}function Qd(n,o,u,f,y,E,O,R,L,z){var q=o&T,G=q?O:r,Q=q?r:O,ie=q?E:r,me=q?r:E;o|=q?A:D,o&=~(q?D:A),o&P||(o&=~(x|C));var Pe=[n,o,y,ie,G,me,Q,R,L,z],ge=u.apply(r,Pe);return Ju(n)&&fp(ge,Pe),ge.placeholder=f,dp(ge,n,o)}function qu(n){var o=Et[n];return function(u,f){if(u=Tr(u),f=f==null?0:Nt(Ce(f),292),f&&dd(u)){var y=(ze(u)+"e").split("e"),E=o(y[0]+"e"+(+y[1]+f));return y=(ze(E)+"e").split("e"),+(y[0]+"e"+(+y[1]-f))}return o(u)}}var lw=Wi&&1/ga(new Wi([,-0]))[1]==Oe?function(n){return new Wi(n)}:pl;function ep(n){return function(o){var u=jt(o);return u==ut?Su(o):u==rt?Ay(o):yy(o,n(o))}}function dn(n,o,u,f,y,E,O,R){var L=o&C;if(!L&&typeof n!="function")throw new Er(l);var z=f?f.length:0;if(z||(o&=~(A|D),f=y=r),O=O===r?O:_t(Ce(O),0),R=R===r?R:Ce(R),z-=y?y.length:0,o&D){var q=f,G=y;f=y=r}var Q=L?r:Ku(n),ie=[n,o,u,f,y,q,G,E,O,R];if(Q&&xw(ie,Q),n=ie[0],o=ie[1],u=ie[2],f=ie[3],y=ie[4],R=ie[9]=ie[9]===r?L?0:n.length:_t(ie[9]-z,0),!R&&o&(T|$)&&(o&=~(T|$)),!o||o==x)var me=aw(n,o,u);else o==T||o==$?me=sw(n,o,R):(o==A||o==(x|A))&&!y.length?me=uw(n,o,u,f):me=ja.apply(r,ie);var Pe=Q?Ld:fp;return dp(Pe(me,ie),n,o)}function tp(n,o,u,f){return n===r||Wr(n,ji[u])&&!Ge.call(f,u)?o:n}function rp(n,o,u,f,y,E){return ot(n)&&ot(o)&&(E.set(o,n),$a(n,o,r,rp,E),E.delete(o)),n}function cw(n){return Io(n)?r:n}function np(n,o,u,f,y,E){var O=u&_,R=n.length,L=o.length;if(R!=L&&!(O&&L>R))return!1;var z=E.get(n),q=E.get(o);if(z&&q)return z==o&&q==n;var G=-1,Q=!0,ie=u&g?new si:r;for(E.set(n,o),E.set(o,n);++G<R;){var me=n[G],Pe=o[G];if(f)var ge=O?f(Pe,me,G,o,n,E):f(me,Pe,G,n,o,E);if(ge!==r){if(ge)continue;Q=!1;break}if(ie){if(!vu(o,function($e,ke){if(!go(ie,ke)&&(me===$e||y(me,$e,u,f,E)))return ie.push(ke)})){Q=!1;break}}else if(!(me===Pe||y(me,Pe,u,f,E))){Q=!1;break}}return E.delete(n),E.delete(o),Q}function fw(n,o,u,f,y,E,O){switch(u){case ur:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case wr:return!(n.byteLength!=o.byteLength||!E(new _a(n),new _a(o)));case le:case we:case yt:return Wr(+n,+o);case Ve:return n.name==o.name&&n.message==o.message;case et:case yr:return n==o+"";case ut:var R=Su;case rt:var L=f&_;if(R||(R=ga),n.size!=o.size&&!L)return!1;var z=O.get(n);if(z)return z==o;f|=g,O.set(n,o);var q=np(R(n),R(o),f,y,E,O);return O.delete(n),q;case sr:if(Eo)return Eo.call(n)==Eo.call(o)}return!1}function dw(n,o,u,f,y,E){var O=u&_,R=Zu(n),L=R.length,z=Zu(o),q=z.length;if(L!=q&&!O)return!1;for(var G=L;G--;){var Q=R[G];if(!(O?Q in o:Ge.call(o,Q)))return!1}var ie=E.get(n),me=E.get(o);if(ie&&me)return ie==o&&me==n;var Pe=!0;E.set(n,o),E.set(o,n);for(var ge=O;++G<L;){Q=R[G];var $e=n[Q],ke=o[Q];if(f)var pr=O?f(ke,$e,Q,o,n,E):f($e,ke,Q,n,o,E);if(!(pr===r?$e===ke||y($e,ke,u,f,E):pr)){Pe=!1;break}ge||(ge=Q=="constructor")}if(Pe&&!ge){var Jt=n.constructor,hr=o.constructor;Jt!=hr&&"constructor"in n&&"constructor"in o&&!(typeof Jt=="function"&&Jt instanceof Jt&&typeof hr=="function"&&hr instanceof hr)&&(Pe=!1)}return E.delete(n),E.delete(o),Pe}function pn(n){return el(lp(n,r,yp),n+"")}function Zu(n){return _d(n,Tt,Vu)}function Gu(n){return _d(n,nr,ip)}var Ku=Ca?function(n){return Ca.get(n)}:pl;function Ba(n){for(var o=n.name+"",u=Ui[o],f=Ge.call(Ui,o)?u.length:0;f--;){var y=u[f],E=y.func;if(E==null||E==n)return y.name}return o}function qi(n){var o=Ge.call(b,"placeholder")?b:n;return o.placeholder}function ve(){var n=b.iteratee||fl;return n=n===fl?Ad:n,arguments.length?n(arguments[0],arguments[1]):n}function za(n,o){var u=n.__data__;return bw(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Yu(n){for(var o=Tt(n),u=o.length;u--;){var f=o[u],y=n[f];o[u]=[f,y,sp(y)]}return o}function ci(n,o){var u=_y(n,o);return Od(u)?u:r}function pw(n){var o=Ge.call(n,oi),u=n[oi];try{n[oi]=r;var f=!0}catch{}var y=Sa.call(n);return f&&(o?n[oi]=u:delete n[oi]),y}var Vu=_u?function(n){return n==null?[]:(n=Xe(n),An(_u(n),function(o){return cd.call(n,o)}))}:hl,ip=_u?function(n){for(var o=[];n;)Tn(o,Vu(n)),n=xa(n);return o}:hl,jt=Vt;(xu&&jt(new xu(new ArrayBuffer(1)))!=ur||wo&&jt(new wo)!=ut||Ou&&jt(Ou.resolve())!=er||Wi&&jt(new Wi)!=rt||bo&&jt(new bo)!=kt)&&(jt=function(n){var o=Vt(n),u=o==At?n.constructor:r,f=u?fi(u):"";if(f)switch(f){case Yy:return ur;case Vy:return ut;case Xy:return er;case Jy:return rt;case Qy:return kt}return o});function hw(n,o,u){for(var f=-1,y=u.length;++f<y;){var E=u[f],O=E.size;switch(E.type){case"drop":n+=O;break;case"dropRight":o-=O;break;case"take":o=Nt(o,n+O);break;case"takeRight":n=_t(n,o-O);break}}return{start:n,end:o}}function vw(n){var o=n.match(ae);return o?o[1].split(re):[]}function op(n,o,u){o=Mn(o,n);for(var f=-1,y=o.length,E=!1;++f<y;){var O=Vr(o[f]);if(!(E=n!=null&&u(n,O)))break;n=n[O]}return E||++f!=y?E:(y=n==null?0:n.length,!!y&&Xa(y)&&hn(O,y)&&(Te(n)||di(n)))}function mw(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Ge.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function ap(n){return typeof n.constructor=="function"&&!Co(n)?Hi(xa(n)):{}}function gw(n,o,u){var f=n.constructor;switch(o){case wr:return Bu(n);case le:case we:return new f(+n);case ur:return ew(n,u);case Yn:case Vn:case Xn:case Jn:case $r:case un:case It:case Dr:case kr:return Hd(n,u);case ut:return new f;case yt:case yr:return new f(n);case et:return tw(n);case rt:return new f;case sr:return rw(n)}}function yw(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(ce,`{
|
|
131
|
+
*/ts.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="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__",p=500,h="__lodash_placeholder__",b=1,v=2,w=4,E=1,y=2,x=1,A=2,I=4,P=8,F=16,O=32,L=64,U=128,z=256,q=512,V=30,ee="...",be=800,pe=16,Ae=1,Ne=2,ve=3,Te=1/0,Ge=9007199254740991,Ct=17976931348623157e292,H=NaN,G=4294967295,re=G-1,le=G>>>1,Q=[["ary",U],["bind",x],["bindKey",A],["curry",P],["curryRight",F],["flip",q],["partial",O],["partialRight",L],["rearg",z]],ae="[object Arguments]",se="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",ge="[object Date]",xe="[object DOMException]",He="[object Error]",K="[object Function]",gt="[object GeneratorFunction]",st="[object Map]",br="[object Number]",Co="[object Null]",Xt="[object Object]",Po="[object Promise]",xs="[object Proxy]",zt="[object RegExp]",yt="[object Set]",Xr="[object String]",_n="[object Symbol]",Ti="[object Undefined]",Jr="[object WeakMap]",Ro="[object WeakSet]",Qr="[object ArrayBuffer]",Lr="[object DataView]",_s="[object Float32Array]",Os="[object Float64Array]",As="[object Int8Array]",Ts="[object Int16Array]",Cs="[object Int32Array]",Ps="[object Uint8Array]",Rs="[object Uint8ClampedArray]",Is="[object Uint16Array]",Ms="[object Uint32Array]",Bg=/\b__p \+= '';/g,Hg=/\b(__p \+=) '' \+/g,qg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gf=/&(?:amp|lt|gt|quot|#39);/g,Kf=/[&<>"']/g,Zg=RegExp(Gf.source),Gg=RegExp(Kf.source),Kg=/<%-([\s\S]+?)%>/g,Yg=/<%([\s\S]+?)%>/g,Yf=/<%=([\s\S]+?)%>/g,Vg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xg=/^\w*$/,Jg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fs=/[\\^$.*+?()[\]{}|]/g,Qg=RegExp(Fs.source),Ls=/^\s+/,ey=/\s/,ty=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ry=/\{\n\/\* \[wrapped with (.+)\] \*/,ny=/,? & /,iy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oy=/[()=,{}\[\]\/\s]/,ay=/\\(\\)?/g,sy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vf=/\w*$/,uy=/^[-+]0x[0-9a-f]+$/i,ly=/^0b[01]+$/i,fy=/^\[object .+?Constructor\]$/,cy=/^0o[0-7]+$/i,dy=/^(?:0|[1-9]\d*)$/,py=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,hy=/['\n\r\u2028\u2029\\]/g,Mo="\\ud800-\\udfff",vy="\\u0300-\\u036f",my="\\ufe20-\\ufe2f",gy="\\u20d0-\\u20ff",Xf=vy+my+gy,Jf="\\u2700-\\u27bf",Qf="a-z\\xdf-\\xf6\\xf8-\\xff",yy="\\xac\\xb1\\xd7\\xf7",wy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",by="\\u2000-\\u206f",Sy=" \\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",ec="A-Z\\xc0-\\xd6\\xd8-\\xde",tc="\\ufe0e\\ufe0f",rc=yy+wy+by+Sy,$s="['’]",Ey="["+Mo+"]",nc="["+rc+"]",Fo="["+Xf+"]",ic="\\d+",xy="["+Jf+"]",oc="["+Qf+"]",ac="[^"+Mo+rc+ic+Jf+Qf+ec+"]",Ds="\\ud83c[\\udffb-\\udfff]",_y="(?:"+Fo+"|"+Ds+")",sc="[^"+Mo+"]",ks="(?:\\ud83c[\\udde6-\\uddff]){2}",Ns="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+ec+"]",uc="\\u200d",lc="(?:"+oc+"|"+ac+")",Oy="(?:"+Jn+"|"+ac+")",fc="(?:"+$s+"(?:d|ll|m|re|s|t|ve))?",cc="(?:"+$s+"(?:D|LL|M|RE|S|T|VE))?",dc=_y+"?",pc="["+tc+"]?",Ay="(?:"+uc+"(?:"+[sc,ks,Ns].join("|")+")"+pc+dc+")*",Ty="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hc=pc+dc+Ay,Py="(?:"+[xy,ks,Ns].join("|")+")"+hc,Ry="(?:"+[sc+Fo+"?",Fo,ks,Ns,Ey].join("|")+")",Iy=RegExp($s,"g"),My=RegExp(Fo,"g"),js=RegExp(Ds+"(?="+Ds+")|"+Ry+hc,"g"),Fy=RegExp([Jn+"?"+oc+"+"+fc+"(?="+[nc,Jn,"$"].join("|")+")",Oy+"+"+cc+"(?="+[nc,Jn+lc,"$"].join("|")+")",Jn+"?"+lc+"+"+fc,Jn+"+"+cc,Cy,Ty,ic,Py].join("|"),"g"),Ly=RegExp("["+uc+Mo+Xf+tc+"]"),$y=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dy=["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"],ky=-1,We={};We[_s]=We[Os]=We[As]=We[Ts]=We[Cs]=We[Ps]=We[Rs]=We[Is]=We[Ms]=!0,We[ae]=We[se]=We[Qr]=We[ue]=We[Lr]=We[ge]=We[He]=We[K]=We[st]=We[br]=We[Xt]=We[zt]=We[yt]=We[Xr]=We[Jr]=!1;var je={};je[ae]=je[se]=je[Qr]=je[Lr]=je[ue]=je[ge]=je[_s]=je[Os]=je[As]=je[Ts]=je[Cs]=je[st]=je[br]=je[Xt]=je[zt]=je[yt]=je[Xr]=je[_n]=je[Ps]=je[Rs]=je[Is]=je[Ms]=!0,je[He]=je[K]=je[Jr]=!1;var Ny={À:"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"},jy={"&":"&","<":"<",">":">",'"':""","'":"'"},Wy={"&":"&","<":"<",">":">",""":'"',"'":"'"},zy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Uy=parseFloat,By=parseInt,vc=typeof kn=="object"&&kn&&kn.Object===Object&&kn,Hy=typeof self=="object"&&self&&self.Object===Object&&self,dt=vc||Hy||Function("return this")(),Ws=t&&!t.nodeType&&t,On=Ws&&!0&&e&&!e.nodeType&&e,mc=On&&On.exports===Ws,zs=mc&&vc.process,Jt=function(){try{var R=On&&On.require&&On.require("util").types;return R||zs&&zs.binding&&zs.binding("util")}catch{}}(),gc=Jt&&Jt.isArrayBuffer,yc=Jt&&Jt.isDate,wc=Jt&&Jt.isMap,bc=Jt&&Jt.isRegExp,Sc=Jt&&Jt.isSet,Ec=Jt&&Jt.isTypedArray;function Ut(R,N,k){switch(k.length){case 0:return R.call(N);case 1:return R.call(N,k[0]);case 2:return R.call(N,k[0],k[1]);case 3:return R.call(N,k[0],k[1],k[2])}return R.apply(N,k)}function qy(R,N,k,X){for(var fe=-1,Re=R==null?0:R.length;++fe<Re;){var rt=R[fe];N(X,rt,k(rt),R)}return X}function Qt(R,N){for(var k=-1,X=R==null?0:R.length;++k<X&&N(R[k],k,R)!==!1;);return R}function Zy(R,N){for(var k=R==null?0:R.length;k--&&N(R[k],k,R)!==!1;);return R}function xc(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(!N(R[k],k,R))return!1;return!0}function en(R,N){for(var k=-1,X=R==null?0:R.length,fe=0,Re=[];++k<X;){var rt=R[k];N(rt,k,R)&&(Re[fe++]=rt)}return Re}function Lo(R,N){var k=R==null?0:R.length;return!!k&&Qn(R,N,0)>-1}function Us(R,N,k){for(var X=-1,fe=R==null?0:R.length;++X<fe;)if(k(N,R[X]))return!0;return!1}function ze(R,N){for(var k=-1,X=R==null?0:R.length,fe=Array(X);++k<X;)fe[k]=N(R[k],k,R);return fe}function tn(R,N){for(var k=-1,X=N.length,fe=R.length;++k<X;)R[fe+k]=N[k];return R}function Bs(R,N,k,X){var fe=-1,Re=R==null?0:R.length;for(X&&Re&&(k=R[++fe]);++fe<Re;)k=N(k,R[fe],fe,R);return k}function Gy(R,N,k,X){var fe=R==null?0:R.length;for(X&&fe&&(k=R[--fe]);fe--;)k=N(k,R[fe],fe,R);return k}function Hs(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(N(R[k],k,R))return!0;return!1}var Ky=qs("length");function Yy(R){return R.split("")}function Vy(R){return R.match(iy)||[]}function _c(R,N,k){var X;return k(R,function(fe,Re,rt){if(N(fe,Re,rt))return X=Re,!1}),X}function $o(R,N,k,X){for(var fe=R.length,Re=k+(X?1:-1);X?Re--:++Re<fe;)if(N(R[Re],Re,R))return Re;return-1}function Qn(R,N,k){return N===N?u0(R,N,k):$o(R,Oc,k)}function Xy(R,N,k,X){for(var fe=k-1,Re=R.length;++fe<Re;)if(X(R[fe],N))return fe;return-1}function Oc(R){return R!==R}function Ac(R,N){var k=R==null?0:R.length;return k?Gs(R,N)/k:H}function qs(R){return function(N){return N==null?r:N[R]}}function Zs(R){return function(N){return R==null?r:R[N]}}function Tc(R,N,k,X,fe){return fe(R,function(Re,rt,ke){k=X?(X=!1,Re):N(k,Re,rt,ke)}),k}function Jy(R,N){var k=R.length;for(R.sort(N);k--;)R[k]=R[k].value;return R}function Gs(R,N){for(var k,X=-1,fe=R.length;++X<fe;){var Re=N(R[X]);Re!==r&&(k=k===r?Re:k+Re)}return k}function Ks(R,N){for(var k=-1,X=Array(R);++k<R;)X[k]=N(k);return X}function Qy(R,N){return ze(N,function(k){return[k,R[k]]})}function Cc(R){return R&&R.slice(0,Mc(R)+1).replace(Ls,"")}function Bt(R){return function(N){return R(N)}}function Ys(R,N){return ze(N,function(k){return R[k]})}function Ci(R,N){return R.has(N)}function Pc(R,N){for(var k=-1,X=R.length;++k<X&&Qn(N,R[k],0)>-1;);return k}function Rc(R,N){for(var k=R.length;k--&&Qn(N,R[k],0)>-1;);return k}function e0(R,N){for(var k=R.length,X=0;k--;)R[k]===N&&++X;return X}var t0=Zs(Ny),r0=Zs(jy);function n0(R){return"\\"+zy[R]}function i0(R,N){return R==null?r:R[N]}function ei(R){return Ly.test(R)}function o0(R){return $y.test(R)}function a0(R){for(var N,k=[];!(N=R.next()).done;)k.push(N.value);return k}function Vs(R){var N=-1,k=Array(R.size);return R.forEach(function(X,fe){k[++N]=[fe,X]}),k}function Ic(R,N){return function(k){return R(N(k))}}function rn(R,N){for(var k=-1,X=R.length,fe=0,Re=[];++k<X;){var rt=R[k];(rt===N||rt===h)&&(R[k]=h,Re[fe++]=k)}return Re}function Do(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=X}),k}function s0(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=[X,X]}),k}function u0(R,N,k){for(var X=k-1,fe=R.length;++X<fe;)if(R[X]===N)return X;return-1}function l0(R,N,k){for(var X=k+1;X--;)if(R[X]===N)return X;return X}function ti(R){return ei(R)?c0(R):Ky(R)}function dr(R){return ei(R)?d0(R):Yy(R)}function Mc(R){for(var N=R.length;N--&&ey.test(R.charAt(N)););return N}var f0=Zs(Wy);function c0(R){for(var N=js.lastIndex=0;js.test(R);)++N;return N}function d0(R){return R.match(js)||[]}function p0(R){return R.match(Fy)||[]}var h0=function R(N){N=N==null?dt:ri.defaults(dt.Object(),N,ri.pick(dt,Dy));var k=N.Array,X=N.Date,fe=N.Error,Re=N.Function,rt=N.Math,ke=N.Object,Xs=N.RegExp,v0=N.String,er=N.TypeError,ko=k.prototype,m0=Re.prototype,ni=ke.prototype,No=N["__core-js_shared__"],jo=m0.toString,Le=ni.hasOwnProperty,g0=0,Fc=function(){var n=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Wo=ni.toString,y0=jo.call(ke),w0=dt._,b0=Xs("^"+jo.call(Le).replace(Fs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zo=mc?N.Buffer:r,nn=N.Symbol,Uo=N.Uint8Array,Lc=zo?zo.allocUnsafe:r,Bo=Ic(ke.getPrototypeOf,ke),$c=ke.create,Dc=ni.propertyIsEnumerable,Ho=ko.splice,kc=nn?nn.isConcatSpreadable:r,Pi=nn?nn.iterator:r,An=nn?nn.toStringTag:r,qo=function(){try{var n=In(ke,"defineProperty");return n({},"",{}),n}catch{}}(),S0=N.clearTimeout!==dt.clearTimeout&&N.clearTimeout,E0=X&&X.now!==dt.Date.now&&X.now,x0=N.setTimeout!==dt.setTimeout&&N.setTimeout,Zo=rt.ceil,Go=rt.floor,Js=ke.getOwnPropertySymbols,_0=zo?zo.isBuffer:r,Nc=N.isFinite,O0=ko.join,A0=Ic(ke.keys,ke),nt=rt.max,wt=rt.min,T0=X.now,C0=N.parseInt,jc=rt.random,P0=ko.reverse,Qs=In(N,"DataView"),Ri=In(N,"Map"),eu=In(N,"Promise"),ii=In(N,"Set"),Ii=In(N,"WeakMap"),Mi=In(ke,"create"),Ko=Ii&&new Ii,oi={},R0=Mn(Qs),I0=Mn(Ri),M0=Mn(eu),F0=Mn(ii),L0=Mn(Ii),Yo=nn?nn.prototype:r,Fi=Yo?Yo.valueOf:r,Wc=Yo?Yo.toString:r;function g(n){if(Ke(n)&&!de(n)&&!(n instanceof _e)){if(n instanceof tr)return n;if(Le.call(n,"__wrapped__"))return zd(n)}return new tr(n)}var ai=function(){function n(){}return function(o){if(!qe(o))return{};if($c)return $c(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Vo(){}function tr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}g.templateSettings={escape:Kg,evaluate:Yg,interpolate:Yf,variable:"",imports:{_:g}},g.prototype=Vo.prototype,g.prototype.constructor=g,tr.prototype=ai(Vo.prototype),tr.prototype.constructor=tr;function _e(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function $0(){var n=new _e(this.__wrapped__);return n.__actions__=Lt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Lt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Lt(this.__views__),n}function D0(){if(this.__filtered__){var n=new _e(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function k0(){var n=this.__wrapped__.value(),o=this.__dir__,u=de(n),c=o<0,m=u?n.length:0,S=Y1(0,m,this.__views__),_=S.start,T=S.end,M=T-_,j=c?T:_-1,W=this.__iteratees__,B=W.length,Y=0,J=wt(M,this.__takeCount__);if(!u||!c&&m==M&&J==M)return fd(n,this.__actions__);var ne=[];e:for(;M--&&Y<J;){j+=o;for(var me=-1,ie=n[j];++me<B;){var Ee=W[me],Oe=Ee.iteratee,Zt=Ee.type,It=Oe(ie);if(Zt==Ne)ie=It;else if(!It){if(Zt==Ae)continue e;break e}}ne[Y++]=ie}return ne}_e.prototype=ai(Vo.prototype),_e.prototype.constructor=_e;function Tn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function N0(){this.__data__=Mi?Mi(null):{},this.size=0}function j0(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function W0(n){var o=this.__data__;if(Mi){var u=o[n];return u===d?r:u}return Le.call(o,n)?o[n]:r}function z0(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function U0(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Mi&&o===r?d:o,this}Tn.prototype.clear=N0,Tn.prototype.delete=j0,Tn.prototype.get=W0,Tn.prototype.has=z0,Tn.prototype.set=U0;function $r(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function B0(){this.__data__=[],this.size=0}function H0(n){var o=this.__data__,u=Xo(o,n);if(u<0)return!1;var c=o.length-1;return u==c?o.pop():Ho.call(o,u,1),--this.size,!0}function q0(n){var o=this.__data__,u=Xo(o,n);return u<0?r:o[u][1]}function Z0(n){return Xo(this.__data__,n)>-1}function G0(n,o){var u=this.__data__,c=Xo(u,n);return c<0?(++this.size,u.push([n,o])):u[c][1]=o,this}$r.prototype.clear=B0,$r.prototype.delete=H0,$r.prototype.get=q0,$r.prototype.has=Z0,$r.prototype.set=G0;function Dr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function K0(){this.size=0,this.__data__={hash:new Tn,map:new(Ri||$r),string:new Tn}}function Y0(n){var o=la(this,n).delete(n);return this.size-=o?1:0,o}function V0(n){return la(this,n).get(n)}function X0(n){return la(this,n).has(n)}function J0(n,o){var u=la(this,n),c=u.size;return u.set(n,o),this.size+=u.size==c?0:1,this}Dr.prototype.clear=K0,Dr.prototype.delete=Y0,Dr.prototype.get=V0,Dr.prototype.has=X0,Dr.prototype.set=J0;function Cn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Dr;++o<u;)this.add(n[o])}function Q0(n){return this.__data__.set(n,d),this}function e1(n){return this.__data__.has(n)}Cn.prototype.add=Cn.prototype.push=Q0,Cn.prototype.has=e1;function pr(n){var o=this.__data__=new $r(n);this.size=o.size}function t1(){this.__data__=new $r,this.size=0}function r1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function n1(n){return this.__data__.get(n)}function i1(n){return this.__data__.has(n)}function o1(n,o){var u=this.__data__;if(u instanceof $r){var c=u.__data__;if(!Ri||c.length<a-1)return c.push([n,o]),this.size=++u.size,this;u=this.__data__=new Dr(c)}return u.set(n,o),this.size=u.size,this}pr.prototype.clear=t1,pr.prototype.delete=r1,pr.prototype.get=n1,pr.prototype.has=i1,pr.prototype.set=o1;function zc(n,o){var u=de(n),c=!u&&Fn(n),m=!u&&!c&&ln(n),S=!u&&!c&&!m&&fi(n),_=u||c||m||S,T=_?Ks(n.length,v0):[],M=T.length;for(var j in n)(o||Le.call(n,j))&&!(_&&(j=="length"||m&&(j=="offset"||j=="parent")||S&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Wr(j,M)))&&T.push(j);return T}function Uc(n){var o=n.length;return o?n[cu(0,o-1)]:r}function a1(n,o){return fa(Lt(n),Pn(o,0,n.length))}function s1(n){return fa(Lt(n))}function tu(n,o,u){(u!==r&&!hr(n[o],u)||u===r&&!(o in n))&&kr(n,o,u)}function Li(n,o,u){var c=n[o];(!(Le.call(n,o)&&hr(c,u))||u===r&&!(o in n))&&kr(n,o,u)}function Xo(n,o){for(var u=n.length;u--;)if(hr(n[u][0],o))return u;return-1}function u1(n,o,u,c){return on(n,function(m,S,_){o(c,m,u(m),_)}),c}function Bc(n,o){return n&&Er(o,ut(o),n)}function l1(n,o){return n&&Er(o,Dt(o),n)}function kr(n,o,u){o=="__proto__"&&qo?qo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function ru(n,o){for(var u=-1,c=o.length,m=k(c),S=n==null;++u<c;)m[u]=S?r:Du(n,o[u]);return m}function Pn(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function rr(n,o,u,c,m,S){var _,T=o&b,M=o&v,j=o&w;if(u&&(_=m?u(n,c,m,S):u(n)),_!==r)return _;if(!qe(n))return n;var W=de(n);if(W){if(_=X1(n),!T)return Lt(n,_)}else{var B=bt(n),Y=B==K||B==gt;if(ln(n))return pd(n,T);if(B==Xt||B==ae||Y&&!m){if(_=M||Y?{}:Md(n),!T)return M?W1(n,l1(_,n)):j1(n,Bc(_,n))}else{if(!je[B])return m?n:{};_=J1(n,B,T)}}S||(S=new pr);var J=S.get(n);if(J)return J;S.set(n,_),sp(n)?n.forEach(function(ie){_.add(rr(ie,o,u,ie,n,S))}):op(n)&&n.forEach(function(ie,Ee){_.set(Ee,rr(ie,o,u,Ee,n,S))});var ne=j?M?Eu:Su:M?Dt:ut,me=W?r:ne(n);return Qt(me||n,function(ie,Ee){me&&(Ee=ie,ie=n[Ee]),Li(_,Ee,rr(ie,o,u,Ee,n,S))}),_}function f1(n){var o=ut(n);return function(u){return Hc(u,n,o)}}function Hc(n,o,u){var c=u.length;if(n==null)return!c;for(n=ke(n);c--;){var m=u[c],S=o[m],_=n[m];if(_===r&&!(m in n)||!S(_))return!1}return!0}function qc(n,o,u){if(typeof n!="function")throw new er(l);return zi(function(){n.apply(r,u)},o)}function $i(n,o,u,c){var m=-1,S=Lo,_=!0,T=n.length,M=[],j=o.length;if(!T)return M;u&&(o=ze(o,Bt(u))),c?(S=Us,_=!1):o.length>=a&&(S=Ci,_=!1,o=new Cn(o));e:for(;++m<T;){var W=n[m],B=u==null?W:u(W);if(W=c||W!==0?W:0,_&&B===B){for(var Y=j;Y--;)if(o[Y]===B)continue e;M.push(W)}else S(o,B,c)||M.push(W)}return M}var on=yd(Sr),Zc=yd(iu,!0);function c1(n,o){var u=!0;return on(n,function(c,m,S){return u=!!o(c,m,S),u}),u}function Jo(n,o,u){for(var c=-1,m=n.length;++c<m;){var S=n[c],_=o(S);if(_!=null&&(T===r?_===_&&!qt(_):u(_,T)))var T=_,M=S}return M}function d1(n,o,u,c){var m=n.length;for(u=he(u),u<0&&(u=-u>m?0:m+u),c=c===r||c>m?m:he(c),c<0&&(c+=m),c=u>c?0:lp(c);u<c;)n[u++]=o;return n}function Gc(n,o){var u=[];return on(n,function(c,m,S){o(c,m,S)&&u.push(c)}),u}function pt(n,o,u,c,m){var S=-1,_=n.length;for(u||(u=ew),m||(m=[]);++S<_;){var T=n[S];o>0&&u(T)?o>1?pt(T,o-1,u,c,m):tn(m,T):c||(m[m.length]=T)}return m}var nu=wd(),Kc=wd(!0);function Sr(n,o){return n&&nu(n,o,ut)}function iu(n,o){return n&&Kc(n,o,ut)}function Qo(n,o){return en(o,function(u){return zr(n[u])})}function Rn(n,o){o=sn(o,n);for(var u=0,c=o.length;n!=null&&u<c;)n=n[xr(o[u++])];return u&&u==c?n:r}function Yc(n,o,u){var c=o(n);return de(n)?c:tn(c,u(n))}function Pt(n){return n==null?n===r?Ti:Co:An&&An in ke(n)?K1(n):sw(n)}function ou(n,o){return n>o}function p1(n,o){return n!=null&&Le.call(n,o)}function h1(n,o){return n!=null&&o in ke(n)}function v1(n,o,u){return n>=wt(o,u)&&n<nt(o,u)}function au(n,o,u){for(var c=u?Us:Lo,m=n[0].length,S=n.length,_=S,T=k(S),M=1/0,j=[];_--;){var W=n[_];_&&o&&(W=ze(W,Bt(o))),M=wt(W.length,M),T[_]=!u&&(o||m>=120&&W.length>=120)?new Cn(_&&W):r}W=n[0];var B=-1,Y=T[0];e:for(;++B<m&&j.length<M;){var J=W[B],ne=o?o(J):J;if(J=u||J!==0?J:0,!(Y?Ci(Y,ne):c(j,ne,u))){for(_=S;--_;){var me=T[_];if(!(me?Ci(me,ne):c(n[_],ne,u)))continue e}Y&&Y.push(ne),j.push(J)}}return j}function m1(n,o,u,c){return Sr(n,function(m,S,_){o(c,u(m),S,_)}),c}function Di(n,o,u){o=sn(o,n),n=Dd(n,o);var c=n==null?n:n[xr(ir(o))];return c==null?r:Ut(c,n,u)}function Vc(n){return Ke(n)&&Pt(n)==ae}function g1(n){return Ke(n)&&Pt(n)==Qr}function y1(n){return Ke(n)&&Pt(n)==ge}function ki(n,o,u,c,m){return n===o?!0:n==null||o==null||!Ke(n)&&!Ke(o)?n!==n&&o!==o:w1(n,o,u,c,ki,m)}function w1(n,o,u,c,m,S){var _=de(n),T=de(o),M=_?se:bt(n),j=T?se:bt(o);M=M==ae?Xt:M,j=j==ae?Xt:j;var W=M==Xt,B=j==Xt,Y=M==j;if(Y&&ln(n)){if(!ln(o))return!1;_=!0,W=!1}if(Y&&!W)return S||(S=new pr),_||fi(n)?Pd(n,o,u,c,m,S):Z1(n,o,M,u,c,m,S);if(!(u&E)){var J=W&&Le.call(n,"__wrapped__"),ne=B&&Le.call(o,"__wrapped__");if(J||ne){var me=J?n.value():n,ie=ne?o.value():o;return S||(S=new pr),m(me,ie,u,c,S)}}return Y?(S||(S=new pr),G1(n,o,u,c,m,S)):!1}function b1(n){return Ke(n)&&bt(n)==st}function su(n,o,u,c){var m=u.length,S=m,_=!c;if(n==null)return!S;for(n=ke(n);m--;){var T=u[m];if(_&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++m<S;){T=u[m];var M=T[0],j=n[M],W=T[1];if(_&&T[2]){if(j===r&&!(M in n))return!1}else{var B=new pr;if(c)var Y=c(j,W,M,n,o,B);if(!(Y===r?ki(W,j,E|y,c,B):Y))return!1}}return!0}function Xc(n){if(!qe(n)||rw(n))return!1;var o=zr(n)?b0:fy;return o.test(Mn(n))}function S1(n){return Ke(n)&&Pt(n)==zt}function E1(n){return Ke(n)&&bt(n)==yt}function x1(n){return Ke(n)&&ma(n.length)&&!!We[Pt(n)]}function Jc(n){return typeof n=="function"?n:n==null?kt:typeof n=="object"?de(n)?td(n[0],n[1]):ed(n):bp(n)}function uu(n){if(!Wi(n))return A0(n);var o=[];for(var u in ke(n))Le.call(n,u)&&u!="constructor"&&o.push(u);return o}function _1(n){if(!qe(n))return aw(n);var o=Wi(n),u=[];for(var c in n)c=="constructor"&&(o||!Le.call(n,c))||u.push(c);return u}function lu(n,o){return n<o}function Qc(n,o){var u=-1,c=$t(n)?k(n.length):[];return on(n,function(m,S,_){c[++u]=o(m,S,_)}),c}function ed(n){var o=_u(n);return o.length==1&&o[0][2]?Ld(o[0][0],o[0][1]):function(u){return u===n||su(u,n,o)}}function td(n,o){return Au(n)&&Fd(o)?Ld(xr(n),o):function(u){var c=Du(u,n);return c===r&&c===o?ku(u,n):ki(o,c,E|y)}}function ea(n,o,u,c,m){n!==o&&nu(o,function(S,_){if(m||(m=new pr),qe(S))O1(n,o,_,u,ea,c,m);else{var T=c?c(Cu(n,_),S,_+"",n,o,m):r;T===r&&(T=S),tu(n,_,T)}},Dt)}function O1(n,o,u,c,m,S,_){var T=Cu(n,u),M=Cu(o,u),j=_.get(M);if(j){tu(n,u,j);return}var W=S?S(T,M,u+"",n,o,_):r,B=W===r;if(B){var Y=de(M),J=!Y&&ln(M),ne=!Y&&!J&&fi(M);W=M,Y||J||ne?de(T)?W=T:Ve(T)?W=Lt(T):J?(B=!1,W=pd(M,!0)):ne?(B=!1,W=hd(M,!0)):W=[]:Ui(M)||Fn(M)?(W=T,Fn(T)?W=fp(T):(!qe(T)||zr(T))&&(W=Md(M))):B=!1}B&&(_.set(M,W),m(W,M,c,S,_),_.delete(M)),tu(n,u,W)}function rd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Wr(o,u)?n[o]:r}function nd(n,o,u){o.length?o=ze(o,function(S){return de(S)?function(_){return Rn(_,S.length===1?S[0]:S)}:S}):o=[kt];var c=-1;o=ze(o,Bt(te()));var m=Qc(n,function(S,_,T){var M=ze(o,function(j){return j(S)});return{criteria:M,index:++c,value:S}});return Jy(m,function(S,_){return N1(S,_,u)})}function A1(n,o){return id(n,o,function(u,c){return ku(n,c)})}function id(n,o,u){for(var c=-1,m=o.length,S={};++c<m;){var _=o[c],T=Rn(n,_);u(T,_)&&Ni(S,sn(_,n),T)}return S}function T1(n){return function(o){return Rn(o,n)}}function fu(n,o,u,c){var m=c?Xy:Qn,S=-1,_=o.length,T=n;for(n===o&&(o=Lt(o)),u&&(T=ze(n,Bt(u)));++S<_;)for(var M=0,j=o[S],W=u?u(j):j;(M=m(T,W,M,c))>-1;)T!==n&&Ho.call(T,M,1),Ho.call(n,M,1);return n}function od(n,o){for(var u=n?o.length:0,c=u-1;u--;){var m=o[u];if(u==c||m!==S){var S=m;Wr(m)?Ho.call(n,m,1):hu(n,m)}}return n}function cu(n,o){return n+Go(jc()*(o-n+1))}function C1(n,o,u,c){for(var m=-1,S=nt(Zo((o-n)/(u||1)),0),_=k(S);S--;)_[c?S:++m]=n,n+=u;return _}function du(n,o){var u="";if(!n||o<1||o>Ge)return u;do o%2&&(u+=n),o=Go(o/2),o&&(n+=n);while(o);return u}function ye(n,o){return Pu($d(n,o,kt),n+"")}function P1(n){return Uc(ci(n))}function R1(n,o){var u=ci(n);return fa(u,Pn(o,0,u.length))}function Ni(n,o,u,c){if(!qe(n))return n;o=sn(o,n);for(var m=-1,S=o.length,_=S-1,T=n;T!=null&&++m<S;){var M=xr(o[m]),j=u;if(M==="__proto__"||M==="constructor"||M==="prototype")return n;if(m!=_){var W=T[M];j=c?c(W,M,T):r,j===r&&(j=qe(W)?W:Wr(o[m+1])?[]:{})}Li(T,M,j),T=T[M]}return n}var ad=Ko?function(n,o){return Ko.set(n,o),n}:kt,I1=qo?function(n,o){return qo(n,"toString",{configurable:!0,enumerable:!1,value:ju(o),writable:!0})}:kt;function M1(n){return fa(ci(n))}function nr(n,o,u){var c=-1,m=n.length;o<0&&(o=-o>m?0:m+o),u=u>m?m:u,u<0&&(u+=m),m=o>u?0:u-o>>>0,o>>>=0;for(var S=k(m);++c<m;)S[c]=n[c+o];return S}function F1(n,o){var u;return on(n,function(c,m,S){return u=o(c,m,S),!u}),!!u}function ta(n,o,u){var c=0,m=n==null?c:n.length;if(typeof o=="number"&&o===o&&m<=le){for(;c<m;){var S=c+m>>>1,_=n[S];_!==null&&!qt(_)&&(u?_<=o:_<o)?c=S+1:m=S}return m}return pu(n,o,kt,u)}function pu(n,o,u,c){var m=0,S=n==null?0:n.length;if(S===0)return 0;o=u(o);for(var _=o!==o,T=o===null,M=qt(o),j=o===r;m<S;){var W=Go((m+S)/2),B=u(n[W]),Y=B!==r,J=B===null,ne=B===B,me=qt(B);if(_)var ie=c||ne;else j?ie=ne&&(c||Y):T?ie=ne&&Y&&(c||!J):M?ie=ne&&Y&&!J&&(c||!me):J||me?ie=!1:ie=c?B<=o:B<o;ie?m=W+1:S=W}return wt(S,re)}function sd(n,o){for(var u=-1,c=n.length,m=0,S=[];++u<c;){var _=n[u],T=o?o(_):_;if(!u||!hr(T,M)){var M=T;S[m++]=_===0?0:_}}return S}function ud(n){return typeof n=="number"?n:qt(n)?H:+n}function Ht(n){if(typeof n=="string")return n;if(de(n))return ze(n,Ht)+"";if(qt(n))return Wc?Wc.call(n):"";var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function an(n,o,u){var c=-1,m=Lo,S=n.length,_=!0,T=[],M=T;if(u)_=!1,m=Us;else if(S>=a){var j=o?null:H1(n);if(j)return Do(j);_=!1,m=Ci,M=new Cn}else M=o?[]:T;e:for(;++c<S;){var W=n[c],B=o?o(W):W;if(W=u||W!==0?W:0,_&&B===B){for(var Y=M.length;Y--;)if(M[Y]===B)continue e;o&&M.push(B),T.push(W)}else m(M,B,u)||(M!==T&&M.push(B),T.push(W))}return T}function hu(n,o){return o=sn(o,n),n=Dd(n,o),n==null||delete n[xr(ir(o))]}function ld(n,o,u,c){return Ni(n,o,u(Rn(n,o)),c)}function ra(n,o,u,c){for(var m=n.length,S=c?m:-1;(c?S--:++S<m)&&o(n[S],S,n););return u?nr(n,c?0:S,c?S+1:m):nr(n,c?S+1:0,c?m:S)}function fd(n,o){var u=n;return u instanceof _e&&(u=u.value()),Bs(o,function(c,m){return m.func.apply(m.thisArg,tn([c],m.args))},u)}function vu(n,o,u){var c=n.length;if(c<2)return c?an(n[0]):[];for(var m=-1,S=k(c);++m<c;)for(var _=n[m],T=-1;++T<c;)T!=m&&(S[m]=$i(S[m]||_,n[T],o,u));return an(pt(S,1),o,u)}function cd(n,o,u){for(var c=-1,m=n.length,S=o.length,_={};++c<m;){var T=c<S?o[c]:r;u(_,n[c],T)}return _}function mu(n){return Ve(n)?n:[]}function gu(n){return typeof n=="function"?n:kt}function sn(n,o){return de(n)?n:Au(n,o)?[n]:Wd(Ie(n))}var L1=ye;function un(n,o,u){var c=n.length;return u=u===r?c:u,!o&&u>=c?n:nr(n,o,u)}var dd=S0||function(n){return dt.clearTimeout(n)};function pd(n,o){if(o)return n.slice();var u=n.length,c=Lc?Lc(u):new n.constructor(u);return n.copy(c),c}function yu(n){var o=new n.constructor(n.byteLength);return new Uo(o).set(new Uo(n)),o}function $1(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function D1(n){var o=new n.constructor(n.source,Vf.exec(n));return o.lastIndex=n.lastIndex,o}function k1(n){return Fi?ke(Fi.call(n)):{}}function hd(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function vd(n,o){if(n!==o){var u=n!==r,c=n===null,m=n===n,S=qt(n),_=o!==r,T=o===null,M=o===o,j=qt(o);if(!T&&!j&&!S&&n>o||S&&_&&M&&!T&&!j||c&&_&&M||!u&&M||!m)return 1;if(!c&&!S&&!j&&n<o||j&&u&&m&&!c&&!S||T&&u&&m||!_&&m||!M)return-1}return 0}function N1(n,o,u){for(var c=-1,m=n.criteria,S=o.criteria,_=m.length,T=u.length;++c<_;){var M=vd(m[c],S[c]);if(M){if(c>=T)return M;var j=u[c];return M*(j=="desc"?-1:1)}}return n.index-o.index}function md(n,o,u,c){for(var m=-1,S=n.length,_=u.length,T=-1,M=o.length,j=nt(S-_,0),W=k(M+j),B=!c;++T<M;)W[T]=o[T];for(;++m<_;)(B||m<S)&&(W[u[m]]=n[m]);for(;j--;)W[T++]=n[m++];return W}function gd(n,o,u,c){for(var m=-1,S=n.length,_=-1,T=u.length,M=-1,j=o.length,W=nt(S-T,0),B=k(W+j),Y=!c;++m<W;)B[m]=n[m];for(var J=m;++M<j;)B[J+M]=o[M];for(;++_<T;)(Y||m<S)&&(B[J+u[_]]=n[m++]);return B}function Lt(n,o){var u=-1,c=n.length;for(o||(o=k(c));++u<c;)o[u]=n[u];return o}function Er(n,o,u,c){var m=!u;u||(u={});for(var S=-1,_=o.length;++S<_;){var T=o[S],M=c?c(u[T],n[T],T,u,n):r;M===r&&(M=n[T]),m?kr(u,T,M):Li(u,T,M)}return u}function j1(n,o){return Er(n,Ou(n),o)}function W1(n,o){return Er(n,Rd(n),o)}function na(n,o){return function(u,c){var m=de(u)?qy:u1,S=o?o():{};return m(u,n,te(c,2),S)}}function si(n){return ye(function(o,u){var c=-1,m=u.length,S=m>1?u[m-1]:r,_=m>2?u[2]:r;for(S=n.length>3&&typeof S=="function"?(m--,S):r,_&&Rt(u[0],u[1],_)&&(S=m<3?r:S,m=1),o=ke(o);++c<m;){var T=u[c];T&&n(o,T,c,S)}return o})}function yd(n,o){return function(u,c){if(u==null)return u;if(!$t(u))return n(u,c);for(var m=u.length,S=o?m:-1,_=ke(u);(o?S--:++S<m)&&c(_[S],S,_)!==!1;);return u}}function wd(n){return function(o,u,c){for(var m=-1,S=ke(o),_=c(o),T=_.length;T--;){var M=_[n?T:++m];if(u(S[M],M,S)===!1)break}return o}}function z1(n,o,u){var c=o&x,m=ji(n);function S(){var _=this&&this!==dt&&this instanceof S?m:n;return _.apply(c?u:this,arguments)}return S}function bd(n){return function(o){o=Ie(o);var u=ei(o)?dr(o):r,c=u?u[0]:o.charAt(0),m=u?un(u,1).join(""):o.slice(1);return c[n]()+m}}function ui(n){return function(o){return Bs(yp(gp(o).replace(Iy,"")),n,"")}}function ji(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=ai(n.prototype),c=n.apply(u,o);return qe(c)?c:u}}function U1(n,o,u){var c=ji(n);function m(){for(var S=arguments.length,_=k(S),T=S,M=li(m);T--;)_[T]=arguments[T];var j=S<3&&_[0]!==M&&_[S-1]!==M?[]:rn(_,M);if(S-=j.length,S<u)return Od(n,o,ia,m.placeholder,r,_,j,r,r,u-S);var W=this&&this!==dt&&this instanceof m?c:n;return Ut(W,this,_)}return m}function Sd(n){return function(o,u,c){var m=ke(o);if(!$t(o)){var S=te(u,3);o=ut(o),u=function(T){return S(m[T],T,m)}}var _=n(o,u,c);return _>-1?m[S?o[_]:_]:r}}function Ed(n){return jr(function(o){var u=o.length,c=u,m=tr.prototype.thru;for(n&&o.reverse();c--;){var S=o[c];if(typeof S!="function")throw new er(l);if(m&&!_&&ua(S)=="wrapper")var _=new tr([],!0)}for(c=_?c:u;++c<u;){S=o[c];var T=ua(S),M=T=="wrapper"?xu(S):r;M&&Tu(M[0])&&M[1]==(U|P|O|z)&&!M[4].length&&M[9]==1?_=_[ua(M[0])].apply(_,M[3]):_=S.length==1&&Tu(S)?_[T]():_.thru(S)}return function(){var j=arguments,W=j[0];if(_&&j.length==1&&de(W))return _.plant(W).value();for(var B=0,Y=u?o[B].apply(this,j):W;++B<u;)Y=o[B].call(this,Y);return Y}})}function ia(n,o,u,c,m,S,_,T,M,j){var W=o&U,B=o&x,Y=o&A,J=o&(P|F),ne=o&q,me=Y?r:ji(n);function ie(){for(var Ee=arguments.length,Oe=k(Ee),Zt=Ee;Zt--;)Oe[Zt]=arguments[Zt];if(J)var It=li(ie),Gt=e0(Oe,It);if(c&&(Oe=md(Oe,c,m,J)),S&&(Oe=gd(Oe,S,_,J)),Ee-=Gt,J&&Ee<j){var Xe=rn(Oe,It);return Od(n,o,ia,ie.placeholder,u,Oe,Xe,T,M,j-Ee)}var vr=B?u:this,Br=Y?vr[n]:n;return Ee=Oe.length,T?Oe=uw(Oe,T):ne&&Ee>1&&Oe.reverse(),W&&M<Ee&&(Oe.length=M),this&&this!==dt&&this instanceof ie&&(Br=me||ji(Br)),Br.apply(vr,Oe)}return ie}function xd(n,o){return function(u,c){return m1(u,n,o(c),{})}}function oa(n,o){return function(u,c){var m;if(u===r&&c===r)return o;if(u!==r&&(m=u),c!==r){if(m===r)return c;typeof u=="string"||typeof c=="string"?(u=Ht(u),c=Ht(c)):(u=ud(u),c=ud(c)),m=n(u,c)}return m}}function wu(n){return jr(function(o){return o=ze(o,Bt(te())),ye(function(u){var c=this;return n(o,function(m){return Ut(m,c,u)})})})}function aa(n,o){o=o===r?" ":Ht(o);var u=o.length;if(u<2)return u?du(o,n):o;var c=du(o,Zo(n/ti(o)));return ei(o)?un(dr(c),0,n).join(""):c.slice(0,n)}function B1(n,o,u,c){var m=o&x,S=ji(n);function _(){for(var T=-1,M=arguments.length,j=-1,W=c.length,B=k(W+M),Y=this&&this!==dt&&this instanceof _?S:n;++j<W;)B[j]=c[j];for(;M--;)B[j++]=arguments[++T];return Ut(Y,m?u:this,B)}return _}function _d(n){return function(o,u,c){return c&&typeof c!="number"&&Rt(o,u,c)&&(u=c=r),o=Ur(o),u===r?(u=o,o=0):u=Ur(u),c=c===r?o<u?1:-1:Ur(c),C1(o,u,c,n)}}function sa(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=or(o),u=or(u)),n(o,u)}}function Od(n,o,u,c,m,S,_,T,M,j){var W=o&P,B=W?_:r,Y=W?r:_,J=W?S:r,ne=W?r:S;o|=W?O:L,o&=~(W?L:O),o&I||(o&=-4);var me=[n,o,m,J,B,ne,Y,T,M,j],ie=u.apply(r,me);return Tu(n)&&kd(ie,me),ie.placeholder=c,Nd(ie,n,o)}function bu(n){var o=rt[n];return function(u,c){if(u=or(u),c=c==null?0:wt(he(c),292),c&&Nc(u)){var m=(Ie(u)+"e").split("e"),S=o(m[0]+"e"+(+m[1]+c));return m=(Ie(S)+"e").split("e"),+(m[0]+"e"+(+m[1]-c))}return o(u)}}var H1=ii&&1/Do(new ii([,-0]))[1]==Te?function(n){return new ii(n)}:Uu;function Ad(n){return function(o){var u=bt(o);return u==st?Vs(o):u==yt?s0(o):Qy(o,n(o))}}function Nr(n,o,u,c,m,S,_,T){var M=o&A;if(!M&&typeof n!="function")throw new er(l);var j=c?c.length:0;if(j||(o&=-97,c=m=r),_=_===r?_:nt(he(_),0),T=T===r?T:he(T),j-=m?m.length:0,o&L){var W=c,B=m;c=m=r}var Y=M?r:xu(n),J=[n,o,u,c,m,W,B,S,_,T];if(Y&&ow(J,Y),n=J[0],o=J[1],u=J[2],c=J[3],m=J[4],T=J[9]=J[9]===r?M?0:n.length:nt(J[9]-j,0),!T&&o&(P|F)&&(o&=-25),!o||o==x)var ne=z1(n,o,u);else o==P||o==F?ne=U1(n,o,T):(o==O||o==(x|O))&&!m.length?ne=B1(n,o,u,c):ne=ia.apply(r,J);var me=Y?ad:kd;return Nd(me(ne,J),n,o)}function Td(n,o,u,c){return n===r||hr(n,ni[u])&&!Le.call(c,u)?o:n}function Cd(n,o,u,c,m,S){return qe(n)&&qe(o)&&(S.set(o,n),ea(n,o,r,Cd,S),S.delete(o)),n}function q1(n){return Ui(n)?r:n}function Pd(n,o,u,c,m,S){var _=u&E,T=n.length,M=o.length;if(T!=M&&!(_&&M>T))return!1;var j=S.get(n),W=S.get(o);if(j&&W)return j==o&&W==n;var B=-1,Y=!0,J=u&y?new Cn:r;for(S.set(n,o),S.set(o,n);++B<T;){var ne=n[B],me=o[B];if(c)var ie=_?c(me,ne,B,o,n,S):c(ne,me,B,n,o,S);if(ie!==r){if(ie)continue;Y=!1;break}if(J){if(!Hs(o,function(Ee,Oe){if(!Ci(J,Oe)&&(ne===Ee||m(ne,Ee,u,c,S)))return J.push(Oe)})){Y=!1;break}}else if(!(ne===me||m(ne,me,u,c,S))){Y=!1;break}}return S.delete(n),S.delete(o),Y}function Z1(n,o,u,c,m,S,_){switch(u){case Lr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Qr:return!(n.byteLength!=o.byteLength||!S(new Uo(n),new Uo(o)));case ue:case ge:case br:return hr(+n,+o);case He:return n.name==o.name&&n.message==o.message;case zt:case Xr:return n==o+"";case st:var T=Vs;case yt:var M=c&E;if(T||(T=Do),n.size!=o.size&&!M)return!1;var j=_.get(n);if(j)return j==o;c|=y,_.set(n,o);var W=Pd(T(n),T(o),c,m,S,_);return _.delete(n),W;case _n:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function G1(n,o,u,c,m,S){var _=u&E,T=Su(n),M=T.length,j=Su(o),W=j.length;if(M!=W&&!_)return!1;for(var B=M;B--;){var Y=T[B];if(!(_?Y in o:Le.call(o,Y)))return!1}var J=S.get(n),ne=S.get(o);if(J&&ne)return J==o&&ne==n;var me=!0;S.set(n,o),S.set(o,n);for(var ie=_;++B<M;){Y=T[B];var Ee=n[Y],Oe=o[Y];if(c)var Zt=_?c(Oe,Ee,Y,o,n,S):c(Ee,Oe,Y,n,o,S);if(!(Zt===r?Ee===Oe||m(Ee,Oe,u,c,S):Zt)){me=!1;break}ie||(ie=Y=="constructor")}if(me&&!ie){var It=n.constructor,Gt=o.constructor;It!=Gt&&"constructor"in n&&"constructor"in o&&!(typeof It=="function"&&It instanceof It&&typeof Gt=="function"&&Gt instanceof Gt)&&(me=!1)}return S.delete(n),S.delete(o),me}function jr(n){return Pu($d(n,r,Hd),n+"")}function Su(n){return Yc(n,ut,Ou)}function Eu(n){return Yc(n,Dt,Rd)}var xu=Ko?function(n){return Ko.get(n)}:Uu;function ua(n){for(var o=n.name+"",u=oi[o],c=Le.call(oi,o)?u.length:0;c--;){var m=u[c],S=m.func;if(S==null||S==n)return m.name}return o}function li(n){var o=Le.call(g,"placeholder")?g:n;return o.placeholder}function te(){var n=g.iteratee||Wu;return n=n===Wu?Jc:n,arguments.length?n(arguments[0],arguments[1]):n}function la(n,o){var u=n.__data__;return tw(o)?u[typeof o=="string"?"string":"hash"]:u.map}function _u(n){for(var o=ut(n),u=o.length;u--;){var c=o[u],m=n[c];o[u]=[c,m,Fd(m)]}return o}function In(n,o){var u=i0(n,o);return Xc(u)?u:r}function K1(n){var o=Le.call(n,An),u=n[An];try{n[An]=r;var c=!0}catch{}var m=Wo.call(n);return c&&(o?n[An]=u:delete n[An]),m}var Ou=Js?function(n){return n==null?[]:(n=ke(n),en(Js(n),function(o){return Dc.call(n,o)}))}:Bu,Rd=Js?function(n){for(var o=[];n;)tn(o,Ou(n)),n=Bo(n);return o}:Bu,bt=Pt;(Qs&&bt(new Qs(new ArrayBuffer(1)))!=Lr||Ri&&bt(new Ri)!=st||eu&&bt(eu.resolve())!=Po||ii&&bt(new ii)!=yt||Ii&&bt(new Ii)!=Jr)&&(bt=function(n){var o=Pt(n),u=o==Xt?n.constructor:r,c=u?Mn(u):"";if(c)switch(c){case R0:return Lr;case I0:return st;case M0:return Po;case F0:return yt;case L0:return Jr}return o});function Y1(n,o,u){for(var c=-1,m=u.length;++c<m;){var S=u[c],_=S.size;switch(S.type){case"drop":n+=_;break;case"dropRight":o-=_;break;case"take":o=wt(o,n+_);break;case"takeRight":n=nt(n,o-_);break}}return{start:n,end:o}}function V1(n){var o=n.match(ry);return o?o[1].split(ny):[]}function Id(n,o,u){o=sn(o,n);for(var c=-1,m=o.length,S=!1;++c<m;){var _=xr(o[c]);if(!(S=n!=null&&u(n,_)))break;n=n[_]}return S||++c!=m?S:(m=n==null?0:n.length,!!m&&ma(m)&&Wr(_,m)&&(de(n)||Fn(n)))}function X1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Md(n){return typeof n.constructor=="function"&&!Wi(n)?ai(Bo(n)):{}}function J1(n,o,u){var c=n.constructor;switch(o){case Qr:return yu(n);case ue:case ge:return new c(+n);case Lr:return $1(n,u);case _s:case Os:case As:case Ts:case Cs:case Ps:case Rs:case Is:case Ms:return hd(n,u);case st:return new c;case br:case Xr:return new c(n);case zt:return D1(n);case yt:return new c;case _n:return k1(n)}}function Q1(n,o){var u=o.length;if(!u)return n;var c=u-1;return o[c]=(u>1?"& ":"")+o[c],o=o.join(u>2?", ":" "),n.replace(ty,`{
|
|
182
132
|
/* [wrapped with `+o+`] */
|
|
183
|
-
`)}function ww(n){return Te(n)||di(n)||!!(fd&&n&&n[fd])}function hn(n,o){var u=typeof n;return o=o??Be,!!o&&(u=="number"||u!="symbol"&&I0.test(n))&&n>-1&&n%1==0&&n<o}function Xt(n,o,u){if(!ot(u))return!1;var f=typeof o;return(f=="number"?rr(u)&&hn(o,u.length):f=="string"&&o in u)?Wr(u[o],n):!1}function Xu(n,o){if(Te(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||dr(n)?!0:vo.test(n)||!ho.test(n)||o!=null&&n in Xe(o)}function bw(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ju(n){var o=Ba(n),u=b[o];if(typeof u!="function"||!(o in De.prototype))return!1;if(n===u)return!0;var f=Ku(u);return!!f&&n===f[0]}function Sw(n){return!!sd&&sd in n}var Ew=wa?vn:vl;function Co(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ji;return n===u}function sp(n){return n===n&&!ot(n)}function up(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Xe(u))}}function _w(n){var o=Ya(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function xw(n,o){var u=n[1],f=o[1],y=u|f,E=y<(x|C|H),O=f==H&&u==T||f==H&&u==j&&n[7].length<=o[8]||f==(H|j)&&o[7].length<=o[8]&&u==T;if(!(E||O))return n;f&x&&(n[2]=o[2],y|=u&x?0:P);var R=o[3];if(R){var L=n[3];n[3]=L?zd(L,R,o[4]):R,n[4]=L?Rn(n[3],h):o[4]}return R=o[5],R&&(L=n[5],n[5]=L?qd(L,R,o[6]):R,n[6]=L?Rn(n[5],h):o[6]),R=o[7],R&&(n[7]=R),f&H&&(n[8]=n[8]==null?o[8]:Nt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=y,n}function Ow(n){var o=[];if(n!=null)for(var u in Xe(n))o.push(u);return o}function Aw(n){return Sa.call(n)}function lp(n,o,u){return o=_t(o===r?n.length-1:o,0),function(){for(var f=arguments,y=-1,E=_t(f.length-o,0),O=U(E);++y<E;)O[y]=f[o+y];y=-1;for(var R=U(o+1);++y<o;)R[y]=f[y];return R[o]=u(O),lr(n,this,R)}}function cp(n,o){return o.length<2?n:li(n,Or(o,0,-1))}function Tw(n,o){for(var u=n.length,f=Nt(o.length,u),y=tr(n);f--;){var E=o[f];n[f]=hn(E,u)?y[E]:r}return n}function Qu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var fp=pp(Ld),Po=Hy||function(n,o){return Mt.setTimeout(n,o)},el=pp(V1);function dp(n,o,u){var f=o+"";return el(n,yw(f,Rw(vw(f),u)))}function pp(n){var o=0,u=0;return function(){var f=Zy(),y=Ee-(f-u);if(u=f,y>0){if(++o>=Re)return arguments[0]}else o=0;return n.apply(r,arguments)}}function qa(n,o){var u=-1,f=n.length,y=f-1;for(o=o===r?f:o;++u<o;){var E=Du(u,y),O=n[E];n[E]=n[u],n[u]=O}return n.length=o,n}var hp=_w(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(mo,function(u,f,y,E){o.push(y?E.replace(_e,"$1"):f||u)}),o});function Vr(n){if(typeof n=="string"||dr(n))return n;var o=n+"";return o=="0"&&1/n==-Oe?"-0":o}function fi(n){if(n!=null){try{return ba.call(n)}catch{}try{return n+""}catch{}}return""}function Rw(n,o){return Sr(fe,function(u){var f="_."+u[0];o&u[1]&&!va(n,f)&&n.push(f)}),n.sort()}function vp(n){if(n instanceof De)return n.clone();var o=new _r(n.__wrapped__,n.__chain__);return o.__actions__=tr(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Cw(n,o,u){(u?Xt(n,o,u):o===r)?o=1:o=_t(Ce(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var y=0,E=0,O=U(Ta(f/o));y<f;)O[E++]=Or(n,y,y+=o);return O}function Pw(n){for(var o=-1,u=n==null?0:n.length,f=0,y=[];++o<u;){var E=n[o];E&&(y[f++]=E)}return y}function Iw(){var n=arguments.length;if(!n)return[];for(var o=U(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Tn(Te(u)?tr(u):[u],Ft(o,1))}var Mw=Ie(function(n,o){return vt(n)?xo(n,Ft(o,1,vt,!0)):[]}),Fw=Ie(function(n,o){var u=Ar(o);return vt(u)&&(u=r),vt(n)?xo(n,Ft(o,1,vt,!0),ve(u,2)):[]}),Lw=Ie(function(n,o){var u=Ar(o);return vt(u)&&(u=r),vt(n)?xo(n,Ft(o,1,vt,!0),r,u):[]});function $w(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),Or(n,o<0?0:o,f)):[]}function Dw(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),o=f-o,Or(n,0,o<0?0:o)):[]}function kw(n,o){return n&&n.length?ka(n,ve(o,3),!0,!0):[]}function Nw(n,o){return n&&n.length?ka(n,ve(o,3),!0):[]}function jw(n,o,u,f){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Xt(n,o,u)&&(u=0,f=y),I1(n,o,u,f)):[]}function mp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=u==null?0:Ce(u);return y<0&&(y=_t(f+y,0)),ma(n,ve(o,3),y)}function gp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=f-1;return u!==r&&(y=Ce(u),y=u<0?_t(f+y,0):Nt(y,f-1)),ma(n,ve(o,3),y,!0)}function yp(n){var o=n==null?0:n.length;return o?Ft(n,1):[]}function Ww(n){var o=n==null?0:n.length;return o?Ft(n,Oe):[]}function Uw(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:Ce(o),Ft(n,o)):[]}function Hw(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var y=n[o];f[y[0]]=y[1]}return f}function wp(n){return n&&n.length?n[0]:r}function Bw(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=u==null?0:Ce(u);return y<0&&(y=_t(f+y,0)),$i(n,o,y)}function zw(n){var o=n==null?0:n.length;return o?Or(n,0,-1):[]}var qw=Ie(function(n){var o=nt(n,Uu);return o.length&&o[0]===n[0]?Iu(o):[]}),Zw=Ie(function(n){var o=Ar(n),u=nt(n,Uu);return o===Ar(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Iu(u,ve(o,2)):[]}),Gw=Ie(function(n){var o=Ar(n),u=nt(n,Uu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Iu(u,r,o):[]});function Kw(n,o){return n==null?"":zy.call(n,o)}function Ar(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Yw(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=f;return u!==r&&(y=Ce(u),y=y<0?_t(f+y,0):Nt(y,f-1)),o===o?Ry(n,o,y):ma(n,Qf,y,!0)}function Vw(n,o){return n&&n.length?Pd(n,Ce(o)):r}var Xw=Ie(bp);function bp(n,o){return n&&n.length&&o&&o.length?$u(n,o):n}function Jw(n,o,u){return n&&n.length&&o&&o.length?$u(n,o,ve(u,2)):n}function Qw(n,o,u){return n&&n.length&&o&&o.length?$u(n,o,r,u):n}var eb=pn(function(n,o){var u=n==null?0:n.length,f=Tu(n,o);return Fd(n,nt(o,function(y){return hn(y,u)?+y:y}).sort(Bd)),f});function tb(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,y=[],E=n.length;for(o=ve(o,3);++f<E;){var O=n[f];o(O,f,n)&&(u.push(O),y.push(f))}return Fd(n,y),u}function tl(n){return n==null?n:Ky.call(n)}function rb(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Xt(n,o,u)?(o=0,u=f):(o=o==null?0:Ce(o),u=u===r?f:Ce(u)),Or(n,o,u)):[]}function nb(n,o){return Da(n,o)}function ib(n,o,u){return Nu(n,o,ve(u,2))}function ob(n,o){var u=n==null?0:n.length;if(u){var f=Da(n,o);if(f<u&&Wr(n[f],o))return f}return-1}function ab(n,o){return Da(n,o,!0)}function sb(n,o,u){return Nu(n,o,ve(u,2),!0)}function ub(n,o){var u=n==null?0:n.length;if(u){var f=Da(n,o,!0)-1;if(Wr(n[f],o))return f}return-1}function lb(n){return n&&n.length?$d(n):[]}function cb(n,o){return n&&n.length?$d(n,ve(o,2)):[]}function fb(n){var o=n==null?0:n.length;return o?Or(n,1,o):[]}function db(n,o,u){return n&&n.length?(o=u||o===r?1:Ce(o),Or(n,0,o<0?0:o)):[]}function pb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),o=f-o,Or(n,o<0?0:o,f)):[]}function hb(n,o){return n&&n.length?ka(n,ve(o,3),!1,!0):[]}function vb(n,o){return n&&n.length?ka(n,ve(o,3)):[]}var mb=Ie(function(n){return In(Ft(n,1,vt,!0))}),gb=Ie(function(n){var o=Ar(n);return vt(o)&&(o=r),In(Ft(n,1,vt,!0),ve(o,2))}),yb=Ie(function(n){var o=Ar(n);return o=typeof o=="function"?o:r,In(Ft(n,1,vt,!0),r,o)});function wb(n){return n&&n.length?In(n):[]}function bb(n,o){return n&&n.length?In(n,ve(o,2)):[]}function Sb(n,o){return o=typeof o=="function"?o:r,n&&n.length?In(n,r,o):[]}function rl(n){if(!(n&&n.length))return[];var o=0;return n=An(n,function(u){if(vt(u))return o=_t(u.length,o),!0}),wu(o,function(u){return nt(n,mu(u))})}function Sp(n,o){if(!(n&&n.length))return[];var u=rl(n);return o==null?u:nt(u,function(f){return lr(o,r,f)})}var Eb=Ie(function(n,o){return vt(n)?xo(n,o):[]}),_b=Ie(function(n){return Wu(An(n,vt))}),xb=Ie(function(n){var o=Ar(n);return vt(o)&&(o=r),Wu(An(n,vt),ve(o,2))}),Ob=Ie(function(n){var o=Ar(n);return o=typeof o=="function"?o:r,Wu(An(n,vt),r,o)}),Ab=Ie(rl);function Tb(n,o){return jd(n||[],o||[],_o)}function Rb(n,o){return jd(n||[],o||[],To)}var Cb=Ie(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Sp(n,u)});function Ep(n){var o=b(n);return o.__chain__=!0,o}function Pb(n,o){return o(n),n}function Za(n,o){return o(n)}var Ib=pn(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,y=function(E){return Tu(E,n)};return o>1||this.__actions__.length||!(f instanceof De)||!hn(u)?this.thru(y):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Za,args:[y],thisArg:r}),new _r(f,this.__chain__).thru(function(E){return o&&!E.length&&E.push(r),E}))});function Mb(){return Ep(this)}function Fb(){return new _r(this.value(),this.__chain__)}function Lb(){this.__values__===r&&(this.__values__=Dp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function $b(){return this}function Db(n){for(var o,u=this;u instanceof Ia;){var f=vp(u);f.__index__=0,f.__values__=r,o?y.__wrapped__=f:o=f;var y=f;u=u.__wrapped__}return y.__wrapped__=n,o}function kb(){var n=this.__wrapped__;if(n instanceof De){var o=n;return this.__actions__.length&&(o=new De(this)),o=o.reverse(),o.__actions__.push({func:Za,args:[tl],thisArg:r}),new _r(o,this.__chain__)}return this.thru(tl)}function Nb(){return Nd(this.__wrapped__,this.__actions__)}var jb=Na(function(n,o,u){Ge.call(n,u)?++n[u]:fn(n,u,1)});function Wb(n,o,u){var f=Te(n)?Xf:P1;return u&&Xt(n,o,u)&&(o=r),f(n,ve(o,3))}function Ub(n,o){var u=Te(n)?An:Sd;return u(n,ve(o,3))}var Hb=Yd(mp),Bb=Yd(gp);function zb(n,o){return Ft(Ga(n,o),1)}function qb(n,o){return Ft(Ga(n,o),Oe)}function Zb(n,o,u){return u=u===r?1:Ce(u),Ft(Ga(n,o),u)}function _p(n,o){var u=Te(n)?Sr:Pn;return u(n,ve(o,3))}function xp(n,o){var u=Te(n)?fy:bd;return u(n,ve(o,3))}var Gb=Na(function(n,o,u){Ge.call(n,u)?n[u].push(o):fn(n,u,[o])});function Kb(n,o,u,f){n=rr(n)?n:Gi(n),u=u&&!f?Ce(u):0;var y=n.length;return u<0&&(u=_t(y+u,0)),Ja(n)?u<=y&&n.indexOf(o,u)>-1:!!y&&$i(n,o,u)>-1}var Yb=Ie(function(n,o,u){var f=-1,y=typeof o=="function",E=rr(n)?U(n.length):[];return Pn(n,function(O){E[++f]=y?lr(o,O,u):Oo(O,o,u)}),E}),Vb=Na(function(n,o,u){fn(n,u,o)});function Ga(n,o){var u=Te(n)?nt:Td;return u(n,ve(o,3))}function Xb(n,o,u,f){return n==null?[]:(Te(o)||(o=o==null?[]:[o]),u=f?r:u,Te(u)||(u=u==null?[]:[u]),Id(n,o,u))}var Jb=Na(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Qb(n,o,u){var f=Te(n)?hu:td,y=arguments.length<3;return f(n,ve(o,4),u,y,Pn)}function eS(n,o,u){var f=Te(n)?dy:td,y=arguments.length<3;return f(n,ve(o,4),u,y,bd)}function tS(n,o){var u=Te(n)?An:Sd;return u(n,Va(ve(o,3)))}function rS(n){var o=Te(n)?md:K1;return o(n)}function nS(n,o,u){(u?Xt(n,o,u):o===r)?o=1:o=Ce(o);var f=Te(n)?O1:Y1;return f(n,o)}function iS(n){var o=Te(n)?A1:X1;return o(n)}function oS(n){if(n==null)return 0;if(rr(n))return Ja(n)?ki(n):n.length;var o=jt(n);return o==ut||o==rt?n.size:Fu(n).length}function aS(n,o,u){var f=Te(n)?vu:J1;return u&&Xt(n,o,u)&&(o=r),f(n,ve(o,3))}var sS=Ie(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Xt(n,o[0],o[1])?o=[]:u>2&&Xt(o[0],o[1],o[2])&&(o=[o[0]]),Id(n,Ft(o,1),[])}),Ka=Uy||function(){return Mt.Date.now()};function uS(n,o){if(typeof o!="function")throw new Er(l);return n=Ce(n),function(){if(--n<1)return o.apply(this,arguments)}}function Op(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,dn(n,H,r,r,r,r,o)}function Ap(n,o){var u;if(typeof o!="function")throw new Er(l);return n=Ce(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var nl=Ie(function(n,o,u){var f=x;if(u.length){var y=Rn(u,qi(nl));f|=A}return dn(n,f,o,u,y)}),Tp=Ie(function(n,o,u){var f=x|C;if(u.length){var y=Rn(u,qi(Tp));f|=A}return dn(o,f,n,u,y)});function Rp(n,o,u){o=u?r:o;var f=dn(n,T,r,r,r,r,r,o);return f.placeholder=Rp.placeholder,f}function Cp(n,o,u){o=u?r:o;var f=dn(n,$,r,r,r,r,r,o);return f.placeholder=Cp.placeholder,f}function Pp(n,o,u){var f,y,E,O,R,L,z=0,q=!1,G=!1,Q=!0;if(typeof n!="function")throw new Er(l);o=Tr(o)||0,ot(u)&&(q=!!u.leading,G="maxWait"in u,E=G?_t(Tr(u.maxWait)||0,o):E,Q="trailing"in u?!!u.trailing:Q);function ie(mt){var Ur=f,gn=y;return f=y=r,z=mt,O=n.apply(gn,Ur),O}function me(mt){return z=mt,R=Po($e,o),q?ie(mt):O}function Pe(mt){var Ur=mt-L,gn=mt-z,Yp=o-Ur;return G?Nt(Yp,E-gn):Yp}function ge(mt){var Ur=mt-L,gn=mt-z;return L===r||Ur>=o||Ur<0||G&&gn>=E}function $e(){var mt=Ka();if(ge(mt))return ke(mt);R=Po($e,Pe(mt))}function ke(mt){return R=r,Q&&f?ie(mt):(f=y=r,O)}function pr(){R!==r&&Wd(R),z=0,f=L=y=R=r}function Jt(){return R===r?O:ke(Ka())}function hr(){var mt=Ka(),Ur=ge(mt);if(f=arguments,y=this,L=mt,Ur){if(R===r)return me(L);if(G)return Wd(R),R=Po($e,o),ie(L)}return R===r&&(R=Po($e,o)),O}return hr.cancel=pr,hr.flush=Jt,hr}var lS=Ie(function(n,o){return wd(n,1,o)}),cS=Ie(function(n,o,u){return wd(n,Tr(o)||0,u)});function fS(n){return dn(n,V)}function Ya(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Er(l);var u=function(){var f=arguments,y=o?o.apply(this,f):f[0],E=u.cache;if(E.has(y))return E.get(y);var O=n.apply(this,f);return u.cache=E.set(y,O)||E,O};return u.cache=new(Ya.Cache||cn),u}Ya.Cache=cn;function Va(n){if(typeof n!="function")throw new Er(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function dS(n){return Ap(2,n)}var pS=Q1(function(n,o){o=o.length==1&&Te(o[0])?nt(o[0],cr(ve())):nt(Ft(o,1),cr(ve()));var u=o.length;return Ie(function(f){for(var y=-1,E=Nt(f.length,u);++y<E;)f[y]=o[y].call(this,f[y]);return lr(n,this,f)})}),il=Ie(function(n,o){var u=Rn(o,qi(il));return dn(n,A,r,o,u)}),Ip=Ie(function(n,o){var u=Rn(o,qi(Ip));return dn(n,D,r,o,u)}),hS=pn(function(n,o){return dn(n,j,r,r,r,o)});function vS(n,o){if(typeof n!="function")throw new Er(l);return o=o===r?o:Ce(o),Ie(n,o)}function mS(n,o){if(typeof n!="function")throw new Er(l);return o=o==null?0:_t(Ce(o),0),Ie(function(u){var f=u[o],y=Fn(u,0,o);return f&&Tn(y,f),lr(n,this,y)})}function gS(n,o,u){var f=!0,y=!0;if(typeof n!="function")throw new Er(l);return ot(u)&&(f="leading"in u?!!u.leading:f,y="trailing"in u?!!u.trailing:y),Pp(n,o,{leading:f,maxWait:o,trailing:y})}function yS(n){return Op(n,1)}function wS(n,o){return il(Hu(o),n)}function bS(){if(!arguments.length)return[];var n=arguments[0];return Te(n)?n:[n]}function SS(n){return xr(n,v)}function ES(n,o){return o=typeof o=="function"?o:r,xr(n,v,o)}function _S(n){return xr(n,w|v)}function xS(n,o){return o=typeof o=="function"?o:r,xr(n,w|v,o)}function OS(n,o){return o==null||yd(n,o,Tt(o))}function Wr(n,o){return n===o||n!==n&&o!==o}var AS=Ha(Pu),TS=Ha(function(n,o){return n>=o}),di=xd(function(){return arguments}())?xd:function(n){return ct(n)&&Ge.call(n,"callee")&&!cd.call(n,"callee")},Te=U.isArray,RS=qf?cr(qf):D1;function rr(n){return n!=null&&Xa(n.length)&&!vn(n)}function vt(n){return ct(n)&&rr(n)}function CS(n){return n===!0||n===!1||ct(n)&&Vt(n)==le}var Ln=By||vl,PS=Zf?cr(Zf):k1;function IS(n){return ct(n)&&n.nodeType===1&&!Io(n)}function MS(n){if(n==null)return!0;if(rr(n)&&(Te(n)||typeof n=="string"||typeof n.splice=="function"||Ln(n)||Zi(n)||di(n)))return!n.length;var o=jt(n);if(o==ut||o==rt)return!n.size;if(Co(n))return!Fu(n).length;for(var u in n)if(Ge.call(n,u))return!1;return!0}function FS(n,o){return Ao(n,o)}function LS(n,o,u){u=typeof u=="function"?u:r;var f=u?u(n,o):r;return f===r?Ao(n,o,r,u):!!f}function ol(n){if(!ct(n))return!1;var o=Vt(n);return o==Ve||o==Se||typeof n.message=="string"&&typeof n.name=="string"&&!Io(n)}function $S(n){return typeof n=="number"&&dd(n)}function vn(n){if(!ot(n))return!1;var o=Vt(n);return o==J||o==st||o==he||o==Kn}function Mp(n){return typeof n=="number"&&n==Ce(n)}function Xa(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Be}function ot(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function ct(n){return n!=null&&typeof n=="object"}var Fp=Gf?cr(Gf):j1;function DS(n,o){return n===o||Mu(n,o,Yu(o))}function kS(n,o,u){return u=typeof u=="function"?u:r,Mu(n,o,Yu(o),u)}function NS(n){return Lp(n)&&n!=+n}function jS(n){if(Ew(n))throw new xe(s);return Od(n)}function WS(n){return n===null}function US(n){return n==null}function Lp(n){return typeof n=="number"||ct(n)&&Vt(n)==yt}function Io(n){if(!ct(n)||Vt(n)!=At)return!1;var o=xa(n);if(o===null)return!0;var u=Ge.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ba.call(u)==ky}var al=Kf?cr(Kf):W1;function HS(n){return Mp(n)&&n>=-Be&&n<=Be}var $p=Yf?cr(Yf):U1;function Ja(n){return typeof n=="string"||!Te(n)&&ct(n)&&Vt(n)==yr}function dr(n){return typeof n=="symbol"||ct(n)&&Vt(n)==sr}var Zi=Vf?cr(Vf):H1;function BS(n){return n===r}function zS(n){return ct(n)&&jt(n)==kt}function qS(n){return ct(n)&&Vt(n)==xn}var ZS=Ha(Lu),GS=Ha(function(n,o){return n<=o});function Dp(n){if(!n)return[];if(rr(n))return Ja(n)?Nr(n):tr(n);if(yo&&n[yo])return Oy(n[yo]());var o=jt(n),u=o==ut?Su:o==rt?ga:Gi;return u(n)}function mn(n){if(!n)return n===0?n:0;if(n=Tr(n),n===Oe||n===-Oe){var o=n<0?-1:1;return o*pt}return n===n?n:0}function Ce(n){var o=mn(n),u=o%1;return o===o?u?o-u:o:0}function kp(n){return n?ui(Ce(n),0,Y):0}function Tr(n){if(typeof n=="number")return n;if(dr(n))return Z;if(ot(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=ot(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=rd(n);var u=ni.test(n);return u||P0.test(n)?uy(n.slice(2),u?2:8):Yt.test(n)?Z:+n}function Np(n){return Yr(n,nr(n))}function KS(n){return n?ui(Ce(n),-Be,Be):n===0?n:0}function ze(n){return n==null?"":fr(n)}var YS=Bi(function(n,o){if(Co(o)||rr(o)){Yr(o,Tt(o),n);return}for(var u in o)Ge.call(o,u)&&_o(n,u,o[u])}),jp=Bi(function(n,o){Yr(o,nr(o),n)}),Qa=Bi(function(n,o,u,f){Yr(o,nr(o),n,f)}),VS=Bi(function(n,o,u,f){Yr(o,Tt(o),n,f)}),XS=pn(Tu);function JS(n,o){var u=Hi(n);return o==null?u:gd(u,o)}var QS=Ie(function(n,o){n=Xe(n);var u=-1,f=o.length,y=f>2?o[2]:r;for(y&&Xt(o[0],o[1],y)&&(f=1);++u<f;)for(var E=o[u],O=nr(E),R=-1,L=O.length;++R<L;){var z=O[R],q=n[z];(q===r||Wr(q,ji[z])&&!Ge.call(n,z))&&(n[z]=E[z])}return n}),eE=Ie(function(n){return n.push(r,rp),lr(Wp,r,n)});function tE(n,o){return Jf(n,ve(o,3),Kr)}function rE(n,o){return Jf(n,ve(o,3),Cu)}function nE(n,o){return n==null?n:Ru(n,ve(o,3),nr)}function iE(n,o){return n==null?n:Ed(n,ve(o,3),nr)}function oE(n,o){return n&&Kr(n,ve(o,3))}function aE(n,o){return n&&Cu(n,ve(o,3))}function sE(n){return n==null?[]:La(n,Tt(n))}function uE(n){return n==null?[]:La(n,nr(n))}function sl(n,o,u){var f=n==null?r:li(n,o);return f===r?u:f}function lE(n,o){return n!=null&&op(n,o,M1)}function ul(n,o){return n!=null&&op(n,o,F1)}var cE=Xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Sa.call(o)),n[o]=u},cl(ir)),fE=Xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Sa.call(o)),Ge.call(n,o)?n[o].push(u):n[o]=[u]},ve),dE=Ie(Oo);function Tt(n){return rr(n)?vd(n):Fu(n)}function nr(n){return rr(n)?vd(n,!0):B1(n)}function pE(n,o){var u={};return o=ve(o,3),Kr(n,function(f,y,E){fn(u,o(f,y,E),f)}),u}function hE(n,o){var u={};return o=ve(o,3),Kr(n,function(f,y,E){fn(u,y,o(f,y,E))}),u}var vE=Bi(function(n,o,u){$a(n,o,u)}),Wp=Bi(function(n,o,u,f){$a(n,o,u,f)}),mE=pn(function(n,o){var u={};if(n==null)return u;var f=!1;o=nt(o,function(E){return E=Mn(E,n),f||(f=E.length>1),E}),Yr(n,Gu(n),u),f&&(u=xr(u,w|S|v,cw));for(var y=o.length;y--;)ju(u,o[y]);return u});function gE(n,o){return Up(n,Va(ve(o)))}var yE=pn(function(n,o){return n==null?{}:q1(n,o)});function Up(n,o){if(n==null)return{};var u=nt(Gu(n),function(f){return[f]});return o=ve(o),Md(n,u,function(f,y){return o(f,y[0])})}function wE(n,o,u){o=Mn(o,n);var f=-1,y=o.length;for(y||(y=1,n=r);++f<y;){var E=n==null?r:n[Vr(o[f])];E===r&&(f=y,E=u),n=vn(E)?E.call(n):E}return n}function bE(n,o,u){return n==null?n:To(n,o,u)}function SE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:To(n,o,u,f)}var Hp=ep(Tt),Bp=ep(nr);function EE(n,o,u){var f=Te(n),y=f||Ln(n)||Zi(n);if(o=ve(o,4),u==null){var E=n&&n.constructor;y?u=f?new E:[]:ot(n)?u=vn(E)?Hi(xa(n)):{}:u={}}return(y?Sr:Kr)(n,function(O,R,L){return o(u,O,R,L)}),u}function _E(n,o){return n==null?!0:ju(n,o)}function xE(n,o,u){return n==null?n:kd(n,o,Hu(u))}function OE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:kd(n,o,Hu(u),f)}function Gi(n){return n==null?[]:bu(n,Tt(n))}function AE(n){return n==null?[]:bu(n,nr(n))}function TE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=Tr(u),u=u===u?u:0),o!==r&&(o=Tr(o),o=o===o?o:0),ui(Tr(n),o,u)}function RE(n,o,u){return o=mn(o),u===r?(u=o,o=0):u=mn(u),n=Tr(n),L1(n,o,u)}function CE(n,o,u){if(u&&typeof u!="boolean"&&Xt(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=mn(n),o===r?(o=n,n=0):o=mn(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var y=pd();return Nt(n+y*(o-n+sy("1e-"+((y+"").length-1))),o)}return Du(n,o)}var PE=zi(function(n,o,u){return o=o.toLowerCase(),n+(u?zp(o):o)});function zp(n){return ll(ze(n).toLowerCase())}function qp(n){return n=ze(n),n&&n.replace(M0,by).replace(X0,"")}function IE(n,o,u){n=ze(n),o=fr(o);var f=n.length;u=u===r?f:ui(Ce(u),0,f);var y=u;return u-=o.length,u>=0&&n.slice(u,y)==o}function ME(n){return n=ze(n),n&&fo.test(n)?n.replace(On,Sy):n}function FE(n){return n=ze(n),n&&I.test(n)?n.replace(m,"\\$&"):n}var LE=zi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),$E=zi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),DE=Kd("toLowerCase");function kE(n,o,u){n=ze(n),o=Ce(o);var f=o?ki(n):0;if(!o||f>=o)return n;var y=(o-f)/2;return Ua(Ra(y),u)+n+Ua(Ta(y),u)}function NE(n,o,u){n=ze(n),o=Ce(o);var f=o?ki(n):0;return o&&f<o?n+Ua(o-f,u):n}function jE(n,o,u){n=ze(n),o=Ce(o);var f=o?ki(n):0;return o&&f<o?Ua(o-f,u)+n:n}function WE(n,o,u){return u||o==null?o=0:o&&(o=+o),Gy(ze(n).replace(W,""),o||0)}function UE(n,o,u){return(u?Xt(n,o,u):o===r)?o=1:o=Ce(o),ku(ze(n),o)}function HE(){var n=arguments,o=ze(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var BE=zi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function zE(n,o,u){return u&&typeof u!="number"&&Xt(n,o,u)&&(o=u=r),u=u===r?Y:u>>>0,u?(n=ze(n),n&&(typeof o=="string"||o!=null&&!al(o))&&(o=fr(o),!o&&Di(n))?Fn(Nr(n),0,u):n.split(o,u)):[]}var qE=zi(function(n,o,u){return n+(u?" ":"")+ll(o)});function ZE(n,o,u){return n=ze(n),u=u==null?0:ui(Ce(u),0,n.length),o=fr(o),n.slice(u,u+o.length)==o}function GE(n,o,u){var f=b.templateSettings;u&&Xt(n,o,u)&&(o=r),n=ze(n),o=Qa({},o,f,tp);var y=Qa({},o.imports,f.imports,tp),E=Tt(y),O=bu(y,E),R,L,z=0,q=o.interpolate||da,G="__p += '",Q=Eu((o.escape||da).source+"|"+q.source+"|"+(q===Fi?Ae:da).source+"|"+(o.evaluate||da).source+"|$","g"),ie="//# sourceURL="+(Ge.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ry+"]")+`
|
|
184
|
-
`;n.replace(
|
|
185
|
-
__e(
|
|
186
|
-
'`),
|
|
187
|
-
`+
|
|
188
|
-
__p += '`),
|
|
189
|
-
((__t = (`+
|
|
190
|
-
'`),
|
|
191
|
-
`;var
|
|
192
|
-
`+
|
|
133
|
+
`)}function ew(n){return de(n)||Fn(n)||!!(kc&&n&&n[kc])}function Wr(n,o){var u=typeof n;return o=o??Ge,!!o&&(u=="number"||u!="symbol"&&dy.test(n))&&n>-1&&n%1==0&&n<o}function Rt(n,o,u){if(!qe(u))return!1;var c=typeof o;return(c=="number"?$t(u)&&Wr(o,u.length):c=="string"&&o in u)?hr(u[o],n):!1}function Au(n,o){if(de(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||qt(n)?!0:Xg.test(n)||!Vg.test(n)||o!=null&&n in ke(o)}function tw(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Tu(n){var o=ua(n),u=g[o];if(typeof u!="function"||!(o in _e.prototype))return!1;if(n===u)return!0;var c=xu(u);return!!c&&n===c[0]}function rw(n){return!!Fc&&Fc in n}var nw=No?zr:Hu;function Wi(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ni;return n===u}function Fd(n){return n===n&&!qe(n)}function Ld(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in ke(u))}}function iw(n){var o=ha(n,function(c){return u.size===p&&u.clear(),c}),u=o.cache;return o}function ow(n,o){var u=n[1],c=o[1],m=u|c,S=m<(x|A|U),_=c==U&&u==P||c==U&&u==z&&n[7].length<=o[8]||c==(U|z)&&o[7].length<=o[8]&&u==P;if(!(S||_))return n;c&x&&(n[2]=o[2],m|=u&x?0:I);var T=o[3];if(T){var M=n[3];n[3]=M?md(M,T,o[4]):T,n[4]=M?rn(n[3],h):o[4]}return T=o[5],T&&(M=n[5],n[5]=M?gd(M,T,o[6]):T,n[6]=M?rn(n[5],h):o[6]),T=o[7],T&&(n[7]=T),c&U&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=m,n}function aw(n){var o=[];if(n!=null)for(var u in ke(n))o.push(u);return o}function sw(n){return Wo.call(n)}function $d(n,o,u){return o=nt(o===r?n.length-1:o,0),function(){for(var c=arguments,m=-1,S=nt(c.length-o,0),_=k(S);++m<S;)_[m]=c[o+m];m=-1;for(var T=k(o+1);++m<o;)T[m]=c[m];return T[o]=u(_),Ut(n,this,T)}}function Dd(n,o){return o.length<2?n:Rn(n,nr(o,0,-1))}function uw(n,o){for(var u=n.length,c=wt(o.length,u),m=Lt(n);c--;){var S=o[c];n[c]=Wr(S,u)?m[S]:r}return n}function Cu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var kd=jd(ad),zi=x0||function(n,o){return dt.setTimeout(n,o)},Pu=jd(I1);function Nd(n,o,u){var c=o+"";return Pu(n,Q1(c,lw(V1(c),u)))}function jd(n){var o=0,u=0;return function(){var c=T0(),m=pe-(c-u);if(u=c,m>0){if(++o>=be)return arguments[0]}else o=0;return n.apply(r,arguments)}}function fa(n,o){var u=-1,c=n.length,m=c-1;for(o=o===r?c:o;++u<o;){var S=cu(u,m),_=n[S];n[S]=n[u],n[u]=_}return n.length=o,n}var Wd=iw(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(Jg,function(u,c,m,S){o.push(m?S.replace(ay,"$1"):c||u)}),o});function xr(n){if(typeof n=="string"||qt(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function Mn(n){if(n!=null){try{return jo.call(n)}catch{}try{return n+""}catch{}}return""}function lw(n,o){return Qt(Q,function(u){var c="_."+u[0];o&u[1]&&!Lo(n,c)&&n.push(c)}),n.sort()}function zd(n){if(n instanceof _e)return n.clone();var o=new tr(n.__wrapped__,n.__chain__);return o.__actions__=Lt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function fw(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=nt(he(o),0);var c=n==null?0:n.length;if(!c||o<1)return[];for(var m=0,S=0,_=k(Zo(c/o));m<c;)_[S++]=nr(n,m,m+=o);return _}function cw(n){for(var o=-1,u=n==null?0:n.length,c=0,m=[];++o<u;){var S=n[o];S&&(m[c++]=S)}return m}function dw(){var n=arguments.length;if(!n)return[];for(var o=k(n-1),u=arguments[0],c=n;c--;)o[c-1]=arguments[c];return tn(de(u)?Lt(u):[u],pt(o,1))}var pw=ye(function(n,o){return Ve(n)?$i(n,pt(o,1,Ve,!0)):[]}),hw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,pt(o,1,Ve,!0),te(u,2)):[]}),vw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,pt(o,1,Ve,!0),r,u):[]});function mw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),nr(n,o<0?0:o,c)):[]}function gw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,0,o<0?0:o)):[]}function yw(n,o){return n&&n.length?ra(n,te(o,3),!0,!0):[]}function ww(n,o){return n&&n.length?ra(n,te(o,3),!0):[]}function bw(n,o,u,c){var m=n==null?0:n.length;return m?(u&&typeof u!="number"&&Rt(n,o,u)&&(u=0,c=m),d1(n,o,u,c)):[]}function Ud(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),$o(n,te(o,3),m)}function Bd(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c-1;return u!==r&&(m=he(u),m=u<0?nt(c+m,0):wt(m,c-1)),$o(n,te(o,3),m,!0)}function Hd(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function Sw(n){var o=n==null?0:n.length;return o?pt(n,Te):[]}function Ew(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:he(o),pt(n,o)):[]}function xw(n){for(var o=-1,u=n==null?0:n.length,c={};++o<u;){var m=n[o];c[m[0]]=m[1]}return c}function qd(n){return n&&n.length?n[0]:r}function _w(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),Qn(n,o,m)}function Ow(n){var o=n==null?0:n.length;return o?nr(n,0,-1):[]}var Aw=ye(function(n){var o=ze(n,mu);return o.length&&o[0]===n[0]?au(o):[]}),Tw=ye(function(n){var o=ir(n),u=ze(n,mu);return o===ir(u)?o=r:u.pop(),u.length&&u[0]===n[0]?au(u,te(o,2)):[]}),Cw=ye(function(n){var o=ir(n),u=ze(n,mu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?au(u,r,o):[]});function Pw(n,o){return n==null?"":O0.call(n,o)}function ir(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Rw(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c;return u!==r&&(m=he(u),m=m<0?nt(c+m,0):wt(m,c-1)),o===o?l0(n,o,m):$o(n,Oc,m,!0)}function Iw(n,o){return n&&n.length?rd(n,he(o)):r}var Mw=ye(Zd);function Zd(n,o){return n&&n.length&&o&&o.length?fu(n,o):n}function Fw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,te(u,2)):n}function Lw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,r,u):n}var $w=jr(function(n,o){var u=n==null?0:n.length,c=ru(n,o);return od(n,ze(o,function(m){return Wr(m,u)?+m:m}).sort(vd)),c});function Dw(n,o){var u=[];if(!(n&&n.length))return u;var c=-1,m=[],S=n.length;for(o=te(o,3);++c<S;){var _=n[c];o(_,c,n)&&(u.push(_),m.push(c))}return od(n,m),u}function Ru(n){return n==null?n:P0.call(n)}function kw(n,o,u){var c=n==null?0:n.length;return c?(u&&typeof u!="number"&&Rt(n,o,u)?(o=0,u=c):(o=o==null?0:he(o),u=u===r?c:he(u)),nr(n,o,u)):[]}function Nw(n,o){return ta(n,o)}function jw(n,o,u){return pu(n,o,te(u,2))}function Ww(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o);if(c<u&&hr(n[c],o))return c}return-1}function zw(n,o){return ta(n,o,!0)}function Uw(n,o,u){return pu(n,o,te(u,2),!0)}function Bw(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o,!0)-1;if(hr(n[c],o))return c}return-1}function Hw(n){return n&&n.length?sd(n):[]}function qw(n,o){return n&&n.length?sd(n,te(o,2)):[]}function Zw(n){var o=n==null?0:n.length;return o?nr(n,1,o):[]}function Gw(n,o,u){return n&&n.length?(o=u||o===r?1:he(o),nr(n,0,o<0?0:o)):[]}function Kw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,o<0?0:o,c)):[]}function Yw(n,o){return n&&n.length?ra(n,te(o,3),!1,!0):[]}function Vw(n,o){return n&&n.length?ra(n,te(o,3)):[]}var Xw=ye(function(n){return an(pt(n,1,Ve,!0))}),Jw=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),an(pt(n,1,Ve,!0),te(o,2))}),Qw=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,an(pt(n,1,Ve,!0),r,o)});function eb(n){return n&&n.length?an(n):[]}function tb(n,o){return n&&n.length?an(n,te(o,2)):[]}function rb(n,o){return o=typeof o=="function"?o:r,n&&n.length?an(n,r,o):[]}function Iu(n){if(!(n&&n.length))return[];var o=0;return n=en(n,function(u){if(Ve(u))return o=nt(u.length,o),!0}),Ks(o,function(u){return ze(n,qs(u))})}function Gd(n,o){if(!(n&&n.length))return[];var u=Iu(n);return o==null?u:ze(u,function(c){return Ut(o,r,c)})}var nb=ye(function(n,o){return Ve(n)?$i(n,o):[]}),ib=ye(function(n){return vu(en(n,Ve))}),ob=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),vu(en(n,Ve),te(o,2))}),ab=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,vu(en(n,Ve),r,o)}),sb=ye(Iu);function ub(n,o){return cd(n||[],o||[],Li)}function lb(n,o){return cd(n||[],o||[],Ni)}var fb=ye(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Gd(n,u)});function Kd(n){var o=g(n);return o.__chain__=!0,o}function cb(n,o){return o(n),n}function ca(n,o){return o(n)}var db=jr(function(n){var o=n.length,u=o?n[0]:0,c=this.__wrapped__,m=function(S){return ru(S,n)};return o>1||this.__actions__.length||!(c instanceof _e)||!Wr(u)?this.thru(m):(c=c.slice(u,+u+(o?1:0)),c.__actions__.push({func:ca,args:[m],thisArg:r}),new tr(c,this.__chain__).thru(function(S){return o&&!S.length&&S.push(r),S}))});function pb(){return Kd(this)}function hb(){return new tr(this.value(),this.__chain__)}function vb(){this.__values__===r&&(this.__values__=up(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function mb(){return this}function gb(n){for(var o,u=this;u instanceof Vo;){var c=zd(u);c.__index__=0,c.__values__=r,o?m.__wrapped__=c:o=c;var m=c;u=u.__wrapped__}return m.__wrapped__=n,o}function yb(){var n=this.__wrapped__;if(n instanceof _e){var o=n;return this.__actions__.length&&(o=new _e(this)),o=o.reverse(),o.__actions__.push({func:ca,args:[Ru],thisArg:r}),new tr(o,this.__chain__)}return this.thru(Ru)}function wb(){return fd(this.__wrapped__,this.__actions__)}var bb=na(function(n,o,u){Le.call(n,u)?++n[u]:kr(n,u,1)});function Sb(n,o,u){var c=de(n)?xc:c1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}function Eb(n,o){var u=de(n)?en:Gc;return u(n,te(o,3))}var xb=Sd(Ud),_b=Sd(Bd);function Ob(n,o){return pt(da(n,o),1)}function Ab(n,o){return pt(da(n,o),Te)}function Tb(n,o,u){return u=u===r?1:he(u),pt(da(n,o),u)}function Yd(n,o){var u=de(n)?Qt:on;return u(n,te(o,3))}function Vd(n,o){var u=de(n)?Zy:Zc;return u(n,te(o,3))}var Cb=na(function(n,o,u){Le.call(n,u)?n[u].push(o):kr(n,u,[o])});function Pb(n,o,u,c){n=$t(n)?n:ci(n),u=u&&!c?he(u):0;var m=n.length;return u<0&&(u=nt(m+u,0)),ga(n)?u<=m&&n.indexOf(o,u)>-1:!!m&&Qn(n,o,u)>-1}var Rb=ye(function(n,o,u){var c=-1,m=typeof o=="function",S=$t(n)?k(n.length):[];return on(n,function(_){S[++c]=m?Ut(o,_,u):Di(_,o,u)}),S}),Ib=na(function(n,o,u){kr(n,u,o)});function da(n,o){var u=de(n)?ze:Qc;return u(n,te(o,3))}function Mb(n,o,u,c){return n==null?[]:(de(o)||(o=o==null?[]:[o]),u=c?r:u,de(u)||(u=u==null?[]:[u]),nd(n,o,u))}var Fb=na(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Lb(n,o,u){var c=de(n)?Bs:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,on)}function $b(n,o,u){var c=de(n)?Gy:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,Zc)}function Db(n,o){var u=de(n)?en:Gc;return u(n,va(te(o,3)))}function kb(n){var o=de(n)?Uc:P1;return o(n)}function Nb(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=he(o);var c=de(n)?a1:R1;return c(n,o)}function jb(n){var o=de(n)?s1:M1;return o(n)}function Wb(n){if(n==null)return 0;if($t(n))return ga(n)?ti(n):n.length;var o=bt(n);return o==st||o==yt?n.size:uu(n).length}function zb(n,o,u){var c=de(n)?Hs:F1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}var Ub=ye(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Rt(n,o[0],o[1])?o=[]:u>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),nd(n,pt(o,1),[])}),pa=E0||function(){return dt.Date.now()};function Bb(n,o){if(typeof o!="function")throw new er(l);return n=he(n),function(){if(--n<1)return o.apply(this,arguments)}}function Xd(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Nr(n,U,r,r,r,r,o)}function Jd(n,o){var u;if(typeof o!="function")throw new er(l);return n=he(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var Mu=ye(function(n,o,u){var c=x;if(u.length){var m=rn(u,li(Mu));c|=O}return Nr(n,c,o,u,m)}),Qd=ye(function(n,o,u){var c=x|A;if(u.length){var m=rn(u,li(Qd));c|=O}return Nr(o,c,n,u,m)});function ep(n,o,u){o=u?r:o;var c=Nr(n,P,r,r,r,r,r,o);return c.placeholder=ep.placeholder,c}function tp(n,o,u){o=u?r:o;var c=Nr(n,F,r,r,r,r,r,o);return c.placeholder=tp.placeholder,c}function rp(n,o,u){var c,m,S,_,T,M,j=0,W=!1,B=!1,Y=!0;if(typeof n!="function")throw new er(l);o=or(o)||0,qe(u)&&(W=!!u.leading,B="maxWait"in u,S=B?nt(or(u.maxWait)||0,o):S,Y="trailing"in u?!!u.trailing:Y);function J(Xe){var vr=c,Br=m;return c=m=r,j=Xe,_=n.apply(Br,vr),_}function ne(Xe){return j=Xe,T=zi(Ee,o),W?J(Xe):_}function me(Xe){var vr=Xe-M,Br=Xe-j,Sp=o-vr;return B?wt(Sp,S-Br):Sp}function ie(Xe){var vr=Xe-M,Br=Xe-j;return M===r||vr>=o||vr<0||B&&Br>=S}function Ee(){var Xe=pa();if(ie(Xe))return Oe(Xe);T=zi(Ee,me(Xe))}function Oe(Xe){return T=r,Y&&c?J(Xe):(c=m=r,_)}function Zt(){T!==r&&dd(T),j=0,c=M=m=T=r}function It(){return T===r?_:Oe(pa())}function Gt(){var Xe=pa(),vr=ie(Xe);if(c=arguments,m=this,M=Xe,vr){if(T===r)return ne(M);if(B)return dd(T),T=zi(Ee,o),J(M)}return T===r&&(T=zi(Ee,o)),_}return Gt.cancel=Zt,Gt.flush=It,Gt}var Hb=ye(function(n,o){return qc(n,1,o)}),qb=ye(function(n,o,u){return qc(n,or(o)||0,u)});function Zb(n){return Nr(n,q)}function ha(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new er(l);var u=function(){var c=arguments,m=o?o.apply(this,c):c[0],S=u.cache;if(S.has(m))return S.get(m);var _=n.apply(this,c);return u.cache=S.set(m,_)||S,_};return u.cache=new(ha.Cache||Dr),u}ha.Cache=Dr;function va(n){if(typeof n!="function")throw new er(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function Gb(n){return Jd(2,n)}var Kb=L1(function(n,o){o=o.length==1&&de(o[0])?ze(o[0],Bt(te())):ze(pt(o,1),Bt(te()));var u=o.length;return ye(function(c){for(var m=-1,S=wt(c.length,u);++m<S;)c[m]=o[m].call(this,c[m]);return Ut(n,this,c)})}),Fu=ye(function(n,o){var u=rn(o,li(Fu));return Nr(n,O,r,o,u)}),np=ye(function(n,o){var u=rn(o,li(np));return Nr(n,L,r,o,u)}),Yb=jr(function(n,o){return Nr(n,z,r,r,r,o)});function Vb(n,o){if(typeof n!="function")throw new er(l);return o=o===r?o:he(o),ye(n,o)}function Xb(n,o){if(typeof n!="function")throw new er(l);return o=o==null?0:nt(he(o),0),ye(function(u){var c=u[o],m=un(u,0,o);return c&&tn(m,c),Ut(n,this,m)})}function Jb(n,o,u){var c=!0,m=!0;if(typeof n!="function")throw new er(l);return qe(u)&&(c="leading"in u?!!u.leading:c,m="trailing"in u?!!u.trailing:m),rp(n,o,{leading:c,maxWait:o,trailing:m})}function Qb(n){return Xd(n,1)}function eS(n,o){return Fu(gu(o),n)}function tS(){if(!arguments.length)return[];var n=arguments[0];return de(n)?n:[n]}function rS(n){return rr(n,w)}function nS(n,o){return o=typeof o=="function"?o:r,rr(n,w,o)}function iS(n){return rr(n,b|w)}function oS(n,o){return o=typeof o=="function"?o:r,rr(n,b|w,o)}function aS(n,o){return o==null||Hc(n,o,ut(o))}function hr(n,o){return n===o||n!==n&&o!==o}var sS=sa(ou),uS=sa(function(n,o){return n>=o}),Fn=Vc(function(){return arguments}())?Vc:function(n){return Ke(n)&&Le.call(n,"callee")&&!Dc.call(n,"callee")},de=k.isArray,lS=gc?Bt(gc):g1;function $t(n){return n!=null&&ma(n.length)&&!zr(n)}function Ve(n){return Ke(n)&&$t(n)}function fS(n){return n===!0||n===!1||Ke(n)&&Pt(n)==ue}var ln=_0||Hu,cS=yc?Bt(yc):y1;function dS(n){return Ke(n)&&n.nodeType===1&&!Ui(n)}function pS(n){if(n==null)return!0;if($t(n)&&(de(n)||typeof n=="string"||typeof n.splice=="function"||ln(n)||fi(n)||Fn(n)))return!n.length;var o=bt(n);if(o==st||o==yt)return!n.size;if(Wi(n))return!uu(n).length;for(var u in n)if(Le.call(n,u))return!1;return!0}function hS(n,o){return ki(n,o)}function vS(n,o,u){u=typeof u=="function"?u:r;var c=u?u(n,o):r;return c===r?ki(n,o,r,u):!!c}function Lu(n){if(!Ke(n))return!1;var o=Pt(n);return o==He||o==xe||typeof n.message=="string"&&typeof n.name=="string"&&!Ui(n)}function mS(n){return typeof n=="number"&&Nc(n)}function zr(n){if(!qe(n))return!1;var o=Pt(n);return o==K||o==gt||o==ce||o==xs}function ip(n){return typeof n=="number"&&n==he(n)}function ma(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Ge}function qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Ke(n){return n!=null&&typeof n=="object"}var op=wc?Bt(wc):b1;function gS(n,o){return n===o||su(n,o,_u(o))}function yS(n,o,u){return u=typeof u=="function"?u:r,su(n,o,_u(o),u)}function wS(n){return ap(n)&&n!=+n}function bS(n){if(nw(n))throw new fe(s);return Xc(n)}function SS(n){return n===null}function ES(n){return n==null}function ap(n){return typeof n=="number"||Ke(n)&&Pt(n)==br}function Ui(n){if(!Ke(n)||Pt(n)!=Xt)return!1;var o=Bo(n);if(o===null)return!0;var u=Le.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&jo.call(u)==y0}var $u=bc?Bt(bc):S1;function xS(n){return ip(n)&&n>=-9007199254740991&&n<=Ge}var sp=Sc?Bt(Sc):E1;function ga(n){return typeof n=="string"||!de(n)&&Ke(n)&&Pt(n)==Xr}function qt(n){return typeof n=="symbol"||Ke(n)&&Pt(n)==_n}var fi=Ec?Bt(Ec):x1;function _S(n){return n===r}function OS(n){return Ke(n)&&bt(n)==Jr}function AS(n){return Ke(n)&&Pt(n)==Ro}var TS=sa(lu),CS=sa(function(n,o){return n<=o});function up(n){if(!n)return[];if($t(n))return ga(n)?dr(n):Lt(n);if(Pi&&n[Pi])return a0(n[Pi]());var o=bt(n),u=o==st?Vs:o==yt?Do:ci;return u(n)}function Ur(n){if(!n)return n===0?n:0;if(n=or(n),n===Te||n===-1/0){var o=n<0?-1:1;return o*Ct}return n===n?n:0}function he(n){var o=Ur(n),u=o%1;return o===o?u?o-u:o:0}function lp(n){return n?Pn(he(n),0,G):0}function or(n){if(typeof n=="number")return n;if(qt(n))return H;if(qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Cc(n);var u=ly.test(n);return u||cy.test(n)?By(n.slice(2),u?2:8):uy.test(n)?H:+n}function fp(n){return Er(n,Dt(n))}function PS(n){return n?Pn(he(n),-9007199254740991,Ge):n===0?n:0}function Ie(n){return n==null?"":Ht(n)}var RS=si(function(n,o){if(Wi(o)||$t(o)){Er(o,ut(o),n);return}for(var u in o)Le.call(o,u)&&Li(n,u,o[u])}),cp=si(function(n,o){Er(o,Dt(o),n)}),ya=si(function(n,o,u,c){Er(o,Dt(o),n,c)}),IS=si(function(n,o,u,c){Er(o,ut(o),n,c)}),MS=jr(ru);function FS(n,o){var u=ai(n);return o==null?u:Bc(u,o)}var LS=ye(function(n,o){n=ke(n);var u=-1,c=o.length,m=c>2?o[2]:r;for(m&&Rt(o[0],o[1],m)&&(c=1);++u<c;)for(var S=o[u],_=Dt(S),T=-1,M=_.length;++T<M;){var j=_[T],W=n[j];(W===r||hr(W,ni[j])&&!Le.call(n,j))&&(n[j]=S[j])}return n}),$S=ye(function(n){return n.push(r,Cd),Ut(dp,r,n)});function DS(n,o){return _c(n,te(o,3),Sr)}function kS(n,o){return _c(n,te(o,3),iu)}function NS(n,o){return n==null?n:nu(n,te(o,3),Dt)}function jS(n,o){return n==null?n:Kc(n,te(o,3),Dt)}function WS(n,o){return n&&Sr(n,te(o,3))}function zS(n,o){return n&&iu(n,te(o,3))}function US(n){return n==null?[]:Qo(n,ut(n))}function BS(n){return n==null?[]:Qo(n,Dt(n))}function Du(n,o,u){var c=n==null?r:Rn(n,o);return c===r?u:c}function HS(n,o){return n!=null&&Id(n,o,p1)}function ku(n,o){return n!=null&&Id(n,o,h1)}var qS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),n[o]=u},ju(kt)),ZS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),Le.call(n,o)?n[o].push(u):n[o]=[u]},te),GS=ye(Di);function ut(n){return $t(n)?zc(n):uu(n)}function Dt(n){return $t(n)?zc(n,!0):_1(n)}function KS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,S){kr(u,o(c,m,S),c)}),u}function YS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,S){kr(u,m,o(c,m,S))}),u}var VS=si(function(n,o,u){ea(n,o,u)}),dp=si(function(n,o,u,c){ea(n,o,u,c)}),XS=jr(function(n,o){var u={};if(n==null)return u;var c=!1;o=ze(o,function(S){return S=sn(S,n),c||(c=S.length>1),S}),Er(n,Eu(n),u),c&&(u=rr(u,b|v|w,q1));for(var m=o.length;m--;)hu(u,o[m]);return u});function JS(n,o){return pp(n,va(te(o)))}var QS=jr(function(n,o){return n==null?{}:A1(n,o)});function pp(n,o){if(n==null)return{};var u=ze(Eu(n),function(c){return[c]});return o=te(o),id(n,u,function(c,m){return o(c,m[0])})}function eE(n,o,u){o=sn(o,n);var c=-1,m=o.length;for(m||(m=1,n=r);++c<m;){var S=n==null?r:n[xr(o[c])];S===r&&(c=m,S=u),n=zr(S)?S.call(n):S}return n}function tE(n,o,u){return n==null?n:Ni(n,o,u)}function rE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:Ni(n,o,u,c)}var hp=Ad(ut),vp=Ad(Dt);function nE(n,o,u){var c=de(n),m=c||ln(n)||fi(n);if(o=te(o,4),u==null){var S=n&&n.constructor;m?u=c?new S:[]:qe(n)?u=zr(S)?ai(Bo(n)):{}:u={}}return(m?Qt:Sr)(n,function(_,T,M){return o(u,_,T,M)}),u}function iE(n,o){return n==null?!0:hu(n,o)}function oE(n,o,u){return n==null?n:ld(n,o,gu(u))}function aE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:ld(n,o,gu(u),c)}function ci(n){return n==null?[]:Ys(n,ut(n))}function sE(n){return n==null?[]:Ys(n,Dt(n))}function uE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=or(u),u=u===u?u:0),o!==r&&(o=or(o),o=o===o?o:0),Pn(or(n),o,u)}function lE(n,o,u){return o=Ur(o),u===r?(u=o,o=0):u=Ur(u),n=or(n),v1(n,o,u)}function fE(n,o,u){if(u&&typeof u!="boolean"&&Rt(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Ur(n),o===r?(o=n,n=0):o=Ur(o)),n>o){var c=n;n=o,o=c}if(u||n%1||o%1){var m=jc();return wt(n+m*(o-n+Uy("1e-"+((m+"").length-1))),o)}return cu(n,o)}var cE=ui(function(n,o,u){return o=o.toLowerCase(),n+(u?mp(o):o)});function mp(n){return Nu(Ie(n).toLowerCase())}function gp(n){return n=Ie(n),n&&n.replace(py,t0).replace(My,"")}function dE(n,o,u){n=Ie(n),o=Ht(o);var c=n.length;u=u===r?c:Pn(he(u),0,c);var m=u;return u-=o.length,u>=0&&n.slice(u,m)==o}function pE(n){return n=Ie(n),n&&Gg.test(n)?n.replace(Kf,r0):n}function hE(n){return n=Ie(n),n&&Qg.test(n)?n.replace(Fs,"\\$&"):n}var vE=ui(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),mE=ui(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),gE=bd("toLowerCase");function yE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;if(!o||c>=o)return n;var m=(o-c)/2;return aa(Go(m),u)+n+aa(Zo(m),u)}function wE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?n+aa(o-c,u):n}function bE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?aa(o-c,u)+n:n}function SE(n,o,u){return u||o==null?o=0:o&&(o=+o),C0(Ie(n).replace(Ls,""),o||0)}function EE(n,o,u){return(u?Rt(n,o,u):o===r)?o=1:o=he(o),du(Ie(n),o)}function xE(){var n=arguments,o=Ie(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var _E=ui(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function OE(n,o,u){return u&&typeof u!="number"&&Rt(n,o,u)&&(o=u=r),u=u===r?G:u>>>0,u?(n=Ie(n),n&&(typeof o=="string"||o!=null&&!$u(o))&&(o=Ht(o),!o&&ei(n))?un(dr(n),0,u):n.split(o,u)):[]}var AE=ui(function(n,o,u){return n+(u?" ":"")+Nu(o)});function TE(n,o,u){return n=Ie(n),u=u==null?0:Pn(he(u),0,n.length),o=Ht(o),n.slice(u,u+o.length)==o}function CE(n,o,u){var c=g.templateSettings;u&&Rt(n,o,u)&&(o=r),n=Ie(n),o=ya({},o,c,Td);var m=ya({},o.imports,c.imports,Td),S=ut(m),_=Ys(m,S),T,M,j=0,W=o.interpolate||Io,B="__p += '",Y=Xs((o.escape||Io).source+"|"+W.source+"|"+(W===Yf?sy:Io).source+"|"+(o.evaluate||Io).source+"|$","g"),J="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ky+"]")+`
|
|
134
|
+
`;n.replace(Y,function(ie,Ee,Oe,Zt,It,Gt){return Oe||(Oe=Zt),B+=n.slice(j,Gt).replace(hy,n0),Ee&&(T=!0,B+=`' +
|
|
135
|
+
__e(`+Ee+`) +
|
|
136
|
+
'`),It&&(M=!0,B+=`';
|
|
137
|
+
`+It+`;
|
|
138
|
+
__p += '`),Oe&&(B+=`' +
|
|
139
|
+
((__t = (`+Oe+`)) == null ? '' : __t) +
|
|
140
|
+
'`),j=Gt+ie.length,ie}),B+=`';
|
|
141
|
+
`;var ne=Le.call(o,"variable")&&o.variable;if(!ne)B=`with (obj) {
|
|
142
|
+
`+B+`
|
|
193
143
|
}
|
|
194
|
-
`;else if(
|
|
195
|
-
`+(
|
|
196
|
-
`)+"var __t, __p = ''"+(
|
|
144
|
+
`;else if(oy.test(ne))throw new fe(f);B=(M?B.replace(Bg,""):B).replace(Hg,"$1").replace(qg,"$1;"),B="function("+(ne||"obj")+`) {
|
|
145
|
+
`+(ne?"":`obj || (obj = {});
|
|
146
|
+
`)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
197
147
|
function print() { __p += __j.call(arguments, '') }
|
|
198
148
|
`:`;
|
|
199
|
-
`)+
|
|
200
|
-
}`;var Pe=Gp(function(){return He(E,ie+"return "+G).apply(r,O)});if(Pe.source=G,ol(Pe))throw Pe;return Pe}function KE(n){return ze(n).toLowerCase()}function YE(n){return ze(n).toUpperCase()}function VE(n,o,u){if(n=ze(n),n&&(u||o===r))return rd(n);if(!n||!(o=fr(o)))return n;var f=Nr(n),y=Nr(o),E=nd(f,y),O=id(f,y)+1;return Fn(f,E,O).join("")}function XE(n,o,u){if(n=ze(n),n&&(u||o===r))return n.slice(0,ad(n)+1);if(!n||!(o=fr(o)))return n;var f=Nr(n),y=id(f,Nr(o))+1;return Fn(f,0,y).join("")}function JE(n,o,u){if(n=ze(n),n&&(u||o===r))return n.replace(W,"");if(!n||!(o=fr(o)))return n;var f=Nr(n),y=nd(f,Nr(o));return Fn(f,y).join("")}function QE(n,o){var u=ee,f=ye;if(ot(o)){var y="separator"in o?o.separator:y;u="length"in o?Ce(o.length):u,f="omission"in o?fr(o.omission):f}n=ze(n);var E=n.length;if(Di(n)){var O=Nr(n);E=O.length}if(u>=E)return n;var R=u-ki(f);if(R<1)return f;var L=O?Fn(O,0,R).join(""):n.slice(0,R);if(y===r)return L+f;if(O&&(R+=L.length-R),al(y)){if(n.slice(R).search(y)){var z,q=L;for(y.global||(y=Eu(y.source,ze(lt.exec(y))+"g")),y.lastIndex=0;z=y.exec(q);)var G=z.index;L=L.slice(0,G===r?R:G)}}else if(n.indexOf(fr(y),R)!=R){var Q=L.lastIndexOf(y);Q>-1&&(L=L.slice(0,Q))}return L+f}function e_(n){return n=ze(n),n&&ti.test(n)?n.replace(Mi,Cy):n}var t_=zi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ll=Kd("toUpperCase");function Zp(n,o,u){return n=ze(n),o=u?r:o,o===r?xy(n)?My(n):vy(n):n.match(o)||[]}var Gp=Ie(function(n,o){try{return lr(n,r,o)}catch(u){return ol(u)?u:new xe(u)}}),r_=pn(function(n,o){return Sr(o,function(u){u=Vr(u),fn(n,u,nl(n[u],n))}),n});function n_(n){var o=n==null?0:n.length,u=ve();return n=o?nt(n,function(f){if(typeof f[1]!="function")throw new Er(l);return[u(f[0]),f[1]]}):[],Ie(function(f){for(var y=-1;++y<o;){var E=n[y];if(lr(E[0],this,f))return lr(E[1],this,f)}})}function i_(n){return C1(xr(n,w))}function cl(n){return function(){return n}}function o_(n,o){return n==null||n!==n?o:n}var a_=Vd(),s_=Vd(!0);function ir(n){return n}function fl(n){return Ad(typeof n=="function"?n:xr(n,w))}function u_(n){return Rd(xr(n,w))}function l_(n,o){return Cd(n,xr(o,w))}var c_=Ie(function(n,o){return function(u){return Oo(u,n,o)}}),f_=Ie(function(n,o){return function(u){return Oo(n,u,o)}});function dl(n,o,u){var f=Tt(o),y=La(o,f);u==null&&!(ot(o)&&(y.length||!f.length))&&(u=o,o=n,n=this,y=La(o,Tt(o)));var E=!(ot(u)&&"chain"in u)||!!u.chain,O=vn(n);return Sr(y,function(R){var L=o[R];n[R]=L,O&&(n.prototype[R]=function(){var z=this.__chain__;if(E||z){var q=n(this.__wrapped__),G=q.__actions__=tr(this.__actions__);return G.push({func:L,args:arguments,thisArg:n}),q.__chain__=z,q}return L.apply(n,Tn([this.value()],arguments))})}),n}function d_(){return Mt._===this&&(Mt._=Ny),this}function pl(){}function p_(n){return n=Ce(n),Ie(function(o){return Pd(o,n)})}var h_=zu(nt),v_=zu(Xf),m_=zu(vu);function Kp(n){return Xu(n)?mu(Vr(n)):Z1(n)}function g_(n){return function(o){return n==null?r:li(n,o)}}var y_=Jd(),w_=Jd(!0);function hl(){return[]}function vl(){return!1}function b_(){return{}}function S_(){return""}function E_(){return!0}function __(n,o){if(n=Ce(n),n<1||n>Be)return[];var u=Y,f=Nt(n,Y);o=ve(o),n-=Y;for(var y=wu(f,o);++u<n;)o(u);return y}function x_(n){return Te(n)?nt(n,Vr):dr(n)?[n]:tr(hp(ze(n)))}function O_(n){var o=++Dy;return ze(n)+o}var A_=Wa(function(n,o){return n+o},0),T_=qu("ceil"),R_=Wa(function(n,o){return n/o},1),C_=qu("floor");function P_(n){return n&&n.length?Fa(n,ir,Pu):r}function I_(n,o){return n&&n.length?Fa(n,ve(o,2),Pu):r}function M_(n){return ed(n,ir)}function F_(n,o){return ed(n,ve(o,2))}function L_(n){return n&&n.length?Fa(n,ir,Lu):r}function $_(n,o){return n&&n.length?Fa(n,ve(o,2),Lu):r}var D_=Wa(function(n,o){return n*o},1),k_=qu("round"),N_=Wa(function(n,o){return n-o},0);function j_(n){return n&&n.length?yu(n,ir):0}function W_(n,o){return n&&n.length?yu(n,ve(o,2)):0}return b.after=uS,b.ary=Op,b.assign=YS,b.assignIn=jp,b.assignInWith=Qa,b.assignWith=VS,b.at=XS,b.before=Ap,b.bind=nl,b.bindAll=r_,b.bindKey=Tp,b.castArray=bS,b.chain=Ep,b.chunk=Cw,b.compact=Pw,b.concat=Iw,b.cond=n_,b.conforms=i_,b.constant=cl,b.countBy=jb,b.create=JS,b.curry=Rp,b.curryRight=Cp,b.debounce=Pp,b.defaults=QS,b.defaultsDeep=eE,b.defer=lS,b.delay=cS,b.difference=Mw,b.differenceBy=Fw,b.differenceWith=Lw,b.drop=$w,b.dropRight=Dw,b.dropRightWhile=kw,b.dropWhile=Nw,b.fill=jw,b.filter=Ub,b.flatMap=zb,b.flatMapDeep=qb,b.flatMapDepth=Zb,b.flatten=yp,b.flattenDeep=Ww,b.flattenDepth=Uw,b.flip=fS,b.flow=a_,b.flowRight=s_,b.fromPairs=Hw,b.functions=sE,b.functionsIn=uE,b.groupBy=Gb,b.initial=zw,b.intersection=qw,b.intersectionBy=Zw,b.intersectionWith=Gw,b.invert=cE,b.invertBy=fE,b.invokeMap=Yb,b.iteratee=fl,b.keyBy=Vb,b.keys=Tt,b.keysIn=nr,b.map=Ga,b.mapKeys=pE,b.mapValues=hE,b.matches=u_,b.matchesProperty=l_,b.memoize=Ya,b.merge=vE,b.mergeWith=Wp,b.method=c_,b.methodOf=f_,b.mixin=dl,b.negate=Va,b.nthArg=p_,b.omit=mE,b.omitBy=gE,b.once=dS,b.orderBy=Xb,b.over=h_,b.overArgs=pS,b.overEvery=v_,b.overSome=m_,b.partial=il,b.partialRight=Ip,b.partition=Jb,b.pick=yE,b.pickBy=Up,b.property=Kp,b.propertyOf=g_,b.pull=Xw,b.pullAll=bp,b.pullAllBy=Jw,b.pullAllWith=Qw,b.pullAt=eb,b.range=y_,b.rangeRight=w_,b.rearg=hS,b.reject=tS,b.remove=tb,b.rest=vS,b.reverse=tl,b.sampleSize=nS,b.set=bE,b.setWith=SE,b.shuffle=iS,b.slice=rb,b.sortBy=sS,b.sortedUniq=lb,b.sortedUniqBy=cb,b.split=zE,b.spread=mS,b.tail=fb,b.take=db,b.takeRight=pb,b.takeRightWhile=hb,b.takeWhile=vb,b.tap=Pb,b.throttle=gS,b.thru=Za,b.toArray=Dp,b.toPairs=Hp,b.toPairsIn=Bp,b.toPath=x_,b.toPlainObject=Np,b.transform=EE,b.unary=yS,b.union=mb,b.unionBy=gb,b.unionWith=yb,b.uniq=wb,b.uniqBy=bb,b.uniqWith=Sb,b.unset=_E,b.unzip=rl,b.unzipWith=Sp,b.update=xE,b.updateWith=OE,b.values=Gi,b.valuesIn=AE,b.without=Eb,b.words=Zp,b.wrap=wS,b.xor=_b,b.xorBy=xb,b.xorWith=Ob,b.zip=Ab,b.zipObject=Tb,b.zipObjectDeep=Rb,b.zipWith=Cb,b.entries=Hp,b.entriesIn=Bp,b.extend=jp,b.extendWith=Qa,dl(b,b),b.add=A_,b.attempt=Gp,b.camelCase=PE,b.capitalize=zp,b.ceil=T_,b.clamp=TE,b.clone=SS,b.cloneDeep=_S,b.cloneDeepWith=xS,b.cloneWith=ES,b.conformsTo=OS,b.deburr=qp,b.defaultTo=o_,b.divide=R_,b.endsWith=IE,b.eq=Wr,b.escape=ME,b.escapeRegExp=FE,b.every=Wb,b.find=Hb,b.findIndex=mp,b.findKey=tE,b.findLast=Bb,b.findLastIndex=gp,b.findLastKey=rE,b.floor=C_,b.forEach=_p,b.forEachRight=xp,b.forIn=nE,b.forInRight=iE,b.forOwn=oE,b.forOwnRight=aE,b.get=sl,b.gt=AS,b.gte=TS,b.has=lE,b.hasIn=ul,b.head=wp,b.identity=ir,b.includes=Kb,b.indexOf=Bw,b.inRange=RE,b.invoke=dE,b.isArguments=di,b.isArray=Te,b.isArrayBuffer=RS,b.isArrayLike=rr,b.isArrayLikeObject=vt,b.isBoolean=CS,b.isBuffer=Ln,b.isDate=PS,b.isElement=IS,b.isEmpty=MS,b.isEqual=FS,b.isEqualWith=LS,b.isError=ol,b.isFinite=$S,b.isFunction=vn,b.isInteger=Mp,b.isLength=Xa,b.isMap=Fp,b.isMatch=DS,b.isMatchWith=kS,b.isNaN=NS,b.isNative=jS,b.isNil=US,b.isNull=WS,b.isNumber=Lp,b.isObject=ot,b.isObjectLike=ct,b.isPlainObject=Io,b.isRegExp=al,b.isSafeInteger=HS,b.isSet=$p,b.isString=Ja,b.isSymbol=dr,b.isTypedArray=Zi,b.isUndefined=BS,b.isWeakMap=zS,b.isWeakSet=qS,b.join=Kw,b.kebabCase=LE,b.last=Ar,b.lastIndexOf=Yw,b.lowerCase=$E,b.lowerFirst=DE,b.lt=ZS,b.lte=GS,b.max=P_,b.maxBy=I_,b.mean=M_,b.meanBy=F_,b.min=L_,b.minBy=$_,b.stubArray=hl,b.stubFalse=vl,b.stubObject=b_,b.stubString=S_,b.stubTrue=E_,b.multiply=D_,b.nth=Vw,b.noConflict=d_,b.noop=pl,b.now=Ka,b.pad=kE,b.padEnd=NE,b.padStart=jE,b.parseInt=WE,b.random=CE,b.reduce=Qb,b.reduceRight=eS,b.repeat=UE,b.replace=HE,b.result=wE,b.round=k_,b.runInContext=M,b.sample=rS,b.size=oS,b.snakeCase=BE,b.some=aS,b.sortedIndex=nb,b.sortedIndexBy=ib,b.sortedIndexOf=ob,b.sortedLastIndex=ab,b.sortedLastIndexBy=sb,b.sortedLastIndexOf=ub,b.startCase=qE,b.startsWith=ZE,b.subtract=N_,b.sum=j_,b.sumBy=W_,b.template=GE,b.times=__,b.toFinite=mn,b.toInteger=Ce,b.toLength=kp,b.toLower=KE,b.toNumber=Tr,b.toSafeInteger=KS,b.toString=ze,b.toUpper=YE,b.trim=VE,b.trimEnd=XE,b.trimStart=JE,b.truncate=QE,b.unescape=e_,b.uniqueId=O_,b.upperCase=t_,b.upperFirst=ll,b.each=_p,b.eachRight=xp,b.first=wp,dl(b,function(){var n={};return Kr(b,function(o,u){Ge.call(b.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),b.VERSION=i,Sr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){b[n].placeholder=b}),Sr(["drop","take"],function(n,o){De.prototype[n]=function(u){u=u===r?1:_t(Ce(u),0);var f=this.__filtered__&&!o?new De(this):this.clone();return f.__filtered__?f.__takeCount__=Nt(u,f.__takeCount__):f.__views__.push({size:Nt(u,Y),type:n+(f.__dir__<0?"Right":"")}),f},De.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Sr(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==se||u==be;De.prototype[n]=function(y){var E=this.clone();return E.__iteratees__.push({iteratee:ve(y,3),type:u}),E.__filtered__=E.__filtered__||f,E}}),Sr(["head","last"],function(n,o){var u="take"+(o?"Right":"");De.prototype[n]=function(){return this[u](1).value()[0]}}),Sr(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");De.prototype[n]=function(){return this.__filtered__?new De(this):this[u](1)}}),De.prototype.compact=function(){return this.filter(ir)},De.prototype.find=function(n){return this.filter(n).head()},De.prototype.findLast=function(n){return this.reverse().find(n)},De.prototype.invokeMap=Ie(function(n,o){return typeof n=="function"?new De(this):this.map(function(u){return Oo(u,n,o)})}),De.prototype.reject=function(n){return this.filter(Va(ve(n)))},De.prototype.slice=function(n,o){n=Ce(n);var u=this;return u.__filtered__&&(n>0||o<0)?new De(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=Ce(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},De.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},De.prototype.toArray=function(){return this.take(Y)},Kr(De.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),y=b[f?"take"+(o=="last"?"Right":""):o],E=f||/^find/.test(o);y&&(b.prototype[o]=function(){var O=this.__wrapped__,R=f?[1]:arguments,L=O instanceof De,z=R[0],q=L||Te(O),G=function($e){var ke=y.apply(b,Tn([$e],R));return f&&Q?ke[0]:ke};q&&u&&typeof z=="function"&&z.length!=1&&(L=q=!1);var Q=this.__chain__,ie=!!this.__actions__.length,me=E&&!Q,Pe=L&&!ie;if(!E&&q){O=Pe?O:new De(this);var ge=n.apply(O,R);return ge.__actions__.push({func:Za,args:[G],thisArg:r}),new _r(ge,Q)}return me&&Pe?n.apply(this,R):(ge=this.thru(G),me?f?ge.value()[0]:ge.value():ge)})}),Sr(["pop","push","shift","sort","splice","unshift"],function(n){var o=ya[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);b.prototype[n]=function(){var y=arguments;if(f&&!this.__chain__){var E=this.value();return o.apply(Te(E)?E:[],y)}return this[u](function(O){return o.apply(Te(O)?O:[],y)})}}),Kr(De.prototype,function(n,o){var u=b[o];if(u){var f=u.name+"";Ge.call(Ui,f)||(Ui[f]=[]),Ui[f].push({name:o,func:u})}}),Ui[ja(r,C).name]=[{name:"wrapper",func:r}],De.prototype.clone=e1,De.prototype.reverse=t1,De.prototype.value=r1,b.prototype.at=Ib,b.prototype.chain=Mb,b.prototype.commit=Fb,b.prototype.next=Lb,b.prototype.plant=Db,b.prototype.reverse=kb,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=Nb,b.prototype.first=b.prototype.head,yo&&(b.prototype[yo]=$b),b},Ni=Fy();ii?((ii.exports=Ni)._=Ni,fu._=Ni):Mt._=Ni}).call(mi)})(ks,ks.exports);var St=ks.exports;const Ac={FdSave:hO,FdWarningDanger:zc,FdInfoCircle:fO,FdInfoBold:fc};var lf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(lf||{}),_i=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(_i||{}),eo=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(eo||{});const mg={[_i.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[_i.DANGER]:{icon:"red-500",button:"primary-dark"},[_i.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Vl=({color:e=_i.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=mg[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-white hover:text-${s}`;return N.jsx("button",{autoFocus:i,className:Dt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},qP=({name:e,color:t=_i.PRIMARY,className:r="w-10 h-10"})=>{const i=Ac[e]||Ac.FdInfoCircle,a=`text-${mg[t].icon}`;return N.jsx(i,{className:Dt(r,a)})},ZP=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:c,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:w})=>{const S=g=>{h({id:e,reason:g})};k.useEffect(()=>{function g(x){x.key==="Escape"&&S(eo.CANCELED)}return window.addEventListener("keyup",g),()=>{window.removeEventListener("keyup",g)}},[]);const v=St.merge(St.values(c==null?void 0:c.toggles).flatMap(g=>g.value?g.warnings||[]:[]),c==null?void 0:c.tips),_=(g,x)=>{var P;if(!(c!=null&&c.toggles))return;const C=St.cloneDeep(c);(P=C.toggles)!=null&&P[g]&&(C.toggles[g].value=x),w({id:e,views:C})};return Qo.createPortal(N.jsx(Ds,{appear:!0,show:!0,as:k.Fragment,children:N.jsx("div",{className:Dt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>S(eo.CANCELED),children:N.jsx(Ds.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:N.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:g=>g.stopPropagation(),children:N.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[i?N.jsx("div",{className:"flex items-center justify-center",children:N.jsx(qP,{name:i,color:s})}):null,N.jsx(GP,{condition:t,children:N.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),N.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),N.jsx("div",{className:"text-xs text-white",children:St.values(c==null?void 0:c.toggles).map(g=>N.jsx("div",{children:N.jsxs("label",{htmlFor:g.key,className:"flex items-center",children:[N.jsx(hg,{size:"xs",value:g.value,onChange:x=>_(g.key,x)}),N.jsx("span",{className:"ml-1",children:g.title})]})},g.key))}),N.jsx(KP,{warnings:v}),N.jsx("div",{className:"flex items-center gap-4 p-1",children:a===lf.CONFIRM?N.jsxs(N.Fragment,{children:[N.jsx(Vl,{autoFocus:!0,color:s,onClick:()=>S(eo.CONFIRMED),children:"Confirm"}),N.jsx(Vl,{color:s,variant:"outlined",onClick:()=>S(eo.CANCELED),children:"Cancel"})]}):N.jsx(Vl,{autoFocus:!0,onClick:()=>S(),children:"OK"})})]})})})})}),document.querySelector("body"))},GP=e=>e.condition?N.jsx(N.Fragment,{children:e.children}):null,KP=e=>e.warnings?N.jsx(Ds,{appear:!0,show:!!e.warnings.length,as:k.Fragment,children:N.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>N.jsx(Ds.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:N.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[N.jsx(zc,{className:Dt({"h-3 w-3":!0,"text-orange-400":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),N.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function YP(e,t){const r=k.useRef(!1);k.useEffect(()=>{if(r.current)return e();r.current=!0},t)}var Xl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Jl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function gg(e,t){for(var r=t.slice(0,t.length-1),i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function yg(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function VP(e,t){for(var r=e.length>=t.length?e:t,i=e.length>=t.length?t:e,a=!0,s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}var Go={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,"-":Xl?173:189,"=":Xl?61:187,";":Xl?59:186,"'":222,"[":219,"]":221,"\\":220},an={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Tc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},$t={16:!1,18:!1,17:!1,91:!1},ft={};for(var ms=1;ms<20;ms++)Go["f".concat(ms)]=111+ms;var Qe=[],gv=!1,wg="all",bg=[],ca=function(t){return Go[t.toLowerCase()]||an[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)},XP=function(t){return Object.keys(Go).find(function(r){return Go[r]===t})},JP=function(t){return Object.keys(an).find(function(r){return an[r]===t})};function Sg(e){wg=e||"all"}function Ko(){return wg||"all"}function QP(){return Qe.slice(0)}function e2(){return Qe.map(function(e){return XP(e)||JP(e)||String.fromCharCode(e)})}function t2(){var e=[];return Object.keys(ft).forEach(function(t){ft[t].forEach(function(r){var i=r.key,a=r.scope,s=r.mods,l=r.shortcut;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(function(c){return ca(c)})})})}),e}function r2(e){var t=e.target||e.srcElement,r=t.tagName,i=!0;return(t.isContentEditable||(r==="INPUT"||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function n2(e){return typeof e=="string"&&(e=ca(e)),Qe.indexOf(e)!==-1}function i2(e,t){var r,i;e||(e=Ko());for(var a in ft)if(Object.prototype.hasOwnProperty.call(ft,a))for(r=ft[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1):i++;Ko()===e&&Sg(t||"all")}function o2(e){var t=e.keyCode||e.which||e.charCode,r=Qe.indexOf(t);if(r>=0&&Qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in $t){$t[t]=!1;for(var i in an)an[i]===t&&(Zr[i]=!1)}}function a2(e){if(typeof e>"u")Object.keys(ft).forEach(function(l){return delete ft[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&Ql(l)});else if(typeof e=="object")e.key&&Ql(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var a=r[0],s=r[1];typeof a=="function"&&(s=a,a=""),Ql({key:e,scope:a,method:s,splitKey:"+"})}}var Ql=function(t){var r=t.key,i=t.scope,a=t.method,s=t.splitKey,l=s===void 0?"+":s,c=yg(r);c.forEach(function(d){var p=d.split(l),h=p.length,w=p[h-1],S=w==="*"?"*":ca(w);if(ft[S]){i||(i=Ko());var v=h>1?gg(an,p):[];ft[S]=ft[S].filter(function(_){var g=a?_.method===a:!0;return!(g&&_.scope===i&&VP(_.mods,v))})}})};function yv(e,t,r,i){if(t.element===i){var a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(var s in $t)Object.prototype.hasOwnProperty.call($t,s)&&(!$t[s]&&t.mods.indexOf(+s)>-1||$t[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!$t[16]&&!$t[18]&&!$t[17]&&!$t[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function wv(e,t){var r=ft["*"],i=e.keyCode||e.which||e.charCode;if(Zr.filter.call(this,e)){if((i===93||i===224)&&(i=91),Qe.indexOf(i)===-1&&i!==229&&Qe.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(_){var g=Tc[_];e[_]&&Qe.indexOf(g)===-1?Qe.push(g):!e[_]&&Qe.indexOf(g)>-1?Qe.splice(Qe.indexOf(g),1):_==="metaKey"&&e[_]&&Qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Qe=Qe.slice(Qe.indexOf(g))))}),i in $t){$t[i]=!0;for(var a in an)an[a]===i&&(Zr[a]=!0);if(!r)return}for(var s in $t)Object.prototype.hasOwnProperty.call($t,s)&&($t[s]=e[Tc[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),$t[17]=!0,$t[18]=!0);var l=Ko();if(r)for(var c=0;c<r.length;c++)r[c].scope===l&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&yv(e,r[c],l,t);if(i in ft){for(var d=0;d<ft[i].length;d++)if((e.type==="keydown"&&ft[i][d].keydown||e.type==="keyup"&&ft[i][d].keyup)&&ft[i][d].key){for(var p=ft[i][d],h=p.splitKey,w=p.key.split(h),S=[],v=0;v<w.length;v++)S.push(ca(w[v]));S.sort().join("")===Qe.sort().join("")&&yv(e,p,l,t)}}}}function s2(e){return bg.indexOf(e)>-1}function Zr(e,t,r){Qe=[];var i=yg(e),a=[],s="all",l=document,c=0,d=!1,p=!0,h="+",w=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(w=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey)),typeof t=="string"&&(s=t);c<i.length;c++)e=i[c].split(h),a=[],e.length>1&&(a=gg(an,e)),e=e[e.length-1],e=e==="*"?"*":ca(e),e in ft||(ft[e]=[]),ft[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[c],method:r,key:i[c],splitKey:h,element:l});typeof l<"u"&&!s2(l)&&window&&(bg.push(l),Jl(l,"keydown",function(S){wv(S,l)},w),gv||(gv=!0,Jl(window,"focus",function(){Qe=[]},w)),Jl(l,"keyup",function(S){wv(S,l),o2(S)},w))}function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ft).forEach(function(r){var i=ft[r].filter(function(a){return a.scope===t&&a.shortcut===e});i.forEach(function(a){a&&a.method&&a.method()})})}var ec={getPressedKeyString:e2,setScope:Sg,getScope:Ko,deleteScope:i2,getPressedKeyCodes:QP,getAllKeyCodes:t2,isPressed:n2,filter:r2,trigger:u2,unbind:a2,keyMap:Go,modifier:an,modifierMap:Tc};for(var tc in ec)Object.prototype.hasOwnProperty.call(ec,tc)&&(Zr[tc]=ec[tc]);if(typeof window<"u"){var l2=window.hotkeys;Zr.noConflict=function(e){return e&&window.hotkeys===Zr&&(window.hotkeys=l2),Zr},window.hotkeys=Zr}Zr.filter=()=>!0;function c2(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=k.useCallback((c,d)=>{a&&c.preventDefault(),setTimeout(()=>t(c,d))},i),l=()=>{Zr.unbind(e,s)};k.useEffect(()=>(Zr(e,r,s),l),[e,r,s])}const f2=e=>{const t=k.useRef(null);return k.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function d2(e){const t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}function p2(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function h2(e){const t=k.useRef(null);return k.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function v2(e){const[t,r]=k.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=k.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const Eg=k.createContext(""),m2=e=>N.jsx(Eg.Provider,{value:e.value,children:e.children}),g2=()=>{const e=k.useContext(Eg);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function y2(e){const[t,r]=k.useState(e),i=k.useMemo(()=>w2(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function w2(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${St.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const b2=(e,t,r={})=>{r={timeout:200,...r};const i=k.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return k.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function En(e){return typeof e=="function"}function _g(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var rc=_g(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
149
|
+
`)+B+`return __p
|
|
150
|
+
}`;var me=wp(function(){return Re(S,J+"return "+B).apply(r,_)});if(me.source=B,Lu(me))throw me;return me}function PE(n){return Ie(n).toLowerCase()}function RE(n){return Ie(n).toUpperCase()}function IE(n,o,u){if(n=Ie(n),n&&(u||o===r))return Cc(n);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=dr(o),S=Pc(c,m),_=Rc(c,m)+1;return un(c,S,_).join("")}function ME(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.slice(0,Mc(n)+1);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Rc(c,dr(o))+1;return un(c,0,m).join("")}function FE(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.replace(Ls,"");if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Pc(c,dr(o));return un(c,m).join("")}function LE(n,o){var u=V,c=ee;if(qe(o)){var m="separator"in o?o.separator:m;u="length"in o?he(o.length):u,c="omission"in o?Ht(o.omission):c}n=Ie(n);var S=n.length;if(ei(n)){var _=dr(n);S=_.length}if(u>=S)return n;var T=u-ti(c);if(T<1)return c;var M=_?un(_,0,T).join(""):n.slice(0,T);if(m===r)return M+c;if(_&&(T+=M.length-T),$u(m)){if(n.slice(T).search(m)){var j,W=M;for(m.global||(m=Xs(m.source,Ie(Vf.exec(m))+"g")),m.lastIndex=0;j=m.exec(W);)var B=j.index;M=M.slice(0,B===r?T:B)}}else if(n.indexOf(Ht(m),T)!=T){var Y=M.lastIndexOf(m);Y>-1&&(M=M.slice(0,Y))}return M+c}function $E(n){return n=Ie(n),n&&Zg.test(n)?n.replace(Gf,f0):n}var DE=ui(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),Nu=bd("toUpperCase");function yp(n,o,u){return n=Ie(n),o=u?r:o,o===r?o0(n)?p0(n):Vy(n):n.match(o)||[]}var wp=ye(function(n,o){try{return Ut(n,r,o)}catch(u){return Lu(u)?u:new fe(u)}}),kE=jr(function(n,o){return Qt(o,function(u){u=xr(u),kr(n,u,Mu(n[u],n))}),n});function NE(n){var o=n==null?0:n.length,u=te();return n=o?ze(n,function(c){if(typeof c[1]!="function")throw new er(l);return[u(c[0]),c[1]]}):[],ye(function(c){for(var m=-1;++m<o;){var S=n[m];if(Ut(S[0],this,c))return Ut(S[1],this,c)}})}function jE(n){return f1(rr(n,b))}function ju(n){return function(){return n}}function WE(n,o){return n==null||n!==n?o:n}var zE=Ed(),UE=Ed(!0);function kt(n){return n}function Wu(n){return Jc(typeof n=="function"?n:rr(n,b))}function BE(n){return ed(rr(n,b))}function HE(n,o){return td(n,rr(o,b))}var qE=ye(function(n,o){return function(u){return Di(u,n,o)}}),ZE=ye(function(n,o){return function(u){return Di(n,u,o)}});function zu(n,o,u){var c=ut(o),m=Qo(o,c);u==null&&!(qe(o)&&(m.length||!c.length))&&(u=o,o=n,n=this,m=Qo(o,ut(o)));var S=!(qe(u)&&"chain"in u)||!!u.chain,_=zr(n);return Qt(m,function(T){var M=o[T];n[T]=M,_&&(n.prototype[T]=function(){var j=this.__chain__;if(S||j){var W=n(this.__wrapped__),B=W.__actions__=Lt(this.__actions__);return B.push({func:M,args:arguments,thisArg:n}),W.__chain__=j,W}return M.apply(n,tn([this.value()],arguments))})}),n}function GE(){return dt._===this&&(dt._=w0),this}function Uu(){}function KE(n){return n=he(n),ye(function(o){return rd(o,n)})}var YE=wu(ze),VE=wu(xc),XE=wu(Hs);function bp(n){return Au(n)?qs(xr(n)):T1(n)}function JE(n){return function(o){return n==null?r:Rn(n,o)}}var QE=_d(),ex=_d(!0);function Bu(){return[]}function Hu(){return!1}function tx(){return{}}function rx(){return""}function nx(){return!0}function ix(n,o){if(n=he(n),n<1||n>Ge)return[];var u=G,c=wt(n,G);o=te(o),n-=G;for(var m=Ks(c,o);++u<n;)o(u);return m}function ox(n){return de(n)?ze(n,xr):qt(n)?[n]:Lt(Wd(Ie(n)))}function ax(n){var o=++g0;return Ie(n)+o}var sx=oa(function(n,o){return n+o},0),ux=bu("ceil"),lx=oa(function(n,o){return n/o},1),fx=bu("floor");function cx(n){return n&&n.length?Jo(n,kt,ou):r}function dx(n,o){return n&&n.length?Jo(n,te(o,2),ou):r}function px(n){return Ac(n,kt)}function hx(n,o){return Ac(n,te(o,2))}function vx(n){return n&&n.length?Jo(n,kt,lu):r}function mx(n,o){return n&&n.length?Jo(n,te(o,2),lu):r}var gx=oa(function(n,o){return n*o},1),yx=bu("round"),wx=oa(function(n,o){return n-o},0);function bx(n){return n&&n.length?Gs(n,kt):0}function Sx(n,o){return n&&n.length?Gs(n,te(o,2)):0}return g.after=Bb,g.ary=Xd,g.assign=RS,g.assignIn=cp,g.assignInWith=ya,g.assignWith=IS,g.at=MS,g.before=Jd,g.bind=Mu,g.bindAll=kE,g.bindKey=Qd,g.castArray=tS,g.chain=Kd,g.chunk=fw,g.compact=cw,g.concat=dw,g.cond=NE,g.conforms=jE,g.constant=ju,g.countBy=bb,g.create=FS,g.curry=ep,g.curryRight=tp,g.debounce=rp,g.defaults=LS,g.defaultsDeep=$S,g.defer=Hb,g.delay=qb,g.difference=pw,g.differenceBy=hw,g.differenceWith=vw,g.drop=mw,g.dropRight=gw,g.dropRightWhile=yw,g.dropWhile=ww,g.fill=bw,g.filter=Eb,g.flatMap=Ob,g.flatMapDeep=Ab,g.flatMapDepth=Tb,g.flatten=Hd,g.flattenDeep=Sw,g.flattenDepth=Ew,g.flip=Zb,g.flow=zE,g.flowRight=UE,g.fromPairs=xw,g.functions=US,g.functionsIn=BS,g.groupBy=Cb,g.initial=Ow,g.intersection=Aw,g.intersectionBy=Tw,g.intersectionWith=Cw,g.invert=qS,g.invertBy=ZS,g.invokeMap=Rb,g.iteratee=Wu,g.keyBy=Ib,g.keys=ut,g.keysIn=Dt,g.map=da,g.mapKeys=KS,g.mapValues=YS,g.matches=BE,g.matchesProperty=HE,g.memoize=ha,g.merge=VS,g.mergeWith=dp,g.method=qE,g.methodOf=ZE,g.mixin=zu,g.negate=va,g.nthArg=KE,g.omit=XS,g.omitBy=JS,g.once=Gb,g.orderBy=Mb,g.over=YE,g.overArgs=Kb,g.overEvery=VE,g.overSome=XE,g.partial=Fu,g.partialRight=np,g.partition=Fb,g.pick=QS,g.pickBy=pp,g.property=bp,g.propertyOf=JE,g.pull=Mw,g.pullAll=Zd,g.pullAllBy=Fw,g.pullAllWith=Lw,g.pullAt=$w,g.range=QE,g.rangeRight=ex,g.rearg=Yb,g.reject=Db,g.remove=Dw,g.rest=Vb,g.reverse=Ru,g.sampleSize=Nb,g.set=tE,g.setWith=rE,g.shuffle=jb,g.slice=kw,g.sortBy=Ub,g.sortedUniq=Hw,g.sortedUniqBy=qw,g.split=OE,g.spread=Xb,g.tail=Zw,g.take=Gw,g.takeRight=Kw,g.takeRightWhile=Yw,g.takeWhile=Vw,g.tap=cb,g.throttle=Jb,g.thru=ca,g.toArray=up,g.toPairs=hp,g.toPairsIn=vp,g.toPath=ox,g.toPlainObject=fp,g.transform=nE,g.unary=Qb,g.union=Xw,g.unionBy=Jw,g.unionWith=Qw,g.uniq=eb,g.uniqBy=tb,g.uniqWith=rb,g.unset=iE,g.unzip=Iu,g.unzipWith=Gd,g.update=oE,g.updateWith=aE,g.values=ci,g.valuesIn=sE,g.without=nb,g.words=yp,g.wrap=eS,g.xor=ib,g.xorBy=ob,g.xorWith=ab,g.zip=sb,g.zipObject=ub,g.zipObjectDeep=lb,g.zipWith=fb,g.entries=hp,g.entriesIn=vp,g.extend=cp,g.extendWith=ya,zu(g,g),g.add=sx,g.attempt=wp,g.camelCase=cE,g.capitalize=mp,g.ceil=ux,g.clamp=uE,g.clone=rS,g.cloneDeep=iS,g.cloneDeepWith=oS,g.cloneWith=nS,g.conformsTo=aS,g.deburr=gp,g.defaultTo=WE,g.divide=lx,g.endsWith=dE,g.eq=hr,g.escape=pE,g.escapeRegExp=hE,g.every=Sb,g.find=xb,g.findIndex=Ud,g.findKey=DS,g.findLast=_b,g.findLastIndex=Bd,g.findLastKey=kS,g.floor=fx,g.forEach=Yd,g.forEachRight=Vd,g.forIn=NS,g.forInRight=jS,g.forOwn=WS,g.forOwnRight=zS,g.get=Du,g.gt=sS,g.gte=uS,g.has=HS,g.hasIn=ku,g.head=qd,g.identity=kt,g.includes=Pb,g.indexOf=_w,g.inRange=lE,g.invoke=GS,g.isArguments=Fn,g.isArray=de,g.isArrayBuffer=lS,g.isArrayLike=$t,g.isArrayLikeObject=Ve,g.isBoolean=fS,g.isBuffer=ln,g.isDate=cS,g.isElement=dS,g.isEmpty=pS,g.isEqual=hS,g.isEqualWith=vS,g.isError=Lu,g.isFinite=mS,g.isFunction=zr,g.isInteger=ip,g.isLength=ma,g.isMap=op,g.isMatch=gS,g.isMatchWith=yS,g.isNaN=wS,g.isNative=bS,g.isNil=ES,g.isNull=SS,g.isNumber=ap,g.isObject=qe,g.isObjectLike=Ke,g.isPlainObject=Ui,g.isRegExp=$u,g.isSafeInteger=xS,g.isSet=sp,g.isString=ga,g.isSymbol=qt,g.isTypedArray=fi,g.isUndefined=_S,g.isWeakMap=OS,g.isWeakSet=AS,g.join=Pw,g.kebabCase=vE,g.last=ir,g.lastIndexOf=Rw,g.lowerCase=mE,g.lowerFirst=gE,g.lt=TS,g.lte=CS,g.max=cx,g.maxBy=dx,g.mean=px,g.meanBy=hx,g.min=vx,g.minBy=mx,g.stubArray=Bu,g.stubFalse=Hu,g.stubObject=tx,g.stubString=rx,g.stubTrue=nx,g.multiply=gx,g.nth=Iw,g.noConflict=GE,g.noop=Uu,g.now=pa,g.pad=yE,g.padEnd=wE,g.padStart=bE,g.parseInt=SE,g.random=fE,g.reduce=Lb,g.reduceRight=$b,g.repeat=EE,g.replace=xE,g.result=eE,g.round=yx,g.runInContext=R,g.sample=kb,g.size=Wb,g.snakeCase=_E,g.some=zb,g.sortedIndex=Nw,g.sortedIndexBy=jw,g.sortedIndexOf=Ww,g.sortedLastIndex=zw,g.sortedLastIndexBy=Uw,g.sortedLastIndexOf=Bw,g.startCase=AE,g.startsWith=TE,g.subtract=wx,g.sum=bx,g.sumBy=Sx,g.template=CE,g.times=ix,g.toFinite=Ur,g.toInteger=he,g.toLength=lp,g.toLower=PE,g.toNumber=or,g.toSafeInteger=PS,g.toString=Ie,g.toUpper=RE,g.trim=IE,g.trimEnd=ME,g.trimStart=FE,g.truncate=LE,g.unescape=$E,g.uniqueId=ax,g.upperCase=DE,g.upperFirst=Nu,g.each=Yd,g.eachRight=Vd,g.first=qd,zu(g,function(){var n={};return Sr(g,function(o,u){Le.call(g.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),g.VERSION=i,Qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){g[n].placeholder=g}),Qt(["drop","take"],function(n,o){_e.prototype[n]=function(u){u=u===r?1:nt(he(u),0);var c=this.__filtered__&&!o?new _e(this):this.clone();return c.__filtered__?c.__takeCount__=wt(u,c.__takeCount__):c.__views__.push({size:wt(u,G),type:n+(c.__dir__<0?"Right":"")}),c},_e.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Qt(["filter","map","takeWhile"],function(n,o){var u=o+1,c=u==Ae||u==ve;_e.prototype[n]=function(m){var S=this.clone();return S.__iteratees__.push({iteratee:te(m,3),type:u}),S.__filtered__=S.__filtered__||c,S}}),Qt(["head","last"],function(n,o){var u="take"+(o?"Right":"");_e.prototype[n]=function(){return this[u](1).value()[0]}}),Qt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");_e.prototype[n]=function(){return this.__filtered__?new _e(this):this[u](1)}}),_e.prototype.compact=function(){return this.filter(kt)},_e.prototype.find=function(n){return this.filter(n).head()},_e.prototype.findLast=function(n){return this.reverse().find(n)},_e.prototype.invokeMap=ye(function(n,o){return typeof n=="function"?new _e(this):this.map(function(u){return Di(u,n,o)})}),_e.prototype.reject=function(n){return this.filter(va(te(n)))},_e.prototype.slice=function(n,o){n=he(n);var u=this;return u.__filtered__&&(n>0||o<0)?new _e(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=he(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},_e.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},_e.prototype.toArray=function(){return this.take(G)},Sr(_e.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),c=/^(?:head|last)$/.test(o),m=g[c?"take"+(o=="last"?"Right":""):o],S=c||/^find/.test(o);m&&(g.prototype[o]=function(){var _=this.__wrapped__,T=c?[1]:arguments,M=_ instanceof _e,j=T[0],W=M||de(_),B=function(Ee){var Oe=m.apply(g,tn([Ee],T));return c&&Y?Oe[0]:Oe};W&&u&&typeof j=="function"&&j.length!=1&&(M=W=!1);var Y=this.__chain__,J=!!this.__actions__.length,ne=S&&!Y,me=M&&!J;if(!S&&W){_=me?_:new _e(this);var ie=n.apply(_,T);return ie.__actions__.push({func:ca,args:[B],thisArg:r}),new tr(ie,Y)}return ne&&me?n.apply(this,T):(ie=this.thru(B),ne?c?ie.value()[0]:ie.value():ie)})}),Qt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ko[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",c=/^(?:pop|shift)$/.test(n);g.prototype[n]=function(){var m=arguments;if(c&&!this.__chain__){var S=this.value();return o.apply(de(S)?S:[],m)}return this[u](function(_){return o.apply(de(_)?_:[],m)})}}),Sr(_e.prototype,function(n,o){var u=g[o];if(u){var c=u.name+"";Le.call(oi,c)||(oi[c]=[]),oi[c].push({name:o,func:u})}}),oi[ia(r,A).name]=[{name:"wrapper",func:r}],_e.prototype.clone=$0,_e.prototype.reverse=D0,_e.prototype.value=k0,g.prototype.at=db,g.prototype.chain=pb,g.prototype.commit=hb,g.prototype.next=vb,g.prototype.plant=gb,g.prototype.reverse=yb,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=wb,g.prototype.first=g.prototype.head,Pi&&(g.prototype[Pi]=mb),g},ri=h0();On?((On.exports=ri)._=ri,Ws._=ri):dt._=ri}).call(kn)})(ts,ts.exports);var tt=ts.exports;const Jl={FdSave:mt.FdSave,FdWarningDanger:mt.FdWarningDanger,FdInfoCircle:mt.FdInfoCircle,FdInfoBold:mt.FdInfoBold};var Rf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Rf||{}),Hn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Hn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const Pm={[Hn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Hn.DANGER]:{icon:"red-500",button:"primary-dark"},[Hn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},_l=({color:e=Hn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=Pm[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-white hover:text-${s}`;return $.jsx("button",{autoFocus:i,className:ft("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},mR=({name:e,color:t=Hn.PRIMARY,className:r="w-8 h-8"})=>{const i=Jl[e]||Jl.FdInfoCircle,a=`text-${Pm[t].icon}`;return $.jsx(i,{className:ft(r,a)})},gR=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:f,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:b})=>{const v=y=>{h({id:e,reason:y})};D.useEffect(()=>{function y(x){x.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const w=tt.merge(tt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),E=(y,x)=>{var I;if(!(f!=null&&f.toggles))return;const A=tt.cloneDeep(f);(I=A.toggles)!=null&&I[y]&&(A.toggles[y].value=x),b({id:e,views:A})};return ho.createPortal($.jsx(es,{appear:!0,show:!0,as:D.Fragment,children:$.jsx("div",{className:ft("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>v(vi.CANCELED),children:$.jsx(es.Child,{as:D.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-50 bg-grey-900",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(mR,{name:i,color:s})}):null,$.jsx(yR,{condition:t,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),$.jsx("div",{className:"text-xs text-white",children:tt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(Tm,{size:"xs",value:y.value,onChange:x=>E(y.key,x)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(wR,{warnings:w}),$.jsx("div",{className:"flex items-center gap-4",children:a===Rf.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(_l,{autoFocus:!0,color:s,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),$.jsx(_l,{color:s,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):$.jsx(_l,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),document.querySelector("body"))},yR=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,wR=e=>e.warnings?$.jsx(es,{appear:!0,show:!!e.warnings.length,as:D.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((t,r)=>$.jsx(es.Child,{as:D.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(mt.FdWarningDanger,{className:ft({"h-3 w-3":!0,"text-orange-400":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function bR(e,t){const r=D.useRef(!1);D.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Ol=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Al(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Zi(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Rm(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function Im(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function SR(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}const uo={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,"-":Ol?173:189,"=":Ol?61:187,";":Ol?59:186,"'":222,"[":219,"]":221,"\\":220},Mr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ba={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},vt={16:!1,18:!1,17:!1,91:!1},Ze={};for(let e=1;e<20;e++)uo["f".concat(e)]=111+e;let Be=[],to=null,Mm="all";const qr=new Map,Ao=e=>uo[e.toLowerCase()]||Mr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ER=e=>Object.keys(uo).find(t=>uo[t]===e),xR=e=>Object.keys(Mr).find(t=>Mr[t]===e);function Fm(e){Mm=e||"all"}function lo(){return Mm||"all"}function _R(){return Be.slice(0)}function OR(){return Be.map(e=>ER(e)||xR(e)||String.fromCharCode(e))}function AR(){const e=[];return Object.keys(Ze).forEach(t=>{Ze[t].forEach(r=>{let{key:i,scope:a,mods:s,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(f=>Ao(f))})})}),e}function TR(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function CR(e){return typeof e=="string"&&(e=Ao(e)),Be.indexOf(e)!==-1}function PR(e,t){let r,i;e||(e=lo());for(const a in Ze)if(Object.prototype.hasOwnProperty.call(Ze,a))for(r=Ze[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:f}=l;return If(f)}):i++;lo()===e&&Fm(t||"all")}function RR(e){let t=e.keyCode||e.which||e.charCode;const r=Be.indexOf(t);if(r>=0&&Be.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Be.splice(0,Be.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in Mr)Mr[i]===t&&(wr[i]=!1)}}function Lm(e){if(typeof e>"u")Object.keys(Ze).forEach(a=>{Array.isArray(Ze[a])&&Ze[a].forEach(s=>$a(s)),delete Ze[a]}),If(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&$a(a)});else if(typeof e=="object")e.key&&$a(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[a,s]=r;typeof a=="function"&&(s=a,a=""),$a({key:e,scope:a,method:s,splitKey:"+"})}}const $a=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Im(t).forEach(l=>{const f=l.split(a),d=f.length,p=f[d-1],h=p==="*"?"*":Ao(p);if(!Ze[h])return;r||(r=lo());const b=d>1?Rm(Mr,f):[],v=[];Ze[h]=Ze[h].filter(w=>{const y=(i?w.method===i:!0)&&w.scope===r&&SR(w.mods,b);return y&&v.push(w.element),!y}),v.forEach(w=>If(w))})};function kh(e,t,r,i){if(t.element!==i)return;let a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in vt)Object.prototype.hasOwnProperty.call(vt,s)&&(!vt[s]&&t.mods.indexOf(+s)>-1||vt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Be),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Nh(e,t){const r=Ze["*"];let i=e.keyCode||e.which||e.charCode;if(!wr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Be.indexOf(i)===-1&&i!==229&&Be.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(f=>{const d=Ba[f];e[f]&&Be.indexOf(d)===-1?Be.push(d):!e[f]&&Be.indexOf(d)>-1?Be.splice(Be.indexOf(d),1):f==="metaKey"&&e[f]&&(Be=Be.filter(p=>p in Ba||p===i))}),i in vt){vt[i]=!0;for(const f in Mr)Mr[f]===i&&(wr[f]=!0);if(!r)return}for(const f in vt)Object.prototype.hasOwnProperty.call(vt,f)&&(vt[f]=e[Ba[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Be.indexOf(17)===-1&&Be.push(17),Be.indexOf(18)===-1&&Be.push(18),vt[17]=!0,vt[18]=!0);const a=lo();if(r)for(let f=0;f<r.length;f++)r[f].scope===a&&(e.type==="keydown"&&r[f].keydown||e.type==="keyup"&&r[f].keyup)&&kh(e,r[f],a,t);if(!(i in Ze))return;const s=Ze[i],l=s.length;for(let f=0;f<l;f++)if((e.type==="keydown"&&s[f].keydown||e.type==="keyup"&&s[f].keyup)&&s[f].key){const d=s[f],{splitKey:p}=d,h=d.key.split(p),b=[];for(let v=0;v<h.length;v++)b.push(Ao(h[v]));b.sort().join("")===Be.sort().join("")&&kh(e,d,a,t)}}function wr(e,t,r){Be=[];const i=Im(e);let a=[],s="all",l=document,f=0,d=!1,p=!0,h="+",b=!1,v=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(b=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey),t.single===!0&&(v=!0)),typeof t=="string"&&(s=t),v&&Lm(e,s);f<i.length;f++)e=i[f].split(h),a=[],e.length>1&&(a=Rm(Mr,e)),e=e[e.length-1],e=e==="*"?"*":Ao(e),e in Ze||(Ze[e]=[]),Ze[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[f],method:r,key:i[f],splitKey:h,element:l});if(typeof l<"u"&&window){if(!qr.has(l)){const w=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Nh(y,l)},E=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Nh(y,l),RR(y)};qr.set(l,{keydownListener:w,keyupListenr:E,capture:b}),Al(l,"keydown",w,b),Al(l,"keyup",E,b)}if(!to){const w=()=>{Be=[]};to={listener:w,capture:b},Al(window,"focus",w,b)}}}function IR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ze).forEach(r=>{Ze[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function If(e){const t=Object.values(Ze).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=qr.get(e)||{};i&&a&&(Zi(e,"keyup",a,s),Zi(e,"keydown",i,s),qr.delete(e))}if((t.length<=0||qr.size<=0)&&(Object.keys(qr).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:f}=qr.get(a)||{};s&&l&&(Zi(a,"keyup",l,f),Zi(a,"keydown",s,f),qr.delete(a))}),qr.clear(),Object.keys(Ze).forEach(a=>delete Ze[a]),to)){const{listener:a,capture:s}=to;Zi(window,"focus",a,s),to=null}}const Tl={getPressedKeyString:OR,setScope:Fm,getScope:lo,deleteScope:PR,getPressedKeyCodes:_R,getAllKeyCodes:AR,isPressed:CR,filter:TR,trigger:IR,unbind:Lm,keyMap:uo,modifier:Mr,modifierMap:Ba};for(const e in Tl)Object.prototype.hasOwnProperty.call(Tl,e)&&(wr[e]=Tl[e]);if(typeof window<"u"){const e=window.hotkeys;wr.noConflict=t=>(t&&window.hotkeys===wr&&(window.hotkeys=e),wr),window.hotkeys=wr}wr.filter=()=>!0;function MR(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=D.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>t(f,d))},i),l=()=>{wr.unbind(e,s)};D.useEffect(()=>(wr(e,r,s),l),[e,r,s])}const FR=e=>{const t=D.useRef(null);return D.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function LR(e){const t=D.useRef();return D.useEffect(()=>{t.current=e},[e]),t.current}function $R(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e},[e]),t}function DR(e){const t=D.useRef(null);return D.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function kR(e){const[t,r]=D.useState(e),i=(s,l)=>{r(f=>({...f,features:{...f.features,[s]:{enabled:l}}}))},a=D.useCallback((...s)=>s.every(l=>{var f;return(f=t.features[l])==null?void 0:f.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const $m=D.createContext(""),NR=e=>$.jsx($m.Provider,{value:e.value,children:e.children}),jR=()=>{const e=D.useContext($m);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function WR(e){const[t,r]=D.useState(e),i=D.useMemo(()=>zR(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function zR(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${tt.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const UR=(e,t,r={})=>{r={timeout:200,...r};const i=D.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return D.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function Yr(e){return typeof e=="function"}function Dm(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Cl=Dm(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
201
151
|
`+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
|
|
202
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Rc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var tu=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=vc(l),d=c.next();!d.done;d=c.next()){var p=d.value;p.remove(this)}}catch(g){t={error:g}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(En(h))try{h()}catch(g){s=g instanceof rc?g.errors:[g]}var w=this._finalizers;if(w){this._finalizers=null;try{for(var S=vc(w),v=S.next();!v.done;v=S.next()){var _=v.value;try{bv(_)}catch(g){s=s??[],g instanceof rc?s=qo(qo([],Is(s)),Is(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{v&&!v.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}}if(s)throw new rc(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)bv(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Rc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Rc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),xg=tu.EMPTY;function Og(e){return e instanceof tu||e&&"closed"in e&&En(e.remove)&&En(e.add)&&En(e.unsubscribe)}function bv(e){En(e)?e():e.unsubscribe()}var Ag={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Cc={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=Cc.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,qo([e,t],Is(r))):setTimeout.apply(void 0,qo([e,t],Is(r)))},clearTimeout:function(e){var t=Cc.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function S2(e){Cc.setTimeout(function(){throw e})}function Sv(){}function Os(e){e()}var Tg=function(e){Zs(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Og(r)&&r.add(i)):i.destination=O2,i}return t.create=function(r,i,a){return new Pc(r,i,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tu),E2=Function.prototype.bind;function nc(e,t){return E2.call(e,t)}var _2=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){gs(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){gs(i)}else gs(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){gs(r)}},e}(),Pc=function(e){Zs(t,e);function t(r,i,a){var s=e.call(this)||this,l;if(En(r)||!r)l={next:r??void 0,error:i??void 0,complete:a??void 0};else{var c;s&&Ag.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return s.unsubscribe()},l={next:r.next&&nc(r.next,c),error:r.error&&nc(r.error,c),complete:r.complete&&nc(r.complete,c)}):l=r}return s.destination=new _2(l),s}return t}(Tg);function gs(e){S2(e)}function x2(e){throw e}var O2={closed:!0,next:Sv,error:x2,complete:Sv},A2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function T2(e){return e}function R2(e){return e.length===0?T2:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var Ev=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var a=this,s=P2(t)?t:new Pc(t,r,i);return Os(function(){var l=a,c=l.operator,d=l.source;s.add(c?c.call(s,d):d?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=_v(r),new r(function(a,s){var l=new Pc({next:function(c){try{t(c)}catch(d){s(d),l.unsubscribe()}},error:s,complete:a});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[A2]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return R2(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=_v(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function _v(e){var t;return(t=e??Ag.Promise)!==null&&t!==void 0?t:Promise}function C2(e){return e&&En(e.next)&&En(e.error)&&En(e.complete)}function P2(e){return e&&e instanceof Tg||C2(e)&&Og(e)}var I2=_g(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pi=function(e){Zs(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new xv(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new I2},t.prototype.next=function(r){var i=this;Os(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=vc(i.currentObservers),c=l.next();!c.done;c=l.next()){var d=c.value;d.next(r)}}catch(p){a={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Os(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Os(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?xg:(this.currentObservers=null,c.push(r),new tu(function(){i.currentObservers=null,Rc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new Ev;return r.source=this,r},t.create=function(r,i){return new xv(r,i)},t}(Ev),xv=function(e){Zs(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a:xg},t}(Pi),Rg=(e=>(e.RELOAD="reload",e))(Rg||{}),Cg=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Cg||{});const M2=new Pi,F2=new Pi,Pg=new Pi;var Ig=(e=>(e.SAVE_ALL="save-all",e))(Ig||{});const L2=new Pi;var Mg=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(Mg||{});const $2=new Pi;var Fg=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Fg||{});const D2=new Pi,cf=31;var ff=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${cf} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(ff||{});function Lg(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>cf)throw new Error(ff.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function k2(e){if(!e)return null;if(typeof e=="string")try{Lg(e)}catch(t){return t.message}}function N2(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!St.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!St.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function ru(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var df=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(df||{});const zn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Pr=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Pr||{}),Ii=(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))(Ii||{}),pf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(pf||{});const $g="roles.json",Dg="qodlyApp.json",j2="model.4DModel",kg="HTTPHandlers.json";function Ng(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Pr.MODEL;case r==="WebForm":return Pr.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===zn.METHODS):return Pr.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===zn.CLASSES):return Pr.CLASS;case e===$g:return Pr.ROLES;case e===kg:return Pr.HTTP_HANDLERS;case e===Dg:return Pr.SETTINGS;default:return Pr.TEXT}}function W2(e,t=!1){switch(e){case zn.REPORTS:case"report":return"QoDoc";case zn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case zn.CLASSES:case zn.METHODS:return t?"4qs":"4dm";default:return""}}function U2(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class jg{constructor(){wt(this,"current",Promise.resolve())}lock(){let t;const r=new Promise(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Wg(){const e=new jg;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Ug=St.curry((e,t,r)=>e&&St.get(r,e)===t),H2=St.curry((e,t,r)=>St.get(r,e)!==t),B2=St.curry((e,t)=>St.get(t,"id")!==e),z2=St.curry((e,t)=>St.get(t,"id")===e),q2=St.curry((e,t)=>St.get(t,"path")===e);function Z2(e="id",t,r){return r.findIndex(Ug(e,t))!==-1}function G2(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Hg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function K2(e){return e.type==="object"}function Bg(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function zg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Hg(e)}function Y2(e){return Bg(e)||zg(e)}function V2(e){return e.applyTo==="dataStore"}function X2(e){return e.applyTo==="dataClass"}function J2(e){return e.applyTo==="entity"}function Q2(e){return e.applyTo==="entityCollection"}function eI(e){return e.type==="entity"}function tI(e){return e.type==="entitysel"}function qg(e){return e.dataType==="array"}function Zg(e){return e.dataType==="object"}function Gg(e){return e.type==="scalar"}function rI(e){return qg(e)||Zg(e)||Gg(e)}const nI=e=>e!=null&&e.type==="entity",iI=e=>e.type==="entitysel",oI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",aI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",sI=e=>e.type==="scalar"&&e.dataType==="date";function uI(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}var Yo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Yo||{}),Kg=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Kg||{}),hf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(hf||{});const lI={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function cI(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Yo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:hf.table}},...i}}function Yg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Yo.capable,Yo.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function fI(e,t,r=!1){const i=St.isString(t)?t:Yg(t);if(!r&&Vg(e))return e;const a=Xg(e);return`//%attributes = ${i}\r
|
|
203
|
-
${a}`}function
|
|
204
|
-
`}nu.prototype.toString=function(t){return this.errors.map(hI).join("")};Object.defineProperty(nu.prototype,"valid",{get:function(){return!this.errors.length}});dt.ValidatorResultError=Ai;function Ai(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ai),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}Ai.prototype=new Error;Ai.prototype.constructor=Ai;Ai.prototype.name="Validation Error";var Ov=dt.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};Ov.prototype=Object.create(Error.prototype,{constructor:{value:Ov,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var Fc=dt.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,c){return l+Jg(c)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};Fc.prototype.resolve=function(t){return(()=>Qg(this.base,t))()};Fc.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=(()=>Qg(this.base,a||""))();var l=new Fc(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var qr=dt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};qr.regexp=qr.regex;qr.pattern=qr.regex;qr.ipv4=qr["ip-address"];dt.isFormat=function(t,r,i){if(typeof t=="string"&&qr[r]!==void 0){if(qr[r]instanceof RegExp)return qr[r].test(t);if(typeof qr[r]=="function")return qr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var Jg=dt.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};dt.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function vI(e,t,r,i){typeof r=="object"?t[i]=vf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function mI(e,t,r){t[r]=e[r]}function gI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=vf(e[i],t[i]):r[i]=t[i]}function vf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(vI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(mI.bind(null,e,i)),Object.keys(t).forEach(gI.bind(null,e,t,i))),i}dt.deepMerge=vf;dt.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function yI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}dt.encodePath=function(t){return t.map(yI).join("")};dt.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};dt.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var Qg=dt.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},mr=dt,We=mr.ValidatorResult,Zn=mr.SchemaError,mf={};mf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var Ue=mf.validators={};Ue.type=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var c=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:c,message:"is not of a type(s) "+c})}return s};function gf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var c=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!c.valid&&i instanceof Function&&i(c),c.valid}Ue.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a),l=new We(t,r,i,a);if(!Array.isArray(r.anyOf))throw new Zn("anyOf must be an array");if(!r.anyOf.some(gf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var c=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return s};Ue.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new Zn("allOf must be an array");var s=new We(t,r,i,a),l=this;return r.allOf.forEach(function(c,d){var p=l.validateSchema(t,c,i,a);if(!p.valid){var h=c.$id||c.id,w=h||c.title&&JSON.stringify(c.title)||c.$ref&&"<"+c.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:w,length:p.errors.length,valid:p},message:"does not match allOf schema "+w+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};Ue.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new Zn("oneOf must be an array");var s=new We(t,r,i,a),l=new We(t,r,i,a),c=r.oneOf.filter(gf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var w=p.$id||p.id;return w||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return c!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};Ue.if=function(t,r,i,a){if(t===void 0)return null;if(!mr.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=gf.call(this,t,i,a,null,r.if),l=new We(t,r,i,a),c;if(s){if(r.then===void 0)return;if(!mr.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');c=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(c)}else{if(r.else===void 0)return;if(!mr.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');c=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(c)}return l};function yf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}Ue.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!mr.isSchema(l))throw new Zn('Expected "propertyNames" to be a schema (object or boolean)');for(var c in t)if(yf(t,c)!==void 0){var d=this.validateSchema(c,l,i,a.makeChild(l));s.importErrors(d)}return s}};Ue.properties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.properties||{};for(var c in l){var d=l[c];if(d!==void 0){if(d===null)throw new Zn('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,d,i,a);var p=yf(t,c),h=this.validateSchema(p,d,i,a.makeChild(d,c));h.instance!==s.instance[c]&&(s.instance[c]=h.instance),s.importErrors(h)}}return s}};function e0(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var c=this.validateSchema(e[a],l,r,i.makeChild(l,a));c.instance!==s.instance[a]&&(s.instance[a]=c.instance),s.importErrors(c)}}Ue.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.patternProperties||{};for(var c in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new Zn('Unexpected null, expected schema in "patternProperties"');try{var w=new RegExp(p,"u")}catch{w=new RegExp(p)}if(w.test(c)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,h,i,a);var S=this.validateSchema(t[c],h,i,a.makeChild(h,c));S.instance!==s.instance[c]&&(s.instance[c]=S.instance),s.importErrors(S)}}}d&&e0.call(this,t,r,i,a,c,s)}return s}};Ue.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new We(t,r,i,a);for(var l in t)e0.call(this,t,r,i,a,l,s);return s}};Ue.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};Ue.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};Ue.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new We(t,r,i,a);return t.every(function(c,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(c,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};Ue.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!mr.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new We(t,r,i,a),c=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return c===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};Ue.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new We(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};Ue.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new We(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};Ue.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new We(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};Ue.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new We(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var t0=function(t,r,i,a,s,l){if(this.types.number(t)){var c=r[s];if(c==0)throw new Zn(s+" cannot be zero");var d=new We(t,r,i,a),p=mr.getDecimalPlaces(t),h=mr.getDecimalPlaces(c),w=Math.max(p,h),S=Math.pow(10,w);return Math.round(t*S)%Math.round(c*S)!==0&&d.addError({name:s,argument:c,message:l+JSON.stringify(c)}),d}};Ue.multipleOf=function(t,r,i,a){return t0.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};Ue.divisibleBy=function(t,r,i,a){return t0.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};Ue.required=function(t,r,i,a){var s=new We(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){yf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};Ue.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=r.pattern;try{var c=new RegExp(l,"u")}catch{c=new RegExp(l)}return t.match(c)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};Ue.format=function(t,r,i,a){if(t!==void 0){var s=new We(t,r,i,a);return!s.disableFormat&&!mr.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};Ue.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};Ue.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};Ue.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new We(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};Ue.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new We(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function wI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(mr.deepCompareStrict(e,r[i]))return!1;return!0}Ue.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new We(t,r,i,a);return t.every(wI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};Ue.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var c=r.dependencies[l],d=a.makeChild(c,l);if(typeof c=="string"&&(c=[c]),Array.isArray(c))c.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,c,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};Ue.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new Zn("enum expects an array",r);var s=new We(t,r,i,a);return r.enum.some(mr.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};Ue.const=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a);return mr.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};Ue.not=Ue.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new We(t,r,i,a),c=r.not||r.disallow;return c?(Array.isArray(c)||(c=[c]),c.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var bI=mf,wf={},ic=dt;wf.SchemaScanResult=r0;function r0(e,t){this.id=e,this.ref=t}wf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let v=ic.resolveUrl(d,p.$ref);c[v]=c[v]?c[v]+1:0;return}var h=p.$id||p.id;let w=ic.resolveUrl(d,h);var S=h?w:d;if(S){if(S.indexOf("#")<0&&(S+="#"),l[S]){if(!ic.deepCompareStrict(l[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return l[S]}l[S]=p,S[S.length-1]=="#"&&(l[S.substring(0,S.length-1)]=p)}a(S+"/items",Array.isArray(p.items)?p.items:[p.items]),a(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(S+"/additionalItems",p.additionalItems),s(S+"/properties",p.properties),i(S+"/additionalProperties",p.additionalProperties),s(S+"/definitions",p.definitions),s(S+"/patternProperties",p.patternProperties),s(S+"/dependencies",p.dependencies),a(S+"/disallow",p.disallow),a(S+"/allOf",p.allOf),a(S+"/anyOf",p.anyOf),a(S+"/oneOf",p.oneOf),i(S+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},c={};return i(t,r),new r0(l,c)};var n0=bI,Gn=dt,i0=wf.scan,o0=Gn.ValidatorResult,SI=Gn.ValidatorResultError,Vo=Gn.SchemaError,a0=Gn.SchemaContext,EI="/",Pt=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(sn),this.attributes=Object.create(n0.validators)};Pt.prototype.customFormats={};Pt.prototype.schemas=null;Pt.prototype.types=null;Pt.prototype.attributes=null;Pt.prototype.unresolvedRefs=null;Pt.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=i0(r||EI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(c){return typeof i.schemas[c]>"u"}),this.schemas[s]};Pt.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};Pt.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};Pt.prototype.setSchemas=function(t){this.schemas=t};Pt.prototype.getSchema=function(t){return this.schemas[t]};Pt.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new Vo("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=Gn.resolveUrl(i.base,s||"");if(!a){a=new a0(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var c=i0(l,r);for(var d in c.id){var p=c.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new o0(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new SI(h)}else throw new Error("Result undefined");return h};function s0(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}Pt.prototype.validateSchema=function(t,r,i,a){var s=new o0(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=Gn.deepMerge(r,this.superResolve(r.extends,a));var c=s0(r);if(c){var d=this.resolve(r,c,a),p=new a0(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var w in r)if(!n0.ignoreProperties[w]&&h.indexOf(w)<0){var S=null,v=this.attributes[w];if(v)S=v.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new Vo("Unsupported attribute: "+w,r);S&&s.importErrors(S)}if(typeof i.rewrite=="function"){var _=i.rewrite.call(this,t,r,i,a);s.instance=_}return s};Pt.prototype.schemaTraverser=function(t,r){t.schema=Gn.deepMerge(t.schema,this.superResolve(r,t.ctx))};Pt.prototype.superResolve=function(t,r){var i=s0(t);return i?this.resolve(t,i,r).subschema:t};Pt.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new Vo("no such schema <"+r+">",t);var c=Gn.objectGetPath(i.schemas[l],s.substr(1));if(c===void 0)throw new Vo("no such schema "+s+" located in <"+l+">",t);return{subschema:c,switchSchema:r}};Pt.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new Vo('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var sn=Pt.prototype.types={};sn.string=function(t){return typeof t=="string"};sn.number=function(t){return typeof t=="number"&&isFinite(t)};sn.integer=function(t){return typeof t=="number"&&t%1===0};sn.boolean=function(t){return typeof t=="boolean"};sn.array=function(t){return Array.isArray(t)};sn.null=function(t){return t===null};sn.date=function(t){return t instanceof Date};sn.any=function(t){return!0};sn.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var _I=Pt,u0;u0=_I;dt.ValidatorResult;dt.ValidatorResultError;dt.ValidationError;dt.SchemaError;var xI=l0;function l0(e,t,r){e instanceof RegExp&&(e=Av(e,r)),t instanceof RegExp&&(t=Av(t,r));var i=c0(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function Av(e,t){var r=t.match(e);return r?r[0]:null}l0.range=c0;function c0(e,t,r){var i,a,s,l,c,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!c;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?c=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(c=[s,l])}return c}var f0=xI,OI=RI,d0="\0SLASH"+Math.random()+"\0",p0="\0OPEN"+Math.random()+"\0",bf="\0CLOSE"+Math.random()+"\0",h0="\0COMMA"+Math.random()+"\0",v0="\0PERIOD"+Math.random()+"\0";function oc(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function AI(e){return e.split("\\\\").join(d0).split("\\{").join(p0).split("\\}").join(bf).split("\\,").join(h0).split("\\.").join(v0)}function TI(e){return e.split(d0).join("\\").split(p0).join("{").split(bf).join("}").split(h0).join(",").split(v0).join(".")}function m0(e){if(!e)return[""];var t=[],r=f0("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var c=m0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function RI(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Do(AI(e),!0).map(TI)):[]}function CI(e){return"{"+e+"}"}function PI(e){return/^-?0\d/.test(e)}function II(e,t){return e<=t}function MI(e,t){return e>=t}function Do(e,t){var r=[],i=f0("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?Do(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var c=a+"{"+i.body+"}"+s[l];r.push(c)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,w=i.body.indexOf(",")>=0;if(!h&&!w)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+bf+i.post,Do(e)):[e];var S;if(h)S=i.body.split(/\.\./);else if(S=m0(i.body),S.length===1&&(S=Do(S[0],!1).map(CI),S.length===1))return s.map(function(ee){return i.pre+S[0]+ee});var v;if(h){var _=oc(S[0]),g=oc(S[1]),x=Math.max(S[0].length,S[1].length),C=S.length==3?Math.abs(oc(S[2])):1,P=II,T=g<_;T&&(C*=-1,P=MI);var $=S.some(PI);v=[];for(var A=_;P(A,g);A+=C){var D;if(p)D=String.fromCharCode(A),D==="\\"&&(D="");else if(D=String(A),$){var H=x-D.length;if(H>0){var j=new Array(H+1).join("0");A<0?D="-"+j+D.slice(1):D=j+D}}v.push(D)}}else{v=[];for(var V=0;V<S.length;V++)v.push.apply(v,Do(S[V],!1))}for(var V=0;V<v.length;V++)for(var l=0;l<s.length;l++){var c=a+v[V]+s[l];(!t||h||c)&&r.push(c)}}return r}const FI=$c(OI),LI=1024*64,Ns=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>LI)throw new TypeError("pattern is too long")},$I={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Lo=e=>e.replace(/[[\]\\-]/g,"\\$&"),DI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tv=e=>e.join(""),kI=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,d=!1,p=!1,h=r,w="";e:for(;s<e.length;){const g=e.charAt(s);if((g==="!"||g==="^")&&s===r+1){p=!0,s++;continue}if(g==="]"&&l&&!d){h=s+1;break}if(l=!0,g==="\\"&&!d){d=!0,s++;continue}if(g==="["&&!d){for(const[x,[C,P,T]]of Object.entries($I))if(e.startsWith(x,s)){if(w)return["$.",!1,e.length-r,!0];s+=x.length,T?a.push(C):i.push(C),c=c||P;continue e}}if(d=!1,w){g>w?i.push(Lo(w)+"-"+Lo(g)):g===w&&i.push(Lo(g)),w="",s++;continue}if(e.startsWith("-]",s+1)){i.push(Lo(g+"-")),s+=2;continue}if(e.startsWith("-",s+1)){w=g,s+=2;continue}i.push(Lo(g)),s++}if(h<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!p){const g=i[0].length===2?i[0].slice(-1):i[0];return[DI(g),!1,h-r,!1]}const S="["+(p?"^":"")+Tv(i)+"]",v="["+(p?"":"^")+Tv(a)+"]";return[i.length&&a.length?"("+S+"|"+v+")":i.length?S:v,c,h-r,!0]},ko=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),NI=new Set(["!","?","+","*","@"]),Rv=e=>NI.has(e),jI="(?!(?:^|/)\\.\\.?(?:$|/))",ys="(?!\\.)",WI=new Set(["[","."]),UI=new Set(["..","."]),HI=new Set("().*{}+?[]^$\\!"),BI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Sf="[^/]",Cv=Sf+"*?",Pv=Sf+"+?";var xt,Rt,Sn,it,bt,Wn,wi,Un,Xr,bi,Xo,Ws,g0,no,As,Jo,Lc,Us,y0;const Zt=class Zt{constructor(t,r,i={}){Wt(this,Ws);Wt(this,Jo);wt(this,"type");Wt(this,xt,void 0);Wt(this,Rt,void 0);Wt(this,Sn,!1);Wt(this,it,[]);Wt(this,bt,void 0);Wt(this,Wn,void 0);Wt(this,wi,void 0);Wt(this,Un,!1);Wt(this,Xr,void 0);Wt(this,bi,void 0);Wt(this,Xo,!1);this.type=t,t&>(this,Rt,!0),gt(this,bt,r),gt(this,xt,X(this,bt)?X(X(this,bt),xt):this),gt(this,Xr,X(this,xt)===this?i:X(X(this,xt),Xr)),gt(this,wi,X(this,xt)===this?[]:X(X(this,xt),wi)),t==="!"&&!X(X(this,xt),Un)&&X(this,wi).push(this),gt(this,Wn,X(this,bt)?X(X(this,bt),it).length:0)}get hasMagic(){if(X(this,Rt)!==void 0)return X(this,Rt);for(const t of X(this,it))if(typeof t!="string"&&(t.type||t.hasMagic))return gt(this,Rt,!0);return X(this,Rt)}toString(){return X(this,bi)!==void 0?X(this,bi):this.type?gt(this,bi,this.type+"("+X(this,it).map(t=>String(t)).join("|")+")"):gt(this,bi,X(this,it).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Zt&&X(r,bt)===this))throw new Error("invalid part: "+r);X(this,it).push(r)}}toJSON(){var r;const t=this.type===null?X(this,it).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...X(this,it).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===X(this,xt)||X(X(this,xt),Un)&&((r=X(this,bt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(X(this,xt)===this)return!0;if(!((r=X(this,bt))!=null&&r.isStart()))return!1;if(X(this,Wn)===0)return!0;const t=X(this,bt);for(let i=0;i<X(this,Wn);i++){const a=X(t,it)[i];if(!(a instanceof Zt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(X(this,xt)===this||((r=X(this,bt))==null?void 0:r.type)==="!")return!0;if(!((i=X(this,bt))!=null&&i.isEnd()))return!1;if(!this.type)return(a=X(this,bt))==null?void 0:a.isEnd();const t=X(this,bt)?X(X(this,bt),it).length:0;return X(this,Wn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Zt(this.type,t);for(const i of X(this,it))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Zt(null,void 0,r);return $n(a=Zt,no,As).call(a,t,i,0,r),i}toMMPattern(){if(this!==X(this,xt))return X(this,xt).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||X(this,Rt)||X(this,Xr).nocase&&!X(this,Xr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(X(this,Xr).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return X(this,Xr)}toRegExpSource(t){var d;const r=t??!!X(this,Xr).dot;if(X(this,xt)===this&&$n(this,Ws,g0).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=X(this,it).map(_=>{var T;const[g,x,C,P]=typeof _=="string"?$n(T=Zt,Us,y0).call(T,_,X(this,Rt),p):_.toRegExpSource(t);return gt(this,Rt,X(this,Rt)||C),gt(this,Sn,X(this,Sn)||P),g}).join("");let w="";if(this.isStart()&&typeof X(this,it)[0]=="string"&&!(X(this,it).length===1&&UI.has(X(this,it)[0]))){const g=WI,x=r&&g.has(h.charAt(0))||h.startsWith("\\.")&&g.has(h.charAt(2))||h.startsWith("\\.\\.")&&g.has(h.charAt(4)),C=!r&&!t&&g.has(h.charAt(0));w=x?jI:C?ys:""}let S="";return this.isEnd()&&X(X(this,xt),Un)&&((d=X(this,bt))==null?void 0:d.type)==="!"&&(S="(?:$|\\/)"),[w+h+S,ko(h),gt(this,Rt,!!X(this,Rt)),X(this,Sn)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=$n(this,Jo,Lc).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return gt(this,it,[p]),this.type=null,gt(this,Rt,void 0),[p,ko(this.toString()),!1,!1]}let l=!i||t||r||!ys?"":$n(this,Jo,Lc).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&X(this,Xo))c=(this.isStart()&&!r?ys:"")+Pv;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ys:"")+Cv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+p}return[c,ko(s),gt(this,Rt,!!X(this,Rt)),X(this,Sn)]}};xt=new WeakMap,Rt=new WeakMap,Sn=new WeakMap,it=new WeakMap,bt=new WeakMap,Wn=new WeakMap,wi=new WeakMap,Un=new WeakMap,Xr=new WeakMap,bi=new WeakMap,Xo=new WeakMap,Ws=new WeakSet,g0=function(){if(this!==X(this,xt))throw new Error("should only call on root");if(X(this,Un))return this;this.toString(),gt(this,Un,!0);let t;for(;t=X(this,wi).pop();){if(t.type!=="!")continue;let r=t,i=X(r,bt);for(;i;){for(let a=X(r,Wn)+1;!i.type&&a<X(i,it).length;a++)for(const s of X(t,it)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(X(i,it)[a])}r=i,i=X(r,bt)}}return this},no=new WeakSet,As=function(t,r,i,a){var v,_;let s=!1,l=!1,c=-1,d=!1;if(r.type===null){let g=i,x="";for(;g<t.length;){const C=t.charAt(g++);if(s||C==="\\"){s=!s,x+=C;continue}if(l){g===c+1?(C==="^"||C==="!")&&(d=!0):C==="]"&&!(g===c+2&&d)&&(l=!1),x+=C;continue}else if(C==="["){l=!0,c=g,d=!1,x+=C;continue}if(!a.noext&&Rv(C)&&t.charAt(g)==="("){r.push(x),x="";const P=new Zt(C,r);g=$n(v=Zt,no,As).call(v,t,P,g,a),r.push(P);continue}x+=C}return r.push(x),g}let p=i+1,h=new Zt(null,r);const w=[];let S="";for(;p<t.length;){const g=t.charAt(p++);if(s||g==="\\"){s=!s,S+=g;continue}if(l){p===c+1?(g==="^"||g==="!")&&(d=!0):g==="]"&&!(p===c+2&&d)&&(l=!1),S+=g;continue}else if(g==="["){l=!0,c=p,d=!1,S+=g;continue}if(Rv(g)&&t.charAt(p)==="("){h.push(S),S="";const x=new Zt(g,h);h.push(x),p=$n(_=Zt,no,As).call(_,t,x,p,a);continue}if(g==="|"){h.push(S),S="",w.push(h),h=new Zt(null,r);continue}if(g===")")return S===""&&X(r,it).length===0&>(r,Xo,!0),h.push(S),S="",r.push(...w,h),p;S+=g}return r.type=null,gt(r,Rt,void 0),gt(r,it,[t.substring(i-1)]),p},Jo=new WeakSet,Lc=function(t){return X(this,it).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return gt(this,Sn,X(this,Sn)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Us=new WeakSet,y0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const d=t.charAt(c);if(a){a=!1,s+=(HI.has(d)?"\\":"")+d;continue}if(d==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,w,S]=kI(t,c);if(w){s+=p,l=l||h,c+=w-1,r=r||S;continue}}if(d==="*"){i&&t==="*"?s+=Pv:s+=Cv,r=!0;continue}if(d==="?"){s+=Sf,r=!0;continue}s+=BI(d)}return[s,ko(t),!!r,l]},Wt(Zt,no),Wt(Zt,Us);let js=Zt;const zI=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Kt=(e,t,r={})=>(Ns(t),!r.nocomment&&t.charAt(0)==="#"?!1:new iu(t,r).match(e)),qI=/^\*+([^+@!?\*\[\(]*)$/,ZI=e=>t=>!t.startsWith(".")&&t.endsWith(e),GI=e=>t=>t.endsWith(e),KI=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),YI=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),VI=/^\*+\.\*+$/,XI=e=>!e.startsWith(".")&&e.includes("."),JI=e=>e!=="."&&e!==".."&&e.includes("."),QI=/^\.\*+$/,eM=e=>e!=="."&&e!==".."&&e.startsWith("."),tM=/^\*+$/,rM=e=>e.length!==0&&!e.startsWith("."),nM=e=>e.length!==0&&e!=="."&&e!=="..",iM=/^\?+([^+@!?\*\[\(]*)?$/,oM=([e,t=""])=>{const r=w0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},aM=([e,t=""])=>{const r=b0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},sM=([e,t=""])=>{const r=b0([e]);return t?i=>r(i)&&i.endsWith(t):r},uM=([e,t=""])=>{const r=w0([e]);return t?i=>r(i)&&i.endsWith(t):r},w0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},b0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},S0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Iv={win32:{sep:"\\"},posix:{sep:"/"}},lM=S0==="win32"?Iv.win32.sep:Iv.posix.sep;Kt.sep=lM;const Cr=Symbol("globstar **");Kt.GLOBSTAR=Cr;const cM="[^/]",fM=cM+"*?",dM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pM="(?:(?!(?:\\/|^)\\.).)*?",hM=(e,t={})=>r=>Kt(r,e,t);Kt.filter=hM;const Rr=(e,t={})=>Object.assign({},e,t),vM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Kt;const t=Kt;return Object.assign((i,a,s={})=>t(i,a,Rr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,Rr(e,s))}static defaults(a){return t.defaults(Rr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,Rr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,Rr(e,s))}},unescape:(i,a={})=>t.unescape(i,Rr(e,a)),escape:(i,a={})=>t.escape(i,Rr(e,a)),filter:(i,a={})=>t.filter(i,Rr(e,a)),defaults:i=>t.defaults(Rr(e,i)),makeRe:(i,a={})=>t.makeRe(i,Rr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,Rr(e,a)),match:(i,a,s={})=>t.match(i,a,Rr(e,s)),sep:t.sep,GLOBSTAR:Cr})};Kt.defaults=vM;const E0=(e,t={})=>(Ns(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:FI(e));Kt.braceExpand=E0;const mM=(e,t={})=>new iu(e,t).makeRe();Kt.makeRe=mM;const gM=(e,t,r={})=>{const i=new iu(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Kt.match=gM;const Mv=/[?*]|[+@!]\(.*?\)|\[|\]/,yM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class iu{constructor(t,r={}){wt(this,"options");wt(this,"set");wt(this,"pattern");wt(this,"windowsPathsNoEscape");wt(this,"nonegate");wt(this,"negate");wt(this,"comment");wt(this,"empty");wt(this,"preserveMultipleSlashes");wt(this,"partial");wt(this,"globSet");wt(this,"globParts");wt(this,"nocase");wt(this,"isWindows");wt(this,"platform");wt(this,"windowsNoMagicRoot");wt(this,"regexp");Ns(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||S0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Mv.test(s[2]))&&!Mv.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let c=i[a+1];const d=i[a+2],p=i[a+3];if(c!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),C=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),P=!C&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),T=x?3:g?0:void 0,$=P?3:C?0:void 0;if(typeof T=="number"&&typeof $=="number"){const[A,D]=[t[T],r[$]];A.toLowerCase()===D.toLowerCase()&&(r[$]=A,$>T?r=r.slice($):T>$&&(t=t.slice(T)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,d=t.length,p=r.length;l<d&&c<p;l++,c++){this.debug("matchOne loop");var h=r[c],w=t[l];if(this.debug(r,h,w),h===!1)return!1;if(h===Cr){this.debug("GLOBSTAR",[r,h,w]);var S=l,v=c+1;if(v===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;S<d;){var _=t[S];if(this.debug(`
|
|
205
|
-
globstar while`,t,
|
|
206
|
-
>>> no match, partial?`,t,S,r,v),S===d))}let g;if(typeof h=="string"?(g=w===h,this.debug("string match",h,w,g)):(g=h.test(w),this.debug("pattern match",h,w,g)),!g)return!1}if(l===d&&c===p)return!0;if(l===d)return i;if(c===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return E0(this.pattern,this.options)}parse(t){Ns(t);const r=this.options;if(t==="**")return Cr;if(t==="")return"";let i,a=null;(i=t.match(tM))?a=r.dot?nM:rM:(i=t.match(qI))?a=(r.nocase?r.dot?YI:KI:r.dot?GI:ZI)(i[1]):(i=t.match(iM))?a=(r.nocase?r.dot?aM:oM:r.dot?sM:uM)(i):(i=t.match(VI))?a=r.dot?JI:XI:(i=t.match(QI))&&(a=eM);const s=js.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?fM:r.dot?dM:pM,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const w of h.flags.split(""))a.add(w);return typeof h=="string"?yM(h):h===Cr?Cr:h._src});return p.forEach((h,w)=>{const S=p[w+1],v=p[w-1];h!==Cr||v===Cr||(v===void 0?S!==void 0&&S!==Cr?p[w+1]="(?:\\/|"+i+"\\/)?"+S:p[w]=i:S===void 0?p[w-1]=v+"(?:\\/|"+i+")?":S!==Cr&&(p[w-1]=v+"(?:\\/|\\/"+i+"\\/)"+S,p[w+1]=Cr))}),p.filter(h=>h!==Cr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const d=s[c];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Kt.defaults(t).Minimatch}}Kt.AST=js;Kt.Minimatch=iu;Kt.escape=zI;Kt.unescape=ko;const Ef="/$shared",wM={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function _0(e){const t=Object.entries(wM).find(([r])=>Kt(e,r));return t==null?void 0:t[1]}function _f(e){var i;const t=(i=_0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Ef}/`,"Shared/");xf({name:r,content:t,asText:typeof t=="string"})}function ou({path:e,createIfNotExists:t=!1}){const r=`${Ef}/${e}`;return Ye(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=_0(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new u0().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(bM(i)&&t){const a=SM(i,e);Pg.next({message:a,kind:"warning"}),_f(r)}throw i})}function bM(e){var t,r;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404&&((r=e.response.headers.get("Content-Type"))==null?void 0:r.startsWith("application/json"))||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function SM(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function EM(e){return Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function _M(e){return Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const x0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:pf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function xM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Ye(Ot,{method:"POST",body:JSON.stringify({verb:Ii.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),x0()}}async function O0(e){return await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function OM(...e){return(await Promise.all(e.map(i=>O0({root:i,verb:Ii.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function AM(e,t={}){const{sanitize:r=!0}=t;return Ye(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:St.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=Kc.generate();a.set(s,p),s=p}return[s,l,c]}).reduce((s,[l,c,d])=>{var p;return c.nodes&&(c.nodes=c.nodes.map(h=>a.get(h)||h)),c.linkedNodes&&(c.linkedNodes=St.entries(c.linkedNodes).reduce((h,[w,S])=>({...h,[w]:a.get(S)||S}),{})),(p=c.props)!=null&&p.events&&(c.props.events=c.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...c,props:{...c.props,__originalID:d}}}},{})}})}function TM(e){return Ye(Ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Pr.METHOD,Pr.CLASS].includes(t.type)?ru(t.content):t.content}))}function RM(e){return e.type==="folder"?Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function CM(e){return e.type==="folder"?(await Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function PM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function IM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function MM(e){return(await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function FM(...e){return await Ye(Ot,{method:"POST",body:JSON.stringify({verb:Ii.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function LM(e){const t=await Ye("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function $M(){return await Ye("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function DM({name:e,path:t="",root:r="root",asText:i=!1}){return Ye(Ot,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function kM(e={}){try{return await ou({path:"shared_datasources.json",...e})}catch{return{}}}async function NM(e={}){try{return await ou({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function jM(e={}){try{return await ou({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function WM(){try{return await Ye("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function UM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const HM=Wg(),BM=async e=>{const t={verb:Ii.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return HM(async()=>(await Ye(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},xf=async e=>{const t=await Ye(Ot,{method:"POST",body:JSON.stringify({...e,verb:Ii.SET_FILE_CONTENT,root:df.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Ng(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},zM=async e=>await xf({name:"crafted_components.json",path:zn.WEBFORMS,content:e});function qM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function GM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function KM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?ru(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&_f(e.path),t})}function YM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function VM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function XM(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function JM(e){const t=VM(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=XM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function QM(e,t){const i=e.split(".").pop();try{const a=await Ye(Ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=ru(a.content);const{params:s,result:l}=JM(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var A0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(A0||{});function eF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function tF(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var T0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(T0||{}),R0=(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))(R0||{}),C0=(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))(C0||{});const rF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},nF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=Ot;exports.AppLoader=zP;exports.ControlledSwitch=hg;exports.DATASOURCE_THEMES=rF;exports.DatasourcesActions=Cg;exports.DebuggerActions=Fg;exports.DesignerRequestVerb=Ii;exports.Dialog=aO;exports.DialogBody=Zv;exports.EActivity=A0;exports.EDITOR=nF;exports.EIDENTIFIERS=R0;exports.ERROR_CODES=C0;exports.EWebFormStyleClassScope=T0;exports.EXT_API_PREFIX=fa;exports.FileFolderType=Pr;exports.FolderRootPath=zn;exports.FolderRootType=df;exports.HTTPError=Ic;exports.HTTP_HANDLERS_PATH=kg;exports.IPreemptive=Yo;exports.IPublished=Kg;exports.IPublishedRestScope=hf;exports.IdentityProvider=m2;exports.Incase=JA;exports.IndentLines=Sm;exports.LogoSVG=vg;exports.LspActions=Mg;exports.MAX_FILE_NAME_LENGTH=cf;exports.MODEL_TAB_PATH=j2;exports.Modal=ZP;exports.ModalCloseReason=eo;exports.ModalColor=_i;exports.ModalIcons=Ac;exports.ModalType=lf;exports.Mutex=jg;exports.NameError=ff;exports.Overlay=qv;exports.Portal=Lv;exports.PublishOptions=lI;exports.ROLES_TAB_PATH=$g;exports.RemoteDebuggerMode=pf;exports.SETTINGS_TAB_PATH=Dg;exports.SHARED_API_PREFIX=Ef;exports.Switcher=Em;exports.TabEventsActions=Ig;exports.Tip=ZC;exports.TipsProvider=zC;exports.Toast=yA;exports.Tooltip=HP;exports.Tree=XA;exports.TreeIcon=mm;exports.TreeNode=Yc;exports.WebformActions=Rg;exports._isArrayDatasource=oI;exports._isObjectDatasource=aI;exports.addAttributesToContent=fI;exports.addFolder=PM;exports.by=Ug;exports.byId=z2;exports.byPath=q2;exports.checkUpdates=EM;exports.createFolder=qM;exports.datasourcesSubject=M2;exports.debuggerSubject=D2;exports.dropFile=CM;exports.dropFolder=MM;exports.exists=Z2;exports.extractWebformName=U2;exports.generateUUID=dI;exports.getAppSettings=xM;exports.getCatalog=$M;exports.getDatasourceId=G2;exports.getDefaultAppSettings=x0;exports.getFile=TM;exports.getFileContent=DM;exports.getFileExtentionFromType=W2;exports.getFilesInfo=FM;exports.getFolder=O0;exports.getFolders=OM;exports.getFunctionContent=QM;exports.getMonacoTheme=UM;exports.getNodeInfo=KM;exports.getSavedConditions=jM;exports.getSharedCSS=NM;exports.getSharedDatasources=kM;exports.getSharedResource=ou;exports.getTypeFromExtension=Ng;exports.getUserPrivileges=WM;exports.getWebForm=AM;exports.hasAttributesString=Vg;exports.http=Ye;exports.installUpdates=_M;exports.isArrayDatasource=qg;exports.isDataClassMethod=X2;exports.isDataStoreMethod=V2;exports.isDateDatasource=sI;exports.isEntity=nI;exports.isEntityDatasource=eI;exports.isEntityMethod=J2;exports.isEntitySelection=iI;exports.isEntitySelectionDatasource=tI;exports.isEntitySelectionMethod=Q2;exports.isObjectAttribute=K2;exports.isObjectDatasource=Zg;exports.isRelatedAttribute=Y2;exports.isRelatedEntitiesAttribute=Bg;exports.isRelatedEntityAttribute=zg;exports.isScalarDatasource=Gg;exports.isSimpleAttribute=Hg;exports.isSimpleDatasource=rI;exports.loadDS=uI;exports.log=eF;exports.login=LM;exports.lspSubject=$2;exports.moveItem=GM;exports.outBy=H2;exports.outById=B2;exports.parseAttributes=cI;exports.queue=Wg;exports.removeAttributesString=Xg;exports.removeItem=ZM;exports.renameFile=RM;exports.renameFolder=IM;exports.sanitizeContent=ru;exports.saveContent=YM;exports.setCraftedComponents=zM;exports.setFileContent=xf;exports.setSharedSources=BM;exports.stringifyAttributes=Yg;exports.tabEventsSubject=L2;exports.toastSubject=Pg;exports.trackEvent=tF;exports.transformDates=pI;exports.tryCreateSharedResource=_f;exports.useDidMountEffect=YP;exports.useDoubleClick=b2;exports.useFeatureFlags=v2;exports.useForwardedRef=h2;exports.useHotkeys=c2;exports.useIdentity=g2;exports.useOutsideClick=f2;exports.usePrevious=d2;exports.useStateObject=y2;exports.useStateRef=p2;exports.useTip=rg;exports.validateName=Lg;exports.validateServerSide=k2;exports.validateValue=N2;exports.webformSubject=F2;
|
|
152
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Ql(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ys=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=Nl(l),d=f.next();!d.done;d=f.next()){var p=d.value;p.remove(this)}}catch(y){t={error:y}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(Yr(h))try{h()}catch(y){s=y instanceof Cl?y.errors:[y]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var v=Nl(b),w=v.next();!w.done;w=v.next()){var E=w.value;try{jh(E)}catch(y){s=s??[],y instanceof Cl?s=Wl(Wl([],jl(s)),jl(y.errors)):s.push(y)}}}catch(y){i={error:y}}finally{try{w&&!w.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}if(s)throw new Cl(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)jh(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ql(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ql(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),km=ys.EMPTY;function Nm(e){return e instanceof ys||e&&"closed"in e&&Yr(e.remove)&&Yr(e.add)&&Yr(e.unsubscribe)}function jh(e){Yr(e)?e():e.unsubscribe()}var BR={Promise:void 0},HR={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Wl([e,t],jl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function qR(e){HR.setTimeout(function(){throw e})}function Wh(){}function Ha(e){e()}var jm=function(e){ls(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Nm(r)&&r.add(i)):i.destination=KR,i}return t.create=function(r,i,a){return new ef(r,i,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ys),ZR=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Da(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Da(i)}else Da(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Da(r)}},e}(),ef=function(e){ls(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Yr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new ZR(l),s}return t}(jm);function Da(e){qR(e)}function GR(e){throw e}var KR={closed:!0,next:Wh,error:GR,complete:Wh},YR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function VR(e){return e}function XR(e){return e.length===0?VR:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var zh=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var a=this,s=QR(t)?t:new ef(t,r,i);return Ha(function(){var l=a,f=l.operator,d=l.source;s.add(f?f.call(s,d):d?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Uh(r),new r(function(a,s){var l=new ef({next:function(f){try{t(f)}catch(d){s(d),l.unsubscribe()}},error:s,complete:a});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[YR]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return XR(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Uh(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function Uh(e){var t;return(t=e??BR.Promise)!==null&&t!==void 0?t:Promise}function JR(e){return e&&Yr(e.next)&&Yr(e.error)&&Yr(e.complete)}function QR(e){return e&&e instanceof jm||JR(e)&&Nm(e)}var eI=Dm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vn=function(e){ls(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Bh(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new eI},t.prototype.next=function(r){var i=this;Ha(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=Nl(i.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(r)}}catch(p){a={error:p}}finally{try{f&&!f.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Ha(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ha(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,f=a.observers;return s||l?km:(this.currentObservers=null,f.push(r),new ys(function(){i.currentObservers=null,Ql(f,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new zh;return r.source=this,r},t.create=function(r,i){return new Bh(r,i)},t}(zh),Bh=function(e){ls(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a:km},t}(Vn),Wm=(e=>(e.RELOAD="reload",e))(Wm||{}),zm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(zm||{});const tI=new Vn,rI=new Vn,Um=new Vn;var Bm=(e=>(e.SAVE_ALL="save-all",e))(Bm||{});const nI=new Vn;var Hm=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(Hm||{});const iI=new Vn;var qm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(qm||{});const oI=new Vn,Mf=31;var Ff=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Mf} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Ff||{});function Zm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Mf)throw new Error(Ff.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function aI(e){if(!e)return null;if(typeof e=="string")try{Zm(e)}catch(t){return t.message}}function sI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!tt.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!tt.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function ws(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const wn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ur=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ur||{}),Xn=(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))(Xn||{}),$f=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))($f||{});const Gm="roles.json",Km="qodlyApp.json",uI="model.4DModel",Ym="HTTPHandlers.json";function Vm(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ur.MODEL;case r==="WebForm":return ur.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===wn.METHODS):return ur.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wn.CLASSES):return ur.CLASS;case e===Gm:return ur.ROLES;case e===Ym:return ur.HTTP_HANDLERS;case e===Km:return ur.SETTINGS;default:return ur.TEXT}}function lI(e,t=!1){switch(e){case wn.REPORTS:case"report":return"QoDoc";case wn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wn.CLASSES:case wn.METHODS:return t?"4qs":"4dm";default:return""}}function fI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Xm{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Jm(){const e=new Xm;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Qm=tt.curry((e,t,r)=>e&&tt.get(r,e)===t),cI=tt.curry((e,t,r)=>tt.get(r,e)!==t),dI=tt.curry((e,t)=>tt.get(t,"id")!==e),pI=tt.curry((e,t)=>tt.get(t,"id")===e),hI=tt.curry((e,t)=>tt.get(t,"path")===e);function vI(e="id",t,r){return r.findIndex(Qm(e,t))!==-1}function mI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function eg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function gI(e){return e.type==="object"}function tg(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function rg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!eg(e)}function yI(e){return tg(e)||rg(e)}function wI(e){return e.applyTo==="dataStore"}function bI(e){return e.applyTo==="dataClass"}function SI(e){return e.applyTo==="entity"}function EI(e){return e.applyTo==="entityCollection"}function xI(e){return e.type==="entity"}function _I(e){return e.type==="entitysel"}function ng(e){return e.dataType==="array"}function ig(e){return e.dataType==="object"}function og(e){return e.type==="scalar"}function OI(e){return ng(e)||ig(e)||og(e)}const AI=e=>e!=null&&e.type==="entity",TI=e=>e.type==="entitysel",CI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",PI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",RI=e=>e.type==="scalar"&&e.dataType==="date";function II(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}var fo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(fo||{}),ag=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(ag||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const MI={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function FI(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:fo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Df.table}},...i}}function sg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[fo.capable,fo.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function LI(e,t,r=!1){const i=tt.isString(t)?t:sg(t);if(!r&&ug(e))return e;const a=lg(e);return`//%attributes = ${i}\r
|
|
153
|
+
${a}`}function ug(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function lg(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const $I=()=>gf.uuid().replaceAll("-","").toUpperCase(),at="/rest/$designer",To="/rest/$designer-ext";function DI(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class tf extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function De(e,t){const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const s=await r.json();a=new tf(e,r,s)}catch{a=new tf(e,r)}throw a.log(),a}return await r.json()}var Ye={},rf=Ye.ValidationError=function(t,r,i,a,s,l){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(d,p){return d+fg(p)},"instance")):a!==void 0&&(this.property=a),t&&(this.message=t),i){var f=i.$id||i.id;this.schema=f||i}r!==void 0&&(this.instance=r),this.name=s,this.argument=l,this.stack=this.toString()};rf.prototype.toString=function(){return this.property+" "+this.message};var bs=Ye.ValidatorResult=function(t,r,i,a){this.instance=t,this.schema=r,this.options=i,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=i&&i.throwError,this.throwFirst=i&&i.throwFirst,this.throwAll=i&&i.throwAll,this.disableFormat=i&&i.disableFormat===!0};bs.prototype.addError=function(t){var r;if(typeof t=="string")r=new rf(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");r=new rf(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(r),this.throwFirst)throw new Zn(this);if(this.throwError)throw r;return r};bs.prototype.importErrors=function(t){typeof t=="string"||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))};function kI(e,t){return t+": "+e.toString()+`
|
|
154
|
+
`}bs.prototype.toString=function(t){return this.errors.map(kI).join("")};Object.defineProperty(bs.prototype,"valid",{get:function(){return!this.errors.length}});Ye.ValidatorResultError=Zn;function Zn(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Zn),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}Zn.prototype=new Error;Zn.prototype.constructor=Zn;Zn.prototype.name="Validation Error";var Hh=Ye.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};Hh.prototype=Object.create(Error.prototype,{constructor:{value:Hh,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var nf=Ye.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,f){return l+fg(f)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};nf.prototype.resolve=function(t){return cg(this.base,t)};nf.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=cg(this.base,a||"");var l=new nf(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var yr=Ye.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};yr.regexp=yr.regex;yr.pattern=yr.regex;yr.ipv4=yr["ip-address"];Ye.isFormat=function(t,r,i){if(typeof t=="string"&&yr[r]!==void 0){if(yr[r]instanceof RegExp)return yr[r].test(t);if(typeof yr[r]=="function")return yr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var fg=Ye.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};Ye.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function NI(e,t,r,i){typeof r=="object"?t[i]=kf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function jI(e,t,r){t[r]=e[r]}function WI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=kf(e[i],t[i]):r[i]=t[i]}function kf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(NI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(jI.bind(null,e,i)),Object.keys(t).forEach(WI.bind(null,e,t,i))),i}Ye.deepMerge=kf;Ye.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function zI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}Ye.encodePath=function(t){return t.map(zI).join("")};Ye.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};Ye.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var cg=Ye.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},Yt=Ye,Ce=Yt.ValidatorResult,En=Yt.SchemaError,Nf={};Nf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var Pe=Nf.validators={};Pe.type=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var f=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:f,message:"is not of a type(s) "+f})}return s};function jf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var f=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!f.valid&&i instanceof Function&&i(f),f.valid}Pe.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a);if(!Array.isArray(r.anyOf))throw new En("anyOf must be an array");if(!r.anyOf.some(jf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var f=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:f,message:"is not any of "+f.join(",")})}return s};Pe.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new En("allOf must be an array");var s=new Ce(t,r,i,a),l=this;return r.allOf.forEach(function(f,d){var p=l.validateSchema(t,f,i,a);if(!p.valid){var h=f.$id||f.id,b=h||f.title&&JSON.stringify(f.title)||f.$ref&&"<"+f.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:b,length:p.errors.length,valid:p},message:"does not match allOf schema "+b+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};Pe.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new En("oneOf must be an array");var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a),f=r.oneOf.filter(jf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var b=p.$id||p.id;return b||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return f!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};Pe.if=function(t,r,i,a){if(t===void 0)return null;if(!Yt.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=jf.call(this,t,i,a,null,r.if),l=new Ce(t,r,i,a),f;if(s){if(r.then===void 0)return;if(!Yt.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');f=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(f)}else{if(r.else===void 0)return;if(!Yt.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');f=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(f)}return l};function Wf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}Pe.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!Yt.isSchema(l))throw new En('Expected "propertyNames" to be a schema (object or boolean)');for(var f in t)if(Wf(t,f)!==void 0){var d=this.validateSchema(f,l,i,a.makeChild(l));s.importErrors(d)}return s}};Pe.properties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.properties||{};for(var f in l){var d=l[f];if(d!==void 0){if(d===null)throw new En('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,d,i,a);var p=Wf(t,f),h=this.validateSchema(p,d,i,a.makeChild(d,f));h.instance!==s.instance[f]&&(s.instance[f]=h.instance),s.importErrors(h)}}return s}};function dg(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var f=this.validateSchema(e[a],l,r,i.makeChild(l,a));f.instance!==s.instance[a]&&(s.instance[a]=f.instance),s.importErrors(f)}}Pe.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.patternProperties||{};for(var f in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new En('Unexpected null, expected schema in "patternProperties"');try{var b=new RegExp(p,"u")}catch{b=new RegExp(p)}if(b.test(f)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,h,i,a);var v=this.validateSchema(t[f],h,i,a.makeChild(h,f));v.instance!==s.instance[f]&&(s.instance[f]=v.instance),s.importErrors(v)}}}d&&dg.call(this,t,r,i,a,f,s)}return s}};Pe.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new Ce(t,r,i,a);for(var l in t)dg.call(this,t,r,i,a,l,s);return s}};Pe.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};Pe.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};Pe.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new Ce(t,r,i,a);return t.every(function(f,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(f,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};Pe.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!Yt.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new Ce(t,r,i,a),f=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return f===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};Pe.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};Pe.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};Pe.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};Pe.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var pg=function(t,r,i,a,s,l){if(this.types.number(t)){var f=r[s];if(f==0)throw new En(s+" cannot be zero");var d=new Ce(t,r,i,a),p=Yt.getDecimalPlaces(t),h=Yt.getDecimalPlaces(f),b=Math.max(p,h),v=Math.pow(10,b);return Math.round(t*v)%Math.round(f*v)!==0&&d.addError({name:s,argument:f,message:l+JSON.stringify(f)}),d}};Pe.multipleOf=function(t,r,i,a){return pg.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};Pe.divisibleBy=function(t,r,i,a){return pg.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};Pe.required=function(t,r,i,a){var s=new Ce(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){Wf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};Pe.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=r.pattern;try{var f=new RegExp(l,"u")}catch{f=new RegExp(l)}return t.match(f)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};Pe.format=function(t,r,i,a){if(t!==void 0){var s=new Ce(t,r,i,a);return!s.disableFormat&&!Yt.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};Pe.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};Pe.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};Pe.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};Pe.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function UI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(Yt.deepCompareStrict(e,r[i]))return!1;return!0}Pe.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new Ce(t,r,i,a);return t.every(UI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};Pe.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var f=r.dependencies[l],d=a.makeChild(f,l);if(typeof f=="string"&&(f=[f]),Array.isArray(f))f.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,f,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};Pe.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new En("enum expects an array",r);var s=new Ce(t,r,i,a);return r.enum.some(Yt.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};Pe.const=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a);return Yt.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};Pe.not=Pe.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new Ce(t,r,i,a),f=r.not||r.disallow;return f?(Array.isArray(f)||(f=[f]),f.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var BI=Nf,zf={},Pl=Ye;zf.SchemaScanResult=hg;function hg(e,t){this.id=e,this.ref=t}zf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let w=Pl.resolveUrl(d,p.$ref);f[w]=f[w]?f[w]+1:0;return}var h=p.$id||p.id;let b=Pl.resolveUrl(d,h);var v=h?b:d;if(v){if(v.indexOf("#")<0&&(v+="#"),l[v]){if(!Pl.deepCompareStrict(l[v],p))throw new Error("Schema <"+v+"> already exists with different definition");return l[v]}l[v]=p,v[v.length-1]=="#"&&(l[v.substring(0,v.length-1)]=p)}a(v+"/items",Array.isArray(p.items)?p.items:[p.items]),a(v+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(v+"/additionalItems",p.additionalItems),s(v+"/properties",p.properties),i(v+"/additionalProperties",p.additionalProperties),s(v+"/definitions",p.definitions),s(v+"/patternProperties",p.patternProperties),s(v+"/dependencies",p.dependencies),a(v+"/disallow",p.disallow),a(v+"/allOf",p.allOf),a(v+"/anyOf",p.anyOf),a(v+"/oneOf",p.oneOf),i(v+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},f={};return i(t,r),new hg(l,f)};var vg=BI,xn=Ye,mg=zf.scan,gg=xn.ValidatorResult,HI=xn.ValidatorResultError,co=xn.SchemaError,yg=xn.SchemaContext,qI="/",ct=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(Fr),this.attributes=Object.create(vg.validators)};ct.prototype.customFormats={};ct.prototype.schemas=null;ct.prototype.types=null;ct.prototype.attributes=null;ct.prototype.unresolvedRefs=null;ct.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=mg(r||qI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(f){return typeof i.schemas[f]>"u"}),this.schemas[s]};ct.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};ct.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};ct.prototype.setSchemas=function(t){this.schemas=t};ct.prototype.getSchema=function(t){return this.schemas[t]};ct.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new co("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=xn.resolveUrl(i.base,s||"");if(!a){a=new yg(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var f=mg(l,r);for(var d in f.id){var p=f.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new gg(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new HI(h)}else throw new Error("Result undefined");return h};function wg(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}ct.prototype.validateSchema=function(t,r,i,a){var s=new gg(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=xn.deepMerge(r,this.superResolve(r.extends,a));var f=wg(r);if(f){var d=this.resolve(r,f,a),p=new yg(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var b in r)if(!vg.ignoreProperties[b]&&h.indexOf(b)<0){var v=null,w=this.attributes[b];if(w)v=w.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new co("Unsupported attribute: "+b,r);v&&s.importErrors(v)}if(typeof i.rewrite=="function"){var E=i.rewrite.call(this,t,r,i,a);s.instance=E}return s};ct.prototype.schemaTraverser=function(t,r){t.schema=xn.deepMerge(t.schema,this.superResolve(r,t.ctx))};ct.prototype.superResolve=function(t,r){var i=wg(t);return i?this.resolve(t,i,r).subschema:t};ct.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new co("no such schema <"+r+">",t);var f=xn.objectGetPath(i.schemas[l],s.substr(1));if(f===void 0)throw new co("no such schema "+s+" located in <"+l+">",t);return{subschema:f,switchSchema:r}};ct.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new co('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var Fr=ct.prototype.types={};Fr.string=function(t){return typeof t=="string"};Fr.number=function(t){return typeof t=="number"&&isFinite(t)};Fr.integer=function(t){return typeof t=="number"&&t%1===0};Fr.boolean=function(t){return typeof t=="boolean"};Fr.array=function(t){return Array.isArray(t)};Fr.null=function(t){return t===null};Fr.date=function(t){return t instanceof Date};Fr.any=function(t){return!0};Fr.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var ZI=ct,bg;bg=ZI;Ye.ValidatorResult;Ye.ValidatorResultError;Ye.ValidationError;Ye.SchemaError;var GI=Sg;function Sg(e,t,r){e instanceof RegExp&&(e=qh(e,r)),t instanceof RegExp&&(t=qh(t,r));var i=Eg(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function qh(e,t){var r=t.match(e);return r?r[0]:null}Sg.range=Eg;function Eg(e,t,r){var i,a,s,l,f,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!f;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?f=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(f=[s,l])}return f}var xg=GI,KI=XI,_g="\0SLASH"+Math.random()+"\0",Og="\0OPEN"+Math.random()+"\0",Uf="\0CLOSE"+Math.random()+"\0",Ag="\0COMMA"+Math.random()+"\0",Tg="\0PERIOD"+Math.random()+"\0";function Rl(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function YI(e){return e.split("\\\\").join(_g).split("\\{").join(Og).split("\\}").join(Uf).split("\\,").join(Ag).split("\\.").join(Tg)}function VI(e){return e.split(_g).join("\\").split(Og).join("{").split(Uf).join("}").split(Ag).join(",").split(Tg).join(".")}function Cg(e){if(!e)return[""];var t=[],r=xg("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var f=Cg(s);return s.length&&(l[l.length-1]+=f.shift(),l.push.apply(l,f)),t.push.apply(t,l),t}function XI(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Yi(YI(e),!0).map(VI)):[]}function JI(e){return"{"+e+"}"}function QI(e){return/^-?0\d/.test(e)}function eM(e,t){return e<=t}function tM(e,t){return e>=t}function Yi(e,t){var r=[],i=xg("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?Yi(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var f=a+"{"+i.body+"}"+s[l];r.push(f)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,b=i.body.indexOf(",")>=0;if(!h&&!b)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+Uf+i.post,Yi(e)):[e];var v;if(h)v=i.body.split(/\.\./);else if(v=Cg(i.body),v.length===1&&(v=Yi(v[0],!1).map(JI),v.length===1))return s.map(function(V){return i.pre+v[0]+V});var w;if(h){var E=Rl(v[0]),y=Rl(v[1]),x=Math.max(v[0].length,v[1].length),A=v.length==3?Math.abs(Rl(v[2])):1,I=eM,P=y<E;P&&(A*=-1,I=tM);var F=v.some(QI);w=[];for(var O=E;I(O,y);O+=A){var L;if(p)L=String.fromCharCode(O),L==="\\"&&(L="");else if(L=String(O),F){var U=x-L.length;if(U>0){var z=new Array(U+1).join("0");O<0?L="-"+z+L.slice(1):L=z+L}}w.push(L)}}else{w=[];for(var q=0;q<v.length;q++)w.push.apply(w,Yi(v[q],!1))}for(var q=0;q<w.length;q++)for(var l=0;l<s.length;l++){var f=a+w[q]+s[l];(!t||h||f)&&r.push(f)}}return r}const rM=pf(KI),nM=1024*64,rs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>nM)throw new TypeError("pattern is too long")},iM={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Gi=e=>e.replace(/[[\]\\-]/g,"\\$&"),oM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zh=e=>e.join(""),aM=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,f=!1,d=!1,p=!1,h=r,b="";e:for(;s<e.length;){const y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){p=!0,s++;continue}if(y==="]"&&l&&!d){h=s+1;break}if(l=!0,y==="\\"&&!d){d=!0,s++;continue}if(y==="["&&!d){for(const[x,[A,I,P]]of Object.entries(iM))if(e.startsWith(x,s)){if(b)return["$.",!1,e.length-r,!0];s+=x.length,P?a.push(A):i.push(A),f=f||I;continue e}}if(d=!1,b){y>b?i.push(Gi(b)+"-"+Gi(y)):y===b&&i.push(Gi(y)),b="",s++;continue}if(e.startsWith("-]",s+1)){i.push(Gi(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){b=y,s+=2;continue}i.push(Gi(y)),s++}if(h<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!p){const y=i[0].length===2?i[0].slice(-1):i[0];return[oM(y),!1,h-r,!1]}const v="["+(p?"^":"")+Zh(i)+"]",w="["+(p?"":"^")+Zh(a)+"]";return[i.length&&a.length?"("+v+"|"+w+")":i.length?v:w,f,h-r,!0]},Vi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),sM=new Set(["!","?","+","*","@"]),Gh=e=>sM.has(e),uM="(?!(?:^|/)\\.\\.?(?:$|/))",Il="(?!\\.)",lM=new Set(["[","."]),fM=new Set(["..","."]),cM=new Set("().*{}+?[]^$\\!"),dM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bf="[^/]",Kh=Bf+"*?",Yh=Bf+"+?";var ot,lt,Kr,Ue,et,vn,Wn,mn,_r,zn,po,Gn,Pg,bn,qa,of,Rg;const Ft=class Ft{constructor(t,r,i={}){Nt(this,Gn);it(this,"type");Nt(this,ot);Nt(this,lt);Nt(this,Kr,!1);Nt(this,Ue,[]);Nt(this,et);Nt(this,vn);Nt(this,Wn);Nt(this,mn,!1);Nt(this,_r);Nt(this,zn);Nt(this,po,!1);this.type=t,t&&Je(this,lt,!0),Je(this,et,r),Je(this,ot,Z(this,et)?Z(Z(this,et),ot):this),Je(this,_r,Z(this,ot)===this?i:Z(Z(this,ot),_r)),Je(this,Wn,Z(this,ot)===this?[]:Z(Z(this,ot),Wn)),t==="!"&&!Z(Z(this,ot),mn)&&Z(this,Wn).push(this),Je(this,vn,Z(this,et)?Z(Z(this,et),Ue).length:0)}get hasMagic(){if(Z(this,lt)!==void 0)return Z(this,lt);for(const t of Z(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Je(this,lt,!0);return Z(this,lt)}toString(){return Z(this,zn)!==void 0?Z(this,zn):this.type?Je(this,zn,this.type+"("+Z(this,Ue).map(t=>String(t)).join("|")+")"):Je(this,zn,Z(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Ft&&Z(r,et)===this))throw new Error("invalid part: "+r);Z(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?Z(this,Ue).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Z(this,Ue).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Z(this,ot)||Z(Z(this,ot),mn)&&((r=Z(this,et))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Z(this,ot)===this)return!0;if(!((r=Z(this,et))!=null&&r.isStart()))return!1;if(Z(this,vn)===0)return!0;const t=Z(this,et);for(let i=0;i<Z(this,vn);i++){const a=Z(t,Ue)[i];if(!(a instanceof Ft&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(Z(this,ot)===this||((r=Z(this,et))==null?void 0:r.type)==="!")return!0;if(!((i=Z(this,et))!=null&&i.isEnd()))return!1;if(!this.type)return(a=Z(this,et))==null?void 0:a.isEnd();const t=Z(this,et)?Z(Z(this,et),Ue).length:0;return Z(this,vn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Ft(this.type,t);for(const i of Z(this,Ue))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Ft(null,void 0,r);return fn(a=Ft,bn,qa).call(a,t,i,0,r),i}toMMPattern(){if(this!==Z(this,ot))return Z(this,ot).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||Z(this,lt)||Z(this,_r).nocase&&!Z(this,_r).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const f=(Z(this,_r).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,f),{_src:r,_glob:t})}get options(){return Z(this,_r)}toRegExpSource(t){var d;const r=t??!!Z(this,_r).dot;if(Z(this,ot)===this&&fn(this,Gn,Pg).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=Z(this,Ue).map(E=>{var P;const[y,x,A,I]=typeof E=="string"?fn(P=Ft,bn,Rg).call(P,E,Z(this,lt),p):E.toRegExpSource(t);return Je(this,lt,Z(this,lt)||A),Je(this,Kr,Z(this,Kr)||I),y}).join("");let b="";if(this.isStart()&&typeof Z(this,Ue)[0]=="string"&&!(Z(this,Ue).length===1&&fM.has(Z(this,Ue)[0]))){const y=lM,x=r&&y.has(h.charAt(0))||h.startsWith("\\.")&&y.has(h.charAt(2))||h.startsWith("\\.\\.")&&y.has(h.charAt(4)),A=!r&&!t&&y.has(h.charAt(0));b=x?uM:A?Il:""}let v="";return this.isEnd()&&Z(Z(this,ot),mn)&&((d=Z(this,et))==null?void 0:d.type)==="!"&&(v="(?:$|\\/)"),[b+h+v,Vi(h),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=fn(this,Gn,of).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return Je(this,Ue,[p]),this.type=null,Je(this,lt,void 0),[p,Vi(this.toString()),!1,!1]}let l=!i||t||r?"":fn(this,Gn,of).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let f="";if(this.type==="!"&&Z(this,po))f=(this.isStart()&&!r?Il:"")+Yh;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Il:"")+Kh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;f=a+s+p}return[f,Vi(s),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}};ot=new WeakMap,lt=new WeakMap,Kr=new WeakMap,Ue=new WeakMap,et=new WeakMap,vn=new WeakMap,Wn=new WeakMap,mn=new WeakMap,_r=new WeakMap,zn=new WeakMap,po=new WeakMap,Gn=new WeakSet,Pg=function(){if(this!==Z(this,ot))throw new Error("should only call on root");if(Z(this,mn))return this;this.toString(),Je(this,mn,!0);let t;for(;t=Z(this,Wn).pop();){if(t.type!=="!")continue;let r=t,i=Z(r,et);for(;i;){for(let a=Z(r,vn)+1;!i.type&&a<Z(i,Ue).length;a++)for(const s of Z(t,Ue)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(Z(i,Ue)[a])}r=i,i=Z(r,et)}}return this},bn=new WeakSet,qa=function(t,r,i,a){var w,E;let s=!1,l=!1,f=-1,d=!1;if(r.type===null){let y=i,x="";for(;y<t.length;){const A=t.charAt(y++);if(s||A==="\\"){s=!s,x+=A;continue}if(l){y===f+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(y===f+2&&d)&&(l=!1),x+=A;continue}else if(A==="["){l=!0,f=y,d=!1,x+=A;continue}if(!a.noext&&Gh(A)&&t.charAt(y)==="("){r.push(x),x="";const I=new Ft(A,r);y=fn(w=Ft,bn,qa).call(w,t,I,y,a),r.push(I);continue}x+=A}return r.push(x),y}let p=i+1,h=new Ft(null,r);const b=[];let v="";for(;p<t.length;){const y=t.charAt(p++);if(s||y==="\\"){s=!s,v+=y;continue}if(l){p===f+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(p===f+2&&d)&&(l=!1),v+=y;continue}else if(y==="["){l=!0,f=p,d=!1,v+=y;continue}if(Gh(y)&&t.charAt(p)==="("){h.push(v),v="";const x=new Ft(y,h);h.push(x),p=fn(E=Ft,bn,qa).call(E,t,x,p,a);continue}if(y==="|"){h.push(v),v="",b.push(h),h=new Ft(null,r);continue}if(y===")")return v===""&&Z(r,Ue).length===0&&Je(r,po,!0),h.push(v),v="",r.push(...b,h),p;v+=y}return r.type=null,Je(r,lt,void 0),Je(r,Ue,[t.substring(i-1)]),p},of=function(t){return Z(this,Ue).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return Je(this,Kr,Z(this,Kr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Rg=function(t,r,i=!1){let a=!1,s="",l=!1;for(let f=0;f<t.length;f++){const d=t.charAt(f);if(a){a=!1,s+=(cM.has(d)?"\\":"")+d;continue}if(d==="\\"){f===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,b,v]=aM(t,f);if(b){s+=p,l=l||h,f+=b-1,r=r||v;continue}}if(d==="*"){i&&t==="*"?s+=Yh:s+=Kh,r=!0;continue}if(d==="?"){s+=Bf,r=!0;continue}s+=dM(d)}return[s,Vi(t),!!r,l]},Nt(Ft,bn);let ns=Ft;const pM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Tt=(e,t,r={})=>(rs(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ss(t,r).match(e)),hM=/^\*+([^+@!?\*\[\(]*)$/,vM=e=>t=>!t.startsWith(".")&&t.endsWith(e),mM=e=>t=>t.endsWith(e),gM=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),yM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),wM=/^\*+\.\*+$/,bM=e=>!e.startsWith(".")&&e.includes("."),SM=e=>e!=="."&&e!==".."&&e.includes("."),EM=/^\.\*+$/,xM=e=>e!=="."&&e!==".."&&e.startsWith("."),_M=/^\*+$/,OM=e=>e.length!==0&&!e.startsWith("."),AM=e=>e.length!==0&&e!=="."&&e!=="..",TM=/^\?+([^+@!?\*\[\(]*)?$/,CM=([e,t=""])=>{const r=Ig([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},PM=([e,t=""])=>{const r=Mg([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},RM=([e,t=""])=>{const r=Mg([e]);return t?i=>r(i)&&i.endsWith(t):r},IM=([e,t=""])=>{const r=Ig([e]);return t?i=>r(i)&&i.endsWith(t):r},Ig=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},Mg=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Fg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Vh={win32:{sep:"\\"},posix:{sep:"/"}},MM=Fg==="win32"?Vh.win32.sep:Vh.posix.sep;Tt.sep=MM;const sr=Symbol("globstar **");Tt.GLOBSTAR=sr;const FM="[^/]",LM=FM+"*?",$M="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",DM="(?:(?!(?:\\/|^)\\.).)*?",kM=(e,t={})=>r=>Tt(r,e,t);Tt.filter=kM;const ar=(e,t={})=>Object.assign({},e,t),NM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Tt;const t=Tt;return Object.assign((i,a,s={})=>t(i,a,ar(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,ar(e,s))}static defaults(a){return t.defaults(ar(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,ar(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,ar(e,s))}},unescape:(i,a={})=>t.unescape(i,ar(e,a)),escape:(i,a={})=>t.escape(i,ar(e,a)),filter:(i,a={})=>t.filter(i,ar(e,a)),defaults:i=>t.defaults(ar(e,i)),makeRe:(i,a={})=>t.makeRe(i,ar(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,ar(e,a)),match:(i,a,s={})=>t.match(i,a,ar(e,s)),sep:t.sep,GLOBSTAR:sr})};Tt.defaults=NM;const Lg=(e,t={})=>(rs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:rM(e));Tt.braceExpand=Lg;const jM=(e,t={})=>new Ss(e,t).makeRe();Tt.makeRe=jM;const WM=(e,t,r={})=>{const i=new Ss(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Tt.match=WM;const Xh=/[?*]|[+@!]\(.*?\)|\[|\]/,zM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Ss{constructor(t,r={}){it(this,"options");it(this,"set");it(this,"pattern");it(this,"windowsPathsNoEscape");it(this,"nonegate");it(this,"negate");it(this,"comment");it(this,"empty");it(this,"preserveMultipleSlashes");it(this,"partial");it(this,"globSet");it(this,"globParts");it(this,"nocase");it(this,"isWindows");it(this,"platform");it(this,"windowsNoMagicRoot");it(this,"regexp");rs(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Fg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Xh.test(s[2]))&&!Xh.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let f=i[a+1];const d=i[a+2],p=i[a+3];if(f!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const f=i[l];l===1&&f===""&&i[0]===""||(f==="."||f==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],f="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(f==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(f==="b")return!1;f="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(f==="a")return!1;f="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),A=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),I=!A&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),P=x?3:y?0:void 0,F=I?3:A?0:void 0;if(typeof P=="number"&&typeof F=="number"){const[O,L]=[t[P],r[F]];O.toLowerCase()===L.toLowerCase()&&(r[F]=O,F>P?r=r.slice(F):P>F&&(t=t.slice(P)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,f=0,d=t.length,p=r.length;l<d&&f<p;l++,f++){this.debug("matchOne loop");var h=r[f],b=t[l];if(this.debug(r,h,b),h===!1)return!1;if(h===sr){this.debug("GLOBSTAR",[r,h,b]);var v=l,w=f+1;if(w===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;v<d;){var E=t[v];if(this.debug(`
|
|
155
|
+
globstar while`,t,v,r,w,E),this.matchOne(t.slice(v),r.slice(w),i))return this.debug("globstar found match!",v,d,E),!0;if(E==="."||E===".."||!a.dot&&E.charAt(0)==="."){this.debug("dot detected!",t,v,r,w);break}this.debug("globstar swallow a segment, and continue"),v++}return!!(i&&(this.debug(`
|
|
156
|
+
>>> no match, partial?`,t,v,r,w),v===d))}let y;if(typeof h=="string"?(y=b===h,this.debug("string match",h,b,y)):(y=h.test(b),this.debug("pattern match",h,b,y)),!y)return!1}if(l===d&&f===p)return!0;if(l===d)return i;if(f===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return Lg(this.pattern,this.options)}parse(t){rs(t);const r=this.options;if(t==="**")return sr;if(t==="")return"";let i,a=null;(i=t.match(_M))?a=r.dot?AM:OM:(i=t.match(hM))?a=(r.nocase?r.dot?yM:gM:r.dot?mM:vM)(i[1]):(i=t.match(TM))?a=(r.nocase?r.dot?PM:CM:r.dot?RM:IM)(i):(i=t.match(wM))?a=r.dot?SM:bM:(i=t.match(EM))&&(a=xM);const s=ns.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?LM:r.dot?$M:DM,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const b of h.flags.split(""))a.add(b);return typeof h=="string"?zM(h):h===sr?sr:h._src});return p.forEach((h,b)=>{const v=p[b+1],w=p[b-1];h!==sr||w===sr||(w===void 0?v!==void 0&&v!==sr?p[b+1]="(?:\\/|"+i+"\\/)?"+v:p[b]=i:v===void 0?p[b-1]=w+"(?:\\/|"+i+")?":v!==sr&&(p[b-1]=w+"(?:\\/|\\/"+i+"\\/)"+v,p[b+1]=sr))}),p.filter(h=>h!==sr).join("/")}).join("|");const[l,f]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+f+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let f=a.length-2;!l&&f>=0;f--)l=a[f];for(let f=0;f<s.length;f++){const d=s[f];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Tt.defaults(t).Minimatch}}Tt.AST=ns;Tt.Minimatch=Ss;Tt.escape=pM;Tt.unescape=Vi;const Hf="/$shared",UM={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function $g(e){const t=Object.entries(UM).find(([r])=>Tt(e,r));return t==null?void 0:t[1]}function qf(e){var i;const t=(i=$g(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Hf}/`,"Shared/");Zf({name:r,content:t,asText:typeof t=="string"})}function Es({path:e,createIfNotExists:t=!1}){const r=`${Hf}/${e}`;return De(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=$g(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new bg().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(BM(i)&&t){const a=HM(i,e);Um.next({message:a,kind:"warning"}),qf(r)}throw i})}function BM(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function HM(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function qM(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZM(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Dg=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:$f.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function GM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),Dg()}}async function kg(e){return await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function KM(...e){return(await Promise.all(e.map(i=>kg({root:i,verb:Xn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function YM(e,t={}){const{sanitize:r=!0}=t;return De(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:tt.entries(i.components).map(([s,l])=>{const f=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=gf.generate();a.set(s,p),s=p}return[s,l,f]}).reduce((s,[l,f,d])=>{var p;return f.nodes&&(f.nodes=f.nodes.map(h=>a.get(h)||h)),f.linkedNodes&&(f.linkedNodes=tt.entries(f.linkedNodes).reduce((h,[b,v])=>({...h,[b]:a.get(v)||v}),{})),(p=f.props)!=null&&p.events&&(f.props.events=f.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...f,props:{...f.props,__originalID:d}}}},{})}})}function VM(e){return De(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ur.METHOD,ur.CLASS].includes(t.type)?ws(t.content):t.content}))}function XM(e){return e.type==="folder"?De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function JM(e){return e.type==="folder"?(await De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function QM(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function e2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function t2(e){return(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function r2(...e){return await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function n2(e){const t=await De("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function i2(){return await De("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function o2({name:e,path:t="",root:r="root",asText:i=!1}){return De(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function a2(e={}){try{return await Es({path:"shared_datasources.json",...e})}catch{return{}}}async function s2(e={}){try{return await Es({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function u2(e={}){try{return await Es({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function l2(){try{return await De("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function f2(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const c2=Jm(),d2=async e=>{const t={verb:Xn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return c2(async()=>(await De(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Zf=async e=>{const t=await De(at,{method:"POST",body:JSON.stringify({...e,verb:Xn.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Vm(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},p2=async e=>await Zf({name:"crafted_components.json",path:wn.WEBFORMS,content:e});function h2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function v2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function m2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function g2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?ws(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&qf(e.path),t})}function y2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function w2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function b2(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function S2(e){const t=w2(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=b2(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function E2(e,t){const i=e.split(".").pop();try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=ws(a.content);const{params:s,result:l}=S2(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var Ng=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Ng||{});function x2(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function _2(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var jg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(jg||{}),Wg=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(Wg||{}),zg=(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))(zg||{}),Ug=(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))(Ug||{});const O2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},A2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=vR;exports.ControlledSwitch=Tm;exports.DATASOURCE_THEMES=O2;exports.DatasourcesActions=zm;exports.DebuggerActions=qm;exports.DesignerRequestVerb=Xn;exports.Dialog=j_;exports.DialogBody=cv;exports.EActivity=Ng;exports.EDITOR=A2;exports.EIDENTIFIERS=zg;exports.ERROR_CODES=Ug;exports.EWebFormStyleClassScope=jg;exports.EXT_API_PREFIX=To;exports.FileFolderType=ur;exports.FolderRootPath=wn;exports.FolderRootType=Lf;exports.HTTPError=tf;exports.HTTP_HANDLERS_PATH=Ym;exports.IPreemptive=fo;exports.IPublished=ag;exports.IPublishedRestScope=Df;exports.IdentityProvider=NR;exports.Incase=EA;exports.IndentLines=Dv;exports.LogoSVG=Cm;exports.LspActions=Hm;exports.MAX_FILE_NAME_LENGTH=Mf;exports.MODEL_TAB_PATH=uI;exports.Modal=gR;exports.ModalCloseReason=vi;exports.ModalColor=Hn;exports.ModalIcons=Jl;exports.ModalType=Rf;exports.Mutex=Xm;exports.NameError=Ff;exports.Overlay=fv;exports.Portal=Qh;exports.PublishOptions=MI;exports.ROLES_TAB_PATH=Gm;exports.RemoteDebuggerMode=$f;exports.SETTINGS_TAB_PATH=Km;exports.SHARED_API_PREFIX=Hf;exports.SourceCodeDescriptor=Wg;exports.Switcher=kv;exports.TabEventsActions=Bm;exports.Tip=gP;exports.TipsProvider=vP;exports.Toast=HO;exports.Tooltip=pR;exports.Tree=SA;exports.TreeIcon=Iv;exports.TreeNode=yf;exports.WebformActions=Wm;exports._isArrayDatasource=CI;exports._isObjectDatasource=PI;exports.addAttributesToContent=LI;exports.addFolder=QM;exports.by=Qm;exports.byId=pI;exports.byPath=hI;exports.checkUpdates=qM;exports.createFolder=h2;exports.datasourcesSubject=tI;exports.debuggerSubject=oI;exports.dropFile=JM;exports.dropFolder=t2;exports.exists=vI;exports.extractWebformName=fI;exports.generateUUID=$I;exports.getAppSettings=GM;exports.getCatalog=i2;exports.getDatasourceId=mI;exports.getDefaultAppSettings=Dg;exports.getFile=VM;exports.getFileContent=o2;exports.getFileExtentionFromType=lI;exports.getFilesInfo=r2;exports.getFolder=kg;exports.getFolders=KM;exports.getFunctionContent=E2;exports.getMonacoTheme=f2;exports.getNodeInfo=g2;exports.getSavedConditions=u2;exports.getSharedCSS=s2;exports.getSharedDatasources=a2;exports.getSharedResource=Es;exports.getTypeFromExtension=Vm;exports.getUserPrivileges=l2;exports.getWebForm=YM;exports.hasAttributesString=ug;exports.http=De;exports.installUpdates=ZM;exports.isArrayDatasource=ng;exports.isDataClassMethod=bI;exports.isDataStoreMethod=wI;exports.isDateDatasource=RI;exports.isEntity=AI;exports.isEntityDatasource=xI;exports.isEntityMethod=SI;exports.isEntitySelection=TI;exports.isEntitySelectionDatasource=_I;exports.isEntitySelectionMethod=EI;exports.isObjectAttribute=gI;exports.isObjectDatasource=ig;exports.isRelatedAttribute=yI;exports.isRelatedEntitiesAttribute=tg;exports.isRelatedEntityAttribute=rg;exports.isScalarDatasource=og;exports.isSimpleAttribute=eg;exports.isSimpleDatasource=OI;exports.loadDS=II;exports.log=x2;exports.login=n2;exports.lspSubject=iI;exports.moveItem=m2;exports.outBy=cI;exports.outById=dI;exports.parseAttributes=FI;exports.queue=Jm;exports.removeAttributesString=lg;exports.removeItem=v2;exports.renameFile=XM;exports.renameFolder=e2;exports.sanitizeContent=ws;exports.saveContent=y2;exports.setCraftedComponents=p2;exports.setFileContent=Zf;exports.setSharedSources=d2;exports.stringifyAttributes=sg;exports.tabEventsSubject=nI;exports.toastSubject=Um;exports.trackEvent=_2;exports.transformDates=DI;exports.tryCreateSharedResource=qf;exports.useDidMountEffect=bR;exports.useDoubleClick=UR;exports.useFeatureFlags=kR;exports.useForwardedRef=DR;exports.useHotkeys=MR;exports.useIdentity=jR;exports.useOutsideClick=FR;exports.usePrevious=LR;exports.useStateObject=WR;exports.useStateRef=$R;exports.useTip=vm;exports.validateName=Zm;exports.validateServerSide=aI;exports.validateValue=sI;exports.webformSubject=rI;
|
|
207
157
|
//# sourceMappingURL=index.cjs.js.map
|