@indigoai/indigo-design-system 0.10.11 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/block-builders/atom-top-modulo/types.d.ts +1 -1
- package/dist/components/block-builders/block/types.d.ts +3 -0
- package/dist/components/blocks/mail-block/types.d.ts +2 -0
- package/dist/indigo-design-system.js +6414 -6348
- package/dist/indigo-design-system.js.map +1 -1
- package/dist/indigo-design-system.umd.cjs +44 -40
- package/dist/indigo-design-system.umd.cjs.map +1 -1
- package/dist/style.css +3 -3
- package/package.json +3 -2
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(he,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],h):(he=typeof globalThis<"u"?globalThis:he||self,h(he["@indigoai/indigo-design-system"]={},he.React,he.ReactDOM))})(this,function(he,h,On){"use strict";function Y1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ve=Y1(h),x_=Y1(On);var ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ac={exports:{}},lo={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var $c,Z1;function Dc(){if(Z1)return $c;Z1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function
|
|
5
|
+
*/var $c,Z1;function Dc(){if(Z1)return $c;Z1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){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 u=Object.getOwnPropertyNames(l).map(function(m){return l[m]});if(u.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $c=i()?Object.assign:function(s,l){for(var c,u=r(s),p,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var g in c)t.call(c,g)&&(u[g]=c[g]);if(e){p=e(c);for(var v=0;v<p.length;v++)n.call(c,p[v])&&(u[p[v]]=c[p[v]])}}return u},$c}/** @license React v17.0.2
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var X1;function E_(){if(X1)return lo;X1=1,Dc();var e=h,t=60103;if(lo.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),lo.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
12
|
+
*/var X1;function E_(){if(X1)return lo;X1=1,Dc();var e=h,t=60103;if(lo.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),lo.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,u,p){var m,g={},v=null,b=null;p!==void 0&&(v=""+p),u.key!==void 0&&(v=""+u.key),u.ref!==void 0&&(b=u.ref);for(m in u)i.call(u,m)&&!s.hasOwnProperty(m)&&(g[m]=u[m]);if(c&&c.defaultProps)for(m in u=c.defaultProps,u)g[m]===void 0&&(g[m]=u[m]);return{$$typeof:t,type:c,key:v,ref:b,props:g,_owner:r.current}}return lo.jsx=l,lo.jsxs=l,lo}var Mc={};/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var K1;function w_(){return K1||(K1=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=h,n=Dc(),r=60103,
|
|
20
|
-
`+le+j}}var
|
|
21
|
-
`),
|
|
22
|
-
`),lt=
|
|
23
|
-
`+
|
|
19
|
+
*/var K1;function w_(){return K1||(K1=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=h,n=Dc(),r=60103,i=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,u=60110,p=60112,m=60113,g=60120,v=60115,b=60116,E=60121,_=60122,w=60117,y=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;r=T("react.element"),i=T("react.portal"),e.Fragment=T("react.fragment"),s=T("react.strict_mode"),l=T("react.profiler"),c=T("react.provider"),u=T("react.context"),p=T("react.forward_ref"),m=T("react.suspense"),g=T("react.suspense_list"),v=T("react.memo"),b=T("react.lazy"),E=T("react.block"),_=T("react.server.block"),w=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),y=T("react.debug_trace_mode"),T("react.offscreen"),S=T("react.legacy_hidden")}var A=typeof Symbol=="function"&&Symbol.iterator,I="@@iterator";function M(j){if(j===null||typeof j!="object")return null;var oe=A&&j[A]||j[I];return typeof oe=="function"?oe:null}var R=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(j){{for(var oe=arguments.length,_e=new Array(oe>1?oe-1:0),Te=1;Te<oe;Te++)_e[Te-1]=arguments[Te];k("error",j,_e)}}function k(j,oe,_e){{var Te=R.ReactDebugCurrentFrame,qe=Te.getStackAddendum();qe!==""&&(oe+="%s",_e=_e.concat([qe]));var Be=_e.map(function(Me){return""+Me});Be.unshift("Warning: "+oe),Function.prototype.apply.call(console[j],console,Be)}}var Y=!1;function L(j){return!!(typeof j=="string"||typeof j=="function"||j===e.Fragment||j===l||j===y||j===s||j===m||j===g||j===S||Y||typeof j=="object"&&j!==null&&(j.$$typeof===b||j.$$typeof===v||j.$$typeof===c||j.$$typeof===u||j.$$typeof===p||j.$$typeof===w||j.$$typeof===E||j[0]===_))}function G(j,oe,_e){var Te=oe.displayName||oe.name||"";return j.displayName||(Te!==""?_e+"("+Te+")":_e)}function X(j){return j.displayName||"Context"}function N(j){if(j==null)return null;if(typeof j.tag=="number"&&D("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case e.Fragment:return"Fragment";case i:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case g:return"SuspenseList"}if(typeof j=="object")switch(j.$$typeof){case u:var oe=j;return X(oe)+".Consumer";case c:var _e=j;return X(_e._context)+".Provider";case p:return G(j,j.render,"ForwardRef");case v:return N(j.type);case E:return N(j._render);case b:{var Te=j,qe=Te._payload,Be=Te._init;try{return N(Be(qe))}catch{return null}}}return null}var K=0,B,W,J,q,U,V,ce;function de(){}de.__reactDisabledLog=!0;function fe(){{if(K===0){B=console.log,W=console.info,J=console.warn,q=console.error,U=console.group,V=console.groupCollapsed,ce=console.groupEnd;var j={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:j,log:j,warn:j,error:j,group:j,groupCollapsed:j,groupEnd:j})}K++}}function we(){{if(K--,K===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},j,{value:B}),info:n({},j,{value:W}),warn:n({},j,{value:J}),error:n({},j,{value:q}),group:n({},j,{value:U}),groupCollapsed:n({},j,{value:V}),groupEnd:n({},j,{value:ce})})}K<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=R.ReactCurrentDispatcher,le;function ge(j,oe,_e){{if(le===void 0)try{throw Error()}catch(qe){var Te=qe.stack.trim().match(/\n( *(at )?)/);le=Te&&Te[1]||""}return`
|
|
20
|
+
`+le+j}}var be=!1,pe;{var We=typeof WeakMap=="function"?WeakMap:Map;pe=new We}function ue(j,oe){if(!j||be)return"";{var _e=pe.get(j);if(_e!==void 0)return _e}var Te;be=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Be;Be=ne.current,ne.current=null,fe();try{if(oe){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(cr){Te=cr}Reflect.construct(j,[],Me)}else{try{Me.call()}catch(cr){Te=cr}j.call(Me.prototype)}}else{try{throw Error()}catch(cr){Te=cr}j()}}catch(cr){if(cr&&Te&&typeof cr.stack=="string"){for(var Pe=cr.stack.split(`
|
|
21
|
+
`),jt=Te.stack.split(`
|
|
22
|
+
`),lt=Pe.length-1,pt=jt.length-1;lt>=1&&pt>=0&&Pe[lt]!==jt[pt];)pt--;for(;lt>=1&&pt>=0;lt--,pt--)if(Pe[lt]!==jt[pt]){if(lt!==1||pt!==1)do if(lt--,pt--,pt<0||Pe[lt]!==jt[pt]){var lr=`
|
|
23
|
+
`+Pe[lt].replace(" at new "," at ");return typeof j=="function"&&pe.set(j,lr),lr}while(lt>=1&&pt>=0);break}}}finally{be=!1,ne.current=Be,we(),Error.prepareStackTrace=qe}var kr=j?j.displayName||j.name:"",Fl=kr?ge(kr):"";return typeof j=="function"&&pe.set(j,Fl),Fl}function bt(j,oe,_e){return ue(j,!1)}function Ke(j){var oe=j.prototype;return!!(oe&&oe.isReactComponent)}function wt(j,oe,_e){if(j==null)return"";if(typeof j=="function")return ue(j,Ke(j));if(typeof j=="string")return ge(j);switch(j){case m:return ge("Suspense");case g:return ge("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case p:return bt(j.render);case v:return wt(j.type,oe,_e);case E:return bt(j._render);case b:{var Te=j,qe=Te._payload,Be=Te._init;try{return wt(Be(qe),oe,_e)}catch{}}}return""}var En={},Rt=R.ReactDebugCurrentFrame;function jn(j){if(j){var oe=j._owner,_e=wt(j.type,j._source,oe?oe.type:null);Rt.setExtraStackFrame(_e)}else Rt.setExtraStackFrame(null)}function Rr(j,oe,_e,Te,qe){{var Be=Function.call.bind(Object.prototype.hasOwnProperty);for(var Me in j)if(Be(j,Me)){var Pe=void 0;try{if(typeof j[Me]!="function"){var jt=Error((Te||"React class")+": "+_e+" type `"+Me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof j[Me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw jt.name="Invariant Violation",jt}Pe=j[Me](oe,Me,Te,_e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(lt){Pe=lt}Pe&&!(Pe instanceof Error)&&(jn(qe),D("%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).",Te||"React class",_e,Me,typeof Pe),jn(null)),Pe instanceof Error&&!(Pe.message in En)&&(En[Pe.message]=!0,jn(qe),D("Failed %s type: %s",_e,Pe.message),jn(null))}}}var ft=R.ReactCurrentOwner,yt=Object.prototype.hasOwnProperty,kn={key:!0,ref:!0,__self:!0,__source:!0},_r,Qi;function Nr(j){if(yt.call(j,"ref")){var oe=Object.getOwnPropertyDescriptor(j,"ref").get;if(oe&&oe.isReactWarning)return!1}return j.ref!==void 0}function Fs(j){if(yt.call(j,"key")){var oe=Object.getOwnPropertyDescriptor(j,"key").get;if(oe&&oe.isReactWarning)return!1}return j.key!==void 0}function ln(j,oe){typeof j.ref=="string"&&ft.current}function Xt(j,oe){{var _e=function(){_r||(_r=!0,D("%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)",oe))};_e.isReactWarning=!0,Object.defineProperty(j,"key",{get:_e,configurable:!0})}}function ar(j,oe){{var _e=function(){Qi||(Qi=!0,D("%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)",oe))};_e.isReactWarning=!0,Object.defineProperty(j,"ref",{get:_e,configurable:!0})}}var gi=function(j,oe,_e,Te,qe,Be,Me){var Pe={$$typeof:r,type:j,key:oe,ref:_e,props:Me,_owner:Be};return Pe._store={},Object.defineProperty(Pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze(Pe.props),Object.freeze(Pe)),Pe};function cn(j,oe,_e,Te,qe){{var Be,Me={},Pe=null,jt=null;_e!==void 0&&(Pe=""+_e),Fs(oe)&&(Pe=""+oe.key),Nr(oe)&&(jt=oe.ref,ln(oe,qe));for(Be in oe)yt.call(oe,Be)&&!kn.hasOwnProperty(Be)&&(Me[Be]=oe[Be]);if(j&&j.defaultProps){var lt=j.defaultProps;for(Be in lt)Me[Be]===void 0&&(Me[Be]=lt[Be])}if(Pe||jt){var pt=typeof j=="function"?j.displayName||j.name||"Unknown":j;Pe&&Xt(Me,pt),jt&&ar(Me,pt)}return gi(j,Pe,jt,qe,Te,ft.current,Me)}}var xr=R.ReactCurrentOwner,mi=R.ReactDebugCurrentFrame;function Fn(j){if(j){var oe=j._owner,_e=wt(j.type,j._source,oe?oe.type:null);mi.setExtraStackFrame(_e)}else mi.setExtraStackFrame(null)}var Er;Er=!1;function Lr(j){return typeof j=="object"&&j!==null&&j.$$typeof===r}function jr(){{if(xr.current){var j=N(xr.current.type);if(j)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+j+"`."}return""}}function
|
|
25
|
+
Check the render method of \``+j+"`."}return""}}function Bs(j){return""}var Bo={};function zs(j){{var oe=jr();if(!oe){var _e=typeof j=="string"?j:j.displayName||j.name;_e&&(oe=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+he+">.")}return ae}}function Tt(j,ae){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var he=ft(ae);if(zo[he])return;zo[he]=!0;var Te="";j&&j._owner&&j._owner!==Nr.current&&(Te=" It was passed a child from "+N(j._owner.type)+"."),wn(j),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',he,Te),wn(null)}}function Mt(j,ae){{if(typeof j!="object")return;if(Array.isArray(j))for(var he=0;he<j.length;he++){var Te=j[he];Er(Te)&&Tt(Te,ae)}else if(Er(j))j._store&&(j._store.validated=!0);else if(j){var Ue=M(j);if(typeof Ue=="function"&&Ue!==j.entries)for(var Be=Ue.call(j),Ne;!(Ne=Be.next()).done;)Er(Ne.value)&&Tt(Ne.value,ae)}}}function Bn(j){{var ae=j.type;if(ae==null||typeof ae=="string")return;var he;if(typeof ae=="function")he=ae.propTypes;else if(typeof ae=="object"&&(ae.$$typeof===p||ae.$$typeof===v))he=ae.propTypes;else return;if(he){var Te=N(ae);Rr(he,j.props,"prop",Te,j)}else if(ae.PropTypes!==void 0&&!Lr){Lr=!0;var Ue=N(ae);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ue||"Unknown")}typeof ae.getDefaultProps=="function"&&!ae.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function zt(j){{for(var ae=Object.keys(j.props),he=0;he<ae.length;he++){var Te=ae[he];if(Te!=="children"&&Te!=="key"){wn(j),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),wn(null);break}}j.ref!==null&&(wn(j),D("Invalid attribute `ref` supplied to `React.Fragment`."),wn(null))}}function Gt(j,ae,he,Te,Ue,Be){{var Ne=L(j);if(!Ne){var je="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(je+=" 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 Lt=zs();Lt?je+=Lt:je+=Bo();var lt;j===null?lt="null":Array.isArray(j)?lt="array":j!==void 0&&j.$$typeof===r?(lt="<"+(N(j.type)||"Unknown")+" />",je=" Did you accidentally export a JSX literal instead of a component?"):lt=typeof j,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",lt,je)}var pt=gi(j,ae,he,Ue,Be);if(pt==null)return pt;if(Ne){var zn=ae.children;if(zn!==void 0)if(Te)if(Array.isArray(zn)){for(var vi=0;vi<zn.length;vi++)Mt(zn[vi],j);Object.freeze&&Object.freeze(zn)}else D("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 Mt(zn,j)}return j===e.Fragment?zt(pt):Bn(pt),pt}}function Qt(j,ae,he){return Gt(j,ae,he,!0)}function wr(j,ae,he){return Gt(j,ae,he,!1)}var Jt=wr,jr=Qt;e.jsx=Jt,e.jsxs=jr}()}(Mc)),Mc}process.env.NODE_ENV==="production"?Oc.exports=E_():Oc.exports=w_();var u=Oc.exports;function Q1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Q1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function se(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Q1(e))&&(r&&(r+=" "),r+=t);return r}const ra={divider:"_divider_11gi1_1","sand-drag":"_sand-drag_11gi1_7","black-drag":"_black-drag_11gi1_13","vertical-divider":"_vertical-divider_11gi1_19"},y_={xl:"24px",lg:"16px",md:"12px",sm:"8px",xs:"4px"},C_={default:"","sand-drag":ra["sand-drag"],"black-drag":ra["black-drag"]},Yr=h.forwardRef((e,t)=>{const{color:n="gray-300",horizontalMargin:r=!0,verticalMargin:o="xs",variant:s="default",className:l,...c}=e,d=h.useMemo(()=>({margin:`${y_[o]} ${r?"8px":0}`}),[o,r]);return u.jsx("div",{ref:t,className:se(ra.divider,`bg--${n}`,C_[s],r&&ra["vertical-divider"],l),style:d,...c})});Yr.displayName="Divider";const J1={text:"_text_1n5gj_1","text--size-lg":"_text--size-lg_1n5gj_6","text--size-md":"_text--size-md_1n5gj_12","text--size-sm":"_text--size-sm_1n5gj_18","text--size-xs":"_text--size-xs_1n5gj_24"},Ce=h.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:o="gray-900",className:s,...l}=e;return u.jsx("p",{ref:t,className:se(J1.text,J1[`text--size-${n}`],`text--weight-${r}`,`text--${o}`,s),...l})});Ce.displayName="Text";const T_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M21 17.397v1.646a2 2 0 0 1-2 2c-8.837 0-16-7.163-16-16a2 2 0 0 1 2-2h1.646A2 2 0 0 1 8.503 4.3l.814 2.034a2 2 0 0 1-.963 2.532L8 9.043s.5 2.5 2.5 4.5 4.5 2.5 4.5 2.5l.177-.354a2 2 0 0 1 2.532-.963l2.034.814A2 2 0 0 1 21 17.397ZM15.938 8.09 14.426 6.2A1.944 1.944 0 0 1 14 4.986V4.9a1.856 1.856 0 0 1 3.169-1.312l.331.331.331-.331A1.856 1.856 0 0 1 21 4.899v.087c0 .442-.15.87-.426 1.214l-1.512 1.89a2 2 0 0 1-3.124 0Z"})}),S_=(()=>{const e=h.forwardRef(T_);return e.displayName="SvgCallLove",e})(),I_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M21 19.043v-1.646a2 2 0 0 0-1.257-1.857l-2.034-.814a2 2 0 0 0-2.532.963l-.177.354s-2.5-.5-4.5-2.5-2.5-4.5-2.5-4.5l.354-.177a2 2 0 0 0 .963-2.532L8.503 4.3a2 2 0 0 0-1.857-1.257H5a2 2 0 0 0-2 2c0 8.837 7.163 16 16 16a2 2 0 0 0 2-2Z"})}),ia=(()=>{const e=h.forwardRef(I_);return e.displayName="SvgCall",e})(),A_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 2H6a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V6a4 4 0 0 0-4-4Zm-1.408 7.46a.75.75 0 0 0-1.184-.92l-4.007 5.151a.25.25 0 0 1-.365.033l-2.534-2.281a.75.75 0 1 0-1.004 1.114l2.535 2.282a1.75 1.75 0 0 0 2.552-.227l4.007-5.152Z",clipRule:"evenodd"})}),Pc=(()=>{const e=h.forwardRef(A_);return e.displayName="SvgCheckRectangle",e})(),O_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M22 7.292h-6.543l3.641-5.097A4.002 4.002 0 0 1 22 6.042v1.25Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 8.792h20v9.25a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-9.25Zm8 5.053v2.394c0 1.198 1.335 1.913 2.332 1.248l1.796-1.197a1.5 1.5 0 0 0 0-2.496l-1.796-1.197c-.997-.665-2.332.05-2.332 1.248Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M5.614 7.292H2v-1.25a4 4 0 0 1 4-4h3.364l-3.75 5.25Zm1.843 0 3.75-5.25h6.157l-3.75 5.25H7.457Z"})]}),ep=(()=>{const e=h.forwardRef(O_);return e.displayName="SvgClapperboard1",e})(),$_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 9.84645C8.77924 10.0229 8.53299 10.0515 8.36424 9.91034L6 7.93298L3.63576 9.91034C3.46701 10.0515 3.22076 10.0229 3.08576 9.84645C2.95076 9.67003 2.97812 9.41259 3.14687 9.27145L5.75555 7.08964C5.89847 6.97012 6.10153 6.97012 6.24444 7.08964L8.85313 9.27145C9.02188 9.41259 9.04924 9.67003 8.91424 9.84645Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 2.15355C3.22076 1.97712 3.46701 1.94852 3.63576 2.08966L6 4.06702L8.36424 2.08966C8.53299 1.94852 8.77924 1.97712 8.91424 2.15355C9.04924 2.32997 9.02188 2.58741 8.85313 2.72855L6.24445 4.91036C6.10153 5.02988 5.89847 5.02988 5.75556 4.91036L3.14687 2.72855C2.97812 2.58741 2.95076 2.32997 3.08576 2.15355Z",fill:"currentColor"})]}),D_=(()=>{const e=h.forwardRef($_);return e.displayName="SvgCollapse",e})(),M_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M6 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1H6V5ZM4 9.5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1H4v-1Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 14a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-3Zm7.25 1a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"})]}),P_=(()=>{const e=h.forwardRef(M_);return e.displayName="SvgCollection",e})(),R_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm2.861-13.954-6.27 2.09c-.788.263-.788 1.377 0 1.64l2.315.771c.258.086.46.289.547.547l.772 2.315c.262.788 1.377.788 1.64 0l2.09-6.27a.864.864 0 0 0-1.094-1.093Z",clipRule:"evenodd"})}),tp=(()=>{const e=h.forwardRef(R_);return e.displayName="SvgCompass",e})(),N_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.225 8.65C21.055 7.604 22 6.166 22 5.043c0-2-1.343-3-3-3s-3 1-3 3.21c0 1.204.892 2.519 1.703 3.466.68.795 1.871.75 2.522-.07ZM19 6.043a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-13 16c2 0 4-3.79 4-6a4 4 0 1 0-8 0c0 2.21 2 6 4 6Zm0-4.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M17.53 12.073a.75.75 0 0 0-1.06-1.06l-.161.16a.75.75 0 1 0 1.06 1.061l.161-.16Zm-2.089 2.09a.75.75 0 0 0-1.06-1.061l-.322.321a.75.75 0 1 0 1.06 1.061l.322-.321Zm-2.25 2.25a.75.75 0 0 0-1.06-1.061l-.161.16a.75.75 0 0 0 1.06 1.061l.161-.16Z"})]}),Rc=(()=>{const e=h.forwardRef(N_);return e.displayName="SvgDestination0200",e})(),L_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),np=(()=>{const e=h.forwardRef(L_);return e.displayName="SvgDirectionDown01Chevron",e})(),j_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.469 6.457a.75.75 0 0 1 .117 1.055l-3.626 4.531 3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),k_=(()=>{const e=h.forwardRef(j_);return e.displayName="SvgDirectionLeft01Chevron",e})(),F_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Z",clipRule:"evenodd"})}),Nc=(()=>{const e=h.forwardRef(F_);return e.displayName="SvgDirectionRightChevron",e})(),B_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M11.289 3H8.123a4 4 0 0 0-3.88 3.03L2.62 12.515A2 2 0 0 0 4.561 15H9.5l-1.307 2.24c-.972 1.667.23 3.76 2.16 3.76H11.5l3.868-6.77a1 1 0 0 0 .132-.496V5.535a1 1 0 0 0-.445-.832l-1.547-1.031A4 4 0 0 0 11.288 3ZM20 15h-1a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2Z"})}),z_=(()=>{const e=h.forwardRef(B_);return e.displayName="SvgDislike",e})(),G_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2.75 6A3.25 3.25 0 0 1 6 2.75h6a.75.75 0 0 0 0-1.5H6A4.75 4.75 0 0 0 1.25 6v12A4.75 4.75 0 0 0 6 22.75h12A4.75 4.75 0 0 0 22.75 18v-6a.75.75 0 0 0-1.5 0v6A3.25 3.25 0 0 1 18 21.25H6A3.25 3.25 0 0 1 2.75 18V6Z"}),u.jsx("path",{fill:"currentColor",d:"M16.419 2.677a2.312 2.312 0 0 1 3.27 0l1.634 1.635a2.312 2.312 0 0 1 0 3.269l-1.45 1.45a16.081 16.081 0 0 1-.357-.183c-.835-.44-1.827-1.057-2.567-1.797-.74-.74-1.357-1.732-1.797-2.567a16.251 16.251 0 0 1-.182-.358l1.449-1.449Zm-.53 5.434c.875.876 1.989 1.565 2.87 2.033l-5.699 5.7a2.312 2.312 0 0 1-1.308.654l-3.432.49a1.156 1.156 0 0 1-1.308-1.308l.49-3.432c.071-.495.3-.954.654-1.308l5.7-5.7c.468.882 1.157 1.996 2.033 2.871Z"})]}),rp=(()=>{const e=h.forwardRef(G_);return e.displayName="SvgEditRectangle",e})(),U_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 7.15355C3.22076 6.97713 3.46701 6.94852 3.63576 7.08966L6 9.06702L8.36424 7.08966C8.53299 6.94852 8.77924 6.97712 8.91424 7.15355C9.04924 7.32997 9.02188 7.58741 8.85313 7.72855L6.24444 9.91036C6.10153 10.0299 5.89847 10.0299 5.75556 9.91036L3.14687 7.72855C2.97812 7.58741 2.95076 7.32997 3.08576 7.15355Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 4.84645C8.77924 5.02288 8.53299 5.05148 8.36424 4.91034L6 2.93298L3.63576 4.91034C3.46701 5.05148 3.22076 5.02288 3.08576 4.84645C2.95076 4.67003 2.97812 4.41259 3.14687 4.27145L5.75555 2.08964C5.89847 1.97012 6.10153 1.97012 6.24444 2.08964L8.85313 4.27145C9.02188 4.41259 9.04924 4.67003 8.91424 4.84645Z",fill:"currentColor"})]}),H_=(()=>{const e=h.forwardRef(U_);return e.displayName="SvgExpand",e})(),V_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M2.5 5.793a3.25 3.25 0 0 1 3.25-3.25h2a.75.75 0 0 0 0-1.5h-2A4.75 4.75 0 0 0 1 5.793v2a.75.75 0 0 0 1.5 0v-2Zm13.25-4.75a.75.75 0 0 0 0 1.5h2A3.25 3.25 0 0 1 21 5.793v2a.75.75 0 0 0 1.5 0v-2a4.75 4.75 0 0 0-4.75-4.75h-2Zm6.75 14.75a.75.75 0 0 0-1.5 0v2a3.25 3.25 0 0 1-3.25 3.25h-2a.75.75 0 0 0 0 1.5h2a4.75 4.75 0 0 0 4.75-4.75v-2Zm-20 .556a.75.75 0 0 0-1.5 0v1.444a4.75 4.75 0 0 0 4.75 4.75h2a.75.75 0 0 0 0-1.5h-2a3.25 3.25 0 0 1-3.25-3.25v-1.444Zm16.79-3.455c-1.423 1.473-4.265 3.899-7.54 3.899-3.274 0-6.117-2.426-7.54-3.899-.613-.634-.613-1.568 0-2.202 1.423-1.473 4.266-3.899 7.54-3.899s6.117 2.426 7.54 3.899c.613.634.613 1.568 0 2.202Z"})}),ip=(()=>{const e=h.forwardRef(V_);return e.displayName="SvgEyeScannerSmart",e})(),W_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M14 5h2a3 3 0 0 1 2.905 2.25H21a.75.75 0 0 1 0 1.5h-2.095A3.001 3.001 0 0 1 16 11h-2a3 3 0 1 1 0-6ZM3 7.25a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H3Zm13 8a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-5ZM10 13H8a3.001 3.001 0 0 0-2.905 2.25H3a.75.75 0 0 0 0 1.5h2.095A3.001 3.001 0 0 0 8 19h2a3 3 0 1 0 0-6Z"})}),op=(()=>{const e=h.forwardRef(W_);return e.displayName="SvgFilter01",e})(),q_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M22 17.042v-7a4 4 0 0 0-4-4h-2.667a4 4 0 0 1-2.4-.8l-1.866-1.4a4 4 0 0 0-2.4-.8H6a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z"})}),Y_=(()=>{const e=h.forwardRef(q_);return e.displayName="SvgFolder03",e})(),Z_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2 6.417v11.25c0 .222.02.439.06.649l2.835-6.449c.923-2.15 3-3.575 5.334-3.575h9.076c-.18-1.687-1.557-3-3.229-3h-3.353c-.578 0-1.146-.16-1.644-.464L8.91 3.506a3.156 3.156 0 0 0-1.643-.464H5.248C3.454 3.042 2 4.553 2 6.417Z"}),u.jsx("path",{fill:"currentColor",d:"M10.229 9.792h9.602c1.683 0 2.723 1.908 1.857 3.408l-3.267 5.657c-.783 1.356-2.193 2.185-3.714 2.185H5.248a3.18 3.18 0 0 1-2.308-1l3.33-7.578c.696-1.625 2.247-2.672 3.959-2.672Z"})]}),X_=(()=>{const e=h.forwardRef(Z_);return e.displayName="SvgFolder",e})(),K_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12 3.792a8.25 8.25 0 0 0-8.25 8.25v1a3.75 3.75 0 0 1 6 3v2a3.75 3.75 0 1 1-7.5 0v-6c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75v6a3.75 3.75 0 1 1-7.5 0v-2a3.75 3.75 0 0 1 6-3v-1A8.25 8.25 0 0 0 12 3.792Z"})}),sp=(()=>{const e=h.forwardRef(K_);return e.displayName="SvgHeadphones1",e})(),Q_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M8.5 11.042a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.25 6.042A4.75 4.75 0 0 1 6 1.292h12a4.75 4.75 0 0 1 4.75 4.75v12a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12ZM6 2.792a3.25 3.25 0 0 0-3.25 3.25v8.5l2.522 1.681a4 4 0 0 0 5.047-.5l3.362-3.362a4 4 0 0 1 5.048-.5l2.38 1.587c.049.033.096.067.141.103V6.042A3.25 3.25 0 0 0 18 2.792H6Z",clipRule:"evenodd"})]}),ap=(()=>{const e=h.forwardRef(Q_);return e.displayName="SvgImage1",e})(),J_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12.711 21h3.166a4 4 0 0 0 3.88-3.03l1.622-6.485A2 2 0 0 0 19.439 9H14.5l1.307-2.24c.972-1.667-.23-3.76-2.16-3.76H12.5L8.632 9.77a1 1 0 0 0-.132.496v8.199a1 1 0 0 0 .445.832l1.547 1.031a4 4 0 0 0 2.22.672ZM4 9h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"})}),e7=(()=>{const e=h.forwardRef(J_);return e.displayName="SvgLike",e})(),t7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M18.137 5.907a3.964 3.964 0 0 0-5.606 0l-1.667 1.667a.75.75 0 1 1-1.06-1.06l1.666-1.668a5.464 5.464 0 1 1 7.728 7.728L17.53 14.24a.75.75 0 0 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606Z"}),u.jsx("path",{fill:"currentColor",d:"M14.652 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 1 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z"}),u.jsx("path",{fill:"currentColor",d:"M11.47 18.18a3.964 3.964 0 1 1-5.606-5.606l1.667-1.667a.75.75 0 0 0-1.06-1.06l-1.667 1.666a5.464 5.464 0 0 0 7.727 7.728l1.667-1.667a.75.75 0 0 0-1.061-1.06L11.47 18.18Z"})]}),oa=(()=>{const e=h.forwardRef(t7);return e.displayName="SvgLink",e})(),n7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm7.929-12.268a2 2 0 1 1-2-3.464 2 2 0 0 1 2 3.464ZM3.34 17a2 2 0 1 0 3.465-2 2 2 0 0 0-3.464 2Zm14.589.732a2 2 0 1 1 2-3.464 2 2 0 0 1-2 3.464ZM3.34 7a2 2 0 1 0 3.465 2A2 2 0 0 0 3.34 7Z"})}),sa=(()=>{const e=h.forwardRef(n7);return e.displayName="SvgLoading",e})(),r7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.75 6.75a3.25 3.25 0 0 1 6.5 0V8h-6.5V6.75Zm-1.5 1.32V6.75a4.75 4.75 0 0 1 9.5 0v1.32A4.001 4.001 0 0 1 20 12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4v-6c0-1.953 1.4-3.579 3.25-3.93ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),i7=(()=>{const e=h.forwardRef(r7);return e.displayName="SvgLock",e})(),o7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 3.043a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4H6Zm.416 4.376a.75.75 0 1 0-.832 1.248l3.781 2.52a4.75 4.75 0 0 0 5.27 0l3.781-2.52a.75.75 0 1 0-.832-1.248l-3.781 2.52a3.25 3.25 0 0 1-3.606 0L6.416 7.42Z",clipRule:"evenodd"})}),Lc=(()=>{const e=h.forwardRef(o7);return e.displayName="SvgMail",e})(),s7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M21 2.293h-6a.75.75 0 0 0 0 1.5h4.19l-9.72 9.72a.75.75 0 0 0 1.06 1.06l9.72-9.72v4.19a.75.75 0 0 0 1.5 0v-6a.75.75 0 0 0-.75-.75Z"}),u.jsx("path",{fill:"currentColor",d:"M7 4.293a4.75 4.75 0 0 0-4.75 4.75v8A4.75 4.75 0 0 0 7 21.793h8a4.75 4.75 0 0 0 4.75-4.75v-5a.75.75 0 0 0-1.5 0v5a3.25 3.25 0 0 1-3.25 3.25H7a3.25 3.25 0 0 1-3.25-3.25v-8A3.25 3.25 0 0 1 7 5.793h5a.75.75 0 0 0 0-1.5H7Z"})]}),a7=(()=>{const e=h.forwardRef(s7);return e.displayName="SvgMaximize",e})(),l7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("g",{clipPath:"url(#notes_01_svg__a)",children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.281.793a.75.75 0 0 1 .75.75v1.5h.25a4 4 0 0 1 4 4v10.5a4 4 0 0 1-4 4h-10a4 4 0 0 1-4-4v-10.5a4 4 0 0 1 4-4h.25v-1.5a.75.75 0 0 1 1.5 0v1.5h6.5v-1.5a.75.75 0 0 1 .75-.75Zm1.75 11.75a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-.75-3.25a.75.75 0 1 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6Zm.75 7.25a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-9.25-8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"})}),u.jsx("defs",{children:u.jsx("clipPath",{id:"notes_01_svg__a",children:u.jsx("path",{fill:"#fff",d:"M0 .043h24v24H0z"})})})]}),c7=(()=>{const e=h.forwardRef(l7);return e.displayName="SvgNotes01",e})(),d7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M20 3H8a2 2 0 0 0-2 2v3a1 1 0 0 1-1 1 3 3 0 1 0 0 6 1 1 0 0 1 1 1v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1 3 3 0 1 1 6 0 1 1 0 0 0 1 1h2a2 2 0 0 0 2-2v-3a1 1 0 0 0-1-1 3 3 0 1 1 0-6 1 1 0 0 0 1-1V5a2 2 0 0 0-2-2Z"})}),lp=(()=>{const e=h.forwardRef(d7);return e.displayName="SvgPlugin",e})(),u7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.75 6a.75.75 0 0 0-1.5 0v5.25H6a.75.75 0 0 0 0 1.5h5.25V18a.75.75 0 0 0 1.5 0v-5.25H18a.75.75 0 0 0 0-1.5h-5.25V6Z",clipRule:"evenodd"})}),f7=(()=>{const e=h.forwardRef(u7);return e.displayName="SvgPlus",e})(),p7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M7.5 6.043a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3h-3a3 3 0 0 1-3-3v-12Zm10.5 1h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-1v-10Zm-13 10h1v-10H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2Z"})}),cp=(()=>{const e=h.forwardRef(p7);return e.displayName="SvgPotrait02Grid",e})(),h7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4Zm9.359 6.641a.75.75 0 0 1 0 1.061L13.06 12l2.298 2.298a.75.75 0 0 1-1.06 1.06L12 13.062 9.702 15.36a.75.75 0 1 1-1.06-1.06l2.296-2.3-2.297-2.298a.75.75 0 0 1 1.06-1.06l2.3 2.297 2.297-2.298a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})}),jc=(()=>{const e=h.forwardRef(h7);return e.displayName="SvgRemoveRectangle",e})(),g7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"m9.454 4.303 11.23 5.612c1.755.877 1.755 3.379 0 4.256l-11.23 5.612c-1.998.998-4.147-1.055-3.24-3.094l1.636-3.68c.032-.07.06-.143.084-.216H12a.75.75 0 0 0 0-1.5H7.934a2.376 2.376 0 0 0-.084-.216l-1.636-3.68c-.907-2.04 1.242-4.092 3.24-3.094Zm-8.204 5.74a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75Zm.75 3.25a.75.75 0 0 0 0 1.5h2a.75.75 0 0 0 0-1.5H2Z"})}),m7=(()=>{const e=h.forwardRef(g7);return e.displayName="SvgSentFast",e})(),v7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M11.5 2.043a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-18a1 1 0 0 0-1-1h-1Zm-2 10H5.414a1 1 0 0 1-.707-.293l-2-2a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 .707-.293H9.5v6Zm5 0H19l3 3-3 3h-4.5v-6Z"})}),dp=(()=>{const e=h.forwardRef(v7);return e.displayName="SvgSignpost00",e})(),b7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.027 3.297a4.281 4.281 0 0 0-6.054 0l-5.72 5.719a4.281 4.281 0 0 0 0 6.054l5.72 5.719a4.281 4.281 0 0 0 6.054 0l5.72-5.719a4.281 4.281 0 0 0 0-6.054l-5.72-5.72Zm-5.91 6.276a.75.75 0 0 0-1.062-1.06L6.763 9.806a1.75 1.75 0 0 0 0 2.474l1.292 1.293a.75.75 0 1 0 1.061-1.06l-.72-.72H10c.69 0 1.25.56 1.25 1.25v3a.75.75 0 0 0 1.5 0v-3c0-.69.56-1.25 1.25-1.25h1.604l-.72.72a.75.75 0 0 0 1.06 1.06l1.293-1.293a1.75 1.75 0 0 0 0-2.474l-1.292-1.293a.75.75 0 1 0-1.061 1.06l.72.72H14c-.788 0-1.499.331-2 .863a2.742 2.742 0 0 0-2-.863H8.396l.72-.72Z",clipRule:"evenodd"})}),_7=(()=>{const e=h.forwardRef(b7);return e.displayName="SvgTurn0100",e})(),x7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.184 5.126A3.25 3.25 0 0 1 15.25 6.75V8H8a4 4 0 0 0-4 4v6a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-6c0-1.953-1.4-3.579-3.25-3.93V6.75a4.75 4.75 0 0 0-8.864-2.376.75.75 0 0 0 1.298.752ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),E7=(()=>{const e=h.forwardRef(x7);return e.displayName="SvgUnlock",e})(),w7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.968 4.166c.886-1.555 3.178-1.555 4.064 0l7.672 13.466c.86 1.511-.26 3.368-2.032 3.368H4.328c-1.773 0-2.893-1.857-2.032-3.368L9.968 4.166ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8a.75.75 0 1 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Z",clipRule:"evenodd"})}),y7=(()=>{const e=h.forwardRef(w7);return e.displayName="SvgWarningError",e})();function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}function Ft(e,t=[]){let n=[];function r(s,l){const c=h.createContext(l),d=n.length;n=[...n,l];function p(g){const{scope:v,children:b,...E}=g,_=(v==null?void 0:v[e][d])||c,w=h.useMemo(()=>E,Object.values(E));return h.createElement(_.Provider,{value:w},b)}function m(g,v){const b=(v==null?void 0:v[e][d])||c,E=h.useContext(b);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return p.displayName=s+"Provider",[p,m]}const o=()=>{const s=n.map(l=>h.createContext(l));return function(c){const d=(c==null?void 0:c[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,C7(o,...t)]}function C7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((c,{useScope:d,scopeName:p})=>{const g=d(s)[`__scope${p}`];return{...c,...g}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function T7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function kc(...e){return t=>e.forEach(n=>T7(n,t))}function et(...e){return h.useCallback(kc(...e),e)}const Ii=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),s=o.find(S7);if(s){const l=s.props.children,c=o.map(d=>d===s?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:d);return h.createElement(Fc,oe({},r,{ref:t}),h.isValidElement(l)?h.cloneElement(l,void 0,c):null)}return h.createElement(Fc,oe({},r,{ref:t}),n)});Ii.displayName="Slot";const Fc=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...I7(r,n.props),ref:t?kc(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});Fc.displayName="SlotClone";const up=({children:e})=>h.createElement(h.Fragment,null,e);function S7(e){return h.isValidElement(e)&&e.type===up}function I7(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function aa(e){const t=e+"CollectionProvider",[n,r]=Ft(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:E,children:_}=b,w=h.useRef(null),y=h.useRef(new Map).current;return h.createElement(o,{scope:E,itemMap:y,collectionRef:w},_)},c=e+"CollectionSlot",d=h.forwardRef((b,E)=>{const{scope:_,children:w}=b,y=s(c,_),S=et(E,y.collectionRef);return h.createElement(Ii,{ref:S},w)}),p=e+"CollectionItemSlot",m="data-radix-collection-item",g=h.forwardRef((b,E)=>{const{scope:_,children:w,...y}=b,S=h.useRef(null),T=et(E,S),O=s(p,_);return h.useEffect(()=>(O.itemMap.set(S,{ref:S,...y}),()=>void O.itemMap.delete(S))),h.createElement(Ii,{[m]:"",ref:T},w)});function v(b){const E=s(e+"CollectionConsumer",b);return h.useCallback(()=>{const w=E.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((O,I)=>y.indexOf(O.ref.current)-y.indexOf(I.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:l,Slot:d,ItemSlot:g},v,r]}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function rn(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function hn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=A7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r,c=rn(n),d=h.useCallback(p=>{if(s){const g=typeof p=="function"?p(e):p;g!==e&&c(g)}else o(p)},[s,e,o,c]);return[l,d]}function A7({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),s=rn(t);return h.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}const Pe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:s,...l}=r,c=s?Ii:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(c,oe({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Bc(e,t){e&&On.flushSync(()=>e.dispatchEvent(t))}const Zr=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function O7(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const on=e=>{const{present:t,children:n}=e,r=$7(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),s=et(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:s}):null};on.displayName="Presence";function $7(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),s=h.useRef("none"),l=e?"mounted":"unmounted",[c,d]=O7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const p=la(r.current);s.current=c==="mounted"?p:"none"},[c]),Zr(()=>{const p=r.current,m=o.current;if(m!==e){const v=s.current,b=la(p);e?d("MOUNT"):b==="none"||(p==null?void 0:p.display)==="none"?d("UNMOUNT"):d(m&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Zr(()=>{if(t){const p=g=>{const b=la(r.current).includes(g.animationName);g.target===t&&b&&On.flushSync(()=>d("ANIMATION_END"))},m=g=>{g.target===t&&(s.current=la(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:h.useCallback(p=>{p&&(r.current=getComputedStyle(p)),n(p)},[])}}function la(e){return(e==null?void 0:e.animationName)||"none"}const D7=be.useId||(()=>{});let M7=0;function Xn(e){const[t,n]=be.useState(D7());return Zr(()=>{n(r=>r??String(M7++))},[e]),t?`radix-${t}`:""}const fp="Collapsible",[P7,pp]=Ft(fp),[R7,zc]=P7(fp),N7=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:l,...c}=e,[d=!1,p]=hn({prop:r,defaultProp:o,onChange:l});return h.createElement(R7,{scope:n,disabled:s,contentId:Xn(),open:d,onOpenToggle:h.useCallback(()=>p(m=>!m),[p])},h.createElement(Pe.div,oe({"data-state":Gc(d),"data-disabled":s?"":void 0},c,{ref:t})))}),L7="CollapsibleTrigger",j7=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=zc(L7,n);return h.createElement(Pe.button,oe({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Gc(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:Ee(e.onClick,o.onOpenToggle)}))}),hp="CollapsibleContent",k7=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=zc(hp,e.__scopeCollapsible);return h.createElement(on,{present:n||o.open},({present:s})=>h.createElement(F7,oe({},r,{ref:t,present:s})))}),F7=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,l=zc(hp,n),[c,d]=h.useState(r),p=h.useRef(null),m=et(t,p),g=h.useRef(0),v=g.current,b=h.useRef(0),E=b.current,_=l.open||c,w=h.useRef(_),y=h.useRef();return h.useEffect(()=>{const S=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(S)},[]),Zr(()=>{const S=p.current;if(S){y.current=y.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const T=S.getBoundingClientRect();g.current=T.height,b.current=T.width,w.current||(S.style.transitionDuration=y.current.transitionDuration,S.style.animationName=y.current.animationName),d(r)}},[l.open,r]),h.createElement(Pe.div,oe({"data-state":Gc(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!_},s,{ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style}}),_&&o)});function Gc(e){return e?"open":"closed"}const B7=N7,z7=j7,G7=k7,U7=h.createContext(void 0);function rs(e){const t=h.useContext(U7);return e||t||"ltr"}const Xr="Accordion",H7=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Uc,V7,W7]=aa(Xr),[ca,zj]=Ft(Xr,[W7,pp]),Hc=pp(),gp=h.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return h.createElement(Uc.Provider,{scope:e.__scopeAccordion},n==="multiple"?h.createElement(X7,oe({},s,{ref:t})):h.createElement(Z7,oe({},o,{ref:t})))});gp.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[mp,q7]=ca(Xr),[vp,Y7]=ca(Xr,{collapsible:!1}),Z7=h.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...l}=e,[c,d]=hn({prop:n,defaultProp:r,onChange:o});return h.createElement(mp,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:h.useCallback(()=>s&&d(""),[s,d])},h.createElement(vp,{scope:e.__scopeAccordion,collapsible:s},h.createElement(bp,oe({},l,{ref:t}))))}),X7=h.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[l=[],c]=hn({prop:n,defaultProp:r,onChange:o}),d=h.useCallback(m=>c((g=[])=>[...g,m]),[c]),p=h.useCallback(m=>c((g=[])=>g.filter(v=>v!==m)),[c]);return h.createElement(mp,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:p},h.createElement(vp,{scope:e.__scopeAccordion,collapsible:!0},h.createElement(bp,oe({},s,{ref:t}))))}),[K7,da]=ca(Xr),bp=h.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...l}=e,c=h.useRef(null),d=et(c,t),p=V7(n),g=rs(o)==="ltr",v=Ee(e.onKeyDown,b=>{var E;if(!H7.includes(b.key))return;const _=b.target,w=p().filter(k=>{var q;return!((q=k.ref.current)!==null&&q!==void 0&&q.disabled)}),y=w.findIndex(k=>k.ref.current===_),S=w.length;if(y===-1)return;b.preventDefault();let T=y;const O=0,I=S-1,M=()=>{T=y+1,T>I&&(T=O)},R=()=>{T=y-1,T<O&&(T=I)};switch(b.key){case"Home":T=O;break;case"End":T=I;break;case"ArrowRight":s==="horizontal"&&(g?M():R());break;case"ArrowDown":s==="vertical"&&M();break;case"ArrowLeft":s==="horizontal"&&(g?R():M());break;case"ArrowUp":s==="vertical"&&R();break}const D=T%S;(E=w[D].ref.current)===null||E===void 0||E.focus()});return h.createElement(K7,{scope:n,disabled:r,direction:o,orientation:s},h.createElement(Uc.Slot,{scope:n},h.createElement(Pe.div,oe({},l,{"data-orientation":s,ref:d,onKeyDown:r?void 0:v}))))}),Vc="AccordionItem",[Q7,Wc]=ca(Vc),J7=h.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=da(Vc,n),l=q7(Vc,n),c=Hc(n),d=Xn(),p=r&&l.value.includes(r)||!1,m=s.disabled||e.disabled;return h.createElement(Q7,{scope:n,open:p,disabled:m,triggerId:d},h.createElement(B7,oe({"data-orientation":s.orientation,"data-state":xp(p)},c,o,{ref:t,disabled:m,open:p,onOpenChange:g=>{g?l.onItemOpen(r):l.onItemClose(r)}})))}),e3="AccordionHeader",t3=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=da(Xr,n),s=Wc(e3,n);return h.createElement(Pe.h3,oe({"data-orientation":o.orientation,"data-state":xp(s.open),"data-disabled":s.disabled?"":void 0},r,{ref:t}))}),_p="AccordionTrigger",n3=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=da(Xr,n),s=Wc(_p,n),l=Y7(_p,n),c=Hc(n);return h.createElement(Uc.ItemSlot,{scope:n},h.createElement(z7,oe({"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId},c,r,{ref:t})))}),r3="AccordionContent",i3=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=da(Xr,n),s=Wc(r3,n),l=Hc(n);return h.createElement(G7,oe({role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation},l,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function xp(e){return e?"open":"closed"}const qc=gp,Yc=J7,Zc=t3,Xc=n3,Kc=i3,Ai={"accordion--root":"_accordion--root_qw4g3_1","accordion--item":"_accordion--item_qw4g3_11","accordion--icon":"_accordion--icon_qw4g3_26","accordion--trigger":"_accordion--trigger_qw4g3_32",divider:"_divider_qw4g3_46","accordion--content":"_accordion--content_qw4g3_51",slideDown:"_slideDown_qw4g3_1",slideUp:"_slideUp_qw4g3_1"},Ep=h.forwardRef((e,t)=>{const{children:n,collapsible:r=!0,...o}=e;return u.jsx(qc,{...o,collapsible:r,ref:t,className:Ai["accordion--root"],type:"single",children:n})});Ep.displayName="Accordion";const wp=h.forwardRef(({label:e,children:t,value:n,className:r,contentClassName:o,...s},l)=>u.jsxs(Yc,{className:se(Ai["accordion--item"],r),value:n,...s,children:[u.jsx(Zc,{className:Ai["accordion--header"],children:u.jsxs(Xc,{className:Ai["accordion--trigger"],children:[typeof e=="string"?u.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-1000",children:e}):e,u.jsx(np,{className:Ai["accordion--icon"],"aria-hidden":!0})]})}),u.jsxs(Kc,{ref:l,className:se(Ai["accordion--content"],o),children:[u.jsx(Yr,{className:Ai.divider,color:"gray-300"}),t]})]}));wp.displayName="AccordionPanel";function o3(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Qc="dismissableLayer.update",s3="dismissableLayer.pointerDownOutside",a3="dismissableLayer.focusOutside";let yp;const Cp=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),is=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...p}=e,m=h.useContext(Cp),[g,v]=h.useState(null),b=(n=g==null?void 0:g.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,E]=h.useState({}),_=et(t,D=>v(D)),w=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),S=w.indexOf(y),T=g?w.indexOf(g):-1,O=m.layersWithOutsidePointerEventsDisabled.size>0,I=T>=S,M=c3(D=>{const k=D.target,q=[...m.branches].some(L=>L.contains(k));!I||q||(s==null||s(D),c==null||c(D),D.defaultPrevented||d==null||d())},b),R=d3(D=>{const k=D.target;[...m.branches].some(L=>L.contains(k))||(l==null||l(D),c==null||c(D),D.defaultPrevented||d==null||d())},b);return o3(D=>{T===m.layers.size-1&&(o==null||o(D),!D.defaultPrevented&&d&&(D.preventDefault(),d()))},b),h.useEffect(()=>{if(g)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(yp=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Tp(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=yp)}},[g,b,r,m]),h.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Tp())},[g,m]),h.useEffect(()=>{const D=()=>E({});return document.addEventListener(Qc,D),()=>document.removeEventListener(Qc,D)},[]),h.createElement(Pe.div,oe({},p,{ref:_,style:{pointerEvents:O?I?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,M.onPointerDownCapture)}))}),l3=h.forwardRef((e,t)=>{const n=h.useContext(Cp),r=h.useRef(null),o=et(t,r);return h.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.createElement(Pe.div,oe({},e,{ref:o}))});function c3(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let p=function(){Sp(s3,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function d3(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=h.useRef(!1);return h.useEffect(()=>{const o=s=>{s.target&&!r.current&&Sp(a3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Tp(){const e=new CustomEvent(Qc);document.dispatchEvent(e)}function Sp(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bc(o,s):o.dispatchEvent(s)}const u3=is,f3=l3;let Jc=0;function ed(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Ip()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Ip()),Jc++,()=>{Jc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Jc--}},[])}function Ip(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const td="focusScope.autoFocusOnMount",nd="focusScope.autoFocusOnUnmount",Ap={bubbles:!1,cancelable:!0},rd=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[c,d]=h.useState(null),p=rn(o),m=rn(s),g=h.useRef(null),v=et(t,_=>d(_)),b=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let _=function(T){if(b.paused||!c)return;const O=T.target;c.contains(O)?g.current=O:Kr(g.current,{select:!0})},w=function(T){if(b.paused||!c)return;const O=T.relatedTarget;O!==null&&(c.contains(O)||Kr(g.current,{select:!0}))},y=function(T){const O=document.activeElement;for(const I of T)I.removedNodes.length>0&&(c!=null&&c.contains(O)||Kr(c))};document.addEventListener("focusin",_),document.addEventListener("focusout",w);const S=new MutationObserver(y);return c&&S.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",w),S.disconnect()}}},[r,c,b.paused]),h.useEffect(()=>{if(c){Dp.add(b);const _=document.activeElement;if(!c.contains(_)){const y=new CustomEvent(td,Ap);c.addEventListener(td,p),c.dispatchEvent(y),y.defaultPrevented||(p3(b3(Op(c)),{select:!0}),document.activeElement===_&&Kr(c))}return()=>{c.removeEventListener(td,p),setTimeout(()=>{const y=new CustomEvent(nd,Ap);c.addEventListener(nd,m),c.dispatchEvent(y),y.defaultPrevented||Kr(_??document.body,{select:!0}),c.removeEventListener(nd,m),Dp.remove(b)},0)}}},[c,p,m,b]);const E=h.useCallback(_=>{if(!n&&!r||b.paused)return;const w=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,y=document.activeElement;if(w&&y){const S=_.currentTarget,[T,O]=h3(S);T&&O?!_.shiftKey&&y===O?(_.preventDefault(),n&&Kr(T,{select:!0})):_.shiftKey&&y===T&&(_.preventDefault(),n&&Kr(O,{select:!0})):y===S&&_.preventDefault()}},[n,r,b.paused]);return h.createElement(Pe.div,oe({tabIndex:-1},l,{ref:v,onKeyDown:E}))});function p3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Kr(r,{select:t}),document.activeElement!==n)return}function h3(e){const t=Op(e),n=$p(t,e),r=$p(t.reverse(),e);return[n,r]}function Op(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $p(e,t){for(const n of e)if(!g3(n,{upTo:t}))return n}function g3(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 m3(e){return e instanceof HTMLInputElement&&"select"in e}function Kr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&m3(e)&&t&&e.select()}}const Dp=v3();function v3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Mp(e,t),e.unshift(t)},remove(t){var n;e=Mp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Mp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function b3(e){return e.filter(t=>t.tagName!=="A")}function co(e){return e.split("-")[1]}function id(e){return e==="y"?"height":"width"}function Sr(e){return e.split("-")[0]}function Oi(e){return["top","bottom"].includes(Sr(e))?"x":"y"}function Pp(e,t,n){let{reference:r,floating:o}=e;const s=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,c=Oi(t),d=id(c),p=r[d]/2-o[d]/2,m=c==="x";let g;switch(Sr(t)){case"top":g={x:s,y:r.y-o.height};break;case"bottom":g={x:s,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:l};break;case"left":g={x:r.x-o.width,y:l};break;default:g={x:r.x,y:r.y}}switch(co(t)){case"start":g[c]-=p*(n&&m?-1:1);break;case"end":g[c]+=p*(n&&m?-1:1)}return g}const _3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=Pp(p,r,d),v=r,b={},E=0;for(let _=0;_<c.length;_++){const{name:w,fn:y}=c[_],{x:S,y:T,data:O,reset:I}=await y({x:m,y:g,initialPlacement:r,placement:v,strategy:o,middlewareData:b,rects:p,platform:l,elements:{reference:e,floating:t}});m=S??m,g=T??g,b={...b,[w]:{...b[w],...O}},I&&E<=50&&(E++,typeof I=="object"&&(I.placement&&(v=I.placement),I.rects&&(p=I.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:m,y:g}=Pp(p,v,d)),_=-1)}return{x:m,y:g,placement:v,strategy:o,middlewareData:b}};function Rp(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function ua(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function os(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:c,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:b=0}=t,E=Rp(b),_=c[v?g==="floating"?"reference":"floating":g],w=ua(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:p,rootBoundary:m,strategy:d})),y=g==="floating"?{...l.floating,x:r,y:o}:l.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),T=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},O=ua(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:S,strategy:d}):y);return{top:(w.top-O.top+E.top)/T.y,bottom:(O.bottom-w.bottom+E.bottom)/T.y,left:(w.left-O.left+E.left)/T.x,right:(O.right-w.right+E.right)/T.x}}const od=Math.min,$i=Math.max;function sd(e,t,n){return $i(e,od(t,n))}const Np=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:o,y:s,placement:l,rects:c,platform:d,elements:p}=t;if(n==null)return{};const m=Rp(r),g={x:o,y:s},v=Oi(l),b=id(v),E=await d.getDimensions(n),_=v==="y",w=_?"top":"left",y=_?"bottom":"right",S=_?"clientHeight":"clientWidth",T=c.reference[b]+c.reference[v]-g[v]-c.floating[b],O=g[v]-c.reference[v],I=await(d.getOffsetParent==null?void 0:d.getOffsetParent(n));let M=I?I[S]:0;M&&await(d.isElement==null?void 0:d.isElement(I))||(M=p.floating[S]||c.floating[b]);const R=T/2-O/2,D=m[w],k=M-E[b]-m[y],q=M/2-E[b]/2+R,L=sd(D,q,k),U=co(l)!=null&&q!=L&&c.reference[b]/2-(q<D?m[w]:m[y])-E[b]/2<0;return{[v]:g[v]-(U?q<D?D-q:k-q:0),data:{[v]:L,centerOffset:q-L}}}}),Lp=["top","right","bottom","left"];Lp.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const x3={left:"right",right:"left",bottom:"top",top:"bottom"};function fa(e){return e.replace(/left|right|bottom|top/g,t=>x3[t])}function E3(e,t,n){n===void 0&&(n=!1);const r=co(e),o=Oi(e),s=id(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=fa(l)),{main:l,cross:fa(l)}}const w3={start:"end",end:"start"};function ad(e){return e.replace(/start|end/g,t=>w3[t])}const y3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:E=!0,..._}=e,w=Sr(r),y=Sr(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=g||(y||!E?[fa(l)]:function(L){const U=fa(L);return[ad(L),U,ad(U)]}(l));g||b==="none"||T.push(...function(L,U,X,N){const K=co(L);let B=function(V,Q,W){const G=["left","right"],Y=["right","left"],de=["top","bottom"],ue=["bottom","top"];switch(V){case"top":case"bottom":return W?Q?Y:G:Q?G:Y;case"left":case"right":return Q?de:ue;default:return[]}}(Sr(L),X==="start",N);return K&&(B=B.map(V=>V+"-"+K),U&&(B=B.concat(B.map(ad)))),B}(l,E,b,S));const O=[l,...T],I=await os(t,_),M=[];let R=((n=o.flip)==null?void 0:n.overflows)||[];if(p&&M.push(I[w]),m){const{main:L,cross:U}=E3(r,s,S);M.push(I[L],I[U])}if(R=[...R,{placement:r,overflows:M}],!M.every(L=>L<=0)){var D,k;const L=(((D=o.flip)==null?void 0:D.index)||0)+1,U=O[L];if(U)return{data:{index:L,overflows:R},reset:{placement:U}};let X=(k=R.filter(N=>N.overflows[0]<=0).sort((N,K)=>N.overflows[1]-K.overflows[1])[0])==null?void 0:k.placement;if(!X)switch(v){case"bestFit":{var q;const N=(q=R.map(K=>[K.placement,K.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((K,B)=>K[1]-B[1])[0])==null?void 0:q[0];N&&(X=N);break}case"initialPlacement":X=l}if(r!==X)return{reset:{placement:X}}}return{}}}};function jp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kp(e){return Lp.some(t=>e[t]>=0)}const C3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:n="referenceHidden",...r}=e,{rects:o}=t;switch(n){case"referenceHidden":{const s=jp(await os(t,{...r,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:kp(s)}}}case"escaped":{const s=jp(await os(t,{...r,altBoundary:!0}),o.floating);return{data:{escapedOffsets:s,escaped:kp(s)}}}default:return{}}}}},T3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(s,l){const{placement:c,platform:d,elements:p}=s,m=await(d.isRTL==null?void 0:d.isRTL(p.floating)),g=Sr(c),v=co(c),b=Oi(c)==="x",E=["left","top"].includes(g)?-1:1,_=m&&b?-1:1,w=typeof l=="function"?l(s):l;let{mainAxis:y,crossAxis:S,alignmentAxis:T}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return v&&typeof T=="number"&&(S=v==="end"?-1*T:T),b?{x:S*_,y:y*E}:{x:y*E,y:S*_}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Fp(e){return e==="x"?"y":"x"}const S3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x:y,y:S}=w;return{x:y,y:S}}},...d}=e,p={x:n,y:r},m=await os(t,d),g=Oi(Sr(o)),v=Fp(g);let b=p[g],E=p[v];if(s){const w=g==="y"?"bottom":"right";b=sd(b+m[g==="y"?"top":"left"],b,b-m[w])}if(l){const w=v==="y"?"bottom":"right";E=sd(E+m[v==="y"?"top":"left"],E,E-m[w])}const _=c.fn({...t,[g]:b,[v]:E});return{..._,data:{x:_.x-n,y:_.y-r}}}}},I3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:p=!0}=e,m={x:n,y:r},g=Oi(o),v=Fp(g);let b=m[g],E=m[v];const _=typeof c=="function"?c(t):c,w=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(d){const T=g==="y"?"height":"width",O=s.reference[g]-s.floating[T]+w.mainAxis,I=s.reference[g]+s.reference[T]-w.mainAxis;b<O?b=O:b>I&&(b=I)}if(p){var y,S;const T=g==="y"?"width":"height",O=["top","left"].includes(Sr(o)),I=s.reference[v]-s.floating[T]+(O&&((y=l.offset)==null?void 0:y[v])||0)+(O?0:w.crossAxis),M=s.reference[v]+s.reference[T]+(O?0:((S=l.offset)==null?void 0:S[v])||0)-(O?w.crossAxis:0);E<I?E=I:E>M&&(E=M)}return{[g]:b,[v]:E}}}},A3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:l=()=>{},...c}=e,d=await os(t,c),p=Sr(n),m=co(n),g=Oi(n)==="x",{width:v,height:b}=r.floating;let E,_;p==="top"||p==="bottom"?(E=p,_=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(_=p,E=m==="end"?"top":"bottom");const w=b-d[E],y=v-d[_],S=!t.middlewareData.shift;let T=w,O=y;if(g){const M=v-d.left-d.right;O=m||S?od(y,M):M}else{const M=b-d.top-d.bottom;T=m||S?od(w,M):M}if(S&&!m){const M=$i(d.left,0),R=$i(d.right,0),D=$i(d.top,0),k=$i(d.bottom,0);g?O=v-2*(M!==0||R!==0?M+R:$i(d.left,d.right)):T=b-2*(D!==0||k!==0?D+k:$i(d.top,d.bottom))}await l({...t,availableWidth:O,availableHeight:T});const I=await o.getDimensions(s.floating);return v!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}};function $n(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){return $n(e).getComputedStyle(e)}function Bp(e){return e instanceof $n(e).Node}function Qr(e){return Bp(e)?(e.nodeName||"").toLowerCase():""}function Qn(e){return e instanceof $n(e).HTMLElement}function gn(e){return e instanceof $n(e).Element}function zp(e){return typeof ShadowRoot>"u"?!1:e instanceof $n(e).ShadowRoot||e instanceof ShadowRoot}function ss(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function O3(e){return["table","td","th"].includes(Qr(e))}function ld(e){const t=cd(),n=Kn(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cd(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function pa(e){return["html","body","#document"].includes(Qr(e))}const Gp=Math.min,as=Math.max,ha=Math.round;function Up(e){const t=Kn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qn(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,c=ha(n)!==s||ha(r)!==l;return c&&(n=s,r=l),{width:n,height:r,fallback:c}}function Hp(e){return gn(e)?e:e.contextElement}const Vp={x:1,y:1};function uo(e){const t=Hp(e);if(!Qn(t))return Vp;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:s}=Up(t);let l=(s?ha(n.width):n.width)/r,c=(s?ha(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const Wp={x:0,y:0};function qp(e,t,n){var r,o;if(t===void 0&&(t=!0),!cd())return Wp;const s=e?$n(e):window;return!n||t&&n!==s?Wp:{x:((r=s.visualViewport)==null?void 0:r.offsetLeft)||0,y:((o=s.visualViewport)==null?void 0:o.offsetTop)||0}}function Di(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Hp(e);let l=Vp;t&&(r?gn(r)&&(l=uo(r)):l=uo(e));const c=qp(s,n,r);let d=(o.left+c.x)/l.x,p=(o.top+c.y)/l.y,m=o.width/l.x,g=o.height/l.y;if(s){const v=$n(s),b=r&&gn(r)?$n(r):r;let E=v.frameElement;for(;E&&r&&b!==v;){const _=uo(E),w=E.getBoundingClientRect(),y=getComputedStyle(E);w.x+=(E.clientLeft+parseFloat(y.paddingLeft))*_.x,w.y+=(E.clientTop+parseFloat(y.paddingTop))*_.y,d*=_.x,p*=_.y,m*=_.x,g*=_.y,d+=w.x,p+=w.y,E=$n(E).frameElement}}return ua({width:m,height:g,x:d,y:p})}function Jr(e){return((Bp(e)?e.ownerDocument:e.document)||window.document).documentElement}function ga(e){return gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Yp(e){return Di(Jr(e)).left+ga(e).scrollLeft}function fo(e){if(Qr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zp(e)&&e.host||Jr(e);return zp(t)?t.host:t}function Zp(e){const t=fo(e);return pa(t)?t.ownerDocument.body:Qn(t)&&ss(t)?t:Zp(t)}function ls(e,t){var n;t===void 0&&(t=[]);const r=Zp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=$n(r);return o?t.concat(s,s.visualViewport||[],ss(r)?r:[]):t.concat(r,ls(r))}function Xp(e,t,n){let r;if(t==="viewport")r=function(o,s){const l=$n(o),c=Jr(o),d=l.visualViewport;let p=c.clientWidth,m=c.clientHeight,g=0,v=0;if(d){p=d.width,m=d.height;const b=cd();(!b||b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:p,height:m,x:g,y:v}}(e,n);else if(t==="document")r=function(o){const s=Jr(o),l=ga(o),c=o.ownerDocument.body,d=as(s.scrollWidth,s.clientWidth,c.scrollWidth,c.clientWidth),p=as(s.scrollHeight,s.clientHeight,c.scrollHeight,c.clientHeight);let m=-l.scrollLeft+Yp(o);const g=-l.scrollTop;return Kn(c).direction==="rtl"&&(m+=as(s.clientWidth,c.clientWidth)-d),{width:d,height:p,x:m,y:g}}(Jr(e));else if(gn(t))r=function(o,s){const l=Di(o,!0,s==="fixed"),c=l.top+o.clientTop,d=l.left+o.clientLeft,p=Qn(o)?uo(o):{x:1,y:1};return{width:o.clientWidth*p.x,height:o.clientHeight*p.y,x:d*p.x,y:c*p.y}}(t,n);else{const o=qp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ua(r)}function Kp(e,t){const n=fo(e);return!(n===t||!gn(n)||pa(n))&&(Kn(n).position==="fixed"||Kp(n,t))}function Qp(e,t){return Qn(e)&&Kn(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Jp(e,t){const n=$n(e);if(!Qn(e))return n;let r=Qp(e,t);for(;r&&O3(r)&&Kn(r).position==="static";)r=Qp(r,t);return r&&(Qr(r)==="html"||Qr(r)==="body"&&Kn(r).position==="static"&&!ld(r))?n:r||function(o){let s=fo(o);for(;Qn(s)&&!pa(s);){if(ld(s))return s;s=fo(s)}return null}(e)||n}function $3(e,t,n){const r=Qn(t),o=Jr(t),s=n==="fixed",l=Di(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(r||!r&&!s)if((Qr(t)!=="body"||ss(o))&&(c=ga(t)),Qn(t)){const p=Di(t,!0,s,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else o&&(d.x=Yp(o));return{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}const D3={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=n==="clippingAncestors"?function(p,m){const g=m.get(p);if(g)return g;let v=ls(p).filter(w=>gn(w)&&Qr(w)!=="body"),b=null;const E=Kn(p).position==="fixed";let _=E?fo(p):p;for(;gn(_)&&!pa(_);){const w=Kn(_),y=ld(_);y||w.position!=="fixed"||(b=null),(E?!y&&!b:!y&&w.position==="static"&&b&&["absolute","fixed"].includes(b.position)||ss(_)&&!y&&Kp(p,_))?v=v.filter(S=>S!==_):b=w,_=fo(_)}return m.set(p,v),v}(t,this._c):[].concat(n),l=[...s,r],c=l[0],d=l.reduce((p,m)=>{const g=Xp(t,m,o);return p.top=as(g.top,p.top),p.right=Gp(g.right,p.right),p.bottom=Gp(g.bottom,p.bottom),p.left=as(g.left,p.left),p},Xp(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Qn(n),s=Jr(n);if(n===s)return t;let l={scrollLeft:0,scrollTop:0},c={x:1,y:1};const d={x:0,y:0};if((o||!o&&r!=="fixed")&&((Qr(n)!=="body"||ss(s))&&(l=ga(n)),Qn(n))){const p=Di(n);c=uo(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+d.x,y:t.y*c.y-l.scrollTop*c.y+d.y}},isElement:gn,getDimensions:function(e){return Up(e)},getOffsetParent:Jp,getDocumentElement:Jr,getScale:uo,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Jp,s=this.getDimensions;return{reference:$3(t,await o(n),r),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Kn(e).direction==="rtl"};function M3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=!0,animationFrame:c=!1}=r,d=o||s?[...gn(e)?ls(e):e.contextElement?ls(e.contextElement):[],...ls(t)]:[];d.forEach(v=>{const b=!gn(v)&&v.toString().includes("V");!o||c&&!b||v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});let p,m=null;l&&(m=new ResizeObserver(()=>{n()}),gn(e)&&!c&&m.observe(e),gn(e)||!e.contextElement||c||m.observe(e.contextElement),m.observe(t));let g=c?Di(e):null;return c&&function v(){const b=Di(e);!g||b.x===g.x&&b.y===g.y&&b.width===g.width&&b.height===g.height||n(),g=b,p=requestAnimationFrame(v)}(),n(),()=>{var v;d.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(p)}}const P3=(e,t,n)=>{const r=new Map,o={platform:D3,...n},s={...o.platform,_c:r};return _3(e,t,{...o,platform:s})},R3=e=>{const{element:t,padding:n}=e;function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return t&&r(t)?t.current!=null?Np({element:t.current,padding:n}).fn(o):{}:t?Np({element:t,padding:n}).fn(o):{}}}};var ma=typeof document<"u"?h.useLayoutEffect:h.useEffect;function va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!va(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!va(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function e0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function t0(e,t){const n=e0(e);return Math.round(t*n)/n}function n0(e){const t=be.useRef(e);return ma(()=>{t.current=e}),t}function N3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:d,open:p}=e,[m,g]=be.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=be.useState(r);va(v,r)||b(r);const[E,_]=be.useState(null),[w,y]=be.useState(null),S=be.useCallback(B=>{B!=M.current&&(M.current=B,_(B))},[_]),T=be.useCallback(B=>{B!==R.current&&(R.current=B,y(B))},[y]),O=s||E,I=l||w,M=be.useRef(null),R=be.useRef(null),D=be.useRef(m),k=n0(d),q=n0(o),L=be.useCallback(()=>{if(!M.current||!R.current)return;const B={placement:t,strategy:n,middleware:v};q.current&&(B.platform=q.current),P3(M.current,R.current,B).then(V=>{const Q={...V,isPositioned:!0};U.current&&!va(D.current,Q)&&(D.current=Q,x_.flushSync(()=>{g(Q)}))})},[v,t,n,q]);ma(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[p]);const U=be.useRef(!1);ma(()=>(U.current=!0,()=>{U.current=!1}),[]),ma(()=>{if(O&&(M.current=O),I&&(R.current=I),O&&I){if(k.current)return k.current(O,I,L);L()}},[O,I,L,k]);const X=be.useMemo(()=>({reference:M,floating:R,setReference:S,setFloating:T}),[S,T]),N=be.useMemo(()=>({reference:O,floating:I}),[O,I]),K=be.useMemo(()=>{const B={position:n,left:0,top:0};if(!N.floating)return B;const V=t0(N.floating,m.x),Q=t0(N.floating,m.y);return c?{...B,transform:"translate("+V+"px, "+Q+"px)",...e0(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:Q}},[n,c,N.floating,m.x,m.y]);return be.useMemo(()=>({...m,update:L,refs:X,elements:N,floatingStyles:K}),[m,L,X,N,K])}const L3=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return h.createElement(Pe.svg,oe({},s,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))});function ba(e){const[t,n]=h.useState(void 0);return Zr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[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 l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const r0="Popper",[i0,po]=Ft(r0),[j3,o0]=i0(r0),k3=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(j3,{scope:t,anchor:r,onAnchorChange:o},n)},F3="PopperAnchor",B3=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=o0(F3,n),l=h.useRef(null),c=et(t,l);return h.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:h.createElement(Pe.div,oe({},o,{ref:c}))}),s0="PopperContent",[z3,G3]=i0(s0),U3=h.forwardRef((e,t)=>{var n,r,o,s,l,c,d,p;const{__scopePopper:m,side:g="bottom",sideOffset:v=0,align:b="center",alignOffset:E=0,arrowPadding:_=0,collisionBoundary:w=[],collisionPadding:y=0,sticky:S="partial",hideWhenDetached:T=!1,avoidCollisions:O=!0,onPlaced:I,...M}=e,R=o0(s0,m),[D,k]=h.useState(null),q=et(t,Ke=>k(Ke)),[L,U]=h.useState(null),X=ba(L),N=(n=X==null?void 0:X.width)!==null&&n!==void 0?n:0,K=(r=X==null?void 0:X.height)!==null&&r!==void 0?r:0,B=g+(b!=="center"?"-"+b:""),V=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},Q=Array.isArray(w)?w:[w],W=Q.length>0,G={padding:V,boundary:Q.filter(W3),altBoundary:W},{refs:Y,floatingStyles:de,placement:ue,isPositioned:fe,middlewareData:we}=N3({strategy:"fixed",placement:B,whileElementsMounted:M3,elements:{reference:R.anchor},middleware:[T3({mainAxis:v+K,alignmentAxis:E}),O&&S3({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?I3():void 0,...G}),O&&y3({...G}),A3({...G,apply:({elements:Ke,rects:wt,availableWidth:En,availableHeight:Nt})=>{const{width:kn,height:Rr}=wt.reference,it=Ke.floating.style;it.setProperty("--radix-popper-available-width",`${En}px`),it.setProperty("--radix-popper-available-height",`${Nt}px`),it.setProperty("--radix-popper-anchor-width",`${kn}px`),it.setProperty("--radix-popper-anchor-height",`${Rr}px`)}}),L&&R3({element:L,padding:_}),q3({arrowWidth:N,arrowHeight:K}),T&&C3({strategy:"referenceHidden"})]}),[ne,le]=l0(ue),me=rn(I);Zr(()=>{fe&&(me==null||me())},[fe,me]);const _e=(o=we.arrow)===null||o===void 0?void 0:o.x,pe=(s=we.arrow)===null||s===void 0?void 0:s.y,qe=((l=we.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[ce,bt]=h.useState();return Zr(()=>{D&&bt(window.getComputedStyle(D).zIndex)},[D]),h.createElement("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:fe?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(c=we.transformOrigin)===null||c===void 0?void 0:c.x,(d=we.transformOrigin)===null||d===void 0?void 0:d.y].join(" ")},dir:e.dir},h.createElement(z3,{scope:m,placedSide:ne,onArrowChange:U,arrowX:_e,arrowY:pe,shouldHideArrow:qe},h.createElement(Pe.div,oe({"data-side":ne,"data-align":le},M,{ref:q,style:{...M.style,animation:fe?void 0:"none",opacity:(p=we.hide)!==null&&p!==void 0&&p.referenceHidden?0:void 0}}))))}),a0="PopperArrow",H3={top:"bottom",right:"left",bottom:"top",left:"right"},V3=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=G3(a0,r),l=H3[s.placedSide];return h.createElement("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0}},h.createElement(L3,oe({},o,{ref:n,style:{...o.style,display:"block"}})))});function W3(e){return e!==null}const q3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,s,l;const{placement:c,rects:d,middlewareData:p}=t,g=((n=p.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=g?0:e.arrowWidth,b=g?0:e.arrowHeight,[E,_]=l0(c),w={start:"0%",center:"50%",end:"100%"}[_],y=((r=(o=p.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+v/2,S=((s=(l=p.arrow)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)+b/2;let T="",O="";return E==="bottom"?(T=g?w:`${y}px`,O=`${-b}px`):E==="top"?(T=g?w:`${y}px`,O=`${d.floating.height+b}px`):E==="right"?(T=`${-b}px`,O=g?w:`${S}px`):E==="left"&&(T=`${d.floating.width+b}px`,O=g?w:`${S}px`),{data:{x:T,y:O}}}});function l0(e){const[t,n="center"]=e.split("-");return[t,n]}const dd=k3,ud=B3,fd=U3,_a=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?On.createPortal(h.createElement(Pe.div,oe({},o,{ref:t})),r):null}),pd="rovingFocusGroup.onEntryFocus",Y3={bubbles:!1,cancelable:!0},hd="RovingFocusGroup",[gd,c0,Z3]=aa(hd),[X3,ho]=Ft(hd,[Z3]),[K3,Q3]=X3(hd),J3=h.forwardRef((e,t)=>h.createElement(gd.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(gd.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(e4,oe({},e,{ref:t}))))),e4=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:p,...m}=e,g=h.useRef(null),v=et(t,g),b=rs(s),[E=null,_]=hn({prop:l,defaultProp:c,onChange:d}),[w,y]=h.useState(!1),S=rn(p),T=c0(n),O=h.useRef(!1),[I,M]=h.useState(0);return h.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(pd,S),()=>R.removeEventListener(pd,S)},[S]),h.createElement(K3,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:E,onItemFocus:h.useCallback(R=>_(R),[_]),onItemShiftTab:h.useCallback(()=>y(!0),[]),onFocusableItemAdd:h.useCallback(()=>M(R=>R+1),[]),onFocusableItemRemove:h.useCallback(()=>M(R=>R-1),[])},h.createElement(Pe.div,oe({tabIndex:w||I===0?-1:0,"data-orientation":r},m,{ref:v,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{O.current=!0}),onFocus:Ee(e.onFocus,R=>{const D=!O.current;if(R.target===R.currentTarget&&D&&!w){const k=new CustomEvent(pd,Y3);if(R.currentTarget.dispatchEvent(k),!k.defaultPrevented){const q=T().filter(K=>K.focusable),L=q.find(K=>K.active),U=q.find(K=>K.id===E),N=[L,U,...q].filter(Boolean).map(K=>K.ref.current);d0(N)}}O.current=!1}),onBlur:Ee(e.onBlur,()=>y(!1))})))}),t4="RovingFocusGroupItem",n4=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...l}=e,c=Xn(),d=s||c,p=Q3(t4,n),m=p.currentTabStopId===d,g=c0(n),{onFocusableItemAdd:v,onFocusableItemRemove:b}=p;return h.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),h.createElement(gd.ItemSlot,{scope:n,id:d,focusable:r,active:o},h.createElement(Pe.span,oe({tabIndex:m?0:-1,"data-orientation":p.orientation},l,{ref:t,onMouseDown:Ee(e.onMouseDown,E=>{r?p.onItemFocus(d):E.preventDefault()}),onFocus:Ee(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:Ee(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){p.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const _=o4(E,p.orientation,p.dir);if(_!==void 0){E.preventDefault();let y=g().filter(S=>S.focusable).map(S=>S.ref.current);if(_==="last")y.reverse();else if(_==="prev"||_==="next"){_==="prev"&&y.reverse();const S=y.indexOf(E.currentTarget);y=p.loop?s4(y,S+1):y.slice(S+1)}setTimeout(()=>d0(y))}})})))}),r4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function i4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function o4(e,t,n){const r=i4(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return r4[r]}function d0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function s4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const md=J3,vd=n4;var a4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,xa=new WeakMap,Ea={},bd=0,u0=function(e){return e&&(e.host||u0(e.parentNode))},l4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=u0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},c4=function(e,t,n,r){var o=l4(t,Array.isArray(e)?e:[e]);Ea[n]||(Ea[n]=new WeakMap);var s=Ea[n],l=[],c=new Set,d=new Set(o),p=function(g){!g||c.has(g)||(c.add(g),p(g.parentNode))};o.forEach(p);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))m(v);else{var b=v.getAttribute(r),E=b!==null&&b!=="false",_=(go.get(v)||0)+1,w=(s.get(v)||0)+1;go.set(v,_),s.set(v,w),l.push(v),_===1&&E&&xa.set(v,!0),w===1&&v.setAttribute(n,"true"),E||v.setAttribute(r,"true")}})};return m(t),c.clear(),bd++,function(){l.forEach(function(g){var v=go.get(g)-1,b=s.get(g)-1;go.set(g,v),s.set(g,b),v||(xa.has(g)||g.removeAttribute(r),xa.delete(g)),b||g.removeAttribute(n)}),bd--,bd||(go=new WeakMap,go=new WeakMap,xa=new WeakMap,Ea={})}},_d=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=a4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),c4(r,o,n,"aria-hidden")):function(){return null}},gr=function(){return gr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},gr.apply(this,arguments)};function f0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function d4(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var wa="right-scroll-bar-position",ya="width-before-scroll-bar",u4="with-scroll-bars-hidden",f4="--removed-body-scroll-bar-size";function p4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function h4(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function g4(e,t){return h4(null,function(n){return e.forEach(function(r){return p4(r,n)})})}function m4(e){return e}function v4(e,t){t===void 0&&(t=m4);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(s),l=n}var d=function(){var m=l;l=[],m.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),n={push:function(m){l.push(m),p()},filter:function(m){return l=l.filter(m),n}}}};return o}function b4(e){e===void 0&&(e={});var t=v4(null);return t.options=gr({async:!0,ssr:!1},e),t}var p0=function(e){var t=e.sideCar,n=f0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return be.createElement(r,gr({},n))};p0.isSideCarExport=!0;function _4(e,t){return e.useMedium(t),p0}var h0=b4(),xd=function(){},Ca=be.forwardRef(function(e,t){var n=be.useRef(null),r=be.useState({onScrollCapture:xd,onWheelCapture:xd,onTouchMoveCapture:xd}),o=r[0],s=r[1],l=e.forwardProps,c=e.children,d=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,E=e.inert,_=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,S=f0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),T=v,O=g4([n,t]),I=gr(gr({},S),o);return be.createElement(be.Fragment,null,m&&be.createElement(T,{sideCar:h0,removeScrollBar:p,shards:g,noIsolation:b,inert:E,setCallbacks:s,allowPinchZoom:!!_,lockRef:n}),l?be.cloneElement(be.Children.only(c),gr(gr({},I),{ref:O})):be.createElement(y,gr({},I,{className:d,ref:O}),c))});Ca.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ca.classNames={fullWidth:ya,zeroRight:wa};var x4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=x4();return t&&e.setAttribute("nonce",t),e}function w4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function y4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var C4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=E4())&&(w4(t,n),y4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},T4=function(){var e=C4();return function(t,n){be.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},g0=function(){var e=T4(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},S4={left:0,top:0,right:0,gap:0},Ed=function(e){return parseInt(e||"",10)||0},I4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ed(n),Ed(r),Ed(o)]},A4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return S4;var t=I4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},O4=g0(),$4=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
28
|
-
.`.concat(
|
|
27
|
+
Check the top-level render call using <`+_e+">.")}return oe}}function at(j,oe){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var _e=zs(oe);if(Bo[_e])return;Bo[_e]=!0;var Te="";j&&j._owner&&j._owner!==xr.current&&(Te=" It was passed a child from "+N(j._owner.type)+"."),Fn(j),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_e,Te),Fn(null)}}function Tt(j,oe){{if(typeof j!="object")return;if(Array.isArray(j))for(var _e=0;_e<j.length;_e++){var Te=j[_e];Lr(Te)&&at(Te,oe)}else if(Lr(j))j._store&&(j._store.validated=!0);else if(j){var qe=M(j);if(typeof qe=="function"&&qe!==j.entries)for(var Be=qe.call(j),Me;!(Me=Be.next()).done;)Lr(Me.value)&&at(Me.value,oe)}}}function Nt(j){{var oe=j.type;if(oe==null||typeof oe=="string")return;var _e;if(typeof oe=="function")_e=oe.propTypes;else if(typeof oe=="object"&&(oe.$$typeof===p||oe.$$typeof===v))_e=oe.propTypes;else return;if(_e){var Te=N(oe);Rr(_e,j.props,"prop",Te,j)}else if(oe.PropTypes!==void 0&&!Er){Er=!0;var qe=N(oe);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof oe.getDefaultProps=="function"&&!oe.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bn(j){{for(var oe=Object.keys(j.props),_e=0;_e<oe.length;_e++){var Te=oe[_e];if(Te!=="children"&&Te!=="key"){Fn(j),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),Fn(null);break}}j.ref!==null&&(Fn(j),D("Invalid attribute `ref` supplied to `React.Fragment`."),Fn(null))}}function Lt(j,oe,_e,Te,qe,Be){{var Me=L(j);if(!Me){var Pe="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(Pe+=" 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 jt=Bs();jt?Pe+=jt:Pe+=jr();var lt;j===null?lt="null":Array.isArray(j)?lt="array":j!==void 0&&j.$$typeof===r?(lt="<"+(N(j.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):lt=typeof j,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",lt,Pe)}var pt=cn(j,oe,_e,qe,Be);if(pt==null)return pt;if(Me){var lr=oe.children;if(lr!==void 0)if(Te)if(Array.isArray(lr)){for(var kr=0;kr<lr.length;kr++)Tt(lr[kr],j);Object.freeze&&Object.freeze(lr)}else D("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 Tt(lr,j)}return j===e.Fragment?Bn(pt):Nt(pt),pt}}function Kt(j,oe,_e){return Lt(j,oe,_e,!0)}function Qt(j,oe,_e){return Lt(j,oe,_e,!1)}var wr=Qt,Jt=Kt;e.jsx=wr,e.jsxs=Jt}()}(Mc)),Mc}process.env.NODE_ENV==="production"?Ac.exports=E_():Ac.exports=w_();var d=Ac.exports;function Q1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Q1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ae(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Q1(e))&&(r&&(r+=" "),r+=t);return r}const ra={divider:"_divider_11gi1_1","sand-drag":"_sand-drag_11gi1_7","black-drag":"_black-drag_11gi1_13","vertical-divider":"_vertical-divider_11gi1_19"},y_={xl:"24px",lg:"16px",md:"12px",sm:"8px",xs:"4px"},C_={default:"","sand-drag":ra["sand-drag"],"black-drag":ra["black-drag"]},Zr=h.forwardRef((e,t)=>{const{color:n="gray-300",horizontalMargin:r=!0,verticalMargin:i="xs",variant:s="default",className:l,...c}=e,u=h.useMemo(()=>({margin:`${y_[i]} ${r?"8px":0}`}),[i,r]);return d.jsx("div",{ref:t,className:ae(ra.divider,`bg--${n}`,C_[s],r&&ra["vertical-divider"],l),style:u,...c})});Zr.displayName="Divider";const J1={text:"_text_1n5gj_1","text--size-lg":"_text--size-lg_1n5gj_6","text--size-md":"_text--size-md_1n5gj_12","text--size-sm":"_text--size-sm_1n5gj_18","text--size-xs":"_text--size-xs_1n5gj_24"},Ce=h.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:i="gray-900",className:s,...l}=e;return d.jsx("p",{ref:t,className:ae(J1.text,J1[`text--size-${n}`],`text--weight-${r}`,`text--${i}`,s),...l})});Ce.displayName="Text";const T_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M21 17.397v1.646a2 2 0 0 1-2 2c-8.837 0-16-7.163-16-16a2 2 0 0 1 2-2h1.646A2 2 0 0 1 8.503 4.3l.814 2.034a2 2 0 0 1-.963 2.532L8 9.043s.5 2.5 2.5 4.5 4.5 2.5 4.5 2.5l.177-.354a2 2 0 0 1 2.532-.963l2.034.814A2 2 0 0 1 21 17.397ZM15.938 8.09 14.426 6.2A1.944 1.944 0 0 1 14 4.986V4.9a1.856 1.856 0 0 1 3.169-1.312l.331.331.331-.331A1.856 1.856 0 0 1 21 4.899v.087c0 .442-.15.87-.426 1.214l-1.512 1.89a2 2 0 0 1-3.124 0Z"})}),S_=(()=>{const e=h.forwardRef(T_);return e.displayName="SvgCallLove",e})(),I_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M21 19.043v-1.646a2 2 0 0 0-1.257-1.857l-2.034-.814a2 2 0 0 0-2.532.963l-.177.354s-2.5-.5-4.5-2.5-2.5-4.5-2.5-4.5l.354-.177a2 2 0 0 0 .963-2.532L8.503 4.3a2 2 0 0 0-1.857-1.257H5a2 2 0 0 0-2 2c0 8.837 7.163 16 16 16a2 2 0 0 0 2-2Z"})}),ia=(()=>{const e=h.forwardRef(I_);return e.displayName="SvgCall",e})(),O_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 2H6a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V6a4 4 0 0 0-4-4Zm-1.408 7.46a.75.75 0 0 0-1.184-.92l-4.007 5.151a.25.25 0 0 1-.365.033l-2.534-2.281a.75.75 0 1 0-1.004 1.114l2.535 2.282a1.75 1.75 0 0 0 2.552-.227l4.007-5.152Z",clipRule:"evenodd"})}),Pc=(()=>{const e=h.forwardRef(O_);return e.displayName="SvgCheckRectangle",e})(),A_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M22 7.292h-6.543l3.641-5.097A4.002 4.002 0 0 1 22 6.042v1.25Z"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 8.792h20v9.25a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-9.25Zm8 5.053v2.394c0 1.198 1.335 1.913 2.332 1.248l1.796-1.197a1.5 1.5 0 0 0 0-2.496l-1.796-1.197c-.997-.665-2.332.05-2.332 1.248Z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",d:"M5.614 7.292H2v-1.25a4 4 0 0 1 4-4h3.364l-3.75 5.25Zm1.843 0 3.75-5.25h6.157l-3.75 5.25H7.457Z"})]}),ep=(()=>{const e=h.forwardRef(A_);return e.displayName="SvgClapperboard1",e})(),$_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 9.84645C8.77924 10.0229 8.53299 10.0515 8.36424 9.91034L6 7.93298L3.63576 9.91034C3.46701 10.0515 3.22076 10.0229 3.08576 9.84645C2.95076 9.67003 2.97812 9.41259 3.14687 9.27145L5.75555 7.08964C5.89847 6.97012 6.10153 6.97012 6.24444 7.08964L8.85313 9.27145C9.02188 9.41259 9.04924 9.67003 8.91424 9.84645Z",fill:"currentColor"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 2.15355C3.22076 1.97712 3.46701 1.94852 3.63576 2.08966L6 4.06702L8.36424 2.08966C8.53299 1.94852 8.77924 1.97712 8.91424 2.15355C9.04924 2.32997 9.02188 2.58741 8.85313 2.72855L6.24445 4.91036C6.10153 5.02988 5.89847 5.02988 5.75556 4.91036L3.14687 2.72855C2.97812 2.58741 2.95076 2.32997 3.08576 2.15355Z",fill:"currentColor"})]}),D_=(()=>{const e=h.forwardRef($_);return e.displayName="SvgCollapse",e})(),M_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M6 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1H6V5ZM4 9.5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1H4v-1Z"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 14a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-3Zm7.25 1a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"})]}),P_=(()=>{const e=h.forwardRef(M_);return e.displayName="SvgCollection",e})(),R_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm2.861-13.954-6.27 2.09c-.788.263-.788 1.377 0 1.64l2.315.771c.258.086.46.289.547.547l.772 2.315c.262.788 1.377.788 1.64 0l2.09-6.27a.864.864 0 0 0-1.094-1.093Z",clipRule:"evenodd"})}),tp=(()=>{const e=h.forwardRef(R_);return e.displayName="SvgCompass",e})(),N_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.225 8.65C21.055 7.604 22 6.166 22 5.043c0-2-1.343-3-3-3s-3 1-3 3.21c0 1.204.892 2.519 1.703 3.466.68.795 1.871.75 2.522-.07ZM19 6.043a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-13 16c2 0 4-3.79 4-6a4 4 0 1 0-8 0c0 2.21 2 6 4 6Zm0-4.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",d:"M17.53 12.073a.75.75 0 0 0-1.06-1.06l-.161.16a.75.75 0 1 0 1.06 1.061l.161-.16Zm-2.089 2.09a.75.75 0 0 0-1.06-1.061l-.322.321a.75.75 0 1 0 1.06 1.061l.322-.321Zm-2.25 2.25a.75.75 0 0 0-1.06-1.061l-.161.16a.75.75 0 0 0 1.06 1.061l.161-.16Z"})]}),Rc=(()=>{const e=h.forwardRef(N_);return e.displayName="SvgDestination0200",e})(),L_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),np=(()=>{const e=h.forwardRef(L_);return e.displayName="SvgDirectionDown01Chevron",e})(),j_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.469 6.457a.75.75 0 0 1 .117 1.055l-3.626 4.531 3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),k_=(()=>{const e=h.forwardRef(j_);return e.displayName="SvgDirectionLeft01Chevron",e})(),F_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Z",clipRule:"evenodd"})}),Nc=(()=>{const e=h.forwardRef(F_);return e.displayName="SvgDirectionRightChevron",e})(),B_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M11.289 3H8.123a4 4 0 0 0-3.88 3.03L2.62 12.515A2 2 0 0 0 4.561 15H9.5l-1.307 2.24c-.972 1.667.23 3.76 2.16 3.76H11.5l3.868-6.77a1 1 0 0 0 .132-.496V5.535a1 1 0 0 0-.445-.832l-1.547-1.031A4 4 0 0 0 11.288 3ZM20 15h-1a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2Z"})}),z_=(()=>{const e=h.forwardRef(B_);return e.displayName="SvgDislike",e})(),G_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M2.75 6A3.25 3.25 0 0 1 6 2.75h6a.75.75 0 0 0 0-1.5H6A4.75 4.75 0 0 0 1.25 6v12A4.75 4.75 0 0 0 6 22.75h12A4.75 4.75 0 0 0 22.75 18v-6a.75.75 0 0 0-1.5 0v6A3.25 3.25 0 0 1 18 21.25H6A3.25 3.25 0 0 1 2.75 18V6Z"}),d.jsx("path",{fill:"currentColor",d:"M16.419 2.677a2.312 2.312 0 0 1 3.27 0l1.634 1.635a2.312 2.312 0 0 1 0 3.269l-1.45 1.45a16.081 16.081 0 0 1-.357-.183c-.835-.44-1.827-1.057-2.567-1.797-.74-.74-1.357-1.732-1.797-2.567a16.251 16.251 0 0 1-.182-.358l1.449-1.449Zm-.53 5.434c.875.876 1.989 1.565 2.87 2.033l-5.699 5.7a2.312 2.312 0 0 1-1.308.654l-3.432.49a1.156 1.156 0 0 1-1.308-1.308l.49-3.432c.071-.495.3-.954.654-1.308l5.7-5.7c.468.882 1.157 1.996 2.033 2.871Z"})]}),rp=(()=>{const e=h.forwardRef(G_);return e.displayName="SvgEditRectangle",e})(),H_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 7.15355C3.22076 6.97713 3.46701 6.94852 3.63576 7.08966L6 9.06702L8.36424 7.08966C8.53299 6.94852 8.77924 6.97712 8.91424 7.15355C9.04924 7.32997 9.02188 7.58741 8.85313 7.72855L6.24444 9.91036C6.10153 10.0299 5.89847 10.0299 5.75556 9.91036L3.14687 7.72855C2.97812 7.58741 2.95076 7.32997 3.08576 7.15355Z",fill:"currentColor"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 4.84645C8.77924 5.02288 8.53299 5.05148 8.36424 4.91034L6 2.93298L3.63576 4.91034C3.46701 5.05148 3.22076 5.02288 3.08576 4.84645C2.95076 4.67003 2.97812 4.41259 3.14687 4.27145L5.75555 2.08964C5.89847 1.97012 6.10153 1.97012 6.24444 2.08964L8.85313 4.27145C9.02188 4.41259 9.04924 4.67003 8.91424 4.84645Z",fill:"currentColor"})]}),U_=(()=>{const e=h.forwardRef(H_);return e.displayName="SvgExpand",e})(),V_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M2.5 5.793a3.25 3.25 0 0 1 3.25-3.25h2a.75.75 0 0 0 0-1.5h-2A4.75 4.75 0 0 0 1 5.793v2a.75.75 0 0 0 1.5 0v-2Zm13.25-4.75a.75.75 0 0 0 0 1.5h2A3.25 3.25 0 0 1 21 5.793v2a.75.75 0 0 0 1.5 0v-2a4.75 4.75 0 0 0-4.75-4.75h-2Zm6.75 14.75a.75.75 0 0 0-1.5 0v2a3.25 3.25 0 0 1-3.25 3.25h-2a.75.75 0 0 0 0 1.5h2a4.75 4.75 0 0 0 4.75-4.75v-2Zm-20 .556a.75.75 0 0 0-1.5 0v1.444a4.75 4.75 0 0 0 4.75 4.75h2a.75.75 0 0 0 0-1.5h-2a3.25 3.25 0 0 1-3.25-3.25v-1.444Zm16.79-3.455c-1.423 1.473-4.265 3.899-7.54 3.899-3.274 0-6.117-2.426-7.54-3.899-.613-.634-.613-1.568 0-2.202 1.423-1.473 4.266-3.899 7.54-3.899s6.117 2.426 7.54 3.899c.613.634.613 1.568 0 2.202Z"})}),ip=(()=>{const e=h.forwardRef(V_);return e.displayName="SvgEyeScannerSmart",e})(),W_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M14 5h2a3 3 0 0 1 2.905 2.25H21a.75.75 0 0 1 0 1.5h-2.095A3.001 3.001 0 0 1 16 11h-2a3 3 0 1 1 0-6ZM3 7.25a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H3Zm13 8a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-5ZM10 13H8a3.001 3.001 0 0 0-2.905 2.25H3a.75.75 0 0 0 0 1.5h2.095A3.001 3.001 0 0 0 8 19h2a3 3 0 1 0 0-6Z"})}),op=(()=>{const e=h.forwardRef(W_);return e.displayName="SvgFilter01",e})(),q_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M22 17.042v-7a4 4 0 0 0-4-4h-2.667a4 4 0 0 1-2.4-.8l-1.866-1.4a4 4 0 0 0-2.4-.8H6a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z"})}),Y_=(()=>{const e=h.forwardRef(q_);return e.displayName="SvgFolder03",e})(),Z_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M2 6.417v11.25c0 .222.02.439.06.649l2.835-6.449c.923-2.15 3-3.575 5.334-3.575h9.076c-.18-1.687-1.557-3-3.229-3h-3.353c-.578 0-1.146-.16-1.644-.464L8.91 3.506a3.156 3.156 0 0 0-1.643-.464H5.248C3.454 3.042 2 4.553 2 6.417Z"}),d.jsx("path",{fill:"currentColor",d:"M10.229 9.792h9.602c1.683 0 2.723 1.908 1.857 3.408l-3.267 5.657c-.783 1.356-2.193 2.185-3.714 2.185H5.248a3.18 3.18 0 0 1-2.308-1l3.33-7.578c.696-1.625 2.247-2.672 3.959-2.672Z"})]}),X_=(()=>{const e=h.forwardRef(Z_);return e.displayName="SvgFolder",e})(),K_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M12 3.792a8.25 8.25 0 0 0-8.25 8.25v1a3.75 3.75 0 0 1 6 3v2a3.75 3.75 0 1 1-7.5 0v-6c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75v6a3.75 3.75 0 1 1-7.5 0v-2a3.75 3.75 0 0 1 6-3v-1A8.25 8.25 0 0 0 12 3.792Z"})}),sp=(()=>{const e=h.forwardRef(K_);return e.displayName="SvgHeadphones1",e})(),Q_=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M8.5 11.042a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.25 6.042A4.75 4.75 0 0 1 6 1.292h12a4.75 4.75 0 0 1 4.75 4.75v12a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12ZM6 2.792a3.25 3.25 0 0 0-3.25 3.25v8.5l2.522 1.681a4 4 0 0 0 5.047-.5l3.362-3.362a4 4 0 0 1 5.048-.5l2.38 1.587c.049.033.096.067.141.103V6.042A3.25 3.25 0 0 0 18 2.792H6Z",clipRule:"evenodd"})]}),ap=(()=>{const e=h.forwardRef(Q_);return e.displayName="SvgImage1",e})(),J_=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M12.711 21h3.166a4 4 0 0 0 3.88-3.03l1.622-6.485A2 2 0 0 0 19.439 9H14.5l1.307-2.24c.972-1.667-.23-3.76-2.16-3.76H12.5L8.632 9.77a1 1 0 0 0-.132.496v8.199a1 1 0 0 0 .445.832l1.547 1.031a4 4 0 0 0 2.22.672ZM4 9h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"})}),e7=(()=>{const e=h.forwardRef(J_);return e.displayName="SvgLike",e})(),t7=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M18.137 5.907a3.964 3.964 0 0 0-5.606 0l-1.667 1.667a.75.75 0 1 1-1.06-1.06l1.666-1.668a5.464 5.464 0 1 1 7.728 7.728L17.53 14.24a.75.75 0 0 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606Z"}),d.jsx("path",{fill:"currentColor",d:"M14.652 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 1 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z"}),d.jsx("path",{fill:"currentColor",d:"M11.47 18.18a3.964 3.964 0 1 1-5.606-5.606l1.667-1.667a.75.75 0 0 0-1.06-1.06l-1.667 1.666a5.464 5.464 0 0 0 7.727 7.728l1.667-1.667a.75.75 0 0 0-1.061-1.06L11.47 18.18Z"})]}),oa=(()=>{const e=h.forwardRef(t7);return e.displayName="SvgLink",e})(),n7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M12 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm7.929-12.268a2 2 0 1 1-2-3.464 2 2 0 0 1 2 3.464ZM3.34 17a2 2 0 1 0 3.465-2 2 2 0 0 0-3.464 2Zm14.589.732a2 2 0 1 1 2-3.464 2 2 0 0 1-2 3.464ZM3.34 7a2 2 0 1 0 3.465 2A2 2 0 0 0 3.34 7Z"})}),sa=(()=>{const e=h.forwardRef(n7);return e.displayName="SvgLoading",e})(),r7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.75 6.75a3.25 3.25 0 0 1 6.5 0V8h-6.5V6.75Zm-1.5 1.32V6.75a4.75 4.75 0 0 1 9.5 0v1.32A4.001 4.001 0 0 1 20 12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4v-6c0-1.953 1.4-3.579 3.25-3.93ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),i7=(()=>{const e=h.forwardRef(r7);return e.displayName="SvgLock",e})(),o7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 3.043a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4H6Zm.416 4.376a.75.75 0 1 0-.832 1.248l3.781 2.52a4.75 4.75 0 0 0 5.27 0l3.781-2.52a.75.75 0 1 0-.832-1.248l-3.781 2.52a3.25 3.25 0 0 1-3.606 0L6.416 7.42Z",clipRule:"evenodd"})}),Lc=(()=>{const e=h.forwardRef(o7);return e.displayName="SvgMail",e})(),s7=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M21 2.293h-6a.75.75 0 0 0 0 1.5h4.19l-9.72 9.72a.75.75 0 0 0 1.06 1.06l9.72-9.72v4.19a.75.75 0 0 0 1.5 0v-6a.75.75 0 0 0-.75-.75Z"}),d.jsx("path",{fill:"currentColor",d:"M7 4.293a4.75 4.75 0 0 0-4.75 4.75v8A4.75 4.75 0 0 0 7 21.793h8a4.75 4.75 0 0 0 4.75-4.75v-5a.75.75 0 0 0-1.5 0v5a3.25 3.25 0 0 1-3.25 3.25H7a3.25 3.25 0 0 1-3.25-3.25v-8A3.25 3.25 0 0 1 7 5.793h5a.75.75 0 0 0 0-1.5H7Z"})]}),a7=(()=>{const e=h.forwardRef(s7);return e.displayName="SvgMaximize",e})(),l7=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("g",{clipPath:"url(#notes_01_svg__a)",children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.281.793a.75.75 0 0 1 .75.75v1.5h.25a4 4 0 0 1 4 4v10.5a4 4 0 0 1-4 4h-10a4 4 0 0 1-4-4v-10.5a4 4 0 0 1 4-4h.25v-1.5a.75.75 0 0 1 1.5 0v1.5h6.5v-1.5a.75.75 0 0 1 .75-.75Zm1.75 11.75a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-.75-3.25a.75.75 0 1 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6Zm.75 7.25a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-9.25-8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"notes_01_svg__a",children:d.jsx("path",{fill:"#fff",d:"M0 .043h24v24H0z"})})})]}),c7=(()=>{const e=h.forwardRef(l7);return e.displayName="SvgNotes01",e})(),u7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M20 3H8a2 2 0 0 0-2 2v3a1 1 0 0 1-1 1 3 3 0 1 0 0 6 1 1 0 0 1 1 1v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1 3 3 0 1 1 6 0 1 1 0 0 0 1 1h2a2 2 0 0 0 2-2v-3a1 1 0 0 0-1-1 3 3 0 1 1 0-6 1 1 0 0 0 1-1V5a2 2 0 0 0-2-2Z"})}),lp=(()=>{const e=h.forwardRef(u7);return e.displayName="SvgPlugin",e})(),d7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.75 6a.75.75 0 0 0-1.5 0v5.25H6a.75.75 0 0 0 0 1.5h5.25V18a.75.75 0 0 0 1.5 0v-5.25H18a.75.75 0 0 0 0-1.5h-5.25V6Z",clipRule:"evenodd"})}),f7=(()=>{const e=h.forwardRef(d7);return e.displayName="SvgPlus",e})(),p7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M7.5 6.043a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3h-3a3 3 0 0 1-3-3v-12Zm10.5 1h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-1v-10Zm-13 10h1v-10H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2Z"})}),cp=(()=>{const e=h.forwardRef(p7);return e.displayName="SvgPotrait02Grid",e})(),h7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4Zm9.359 6.641a.75.75 0 0 1 0 1.061L13.06 12l2.298 2.298a.75.75 0 0 1-1.06 1.06L12 13.062 9.702 15.36a.75.75 0 1 1-1.06-1.06l2.296-2.3-2.297-2.298a.75.75 0 0 1 1.06-1.06l2.3 2.297 2.297-2.298a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})}),jc=(()=>{const e=h.forwardRef(h7);return e.displayName="SvgRemoveRectangle",e})(),g7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"m9.454 4.303 11.23 5.612c1.755.877 1.755 3.379 0 4.256l-11.23 5.612c-1.998.998-4.147-1.055-3.24-3.094l1.636-3.68c.032-.07.06-.143.084-.216H12a.75.75 0 0 0 0-1.5H7.934a2.376 2.376 0 0 0-.084-.216l-1.636-3.68c-.907-2.04 1.242-4.092 3.24-3.094Zm-8.204 5.74a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75Zm.75 3.25a.75.75 0 0 0 0 1.5h2a.75.75 0 0 0 0-1.5H2Z"})}),m7=(()=>{const e=h.forwardRef(g7);return e.displayName="SvgSentFast",e})(),v7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M11.5 2.043a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-18a1 1 0 0 0-1-1h-1Zm-2 10H5.414a1 1 0 0 1-.707-.293l-2-2a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 .707-.293H9.5v6Zm5 0H19l3 3-3 3h-4.5v-6Z"})}),up=(()=>{const e=h.forwardRef(v7);return e.displayName="SvgSignpost00",e})(),b7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.027 3.297a4.281 4.281 0 0 0-6.054 0l-5.72 5.719a4.281 4.281 0 0 0 0 6.054l5.72 5.719a4.281 4.281 0 0 0 6.054 0l5.72-5.719a4.281 4.281 0 0 0 0-6.054l-5.72-5.72Zm-5.91 6.276a.75.75 0 0 0-1.062-1.06L6.763 9.806a1.75 1.75 0 0 0 0 2.474l1.292 1.293a.75.75 0 1 0 1.061-1.06l-.72-.72H10c.69 0 1.25.56 1.25 1.25v3a.75.75 0 0 0 1.5 0v-3c0-.69.56-1.25 1.25-1.25h1.604l-.72.72a.75.75 0 0 0 1.06 1.06l1.293-1.293a1.75 1.75 0 0 0 0-2.474l-1.292-1.293a.75.75 0 1 0-1.061 1.06l.72.72H14c-.788 0-1.499.331-2 .863a2.742 2.742 0 0 0-2-.863H8.396l.72-.72Z",clipRule:"evenodd"})}),_7=(()=>{const e=h.forwardRef(b7);return e.displayName="SvgTurn0100",e})(),x7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.184 5.126A3.25 3.25 0 0 1 15.25 6.75V8H8a4 4 0 0 0-4 4v6a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-6c0-1.953-1.4-3.579-3.25-3.93V6.75a4.75 4.75 0 0 0-8.864-2.376.75.75 0 0 0 1.298.752ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),E7=(()=>{const e=h.forwardRef(x7);return e.displayName="SvgUnlock",e})(),w7=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.968 4.166c.886-1.555 3.178-1.555 4.064 0l7.672 13.466c.86 1.511-.26 3.368-2.032 3.368H4.328c-1.773 0-2.893-1.857-2.032-3.368L9.968 4.166ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8a.75.75 0 1 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Z",clipRule:"evenodd"})}),y7=(()=>{const e=h.forwardRef(w7);return e.displayName="SvgWarningError",e})();function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(this,arguments)}function C7(e,t){const n=h.createContext(t);function r(s){const{children:l,...c}=s,u=h.useMemo(()=>c,Object.values(c));return h.createElement(n.Provider,{value:u},l)}function i(s){const l=h.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function Bt(e,t=[]){let n=[];function r(s,l){const c=h.createContext(l),u=n.length;n=[...n,l];function p(g){const{scope:v,children:b,...E}=g,_=(v==null?void 0:v[e][u])||c,w=h.useMemo(()=>E,Object.values(E));return h.createElement(_.Provider,{value:w},b)}function m(g,v){const b=(v==null?void 0:v[e][u])||c,E=h.useContext(b);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return p.displayName=s+"Provider",[p,m]}const i=()=>{const s=n.map(l=>h.createContext(l));return function(c){const u=(c==null?void 0:c[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return i.scopeName=e,[r,T7(i,...t)]}function T7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const l=r.reduce((c,{useScope:u,scopeName:p})=>{const g=u(s)[`__scope${p}`];return{...c,...g}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function S7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function kc(...e){return t=>e.forEach(n=>S7(n,t))}function et(...e){return h.useCallback(kc(...e),e)}const Si=h.forwardRef((e,t)=>{const{children:n,...r}=e,i=h.Children.toArray(n),s=i.find(I7);if(s){const l=s.props.children,c=i.map(u=>u===s?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:u);return h.createElement(Fc,se({},r,{ref:t}),h.isValidElement(l)?h.cloneElement(l,void 0,c):null)}return h.createElement(Fc,se({},r,{ref:t}),n)});Si.displayName="Slot";const Fc=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...O7(r,n.props),ref:t?kc(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});Fc.displayName="SlotClone";const dp=({children:e})=>h.createElement(h.Fragment,null,e);function I7(e){return h.isValidElement(e)&&e.type===dp}function O7(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...c)=>{s(...c),i(...c)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function aa(e){const t=e+"CollectionProvider",[n,r]=Bt(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:E,children:_}=b,w=h.useRef(null),y=h.useRef(new Map).current;return h.createElement(i,{scope:E,itemMap:y,collectionRef:w},_)},c=e+"CollectionSlot",u=h.forwardRef((b,E)=>{const{scope:_,children:w}=b,y=s(c,_),S=et(E,y.collectionRef);return h.createElement(Si,{ref:S},w)}),p=e+"CollectionItemSlot",m="data-radix-collection-item",g=h.forwardRef((b,E)=>{const{scope:_,children:w,...y}=b,S=h.useRef(null),T=et(E,S),A=s(p,_);return h.useEffect(()=>(A.itemMap.set(S,{ref:S,...y}),()=>void A.itemMap.delete(S))),h.createElement(Si,{[m]:"",ref:T},w)});function v(b){const E=s(e+"CollectionConsumer",b);return h.useCallback(()=>{const w=E.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((A,I)=>y.indexOf(A.ref.current)-y.indexOf(I.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:l,Slot:u,ItemSlot:g},v,r]}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function rn(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function hn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=A7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r,c=rn(n),u=h.useCallback(p=>{if(s){const g=typeof p=="function"?p(e):p;g!==e&&c(g)}else i(p)},[s,e,i,c]);return[l,u]}function A7({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,i=h.useRef(r),s=rn(t);return h.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}const Ne=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=h.forwardRef((r,i)=>{const{asChild:s,...l}=r,c=s?Si:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(c,se({},l,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Bc(e,t){e&&On.flushSync(()=>e.dispatchEvent(t))}const Xr=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function $7(e,t){return h.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const on=e=>{const{present:t,children:n}=e,r=D7(t),i=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),s=et(r.ref,i.ref);return typeof n=="function"||r.isPresent?h.cloneElement(i,{ref:s}):null};on.displayName="Presence";function D7(e){const[t,n]=h.useState(),r=h.useRef({}),i=h.useRef(e),s=h.useRef("none"),l=e?"mounted":"unmounted",[c,u]=$7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const p=la(r.current);s.current=c==="mounted"?p:"none"},[c]),Xr(()=>{const p=r.current,m=i.current;if(m!==e){const v=s.current,b=la(p);e?u("MOUNT"):b==="none"||(p==null?void 0:p.display)==="none"?u("UNMOUNT"):u(m&&v!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Xr(()=>{if(t){const p=g=>{const b=la(r.current).includes(g.animationName);g.target===t&&b&&On.flushSync(()=>u("ANIMATION_END"))},m=g=>{g.target===t&&(s.current=la(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:h.useCallback(p=>{p&&(r.current=getComputedStyle(p)),n(p)},[])}}function la(e){return(e==null?void 0:e.animationName)||"none"}const M7=ve.useId||(()=>{});let P7=0;function Zn(e){const[t,n]=ve.useState(M7());return Xr(()=>{n(r=>r??String(P7++))},[e]),t?`radix-${t}`:""}const fp="Collapsible",[R7,pp]=Bt(fp),[N7,zc]=R7(fp),L7=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:l,...c}=e,[u=!1,p]=hn({prop:r,defaultProp:i,onChange:l});return h.createElement(N7,{scope:n,disabled:s,contentId:Zn(),open:u,onOpenToggle:h.useCallback(()=>p(m=>!m),[p])},h.createElement(Ne.div,se({"data-state":Gc(u),"data-disabled":s?"":void 0},c,{ref:t})))}),j7="CollapsibleTrigger",k7=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=zc(j7,n);return h.createElement(Ne.button,se({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Gc(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:Ee(e.onClick,i.onOpenToggle)}))}),hp="CollapsibleContent",F7=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=zc(hp,e.__scopeCollapsible);return h.createElement(on,{present:n||i.open},({present:s})=>h.createElement(B7,se({},r,{ref:t,present:s})))}),B7=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,l=zc(hp,n),[c,u]=h.useState(r),p=h.useRef(null),m=et(t,p),g=h.useRef(0),v=g.current,b=h.useRef(0),E=b.current,_=l.open||c,w=h.useRef(_),y=h.useRef();return h.useEffect(()=>{const S=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(S)},[]),Xr(()=>{const S=p.current;if(S){y.current=y.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const T=S.getBoundingClientRect();g.current=T.height,b.current=T.width,w.current||(S.style.transitionDuration=y.current.transitionDuration,S.style.animationName=y.current.animationName),u(r)}},[l.open,r]),h.createElement(Ne.div,se({"data-state":Gc(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!_},s,{ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style}}),_&&i)});function Gc(e){return e?"open":"closed"}const z7=L7,G7=k7,H7=F7,U7=h.createContext(void 0);function ns(e){const t=h.useContext(U7);return e||t||"ltr"}const Kr="Accordion",V7=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Hc,W7,q7]=aa(Kr),[ca,Yj]=Bt(Kr,[q7,pp]),Uc=pp(),gp=h.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return h.createElement(Hc.Provider,{scope:e.__scopeAccordion},n==="multiple"?h.createElement(K7,se({},s,{ref:t})):h.createElement(X7,se({},i,{ref:t})))});gp.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[mp,Y7]=ca(Kr),[vp,Z7]=ca(Kr,{collapsible:!1}),X7=h.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...l}=e,[c,u]=hn({prop:n,defaultProp:r,onChange:i});return h.createElement(mp,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:u,onItemClose:h.useCallback(()=>s&&u(""),[s,u])},h.createElement(vp,{scope:e.__scopeAccordion,collapsible:s},h.createElement(bp,se({},l,{ref:t}))))}),K7=h.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[l=[],c]=hn({prop:n,defaultProp:r,onChange:i}),u=h.useCallback(m=>c((g=[])=>[...g,m]),[c]),p=h.useCallback(m=>c((g=[])=>g.filter(v=>v!==m)),[c]);return h.createElement(mp,{scope:e.__scopeAccordion,value:l,onItemOpen:u,onItemClose:p},h.createElement(vp,{scope:e.__scopeAccordion,collapsible:!0},h.createElement(bp,se({},s,{ref:t}))))}),[Q7,ua]=ca(Kr),bp=h.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...l}=e,c=h.useRef(null),u=et(c,t),p=W7(n),g=ns(i)==="ltr",v=Ee(e.onKeyDown,b=>{var E;if(!V7.includes(b.key))return;const _=b.target,w=p().filter(k=>{var Y;return!((Y=k.ref.current)!==null&&Y!==void 0&&Y.disabled)}),y=w.findIndex(k=>k.ref.current===_),S=w.length;if(y===-1)return;b.preventDefault();let T=y;const A=0,I=S-1,M=()=>{T=y+1,T>I&&(T=A)},R=()=>{T=y-1,T<A&&(T=I)};switch(b.key){case"Home":T=A;break;case"End":T=I;break;case"ArrowRight":s==="horizontal"&&(g?M():R());break;case"ArrowDown":s==="vertical"&&M();break;case"ArrowLeft":s==="horizontal"&&(g?R():M());break;case"ArrowUp":s==="vertical"&&R();break}const D=T%S;(E=w[D].ref.current)===null||E===void 0||E.focus()});return h.createElement(Q7,{scope:n,disabled:r,direction:i,orientation:s},h.createElement(Hc.Slot,{scope:n},h.createElement(Ne.div,se({},l,{"data-orientation":s,ref:u,onKeyDown:r?void 0:v}))))}),Vc="AccordionItem",[J7,Wc]=ca(Vc),e3=h.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=ua(Vc,n),l=Y7(Vc,n),c=Uc(n),u=Zn(),p=r&&l.value.includes(r)||!1,m=s.disabled||e.disabled;return h.createElement(J7,{scope:n,open:p,disabled:m,triggerId:u},h.createElement(z7,se({"data-orientation":s.orientation,"data-state":xp(p)},c,i,{ref:t,disabled:m,open:p,onOpenChange:g=>{g?l.onItemOpen(r):l.onItemClose(r)}})))}),t3="AccordionHeader",n3=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ua(Kr,n),s=Wc(t3,n);return h.createElement(Ne.h3,se({"data-orientation":i.orientation,"data-state":xp(s.open),"data-disabled":s.disabled?"":void 0},r,{ref:t}))}),_p="AccordionTrigger",r3=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ua(Kr,n),s=Wc(_p,n),l=Z7(_p,n),c=Uc(n);return h.createElement(Hc.ItemSlot,{scope:n},h.createElement(G7,se({"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId},c,r,{ref:t})))}),i3="AccordionContent",o3=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ua(Kr,n),s=Wc(i3,n),l=Uc(n);return h.createElement(H7,se({role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation},l,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function xp(e){return e?"open":"closed"}const qc=gp,Yc=e3,Zc=n3,Xc=r3,Kc=o3,Ii={"accordion--root":"_accordion--root_qw4g3_1","accordion--item":"_accordion--item_qw4g3_11","accordion--icon":"_accordion--icon_qw4g3_26","accordion--trigger":"_accordion--trigger_qw4g3_32",divider:"_divider_qw4g3_46","accordion--content":"_accordion--content_qw4g3_51"},Ep=h.forwardRef((e,t)=>{const{children:n,collapsible:r=!0,...i}=e;return d.jsx(qc,{...i,collapsible:r,ref:t,className:Ii["accordion--root"],type:"single",children:n})});Ep.displayName="Accordion";const wp=h.forwardRef(({label:e,children:t,value:n,className:r,contentClassName:i,...s},l)=>d.jsxs(Yc,{className:ae(Ii["accordion--item"],r),value:n,...s,children:[d.jsx(Zc,{className:Ii["accordion--header"],children:d.jsxs(Xc,{className:Ii["accordion--trigger"],children:[typeof e=="string"?d.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-1000",children:e}):e,d.jsx(np,{className:Ii["accordion--icon"],"aria-hidden":!0})]})}),d.jsxs(Kc,{ref:l,className:ae(Ii["accordion--content"],i),children:[d.jsx(Zr,{className:Ii.divider,color:"gray-300"}),t]})]}));wp.displayName="AccordionPanel";function s3(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e);h.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Qc="dismissableLayer.update",a3="dismissableLayer.pointerDownOutside",l3="dismissableLayer.focusOutside";let yp;const Cp=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rs=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...p}=e,m=h.useContext(Cp),[g,v]=h.useState(null),b=(n=g==null?void 0:g.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,E]=h.useState({}),_=et(t,D=>v(D)),w=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),S=w.indexOf(y),T=g?w.indexOf(g):-1,A=m.layersWithOutsidePointerEventsDisabled.size>0,I=T>=S,M=u3(D=>{const k=D.target,Y=[...m.branches].some(L=>L.contains(k));!I||Y||(s==null||s(D),c==null||c(D),D.defaultPrevented||u==null||u())},b),R=d3(D=>{const k=D.target;[...m.branches].some(L=>L.contains(k))||(l==null||l(D),c==null||c(D),D.defaultPrevented||u==null||u())},b);return s3(D=>{T===m.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},b),h.useEffect(()=>{if(g)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(yp=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Tp(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=yp)}},[g,b,r,m]),h.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Tp())},[g,m]),h.useEffect(()=>{const D=()=>E({});return document.addEventListener(Qc,D),()=>document.removeEventListener(Qc,D)},[]),h.createElement(Ne.div,se({},p,{ref:_,style:{pointerEvents:A?I?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,M.onPointerDownCapture)}))}),c3=h.forwardRef((e,t)=>{const n=h.useContext(Cp),r=h.useRef(null),i=et(t,r);return h.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.createElement(Ne.div,se({},e,{ref:i}))});function u3(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=h.useRef(!1),i=h.useRef(()=>{});return h.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let p=function(){Sp(a3,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=p,t.addEventListener("click",i.current,{once:!0})):p()}r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function d3(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=h.useRef(!1);return h.useEffect(()=>{const i=s=>{s.target&&!r.current&&Sp(l3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Tp(){const e=new CustomEvent(Qc);document.dispatchEvent(e)}function Sp(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Bc(i,s):i.dispatchEvent(s)}const f3=rs,p3=c3;let Jc=0;function eu(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Ip()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Ip()),Jc++,()=>{Jc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Jc--}},[])}function Ip(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const tu="focusScope.autoFocusOnMount",nu="focusScope.autoFocusOnUnmount",Op={bubbles:!1,cancelable:!0},ru=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,u]=h.useState(null),p=rn(i),m=rn(s),g=h.useRef(null),v=et(t,_=>u(_)),b=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let _=function(T){if(b.paused||!c)return;const A=T.target;c.contains(A)?g.current=A:Qr(g.current,{select:!0})},w=function(T){if(b.paused||!c)return;const A=T.relatedTarget;A!==null&&(c.contains(A)||Qr(g.current,{select:!0}))},y=function(T){const A=document.activeElement;for(const I of T)I.removedNodes.length>0&&(c!=null&&c.contains(A)||Qr(c))};document.addEventListener("focusin",_),document.addEventListener("focusout",w);const S=new MutationObserver(y);return c&&S.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",w),S.disconnect()}}},[r,c,b.paused]),h.useEffect(()=>{if(c){Dp.add(b);const _=document.activeElement;if(!c.contains(_)){const y=new CustomEvent(tu,Op);c.addEventListener(tu,p),c.dispatchEvent(y),y.defaultPrevented||(h3(_3(Ap(c)),{select:!0}),document.activeElement===_&&Qr(c))}return()=>{c.removeEventListener(tu,p),setTimeout(()=>{const y=new CustomEvent(nu,Op);c.addEventListener(nu,m),c.dispatchEvent(y),y.defaultPrevented||Qr(_??document.body,{select:!0}),c.removeEventListener(nu,m),Dp.remove(b)},0)}}},[c,p,m,b]);const E=h.useCallback(_=>{if(!n&&!r||b.paused)return;const w=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,y=document.activeElement;if(w&&y){const S=_.currentTarget,[T,A]=g3(S);T&&A?!_.shiftKey&&y===A?(_.preventDefault(),n&&Qr(T,{select:!0})):_.shiftKey&&y===T&&(_.preventDefault(),n&&Qr(A,{select:!0})):y===S&&_.preventDefault()}},[n,r,b.paused]);return h.createElement(Ne.div,se({tabIndex:-1},l,{ref:v,onKeyDown:E}))});function h3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Qr(r,{select:t}),document.activeElement!==n)return}function g3(e){const t=Ap(e),n=$p(t,e),r=$p(t.reverse(),e);return[n,r]}function Ap(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $p(e,t){for(const n of e)if(!m3(n,{upTo:t}))return n}function m3(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 v3(e){return e instanceof HTMLInputElement&&"select"in e}function Qr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v3(e)&&t&&e.select()}}const Dp=b3();function b3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Mp(e,t),e.unshift(t)},remove(t){var n;e=Mp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Mp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _3(e){return e.filter(t=>t.tagName!=="A")}function co(e){return e.split("-")[1]}function iu(e){return e==="y"?"height":"width"}function Sr(e){return e.split("-")[0]}function Oi(e){return["top","bottom"].includes(Sr(e))?"x":"y"}function Pp(e,t,n){let{reference:r,floating:i}=e;const s=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,c=Oi(t),u=iu(c),p=r[u]/2-i[u]/2,m=c==="x";let g;switch(Sr(t)){case"top":g={x:s,y:r.y-i.height};break;case"bottom":g={x:s,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:l};break;case"left":g={x:r.x-i.width,y:l};break;default:g={x:r.x,y:r.y}}switch(co(t)){case"start":g[c]-=p*(n&&m?-1:1);break;case"end":g[c]+=p*(n&&m?-1:1)}return g}const x3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:g}=Pp(p,r,u),v=r,b={},E=0;for(let _=0;_<c.length;_++){const{name:w,fn:y}=c[_],{x:S,y:T,data:A,reset:I}=await y({x:m,y:g,initialPlacement:r,placement:v,strategy:i,middlewareData:b,rects:p,platform:l,elements:{reference:e,floating:t}});m=S??m,g=T??g,b={...b,[w]:{...b[w],...A}},I&&E<=50&&(E++,typeof I=="object"&&(I.placement&&(v=I.placement),I.rects&&(p=I.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:m,y:g}=Pp(p,v,u)),_=-1)}return{x:m,y:g,placement:v,strategy:i,middlewareData:b}};function Rp(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function da(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function is(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:b=0}=t,E=Rp(b),_=c[v?g==="floating"?"reference":"floating":g],w=da(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:p,rootBoundary:m,strategy:u})),y=g==="floating"?{...l.floating,x:r,y:i}:l.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),T=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},A=da(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:S,strategy:u}):y);return{top:(w.top-A.top+E.top)/T.y,bottom:(A.bottom-w.bottom+E.bottom)/T.y,left:(w.left-A.left+E.left)/T.x,right:(A.right-w.right+E.right)/T.x}}const ou=Math.min,Ai=Math.max;function su(e,t,n){return Ai(e,ou(t,n))}const Np=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:s,placement:l,rects:c,platform:u,elements:p}=t;if(n==null)return{};const m=Rp(r),g={x:i,y:s},v=Oi(l),b=iu(v),E=await u.getDimensions(n),_=v==="y",w=_?"top":"left",y=_?"bottom":"right",S=_?"clientHeight":"clientWidth",T=c.reference[b]+c.reference[v]-g[v]-c.floating[b],A=g[v]-c.reference[v],I=await(u.getOffsetParent==null?void 0:u.getOffsetParent(n));let M=I?I[S]:0;M&&await(u.isElement==null?void 0:u.isElement(I))||(M=p.floating[S]||c.floating[b]);const R=T/2-A/2,D=m[w],k=M-E[b]-m[y],Y=M/2-E[b]/2+R,L=su(D,Y,k),G=co(l)!=null&&Y!=L&&c.reference[b]/2-(Y<D?m[w]:m[y])-E[b]/2<0;return{[v]:g[v]-(G?Y<D?D-Y:k-Y:0),data:{[v]:L,centerOffset:Y-L}}}}),Lp=["top","right","bottom","left"];Lp.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const E3={left:"right",right:"left",bottom:"top",top:"bottom"};function fa(e){return e.replace(/left|right|bottom|top/g,t=>E3[t])}function w3(e,t,n){n===void 0&&(n=!1);const r=co(e),i=Oi(e),s=iu(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=fa(l)),{main:l,cross:fa(l)}}const y3={start:"end",end:"start"};function au(e){return e.replace(/start|end/g,t=>y3[t])}const C3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:E=!0,..._}=e,w=Sr(r),y=Sr(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),T=g||(y||!E?[fa(l)]:function(L){const G=fa(L);return[au(L),G,au(G)]}(l));g||b==="none"||T.push(...function(L,G,X,N){const K=co(L);let B=function(W,J,q){const U=["left","right"],V=["right","left"],ce=["top","bottom"],de=["bottom","top"];switch(W){case"top":case"bottom":return q?J?V:U:J?U:V;case"left":case"right":return J?ce:de;default:return[]}}(Sr(L),X==="start",N);return K&&(B=B.map(W=>W+"-"+K),G&&(B=B.concat(B.map(au)))),B}(l,E,b,S));const A=[l,...T],I=await is(t,_),M=[];let R=((n=i.flip)==null?void 0:n.overflows)||[];if(p&&M.push(I[w]),m){const{main:L,cross:G}=w3(r,s,S);M.push(I[L],I[G])}if(R=[...R,{placement:r,overflows:M}],!M.every(L=>L<=0)){var D,k;const L=(((D=i.flip)==null?void 0:D.index)||0)+1,G=A[L];if(G)return{data:{index:L,overflows:R},reset:{placement:G}};let X=(k=R.filter(N=>N.overflows[0]<=0).sort((N,K)=>N.overflows[1]-K.overflows[1])[0])==null?void 0:k.placement;if(!X)switch(v){case"bestFit":{var Y;const N=(Y=R.map(K=>[K.placement,K.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((K,B)=>K[1]-B[1])[0])==null?void 0:Y[0];N&&(X=N);break}case"initialPlacement":X=l}if(r!==X)return{reset:{placement:X}}}return{}}}};function jp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kp(e){return Lp.some(t=>e[t]>=0)}const T3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:n="referenceHidden",...r}=e,{rects:i}=t;switch(n){case"referenceHidden":{const s=jp(await is(t,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:kp(s)}}}case"escaped":{const s=jp(await is(t,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:kp(s)}}}default:return{}}}}},S3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(s,l){const{placement:c,platform:u,elements:p}=s,m=await(u.isRTL==null?void 0:u.isRTL(p.floating)),g=Sr(c),v=co(c),b=Oi(c)==="x",E=["left","top"].includes(g)?-1:1,_=m&&b?-1:1,w=typeof l=="function"?l(s):l;let{mainAxis:y,crossAxis:S,alignmentAxis:T}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return v&&typeof T=="number"&&(S=v==="end"?-1*T:T),b?{x:S*_,y:y*E}:{x:y*E,y:S*_}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function Fp(e){return e==="x"?"y":"x"}const I3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x:y,y:S}=w;return{x:y,y:S}}},...u}=e,p={x:n,y:r},m=await is(t,u),g=Oi(Sr(i)),v=Fp(g);let b=p[g],E=p[v];if(s){const w=g==="y"?"bottom":"right";b=su(b+m[g==="y"?"top":"left"],b,b-m[w])}if(l){const w=v==="y"?"bottom":"right";E=su(E+m[v==="y"?"top":"left"],E,E-m[w])}const _=c.fn({...t,[g]:b,[v]:E});return{..._,data:{x:_.x-n,y:_.y-r}}}}},O3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:p=!0}=e,m={x:n,y:r},g=Oi(i),v=Fp(g);let b=m[g],E=m[v];const _=typeof c=="function"?c(t):c,w=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(u){const T=g==="y"?"height":"width",A=s.reference[g]-s.floating[T]+w.mainAxis,I=s.reference[g]+s.reference[T]-w.mainAxis;b<A?b=A:b>I&&(b=I)}if(p){var y,S;const T=g==="y"?"width":"height",A=["top","left"].includes(Sr(i)),I=s.reference[v]-s.floating[T]+(A&&((y=l.offset)==null?void 0:y[v])||0)+(A?0:w.crossAxis),M=s.reference[v]+s.reference[T]+(A?0:((S=l.offset)==null?void 0:S[v])||0)-(A?w.crossAxis:0);E<I?E=I:E>M&&(E=M)}return{[g]:b,[v]:E}}}},A3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:s}=t,{apply:l=()=>{},...c}=e,u=await is(t,c),p=Sr(n),m=co(n),g=Oi(n)==="x",{width:v,height:b}=r.floating;let E,_;p==="top"||p==="bottom"?(E=p,_=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(_=p,E=m==="end"?"top":"bottom");const w=b-u[E],y=v-u[_],S=!t.middlewareData.shift;let T=w,A=y;if(g){const M=v-u.left-u.right;A=m||S?ou(y,M):M}else{const M=b-u.top-u.bottom;T=m||S?ou(w,M):M}if(S&&!m){const M=Ai(u.left,0),R=Ai(u.right,0),D=Ai(u.top,0),k=Ai(u.bottom,0);g?A=v-2*(M!==0||R!==0?M+R:Ai(u.left,u.right)):T=b-2*(D!==0||k!==0?D+k:Ai(u.top,u.bottom))}await l({...t,availableWidth:A,availableHeight:T});const I=await i.getDimensions(s.floating);return v!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}};function An(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xn(e){return An(e).getComputedStyle(e)}function Bp(e){return e instanceof An(e).Node}function Jr(e){return Bp(e)?(e.nodeName||"").toLowerCase():""}function Kn(e){return e instanceof An(e).HTMLElement}function gn(e){return e instanceof An(e).Element}function zp(e){return typeof ShadowRoot>"u"?!1:e instanceof An(e).ShadowRoot||e instanceof ShadowRoot}function os(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function $3(e){return["table","td","th"].includes(Jr(e))}function lu(e){const t=cu(),n=Xn(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function cu(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function pa(e){return["html","body","#document"].includes(Jr(e))}const Gp=Math.min,ss=Math.max,ha=Math.round;function Hp(e){const t=Xn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Kn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=ha(n)!==s||ha(r)!==l;return c&&(n=s,r=l),{width:n,height:r,fallback:c}}function Up(e){return gn(e)?e:e.contextElement}const Vp={x:1,y:1};function uo(e){const t=Up(e);if(!Kn(t))return Vp;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:s}=Hp(t);let l=(s?ha(n.width):n.width)/r,c=(s?ha(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const Wp={x:0,y:0};function qp(e,t,n){var r,i;if(t===void 0&&(t=!0),!cu())return Wp;const s=e?An(e):window;return!n||t&&n!==s?Wp:{x:((r=s.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=s.visualViewport)==null?void 0:i.offsetTop)||0}}function $i(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Up(e);let l=Vp;t&&(r?gn(r)&&(l=uo(r)):l=uo(e));const c=qp(s,n,r);let u=(i.left+c.x)/l.x,p=(i.top+c.y)/l.y,m=i.width/l.x,g=i.height/l.y;if(s){const v=An(s),b=r&&gn(r)?An(r):r;let E=v.frameElement;for(;E&&r&&b!==v;){const _=uo(E),w=E.getBoundingClientRect(),y=getComputedStyle(E);w.x+=(E.clientLeft+parseFloat(y.paddingLeft))*_.x,w.y+=(E.clientTop+parseFloat(y.paddingTop))*_.y,u*=_.x,p*=_.y,m*=_.x,g*=_.y,u+=w.x,p+=w.y,E=An(E).frameElement}}return da({width:m,height:g,x:u,y:p})}function ei(e){return((Bp(e)?e.ownerDocument:e.document)||window.document).documentElement}function ga(e){return gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Yp(e){return $i(ei(e)).left+ga(e).scrollLeft}function fo(e){if(Jr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zp(e)&&e.host||ei(e);return zp(t)?t.host:t}function Zp(e){const t=fo(e);return pa(t)?t.ownerDocument.body:Kn(t)&&os(t)?t:Zp(t)}function as(e,t){var n;t===void 0&&(t=[]);const r=Zp(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=An(r);return i?t.concat(s,s.visualViewport||[],os(r)?r:[]):t.concat(r,as(r))}function Xp(e,t,n){let r;if(t==="viewport")r=function(i,s){const l=An(i),c=ei(i),u=l.visualViewport;let p=c.clientWidth,m=c.clientHeight,g=0,v=0;if(u){p=u.width,m=u.height;const b=cu();(!b||b&&s==="fixed")&&(g=u.offsetLeft,v=u.offsetTop)}return{width:p,height:m,x:g,y:v}}(e,n);else if(t==="document")r=function(i){const s=ei(i),l=ga(i),c=i.ownerDocument.body,u=ss(s.scrollWidth,s.clientWidth,c.scrollWidth,c.clientWidth),p=ss(s.scrollHeight,s.clientHeight,c.scrollHeight,c.clientHeight);let m=-l.scrollLeft+Yp(i);const g=-l.scrollTop;return Xn(c).direction==="rtl"&&(m+=ss(s.clientWidth,c.clientWidth)-u),{width:u,height:p,x:m,y:g}}(ei(e));else if(gn(t))r=function(i,s){const l=$i(i,!0,s==="fixed"),c=l.top+i.clientTop,u=l.left+i.clientLeft,p=Kn(i)?uo(i):{x:1,y:1};return{width:i.clientWidth*p.x,height:i.clientHeight*p.y,x:u*p.x,y:c*p.y}}(t,n);else{const i=qp(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return da(r)}function Kp(e,t){const n=fo(e);return!(n===t||!gn(n)||pa(n))&&(Xn(n).position==="fixed"||Kp(n,t))}function Qp(e,t){return Kn(e)&&Xn(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Jp(e,t){const n=An(e);if(!Kn(e))return n;let r=Qp(e,t);for(;r&&$3(r)&&Xn(r).position==="static";)r=Qp(r,t);return r&&(Jr(r)==="html"||Jr(r)==="body"&&Xn(r).position==="static"&&!lu(r))?n:r||function(i){let s=fo(i);for(;Kn(s)&&!pa(s);){if(lu(s))return s;s=fo(s)}return null}(e)||n}function D3(e,t,n){const r=Kn(t),i=ei(t),s=n==="fixed",l=$i(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(r||!r&&!s)if((Jr(t)!=="body"||os(i))&&(c=ga(t)),Kn(t)){const p=$i(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Yp(i));return{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}const M3={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=n==="clippingAncestors"?function(p,m){const g=m.get(p);if(g)return g;let v=as(p).filter(w=>gn(w)&&Jr(w)!=="body"),b=null;const E=Xn(p).position==="fixed";let _=E?fo(p):p;for(;gn(_)&&!pa(_);){const w=Xn(_),y=lu(_);y||w.position!=="fixed"||(b=null),(E?!y&&!b:!y&&w.position==="static"&&b&&["absolute","fixed"].includes(b.position)||os(_)&&!y&&Kp(p,_))?v=v.filter(S=>S!==_):b=w,_=fo(_)}return m.set(p,v),v}(t,this._c):[].concat(n),l=[...s,r],c=l[0],u=l.reduce((p,m)=>{const g=Xp(t,m,i);return p.top=ss(g.top,p.top),p.right=Gp(g.right,p.right),p.bottom=Gp(g.bottom,p.bottom),p.left=ss(g.left,p.left),p},Xp(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Kn(n),s=ei(n);if(n===s)return t;let l={scrollLeft:0,scrollTop:0},c={x:1,y:1};const u={x:0,y:0};if((i||!i&&r!=="fixed")&&((Jr(n)!=="body"||os(s))&&(l=ga(n)),Kn(n))){const p=$i(n);c=uo(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+u.x,y:t.y*c.y-l.scrollTop*c.y+u.y}},isElement:gn,getDimensions:function(e){return Hp(e)},getOffsetParent:Jp,getDocumentElement:ei,getScale:uo,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Jp,s=this.getDimensions;return{reference:D3(t,await i(n),r),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xn(e).direction==="rtl"};function P3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=!0,animationFrame:c=!1}=r,u=i||s?[...gn(e)?as(e):e.contextElement?as(e.contextElement):[],...as(t)]:[];u.forEach(v=>{const b=!gn(v)&&v.toString().includes("V");!i||c&&!b||v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});let p,m=null;l&&(m=new ResizeObserver(()=>{n()}),gn(e)&&!c&&m.observe(e),gn(e)||!e.contextElement||c||m.observe(e.contextElement),m.observe(t));let g=c?$i(e):null;return c&&function v(){const b=$i(e);!g||b.x===g.x&&b.y===g.y&&b.width===g.width&&b.height===g.height||n(),g=b,p=requestAnimationFrame(v)}(),n(),()=>{var v;u.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(p)}}const R3=(e,t,n)=>{const r=new Map,i={platform:M3,...n},s={...i.platform,_c:r};return x3(e,t,{...i,platform:s})},N3=e=>{const{element:t,padding:n}=e;function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&r(t)?t.current!=null?Np({element:t.current,padding:n}).fn(i):{}:t?Np({element:t,padding:n}).fn(i):{}}}};var ma=typeof document<"u"?h.useLayoutEffect:h.useEffect;function va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!va(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!va(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function e0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function t0(e,t){const n=e0(e);return Math.round(t*n)/n}function n0(e){const t=ve.useRef(e);return ma(()=>{t.current=e}),t}function L3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:p}=e,[m,g]=ve.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=ve.useState(r);va(v,r)||b(r);const[E,_]=ve.useState(null),[w,y]=ve.useState(null),S=ve.useCallback(B=>{B!=M.current&&(M.current=B,_(B))},[_]),T=ve.useCallback(B=>{B!==R.current&&(R.current=B,y(B))},[y]),A=s||E,I=l||w,M=ve.useRef(null),R=ve.useRef(null),D=ve.useRef(m),k=n0(u),Y=n0(i),L=ve.useCallback(()=>{if(!M.current||!R.current)return;const B={placement:t,strategy:n,middleware:v};Y.current&&(B.platform=Y.current),R3(M.current,R.current,B).then(W=>{const J={...W,isPositioned:!0};G.current&&!va(D.current,J)&&(D.current=J,x_.flushSync(()=>{g(J)}))})},[v,t,n,Y]);ma(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[p]);const G=ve.useRef(!1);ma(()=>(G.current=!0,()=>{G.current=!1}),[]),ma(()=>{if(A&&(M.current=A),I&&(R.current=I),A&&I){if(k.current)return k.current(A,I,L);L()}},[A,I,L,k]);const X=ve.useMemo(()=>({reference:M,floating:R,setReference:S,setFloating:T}),[S,T]),N=ve.useMemo(()=>({reference:A,floating:I}),[A,I]),K=ve.useMemo(()=>{const B={position:n,left:0,top:0};if(!N.floating)return B;const W=t0(N.floating,m.x),J=t0(N.floating,m.y);return c?{...B,transform:"translate("+W+"px, "+J+"px)",...e0(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:J}},[n,c,N.floating,m.x,m.y]);return ve.useMemo(()=>({...m,update:L,refs:X,elements:N,floatingStyles:K}),[m,L,X,N,K])}const j3=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return h.createElement(Ne.svg,se({},s,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))});function ba(e){const[t,n]=h.useState(void 0);return Xr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const u=s.borderBoxSize,p=Array.isArray(u)?u[0]:u;l=p.inlineSize,c=p.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const r0="Popper",[i0,po]=Bt(r0),[k3,o0]=i0(r0),F3=e=>{const{__scopePopper:t,children:n}=e,[r,i]=h.useState(null);return h.createElement(k3,{scope:t,anchor:r,onAnchorChange:i},n)},B3="PopperAnchor",z3=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=o0(B3,n),l=h.useRef(null),c=et(t,l);return h.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:h.createElement(Ne.div,se({},i,{ref:c}))}),s0="PopperContent",[G3,H3]=i0(s0),U3=h.forwardRef((e,t)=>{var n,r,i,s,l,c,u,p;const{__scopePopper:m,side:g="bottom",sideOffset:v=0,align:b="center",alignOffset:E=0,arrowPadding:_=0,collisionBoundary:w=[],collisionPadding:y=0,sticky:S="partial",hideWhenDetached:T=!1,avoidCollisions:A=!0,onPlaced:I,...M}=e,R=o0(s0,m),[D,k]=h.useState(null),Y=et(t,Ke=>k(Ke)),[L,G]=h.useState(null),X=ba(L),N=(n=X==null?void 0:X.width)!==null&&n!==void 0?n:0,K=(r=X==null?void 0:X.height)!==null&&r!==void 0?r:0,B=g+(b!=="center"?"-"+b:""),W=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},J=Array.isArray(w)?w:[w],q=J.length>0,U={padding:W,boundary:J.filter(q3),altBoundary:q},{refs:V,floatingStyles:ce,placement:de,isPositioned:fe,middlewareData:we}=L3({strategy:"fixed",placement:B,whileElementsMounted:P3,elements:{reference:R.anchor},middleware:[S3({mainAxis:v+K,alignmentAxis:E}),A&&I3({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?O3():void 0,...U}),A&&C3({...U}),A3({...U,apply:({elements:Ke,rects:wt,availableWidth:En,availableHeight:Rt})=>{const{width:jn,height:Rr}=wt.reference,ft=Ke.floating.style;ft.setProperty("--radix-popper-available-width",`${En}px`),ft.setProperty("--radix-popper-available-height",`${Rt}px`),ft.setProperty("--radix-popper-anchor-width",`${jn}px`),ft.setProperty("--radix-popper-anchor-height",`${Rr}px`)}}),L&&N3({element:L,padding:_}),Y3({arrowWidth:N,arrowHeight:K}),T&&T3({strategy:"referenceHidden"})]}),[ne,le]=l0(de),ge=rn(I);Xr(()=>{fe&&(ge==null||ge())},[fe,ge]);const be=(i=we.arrow)===null||i===void 0?void 0:i.x,pe=(s=we.arrow)===null||s===void 0?void 0:s.y,We=((l=we.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[ue,bt]=h.useState();return Xr(()=>{D&&bt(window.getComputedStyle(D).zIndex)},[D]),h.createElement("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:fe?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(c=we.transformOrigin)===null||c===void 0?void 0:c.x,(u=we.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},h.createElement(G3,{scope:m,placedSide:ne,onArrowChange:G,arrowX:be,arrowY:pe,shouldHideArrow:We},h.createElement(Ne.div,se({"data-side":ne,"data-align":le},M,{ref:Y,style:{...M.style,animation:fe?void 0:"none",opacity:(p=we.hide)!==null&&p!==void 0&&p.referenceHidden?0:void 0}}))))}),a0="PopperArrow",V3={top:"bottom",right:"left",bottom:"top",left:"right"},W3=h.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=H3(a0,r),l=V3[s.placedSide];return h.createElement("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0}},h.createElement(j3,se({},i,{ref:n,style:{...i.style,display:"block"}})))});function q3(e){return e!==null}const Y3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,s,l;const{placement:c,rects:u,middlewareData:p}=t,g=((n=p.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=g?0:e.arrowWidth,b=g?0:e.arrowHeight,[E,_]=l0(c),w={start:"0%",center:"50%",end:"100%"}[_],y=((r=(i=p.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+v/2,S=((s=(l=p.arrow)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)+b/2;let T="",A="";return E==="bottom"?(T=g?w:`${y}px`,A=`${-b}px`):E==="top"?(T=g?w:`${y}px`,A=`${u.floating.height+b}px`):E==="right"?(T=`${-b}px`,A=g?w:`${S}px`):E==="left"&&(T=`${u.floating.width+b}px`,A=g?w:`${S}px`),{data:{x:T,y:A}}}});function l0(e){const[t,n="center"]=e.split("-");return[t,n]}const uu=F3,du=z3,fu=U3,_a=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?On.createPortal(h.createElement(Ne.div,se({},i,{ref:t})),r):null}),pu="rovingFocusGroup.onEntryFocus",Z3={bubbles:!1,cancelable:!0},hu="RovingFocusGroup",[gu,c0,X3]=aa(hu),[K3,ho]=Bt(hu,[X3]),[Q3,J3]=K3(hu),e4=h.forwardRef((e,t)=>h.createElement(gu.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(gu.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(t4,se({},e,{ref:t}))))),t4=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:p,...m}=e,g=h.useRef(null),v=et(t,g),b=ns(s),[E=null,_]=hn({prop:l,defaultProp:c,onChange:u}),[w,y]=h.useState(!1),S=rn(p),T=c0(n),A=h.useRef(!1),[I,M]=h.useState(0);return h.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(pu,S),()=>R.removeEventListener(pu,S)},[S]),h.createElement(Q3,{scope:n,orientation:r,dir:b,loop:i,currentTabStopId:E,onItemFocus:h.useCallback(R=>_(R),[_]),onItemShiftTab:h.useCallback(()=>y(!0),[]),onFocusableItemAdd:h.useCallback(()=>M(R=>R+1),[]),onFocusableItemRemove:h.useCallback(()=>M(R=>R-1),[])},h.createElement(Ne.div,se({tabIndex:w||I===0?-1:0,"data-orientation":r},m,{ref:v,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{A.current=!0}),onFocus:Ee(e.onFocus,R=>{const D=!A.current;if(R.target===R.currentTarget&&D&&!w){const k=new CustomEvent(pu,Z3);if(R.currentTarget.dispatchEvent(k),!k.defaultPrevented){const Y=T().filter(K=>K.focusable),L=Y.find(K=>K.active),G=Y.find(K=>K.id===E),N=[L,G,...Y].filter(Boolean).map(K=>K.ref.current);u0(N)}}A.current=!1}),onBlur:Ee(e.onBlur,()=>y(!1))})))}),n4="RovingFocusGroupItem",r4=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,...l}=e,c=Zn(),u=s||c,p=J3(n4,n),m=p.currentTabStopId===u,g=c0(n),{onFocusableItemAdd:v,onFocusableItemRemove:b}=p;return h.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),h.createElement(gu.ItemSlot,{scope:n,id:u,focusable:r,active:i},h.createElement(Ne.span,se({tabIndex:m?0:-1,"data-orientation":p.orientation},l,{ref:t,onMouseDown:Ee(e.onMouseDown,E=>{r?p.onItemFocus(u):E.preventDefault()}),onFocus:Ee(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:Ee(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){p.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const _=s4(E,p.orientation,p.dir);if(_!==void 0){E.preventDefault();let y=g().filter(S=>S.focusable).map(S=>S.ref.current);if(_==="last")y.reverse();else if(_==="prev"||_==="next"){_==="prev"&&y.reverse();const S=y.indexOf(E.currentTarget);y=p.loop?a4(y,S+1):y.slice(S+1)}setTimeout(()=>u0(y))}})})))}),i4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function o4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function s4(e,t,n){const r=o4(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return i4[r]}function u0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function a4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const mu=e4,vu=r4;var l4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,xa=new WeakMap,Ea={},bu=0,d0=function(e){return e&&(e.host||d0(e.parentNode))},c4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=d0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},u4=function(e,t,n,r){var i=c4(t,Array.isArray(e)?e:[e]);Ea[n]||(Ea[n]=new WeakMap);var s=Ea[n],l=[],c=new Set,u=new Set(i),p=function(g){!g||c.has(g)||(c.add(g),p(g.parentNode))};i.forEach(p);var m=function(g){!g||u.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))m(v);else{var b=v.getAttribute(r),E=b!==null&&b!=="false",_=(go.get(v)||0)+1,w=(s.get(v)||0)+1;go.set(v,_),s.set(v,w),l.push(v),_===1&&E&&xa.set(v,!0),w===1&&v.setAttribute(n,"true"),E||v.setAttribute(r,"true")}})};return m(t),c.clear(),bu++,function(){l.forEach(function(g){var v=go.get(g)-1,b=s.get(g)-1;go.set(g,v),s.set(g,b),v||(xa.has(g)||g.removeAttribute(r),xa.delete(g)),b||g.removeAttribute(n)}),bu--,bu||(go=new WeakMap,go=new WeakMap,xa=new WeakMap,Ea={})}},_u=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=l4(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),u4(r,i,n,"aria-hidden")):function(){return null}},hr=function(){return hr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},hr.apply(this,arguments)};function f0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function d4(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var wa="right-scroll-bar-position",ya="width-before-scroll-bar",f4="with-scroll-bars-hidden",p4="--removed-body-scroll-bar-size";function h4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function g4(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function m4(e,t){return g4(null,function(n){return e.forEach(function(r){return h4(r,n)})})}function v4(e){return e}function b4(e,t){t===void 0&&(t=v4);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(s),l=n}var u=function(){var m=l;l=[],m.forEach(s)},p=function(){return Promise.resolve().then(u)};p(),n={push:function(m){l.push(m),p()},filter:function(m){return l=l.filter(m),n}}}};return i}function _4(e){e===void 0&&(e={});var t=b4(null);return t.options=hr({async:!0,ssr:!1},e),t}var p0=function(e){var t=e.sideCar,n=f0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return ve.createElement(r,hr({},n))};p0.isSideCarExport=!0;function x4(e,t){return e.useMedium(t),p0}var h0=_4(),xu=function(){},Ca=ve.forwardRef(function(e,t){var n=ve.useRef(null),r=ve.useState({onScrollCapture:xu,onWheelCapture:xu,onTouchMoveCapture:xu}),i=r[0],s=r[1],l=e.forwardProps,c=e.children,u=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,E=e.inert,_=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,S=f0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),T=v,A=m4([n,t]),I=hr(hr({},S),i);return ve.createElement(ve.Fragment,null,m&&ve.createElement(T,{sideCar:h0,removeScrollBar:p,shards:g,noIsolation:b,inert:E,setCallbacks:s,allowPinchZoom:!!_,lockRef:n}),l?ve.cloneElement(ve.Children.only(c),hr(hr({},I),{ref:A})):ve.createElement(y,hr({},I,{className:u,ref:A}),c))});Ca.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ca.classNames={fullWidth:ya,zeroRight:wa};var E4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function w4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=E4();return t&&e.setAttribute("nonce",t),e}function y4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function C4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var T4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=w4())&&(y4(t,n),C4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},S4=function(){var e=T4();return function(t,n){ve.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},g0=function(){var e=S4(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},I4={left:0,top:0,right:0,gap:0},Eu=function(e){return parseInt(e||"",10)||0},O4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Eu(n),Eu(r),Eu(i)]},A4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I4;var t=O4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$4=g0(),D4=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
28
|
+
.`.concat(f4,` {
|
|
29
29
|
overflow: hidden `).concat(r,`;
|
|
30
30
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
31
31
|
}
|
|
@@ -33,7 +33,7 @@ Check the top-level render call using <`+he+">.")}return ae}}function Tt(j,ae){{
|
|
|
33
33
|
overflow: hidden `).concat(r,`;
|
|
34
34
|
overscroll-behavior: contain;
|
|
35
35
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
36
|
-
padding-left: `.concat(
|
|
36
|
+
padding-left: `.concat(i,`px;
|
|
37
37
|
padding-top: `).concat(s,`px;
|
|
38
38
|
padding-right: `).concat(l,`px;
|
|
39
39
|
margin-left:0;
|
|
@@ -59,99 +59,103 @@ Check the top-level render call using <`+he+">.")}return ae}}function Tt(j,ae){{
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
body {
|
|
62
|
-
`).concat(
|
|
62
|
+
`).concat(p4,": ").concat(c,`px;
|
|
63
63
|
}
|
|
64
|
-
`)},
|
|
64
|
+
`)},M4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,s=ve.useMemo(function(){return A4(i)},[i]);return ve.createElement($4,{styles:D4(s,!t,i,n?"":"!important")})},wu=!1;if(typeof window<"u")try{var Ta=Object.defineProperty({},"passive",{get:function(){return wu=!0,!0}});window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{wu=!1}var mo=wu?{passive:!1}:!1,P4=function(e){return e.tagName==="TEXTAREA"},m0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!P4(e)&&n[t]==="visible")},R4=function(e){return m0(e,"overflowY")},N4=function(e){return m0(e,"overflowX")},v0=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=b0(e,n);if(r){var i=_0(e,n),s=i[1],l=i[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},L4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},j4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},b0=function(e,t){return e==="v"?R4(t):N4(t)},_0=function(e,t){return e==="v"?L4(t):j4(t)},k4=function(e,t){return e==="h"&&t==="rtl"?-1:1},F4=function(e,t,n,r,i){var s=k4(e,window.getComputedStyle(t).direction),l=s*r,c=n.target,u=t.contains(c),p=!1,m=l>0,g=0,v=0;do{var b=_0(e,c),E=b[0],_=b[1],w=b[2],y=_-w-s*E;(E||y)&&b0(e,c)&&(g+=y,v+=E),c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(m&&g===0||!m&&v===0)&&(p=!0),p},Sa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},x0=function(e){return[e.deltaX,e.deltaY]},E0=function(e){return e&&"current"in e?e.current:e},B4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},z4=function(e){return`
|
|
65
65
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
66
66
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
67
|
-
`)},z4=0,vo=[];function G4(e){var t=be.useRef([]),n=be.useRef([0,0]),r=be.useRef(),o=be.useState(z4++)[0],s=be.useState(function(){return g0()})[0],l=be.useRef(e);be.useEffect(function(){l.current=e},[e]),be.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var _=d4([e.lockRef.current],(e.shards||[]).map(E0),!0).filter(Boolean);return _.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),_.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=be.useCallback(function(_,w){if("touches"in _&&_.touches.length===2)return!l.current.allowPinchZoom;var y=Sa(_),S=n.current,T="deltaX"in _?_.deltaX:S[0]-y[0],O="deltaY"in _?_.deltaY:S[1]-y[1],I,M=_.target,R=Math.abs(T)>Math.abs(O)?"h":"v";if("touches"in _&&R==="h"&&M.type==="range")return!1;var D=v0(R,M);if(!D)return!0;if(D?I=R:(I=R==="v"?"h":"v",D=v0(R,M)),!D)return!1;if(!r.current&&"changedTouches"in _&&(T||O)&&(r.current=I),!I)return!0;var k=r.current||I;return k4(k,w,_,k==="h"?T:O,!0)},[]),d=be.useCallback(function(_){var w=_;if(!(!vo.length||vo[vo.length-1]!==s)){var y="deltaY"in w?x0(w):Sa(w),S=t.current.filter(function(I){return I.name===w.type&&I.target===w.target&&F4(I.delta,y)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var T=(l.current.shards||[]).map(E0).filter(Boolean).filter(function(I){return I.contains(w.target)}),O=T.length>0?c(w,T[0]):!l.current.noIsolation;O&&w.cancelable&&w.preventDefault()}}},[]),p=be.useCallback(function(_,w,y,S){var T={name:_,delta:w,target:y,should:S};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(O){return O!==T})},1)},[]),m=be.useCallback(function(_){n.current=Sa(_),r.current=void 0},[]),g=be.useCallback(function(_){p(_.type,x0(_),_.target,c(_,e.lockRef.current))},[]),v=be.useCallback(function(_){p(_.type,Sa(_),_.target,c(_,e.lockRef.current))},[]);be.useEffect(function(){return vo.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,mo),document.addEventListener("touchmove",d,mo),document.addEventListener("touchstart",m,mo),function(){vo=vo.filter(function(_){return _!==s}),document.removeEventListener("wheel",d,mo),document.removeEventListener("touchmove",d,mo),document.removeEventListener("touchstart",m,mo)}},[]);var b=e.removeScrollBar,E=e.inert;return be.createElement(be.Fragment,null,E?be.createElement(s,{styles:B4(o)}):null,b?be.createElement(D4,{gapMode:"margin"}):null)}const U4=_4(h0,G4);var Ia=be.forwardRef(function(e,t){return be.createElement(Ca,gr({},e,{ref:t,sideCar:U4}))});Ia.classNames=Ca.classNames;const H4=["Enter"," "],V4=["ArrowDown","PageUp","Home"],w0=["ArrowUp","PageDown","End"],W4=[...V4,...w0],Aa="Menu",[yd,q4,Y4]=aa(Aa),[Mi,y0]=Ft(Aa,[Y4,po,ho]),Cd=po(),C0=ho(),[Z4,cs]=Mi(Aa),[X4,Td]=Mi(Aa),K4=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:l=!0}=e,c=Cd(t),[d,p]=h.useState(null),m=h.useRef(!1),g=rn(s),v=rs(o);return h.useEffect(()=>{const b=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),h.createElement(dd,c,h.createElement(Z4,{scope:t,open:n,onOpenChange:g,content:d,onContentChange:p},h.createElement(X4,{scope:t,onClose:h.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:v,modal:l},r)))},Q4=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cd(n);return h.createElement(ud,oe({},o,r,{ref:t}))}),T0="MenuPortal",[J4,e6]=Mi(T0,{forceMount:void 0}),t6=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=cs(T0,t);return h.createElement(J4,{scope:t,forceMount:n},h.createElement(on,{present:n||s.open},h.createElement(_a,{asChild:!0,container:o},r)))},ei="MenuContent",[n6,S0]=Mi(ei),r6=h.forwardRef((e,t)=>{const n=e6(ei,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=cs(ei,e.__scopeMenu),l=Td(ei,e.__scopeMenu);return h.createElement(yd.Provider,{scope:e.__scopeMenu},h.createElement(on,{present:r||s.open},h.createElement(yd.Slot,{scope:e.__scopeMenu},l.modal?h.createElement(i6,oe({},o,{ref:t})):h.createElement(o6,oe({},o,{ref:t})))))}),i6=h.forwardRef((e,t)=>{const n=cs(ei,e.__scopeMenu),r=h.useRef(null),o=et(t,r);return h.useEffect(()=>{const s=r.current;if(s)return _d(s)},[]),h.createElement(I0,oe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),o6=h.forwardRef((e,t)=>{const n=cs(ei,e.__scopeMenu);return h.createElement(I0,oe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),I0=h.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b,disableOutsideScroll:E,..._}=e,w=cs(ei,n),y=Td(ei,n),S=Cd(n),T=C0(n),O=q4(n),[I,M]=h.useState(null),R=h.useRef(null),D=et(t,R,w.onContentChange),k=h.useRef(0),q=h.useRef(""),L=h.useRef(0),U=h.useRef(null),X=h.useRef("right"),N=h.useRef(0),K=E?Ia:h.Fragment,B=E?{as:Ii,allowPinchZoom:!0}:void 0,V=W=>{var G,Y;const de=q.current+W,ue=O().filter(_e=>!_e.disabled),fe=document.activeElement,we=(G=ue.find(_e=>_e.ref.current===fe))===null||G===void 0?void 0:G.textValue,ne=ue.map(_e=>_e.textValue),le=u6(ne,de,we),me=(Y=ue.find(_e=>_e.textValue===le))===null||Y===void 0?void 0:Y.ref.current;(function _e(pe){q.current=pe,window.clearTimeout(k.current),pe!==""&&(k.current=window.setTimeout(()=>_e(""),1e3))})(de),me&&setTimeout(()=>me.focus())};h.useEffect(()=>()=>window.clearTimeout(k.current),[]),ed();const Q=h.useCallback(W=>{var G,Y;return X.current===((G=U.current)===null||G===void 0?void 0:G.side)&&p6(W,(Y=U.current)===null||Y===void 0?void 0:Y.area)},[]);return h.createElement(n6,{scope:n,searchRef:q,onItemEnter:h.useCallback(W=>{Q(W)&&W.preventDefault()},[Q]),onItemLeave:h.useCallback(W=>{var G;Q(W)||((G=R.current)===null||G===void 0||G.focus(),M(null))},[Q]),onTriggerLeave:h.useCallback(W=>{Q(W)&&W.preventDefault()},[Q]),pointerGraceTimerRef:L,onPointerGraceIntentChange:h.useCallback(W=>{U.current=W},[])},h.createElement(K,B,h.createElement(rd,{asChild:!0,trapped:o,onMountAutoFocus:Ee(s,W=>{var G;W.preventDefault(),(G=R.current)===null||G===void 0||G.focus()}),onUnmountAutoFocus:l},h.createElement(is,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b},h.createElement(md,oe({asChild:!0},T,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:I,onCurrentTabStopIdChange:M,onEntryFocus:Ee(d,W=>{y.isUsingKeyboardRef.current||W.preventDefault()})}),h.createElement(fd,oe({role:"menu","aria-orientation":"vertical","data-state":l6(w.open),"data-radix-menu-content":"",dir:y.dir},S,_,{ref:D,style:{outline:"none",..._.style},onKeyDown:Ee(_.onKeyDown,W=>{const Y=W.target.closest("[data-radix-menu-content]")===W.currentTarget,de=W.ctrlKey||W.altKey||W.metaKey,ue=W.key.length===1;Y&&(W.key==="Tab"&&W.preventDefault(),!de&&ue&&V(W.key));const fe=R.current;if(W.target!==fe||!W4.includes(W.key))return;W.preventDefault();const ne=O().filter(le=>!le.disabled).map(le=>le.ref.current);w0.includes(W.key)&&ne.reverse(),c6(ne)}),onBlur:Ee(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(k.current),q.current="")}),onPointerMove:Ee(e.onPointerMove,Id(W=>{const G=W.target,Y=N.current!==W.clientX;if(W.currentTarget.contains(G)&&Y){const de=W.clientX>N.current?"right":"left";X.current=de,N.current=W.clientX}}))})))))))}),Sd="MenuItem",A0="menu.itemSelect",s6=h.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=h.useRef(null),l=Td(Sd,e.__scopeMenu),c=S0(Sd,e.__scopeMenu),d=et(t,s),p=h.useRef(!1),m=()=>{const g=s.current;if(!n&&g){const v=new CustomEvent(A0,{bubbles:!0,cancelable:!0});g.addEventListener(A0,b=>r==null?void 0:r(b),{once:!0}),Bc(g,v),v.defaultPrevented?p.current=!1:l.onClose()}};return h.createElement(a6,oe({},o,{ref:d,disabled:n,onClick:Ee(e.onClick,m),onPointerDown:g=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,g),p.current=!0},onPointerUp:Ee(e.onPointerUp,g=>{var v;p.current||(v=g.currentTarget)===null||v===void 0||v.click()}),onKeyDown:Ee(e.onKeyDown,g=>{const v=c.searchRef.current!=="";n||v&&g.key===" "||H4.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})}))}),a6=h.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,l=S0(Sd,n),c=C0(n),d=h.useRef(null),p=et(t,d),[m,g]=h.useState(!1),[v,b]=h.useState("");return h.useEffect(()=>{const E=d.current;if(E){var _;b(((_=E.textContent)!==null&&_!==void 0?_:"").trim())}},[s.children]),h.createElement(yd.ItemSlot,{scope:n,disabled:r,textValue:o??v},h.createElement(vd,oe({asChild:!0},c,{focusable:!r}),h.createElement(Pe.div,oe({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},s,{ref:p,onPointerMove:Ee(e.onPointerMove,Id(E=>{r?l.onItemLeave(E):(l.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus())})),onPointerLeave:Ee(e.onPointerLeave,Id(E=>l.onItemLeave(E))),onFocus:Ee(e.onFocus,()=>g(!0)),onBlur:Ee(e.onBlur,()=>g(!1))}))))});Mi("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),Mi("MenuItemIndicator",{checked:!1}),Mi("MenuSub");function l6(e){return e?"open":"closed"}function c6(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function d6(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function u6(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=d6(e,Math.max(s,0));o.length===1&&(l=l.filter(p=>p!==n));const d=l.find(p=>p.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function f6(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,d=t[s].y,p=t[l].x,m=t[l].y;d>r!=m>r&&n<(p-c)*(r-d)/(m-d)+c&&(o=!o)}return o}function p6(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return f6(n,t)}function Id(e){return t=>t.pointerType==="mouse"?e(t):void 0}const h6=K4,g6=Q4,m6=t6,v6=r6,b6=s6,O0="DropdownMenu",[_6,Zj]=Ft(O0,[y0]),ds=y0(),[x6,$0]=_6(O0),E6=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=ds(t),p=h.useRef(null),[m=!1,g]=hn({prop:o,defaultProp:s,onChange:l});return h.createElement(x6,{scope:t,triggerId:Xn(),triggerRef:p,contentId:Xn(),open:m,onOpenChange:g,onOpenToggle:h.useCallback(()=>g(v=>!v),[g]),modal:c},h.createElement(h6,oe({},d,{open:m,onOpenChange:g,dir:r,modal:c}),n))},w6="DropdownMenuTrigger",y6=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=$0(w6,n),l=ds(n);return h.createElement(g6,oe({asChild:!0},l),h.createElement(Pe.button,oe({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:kc(t,s.triggerRef),onPointerDown:Ee(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:Ee(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),C6=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ds(t);return h.createElement(m6,oe({},r,n))},T6="DropdownMenuContent",S6=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$0(T6,n),s=ds(n),l=h.useRef(!1);return h.createElement(v6,oe({id:o.contentId,"aria-labelledby":o.triggerId},s,r,{ref:t,onCloseAutoFocus:Ee(e.onCloseAutoFocus,c=>{var d;l.current||(d=o.triggerRef.current)===null||d===void 0||d.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:Ee(e.onInteractOutside,c=>{const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,m=d.button===2||p;(!o.modal||m)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),I6=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ds(n);return h.createElement(b6,oe({},o,r,{ref:t}))}),D0=E6,M0=y6,A6=C6,P0=S6,Ad=I6;var O6=typeof global=="object"&&global&&global.Object===Object&&global,$6=typeof self=="object"&&self&&self.Object===Object&&self,R0=O6||$6||Function("return this")(),Oa=R0.Symbol,N0=Object.prototype,D6=N0.hasOwnProperty,M6=N0.toString,us=Oa?Oa.toStringTag:void 0;function P6(e){var t=D6.call(e,us),n=e[us];try{e[us]=void 0;var r=!0}catch{}var o=M6.call(e);return r&&(t?e[us]=n:delete e[us]),o}var R6=Object.prototype,N6=R6.toString;function L6(e){return N6.call(e)}var j6="[object Null]",k6="[object Undefined]",L0=Oa?Oa.toStringTag:void 0;function F6(e){return e==null?e===void 0?k6:j6:L0&&L0 in Object(e)?P6(e):L6(e)}function B6(e){return e!=null&&typeof e=="object"}var z6="[object Symbol]";function G6(e){return typeof e=="symbol"||B6(e)&&F6(e)==z6}var U6=/\s/;function H6(e){for(var t=e.length;t--&&U6.test(e.charAt(t)););return t}var V6=/^\s+/;function W6(e){return e&&e.slice(0,H6(e)+1).replace(V6,"")}function $a(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var j0=NaN,q6=/^[-+]0x[0-9a-f]+$/i,Y6=/^0b[01]+$/i,Z6=/^0o[0-7]+$/i,X6=parseInt;function k0(e){if(typeof e=="number")return e;if(G6(e))return j0;if($a(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$a(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=W6(e);var n=Y6.test(e);return n||Z6.test(e)?X6(e.slice(2),n?2:8):q6.test(e)?j0:+e}var Od=function(){return R0.Date.now()},K6="Expected a function",Q6=Math.max,J6=Math.min;function Da(e,t,n){var r,o,s,l,c,d,p=0,m=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(K6);t=k0(t)||0,$a(n)&&(m=!!n.leading,g="maxWait"in n,s=g?Q6(k0(n.maxWait)||0,t):s,v="trailing"in n?!!n.trailing:v);function b(M){var R=r,D=o;return r=o=void 0,p=M,l=e.apply(D,R),l}function E(M){return p=M,c=setTimeout(y,t),m?b(M):l}function _(M){var R=M-d,D=M-p,k=t-R;return g?J6(k,s-D):k}function w(M){var R=M-d,D=M-p;return d===void 0||R>=t||R<0||g&&D>=s}function y(){var M=Od();if(w(M))return S(M);c=setTimeout(y,_(M))}function S(M){return c=void 0,v&&r?b(M):(r=o=void 0,l)}function T(){c!==void 0&&clearTimeout(c),p=0,r=d=o=c=void 0}function O(){return c===void 0?l:S(Od())}function I(){var M=Od(),R=w(M);if(r=arguments,o=this,d=M,R){if(c===void 0)return E(d);if(g)return clearTimeout(c),c=setTimeout(y,t),b(d)}return c===void 0&&(c=setTimeout(y,t)),l}return I.cancel=T,I.flush=O,I}var ex="Expected a function";function tx(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(ex);return $a(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Da(e,t,{leading:r,maxWait:t,trailing:o})}var nx=!!(typeof window<"u"&&window.document&&window.document.createElement),rx=nx;const F0=Y1(rx);var bo=function(){return bo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},bo.apply(this,arguments)},_o=null,B0=null;F0&&window.addEventListener("resize",function(){B0!==window.devicePixelRatio&&(B0=window.devicePixelRatio,_o=null)});function z0(){if(_o===null){if(typeof document>"u")return _o=0,_o;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),_o=n}return _o}function G0(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function U0(e){return!e||!e.ownerDocument?document:e.ownerDocument}var H0=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,o){var s=o.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,d){return d.toUpperCase()});switch(o.value){case"true":r[l]=!0;break;case"false":r[l]=!1;break;case void 0:r[l]=!0;break;default:r[l]=o.value}}return r},t);return n};function V0(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function W0(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function q0(e){return".".concat(e.split(" ").join("."))}var ix=Object.freeze({__proto__:null,getElementWindow:G0,getElementDocument:U0,getOptions:H0,addClasses:V0,removeClasses:W0,classNamesToQuery:q0}),ti=G0,$d=U0,ox=H0,ni=V0,ri=W0,sn=q0,Ma=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=ti(r.el);r.scrollXTicking||(o.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(o.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ni(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){ri(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ni(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){ri(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(o){r.mouseX=o.clientX,r.mouseY=o.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var s,l;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(s=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(l=r.isWithinBounds(r.axis.y.track.rect)),(s||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(s&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(o,"x"):r.onTrackClick(o,"x")),l&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(o,"y"):r.onTrackClick(o,"y"))))}},this.drag=function(o){var s,l,c,d,p,m,g,v,b,E,_;if(!(!r.draggedAxis||!r.contentWrapperEl)){var w,y=r.axis[r.draggedAxis].track,S=(l=(s=y.rect)===null||s===void 0?void 0:s[r.axis[r.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,T=r.axis[r.draggedAxis].scrollbar,O=(d=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,I=parseInt((m=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:"0px",10);o.preventDefault(),o.stopPropagation(),r.draggedAxis==="y"?w=o.pageY:w=o.pageX;var M=w-((v=(g=y.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;M=r.draggedAxis==="x"&&r.isRtl?((E=(b=y.rect)===null||b===void 0?void 0:b[r.axis[r.draggedAxis].sizeAttr])!==null&&E!==void 0?E:0)-T.size-M:M;var R=M/(S-T.size),D=R*(O-I);r.draggedAxis==="x"&&r.isRtl&&(D=!((_=e.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?-D:D),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=D}},this.onEndDrag=function(o){var s=$d(r.el),l=ti(r.el);o.preventDefault(),o.stopPropagation(),ri(r.el,r.classNames.dragging),s.removeEventListener("mousemove",r.drag,!0),s.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",r.preventClick,!0),s.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=bo(bo({},e.defaultOptions),n),this.classNames=bo(bo({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=tx(this._onMouseMove,64),this.onWindowResize=Da(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Da(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Da(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var o=e.getOffset(n),s=e.getOffset(r);n.scrollLeft=-999;var l=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:z0()}catch{return z0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=$d(t),o=ti(t);return{top:n.top+(o.pageYOffset||r.documentElement.scrollTop),left:n.left+(o.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){F0&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(sn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(sn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(sn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(sn(this.classNames.offset)),this.maskEl=this.el.querySelector(sn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,sn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(sn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(sn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(sn(this.classNames.track)).concat(sn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(sn(this.classNames.track)).concat(sn(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(sn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(sn(this.classNames.scrollbar)))||null,this.options.autoHide||(ni(this.axis.x.scrollbar.el,this.classNames.visible),ni(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=ti(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,s=r.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){o&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ti(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var d=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var m=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=d>m,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>s-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>m-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],s=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,l=s/o,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,o;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[t].sizeAttr],10),p=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];p=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,t==="x"&&this.isRtl&&(p=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?p:-p);var m=p/(l-d),g=~~((c-s.size)*m);g=t==="x"&&this.isRtl?-g+(c-s.size):g,s.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(ni(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(ri(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),ni(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ni(n.scrollbar.el,this.classNames.hover):ri(n.scrollbar.el,this.classNames.hover)):(ri(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),ri(this.axis[t].track.el,this.classNames.hover),ri(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var o=$d(this.el),s=ti(this.el),l=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=l.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ni(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,o,s,l,c;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var p=ti(this.el);this.axis[n].scrollbar.rect=d.scrollbar.el.getBoundingClientRect();var m=this.axis[n].scrollbar,g=(s=(o=m.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,v=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],E=n==="y"?this.mouseY-g:this.mouseX-g,_=E<0?-1:1,w=_===-1?b-v:b+v,y=40,S=function(){r.contentWrapperEl&&(_===-1?b>w&&(b-=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,p.requestAnimationFrame(S)):b<w&&(b+=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,p.requestAnimationFrame(S)))};S()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ti(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return r.call(o,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=ox,e.helpers=ix,e}(),mn=function(){return mn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},mn.apply(this,arguments)};function sx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Dd=be.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,o=r===void 0?{}:r,s=sx(e,["children","scrollableNodeProps"]),l=be.useRef(),c=be.useRef(),d=be.useRef(),p={},m={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(Ma.defaultOptions,b)?p[b]=s[b]:m[b]=s[b]});var g=mn(mn({},Ma.defaultOptions.classNames),p.classNames),v=mn(mn({},o),{className:"".concat(g.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":p.ariaLabel||Ma.defaultOptions.ariaLabel});return be.useEffect(function(){var b;return c.current=v.ref?v.ref.current:c.current,l.current&&(b=new Ma(l.current,mn(mn(mn({},p),c.current&&{scrollableNode:c.current}),d.current&&{contentNode:d.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),be.createElement("div",mn({"data-simplebar":"init",ref:l},m),be.createElement("div",{className:g.wrapper},be.createElement("div",{className:g.heightAutoObserverWrapperEl},be.createElement("div",{className:g.heightAutoObserverEl})),be.createElement("div",{className:g.mask},be.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:mn(mn({},v),{ref:c}),contentNodeRef:d,contentNodeProps:{className:g.contentEl,ref:d}}):be.createElement("div",mn({},v),be.createElement("div",{className:g.contentEl},n)))),be.createElement("div",{className:g.placeholder})),be.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},be.createElement("div",{className:g.scrollbar})),be.createElement("div",{className:"".concat(g.track," simplebar-vertical")},be.createElement("div",{className:g.scrollbar})))});Dd.displayName="SimpleBar";const Y0={label:"_label_12r8p_1","label--button-lg":"_label--button-lg_12r8p_5","label--button-md":"_label--button-md_12r8p_12","label--button-sm":"_label--button-sm_12r8p_19","label--button-xs":"_label--button-xs_12r8p_26","label--tag":"_label--tag_12r8p_33"},xo=h.forwardRef((e,t)=>{const{variant:n="button-md",fontWeight:r="semibold",color:o,className:s,...l}=e;return u.jsx("label",{ref:t,className:se(Y0.label,Y0[`label--${n}`],`text--weight-${r}`,o?`text--${o}`:"current-color",s),...l})});xo.displayName="Label";const vn={button:"_button_1845z_1","button--full-width":"_button--full-width_1845z_23","button--size-lg":"_button--size-lg_1845z_28","button--size-md":"_button--size-md_1845z_36","button--size-sm":"_button--size-sm_1845z_44","button--size-xs":"_button--size-xs_1845z_52","button--label":"_button--label_1845z_60","button--label-sm":"_button--label-sm_1845z_64","button--children":"_button--children_1845z_68","button--icon":"_button--icon_1845z_74","button-icon-left":"_button-icon-left_1845z_79","button-icon-right":"_button-icon-right_1845z_83","button--loading":"_button--loading_1845z_87","button--loading-icon":"_button--loading-icon_1845z_91",rotation:"_rotation_1845z_1","button--primary-filled":"_button--primary-filled_1845z_106","button--primary-filled-disabled":"_button--primary-filled-disabled_1845z_119","button--primary-outlined":"_button--primary-outlined_1845z_131","button--primary-outlined-disabled":"_button--primary-outlined-disabled_1845z_147","button--primary-text":"_button--primary-text_1845z_160","button--primary-text-disabled":"_button--primary-text-disabled_1845z_173","button--green-filled":"_button--green-filled_1845z_186","button--green-filled-disabled":"_button--green-filled-disabled_1845z_199","button--green-outlined":"_button--green-outlined_1845z_212","button--green-outlined-disabled":"_button--green-outlined-disabled_1845z_230","button--green-text":"_button--green-text_1845z_244","button--green-text-disabled":"_button--green-text-disabled_1845z_259","button--red-filled":"_button--red-filled_1845z_274","button--red-filled-disabled":"_button--red-filled-disabled_1845z_287","button--red-outlined":"_button--red-outlined_1845z_300","button--red-outlined-disabled":"_button--red-outlined-disabled_1845z_318","button--red-text":"_button--red-text_1845z_332","button--red-text-disabled":"_button--red-text-disabled_1845z_347","button--sand-filled":"_button--sand-filled_1845z_362","button--sand-filled-disabled":"_button--sand-filled-disabled_1845z_375","button--sand-outlined":"_button--sand-outlined_1845z_388","button--sand-outlined-disabled":"_button--sand-outlined-disabled_1845z_404","button--sand-text":"_button--sand-text_1845z_417","button--sand-text-disabled":"_button--sand-text-disabled_1845z_430"},ax={lg:"button-lg",md:"button-lg",sm:"button-md",xs:"button-sm"},At=h.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:o="lg",endIcon:s,startIcon:l,disabled:c=!1,fullWidth:d=!1,children:p,isLoading:m,loadingPosition:g="right",className:v,label:b,...E}=e,_=ax[o],w=o==="lg"||o==="md"?"button--label":"button--label-sm",y=!!(m&&g==="left"),S=!!(m&&g==="right"),T=p!==void 0&&typeof p=="string";return u.jsx("button",{ref:t,disabled:c,className:se(vn.button,d&&vn["button--full-width"],vn[`button--size-${o}`],vn[`button--${n}-${r}`],c&&vn[`button--${n}-${r}-disabled`],m&&vn["button--loading"],v),"data-loading":m?"true":"false",...E,children:u.jsxs("span",{className:vn["button--children"],children:[(y||l)&&u.jsx("span",{className:se("flex",!T&&vn["button-icon-left"],y&&vn["button--loading-icon"]),children:u.jsx(u.Fragment,{children:y?u.jsx(sa,{}):l})}),p!==void 0?T?u.jsx("span",{children:u.jsx(xo,{className:se(vn[w],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:p})}):p:b&&u.jsx(xo,{className:se(vn[w],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:b}),(S||s)&&u.jsx("span",{className:se("flex",!T&&vn["button-icon-right"],S&&vn["button--loading-icon"]),children:u.jsx(u.Fragment,{children:S?u.jsx(sa,{}):s})})]})})});At.displayName="Button";const dt={"input-text-field--container":"_input-text-field--container_wv7xg_1","input-text-field--input":"_input-text-field--input_wv7xg_9","input-text-field--input-error":"_input-text-field--input-error_wv7xg_28","input-text-field--content":"_input-text-field--content_wv7xg_40","input-text-field--fluid":"_input-text-field--fluid_wv7xg_48","input-text-field--outlined":"_input-text-field--outlined_wv7xg_61","input-text-field--filled":"_input-text-field--filled_wv7xg_67","input-text-field--size-lg":"_input-text-field--size-lg_wv7xg_73","input-text-field--size-md":"_input-text-field--size-md_wv7xg_77","input-text-field--size-sm":"_input-text-field--size-sm_wv7xg_81","input-text-field--helper-text":"_input-text-field--helper-text_wv7xg_85","input-text-field--label-text":"_input-text-field--label-text_wv7xg_89","input-text-field--addon":"_input-text-field--addon_wv7xg_93","input-text-field--disabled":"_input-text-field--disabled_wv7xg_102","input-text-field--icon-container":"_input-text-field--icon-container_wv7xg_107","input-text-field--icon":"_input-text-field--icon_wv7xg_107","input-text-field--left-icon":"_input-text-field--left-icon_wv7xg_122","input-text-field--right-icon":"_input-text-field--right-icon_wv7xg_126"},Md={caption:"_caption_9nluj_1","caption--size-md":"_caption--size-md_9nluj_6","caption--size-sm":"_caption--size-sm_9nluj_12","caption--size-xs":"_caption--size-xs_9nluj_17","caption--size-xxs":"_caption--size-xxs_9nluj_22","caption--weight-bold":"_caption--weight-bold_9nluj_27","caption--weight-regular":"_caption--weight-regular_9nluj_31","caption--capitalize":"_caption--capitalize_9nluj_35"},He=h.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:o="gray-900",isUppercase:s=!1,className:l,...c}=e;return u.jsx("p",{ref:t,className:se(Md.caption,Md[`caption--size-${n}`],`text--weight-${r}`,`text--${o}`,s&&Md["caption--capitalize"],l),...c})});He.displayName="Caption";const lx={fluid:"_fluid_xnl5i_1"},cx=["font","letterSpacing","textTransform","fontKerning","fontOpticalSizing","fontSizeAdjust","fontStretch","fontVariant","fontVariationSettings","fontSynthesis","textIndent"],dx={all:"initial",position:"absolute",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden",overflow:"scroll",whiteSpace:"pre"};function ux(e){let t=document.createElement("span");t.innerText=e.value===""?e.placeholder:e.value;let n=window.getComputedStyle(e);Object.assign(t.style,dx),cx.forEach(o=>{t.style[o]=n[o]}),document.body.appendChild(t);let r=fx(t.scrollWidth,n);return document.body.removeChild(t),r}function fx(e,t){let n="calc(";return n+=`${e}px`,t.boxSizing==="border-box"&&(n+=` + ${t.paddingLeft} + ${t.paddingRight}`,n+=` + ${t.borderLeftWidth} + ${t.borderRightWidth}`),n+=")",n}function px(e){return e==null?"":typeof e=="number"?`${e}px`:e}const hx=h.forwardRef(function(t,n){var l;let{fieldSizing:r,...o}=t,s=h.useRef(null);return h.useLayoutEffect(()=>{let c=s.current;function d(){r==="content"&&(c.style.width=ux(c))}return d(),c.addEventListener("input",d),()=>{var p;c.style.width=px((p=t.style)==null?void 0:p.width),c.removeEventListener("input",d)}},[t.value,r,(l=t.style)==null?void 0:l.width]),u.jsx("input",{ref:c=>{s.current=c,typeof n=="function"?n(c):n!=null&&(n.current=c)},...o})}),gx=h.forwardRef(({fieldSizing:e,...t},n)=>e!=="content"?u.jsx("input",{ref:n,...t}):CSS.supports("field-sizing:content")?u.jsx("input",{ref:n,...t,className:se(lx.fluid,t.className)}):u.jsx(hx,{ref:n,...t,fieldSizing:e})),Dn=h.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:o,variant:s="outlined",label:l,placeholder:c,helperText:d,leftAddon:p,rightAddon:m,leftIcon:g,leftIconTwo:v,rightIcon:b,rightIconTwo:E,className:_,contentClassName:w,autoResize:y=!1,...S}=e,T=(O,I)=>{switch(I){case"lg":return u.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:dt["input-text-field--label-text"],children:O});default:case"md":return u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:dt["input-text-field--label-text"],children:O});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:dt["input-text-field--label-text"],children:O})}};return u.jsxs("div",{className:se(dt["input-text-field--container"],o&&dt["input-text-field--disabled"],_),children:[l?T(l,n):null,u.jsxs("div",{className:se(dt["input-text-field--content"],dt[`input-text-field--size-${n}`],dt[`input-text-field--${s}`],y?dt["input-text-field--fluid"]:null,w),children:[p?u.jsx("div",{className:dt["input-text-field--addon"],children:u.jsx(Ce,{size:"xs",fontWeight:"regular",children:p})}):null,g||v?u.jsxs("div",{className:se(dt["input-text-field--icon-container"],dt["input-text-field--left-icon"]),children:[g?u.jsx("span",{className:dt["input-text-field--icon"],children:g}):null,v?u.jsx("span",{className:se(dt["input-text-field--icon"]),children:v}):null]}):null,u.jsx(gx,{ref:t,type:"text",className:se(dt["input-text-field--input"],r&&dt["input-text-field--input-error"],s==="filled"&&"bg--sand-200",o&&"cursor-not-allowed"),placeholder:c,disabled:o,...S,fieldSizing:y?"content":"fixed"}),b||E?u.jsxs("div",{className:se(dt["input-text-field--icon-container"],dt["input-text-field--right-icon"]),children:[b?u.jsx("span",{className:dt["input-text-field--icon"],children:b}):null,E?u.jsx("span",{className:se(dt["input-text-field--icon"]),children:E}):null]}):null,m?u.jsx("div",{className:dt["input-text-field--addon"],children:u.jsx(Ce,{size:"xs",fontWeight:"regular",children:m})}):null]}),d?u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:dt["input-text-field--helper-text"],children:d}):null]})});Dn.displayName="TextField";const Eo={"icon-button":"_icon-button_10wie_1","icon-button--size-md":"_icon-button--size-md_10wie_18","icon-button--size-sm":"_icon-button--size-sm_10wie_24","icon-button--size-xs":"_icon-button--size-xs_10wie_30","icon-button--size-xxs":"_icon-button--size-xxs_10wie_36","icon-button--children":"_icon-button--children_10wie_42","icon-button--icon":"_icon-button--icon_10wie_48","icon-button--primary-filled":"_icon-button--primary-filled_10wie_54","icon-button--primary-filled-disabled":"_icon-button--primary-filled-disabled_10wie_67","icon-button--primary-outlined":"_icon-button--primary-outlined_10wie_79","icon-button--primary-outlined-disabled":"_icon-button--primary-outlined-disabled_10wie_95","icon-button--primary-ghost":"_icon-button--primary-ghost_10wie_108","icon-button--primary-ghost-disabled":"_icon-button--primary-ghost-disabled_10wie_121","icon-button--green-filled":"_icon-button--green-filled_10wie_134","icon-button--green-filled-disabled":"_icon-button--green-filled-disabled_10wie_147","icon-button--green-outlined":"_icon-button--green-outlined_10wie_160","icon-button--green-outlined-disabled":"_icon-button--green-outlined-disabled_10wie_178","icon-button--green-ghost":"_icon-button--green-ghost_10wie_192","icon-button--green-ghost-disabled":"_icon-button--green-ghost-disabled_10wie_207","icon-button--red-filled":"_icon-button--red-filled_10wie_222","icon-button--red-filled-disabled":"_icon-button--red-filled-disabled_10wie_235","icon-button--red-outlined":"_icon-button--red-outlined_10wie_248","icon-button--red-outlined-disabled":"_icon-button--red-outlined-disabled_10wie_266","icon-button--red-ghost":"_icon-button--red-ghost_10wie_280","icon-button--red-ghost-disabled":"_icon-button--red-ghost-disabled_10wie_295","icon-button--sand-filled":"_icon-button--sand-filled_10wie_310","icon-button--sand-filled-disabled":"_icon-button--sand-filled-disabled_10wie_323","icon-button--sand-outlined":"_icon-button--sand-outlined_10wie_336","icon-button--sand-outlined-disabled":"_icon-button--sand-outlined-disabled_10wie_354","icon-button--sand-ghost":"_icon-button--sand-ghost_10wie_368","icon-button--sand-ghost-disabled":"_icon-button--sand-ghost-disabled_10wie_383","icon-button--rsanded-ghost-disabled":"_icon-button--rsanded-ghost-disabled_10wie_389"},at=h.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:o="lg",disabled:s=!1,children:l,className:c,...d}=e;return u.jsx("button",{ref:t,disabled:s,className:se(Eo["icon-button"],Eo[`icon-button--size-${o}`],Eo[`icon-button--${n}-${r}`],s&&Eo[`icon-button--${n}-${r}-disabled`],c),...d,children:u.jsx("span",{className:se("flex",Eo["icon-button--icon"],Eo["icon-button--children"]),children:l})})}),fs={tag:"_tag_10cmb_1","tag--icon-container":"_tag--icon-container_10cmb_20","tag--label":"_tag--label_10cmb_28","tag-close":"_tag-close_10cmb_36","tag--gray-soft":"_tag--gray-soft_10cmb_52","tag--gray-filled":"_tag--gray-filled_10cmb_59","tag--gray-outlined":"_tag--gray-outlined_10cmb_66","tag--sand-soft":"_tag--sand-soft_10cmb_77","tag--sand-filled":"_tag--sand-filled_10cmb_84","tag--sand-outlined":"_tag--sand-outlined_10cmb_91","tag--purple-soft":"_tag--purple-soft_10cmb_103","tag--purple-filled":"_tag--purple-filled_10cmb_110","tag--purple-outlined":"_tag--purple-outlined_10cmb_117","tag--green-soft":"_tag--green-soft_10cmb_129","tag--green-filled":"_tag--green-filled_10cmb_136","tag--green-outlined":"_tag--green-outlined_10cmb_143","tag--red-soft":"_tag--red-soft_10cmb_155","tag--red-filled":"_tag--red-filled_10cmb_162","tag--red-outlined":"_tag--red-outlined_10cmb_169","tag--salmon-soft":"_tag--salmon-soft_10cmb_181","tag--salmon-filled":"_tag--salmon-filled_10cmb_188","tag--salmon-outlined":"_tag--salmon-outlined_10cmb_195","tag--orange-soft":"_tag--orange-soft_10cmb_207","tag--orange-filled":"_tag--orange-filled_10cmb_214","tag--orange-outlined":"_tag--orange-outlined_10cmb_221","tag--pink-soft":"_tag--pink-soft_10cmb_233","tag--pink-filled":"_tag--pink-filled_10cmb_240","tag--pink-outlined":"_tag--pink-outlined_10cmb_247","tag--yellow-soft":"_tag--yellow-soft_10cmb_259","tag--yellow-filled":"_tag--yellow-filled_10cmb_266","tag--yellow-outlined":"_tag--yellow-outlined_10cmb_274","tag--darkblue-soft":"_tag--darkblue-soft_10cmb_286","tag--darkblue-filled":"_tag--darkblue-filled_10cmb_293","tag--darkblue-outlined":"_tag--darkblue-outlined_10cmb_300","tag--lightblue-soft":"_tag--lightblue-soft_10cmb_312","tag--lightblue-filled":"_tag--lightblue-filled_10cmb_319","tag--lightblue-outlined":"_tag--lightblue-outlined_10cmb_327","tag--mint-soft":"_tag--mint-soft_10cmb_339","tag--mint-filled":"_tag--mint-filled_10cmb_346","tag--mint-outlined":"_tag--mint-outlined_10cmb_354"},Pa=12,mx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 4.793a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Zm10-1A2.75 2.75 0 0 1 16 3.293h2a2.75 2.75 0 0 1 2.75 2.75v2a2.75 2.75 0 0 1-2.75 2.75h-2a2.75 2.75 0 0 1-2.75-2.75v-2ZM16 4.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25h-2ZM3.25 16.043A2.75 2.75 0 0 1 6 13.293h2a2.75 2.75 0 0 1 2.75 2.75v2A2.75 2.75 0 0 1 8 20.793H6a2.75 2.75 0 0 1-2.75-2.75v-2ZM6 14.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25H6Zm11 0a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Z",clipRule:"evenodd"})}),vx=(()=>{const e=h.forwardRef(mx);return e.displayName="SvgAppsMenu",e})(),bx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.25 6A4.75 4.75 0 0 1 12 1.25h6A4.75 4.75 0 0 1 22.75 6v6A4.75 4.75 0 0 1 18 16.75h-1.25V18A4.75 4.75 0 0 1 12 22.75H6A4.75 4.75 0 0 1 1.25 18v-6A4.75 4.75 0 0 1 6 7.25h1.25V6Zm1.5 1.25H12A4.75 4.75 0 0 1 16.75 12v3.25H18A3.25 3.25 0 0 0 21.25 12V6A3.25 3.25 0 0 0 18 2.75h-6A3.25 3.25 0 0 0 8.75 6v1.25ZM6 8.75A3.25 3.25 0 0 0 2.75 12v6A3.25 3.25 0 0 0 6 21.25h6A3.25 3.25 0 0 0 15.25 18v-6A3.25 3.25 0 0 0 12 8.75H6Z",clipRule:"evenodd"})}),_x=(()=>{const e=h.forwardRef(bx);return e.displayName="SvgCopy",e})(),xx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),Ex=(()=>{const e=h.forwardRef(xx);return e.displayName="SvgDirectionDown01Chevron",e})(),wx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.468 6.457a.75.75 0 0 1 .118 1.055l-3.625 4.531 3.625 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.054-.117Zm-5.999 0a.75.75 0 0 1 .117 1.055L7.96 12.043l3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),yx=(()=>{const e=h.forwardRef(wx);return e.displayName="SvgDirectionLeft",e})(),Cx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Zm5.999 0a.75.75 0 0 0-.117 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.055-.117Z",clipRule:"evenodd"})}),Tx=(()=>{const e=h.forwardRef(Cx);return e.displayName="SvgDirectionRight",e})(),Sx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.586 14.511a.75.75 0 0 1-1.054.118L12 11.003 7.469 14.63a.75.75 0 1 1-.937-1.172l5-4a.75.75 0 0 1 .937 0l5 4a.75.75 0 0 1 .117 1.054Z",clipRule:"evenodd"})}),Ix=(()=>{const e=h.forwardRef(Sx);return e.displayName="SvgDirectionUp01Chevron",e})(),Ax=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.515 5.848A4.75 4.75 0 0 1 8.123 2.25h3.666a4.75 4.75 0 0 1 2.635.798l1.547 1.031.037.025A2.742 2.742 0 0 1 18 3.25h2A2.75 2.75 0 0 1 22.75 6v7A2.75 2.75 0 0 1 20 15.75h-2c-.673 0-1.29-.242-1.768-.644l-3.58 6.266a.75.75 0 0 1-.652.378h-1.328c-2.596 0-4.144-2.893-2.705-5.053l.632-.947H4.562a2.75 2.75 0 0 1-2.668-3.417l1.621-6.485ZM16.75 13c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25V6c0-.69-.56-1.25-1.25-1.25h-2c-.69 0-1.25.56-1.25 1.25v7Zm-1.5-7.465a.25.25 0 0 0-.111-.208l-1.547-1.031a3.25 3.25 0 0 0-1.803-.546H8.123A3.25 3.25 0 0 0 4.97 6.212l-1.62 6.485a1.25 1.25 0 0 0 1.212 1.553H10a.75.75 0 0 1 .624 1.166l-1.408 2.113c-.776 1.163.058 2.721 1.456 2.721h.893l3.652-6.392a.25.25 0 0 0 .033-.124V5.535Z",clipRule:"evenodd"})}),Z0=(()=>{const e=h.forwardRef(Ax);return e.displayName="SvgDislike",e})(),Ox=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M10.9 6.908a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm6.75-11a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Z"})}),$x=(()=>{const e=h.forwardRef(Ox);return e.displayName="SvgDragCustom",e})(),Dx=(e,t)=>u.jsxs("svg",{width:"140",height:"132",viewBox:"0 0 140 132",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M70.462 115.665C102.296 115.665 128.102 89.8399 128.102 57.9834C128.102 26.127 102.296 0.302246 70.462 0.302246C38.6285 0.302246 12.8223 26.127 12.8223 57.9834C12.8223 89.8399 38.6285 115.665 70.462 115.665Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter0_d_355_44078)",children:u.jsx("path",{d:"M117.694 21.9143V93.6056C117.694 96.1993 115.56 98.3353 112.968 98.3353H27.1316C24.5398 98.3353 22.4053 96.1993 22.4053 93.6056V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint0_linear_355_44078)"})}),u.jsx("path",{d:"M117.694 21.9143V25.3472H22.4053V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint1_linear_355_44078)"}),u.jsx("path",{d:"M27.3599 22.7536C28.1598 22.7536 28.8083 22.1047 28.8083 21.3042C28.8083 20.5037 28.1598 19.8547 27.3599 19.8547C26.56 19.8547 25.9115 20.5037 25.9115 21.3042C25.9115 22.1047 26.56 22.7536 27.3599 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.6",d:"M31.8576 22.7536C32.6575 22.7536 33.306 22.1047 33.306 21.3042C33.306 20.5037 32.6575 19.8547 31.8576 19.8547C31.0576 19.8547 30.4092 20.5037 30.4092 21.3042C30.4092 22.1047 31.0576 22.7536 31.8576 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.4",d:"M36.4314 22.7536C37.2314 22.7536 37.8798 22.1047 37.8798 21.3042C37.8798 20.5037 37.2314 19.8547 36.4314 19.8547C35.6315 19.8547 34.983 20.5037 34.983 21.3042C34.983 22.1047 35.6315 22.7536 36.4314 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{d:"M95.5253 57.9033H44.8824C43.3771 57.9033 42.0868 56.3142 42.0868 54.4602V37.5099C42.0868 35.656 43.3771 34.0669 44.8824 34.0669H95.5253C97.0306 34.0669 98.3209 35.656 98.3209 37.5099V54.4602C98.3209 56.3142 97.0306 57.9033 95.5253 57.9033Z",fill:"white"}),u.jsx("path",{d:"M75.538 43.9123H49.1297C48.3012 43.9123 47.5763 43.1869 47.5763 42.3578C47.5763 41.5287 48.3012 40.8032 49.1297 40.8032H75.538C76.3665 40.8032 77.0914 41.5287 77.0914 42.3578C76.9879 43.1869 76.3665 43.9123 75.538 43.9123Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M91.2787 43.9123H80.8189C79.9904 43.9123 79.2655 43.1869 79.2655 42.3578C79.2655 41.5287 79.9904 40.8032 80.8189 40.8032H91.2787C92.1072 40.8032 92.8321 41.5287 92.8321 42.3578C92.7285 43.1869 92.1072 43.9123 91.2787 43.9123Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M70.8776 51.0632H49.1296C48.3011 51.0632 47.5762 50.3377 47.5762 49.5086C47.5762 48.6796 48.3011 47.9541 49.1296 47.9541H70.8776C71.7061 47.9541 72.431 48.6796 72.431 49.5086C72.431 50.3377 71.7061 51.0632 70.8776 51.0632Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M95.5253 88.5639H44.8824C43.3771 88.5639 42.0868 86.9748 42.0868 85.1209V68.1706C42.0868 66.3166 43.3771 64.7275 44.8824 64.7275H95.5253C97.0306 64.7275 98.3209 66.3166 98.3209 68.1706V85.1209C98.3209 87.1072 97.0306 88.5639 95.5253 88.5639Z",fill:"white"}),u.jsx("path",{d:"M75.538 74.573H49.1297C48.3012 74.573 47.5763 73.8475 47.5763 73.0184C47.5763 72.1893 48.3012 71.4639 49.1297 71.4639H75.538C76.3665 71.4639 77.0914 72.1893 77.0914 73.0184C76.9879 73.9511 76.3665 74.573 75.538 74.573Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M91.2787 74.573H80.8189C79.9904 74.573 79.2655 73.8475 79.2655 73.0184C79.2655 72.1893 79.9904 71.4639 80.8189 71.4639H91.2787C92.1072 71.4639 92.8321 72.1893 92.8321 73.0184C92.7285 73.9511 92.1072 74.573 91.2787 74.573Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M70.8776 81.7238H49.1296C48.3011 81.7238 47.5762 80.9984 47.5762 80.1693C47.5762 79.3402 48.3011 78.6147 49.1296 78.6147H70.8776C71.7061 78.6147 72.431 79.3402 72.431 80.1693C72.431 81.102 71.7061 81.7238 70.8776 81.7238Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M90.788 110.64C90.4128 112.234 89.8501 113.923 89.1936 115.329C87.4115 118.8 84.5978 121.52 81.1276 123.302C77.5635 125.084 73.343 125.834 69.1224 124.896C59.1806 122.833 52.8028 113.078 54.8662 103.137C56.9296 93.1949 66.59 86.7233 76.5318 88.8805C80.0959 89.6308 83.191 91.4128 85.8171 93.8514C90.2253 98.2595 92.1011 104.637 90.788 110.64Z",fill:"url(#paint2_linear_355_44078)"}),u.jsx("path",{d:"M78.6888 105.294H74.4682V101.073C74.4682 100.229 73.8117 99.479 72.8738 99.479C72.0297 99.479 71.2794 100.136 71.2794 101.073V105.294H67.0588C66.2147 105.294 65.4644 105.951 65.4644 106.888C65.4644 107.826 66.1209 108.483 67.0588 108.483H71.2794V112.703C71.2794 113.548 71.9359 114.298 72.8738 114.298C73.7179 114.298 74.4682 113.641 74.4682 112.703V108.483H78.6888C79.5329 108.483 80.2833 107.826 80.2833 106.888C80.2833 105.951 79.5329 105.294 78.6888 105.294Z",fill:"white"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44078",x:"0.405273",y:"6.18457",width:"139.289",height:"125.151",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44078"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44078",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44078",x1:"70.0188",y1:"15.3075",x2:"70.0188",y2:"99.2101",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44078",x1:"113.915",y1:"17.1846",x2:"25.456",y2:"20.7799",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44078",x1:"89.7428",y1:"88.4654",x2:"55.5982",y2:"88.5839",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),Mx=(()=>{const e=h.forwardRef(Dx);return e.displayName="SvgIllustrationCard",e})(),Px=(e,t)=>u.jsxs("svg",{width:"178",height:"140",viewBox:"0 0 178 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M79.2856 125C113.779 125 141.741 97.0178 141.741 62.5C141.741 27.9822 113.779 0 79.2856 0C44.7927 0 16.8306 27.9822 16.8306 62.5C16.8306 97.0178 44.7927 125 79.2856 125Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter0_d_355_44030)",children:u.jsx("path",{d:"M136.899 25.2617V101.676C136.899 104.37 134.688 106.589 132.003 106.589H27.537C24.8518 106.589 22.6404 104.37 22.6404 101.676V25.2617C22.6404 22.5676 24.8518 20.3489 27.537 20.3489H132.003C134.688 20.3489 136.899 22.5676 136.899 25.2617Z",fill:"url(#paint0_linear_355_44030)"})}),u.jsx("path",{d:"M101.244 57.0718C100.636 54.8258 99.2185 52.8862 97.1932 51.6611C94.9654 50.334 92.6363 50.1298 90.1047 49.9256C85.649 49.4152 81.092 49.3131 76.5351 49.5173C72.4845 49.6194 67.8263 49.4152 64.0794 51.1507C58.7124 53.4987 58.0035 58.7052 57.801 64.32C57.5985 68.5055 57.5985 73.5078 58.7124 77.5913C59.6238 80.8581 62.1554 83.4103 65.4972 84.1249C69.7503 85.1458 78.8642 85.35 83.3199 85.2479C83.7249 85.2479 84.13 85.2479 84.5351 85.2479C88.0793 85.1458 91.8262 85.1458 95.0667 83.9207C97.8008 83.0019 99.4211 81.3686 100.434 79.3268C101.649 76.8767 101.953 73.8141 102.054 70.4452C102.459 66.0554 102.358 61.0532 101.244 57.0718Z",fill:"url(#paint1_linear_355_44030)"}),u.jsx("path",{d:"M76.1088 61.4951C76.1088 60.1481 76.789 59.6991 77.8944 60.4175C80.8705 62.3033 83.9316 64.2788 86.9076 66.1646C88.013 66.883 88.013 67.6911 86.9076 68.4993C83.9316 70.3851 80.9555 72.3606 77.9794 74.2464C76.789 74.9648 76.1938 74.6056 76.1088 73.3484C76.1088 72.8096 76.1088 62.7522 76.1088 61.4951Z",fill:"white"}),u.jsx("path",{d:"M136.899 25.647V29.1937H22.6404V25.647C22.6404 22.9673 24.8518 20.7605 27.537 20.7605H132.003C134.688 20.7605 136.899 22.9673 136.899 25.647Z",fill:"url(#paint2_linear_355_44030)"}),u.jsx("path",{d:"M27.4345 26.514C28.261 26.514 28.9309 25.8436 28.9309 25.0165C28.9309 24.1895 28.261 23.519 27.4345 23.519C26.6081 23.519 25.9381 24.1895 25.9381 25.0165C25.9381 25.8436 26.6081 26.514 27.4345 26.514Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.6",d:"M32.0812 26.514C32.9077 26.514 33.5776 25.8436 33.5776 25.0165C33.5776 24.1895 32.9077 23.519 32.0812 23.519C31.2548 23.519 30.5848 24.1895 30.5848 25.0165C30.5848 25.8436 31.2548 26.514 32.0812 26.514Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.4",d:"M36.8068 26.514C37.6333 26.514 38.3032 25.8436 38.3032 25.0165C38.3032 24.1895 37.6333 23.519 36.8068 23.519C35.9804 23.519 35.3104 24.1895 35.3104 25.0165C35.3104 25.8436 35.9804 26.514 36.8068 26.514Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter1_d_355_44030)",children:u.jsx("rect",{x:"109.054",y:"40.6978",width:"46.5116",height:"46.5116",rx:"6",fill:"url(#paint3_linear_355_44030)"})}),u.jsx("rect",{x:"114.003",y:"45.6458",width:"36.6155",height:"36.6155",rx:"2",fill:"#EEECE6"}),u.jsx("path",{d:"M136.504 59.6813C137.352 59.6813 138.039 58.9959 138.039 58.1503C138.039 57.3048 137.352 56.6194 136.504 56.6194C135.656 56.6194 134.969 57.3048 134.969 58.1503C134.969 58.9959 135.656 59.6813 136.504 59.6813Z",fill:"#D2C8B1"}),u.jsx("path",{d:"M136.593 69.6213H124.882C124.126 69.6213 123.686 68.7468 124.126 68.1847L129.982 60.0645C130.36 59.5648 131.115 59.5648 131.493 60.0645L137.349 68.1847C137.789 68.8093 137.349 69.6213 136.593 69.6213Z",fill:"#D2C8B1"}),u.jsx("path",{opacity:"0.7",d:"M140.67 69.4556H134.907C134.031 69.4556 133.593 68.5477 134.031 67.9192L136.877 64.078C137.314 63.5193 138.117 63.5193 138.555 64.078L141.4 67.9192C142.057 68.5477 141.546 69.4556 140.67 69.4556Z",fill:"#D2C8B1"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44030",x:"0.640381",y:"9.34888",width:"158.259",height:"130.24",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),u.jsxs("filter",{id:"filter1_d_355_44030",x:"87.0544",y:"29.6978",width:"90.5116",height:"90.5117",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44030",x1:"79.7326",y1:"18.3541",x2:"79.7326",y2:"107.519",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44030",x1:"100.504",y1:"49.4188",x2:"59.0575",y2:"49.5982",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44030",x1:"132.367",y1:"20.7605",x2:"26.3591",y2:"25.7611",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint3_linear_355_44030",x1:"132.295",y1:"39.6219",x2:"132.295",y2:"87.7108",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),Rx=(()=>{const e=h.forwardRef(Px);return e.displayName="SvgIllustrationMedia",e})(),Nx=(e,t)=>u.jsxs("svg",{width:"129",height:"142",viewBox:"0 0 129 142",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M64.5351 141.268C99.4733 141.268 127.796 112.771 127.796 77.619C127.796 42.4665 99.4733 13.9697 64.5351 13.9697C29.5969 13.9697 1.27393 42.4665 1.27393 77.619C1.27393 112.771 29.5969 141.268 64.5351 141.268Z",fill:"#F3F1ED"}),u.jsx("mask",{id:"mask0_355_44054",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"11",width:"129",height:"131",children:u.jsx("path",{d:"M64.5351 140.268C99.4733 140.268 127.796 111.771 127.796 76.619C127.796 41.4665 99.4733 12.9697 64.5351 12.9697C29.5969 12.9697 1.27393 41.4665 1.27393 76.619C1.27393 111.771 29.5969 140.268 64.5351 140.268Z",fill:"#F1F3F9",stroke:"#D6DCE8","stroke-width":"2","stroke-miterlimit":"10"})}),u.jsxs("g",{mask:"url(#mask0_355_44054)",children:[u.jsx("path",{d:"M115.351 133.619H136.97C137.369 132.335 137.688 130.971 137.848 129.686C137.848 129.526 137.928 129.285 137.928 129.125C137.928 128.964 137.928 128.804 138.007 128.643C138.406 122.864 136.412 117.085 132.662 112.831C132.583 112.751 132.583 112.751 132.503 112.671C129.232 109.059 124.685 106.49 119.181 105.928C119.021 105.928 118.861 105.928 118.702 105.848C118.542 105.848 118.383 105.848 118.144 105.848C117.745 105.848 117.426 105.848 117.027 105.848C114.394 105.848 111.841 106.33 109.528 107.213C108.73 107.534 107.932 107.855 107.214 108.256C106.975 108.417 106.736 108.497 106.496 108.657C106.257 108.818 106.098 108.898 105.858 109.059C105.699 109.139 105.539 109.299 105.38 109.38C105.22 109.46 105.06 109.62 104.901 109.701C104.662 109.861 104.422 110.102 104.103 110.263C102.587 111.467 101.231 112.831 100.114 114.356C99.9549 114.597 99.7156 114.838 99.5561 115.159C99.4763 115.319 99.3167 115.48 99.237 115.64C99.1572 115.801 98.9976 115.961 98.9179 116.202C98.7583 116.443 98.6785 116.603 98.5988 116.844C98.519 116.924 98.519 117.005 98.4392 117.085C98.3594 117.246 98.1999 117.486 98.1201 117.727C98.0403 117.888 97.9606 118.048 97.8808 118.209C94.9291 118.369 92.137 119.332 86.2337 123.265L85.2764 101.835H77.8574L77.2192 115.159C74.826 113.313 72.5125 113.553 70.917 113.634L71.3159 113.553L70.6777 100.39H58.552L57.834 116.042C55.7598 114.436 55.1216 115.239 54.4834 115.239C53.2071 115.239 52.0902 115.56 51.0531 116.122L50.4149 101.835H43.0757L42.597 113.152C39.2465 111.145 35.3376 110.022 31.2691 110.022C26.2433 110.022 21.6163 111.707 17.8669 114.517C11.0861 111.306 4.06594 112.028 -1.43851 115.159C-1.67783 115.319 -1.83738 115.399 -2.0767 115.56C-2.15648 115.64 -2.31603 115.721 -2.3958 115.721C-2.55535 115.801 -2.63512 115.881 -2.79467 115.961C-2.95422 116.042 -3.11377 116.122 -3.19355 116.282C-5.02836 117.567 -6.62385 119.092 -7.90024 120.857C-7.98002 121.018 -8.13957 121.098 -8.21934 121.259C-8.29912 121.419 -8.45867 121.5 -8.53844 121.66C-8.61821 121.821 -8.69799 121.901 -8.85754 122.061C-8.93731 122.222 -9.01709 122.382 -9.09686 122.463C-9.17664 122.543 -9.25641 122.703 -9.25641 122.784C-11.171 125.994 -12.2081 129.686 -12.2081 133.619L86.2337 143.733L115.351 133.619Z",fill:"white"}),u.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",fill:"white"}),u.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999L86.1541 123.667Z",fill:"white"}),u.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",fill:"white"}),u.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M50.0162 116.764C51.2128 115.721 52.8083 115.159 54.4836 115.159C57.2757 115.159 59.6689 116.764 60.7858 119.092",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M8.85248 132.415C8.85248 119.974 18.8243 109.941 31.1894 109.941C41.4803 109.941 50.1757 116.924 52.7285 126.476",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M52.9677 126.396C53.207 122.302 56.5576 119.092 60.7058 119.092C62.2216 119.092 63.6575 119.573 64.8541 120.296",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M68.2048 114.758C69.4812 113.875 70.9171 113.393 72.5924 113.393C75.1452 113.393 77.3788 114.677 78.8148 116.523",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M115.351 133.138C115.192 131.131 114.634 129.205 113.756 127.52",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M85.2765 125.192C88.3079 120.858 93.2539 118.048 98.8382 118.048C104.183 118.048 108.97 120.617 112.001 124.55",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M64.6944 132.897C63.8967 128.884 60.3866 125.834 56.1586 125.834C54.962 125.834 53.8451 126.075 52.808 126.556C50.8137 127.359 49.2182 128.964 48.3407 130.891",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M17.8669 114.436C17.7872 114.436 17.7872 114.436 17.8669 114.436C11.5647 111.467 4.06594 111.707 -2.0767 115.48C-2.15648 115.56 -2.31603 115.64 -2.3958 115.64C-2.55535 115.721 -2.63512 115.801 -2.79467 115.881C-3.51264 116.363 -4.15084 116.844 -4.78904 117.406C-6.22498 118.69 -7.50137 120.055 -8.53844 121.58C-8.61821 121.74 -8.69799 121.821 -8.85754 121.981C-8.93731 122.142 -9.01709 122.302 -9.09686 122.382C-9.17664 122.463 -9.25641 122.623 -9.25641 122.703C-11.0912 125.834 -12.0485 129.365 -12.2081 132.977",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M97.8012 118.048C97.881 117.888 97.9607 117.727 98.0405 117.567C99.9551 113.554 103.146 110.263 107.055 108.176C107.773 107.775 108.571 107.454 109.368 107.133C111.682 106.25 114.235 105.768 116.867 105.768C117.266 105.768 117.585 105.768 117.984 105.768C118.144 105.768 118.303 105.768 118.543 105.768C118.702 105.768 118.862 105.768 119.021 105.848C124.286 106.41 128.993 108.898 132.344 112.59C132.423 112.671 132.423 112.671 132.503 112.751C135.854 116.523 137.928 121.5 137.928 126.958C137.928 127.52 137.928 128.001 137.848 128.563C137.848 128.724 137.848 128.884 137.768 129.045C137.768 129.205 137.688 129.446 137.688 129.606C137.529 130.73 137.29 131.854 136.97 132.978",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]}),u.jsx("path",{d:"M32.4655 68.1476H32.1464C31.7475 68.1476 31.3487 67.8266 31.3487 67.345V67.0239C31.3487 66.7029 31.0296 66.3818 30.7105 66.3818C30.3914 66.3818 30.0723 66.7029 30.0723 67.0239V67.345C30.0723 67.7463 29.7532 68.1476 29.2745 68.1476H29.0352C28.7161 68.1476 28.397 68.4687 28.397 68.7898C28.397 69.1108 28.7161 69.4319 29.0352 69.4319H29.3543C29.7532 69.4319 30.152 69.7529 30.152 70.2345V70.5556C30.152 70.8766 30.4711 71.1977 30.7902 71.1977C31.1093 71.1977 31.4284 70.8766 31.4284 70.5556V70.2345C31.4284 69.8332 31.7475 69.4319 32.2262 69.4319H32.5453C32.8644 69.4319 33.1835 69.1108 33.1835 68.7898C33.1037 68.4687 32.8644 68.1476 32.4655 68.1476Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M28.6367 44.4702H28.3176C27.7591 44.4702 27.3603 44.0688 27.3603 43.507V43.1859C27.3603 42.7846 27.0412 42.3833 26.5625 42.3833C26.0839 42.3833 25.7648 42.7044 25.7648 43.1859V43.507C25.7648 44.0688 25.3659 44.4702 24.8075 44.4702H24.4086C24.0097 44.4702 23.6109 44.7912 23.6109 45.2728C23.6109 45.6741 23.93 46.0754 24.4086 46.0754H24.7277C25.2861 46.0754 25.685 46.4768 25.685 47.0386V47.3597C25.685 47.761 26.0041 48.1623 26.4828 48.1623C26.9614 48.1623 27.2805 47.8412 27.2805 47.3597V47.0386C27.2805 46.4768 27.6794 46.0754 28.2378 46.0754H28.5569C28.9558 46.0754 29.3546 45.7544 29.3546 45.2728C29.4344 44.8715 29.1153 44.4702 28.6367 44.4702Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M103.385 41.8215H103.146C102.827 41.8215 102.508 41.5005 102.508 41.1794V40.9386C102.508 40.6176 102.268 40.457 102.029 40.457C101.71 40.457 101.471 40.6978 101.471 40.9386V41.1794C101.471 41.5005 101.152 41.8215 100.832 41.8215H100.593C100.274 41.8215 100.114 42.0623 100.114 42.3031C100.114 42.6242 100.354 42.7847 100.593 42.7847H100.832C101.152 42.7847 101.471 43.1057 101.471 43.4268V43.6676C101.471 43.9886 101.71 44.1492 102.029 44.1492C102.348 44.1492 102.508 43.9084 102.508 43.6676V43.4268C102.508 43.1057 102.827 42.7847 103.146 42.7847H103.385C103.704 42.7847 103.864 42.5439 103.864 42.3031C103.944 42.1426 103.625 41.8215 103.385 41.8215Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M102.667 103.063H102.428C102.109 103.063 101.79 102.742 101.79 102.421V102.18C101.79 101.859 101.551 101.698 101.311 101.698C100.992 101.698 100.753 101.939 100.753 102.18V102.421C100.753 102.742 100.434 103.063 100.115 103.063H99.8754C99.5563 103.063 99.3967 103.304 99.3967 103.544C99.3967 103.785 99.636 104.026 99.8754 104.026H100.115C100.434 104.026 100.753 104.347 100.753 104.668V104.909C100.753 105.23 100.992 105.39 101.311 105.39C101.63 105.39 101.79 105.15 101.79 104.909V104.668C101.79 104.347 102.109 104.026 102.428 104.026H102.667C102.987 104.026 103.146 103.785 103.146 103.544C103.146 103.304 102.907 103.063 102.667 103.063Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M28.8758 102.581H28.6365C28.3174 102.581 27.9983 102.26 27.9983 101.939V101.698C27.9983 101.377 27.759 101.217 27.5196 101.217C27.2005 101.217 26.9612 101.458 26.9612 101.698V101.939C26.9612 102.26 26.6421 102.581 26.323 102.581H26.0837C25.7646 102.581 25.605 102.822 25.605 103.063C25.605 103.384 25.8444 103.544 26.0837 103.544H26.323C26.6421 103.544 26.9612 103.866 26.9612 104.187V104.427C26.9612 104.748 27.2005 104.909 27.5196 104.909C27.8387 104.909 27.9983 104.668 27.9983 104.427V104.187C27.9983 103.866 28.3174 103.544 28.6365 103.544H28.8758C29.1949 103.544 29.3544 103.304 29.3544 103.063C29.4342 102.822 29.1151 102.581 28.8758 102.581Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M16.0323 77.619C15.075 77.619 14.2773 76.8164 14.2773 75.8532C14.2773 74.89 15.075 74.0874 16.0323 74.0874C16.9896 74.0874 17.7873 74.89 17.7873 75.8532C17.7873 76.8164 16.9896 77.619 16.0323 77.619ZM16.0323 75.0506C15.6334 75.0506 15.2345 75.3716 15.2345 75.8532C15.2345 76.2545 15.5536 76.6558 16.0323 76.6558C16.4312 76.6558 16.83 76.3348 16.83 75.8532C16.9098 75.4519 16.5109 75.0506 16.0323 75.0506Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M97.8008 65.6597C96.2851 65.6597 95.1683 64.4558 95.1683 63.011C95.1683 61.5663 96.3649 60.3623 97.8008 60.3623C99.3166 60.3623 100.433 61.5663 100.433 63.011C100.433 64.4558 99.2368 65.6597 97.8008 65.6597ZM97.8008 61.8071C97.1626 61.8071 96.5244 62.3689 96.5244 63.0913C96.5244 63.8136 97.0829 64.3755 97.8008 64.3755C98.439 64.3755 99.0772 63.8136 99.0772 63.0913C99.0772 62.3689 98.5188 61.8071 97.8008 61.8071Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M113.756 56.9912C113.118 56.9912 112.559 57.4728 112.559 58.1952C112.559 58.9175 113.038 59.3991 113.756 59.3991C114.394 59.3991 114.952 58.9175 114.952 58.1952C114.952 57.4728 114.394 56.9912 113.756 56.9912Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M113.836 84.6019H113.517C113.038 84.6019 112.719 84.2006 112.719 83.7993V83.4782C112.719 83.0769 112.4 82.7559 112.001 82.7559C111.602 82.7559 111.283 83.0769 111.283 83.4782V83.7993C111.283 84.2809 110.884 84.6019 110.485 84.6019H110.166C109.767 84.6019 109.448 84.923 109.448 85.3243C109.448 85.7256 109.767 86.0467 110.166 86.0467H110.485C110.964 86.0467 111.283 86.448 111.283 86.8493V87.1704C111.283 87.5717 111.602 87.8927 112.001 87.8927C112.4 87.8927 112.719 87.5717 112.719 87.1704V86.8493C112.719 86.3677 113.118 86.0467 113.517 86.0467H113.836C114.235 86.0467 114.554 85.7256 114.554 85.3243C114.474 84.923 114.235 84.6019 113.836 84.6019Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint0_linear_355_44054)"}),u.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"white",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M51.5317 101.755H41.7992C41.5599 101.755 41.4003 101.594 41.4003 101.353C41.4003 101.113 41.5599 100.952 41.7992 100.952H51.5317C51.771 100.952 51.9306 101.113 51.9306 101.353C51.8508 101.594 51.6912 101.755 51.5317 101.755Z",fill:"url(#paint1_linear_355_44054)"}),u.jsx("path",{d:"M50.9733 99.427C51.2126 99.5875 51.4519 99.9086 51.4519 100.23V101.032H41.879V100.23C41.879 99.9086 42.0385 99.5875 42.2779 99.427L43.5543 98.5441V95.0928H49.6171V98.6244L50.9733 99.427Z",fill:"url(#paint2_linear_355_44054)"}),u.jsx("path",{d:"M47.3039 17.6383C46.905 17.3172 46.3466 17.3172 46.0275 17.6383C44.2725 19.1633 41.4803 24.5409 41.4803 30.2397V97.4205C41.4803 98.0627 41.959 98.5442 42.5972 98.5442H46.6657H50.7342C51.3724 98.5442 51.851 98.0627 51.851 97.4205V30.3199C51.851 24.5409 49.0589 19.2435 47.3039 17.6383Z",fill:"url(#paint3_linear_355_44054)"}),u.jsx("path",{d:"M65.6518 0.30099C64.7743 -0.10033 63.4979 -0.10033 62.6204 0.30099C58.4721 2.38785 51.8508 12.2603 51.8508 20.0459C51.8508 28.8749 51.8508 94.4505 51.8508 94.4505H64.1361H76.4214C76.4214 94.4505 76.4214 28.8749 76.4214 20.0459C76.3416 12.2603 69.8001 2.46811 65.6518 0.30099Z",fill:"url(#paint4_linear_355_44054)"}),u.jsx("path",{d:"M57.2756 28.9551H76.4215",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M51.8508 28.9551H54.1643",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M46.9047 31.2026H51.8507",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M41.4003 31.2026H43.5542",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M45.3892 45.0884H51.8509",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M86.4729 101.755H76.7404C76.501 101.755 76.3415 101.594 76.3415 101.353C76.3415 101.113 76.501 100.952 76.7404 100.952H86.4729C86.7122 100.952 86.8717 101.113 86.8717 101.353C86.792 101.594 86.6324 101.755 86.4729 101.755Z",fill:"url(#paint5_linear_355_44054)"}),u.jsx("path",{d:"M85.9945 99.427C86.2338 99.5875 86.4731 99.9086 86.4731 100.23V101.032H76.9002V100.23C76.9002 99.9086 77.0597 99.5875 77.299 99.427L78.5754 98.5441V95.0928H84.6383V98.6244L85.9945 99.427Z",fill:"url(#paint6_linear_355_44054)"}),u.jsx("path",{d:"M82.2451 17.6383C81.8462 17.3172 81.2878 17.3172 80.9687 17.6383C79.2137 19.1633 76.4215 24.5409 76.4215 30.2397V97.4205C76.4215 98.0627 76.9002 98.5442 77.5384 98.5442H81.6069H85.6754C86.3136 98.5442 86.7922 98.0627 86.7922 97.4205V30.3199C86.7922 24.5409 84.0001 19.2435 82.2451 17.6383Z",fill:"url(#paint7_linear_355_44054)"}),u.jsx("path",{d:"M80.5699 31.2026H86.8721",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M81.0486 45.0884H86.7923",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M76.3415 45.0884H78.5752",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("g",{filter:"url(#filter0_d_355_44054)",children:u.jsx("path",{d:"M57.0362 40.192L57.5149 38.2657L58.7913 37.9447L60.9452 37.4631L61.1845 37.3828L61.344 40.192L64.4552 86.3438L57.7542 95.6544L55.1216 95.1728L36.6139 91.9623C35.4971 91.8017 34.6196 90.7583 34.6196 89.6346V80.8858C34.6196 79.8424 35.0184 78.799 35.7364 78.0766L48.1812 65.3949C50.1756 63.308 51.6913 60.7396 52.4093 58.0106L55.0419 47.8974L57.0362 40.192Z",fill:"url(#paint8_linear_355_44054)"})}),u.jsx("g",{filter:"url(#filter1_d_355_44054)",children:u.jsx("path",{d:"M94.53 80.8858V89.6346C94.53 90.7583 93.7323 91.8017 92.5357 91.9623L78.6549 94.3702L71.3954 95.6544L64.6146 86.3438L67.9651 37.3828L68.2044 37.4631L70.3584 37.9447L71.6347 38.2657L76.2617 55.8435L76.8201 58.0106C77.5381 60.8199 78.974 63.3883 81.0481 65.3949L93.493 78.0766C94.1312 78.799 94.53 79.8424 94.53 80.8858Z",fill:"url(#paint9_linear_355_44054)"})}),u.jsx("g",{filter:"url(#filter2_d_355_44054)",children:u.jsx("path",{d:"M71.6351 35.6974V94.5308H57.2756V35.6974C57.2756 33.1289 57.8341 30.6407 58.8711 28.3131C59.1104 27.9118 59.27 27.4302 59.5093 27.0289L62.5408 21.9722C63.4183 20.5275 65.4126 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.8002 27.9118 69.9598 28.3131C71.0766 30.6407 71.6351 33.2092 71.6351 35.6974Z",fill:"url(#paint10_linear_355_44054)"})}),u.jsx("path",{d:"M70.0396 28.3131C69.5609 27.5104 68.6834 27.0289 67.6464 27.0289H61.2644C60.3071 27.0289 59.4296 27.5104 58.8712 28.3131C59.1105 27.9118 59.27 27.4302 59.5094 27.0289L62.5408 21.9722C63.4183 20.5275 65.4127 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.88 27.9118 70.0396 28.3131Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M68.1248 35.1354C68.1248 35.3762 67.8057 35.5367 67.6462 35.2959C67.2473 34.8144 66.6889 34.5736 65.9709 34.5736H62.8597C62.2215 34.5736 61.6631 34.8144 61.2642 35.2959C61.2642 35.2959 61.2642 35.2959 61.1844 35.3762C61.0249 35.617 60.7058 35.4565 60.7058 35.2157C60.7058 34.9749 60.7058 34.7341 60.7058 34.413C60.7058 33.2091 61.6631 32.3262 62.8597 32.3262H65.9709C66.0507 32.3262 66.1305 32.3262 66.2102 32.3262C66.5293 32.3262 66.7686 32.4867 67.0877 32.567C67.7259 32.9683 68.1248 33.6104 68.1248 34.413C68.1248 34.6538 68.1248 34.8946 68.1248 35.1354Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M60.7056 82.0098H58.9506C56.7967 82.0098 55.1214 83.7756 55.1214 85.8624V95.6546H64.6146V85.8624C64.5348 83.7756 62.7798 82.0098 60.7056 82.0098Z",fill:"url(#paint11_linear_355_44054)"}),u.jsx("path",{d:"M70.1193 82.0098H68.3642C66.2103 82.0098 64.5351 83.7756 64.5351 85.8624V95.6546H74.0282V85.8624C73.9485 83.7756 72.1934 82.0098 70.1193 82.0098Z",fill:"url(#paint12_linear_355_44054)"}),u.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint13_linear_355_44054)"}),u.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"url(#paint14_linear_355_44054)"}),u.jsx("rect",{x:"64.5083",y:"75",width:"2",height:"21",rx:"1",fill:"#DFDFDF"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44054",x:"12.6196",y:"26.3828",width:"73.8357",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("filter",{id:"filter1_d_355_44054",x:"42.6146",y:"26.3828",width:"73.9154",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("filter",{id:"filter2_d_355_44054",x:"35.2756",y:"9.88867",width:"58.3594",height:"117.642",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44054",x1:"51.5129",y1:"100.952",x2:"41.7417",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44054",x1:"51.0722",y1:"95.0928",x2:"42.1711",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint3_linear_355_44054",x1:"51.4397",y1:"17.3976",x2:"41.7965",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint4_linear_355_44054",x1:"75.4467",y1:"0.000197722",x2:"52.5998",y2:"0.0208906",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint5_linear_355_44054",x1:"86.454",y1:"100.952",x2:"76.6829",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint6_linear_355_44054",x1:"86.0934",y1:"95.0928",x2:"77.1923",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint7_linear_355_44054",x1:"86.3809",y1:"17.3976",x2:"76.7377",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint8_linear_355_44054",x1:"49.5277",y1:"36.0349",x2:"49.5277",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint9_linear_355_44054",x1:"79.5626",y1:"36.0349",x2:"79.5626",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint10_linear_355_44054",x1:"64.4507",y1:"19.1853",x2:"64.4507",y2:"95.3247",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint11_linear_355_44054",x1:"59.8649",y1:"81.6941",x2:"59.8649",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint12_linear_355_44054",x1:"69.2786",y1:"81.6941",x2:"69.2786",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint13_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint14_linear_355_44054",x1:"72.467",y1:"99.668",x2:"56.4793",y2:"100.415",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),Lx=(()=>{const e=h.forwardRef(Nx);return e.displayName="SvgIllustrationLaunch",e})(),jx=(e,t)=>u.jsxs("svg",{width:"143",height:"154",viewBox:"0 0 143 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M60.2972 119.867C93.3732 119.867 120.187 93.1019 120.187 60.0849C120.187 27.0678 93.3732 0.302246 60.2972 0.302246C27.2211 0.302246 0.407715 27.0678 0.407715 60.0849C0.407715 93.1019 27.2211 119.867 60.2972 119.867Z",fill:"#F3F1ED"}),u.jsx("path",{d:"M31.679 85.172C30.9662 85.172 30.2863 85.03 29.6649 84.7735L29.2833 85.6979C27.7504 85.0651 26.5176 83.846 25.8749 82.3283L26.7958 81.9384C26.5342 81.3205 26.3895 80.6443 26.3895 79.9357V77.4544H25.3895V72.4917H26.3895V67.529H25.3895V62.5663H26.3895V57.6037H25.3895V52.641H26.3895V47.6783H25.3895V42.7157H26.3895V40.2343C26.3895 39.5257 26.5342 38.8495 26.7958 38.2316L25.8749 37.8417C26.5176 36.324 27.7504 35.1049 29.2833 34.4722L29.6649 35.3965C30.2863 35.14 30.9662 34.998 31.679 34.998H34.0966V33.998H38.9318V34.998H43.767V33.998H48.6022V34.998H53.4374V33.998H58.2726V34.998H63.1078V33.998H67.943V34.998H72.7782V33.998H77.6134V34.998H82.4487V33.998H87.2839V34.998H89.7015C90.4142 34.998 91.0942 35.14 91.7156 35.3965L92.0971 34.4722C93.63 35.1049 94.8629 36.324 95.5055 37.8417L94.5847 38.2316C94.8463 38.8495 94.9909 39.5257 94.9909 40.2343V42.7212H95.9909V47.6948H94.9909V52.6684H95.9909V57.6421H94.9909V62.6157H95.9909V67.5894H94.9909V72.5631H95.9909V77.5367H94.9909V80.0235C94.9909 80.7383 94.8492 81.4119 94.5933 82.0212L95.5153 82.4085C94.8806 83.9197 93.6532 85.1161 92.0944 85.7269L91.7296 84.7958C91.1131 85.0373 90.4302 85.172 89.7015 85.172H87.2839V86.172H82.4487V85.172H77.6134V86.172H72.7782V85.172H67.943V86.172H63.1078V85.172H58.2726V86.172H53.4374V85.172H48.6022V86.172H43.767V85.172H38.9318V86.172H34.0966V85.172H31.679Z",fill:"#EEECE6",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-dasharray":"5.01 5.01"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M54.7164 65.4389C54.7164 64.7939 55.264 64.271 55.9394 64.271H66.5274C67.2029 64.271 67.7505 64.7939 67.7505 65.4389C67.7505 66.0839 67.2029 66.6068 66.5274 66.6068H55.9394C55.264 66.6068 54.7164 66.0839 54.7164 65.4389Z",fill:"#D2C8B1"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.1886 51.7284C61.8641 51.7284 62.4117 52.2513 62.4117 52.8963V61.1168C62.4117 61.7618 61.8641 62.2847 61.1886 62.2847C60.5131 62.2847 59.9655 61.7618 59.9655 61.1168V52.8963C59.9655 52.2513 60.5131 51.7284 61.1886 51.7284Z",fill:"#D2C8B1"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.3252 51.7304C60.7997 51.2784 61.5669 51.2754 62.0454 51.7235L67.3839 56.7236C67.8661 57.1753 67.8736 57.9147 67.4005 58.3752C66.9275 58.8357 66.1532 58.8428 65.6709 58.3912L61.1962 54.2L56.8032 58.3843C56.325 58.8398 55.5506 58.8389 55.0735 58.3822C54.5965 57.9255 54.5974 57.1861 55.0757 56.7305L60.3252 51.7304Z",fill:"#D2C8B1"}),u.jsx("g",{filter:"url(#filter0_d_355_44074)",children:u.jsx("path",{d:"M115.05 120.656H60.406C57.1524 120.656 54.4828 117.991 54.4828 114.743V77.0186C54.4828 73.7708 57.1524 71.106 60.406 71.106H115.05C118.304 71.106 120.973 73.7708 120.973 77.0186V114.743C120.973 117.991 118.304 120.656 115.05 120.656Z",fill:"url(#paint0_linear_355_44074)"})}),u.jsx("path",{d:"M120.29 107.6C121.273 107.6 122.059 108.387 122.059 109.37V120.778C122.059 123.335 120.094 125.302 117.539 125.302H110.07C109.284 125.302 108.498 125.105 108.105 124.515C106.336 122.942 102.601 119.795 101.815 118.615C101.619 118.221 101.422 118.025 101.422 117.631V115.074C101.422 113.501 102.601 112.321 104.174 112.321H105.156V117.238H105.746V107.01C105.746 106.027 106.532 105.24 107.515 105.24C108.498 105.24 109.284 106.027 109.284 107.01V108.977H109.873V106.42C109.873 105.437 110.66 104.65 111.642 104.65C112.625 104.65 113.411 105.437 113.411 106.42V108.977H114.197V107.6C114.197 106.617 114.984 105.83 115.966 105.83C116.949 105.83 117.735 106.617 117.735 107.6V108.977H118.521C118.718 108.19 119.308 107.6 120.29 107.6Z",fill:"white",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M92.1912 93.3411C93.3431 93.3411 94.2768 92.409 94.2768 91.2592C94.2768 90.1094 93.3431 89.1772 92.1912 89.1772C91.0393 89.1772 90.1055 90.1094 90.1055 91.2592C90.1055 92.409 91.0393 93.3411 92.1912 93.3411Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M92.5252 104.417H77.0079C76.0068 104.417 75.4229 103.251 76.0068 102.501L83.7655 91.6754C84.266 91.0092 85.2671 91.0092 85.7677 91.6754L93.5263 102.501C94.1103 103.334 93.5263 104.417 92.5252 104.417Z",fill:"#DFDFDF"}),u.jsx("path",{opacity:"0.7",d:"M97.8643 104.25H91.2736C90.2725 104.25 89.7719 103.168 90.2725 102.418L93.5261 97.838C94.0267 97.1718 94.9443 97.1718 95.4449 97.838L98.6985 102.418C99.4494 103.168 98.8654 104.25 97.8643 104.25Z",fill:"#D2C8B1"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44074",x:"32.4828",y:"60.106",width:"110.491",height:"93.55",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44074"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44074",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44074",x1:"87.7064",y1:"69.9598",x2:"87.7064",y2:"121.19",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),kx=(()=>{const e=h.forwardRef(jx);return e.displayName="SvgIllustrationUpload",e})(),Fx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2.792a3.25 3.25 0 0 0-3.25 3.25v7.616l2.627 1.891a3.25 3.25 0 0 0 4.073-.221l4.096-3.687a4.75 4.75 0 0 1 5.953-.324l1.751 1.26v-2.535a.75.75 0 1 1 1.5 0v8a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12A4.75 4.75 0 0 1 6 1.292h8a.75.75 0 0 1 0 1.5H6ZM2.75 15.506v2.536A3.25 3.25 0 0 0 6 21.292h12a3.25 3.25 0 0 0 3.25-3.25v-3.616l-2.627-1.891a3.25 3.25 0 0 0-4.073.221l-4.096 3.687a4.75 4.75 0 0 1-5.953.324l-1.75-1.26ZM17.763 2.22a1.75 1.75 0 0 1 2.474 0l1.293 1.293a.75.75 0 1 1-1.06 1.06l-.72-.72v4.19a.75.75 0 0 1-1.5 0v-4.19l-.72.72a.75.75 0 0 1-1.06-1.06l1.293-1.293ZM8.5 6.792a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5Zm-3.25 1.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Z",clipRule:"evenodd"})}),Bx=(()=>{const e=h.forwardRef(Fx);return e.displayName="SvgImageUpload00",e})(),zx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.349 2.628A.75.75 0 0 1 12 2.25h1.329c2.595 0 4.144 2.893 2.704 5.053l-.632.947h4.037a2.75 2.75 0 0 1 2.668 3.417l-1.62 6.485a4.75 4.75 0 0 1-4.61 3.598h-3.665a4.75 4.75 0 0 1-2.635-.798l-1.108-.738A2.75 2.75 0 0 1 6 21.75H4A2.75 2.75 0 0 1 1.25 19v-9A2.75 2.75 0 0 1 4 7.25h2c.859 0 1.626.394 2.13 1.01l3.219-5.632ZM8.75 10.266v8.199a.25.25 0 0 0 .111.208l1.547 1.031a3.25 3.25 0 0 0 1.803.546h3.666a3.25 3.25 0 0 0 3.153-2.462l1.621-6.485a1.25 1.25 0 0 0-1.213-1.553H14a.75.75 0 0 1-.624-1.166l1.409-2.113c.775-1.163-.059-2.721-1.456-2.721h-.894l-3.652 6.392a.25.25 0 0 0-.033.124ZM7.25 10c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v9c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-9Z",clipRule:"evenodd"})}),X0=(()=>{const e=h.forwardRef(zx);return e.displayName="SvgLike",e})(),Gx=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.65 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 0 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.136 5.907a3.964 3.964 0 0 0-5.606 0l-1.666 1.667a.75.75 0 1 1-1.061-1.06l1.666-1.668a5.464 5.464 0 0 1 7.728 7.728L17.53 14.24a.75.75 0 1 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606ZM5.862 18.18a3.964 3.964 0 0 0 5.606 0l1.667-1.667a.75.75 0 0 1 1.06 1.06L12.53 19.24a5.464 5.464 0 1 1-7.727-7.727l1.666-1.667a.75.75 0 1 1 1.06 1.06l-1.666 1.667a3.964 3.964 0 0 0 0 5.607Z",clipRule:"evenodd"})]}),K0=(()=>{const e=h.forwardRef(Gx);return e.displayName="SvgLink",e})(),Ux=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M18.82 4.12a.75.75 0 0 1 1.133.976l-.072.084-.72.72a.75.75 0 0 1-1.134-.976l.073-.084.72-.72Zm-.737 8.966a.75.75 0 0 1 .977-.066l.084.073.76.77a.75.75 0 0 1-.984 1.127l-.084-.073-.76-.77a.75.75 0 0 1 .007-1.06ZM9.11 4.12a.75.75 0 0 1 .976-.073l.085.073.72.72a.75.75 0 0 1-.977 1.133L9.83 5.9l-.72-.72a.75.75 0 0 1 0-1.06Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.263 17.849 9.577-9.581a1.749 1.749 0 0 1 2.475 0l1.412 1.413a1.75 1.75 0 0 1 0 2.475l-9.577 9.58a1.749 1.749 0 0 1-2.475.001l-1.412-1.413a1.75 1.75 0 0 1 0-2.475Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M14.49 1.75a.75.75 0 0 1 .743.648l.007.102v1.02a.75.75 0 0 1-1.493.102l-.007-.102V2.5a.75.75 0 0 1 .75-.75Zm7.01 7.01a.75.75 0 0 1 .102 1.493l-.102.007h-1.02a.75.75 0 0 1-.102-1.493l.102-.007h1.02Z"})]}),Q0=(()=>{const e=h.forwardRef(Ux);return e.displayName="SvgMagicWandGenerativeCustom",e})(),Hx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.793a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5Zm-10.75 9.25c0-5.937 4.813-10.75 10.75-10.75s10.75 4.813 10.75 10.75-4.813 10.75-10.75 10.75S1.25 17.98 1.25 12.043Zm7.391-3.359a.75.75 0 0 1 1.061 0L12 10.982l2.298-2.298a.75.75 0 0 1 1.06 1.06l-2.297 2.299 2.298 2.298a.75.75 0 1 1-1.06 1.06L12 13.105l-2.298 2.298a.75.75 0 0 1-1.06-1.06l2.297-2.3-2.298-2.297a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),Vx=(()=>{const e=h.forwardRef(Hx);return e.displayName="SvgMultiplyCircleEdu",e})(),Wx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.712 3.329a3.537 3.537 0 0 1 5.002 5.002L9.26 19.786a4.702 4.702 0 0 1-2.446 1.295l-3.673.699a.75.75 0 0 1-.877-.877l.7-3.673a4.702 4.702 0 0 1 1.294-2.446L15.712 3.33Zm3.941 1.06a2.037 2.037 0 0 0-2.88 0l-1.405 1.406 2.88 2.88 1.405-1.405a2.037 2.037 0 0 0 0-2.88Zm-2.465 5.347-2.881-2.88-8.99 8.99a3.202 3.202 0 0 0-.881 1.664l-.493 2.59 2.59-.493a3.202 3.202 0 0 0 1.665-.881l8.99-8.99Z",clipRule:"evenodd"})}),qx=(()=>{const e=h.forwardRef(Wx);return e.displayName="SvgPencilEdu",e})(),Yx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 5.25a.75.75 0 0 1 .75.75v5.25H18a.75.75 0 0 1 0 1.5h-5.25V18a.75.75 0 0 1-1.5 0v-5.25H6a.75.75 0 0 1 0-1.5h5.25V6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),Zx=(()=>{const e=h.forwardRef(Yx);return e.displayName="SvgPlusAdd",e})(),Xx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.227 7.227a.75.75 0 0 1 1.061 0l3.713 3.713 3.712-3.712a.75.75 0 1 1 1.06 1.06l-3.712 3.713 3.712 3.712a.75.75 0 1 1-1.06 1.06L12 13.061l-3.713 3.712a.75.75 0 1 1-1.06-1.06L10.94 12 7.227 8.288a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),Pd=(()=>{const e=h.forwardRef(Xx);return e.displayName="SvgRemoveClose",e})(),Kx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.782 2.475A2.75 2.75 0 0 1 11.07 1.25h1.86c.92 0 1.778.46 2.288 1.225L16.4 4.25H21a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1 0-1.5h4.599l1.183-1.775Zm.62 1.775h5.197l-.63-.943a1.25 1.25 0 0 0-1.04-.557H11.07a1.25 1.25 0 0 0-1.04.557l-.629.943ZM5 7.25a.75.75 0 0 1 .75.75v10A3.25 3.25 0 0 0 9 21.25h6A3.25 3.25 0 0 0 18.25 18V8a.75.75 0 0 1 1.5 0v10A4.75 4.75 0 0 1 15 22.75H9A4.75 4.75 0 0 1 4.25 18V8A.75.75 0 0 1 5 7.25Zm5 3a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Zm4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),Rd=(()=>{const e=h.forwardRef(Kx);return e.displayName="SvgTrash",e})(),Qx=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.47 6.573a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1-1.06 1.06l-1.72-1.72v10.19a.75.75 0 0 1-1.5 0V4.853l-1.72 1.72a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 21.793a4.75 4.75 0 0 1-4.75-4.75v-4A4.75 4.75 0 0 1 7 8.293h.5a.75.75 0 0 1 0 1.5H7a3.25 3.25 0 0 0-3.25 3.25v4A3.25 3.25 0 0 0 7 20.293h10a3.25 3.25 0 0 0 3.25-3.25v-4A3.25 3.25 0 0 0 17 9.793h-.5a.75.75 0 0 1 0-1.5h.5a4.75 4.75 0 0 1 4.75 4.75v4a4.75 4.75 0 0 1-4.75 4.75H7Z",clipRule:"evenodd"})]}),Jx=(()=>{const e=h.forwardRef(Qx);return e.displayName="SvgUpload",e})(),Jn=h.forwardRef((e,t)=>{const{label:n,color:r="gray",variant:o="soft",fontWeight:s="semibold",closeIcon:l=!0,renderIcon:c,onCloseIconClicked:d,className:p,...m}=e;return u.jsxs("div",{ref:t,className:se(fs.tag,fs[`tag--${r}-${o}`],p),...m,children:[c&&u.jsx("span",{className:fs["tag--icon-container"],children:c({width:Pa,height:Pa})}),u.jsx(xo,{variant:"tag",fontWeight:s,className:fs["tag--label"],children:n}),l?u.jsx("button",{className:fs["tag-close"],onClick:d,children:u.jsx(Pd,{width:Pa,height:Pa,className:"cursor-pointer"})}):null]})});Jn.displayName="Tag";const Nd=h.forwardRef((e,t)=>h.createElement(Pe.span,oe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),eE=Nd,[Ra,nk]=Ft("Tooltip",[po]),Ld=po(),tE="TooltipProvider",nE=700,jd="tooltip.open",[rE,kd]=Ra(tE),iE=e=>{const{__scopeTooltip:t,delayDuration:n=nE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[l,c]=h.useState(!0),d=h.useRef(!1),p=h.useRef(0);return h.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),h.createElement(rE,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(p.current),c(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:h.useCallback(m=>{d.current=m},[]),disableHoverableContent:o},s)},Fd="Tooltip",[oE,Na]=Ra(Fd),sE=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=e,d=kd(Fd,e.__scopeTooltip),p=Ld(t),[m,g]=h.useState(null),v=Xn(),b=h.useRef(0),E=l??d.disableHoverableContent,_=c??d.delayDuration,w=h.useRef(!1),[y=!1,S]=hn({prop:r,defaultProp:o,onChange:R=>{R?(d.onOpen(),document.dispatchEvent(new CustomEvent(jd))):d.onClose(),s==null||s(R)}}),T=h.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),O=h.useCallback(()=>{window.clearTimeout(b.current),w.current=!1,S(!0)},[S]),I=h.useCallback(()=>{window.clearTimeout(b.current),S(!1)},[S]),M=h.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{w.current=!0,S(!0)},_)},[_,S]);return h.useEffect(()=>()=>window.clearTimeout(b.current),[]),h.createElement(dd,p,h.createElement(oE,{scope:t,contentId:v,open:y,stateAttribute:T,trigger:m,onTriggerChange:g,onTriggerEnter:h.useCallback(()=>{d.isOpenDelayed?M():O()},[d.isOpenDelayed,M,O]),onTriggerLeave:h.useCallback(()=>{E?I():window.clearTimeout(b.current)},[I,E]),onOpen:O,onClose:I,disableHoverableContent:E},n))},J0="TooltipTrigger",eh=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Na(J0,n),s=kd(J0,n),l=Ld(n),c=h.useRef(null),d=et(t,c,o.onTriggerChange),p=h.useRef(!1),m=h.useRef(!1),g=h.useCallback(()=>p.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),h.createElement(ud,oe({asChild:!0},l),h.createElement(Pe.button,oe({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:d,onPointerMove:Ee(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ee(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:Ee(e.onBlur,o.onClose),onClick:Ee(e.onClick,o.onClose)})))}),aE="TooltipPortal",[rk,lE]=Ra(aE,{forceMount:void 0}),ps="TooltipContent",cE=h.forwardRef((e,t)=>{const n=lE(ps,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=Na(ps,e.__scopeTooltip);return h.createElement(on,{present:r||l.open},l.disableHoverableContent?h.createElement(th,oe({side:o},s,{ref:t})):h.createElement(dE,oe({side:o},s,{ref:t})))}),dE=h.forwardRef((e,t)=>{const n=Na(ps,e.__scopeTooltip),r=kd(ps,e.__scopeTooltip),o=h.useRef(null),s=et(t,o),[l,c]=h.useState(null),{trigger:d,onClose:p}=n,m=o.current,{onPointerInTransitChange:g}=r,v=h.useCallback(()=>{c(null),g(!1)},[g]),b=h.useCallback((E,_)=>{const w=E.currentTarget,y={x:E.clientX,y:E.clientY},S=fE(y,w.getBoundingClientRect()),T=pE(y,S),O=hE(_.getBoundingClientRect()),I=mE([...T,...O]);c(I),g(!0)},[g]);return h.useEffect(()=>()=>v(),[v]),h.useEffect(()=>{if(d&&m){const E=w=>b(w,m),_=w=>b(w,d);return d.addEventListener("pointerleave",E),m.addEventListener("pointerleave",_),()=>{d.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",_)}}},[d,m,b,v]),h.useEffect(()=>{if(l){const E=_=>{const w=_.target,y={x:_.clientX,y:_.clientY},S=(d==null?void 0:d.contains(w))||(m==null?void 0:m.contains(w)),T=!gE(y,l);S?v():T&&(v(),p())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,m,l,p,v]),h.createElement(th,oe({},e,{ref:s}))}),[uE,ik]=Ra(Fd,{isInside:!1}),th=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,d=Na(ps,n),p=Ld(n),{onClose:m}=d;return h.useEffect(()=>(document.addEventListener(jd,m),()=>document.removeEventListener(jd,m)),[m]),h.useEffect(()=>{if(d.trigger){const g=v=>{const b=v.target;b!=null&&b.contains(d.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[d.trigger,m]),h.createElement(is,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:g=>g.preventDefault(),onDismiss:m},h.createElement(fd,oe({"data-state":d.stateAttribute},p,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(up,null,r),h.createElement(uE,{scope:n,isInside:!0},h.createElement(eE,{id:d.contentId,role:"tooltip"},o||r))))});function fE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hE(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function gE(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,d=t[s].y,p=t[l].x,m=t[l].y;d>r!=m>r&&n<(p-c)*(r-d)/(m-d)+c&&(o=!o)}return o}function mE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),vE(t)}function vE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const bE=iE,_E=sE,xE=eh,Bd=cE,Mn={"tooltip--container":"_tooltip--container_1i4jw_1","tooltip--dark":"_tooltip--dark_1i4jw_18",slideUpAndFade:"_slideUpAndFade_1i4jw_1",slideDownAndFade:"_slideDownAndFade_1i4jw_1","tooltip--image-preview":"_tooltip--image-preview_1i4jw_52","tooltip--image":"_tooltip--image_1i4jw_52","tooltip--title":"_tooltip--title_1i4jw_69","tooltip--suggestion":"_tooltip--suggestion_1i4jw_74","tooltip--description":"_tooltip--description_1i4jw_79","tooltip--feedback-container":"_tooltip--feedback-container_1i4jw_84","tooltip--feedback":"_tooltip--feedback_1i4jw_84","tooltip--feedback-icon":"_tooltip--feedback-icon_1i4jw_103"},hs=h.forwardRef(({title:e,suggestion:t,description:n,image:r,imageAlt:o,feedbackOptions:s,isDark:l,sideOffset:c=8,children:d,className:p,...m},g)=>u.jsx(Bd,{ref:g,sideOffset:c,className:se(Mn["tooltip--container"],l&&Mn["tooltip--dark"],p),...m,children:d||u.jsxs("div",{children:[r&&u.jsx("div",{className:Mn["tooltip--image-preview"],children:u.jsx("img",{src:r,alt:o||"preview",className:Mn["tooltip--image"]})}),e&&(typeof e=="string"?u.jsx(He,{size:"md",fontWeight:"bold",color:l?"white-alpha-1000":"gray-1000",className:Mn["tooltip--title"],children:e}):e),t&&(typeof t=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-700",className:Mn["tooltip--suggestion"],children:t}):t),n&&(typeof n=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",className:Mn["tooltip--description"],children:n}):n),s&&u.jsxs("div",{className:Mn["tooltip--feedback-container"],children:[u.jsxs("div",{className:Mn["tooltip--feedback"],onClick:()=>s.onClick(!0),children:[u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.positiveLabel}),u.jsx("div",{className:Mn["tooltip--feedback-icon"],children:u.jsx(e7,{className:"text--gray-700"})})]}),u.jsxs("div",{className:Mn["tooltip--feedback"],onClick:()=>s.onClick(!1),children:[u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.negativeLabel}),u.jsx("div",{className:Mn["tooltip--feedback-icon"],children:u.jsx(z_,{className:"text--gray-700"})})]})]})]})}));hs.displayName=Bd.displayName;const La=({children:e,providerProps:t,rootProps:n})=>u.jsx(bE,{...t,children:u.jsx(_E,{...n,children:e})}),gs=h.forwardRef(({children:e,...t},n)=>u.jsx(xE,{ref:n,asChild:!0,...t,children:e}));gs.displayName=eh.displayName;const nh="Popover",[rh,ak]=Ft(nh,[po]),zd=po(),[EE,Pi]=rh(nh),wE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,c=zd(t),d=h.useRef(null),[p,m]=h.useState(!1),[g=!1,v]=hn({prop:r,defaultProp:o,onChange:s});return h.createElement(dd,c,h.createElement(EE,{scope:t,contentId:Xn(),triggerRef:d,open:g,onOpenChange:v,onOpenToggle:h.useCallback(()=>v(b=>!b),[v]),hasCustomAnchor:p,onCustomAnchorAdd:h.useCallback(()=>m(!0),[]),onCustomAnchorRemove:h.useCallback(()=>m(!1),[]),modal:l},n))},yE="PopoverTrigger",CE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Pi(yE,n),s=zd(n),l=et(t,o.triggerRef),c=h.createElement(Pe.button,oe({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sh(o.open)},r,{ref:l,onClick:Ee(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:h.createElement(ud,oe({asChild:!0},s),c)}),ih="PopoverPortal",[TE,SE]=rh(ih,{forceMount:void 0}),IE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Pi(ih,t);return h.createElement(TE,{scope:t,forceMount:n},h.createElement(on,{present:n||s.open},h.createElement(_a,{asChild:!0,container:o},r)))},ms="PopoverContent",AE=h.forwardRef((e,t)=>{const n=SE(ms,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Pi(ms,e.__scopePopover);return h.createElement(on,{present:r||s.open},s.modal?h.createElement(OE,oe({},o,{ref:t})):h.createElement($E,oe({},o,{ref:t})))}),OE=h.forwardRef((e,t)=>{const n=Pi(ms,e.__scopePopover),r=h.useRef(null),o=et(t,r),s=h.useRef(!1);return h.useEffect(()=>{const l=r.current;if(l)return _d(l)},[]),h.createElement(Ia,{as:Ii,allowPinchZoom:!0},h.createElement(oh,oe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),s.current||(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,p=c.button===2||d;s.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})))}),$E=h.forwardRef((e,t)=>{const n=Pi(ms,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(oh,oe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}}))}),oh=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,...g}=e,v=Pi(ms,n),b=zd(n);return ed(),h.createElement(rd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s},h.createElement(is,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1)},h.createElement(fd,oe({"data-state":sh(v.open),role:"dialog",id:v.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),DE="PopoverClose",ME=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Pi(DE,n);return h.createElement(Pe.button,oe({type:"button"},r,{ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))}))});function sh(e){return e?"open":"closed"}const ja=wE,ka=CE,PE=IE,Fa=AE,RE=ME,er={"atom-top-ai-dropdown":"_atom-top-ai-dropdown_1f7wa_1","atom-top-ai-dropdown--text-field":"_atom-top-ai-dropdown--text-field_1f7wa_9","atom-top-ai-dropdown--container":"_atom-top-ai-dropdown--container_1f7wa_15","atom-top-ai-dropdown--text-container":"_atom-top-ai-dropdown--text-container_1f7wa_28","atom-top-ai-dropdown--selected-answer":"_atom-top-ai-dropdown--selected-answer_1f7wa_33","atom-top-ai-dropdown--popover-content":"_atom-top-ai-dropdown--popover-content_1f7wa_37","atom-top-ai-dropdown--popover-content--input":"_atom-top-ai-dropdown--popover-content--input_1f7wa_50","atom-top-ai-dropdown--popover-content--icons":"_atom-top-ai-dropdown--popover-content--icons_1f7wa_54"};function NE({value:e,tooltip:t,selectAnswer:n}){const[r,o]=h.useState(!1),s=h.useRef(null),l=h.useCallback(()=>{var m;let p=((m=s.current)==null?void 0:m.value)??"";p=p.startsWith("http://")||p.startsWith("https://")||p.startsWith("mailto:")||p.startsWith("{{")?p:"https://"+p,n({url:p})},[]),c=h.useCallback(()=>{o(!1)},[]),d=h.useCallback(p=>{p.key==="Enter"&&l(),p.key==="Escape"&&c()},[l,c]);return u.jsxs(ja,{open:r,onOpenChange:o,children:[u.jsx(ka,{asChild:!0,children:u.jsx("span",{children:u.jsxs(La,{rootProps:{open:t?void 0:!1},children:[u.jsx(gs,{children:u.jsx(at,{color:"sand",variant:"outlined",size:"sm",children:u.jsx(oa,{className:"text--gray-700"})})}),u.jsx(hs,{isDark:!0,description:t})]})})}),u.jsxs(Fa,{side:"top",sideOffset:8,className:er["atom-top-ai-dropdown--popover-content"],children:[u.jsx(Dn,{ref:s,autoFocus:!0,placeholder:"https://",className:er["atom-top-ai-dropdown--popover-content--input"],onKeyDown:d,defaultValue:e}),u.jsxs("div",{className:er["atom-top-ai-dropdown--popover-content--icons"],children:[u.jsx(at,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:u.jsx(Pc,{color:"var(--color-green-600)"})}),u.jsx(at,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:u.jsx(jc,{color:"var(--color-red-600)"})})]})]})]})}function LE({value:e,tooltip:t,selectAnswer:n}){const[r,o]=h.useState(!1),s=h.useRef(null),l=h.useCallback(()=>{var p;const d=((p=s.current)==null?void 0:p.value)??"";n({url:d?`tel: ${d}`:""})},[]),c=h.useCallback(()=>{o(!1)},[]);return u.jsxs(ja,{open:r,onOpenChange:o,children:[u.jsx(ka,{asChild:!0,children:u.jsx("span",{children:u.jsxs(La,{rootProps:{open:t?void 0:!1},children:[u.jsx(gs,{children:u.jsx(at,{color:"sand",variant:"outlined",size:"sm",children:u.jsx(ia,{className:"text--gray-700"})})}),u.jsx(hs,{isDark:!0,description:t})]})})}),u.jsxs(Fa,{side:"top",sideOffset:8,className:er["atom-top-ai-dropdown--popover-content"],children:[u.jsx(Dn,{ref:s,autoFocus:!0,placeholder:"+39",className:er["atom-top-ai-dropdown--popover-content--input"],defaultValue:e==null?void 0:e.replace(/tel:\s*/,"")}),u.jsxs("div",{className:er["atom-top-ai-dropdown--popover-content--icons"],children:[u.jsx(at,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:u.jsx(Pc,{color:"var(--color-green-600)"})}),u.jsx(at,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:u.jsx(jc,{color:"var(--color-red-600)"})})]})]})]})}function jE(e){return e==="url"?u.jsx(oa,{}):e==="phone"?u.jsx(ia,{}):null}function kE(e,t){return e==="variable"?u.jsxs(u.Fragment,{children:[u.jsx("b",{children:"{{ "}),t,u.jsx("b",{children:" }}"})]}):t}function FE({type:e,label:t,onRemove:n}){const r=jE(e);return u.jsx(Jn,{renderIcon:r?()=>r:null,label:kE(e,t),onCloseIconClicked:n})}const ah=h.forwardRef(({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:o,selectedAnswer:s,selectAnswer:l,onRemove:c,...d},p)=>u.jsx("div",{className:er["atom-top-ai-dropdown"],children:u.jsxs("div",{ref:p,className:er["atom-top-ai-dropdown--container"],children:[e?u.jsx("div",{className:er["atom-top-ai-dropdown--selected-answer"],children:u.jsx(FE,{...e,onRemove:c})}):u.jsx(Dn,{...d,contentClassName:er["atom-top-ai-dropdown--text-field"],className:er["atom-top-ai-dropdown--text-container"],size:"sm",placeholder:"Search"}),r&&u.jsx(NE,{value:(e==null?void 0:e.type)==="url"?e==null?void 0:e.label:void 0,tooltip:o,selectAnswer:l}),t&&u.jsx(LE,{value:(e==null?void 0:e.type)==="phone"?e==null?void 0:e.label:void 0,tooltip:n,selectAnswer:l})]})}));ah.displayName="AtomTopAiDropdown";const lh={"atom-head-item-ai-dropdown":"_atom-head-item-ai-dropdown_10v1a_1","atom-head-item-ai-dropdown--header":"_atom-head-item-ai-dropdown--header_10v1a_7","atom-head-item-ai-dropdown-answers":"_atom-head-item-ai-dropdown-answers_10v1a_14"},Gd=h.forwardRef((e,t)=>{const{label:n,onNew:r}=e;return u.jsx("div",{ref:t,className:lh["atom-head-item-ai-dropdown"],children:u.jsxs("div",{className:lh["atom-head-item-ai-dropdown--header"],children:[u.jsx(Ce,{fontWeight:"bold",size:"xs",children:n}),u.jsx(At,{variant:"text",color:"primary",size:"sm",startIcon:u.jsx(f7,{}),onClick:r,children:"New"})]})})});Gd.displayName="AtomHeadItemAiDropdown";const tr={"atom-item-ai-dropdown--root":"_atom-item-ai-dropdown--root_1wqx4_1","atom-item-ai-dropdown--trigger":"_atom-item-ai-dropdown--trigger_1wqx4_14","atom-item-ai-dropdown--right-icon":"_atom-item-ai-dropdown--right-icon_1wqx4_29","atom-item-ai-dropdown--header":"_atom-item-ai-dropdown--header_1wqx4_35","atom-item-ai-dropdown--icon":"_atom-item-ai-dropdown--icon_1wqx4_39","atom-item-ai-dropdown--label":"_atom-item-ai-dropdown--label_1wqx4_56","atom-item-ai-dropdown--icon-closed":"_atom-item-ai-dropdown--icon-closed_1wqx4_60","atom-item-ai-dropdown--icon-opened":"_atom-item-ai-dropdown--icon-opened_1wqx4_61","atom-item-ai-dropdown--content":"_atom-item-ai-dropdown--content_1wqx4_65",slideDown:"_slideDown_1wqx4_1",slideUp:"_slideUp_1wqx4_1"},vs={"atom-item-tag-ai-dropdown--container":"_atom-item-tag-ai-dropdown--container_4lwl5_1","atom-item-tag-ai-dropdown--content":"_atom-item-tag-ai-dropdown--content_4lwl5_9","atom-item-tag-ai-dropdown--add-button":"_atom-item-tag-ai-dropdown--add-button_4lwl5_16","atom-item-tag-ai-dropdown--answers":"_atom-item-tag-ai-dropdown--answers_4lwl5_20","atom-item-tag-ai-dropdown--tag":"_atom-item-tag-ai-dropdown--tag_4lwl5_26"},BE=h.forwardRef(({id:e,label:t,selectAnswer:n},r)=>{const o=h.useCallback(()=>{n==null||n({intentId:e})},[e]);return u.jsx(Jn,{ref:r,label:t,closeIcon:!1,color:"sand",className:vs["atom-item-tag-ai-dropdown--tag"],onClick:o},e)}),ch=h.forwardRef(({answers:e,onAdd:t,selectAnswer:n},r)=>u.jsx("div",{ref:r,className:vs["atom-item-tag-ai-dropdown--container"],children:u.jsx("div",{className:vs["atom-item-tag-ai-dropdown--content"],children:u.jsxs("div",{className:vs["atom-item-tag-ai-dropdown--answers"],children:[u.jsx(at,{variant:"outlined",color:"sand",size:"sm",onClick:t,className:vs["atom-item-tag-ai-dropdown--add-button"],children:u.jsx(Zx,{color:"text--gray-700"})}),e==null?void 0:e.map(o=>u.jsx(BE,{...o,selectAnswer:n},o==null?void 0:o.id))]})})}));ch.displayName="AtomItemTagAiDropdown";const Ud=h.forwardRef(({answers:e,...t},n)=>e?u.jsx(uh,{ref:n,...t,answers:e}):u.jsx(dh,{ref:n,...t}));Ud.displayName="AtomItemAiDropdown";const dh=h.forwardRef(({id:e,label:t,fontWeight:n,selectAnswer:r},o)=>{const s=h.useCallback(()=>{r==null||r({intentId:e})},[e]);return u.jsx("div",{ref:o,className:tr["atom-item-ai-dropdown--trigger"],onClick:s,children:u.jsx("span",{className:tr["atom-item-ai-dropdown--label"],children:typeof t=="string"?u.jsx(Ce,{size:"sm",fontWeight:n,color:"gray-1000",children:t}):t})})});dh.displayName="AtomItemSingleAiDropdown";const uh=h.forwardRef(({id:e,draft:t,path:n,label:r,answers:o,fontWeight:s="regular",className:l,contentClassname:c,onNewAnswer:d,selectAnswer:p,hasSearch:m},g)=>{const v=h.useCallback(()=>{d==null||d(t,n)},[d,t,n]),[b,E]=h.useState([]);return h.useEffect(()=>{E(m?[e]:[])},[m,e]),u.jsx(qc,{type:"multiple",className:se(tr["atom-item-ai-dropdown--root"],l),value:b,onValueChange:E,children:u.jsxs(Yc,{value:e,children:[u.jsx(Zc,{className:tr["atom-item-ai-dropdown--header"],children:u.jsx(Xc,{asChild:!0,children:u.jsxs("div",{className:tr["atom-item-ai-dropdown--trigger"],children:[u.jsxs(at,{variant:"ghost",color:"primary",size:"xs",children:[u.jsx(X_,{className:se(tr["atom-item-ai-dropdown--icon"],tr["atom-item-ai-dropdown--icon-opened"]),"aria-hidden":!0}),u.jsx(Y_,{className:se(tr["atom-item-ai-dropdown--icon"],tr["atom-item-ai-dropdown--icon-closed"]),"aria-hidden":!0})]}),u.jsx("span",{className:tr["atom-item-ai-dropdown--label"],children:typeof r=="string"?u.jsx(Ce,{size:"sm",fontWeight:s,color:"gray-1000",children:r}):r})]})})}),u.jsx(Kc,{ref:g,className:se(tr["atom-item-ai-dropdown--content"],c),children:u.jsx(ch,{answers:o,selectAnswer:p,onAdd:v})})]})})});uh.displayName="AtomItemFolderAiDropdown";const Hd={"atom-sub-ai-dropdown--trigger":"_atom-sub-ai-dropdown--trigger_j4p1d_1","atom-sub-ai-dropdown--label":"_atom-sub-ai-dropdown--label_j4p1d_26","atom-sub-ai-dropdown--chevron":"_atom-sub-ai-dropdown--chevron_j4p1d_33"},fh=h.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:o="gray-1000",children:s},l)=>{const[c,d]=h.useState(!1),p=h.useRef(),m=()=>{p.current=setTimeout(()=>{d(!1)},t)},g=()=>{p.current&&clearTimeout(p.current),d(!0)};return u.jsxs(ja,{open:c,children:[u.jsx(ka,{asChild:!0,children:u.jsx("div",{ref:l,className:Hd["atom-sub-ai-dropdown--trigger"],onMouseEnter:g,onMouseLeave:m,children:u.jsxs("div",{className:Hd["atom-sub-ai-dropdown--label"],children:[u.jsx(Ce,{size:n,fontWeight:r,color:o,children:e}),u.jsx(Nc,{className:Hd["atom-sub-ai-dropdown--chevron"]})]})})}),u.jsx(Fa,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:g,onMouseLeave:m,children:s})]})});fh.displayName="AtomItemAiDropdown";const nr={"ai-dropdown":"_ai-dropdown_wbkpw_1",header:"_header_wbkpw_14","main-container":"_main-container_wbkpw_21",container:"_container_wbkpw_26","inner-container":"_inner-container_wbkpw_27",open:"_open_wbkpw_34",url:"_url_wbkpw_38","url-full":"_url-full_wbkpw_45",trigger:"_trigger_wbkpw_49"},zE=({type:e,label:t})=>{if(e==="url"||e==="phone"){const n=(t==null?void 0:t.replace(/tel:\s*/,""))??"";return u.jsxs(La,{children:[u.jsx(gs,{children:u.jsx(Jn,{color:"sand",renderIcon:()=>t!=null&&t.includes("tel:")?u.jsx(ia,{}):u.jsx(a7,{}),label:(n==null?void 0:n.length)>26?`${n==null?void 0:n.slice(0,23)}...`:n,closeIcon:!1})}),u.jsx(hs,{isDark:!0,description:u.jsxs("a",{className:nr.url,href:t,target:"_blank",rel:"noreferrer",children:[t!=null&&t.includes("tel:")?u.jsx(ia,{}):u.jsx(oa,{}),u.jsx("span",{className:se(nr["url-full"],"clamp-1"),children:n})]})})]})}return e==="variable"?u.jsx(Jn,{color:"sand",renderIcon:null,label:u.jsxs(u.Fragment,{children:[u.jsx("b",{children:"{{ "}),t,u.jsx("b",{children:" }}"})]}),closeIcon:!1}):u.jsx(Jn,{color:"sand",renderIcon:null,label:t,closeIcon:!1})};function ph(){return u.jsx(Ce,{size:"sm",color:"gray-900",children:"No contents yet"})}function hh({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:o,showVariables:s,selectAnswer:l,liveAnswers:c,draftAnswers:d,onNewLive:p,onNewDraft:m,onNewAnswer:g,variablesContent:v,searchProps:b,hasSearch:E,closeDelay:_}){const w=h.useCallback(()=>{l(null)},[l]);return u.jsxs("div",{className:nr["ai-dropdown"],children:[u.jsxs("div",{className:nr.header,children:[u.jsx(ah,{currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:o,selectAnswer:l,onRemove:w,...b}),s?u.jsx(fh,{closeDelay:_,label:"Variables",children:v}):null]}),u.jsx(Yr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"sm"}),u.jsxs(Dd,{className:nr["main-container"],children:[u.jsxs("div",{className:nr.container,children:[u.jsx(Gd,{label:"LIVE",onNew:p}),u.jsx("div",{className:nr["inner-container"],children:(c==null?void 0:c.length)>0?c.map(y=>u.jsx(Ud,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:E},y==null?void 0:y.id)):u.jsx(ph,{})})]}),u.jsx(Yr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"lg"}),u.jsxs("div",{className:nr.container,children:[u.jsx(Gd,{label:"DRAFT",onNew:m}),u.jsx("div",{className:nr["inner-container"],children:(d==null?void 0:d.length)>0?d==null?void 0:d.map(y=>u.jsx(Ud,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:E},y==null?void 0:y.id)):u.jsx(ph,{})})]})]})]})}const bs=h.forwardRef(({disabled:e,align:t="start",onOpenChange:n,label:r="Choose Agent",broken:o=!1,liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:d,onNewAnswer:p,variablesContent:m,currentValue:g,showPhoneButton:v=!0,phoneTooltip:b="You can connect a phone number",showUrlButton:E=!0,urlTooltip:_="You can connect any link",showVariables:w=!0,selectAnswer:y,searchProps:S,hasSearch:T=!1,closeDelay:O},I)=>{const[M,R]=h.useState(!1),D=h.useCallback(()=>{R(!1)},[]);h.useImperativeHandle(I,()=>({close:D}));const k=h.useCallback(L=>{R(L),n==null||n(L)},[n]),q=h.useCallback(L=>{y==null||y(L),(L==null?void 0:L.id)!==-1&&R(!1)},[y]);return u.jsxs(D0,{open:M,onOpenChange:k,children:[u.jsx(M0,{asChild:!0,disabled:e,children:g?u.jsx("button",{className:nr.trigger,children:u.jsx(zE,{...g})}):u.jsx(At,{size:"sm",color:o?"red":"sand",className:se(M&&nr.open),startIcon:o?u.jsx(y7,{}):null,endIcon:M?u.jsx(Ix,{}):u.jsx(Ex,{}),children:o?"Missing Connection":r})}),u.jsx(P0,{align:t,sideOffset:5,children:u.jsx(hh,{liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:d,onNewAnswer:p,variablesContent:m,currentValue:g,showPhoneButton:v,phoneTooltip:b,showUrlButton:E,urlTooltip:_,showVariables:w,selectAnswer:q,searchProps:S,hasSearch:T,closeDelay:O})})]})});bs.displayName="AiDropdown";const Ri={"avatar-bot":"_avatar-bot_1x2kl_1","avatar-bot--image-bg":"_avatar-bot--image-bg_1x2kl_18","avatar-bot--active":"_avatar-bot--active_1x2kl_27","avatar-bot--active-icon":"_avatar-bot--active-icon_1x2kl_31","avatar-bot--image":"_avatar-bot--image_1x2kl_18","avatar-bot--image-active":"_avatar-bot--image-active_1x2kl_43","avatar-bot--custom-icon":"_avatar-bot--custom-icon_1x2kl_51"},Vd=h.forwardRef((e,t)=>{const{icon:n,image:r,active:o,className:s,onClick:l}=e;return u.jsxs("div",{ref:t,onClick:l,className:se(Ri["avatar-bot"],o&&Ri["avatar-bot--active"],r&&Ri["avatar-bot--image-bg"],s),children:[o?u.jsx(np,{width:"2.4rem",height:"2.4rem",className:Ri["avatar-bot--active-icon"]}):n&&u.jsx("span",{className:Ri["avatar-bot--custom-icon"],children:n}),r&&u.jsx("img",{src:r.url,alt:r.alt,className:se(Ri["avatar-bot--image"],o&&Ri["avatar-bot--image-active"])})]})});Vd.displayName="AvatarBot";const Ba={avatar:"_avatar_u6yy9_1","avatar--size-md":"_avatar--size-md_u6yy9_15","avatar--size-sm":"_avatar--size-sm_u6yy9_23","avatar--size-xs":"_avatar--size-xs_u6yy9_31","avatar--size-xxs":"_avatar--size-xxs_u6yy9_39","avatar--disabled":"_avatar--disabled_u6yy9_47","avatar--badge":"_avatar--badge_u6yy9_51","avatar--badge-size-sm":"_avatar--badge-size-sm_u6yy9_62","avatar--image":"_avatar--image_u6yy9_67"},Wd={badge:"_badge_1y0vz_1","badge--size-sm":"_badge--size-sm_1y0vz_11","badge--green":"_badge--green_1y0vz_16","badge--red":"_badge--red_1y0vz_20"},qd=h.forwardRef((e,t)=>{const{small:n=!1,color:r,className:o}=e;return u.jsx("div",{ref:t,className:se(Wd.badge,Wd[`badge--${r}`],n&&Wd["badge--size-sm"],o)})});qd.displayName="Badge";const gh=e=>{const[t,n]=e.split(" ");return t&&n?`${t.charAt(0)}${n.charAt(0)}`:t.charAt(0)},wo=h.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:o,disabled:s,badge:l,image:c,status:d,className:p,children:m,...g}=e,v=()=>c?u.jsx("img",{src:c.url,alt:c.alt,className:Ba["avatar--image"]}):n?m:u.jsx(He,{size:r,color:"white",children:gh(o??"")}),b=h.useMemo(()=>({backgroundColor:e.color}),[e.color]);return u.jsxs("div",{ref:t,style:b,className:se(Ba.avatar,Ba[`avatar--size-${r}`],s&&Ba["avatar--disabled"],p),...g,children:[v(),l?u.jsx(qd,{color:d&&d==="online"?"green":"red",small:r==="xs"||r==="xxs"}):null]})});wo.displayName="Avatar";const Yd={"avatar-workspace":"_avatar-workspace_jxkxx_1","avatar-workspace--size-md":"_avatar-workspace--size-md_jxkxx_15","avatar-workspace--size-sm":"_avatar-workspace--size-sm_jxkxx_24","avatar-workspace--purple":"_avatar-workspace--purple_jxkxx_33","avatar-workspace--gray":"_avatar-workspace--gray_jxkxx_37"},mh=h.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:o,color:s="purple",className:l,children:c}=e;return u.jsx("div",{ref:t,className:se(Yd["avatar-workspace"],Yd[`avatar-workspace--size-${r}`],Yd[`avatar--${s}`],l),children:n?c:u.jsx(He,{size:r,color:"white",children:gh(o)})})});mh.displayName="AvatarWorkspace";const Zd={"atom-name-div-block-module":"_atom-name-div-block-module_183tc_1",editor:"_editor_183tc_9","editor-text-field":"_editor-text-field_183tc_16","icon-button-gray":"_icon-button-gray_183tc_24"},za=h.forwardRef((e,t)=>{const{initialLabel:n,onSaveLabel:r}=e,[o,s]=h.useState(n),[l,c]=h.useState(n),[d,p]=h.useState(!1),m=()=>{p(b=>!b)},g=b=>{c(b.target.value)},v=()=>{r&&l&&(s(l),r(l)),p(!1)};return u.jsx(u.Fragment,{children:d?u.jsxs("div",{className:Zd["editor-text-field"],ref:t,children:[u.jsx(Dn,{value:l,onChange:g,placeholder:"Change name...",size:"sm",variant:"filled"}),u.jsxs("div",{children:[u.jsx(at,{onClick:v,color:"green",size:"sm",variant:"ghost",children:u.jsx(Pc,{})}),u.jsx(at,{onClick:m,color:"red",size:"sm",variant:"ghost",children:u.jsx(jc,{})})]})]}):u.jsxs("div",{className:Zd.editor,ref:t,children:[u.jsx(Ce,{fontWeight:"bold",color:"black",size:"md",children:o}),u.jsx(at,{onClick:m,color:"primary",size:"xs",variant:"ghost",children:u.jsx(qx,{className:Zd["icon-button-gray"]})})]})})});za.displayName="AtomNameDivBlockModule";const vh={"title-block-module":"_title-block-module_1v5qg_1","drag-icon":"_drag-icon_1v5qg_9"},Xd={"icon-button":"_icon-button_7unaa_1","icon-button--size-lg":"_icon-button--size-lg_7unaa_14","icon-button--size-md":"_icon-button--size-md_7unaa_19","icon-button--size-sm":"_icon-button--size-sm_7unaa_24","icon-button--children":"_icon-button--children_7unaa_29","icon-button--icon":"_icon-button--icon_7unaa_35","icon-button--message":"_icon-button--message_7unaa_40","icon-button--logic":"_icon-button--logic_7unaa_45","icon-button--utility":"_icon-button--utility_7unaa_50","icon-button--action":"_icon-button--action_7unaa_55"},bh={text:{icon:u.jsx(rp,{}),category:"message"},image:{icon:u.jsx(ap,{}),category:"message"},video:{icon:u.jsx(ep,{}),category:"message"},agent:{icon:u.jsx(Q0,{}),category:"message"},card:{icon:u.jsx(cp,{}),category:"message"},handover:{icon:u.jsx(sp,{}),category:"logic"},contact_request:{icon:u.jsx(Lc,{}),category:"logic"},quick_reply:{icon:u.jsx(tp,{}),category:"logic"},reroute:{icon:u.jsx(Rc,{}),category:"logic"},api:{icon:u.jsx(lp,{}),category:"logic"},capture:{icon:u.jsx(ip,{}),category:"logic"},set_values:{icon:u.jsx(op,{}),category:"logic"},condition:{icon:u.jsx(dp,{}),category:"logic"},notes:{icon:u.jsx(c7,{}),category:"utility"},mail:{icon:u.jsx(Lc,{}),category:"action"}},_h=h.forwardRef((e,t)=>{const{size:n="md",block:r="text",className:o,...s}=e,l=bh[r].category,c=bh[r].icon;return u.jsx("div",{ref:t,className:se(Xd["icon-button"],Xd[`icon-button--size-${n}`],Xd[`icon-button--${l}`],o),...s,children:c})}),GE={text:{label:"Text"},image:{label:"Image"},video:{label:"Video"},agent:{label:"Agent"},card:{label:"Card"},handover:{label:"Handover"},contact_request:{label:"Contact Request"},quick_reply:{label:"Quick Reply"},reroute:{label:"Reroute"},api:{label:"API"},capture:{label:"Capture"},set_values:{label:"Set Values"},condition:{label:"Condition"},notes:{label:"Notes"},mail:{label:"Mail"}},Kd=h.forwardRef((e,t)=>{const{block:n="text",...r}=e,o=GE[n].label;return u.jsxs("div",{className:vh["title-block-module"],ref:t,...r,children:[u.jsx($x,{className:vh["drag-icon"]}),u.jsx(_h,{block:n,size:"md"}),u.jsx(Ce,{size:"sm",children:o})]})});Kd.displayName="TitleBlockModule";const Qd={"atom-top-modulo":"_atom-top-modulo_vojtq_1","atom-top-modulo-button":"_atom-top-modulo-button_vojtq_11","atom-top-modulo-button-copy":"_atom-top-modulo-button-copy_vojtq_17","atom-top-modulo-drag-handle":"_atom-top-modulo-drag-handle_vojtq_21"},Jd=h.forwardRef((e,t)=>{const{block:n="text",dragHandlerProps:r,isDragging:o,isCollapse:s,onDelete:l,onCopy:c,onCollapse:d,showCopy:p=!1,className:m,...g}=e;return u.jsxs("div",{ref:t,className:se(Qd["atom-top-modulo"],m),...g,children:[u.jsx(Kd,{block:n,...r}),u.jsxs("div",{className:Qd["atom-top-modulo-button"],children:[p?u.jsx(At,{color:"primary",size:"sm",startIcon:u.jsx(_x,{className:Qd["atom-top-modulo-button-copy"]}),variant:"text",onClick:c,children:"Copy"}):null,u.jsx(At,{color:"primary",size:"sm",variant:"outlined",startIcon:s?u.jsx(H_,{}):u.jsx(D_,{}),onClick:d,children:s?"Expand":"Collapse"}),u.jsx(at,{onClick:()=>{l()},variant:"ghost",children:u.jsx(Rd,{})})]})]})});Jd.displayName="AtomTopModulo";const Ga={"block-children":"_block-children_59fh2_1","block-collapse":"_block-collapse_59fh2_10","block-is-dragging":"_block-is-dragging_59fh2_15"},ii=h.forwardRef((e,t)=>{const{children:n,className:r,bodyClassName:o,isDragging:s,dragOverlay:l,dragListeners:c,dragAttributes:d,setDraggableNodeRef:p,headerClassName:m,onCopyBlock:g,onDeleteBlock:v,...b}=e,[E,_]=h.useState(!1),w=()=>{_(S=>!S)},y={...c,...d};return u.jsxs(u.Fragment,{children:[u.jsx(Jd,{ref:p,className:se({[Ga["block-collapse"]]:E},{[Ga["block-is-dragging"]]:s}),isCollapse:E,onCollapse:w,onCopy:g,onDelete:v,isDragging:s,dragHandlerProps:y,...b}),l?null:u.jsx(u.Fragment,{children:E?null:u.jsx("div",{className:se(Ga["block-children"],{[Ga["block-is-dragging"]]:s},o),children:n})})]})});ii.displayName="Block";const Ua={breadcrumb:"_breadcrumb_1685c_1","breadcrumb--list-item":"_breadcrumb--list-item_1685c_9","breadcrumb--link":"_breadcrumb--link_1685c_14","breadcrumb--separator":"_breadcrumb--separator_1685c_18"},xh=h.forwardRef((e,t)=>{const{items:n,separator:r,className:o}=e,s=n.map((l,c)=>{const d=c+1===n.length;return u.jsxs("li",{onClick:l.onClick,className:se(Ua["breadcrumb--list-item"],l.className),children:[u.jsx("a",{href:l.href,className:Ua["breadcrumb--link"],children:typeof l.title=="string"?u.jsx(Ce,{size:"xs",color:"gray-1000",children:l.title}):l.title}),!d&&u.jsx("span",{className:Ua["breadcrumb--separator"],children:r?u.jsx(Ce,{size:"xs",color:"gray-700",children:r}):u.jsx(Nc,{className:"text--gray-700"})})]},c)});return u.jsx("ul",{ref:t,className:se(Ua.breadcrumb,o),children:s})});xh.displayName="Breadcrumb";const bn={"builder-block-toolbar--container":"_builder-block-toolbar--container_1td2q_1","hide-toolbar":"_hide-toolbar_1td2q_17",hideToolbar:"_hideToolbar_1td2q_1","show-toolbar":"_show-toolbar_1td2q_21",showToolbar:"_showToolbar_1td2q_1","builder-block-toolbar--header":"_builder-block-toolbar--header_1td2q_57","builder-block-toolbar--input":"_builder-block-toolbar--input_1td2q_63","builder-block-toolbar--block-container":"_builder-block-toolbar--block-container_1td2q_67","builder-block-toolbar--sections":"_builder-block-toolbar--sections_1td2q_75","builder-block-toolbar--block":"_builder-block-toolbar--block_1td2q_67","builder-block-toolbar--block-dragging":"_builder-block-toolbar--block-dragging_1td2q_103","builder-block-toolbar--block-icon":"_builder-block-toolbar--block-icon_1td2q_113","builder-block-toolbar--block-icon-message":"_builder-block-toolbar--block-icon-message_1td2q_123","builder-block-toolbar--block-icon-logic":"_builder-block-toolbar--block-icon-logic_1td2q_128","builder-block-toolbar-block-label":"_builder-block-toolbar-block-label_1td2q_133"},eu={"quality-metric-icon":"_quality-metric-icon_1tcq8_1","quality-metric-icon--green":"_quality-metric-icon--green_1tcq8_10","quality-metric-icon--red":"_quality-metric-icon--red_1tcq8_14","quality-metric-icon--yellow":"_quality-metric-icon--yellow_1tcq8_18","quality-metric-icon--gray":"_quality-metric-icon--gray_1tcq8_22","filled--green":"_filled--green_1tcq8_26","filled--red":"_filled--red_1tcq8_30","filled--yellow":"_filled--yellow_1tcq8_34","filled--gray":"_filled--gray_1tcq8_38"},Ha=h.forwardRef((e,t)=>{const{color:n,filled:r,className:o,...s}=e;return u.jsx("div",{ref:t,className:se(eu["quality-metric-icon"],eu[`quality-metric-icon--${n}`],r&&eu[`filled--${n}`],o),...s})});Ha.displayName="QualityMetricIcon";const Va=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function tu(e){return"nodeType"in e}function Vt(e){var t,n;return e?yo(e)?e:tu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function nu(e){const{Document:t}=Vt(e);return e instanceof t}function _s(e){return yo(e)?!1:e instanceof Vt(e).HTMLElement}function UE(e){return e instanceof Vt(e).SVGElement}function Co(e){return e?yo(e)?e.document:tu(e)?nu(e)?e:_s(e)?e.ownerDocument:document:document:document}const Ir=Va?h.useLayoutEffect:h.useEffect;function Wa(e){const t=h.useRef(e);return Ir(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function HE(){const e=h.useRef(null),t=h.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ru(e,t){t===void 0&&(t=[e]);const n=h.useRef(e);return Ir(()=>{n.current!==e&&(n.current=e)},t),n}function xs(e,t){const n=h.useRef();return h.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function iu(e){const t=Wa(e),n=h.useRef(null),r=h.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function qa(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let ou={};function su(e,t){return h.useMemo(()=>{if(t)return t;const n=ou[e]==null?0:ou[e]+1;return ou[e]=n,e+"-"+n},[e,t])}function Eh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((s,l)=>{const c=Object.entries(l);for(const[d,p]of c){const m=s[d];m!=null&&(s[d]=m+e*p)}return s},{...t})}}const To=Eh(1),Ya=Eh(-1);function VE(e){return"clientX"in e&&"clientY"in e}function au(e){if(!e)return!1;const{KeyboardEvent:t}=Vt(e.target);return t&&e instanceof t}function WE(e){if(!e)return!1;const{TouchEvent:t}=Vt(e.target);return t&&e instanceof t}function Za(e){if(WE(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return VE(e)?{x:e.clientX,y:e.clientY}:null}const Es=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Es.Translate.toString(e),Es.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),wh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function qE(e){return e.matches(wh)?e:e.querySelector(wh)}const YE={display:"none"};function ZE(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:YE},n)}const XE={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function KE(e){let{id:t,announcement:n}=e;return h.createElement("div",{id:t,style:XE,role:"status","aria-live":"assertive","aria-atomic":!0},n)}function QE(){const[e,t]=h.useState("");return{announce:h.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const yh=h.createContext(null);function Ch(e){const t=h.useContext(yh);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function JE(){const[e]=h.useState(()=>new Set),t=h.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[h.useCallback(r=>{let{type:o,event:s}=r;e.forEach(l=>{var c;return(c=l[o])==null?void 0:c.call(l,s)})},[e]),t]}const ew={draggable:`
|
|
67
|
+
`)},G4=0,vo=[];function H4(e){var t=ve.useRef([]),n=ve.useRef([0,0]),r=ve.useRef(),i=ve.useState(G4++)[0],s=ve.useState(function(){return g0()})[0],l=ve.useRef(e);ve.useEffect(function(){l.current=e},[e]),ve.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=d4([e.lockRef.current],(e.shards||[]).map(E0),!0).filter(Boolean);return _.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=ve.useCallback(function(_,w){if("touches"in _&&_.touches.length===2)return!l.current.allowPinchZoom;var y=Sa(_),S=n.current,T="deltaX"in _?_.deltaX:S[0]-y[0],A="deltaY"in _?_.deltaY:S[1]-y[1],I,M=_.target,R=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in _&&R==="h"&&M.type==="range")return!1;var D=v0(R,M);if(!D)return!0;if(D?I=R:(I=R==="v"?"h":"v",D=v0(R,M)),!D)return!1;if(!r.current&&"changedTouches"in _&&(T||A)&&(r.current=I),!I)return!0;var k=r.current||I;return F4(k,w,_,k==="h"?T:A)},[]),u=ve.useCallback(function(_){var w=_;if(!(!vo.length||vo[vo.length-1]!==s)){var y="deltaY"in w?x0(w):Sa(w),S=t.current.filter(function(I){return I.name===w.type&&I.target===w.target&&B4(I.delta,y)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var T=(l.current.shards||[]).map(E0).filter(Boolean).filter(function(I){return I.contains(w.target)}),A=T.length>0?c(w,T[0]):!l.current.noIsolation;A&&w.cancelable&&w.preventDefault()}}},[]),p=ve.useCallback(function(_,w,y,S){var T={name:_,delta:w,target:y,should:S};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(A){return A!==T})},1)},[]),m=ve.useCallback(function(_){n.current=Sa(_),r.current=void 0},[]),g=ve.useCallback(function(_){p(_.type,x0(_),_.target,c(_,e.lockRef.current))},[]),v=ve.useCallback(function(_){p(_.type,Sa(_),_.target,c(_,e.lockRef.current))},[]);ve.useEffect(function(){return vo.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",u,mo),document.addEventListener("touchmove",u,mo),document.addEventListener("touchstart",m,mo),function(){vo=vo.filter(function(_){return _!==s}),document.removeEventListener("wheel",u,mo),document.removeEventListener("touchmove",u,mo),document.removeEventListener("touchstart",m,mo)}},[]);var b=e.removeScrollBar,E=e.inert;return ve.createElement(ve.Fragment,null,E?ve.createElement(s,{styles:z4(i)}):null,b?ve.createElement(M4,{gapMode:"margin"}):null)}const U4=x4(h0,H4);var Ia=ve.forwardRef(function(e,t){return ve.createElement(Ca,hr({},e,{ref:t,sideCar:U4}))});Ia.classNames=Ca.classNames;const V4=["Enter"," "],W4=["ArrowDown","PageUp","Home"],w0=["ArrowUp","PageDown","End"],q4=[...W4,...w0],Oa="Menu",[yu,Y4,Z4]=aa(Oa),[Di,y0]=Bt(Oa,[Z4,po,ho]),Cu=po(),C0=ho(),[X4,ls]=Di(Oa),[K4,Tu]=Di(Oa),Q4=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:l=!0}=e,c=Cu(t),[u,p]=h.useState(null),m=h.useRef(!1),g=rn(s),v=ns(i);return h.useEffect(()=>{const b=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),h.createElement(uu,c,h.createElement(X4,{scope:t,open:n,onOpenChange:g,content:u,onContentChange:p},h.createElement(K4,{scope:t,onClose:h.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:v,modal:l},r)))},J4=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cu(n);return h.createElement(du,se({},i,r,{ref:t}))}),T0="MenuPortal",[e6,t6]=Di(T0,{forceMount:void 0}),n6=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=ls(T0,t);return h.createElement(e6,{scope:t,forceMount:n},h.createElement(on,{present:n||s.open},h.createElement(_a,{asChild:!0,container:i},r)))},ti="MenuContent",[r6,S0]=Di(ti),i6=h.forwardRef((e,t)=>{const n=t6(ti,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=ls(ti,e.__scopeMenu),l=Tu(ti,e.__scopeMenu);return h.createElement(yu.Provider,{scope:e.__scopeMenu},h.createElement(on,{present:r||s.open},h.createElement(yu.Slot,{scope:e.__scopeMenu},l.modal?h.createElement(o6,se({},i,{ref:t})):h.createElement(s6,se({},i,{ref:t})))))}),o6=h.forwardRef((e,t)=>{const n=ls(ti,e.__scopeMenu),r=h.useRef(null),i=et(t,r);return h.useEffect(()=>{const s=r.current;if(s)return _u(s)},[]),h.createElement(I0,se({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),s6=h.forwardRef((e,t)=>{const n=ls(ti,e.__scopeMenu);return h.createElement(I0,se({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),I0=h.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b,disableOutsideScroll:E,..._}=e,w=ls(ti,n),y=Tu(ti,n),S=Cu(n),T=C0(n),A=Y4(n),[I,M]=h.useState(null),R=h.useRef(null),D=et(t,R,w.onContentChange),k=h.useRef(0),Y=h.useRef(""),L=h.useRef(0),G=h.useRef(null),X=h.useRef("right"),N=h.useRef(0),K=E?Ia:h.Fragment,B=E?{as:Si,allowPinchZoom:!0}:void 0,W=q=>{var U,V;const ce=Y.current+q,de=A().filter(be=>!be.disabled),fe=document.activeElement,we=(U=de.find(be=>be.ref.current===fe))===null||U===void 0?void 0:U.textValue,ne=de.map(be=>be.textValue),le=g6(ne,ce,we),ge=(V=de.find(be=>be.textValue===le))===null||V===void 0?void 0:V.ref.current;(function be(pe){Y.current=pe,window.clearTimeout(k.current),pe!==""&&(k.current=window.setTimeout(()=>be(""),1e3))})(ce),ge&&setTimeout(()=>ge.focus())};h.useEffect(()=>()=>window.clearTimeout(k.current),[]),eu();const J=h.useCallback(q=>{var U,V;return X.current===((U=G.current)===null||U===void 0?void 0:U.side)&&v6(q,(V=G.current)===null||V===void 0?void 0:V.area)},[]);return h.createElement(r6,{scope:n,searchRef:Y,onItemEnter:h.useCallback(q=>{J(q)&&q.preventDefault()},[J]),onItemLeave:h.useCallback(q=>{var U;J(q)||((U=R.current)===null||U===void 0||U.focus(),M(null))},[J]),onTriggerLeave:h.useCallback(q=>{J(q)&&q.preventDefault()},[J]),pointerGraceTimerRef:L,onPointerGraceIntentChange:h.useCallback(q=>{G.current=q},[])},h.createElement(K,B,h.createElement(ru,{asChild:!0,trapped:i,onMountAutoFocus:Ee(s,q=>{var U;q.preventDefault(),(U=R.current)===null||U===void 0||U.focus()}),onUnmountAutoFocus:l},h.createElement(rs,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b},h.createElement(mu,se({asChild:!0},T,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:I,onCurrentTabStopIdChange:M,onEntryFocus:Ee(u,q=>{y.isUsingKeyboardRef.current||q.preventDefault()})}),h.createElement(fu,se({role:"menu","aria-orientation":"vertical","data-state":f6(w.open),"data-radix-menu-content":"",dir:y.dir},S,_,{ref:D,style:{outline:"none",..._.style},onKeyDown:Ee(_.onKeyDown,q=>{const V=q.target.closest("[data-radix-menu-content]")===q.currentTarget,ce=q.ctrlKey||q.altKey||q.metaKey,de=q.key.length===1;V&&(q.key==="Tab"&&q.preventDefault(),!ce&&de&&W(q.key));const fe=R.current;if(q.target!==fe||!q4.includes(q.key))return;q.preventDefault();const ne=A().filter(le=>!le.disabled).map(le=>le.ref.current);w0.includes(q.key)&&ne.reverse(),p6(ne)}),onBlur:Ee(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(k.current),Y.current="")}),onPointerMove:Ee(e.onPointerMove,Iu(q=>{const U=q.target,V=N.current!==q.clientX;if(q.currentTarget.contains(U)&&V){const ce=q.clientX>N.current?"right":"left";X.current=ce,N.current=q.clientX}}))})))))))}),Su="MenuItem",O0="menu.itemSelect",a6=h.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=h.useRef(null),l=Tu(Su,e.__scopeMenu),c=S0(Su,e.__scopeMenu),u=et(t,s),p=h.useRef(!1),m=()=>{const g=s.current;if(!n&&g){const v=new CustomEvent(O0,{bubbles:!0,cancelable:!0});g.addEventListener(O0,b=>r==null?void 0:r(b),{once:!0}),Bc(g,v),v.defaultPrevented?p.current=!1:l.onClose()}};return h.createElement(l6,se({},i,{ref:u,disabled:n,onClick:Ee(e.onClick,m),onPointerDown:g=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,g),p.current=!0},onPointerUp:Ee(e.onPointerUp,g=>{var v;p.current||(v=g.currentTarget)===null||v===void 0||v.click()}),onKeyDown:Ee(e.onKeyDown,g=>{const v=c.searchRef.current!=="";n||v&&g.key===" "||V4.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})}))}),l6=h.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,l=S0(Su,n),c=C0(n),u=h.useRef(null),p=et(t,u),[m,g]=h.useState(!1),[v,b]=h.useState("");return h.useEffect(()=>{const E=u.current;if(E){var _;b(((_=E.textContent)!==null&&_!==void 0?_:"").trim())}},[s.children]),h.createElement(yu.ItemSlot,{scope:n,disabled:r,textValue:i??v},h.createElement(vu,se({asChild:!0},c,{focusable:!r}),h.createElement(Ne.div,se({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},s,{ref:p,onPointerMove:Ee(e.onPointerMove,Iu(E=>{r?l.onItemLeave(E):(l.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus())})),onPointerLeave:Ee(e.onPointerLeave,Iu(E=>l.onItemLeave(E))),onFocus:Ee(e.onFocus,()=>g(!0)),onBlur:Ee(e.onBlur,()=>g(!1))}))))}),c6="MenuRadioGroup",[Kj,Qj]=Di(c6,{value:void 0,onValueChange:()=>{}}),u6="MenuItemIndicator",[Jj,ek]=Di(u6,{checked:!1}),d6="MenuSub",[tk,nk]=Di(d6);function f6(e){return e?"open":"closed"}function p6(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function h6(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function g6(e,t,n){const i=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=h6(e,Math.max(s,0));i.length===1&&(l=l.filter(p=>p!==n));const u=l.find(p=>p.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}function m6(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,u=t[s].y,p=t[l].x,m=t[l].y;u>r!=m>r&&n<(p-c)*(r-u)/(m-u)+c&&(i=!i)}return i}function v6(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return m6(n,t)}function Iu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const b6=Q4,_6=J4,x6=n6,E6=i6,w6=a6,A0="DropdownMenu",[y6,rk]=Bt(A0,[y0]),cs=y0(),[C6,$0]=y6(A0),T6=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,u=cs(t),p=h.useRef(null),[m=!1,g]=hn({prop:i,defaultProp:s,onChange:l});return h.createElement(C6,{scope:t,triggerId:Zn(),triggerRef:p,contentId:Zn(),open:m,onOpenChange:g,onOpenToggle:h.useCallback(()=>g(v=>!v),[g]),modal:c},h.createElement(b6,se({},u,{open:m,onOpenChange:g,dir:r,modal:c}),n))},S6="DropdownMenuTrigger",I6=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=$0(S6,n),l=cs(n);return h.createElement(_6,se({asChild:!0},l),h.createElement(Ne.button,se({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:kc(t,s.triggerRef),onPointerDown:Ee(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:Ee(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),O6=e=>{const{__scopeDropdownMenu:t,...n}=e,r=cs(t);return h.createElement(x6,se({},r,n))},A6="DropdownMenuContent",$6=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=$0(A6,n),s=cs(n),l=h.useRef(!1);return h.createElement(E6,se({id:i.contentId,"aria-labelledby":i.triggerId},s,r,{ref:t,onCloseAutoFocus:Ee(e.onCloseAutoFocus,c=>{var u;l.current||(u=i.triggerRef.current)===null||u===void 0||u.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:Ee(e.onInteractOutside,c=>{const u=c.detail.originalEvent,p=u.button===0&&u.ctrlKey===!0,m=u.button===2||p;(!i.modal||m)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),D6=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=cs(n);return h.createElement(w6,se({},i,r,{ref:t}))}),D0=T6,M0=I6,M6=O6,P0=$6,Ou=D6;var P6=typeof global=="object"&&global&&global.Object===Object&&global,R6=typeof self=="object"&&self&&self.Object===Object&&self,R0=P6||R6||Function("return this")(),Aa=R0.Symbol,N0=Object.prototype,N6=N0.hasOwnProperty,L6=N0.toString,us=Aa?Aa.toStringTag:void 0;function j6(e){var t=N6.call(e,us),n=e[us];try{e[us]=void 0;var r=!0}catch{}var i=L6.call(e);return r&&(t?e[us]=n:delete e[us]),i}var k6=Object.prototype,F6=k6.toString;function B6(e){return F6.call(e)}var z6="[object Null]",G6="[object Undefined]",L0=Aa?Aa.toStringTag:void 0;function H6(e){return e==null?e===void 0?G6:z6:L0&&L0 in Object(e)?j6(e):B6(e)}function U6(e){return e!=null&&typeof e=="object"}var V6="[object Symbol]";function W6(e){return typeof e=="symbol"||U6(e)&&H6(e)==V6}var q6=/\s/;function Y6(e){for(var t=e.length;t--&&q6.test(e.charAt(t)););return t}var Z6=/^\s+/;function X6(e){return e&&e.slice(0,Y6(e)+1).replace(Z6,"")}function $a(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var j0=NaN,K6=/^[-+]0x[0-9a-f]+$/i,Q6=/^0b[01]+$/i,J6=/^0o[0-7]+$/i,ex=parseInt;function k0(e){if(typeof e=="number")return e;if(W6(e))return j0;if($a(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$a(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=X6(e);var n=Q6.test(e);return n||J6.test(e)?ex(e.slice(2),n?2:8):K6.test(e)?j0:+e}var Au=function(){return R0.Date.now()},tx="Expected a function",nx=Math.max,rx=Math.min;function Da(e,t,n){var r,i,s,l,c,u,p=0,m=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(tx);t=k0(t)||0,$a(n)&&(m=!!n.leading,g="maxWait"in n,s=g?nx(k0(n.maxWait)||0,t):s,v="trailing"in n?!!n.trailing:v);function b(M){var R=r,D=i;return r=i=void 0,p=M,l=e.apply(D,R),l}function E(M){return p=M,c=setTimeout(y,t),m?b(M):l}function _(M){var R=M-u,D=M-p,k=t-R;return g?rx(k,s-D):k}function w(M){var R=M-u,D=M-p;return u===void 0||R>=t||R<0||g&&D>=s}function y(){var M=Au();if(w(M))return S(M);c=setTimeout(y,_(M))}function S(M){return c=void 0,v&&r?b(M):(r=i=void 0,l)}function T(){c!==void 0&&clearTimeout(c),p=0,r=u=i=c=void 0}function A(){return c===void 0?l:S(Au())}function I(){var M=Au(),R=w(M);if(r=arguments,i=this,u=M,R){if(c===void 0)return E(u);if(g)return clearTimeout(c),c=setTimeout(y,t),b(u)}return c===void 0&&(c=setTimeout(y,t)),l}return I.cancel=T,I.flush=A,I}var ix="Expected a function";function ox(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(ix);return $a(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Da(e,t,{leading:r,maxWait:t,trailing:i})}var sx=!!(typeof window<"u"&&window.document&&window.document.createElement),ax=sx;const F0=Oc(ax);var bo=function(){return bo=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},bo.apply(this,arguments)},_o=null,B0=null;F0&&window.addEventListener("resize",function(){B0!==window.devicePixelRatio&&(B0=window.devicePixelRatio,_o=null)});function z0(){if(_o===null){if(typeof document>"u")return _o=0,_o;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),_o=n}return _o}function G0(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function H0(e){return!e||!e.ownerDocument?document:e.ownerDocument}var U0=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(i.value){case"true":r[l]=!0;break;case"false":r[l]=!1;break;case void 0:r[l]=!0;break;default:r[l]=i.value}}return r},t);return n};function V0(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function W0(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function q0(e){return".".concat(e.split(" ").join("."))}var lx=Object.freeze({__proto__:null,getElementWindow:G0,getElementDocument:H0,getOptions:U0,addClasses:V0,removeClasses:W0,classNamesToQuery:q0}),ni=G0,$u=H0,cx=U0,ri=V0,ii=W0,sn=q0,Ma=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ni(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ri(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){ii(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ri(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){ii(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var s,l;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(s=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(l=r.isWithinBounds(r.axis.y.track.rect)),(s||l)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),l&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var s,l,c,u,p,m,g,v,b,E,_;if(!(!r.draggedAxis||!r.contentWrapperEl)){var w,y=r.axis[r.draggedAxis].track,S=(l=(s=y.rect)===null||s===void 0?void 0:s[r.axis[r.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,T=r.axis[r.draggedAxis].scrollbar,A=(u=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,I=parseInt((m=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?w=i.pageY:w=i.pageX;var M=w-((v=(g=y.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;M=r.draggedAxis==="x"&&r.isRtl?((E=(b=y.rect)===null||b===void 0?void 0:b[r.axis[r.draggedAxis].sizeAttr])!==null&&E!==void 0?E:0)-T.size-M:M;var R=M/(S-T.size),D=R*(A-I);r.draggedAxis==="x"&&r.isRtl&&(D=!((_=e.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?-D:D),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=D}},this.onEndDrag=function(i){var s=$u(r.el),l=ni(r.el);i.preventDefault(),i.stopPropagation(),ii(r.el,r.classNames.dragging),s.removeEventListener("mousemove",r.drag,!0),s.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",r.preventClick,!0),s.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=bo(bo({},e.defaultOptions),n),this.classNames=bo(bo({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=ox(this._onMouseMove,64),this.onWindowResize=Da(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Da(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Da(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),s=e.getOffset(r);n.scrollLeft=-999;var l=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:z0()}catch{return z0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=$u(t),i=ni(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){F0&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(sn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(sn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(sn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(sn(this.classNames.offset)),this.maskEl=this.el.querySelector(sn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,sn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(sn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(sn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(sn(this.classNames.track)).concat(sn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(sn(this.classNames.track)).concat(sn(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(sn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(sn(this.classNames.scrollbar)))||null,this.options.autoHide||(ri(this.axis.x.scrollbar.el,this.classNames.visible),ri(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=ni(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=r.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ni(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var m=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=u>m,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>s-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>m-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,l=s/i,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),p=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];p=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,t==="x"&&this.isRtl&&(p=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var m=p/(l-u),g=~~((c-s.size)*m);g=t==="x"&&this.isRtl?-g+(c-s.size):g,s.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(ri(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(ii(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),ri(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ri(n.scrollbar.el,this.classNames.hover):ii(n.scrollbar.el,this.classNames.hover)):(ii(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),ii(this.axis[t].track.el,this.classNames.hover),ii(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=$u(this.el),s=ni(this.el),l=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=l.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ri(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,s,l,c;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var p=ni(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var m=this.axis[n].scrollbar,g=(s=(i=m.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,v=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],E=n==="y"?this.mouseY-g:this.mouseX-g,_=E<0?-1:1,w=_===-1?b-v:b+v,y=40,S=function(){r.contentWrapperEl&&(_===-1?b>w&&(b-=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,p.requestAnimationFrame(S)):b<w&&(b+=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,p.requestAnimationFrame(S)))};S()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ni(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=cx,e.helpers=lx,e}(),mn=function(){return mn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},mn.apply(this,arguments)};function ux(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Du=ve.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,s=ux(e,["children","scrollableNodeProps"]),l=ve.useRef(),c=ve.useRef(),u=ve.useRef(),p={},m={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(Ma.defaultOptions,b)?p[b]=s[b]:m[b]=s[b]});var g=mn(mn({},Ma.defaultOptions.classNames),p.classNames),v=mn(mn({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":p.ariaLabel||Ma.defaultOptions.ariaLabel});return ve.useEffect(function(){var b;return c.current=v.ref?v.ref.current:c.current,l.current&&(b=new Ma(l.current,mn(mn(mn({},p),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),ve.createElement("div",mn({"data-simplebar":"init",ref:l},m),ve.createElement("div",{className:g.wrapper},ve.createElement("div",{className:g.heightAutoObserverWrapperEl},ve.createElement("div",{className:g.heightAutoObserverEl})),ve.createElement("div",{className:g.mask},ve.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:mn(mn({},v),{ref:c}),contentNodeRef:u,contentNodeProps:{className:g.contentEl,ref:u}}):ve.createElement("div",mn({},v),ve.createElement("div",{className:g.contentEl},n)))),ve.createElement("div",{className:g.placeholder})),ve.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},ve.createElement("div",{className:g.scrollbar})),ve.createElement("div",{className:"".concat(g.track," simplebar-vertical")},ve.createElement("div",{className:g.scrollbar})))});Du.displayName="SimpleBar";const Y0={label:"_label_12r8p_1","label--button-lg":"_label--button-lg_12r8p_5","label--button-md":"_label--button-md_12r8p_12","label--button-sm":"_label--button-sm_12r8p_19","label--button-xs":"_label--button-xs_12r8p_26","label--tag":"_label--tag_12r8p_33"},xo=h.forwardRef((e,t)=>{const{variant:n="button-md",fontWeight:r="semibold",color:i,className:s,...l}=e;return d.jsx("label",{ref:t,className:ae(Y0.label,Y0[`label--${n}`],`text--weight-${r}`,i?`text--${i}`:"current-color",s),...l})});xo.displayName="Label";const vn={button:"_button_1845z_1","button--full-width":"_button--full-width_1845z_23","button--size-lg":"_button--size-lg_1845z_28","button--size-md":"_button--size-md_1845z_36","button--size-sm":"_button--size-sm_1845z_44","button--size-xs":"_button--size-xs_1845z_52","button--label":"_button--label_1845z_60","button--label-sm":"_button--label-sm_1845z_64","button--children":"_button--children_1845z_68","button--icon":"_button--icon_1845z_74","button-icon-left":"_button-icon-left_1845z_79","button-icon-right":"_button-icon-right_1845z_83","button--loading":"_button--loading_1845z_87","button--loading-icon":"_button--loading-icon_1845z_91",rotation:"_rotation_1845z_1","button--primary-filled":"_button--primary-filled_1845z_106","button--primary-filled-disabled":"_button--primary-filled-disabled_1845z_119","button--primary-outlined":"_button--primary-outlined_1845z_131","button--primary-outlined-disabled":"_button--primary-outlined-disabled_1845z_147","button--primary-text":"_button--primary-text_1845z_160","button--primary-text-disabled":"_button--primary-text-disabled_1845z_173","button--green-filled":"_button--green-filled_1845z_186","button--green-filled-disabled":"_button--green-filled-disabled_1845z_199","button--green-outlined":"_button--green-outlined_1845z_212","button--green-outlined-disabled":"_button--green-outlined-disabled_1845z_230","button--green-text":"_button--green-text_1845z_244","button--green-text-disabled":"_button--green-text-disabled_1845z_259","button--red-filled":"_button--red-filled_1845z_274","button--red-filled-disabled":"_button--red-filled-disabled_1845z_287","button--red-outlined":"_button--red-outlined_1845z_300","button--red-outlined-disabled":"_button--red-outlined-disabled_1845z_318","button--red-text":"_button--red-text_1845z_332","button--red-text-disabled":"_button--red-text-disabled_1845z_347","button--sand-filled":"_button--sand-filled_1845z_362","button--sand-filled-disabled":"_button--sand-filled-disabled_1845z_375","button--sand-outlined":"_button--sand-outlined_1845z_388","button--sand-outlined-disabled":"_button--sand-outlined-disabled_1845z_404","button--sand-text":"_button--sand-text_1845z_417","button--sand-text-disabled":"_button--sand-text-disabled_1845z_430"},dx={lg:"button-lg",md:"button-lg",sm:"button-md",xs:"button-sm"},Ot=h.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:i="lg",endIcon:s,startIcon:l,disabled:c=!1,fullWidth:u=!1,children:p,isLoading:m,loadingPosition:g="right",className:v,label:b,...E}=e,_=dx[i],w=i==="lg"||i==="md"?"button--label":"button--label-sm",y=!!(m&&g==="left"),S=!!(m&&g==="right"),T=p!==void 0&&typeof p=="string";return d.jsx("button",{ref:t,disabled:c,className:ae(vn.button,u&&vn["button--full-width"],vn[`button--size-${i}`],vn[`button--${n}-${r}`],c&&vn[`button--${n}-${r}-disabled`],m&&vn["button--loading"],v),"data-loading":m?"true":"false",...E,children:d.jsxs("span",{className:vn["button--children"],children:[(y||l)&&d.jsx("span",{className:ae("flex",!T&&vn["button-icon-left"],y&&vn["button--loading-icon"]),children:d.jsx(d.Fragment,{children:y?d.jsx(sa,{}):l})}),p!==void 0?T?d.jsx("span",{children:d.jsx(xo,{className:ae(vn[w],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:p})}):p:b&&d.jsx(xo,{className:ae(vn[w],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:b}),(S||s)&&d.jsx("span",{className:ae("flex",!T&&vn["button-icon-right"],S&&vn["button--loading-icon"]),children:d.jsx(d.Fragment,{children:S?d.jsx(sa,{}):s})})]})})});Ot.displayName="Button";const ut={"input-text-field--container":"_input-text-field--container_wv7xg_1","input-text-field--input":"_input-text-field--input_wv7xg_9","input-text-field--input-error":"_input-text-field--input-error_wv7xg_28","input-text-field--content":"_input-text-field--content_wv7xg_40","input-text-field--fluid":"_input-text-field--fluid_wv7xg_48","input-text-field--outlined":"_input-text-field--outlined_wv7xg_61","input-text-field--filled":"_input-text-field--filled_wv7xg_67","input-text-field--size-lg":"_input-text-field--size-lg_wv7xg_73","input-text-field--size-md":"_input-text-field--size-md_wv7xg_77","input-text-field--size-sm":"_input-text-field--size-sm_wv7xg_81","input-text-field--helper-text":"_input-text-field--helper-text_wv7xg_85","input-text-field--label-text":"_input-text-field--label-text_wv7xg_89","input-text-field--addon":"_input-text-field--addon_wv7xg_93","input-text-field--disabled":"_input-text-field--disabled_wv7xg_102","input-text-field--icon-container":"_input-text-field--icon-container_wv7xg_107","input-text-field--icon":"_input-text-field--icon_wv7xg_107","input-text-field--left-icon":"_input-text-field--left-icon_wv7xg_122","input-text-field--right-icon":"_input-text-field--right-icon_wv7xg_126"},Mu={caption:"_caption_9nluj_1","caption--size-md":"_caption--size-md_9nluj_6","caption--size-sm":"_caption--size-sm_9nluj_12","caption--size-xs":"_caption--size-xs_9nluj_17","caption--size-xxs":"_caption--size-xxs_9nluj_22","caption--weight-bold":"_caption--weight-bold_9nluj_27","caption--weight-regular":"_caption--weight-regular_9nluj_31","caption--capitalize":"_caption--capitalize_9nluj_35"},He=h.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:i="gray-900",isUppercase:s=!1,className:l,...c}=e;return d.jsx("p",{ref:t,className:ae(Mu.caption,Mu[`caption--size-${n}`],`text--weight-${r}`,`text--${i}`,s&&Mu["caption--capitalize"],l),...c})});He.displayName="Caption";const fx={fluid:"_fluid_xnl5i_1"},px=["font","letterSpacing","textTransform","fontKerning","fontOpticalSizing","fontSizeAdjust","fontStretch","fontVariant","fontVariationSettings","fontSynthesis","textIndent"],hx={all:"initial",position:"absolute",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden",overflow:"scroll",whiteSpace:"pre"};function gx(e){let t=document.createElement("span");t.innerText=e.value===""?e.placeholder:e.value;let n=window.getComputedStyle(e);Object.assign(t.style,hx),px.forEach(i=>{t.style[i]=n[i]}),document.body.appendChild(t);let r=mx(t.scrollWidth,n);return document.body.removeChild(t),r}function mx(e,t){let n="calc(";return n+=`${e}px`,t.boxSizing==="border-box"&&(n+=` + ${t.paddingLeft} + ${t.paddingRight}`,n+=` + ${t.borderLeftWidth} + ${t.borderRightWidth}`),n+=")",n}function vx(e){return e==null?"":typeof e=="number"?`${e}px`:e}const bx=h.forwardRef(function(t,n){var l;let{fieldSizing:r,...i}=t,s=h.useRef(null);return h.useLayoutEffect(()=>{let c=s.current;function u(){r==="content"&&(c.style.width=gx(c))}return u(),c.addEventListener("input",u),()=>{var p;c.style.width=vx((p=t.style)==null?void 0:p.width),c.removeEventListener("input",u)}},[t.value,r,(l=t.style)==null?void 0:l.width]),d.jsx("input",{ref:c=>{s.current=c,typeof n=="function"?n(c):n!=null&&(n.current=c)},...i})}),_x=h.forwardRef(({fieldSizing:e,...t},n)=>e!=="content"?d.jsx("input",{ref:n,...t}):CSS.supports("field-sizing:content")?d.jsx("input",{ref:n,...t,className:ae(fx.fluid,t.className)}):d.jsx(bx,{ref:n,...t,fieldSizing:e})),$n=h.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:s="outlined",label:l,placeholder:c,helperText:u,leftAddon:p,rightAddon:m,leftIcon:g,leftIconTwo:v,rightIcon:b,rightIconTwo:E,className:_,contentClassName:w,autoResize:y=!1,...S}=e,T=(A,I)=>{switch(I){case"lg":return d.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:ut["input-text-field--label-text"],children:A});default:case"md":return d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:ut["input-text-field--label-text"],children:A});case"sm":return d.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:ut["input-text-field--label-text"],children:A})}};return d.jsxs("div",{className:ae(ut["input-text-field--container"],i&&ut["input-text-field--disabled"],_),children:[l?T(l,n):null,d.jsxs("div",{className:ae(ut["input-text-field--content"],ut[`input-text-field--size-${n}`],ut[`input-text-field--${s}`],y?ut["input-text-field--fluid"]:null,w),children:[p?d.jsx("div",{className:ut["input-text-field--addon"],children:d.jsx(Ce,{size:"xs",fontWeight:"regular",children:p})}):null,g||v?d.jsxs("div",{className:ae(ut["input-text-field--icon-container"],ut["input-text-field--left-icon"]),children:[g?d.jsx("span",{className:ut["input-text-field--icon"],children:g}):null,v?d.jsx("span",{className:ae(ut["input-text-field--icon"]),children:v}):null]}):null,d.jsx(_x,{ref:t,type:"text",className:ae(ut["input-text-field--input"],r&&ut["input-text-field--input-error"],s==="filled"&&"bg--sand-200",i&&"cursor-not-allowed"),placeholder:c,disabled:i,...S,fieldSizing:y?"content":"fixed"}),b||E?d.jsxs("div",{className:ae(ut["input-text-field--icon-container"],ut["input-text-field--right-icon"]),children:[b?d.jsx("span",{className:ut["input-text-field--icon"],children:b}):null,E?d.jsx("span",{className:ae(ut["input-text-field--icon"]),children:E}):null]}):null,m?d.jsx("div",{className:ut["input-text-field--addon"],children:d.jsx(Ce,{size:"xs",fontWeight:"regular",children:m})}):null]}),u?d.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:ut["input-text-field--helper-text"],children:u}):null]})});$n.displayName="TextField";const Eo={"icon-button":"_icon-button_10wie_1","icon-button--size-md":"_icon-button--size-md_10wie_18","icon-button--size-sm":"_icon-button--size-sm_10wie_24","icon-button--size-xs":"_icon-button--size-xs_10wie_30","icon-button--size-xxs":"_icon-button--size-xxs_10wie_36","icon-button--children":"_icon-button--children_10wie_42","icon-button--icon":"_icon-button--icon_10wie_48","icon-button--primary-filled":"_icon-button--primary-filled_10wie_54","icon-button--primary-filled-disabled":"_icon-button--primary-filled-disabled_10wie_67","icon-button--primary-outlined":"_icon-button--primary-outlined_10wie_79","icon-button--primary-outlined-disabled":"_icon-button--primary-outlined-disabled_10wie_95","icon-button--primary-ghost":"_icon-button--primary-ghost_10wie_108","icon-button--primary-ghost-disabled":"_icon-button--primary-ghost-disabled_10wie_121","icon-button--green-filled":"_icon-button--green-filled_10wie_134","icon-button--green-filled-disabled":"_icon-button--green-filled-disabled_10wie_147","icon-button--green-outlined":"_icon-button--green-outlined_10wie_160","icon-button--green-outlined-disabled":"_icon-button--green-outlined-disabled_10wie_178","icon-button--green-ghost":"_icon-button--green-ghost_10wie_192","icon-button--green-ghost-disabled":"_icon-button--green-ghost-disabled_10wie_207","icon-button--red-filled":"_icon-button--red-filled_10wie_222","icon-button--red-filled-disabled":"_icon-button--red-filled-disabled_10wie_235","icon-button--red-outlined":"_icon-button--red-outlined_10wie_248","icon-button--red-outlined-disabled":"_icon-button--red-outlined-disabled_10wie_266","icon-button--red-ghost":"_icon-button--red-ghost_10wie_280","icon-button--red-ghost-disabled":"_icon-button--red-ghost-disabled_10wie_295","icon-button--sand-filled":"_icon-button--sand-filled_10wie_310","icon-button--sand-filled-disabled":"_icon-button--sand-filled-disabled_10wie_323","icon-button--sand-outlined":"_icon-button--sand-outlined_10wie_336","icon-button--sand-outlined-disabled":"_icon-button--sand-outlined-disabled_10wie_354","icon-button--sand-ghost":"_icon-button--sand-ghost_10wie_368","icon-button--sand-ghost-disabled":"_icon-button--sand-ghost-disabled_10wie_383","icon-button--rsanded-ghost-disabled":"_icon-button--rsanded-ghost-disabled_10wie_389"},st=h.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:i="lg",disabled:s=!1,children:l,className:c,...u}=e;return d.jsx("button",{ref:t,disabled:s,className:ae(Eo["icon-button"],Eo[`icon-button--size-${i}`],Eo[`icon-button--${n}-${r}`],s&&Eo[`icon-button--${n}-${r}-disabled`],c),...u,children:d.jsx("span",{className:ae("flex",Eo["icon-button--icon"],Eo["icon-button--children"]),children:l})})}),ds={tag:"_tag_10cmb_1","tag--icon-container":"_tag--icon-container_10cmb_20","tag--label":"_tag--label_10cmb_28","tag-close":"_tag-close_10cmb_36","tag--gray-soft":"_tag--gray-soft_10cmb_52","tag--gray-filled":"_tag--gray-filled_10cmb_59","tag--gray-outlined":"_tag--gray-outlined_10cmb_66","tag--sand-soft":"_tag--sand-soft_10cmb_77","tag--sand-filled":"_tag--sand-filled_10cmb_84","tag--sand-outlined":"_tag--sand-outlined_10cmb_91","tag--purple-soft":"_tag--purple-soft_10cmb_103","tag--purple-filled":"_tag--purple-filled_10cmb_110","tag--purple-outlined":"_tag--purple-outlined_10cmb_117","tag--green-soft":"_tag--green-soft_10cmb_129","tag--green-filled":"_tag--green-filled_10cmb_136","tag--green-outlined":"_tag--green-outlined_10cmb_143","tag--red-soft":"_tag--red-soft_10cmb_155","tag--red-filled":"_tag--red-filled_10cmb_162","tag--red-outlined":"_tag--red-outlined_10cmb_169","tag--salmon-soft":"_tag--salmon-soft_10cmb_181","tag--salmon-filled":"_tag--salmon-filled_10cmb_188","tag--salmon-outlined":"_tag--salmon-outlined_10cmb_195","tag--orange-soft":"_tag--orange-soft_10cmb_207","tag--orange-filled":"_tag--orange-filled_10cmb_214","tag--orange-outlined":"_tag--orange-outlined_10cmb_221","tag--pink-soft":"_tag--pink-soft_10cmb_233","tag--pink-filled":"_tag--pink-filled_10cmb_240","tag--pink-outlined":"_tag--pink-outlined_10cmb_247","tag--yellow-soft":"_tag--yellow-soft_10cmb_259","tag--yellow-filled":"_tag--yellow-filled_10cmb_266","tag--yellow-outlined":"_tag--yellow-outlined_10cmb_274","tag--darkblue-soft":"_tag--darkblue-soft_10cmb_286","tag--darkblue-filled":"_tag--darkblue-filled_10cmb_293","tag--darkblue-outlined":"_tag--darkblue-outlined_10cmb_300","tag--lightblue-soft":"_tag--lightblue-soft_10cmb_312","tag--lightblue-filled":"_tag--lightblue-filled_10cmb_319","tag--lightblue-outlined":"_tag--lightblue-outlined_10cmb_327","tag--mint-soft":"_tag--mint-soft_10cmb_339","tag--mint-filled":"_tag--mint-filled_10cmb_346","tag--mint-outlined":"_tag--mint-outlined_10cmb_354"},Pa=12,xx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 4.793a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Zm10-1A2.75 2.75 0 0 1 16 3.293h2a2.75 2.75 0 0 1 2.75 2.75v2a2.75 2.75 0 0 1-2.75 2.75h-2a2.75 2.75 0 0 1-2.75-2.75v-2ZM16 4.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25h-2ZM3.25 16.043A2.75 2.75 0 0 1 6 13.293h2a2.75 2.75 0 0 1 2.75 2.75v2A2.75 2.75 0 0 1 8 20.793H6a2.75 2.75 0 0 1-2.75-2.75v-2ZM6 14.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25H6Zm11 0a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Z",clipRule:"evenodd"})}),Ex=(()=>{const e=h.forwardRef(xx);return e.displayName="SvgAppsMenu",e})(),wx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.25 6A4.75 4.75 0 0 1 12 1.25h6A4.75 4.75 0 0 1 22.75 6v6A4.75 4.75 0 0 1 18 16.75h-1.25V18A4.75 4.75 0 0 1 12 22.75H6A4.75 4.75 0 0 1 1.25 18v-6A4.75 4.75 0 0 1 6 7.25h1.25V6Zm1.5 1.25H12A4.75 4.75 0 0 1 16.75 12v3.25H18A3.25 3.25 0 0 0 21.25 12V6A3.25 3.25 0 0 0 18 2.75h-6A3.25 3.25 0 0 0 8.75 6v1.25ZM6 8.75A3.25 3.25 0 0 0 2.75 12v6A3.25 3.25 0 0 0 6 21.25h6A3.25 3.25 0 0 0 15.25 18v-6A3.25 3.25 0 0 0 12 8.75H6Z",clipRule:"evenodd"})}),yx=(()=>{const e=h.forwardRef(wx);return e.displayName="SvgCopy",e})(),Cx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),Tx=(()=>{const e=h.forwardRef(Cx);return e.displayName="SvgDirectionDown01Chevron",e})(),Sx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.468 6.457a.75.75 0 0 1 .118 1.055l-3.625 4.531 3.625 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.054-.117Zm-5.999 0a.75.75 0 0 1 .117 1.055L7.96 12.043l3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),Ix=(()=>{const e=h.forwardRef(Sx);return e.displayName="SvgDirectionLeft",e})(),Ox=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Zm5.999 0a.75.75 0 0 0-.117 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.055-.117Z",clipRule:"evenodd"})}),Ax=(()=>{const e=h.forwardRef(Ox);return e.displayName="SvgDirectionRight",e})(),$x=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.586 14.511a.75.75 0 0 1-1.054.118L12 11.003 7.469 14.63a.75.75 0 1 1-.937-1.172l5-4a.75.75 0 0 1 .937 0l5 4a.75.75 0 0 1 .117 1.054Z",clipRule:"evenodd"})}),Dx=(()=>{const e=h.forwardRef($x);return e.displayName="SvgDirectionUp01Chevron",e})(),Mx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.515 5.848A4.75 4.75 0 0 1 8.123 2.25h3.666a4.75 4.75 0 0 1 2.635.798l1.547 1.031.037.025A2.742 2.742 0 0 1 18 3.25h2A2.75 2.75 0 0 1 22.75 6v7A2.75 2.75 0 0 1 20 15.75h-2c-.673 0-1.29-.242-1.768-.644l-3.58 6.266a.75.75 0 0 1-.652.378h-1.328c-2.596 0-4.144-2.893-2.705-5.053l.632-.947H4.562a2.75 2.75 0 0 1-2.668-3.417l1.621-6.485ZM16.75 13c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25V6c0-.69-.56-1.25-1.25-1.25h-2c-.69 0-1.25.56-1.25 1.25v7Zm-1.5-7.465a.25.25 0 0 0-.111-.208l-1.547-1.031a3.25 3.25 0 0 0-1.803-.546H8.123A3.25 3.25 0 0 0 4.97 6.212l-1.62 6.485a1.25 1.25 0 0 0 1.212 1.553H10a.75.75 0 0 1 .624 1.166l-1.408 2.113c-.776 1.163.058 2.721 1.456 2.721h.893l3.652-6.392a.25.25 0 0 0 .033-.124V5.535Z",clipRule:"evenodd"})}),Z0=(()=>{const e=h.forwardRef(Mx);return e.displayName="SvgDislike",e})(),Px=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",d:"M10.9 6.908a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm6.75-11a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Z"})}),Rx=(()=>{const e=h.forwardRef(Px);return e.displayName="SvgDragCustom",e})(),Nx=(e,t)=>d.jsxs("svg",{width:"140",height:"132",viewBox:"0 0 140 132",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M70.462 115.665C102.296 115.665 128.102 89.8399 128.102 57.9834C128.102 26.127 102.296 0.302246 70.462 0.302246C38.6285 0.302246 12.8223 26.127 12.8223 57.9834C12.8223 89.8399 38.6285 115.665 70.462 115.665Z",fill:"#F3F1ED"}),d.jsx("g",{filter:"url(#filter0_d_355_44078)",children:d.jsx("path",{d:"M117.694 21.9143V93.6056C117.694 96.1993 115.56 98.3353 112.968 98.3353H27.1316C24.5398 98.3353 22.4053 96.1993 22.4053 93.6056V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint0_linear_355_44078)"})}),d.jsx("path",{d:"M117.694 21.9143V25.3472H22.4053V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint1_linear_355_44078)"}),d.jsx("path",{d:"M27.3599 22.7536C28.1598 22.7536 28.8083 22.1047 28.8083 21.3042C28.8083 20.5037 28.1598 19.8547 27.3599 19.8547C26.56 19.8547 25.9115 20.5037 25.9115 21.3042C25.9115 22.1047 26.56 22.7536 27.3599 22.7536Z",fill:"#F3F1ED"}),d.jsx("path",{opacity:"0.6",d:"M31.8576 22.7536C32.6575 22.7536 33.306 22.1047 33.306 21.3042C33.306 20.5037 32.6575 19.8547 31.8576 19.8547C31.0576 19.8547 30.4092 20.5037 30.4092 21.3042C30.4092 22.1047 31.0576 22.7536 31.8576 22.7536Z",fill:"#F3F1ED"}),d.jsx("path",{opacity:"0.4",d:"M36.4314 22.7536C37.2314 22.7536 37.8798 22.1047 37.8798 21.3042C37.8798 20.5037 37.2314 19.8547 36.4314 19.8547C35.6315 19.8547 34.983 20.5037 34.983 21.3042C34.983 22.1047 35.6315 22.7536 36.4314 22.7536Z",fill:"#F3F1ED"}),d.jsx("path",{d:"M95.5253 57.9033H44.8824C43.3771 57.9033 42.0868 56.3142 42.0868 54.4602V37.5099C42.0868 35.656 43.3771 34.0669 44.8824 34.0669H95.5253C97.0306 34.0669 98.3209 35.656 98.3209 37.5099V54.4602C98.3209 56.3142 97.0306 57.9033 95.5253 57.9033Z",fill:"white"}),d.jsx("path",{d:"M75.538 43.9123H49.1297C48.3012 43.9123 47.5763 43.1869 47.5763 42.3578C47.5763 41.5287 48.3012 40.8032 49.1297 40.8032H75.538C76.3665 40.8032 77.0914 41.5287 77.0914 42.3578C76.9879 43.1869 76.3665 43.9123 75.538 43.9123Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M91.2787 43.9123H80.8189C79.9904 43.9123 79.2655 43.1869 79.2655 42.3578C79.2655 41.5287 79.9904 40.8032 80.8189 40.8032H91.2787C92.1072 40.8032 92.8321 41.5287 92.8321 42.3578C92.7285 43.1869 92.1072 43.9123 91.2787 43.9123Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M70.8776 51.0632H49.1296C48.3011 51.0632 47.5762 50.3377 47.5762 49.5086C47.5762 48.6796 48.3011 47.9541 49.1296 47.9541H70.8776C71.7061 47.9541 72.431 48.6796 72.431 49.5086C72.431 50.3377 71.7061 51.0632 70.8776 51.0632Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M95.5253 88.5639H44.8824C43.3771 88.5639 42.0868 86.9748 42.0868 85.1209V68.1706C42.0868 66.3166 43.3771 64.7275 44.8824 64.7275H95.5253C97.0306 64.7275 98.3209 66.3166 98.3209 68.1706V85.1209C98.3209 87.1072 97.0306 88.5639 95.5253 88.5639Z",fill:"white"}),d.jsx("path",{d:"M75.538 74.573H49.1297C48.3012 74.573 47.5763 73.8475 47.5763 73.0184C47.5763 72.1893 48.3012 71.4639 49.1297 71.4639H75.538C76.3665 71.4639 77.0914 72.1893 77.0914 73.0184C76.9879 73.9511 76.3665 74.573 75.538 74.573Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M91.2787 74.573H80.8189C79.9904 74.573 79.2655 73.8475 79.2655 73.0184C79.2655 72.1893 79.9904 71.4639 80.8189 71.4639H91.2787C92.1072 71.4639 92.8321 72.1893 92.8321 73.0184C92.7285 73.9511 92.1072 74.573 91.2787 74.573Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M70.8776 81.7238H49.1296C48.3011 81.7238 47.5762 80.9984 47.5762 80.1693C47.5762 79.3402 48.3011 78.6147 49.1296 78.6147H70.8776C71.7061 78.6147 72.431 79.3402 72.431 80.1693C72.431 81.102 71.7061 81.7238 70.8776 81.7238Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M90.788 110.64C90.4128 112.234 89.8501 113.923 89.1936 115.329C87.4115 118.8 84.5978 121.52 81.1276 123.302C77.5635 125.084 73.343 125.834 69.1224 124.896C59.1806 122.833 52.8028 113.078 54.8662 103.137C56.9296 93.1949 66.59 86.7233 76.5318 88.8805C80.0959 89.6308 83.191 91.4128 85.8171 93.8514C90.2253 98.2595 92.1011 104.637 90.788 110.64Z",fill:"url(#paint2_linear_355_44078)"}),d.jsx("path",{d:"M78.6888 105.294H74.4682V101.073C74.4682 100.229 73.8117 99.479 72.8738 99.479C72.0297 99.479 71.2794 100.136 71.2794 101.073V105.294H67.0588C66.2147 105.294 65.4644 105.951 65.4644 106.888C65.4644 107.826 66.1209 108.483 67.0588 108.483H71.2794V112.703C71.2794 113.548 71.9359 114.298 72.8738 114.298C73.7179 114.298 74.4682 113.641 74.4682 112.703V108.483H78.6888C79.5329 108.483 80.2833 107.826 80.2833 106.888C80.2833 105.951 79.5329 105.294 78.6888 105.294Z",fill:"white"}),d.jsxs("defs",{children:[d.jsxs("filter",{id:"filter0_d_355_44078",x:"0.405273",y:"6.18457",width:"139.289",height:"125.151",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[d.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feOffset",{dy:"11"}),d.jsx("feGaussianBlur",{stdDeviation:"11"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44078"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44078",result:"shape"})]}),d.jsxs("linearGradient",{id:"paint0_linear_355_44078",x1:"70.0188",y1:"15.3075",x2:"70.0188",y2:"99.2101",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),d.jsxs("linearGradient",{id:"paint1_linear_355_44078",x1:"113.915",y1:"17.1846",x2:"25.456",y2:"20.7799",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint2_linear_355_44078",x1:"89.7428",y1:"88.4654",x2:"55.5982",y2:"88.5839",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),Lx=(()=>{const e=h.forwardRef(Nx);return e.displayName="SvgIllustrationCard",e})(),jx=(e,t)=>d.jsxs("svg",{width:"178",height:"140",viewBox:"0 0 178 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[d.jsx("path",{d:"M79.2856 125C113.779 125 141.741 97.0178 141.741 62.5C141.741 27.9822 113.779 0 79.2856 0C44.7927 0 16.8306 27.9822 16.8306 62.5C16.8306 97.0178 44.7927 125 79.2856 125Z",fill:"#F3F1ED"}),d.jsx("g",{filter:"url(#filter0_d_355_44030)",children:d.jsx("path",{d:"M136.899 25.2617V101.676C136.899 104.37 134.688 106.589 132.003 106.589H27.537C24.8518 106.589 22.6404 104.37 22.6404 101.676V25.2617C22.6404 22.5676 24.8518 20.3489 27.537 20.3489H132.003C134.688 20.3489 136.899 22.5676 136.899 25.2617Z",fill:"url(#paint0_linear_355_44030)"})}),d.jsx("path",{d:"M101.244 57.0718C100.636 54.8258 99.2185 52.8862 97.1932 51.6611C94.9654 50.334 92.6363 50.1298 90.1047 49.9256C85.649 49.4152 81.092 49.3131 76.5351 49.5173C72.4845 49.6194 67.8263 49.4152 64.0794 51.1507C58.7124 53.4987 58.0035 58.7052 57.801 64.32C57.5985 68.5055 57.5985 73.5078 58.7124 77.5913C59.6238 80.8581 62.1554 83.4103 65.4972 84.1249C69.7503 85.1458 78.8642 85.35 83.3199 85.2479C83.7249 85.2479 84.13 85.2479 84.5351 85.2479C88.0793 85.1458 91.8262 85.1458 95.0667 83.9207C97.8008 83.0019 99.4211 81.3686 100.434 79.3268C101.649 76.8767 101.953 73.8141 102.054 70.4452C102.459 66.0554 102.358 61.0532 101.244 57.0718Z",fill:"url(#paint1_linear_355_44030)"}),d.jsx("path",{d:"M76.1088 61.4951C76.1088 60.1481 76.789 59.6991 77.8944 60.4175C80.8705 62.3033 83.9316 64.2788 86.9076 66.1646C88.013 66.883 88.013 67.6911 86.9076 68.4993C83.9316 70.3851 80.9555 72.3606 77.9794 74.2464C76.789 74.9648 76.1938 74.6056 76.1088 73.3484C76.1088 72.8096 76.1088 62.7522 76.1088 61.4951Z",fill:"white"}),d.jsx("path",{d:"M136.899 25.647V29.1937H22.6404V25.647C22.6404 22.9673 24.8518 20.7605 27.537 20.7605H132.003C134.688 20.7605 136.899 22.9673 136.899 25.647Z",fill:"url(#paint2_linear_355_44030)"}),d.jsx("path",{d:"M27.4345 26.514C28.261 26.514 28.9309 25.8436 28.9309 25.0165C28.9309 24.1895 28.261 23.519 27.4345 23.519C26.6081 23.519 25.9381 24.1895 25.9381 25.0165C25.9381 25.8436 26.6081 26.514 27.4345 26.514Z",fill:"#F3F1ED"}),d.jsx("path",{opacity:"0.6",d:"M32.0812 26.514C32.9077 26.514 33.5776 25.8436 33.5776 25.0165C33.5776 24.1895 32.9077 23.519 32.0812 23.519C31.2548 23.519 30.5848 24.1895 30.5848 25.0165C30.5848 25.8436 31.2548 26.514 32.0812 26.514Z",fill:"#F3F1ED"}),d.jsx("path",{opacity:"0.4",d:"M36.8068 26.514C37.6333 26.514 38.3032 25.8436 38.3032 25.0165C38.3032 24.1895 37.6333 23.519 36.8068 23.519C35.9804 23.519 35.3104 24.1895 35.3104 25.0165C35.3104 25.8436 35.9804 26.514 36.8068 26.514Z",fill:"#F3F1ED"}),d.jsx("g",{filter:"url(#filter1_d_355_44030)",children:d.jsx("rect",{x:"109.054",y:"40.6978",width:"46.5116",height:"46.5116",rx:"6",fill:"url(#paint3_linear_355_44030)"})}),d.jsx("rect",{x:"114.003",y:"45.6458",width:"36.6155",height:"36.6155",rx:"2",fill:"#EEECE6"}),d.jsx("path",{d:"M136.504 59.6813C137.352 59.6813 138.039 58.9959 138.039 58.1503C138.039 57.3048 137.352 56.6194 136.504 56.6194C135.656 56.6194 134.969 57.3048 134.969 58.1503C134.969 58.9959 135.656 59.6813 136.504 59.6813Z",fill:"#D2C8B1"}),d.jsx("path",{d:"M136.593 69.6213H124.882C124.126 69.6213 123.686 68.7468 124.126 68.1847L129.982 60.0645C130.36 59.5648 131.115 59.5648 131.493 60.0645L137.349 68.1847C137.789 68.8093 137.349 69.6213 136.593 69.6213Z",fill:"#D2C8B1"}),d.jsx("path",{opacity:"0.7",d:"M140.67 69.4556H134.907C134.031 69.4556 133.593 68.5477 134.031 67.9192L136.877 64.078C137.314 63.5193 138.117 63.5193 138.555 64.078L141.4 67.9192C142.057 68.5477 141.546 69.4556 140.67 69.4556Z",fill:"#D2C8B1"}),d.jsxs("defs",{children:[d.jsxs("filter",{id:"filter0_d_355_44030",x:"0.640381",y:"9.34888",width:"158.259",height:"130.24",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[d.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feOffset",{dy:"11"}),d.jsx("feGaussianBlur",{stdDeviation:"11"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),d.jsxs("filter",{id:"filter1_d_355_44030",x:"87.0544",y:"29.6978",width:"90.5116",height:"90.5117",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[d.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feOffset",{dy:"11"}),d.jsx("feGaussianBlur",{stdDeviation:"11"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),d.jsxs("linearGradient",{id:"paint0_linear_355_44030",x1:"79.7326",y1:"18.3541",x2:"79.7326",y2:"107.519",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),d.jsxs("linearGradient",{id:"paint1_linear_355_44030",x1:"100.504",y1:"49.4188",x2:"59.0575",y2:"49.5982",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint2_linear_355_44030",x1:"132.367",y1:"20.7605",x2:"26.3591",y2:"25.7611",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint3_linear_355_44030",x1:"132.295",y1:"39.6219",x2:"132.295",y2:"87.7108",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),kx=(()=>{const e=h.forwardRef(jx);return e.displayName="SvgIllustrationMedia",e})(),Fx=(e,t)=>d.jsxs("svg",{width:"129",height:"142",viewBox:"0 0 129 142",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[d.jsx("path",{d:"M64.5351 141.268C99.4733 141.268 127.796 112.771 127.796 77.619C127.796 42.4665 99.4733 13.9697 64.5351 13.9697C29.5969 13.9697 1.27393 42.4665 1.27393 77.619C1.27393 112.771 29.5969 141.268 64.5351 141.268Z",fill:"#F3F1ED"}),d.jsx("mask",{id:"mask0_355_44054",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"11",width:"129",height:"131",children:d.jsx("path",{d:"M64.5351 140.268C99.4733 140.268 127.796 111.771 127.796 76.619C127.796 41.4665 99.4733 12.9697 64.5351 12.9697C29.5969 12.9697 1.27393 41.4665 1.27393 76.619C1.27393 111.771 29.5969 140.268 64.5351 140.268Z",fill:"#F1F3F9",stroke:"#D6DCE8","stroke-width":"2","stroke-miterlimit":"10"})}),d.jsxs("g",{mask:"url(#mask0_355_44054)",children:[d.jsx("path",{d:"M115.351 133.619H136.97C137.369 132.335 137.688 130.971 137.848 129.686C137.848 129.526 137.928 129.285 137.928 129.125C137.928 128.964 137.928 128.804 138.007 128.643C138.406 122.864 136.412 117.085 132.662 112.831C132.583 112.751 132.583 112.751 132.503 112.671C129.232 109.059 124.685 106.49 119.181 105.928C119.021 105.928 118.861 105.928 118.702 105.848C118.542 105.848 118.383 105.848 118.144 105.848C117.745 105.848 117.426 105.848 117.027 105.848C114.394 105.848 111.841 106.33 109.528 107.213C108.73 107.534 107.932 107.855 107.214 108.256C106.975 108.417 106.736 108.497 106.496 108.657C106.257 108.818 106.098 108.898 105.858 109.059C105.699 109.139 105.539 109.299 105.38 109.38C105.22 109.46 105.06 109.62 104.901 109.701C104.662 109.861 104.422 110.102 104.103 110.263C102.587 111.467 101.231 112.831 100.114 114.356C99.9549 114.597 99.7156 114.838 99.5561 115.159C99.4763 115.319 99.3167 115.48 99.237 115.64C99.1572 115.801 98.9976 115.961 98.9179 116.202C98.7583 116.443 98.6785 116.603 98.5988 116.844C98.519 116.924 98.519 117.005 98.4392 117.085C98.3594 117.246 98.1999 117.486 98.1201 117.727C98.0403 117.888 97.9606 118.048 97.8808 118.209C94.9291 118.369 92.137 119.332 86.2337 123.265L85.2764 101.835H77.8574L77.2192 115.159C74.826 113.313 72.5125 113.553 70.917 113.634L71.3159 113.553L70.6777 100.39H58.552L57.834 116.042C55.7598 114.436 55.1216 115.239 54.4834 115.239C53.2071 115.239 52.0902 115.56 51.0531 116.122L50.4149 101.835H43.0757L42.597 113.152C39.2465 111.145 35.3376 110.022 31.2691 110.022C26.2433 110.022 21.6163 111.707 17.8669 114.517C11.0861 111.306 4.06594 112.028 -1.43851 115.159C-1.67783 115.319 -1.83738 115.399 -2.0767 115.56C-2.15648 115.64 -2.31603 115.721 -2.3958 115.721C-2.55535 115.801 -2.63512 115.881 -2.79467 115.961C-2.95422 116.042 -3.11377 116.122 -3.19355 116.282C-5.02836 117.567 -6.62385 119.092 -7.90024 120.857C-7.98002 121.018 -8.13957 121.098 -8.21934 121.259C-8.29912 121.419 -8.45867 121.5 -8.53844 121.66C-8.61821 121.821 -8.69799 121.901 -8.85754 122.061C-8.93731 122.222 -9.01709 122.382 -9.09686 122.463C-9.17664 122.543 -9.25641 122.703 -9.25641 122.784C-11.171 125.994 -12.2081 129.686 -12.2081 133.619L86.2337 143.733L115.351 133.619Z",fill:"white"}),d.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",fill:"white"}),d.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999L86.1541 123.667Z",fill:"white"}),d.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",fill:"white"}),d.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M50.0162 116.764C51.2128 115.721 52.8083 115.159 54.4836 115.159C57.2757 115.159 59.6689 116.764 60.7858 119.092",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M8.85248 132.415C8.85248 119.974 18.8243 109.941 31.1894 109.941C41.4803 109.941 50.1757 116.924 52.7285 126.476",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M52.9677 126.396C53.207 122.302 56.5576 119.092 60.7058 119.092C62.2216 119.092 63.6575 119.573 64.8541 120.296",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M68.2048 114.758C69.4812 113.875 70.9171 113.393 72.5924 113.393C75.1452 113.393 77.3788 114.677 78.8148 116.523",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M115.351 133.138C115.192 131.131 114.634 129.205 113.756 127.52",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M85.2765 125.192C88.3079 120.858 93.2539 118.048 98.8382 118.048C104.183 118.048 108.97 120.617 112.001 124.55",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M64.6944 132.897C63.8967 128.884 60.3866 125.834 56.1586 125.834C54.962 125.834 53.8451 126.075 52.808 126.556C50.8137 127.359 49.2182 128.964 48.3407 130.891",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M17.8669 114.436C17.7872 114.436 17.7872 114.436 17.8669 114.436C11.5647 111.467 4.06594 111.707 -2.0767 115.48C-2.15648 115.56 -2.31603 115.64 -2.3958 115.64C-2.55535 115.721 -2.63512 115.801 -2.79467 115.881C-3.51264 116.363 -4.15084 116.844 -4.78904 117.406C-6.22498 118.69 -7.50137 120.055 -8.53844 121.58C-8.61821 121.74 -8.69799 121.821 -8.85754 121.981C-8.93731 122.142 -9.01709 122.302 -9.09686 122.382C-9.17664 122.463 -9.25641 122.623 -9.25641 122.703C-11.0912 125.834 -12.0485 129.365 -12.2081 132.977",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M97.8012 118.048C97.881 117.888 97.9607 117.727 98.0405 117.567C99.9551 113.554 103.146 110.263 107.055 108.176C107.773 107.775 108.571 107.454 109.368 107.133C111.682 106.25 114.235 105.768 116.867 105.768C117.266 105.768 117.585 105.768 117.984 105.768C118.144 105.768 118.303 105.768 118.543 105.768C118.702 105.768 118.862 105.768 119.021 105.848C124.286 106.41 128.993 108.898 132.344 112.59C132.423 112.671 132.423 112.671 132.503 112.751C135.854 116.523 137.928 121.5 137.928 126.958C137.928 127.52 137.928 128.001 137.848 128.563C137.848 128.724 137.848 128.884 137.768 129.045C137.768 129.205 137.688 129.446 137.688 129.606C137.529 130.73 137.29 131.854 136.97 132.978",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]}),d.jsx("path",{d:"M32.4655 68.1476H32.1464C31.7475 68.1476 31.3487 67.8266 31.3487 67.345V67.0239C31.3487 66.7029 31.0296 66.3818 30.7105 66.3818C30.3914 66.3818 30.0723 66.7029 30.0723 67.0239V67.345C30.0723 67.7463 29.7532 68.1476 29.2745 68.1476H29.0352C28.7161 68.1476 28.397 68.4687 28.397 68.7898C28.397 69.1108 28.7161 69.4319 29.0352 69.4319H29.3543C29.7532 69.4319 30.152 69.7529 30.152 70.2345V70.5556C30.152 70.8766 30.4711 71.1977 30.7902 71.1977C31.1093 71.1977 31.4284 70.8766 31.4284 70.5556V70.2345C31.4284 69.8332 31.7475 69.4319 32.2262 69.4319H32.5453C32.8644 69.4319 33.1835 69.1108 33.1835 68.7898C33.1037 68.4687 32.8644 68.1476 32.4655 68.1476Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M28.6367 44.4702H28.3176C27.7591 44.4702 27.3603 44.0688 27.3603 43.507V43.1859C27.3603 42.7846 27.0412 42.3833 26.5625 42.3833C26.0839 42.3833 25.7648 42.7044 25.7648 43.1859V43.507C25.7648 44.0688 25.3659 44.4702 24.8075 44.4702H24.4086C24.0097 44.4702 23.6109 44.7912 23.6109 45.2728C23.6109 45.6741 23.93 46.0754 24.4086 46.0754H24.7277C25.2861 46.0754 25.685 46.4768 25.685 47.0386V47.3597C25.685 47.761 26.0041 48.1623 26.4828 48.1623C26.9614 48.1623 27.2805 47.8412 27.2805 47.3597V47.0386C27.2805 46.4768 27.6794 46.0754 28.2378 46.0754H28.5569C28.9558 46.0754 29.3546 45.7544 29.3546 45.2728C29.4344 44.8715 29.1153 44.4702 28.6367 44.4702Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M103.385 41.8215H103.146C102.827 41.8215 102.508 41.5005 102.508 41.1794V40.9386C102.508 40.6176 102.268 40.457 102.029 40.457C101.71 40.457 101.471 40.6978 101.471 40.9386V41.1794C101.471 41.5005 101.152 41.8215 100.832 41.8215H100.593C100.274 41.8215 100.114 42.0623 100.114 42.3031C100.114 42.6242 100.354 42.7847 100.593 42.7847H100.832C101.152 42.7847 101.471 43.1057 101.471 43.4268V43.6676C101.471 43.9886 101.71 44.1492 102.029 44.1492C102.348 44.1492 102.508 43.9084 102.508 43.6676V43.4268C102.508 43.1057 102.827 42.7847 103.146 42.7847H103.385C103.704 42.7847 103.864 42.5439 103.864 42.3031C103.944 42.1426 103.625 41.8215 103.385 41.8215Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M102.667 103.063H102.428C102.109 103.063 101.79 102.742 101.79 102.421V102.18C101.79 101.859 101.551 101.698 101.311 101.698C100.992 101.698 100.753 101.939 100.753 102.18V102.421C100.753 102.742 100.434 103.063 100.115 103.063H99.8754C99.5563 103.063 99.3967 103.304 99.3967 103.544C99.3967 103.785 99.636 104.026 99.8754 104.026H100.115C100.434 104.026 100.753 104.347 100.753 104.668V104.909C100.753 105.23 100.992 105.39 101.311 105.39C101.63 105.39 101.79 105.15 101.79 104.909V104.668C101.79 104.347 102.109 104.026 102.428 104.026H102.667C102.987 104.026 103.146 103.785 103.146 103.544C103.146 103.304 102.907 103.063 102.667 103.063Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M28.8758 102.581H28.6365C28.3174 102.581 27.9983 102.26 27.9983 101.939V101.698C27.9983 101.377 27.759 101.217 27.5196 101.217C27.2005 101.217 26.9612 101.458 26.9612 101.698V101.939C26.9612 102.26 26.6421 102.581 26.323 102.581H26.0837C25.7646 102.581 25.605 102.822 25.605 103.063C25.605 103.384 25.8444 103.544 26.0837 103.544H26.323C26.6421 103.544 26.9612 103.866 26.9612 104.187V104.427C26.9612 104.748 27.2005 104.909 27.5196 104.909C27.8387 104.909 27.9983 104.668 27.9983 104.427V104.187C27.9983 103.866 28.3174 103.544 28.6365 103.544H28.8758C29.1949 103.544 29.3544 103.304 29.3544 103.063C29.4342 102.822 29.1151 102.581 28.8758 102.581Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M16.0323 77.619C15.075 77.619 14.2773 76.8164 14.2773 75.8532C14.2773 74.89 15.075 74.0874 16.0323 74.0874C16.9896 74.0874 17.7873 74.89 17.7873 75.8532C17.7873 76.8164 16.9896 77.619 16.0323 77.619ZM16.0323 75.0506C15.6334 75.0506 15.2345 75.3716 15.2345 75.8532C15.2345 76.2545 15.5536 76.6558 16.0323 76.6558C16.4312 76.6558 16.83 76.3348 16.83 75.8532C16.9098 75.4519 16.5109 75.0506 16.0323 75.0506Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M97.8008 65.6597C96.2851 65.6597 95.1683 64.4558 95.1683 63.011C95.1683 61.5663 96.3649 60.3623 97.8008 60.3623C99.3166 60.3623 100.433 61.5663 100.433 63.011C100.433 64.4558 99.2368 65.6597 97.8008 65.6597ZM97.8008 61.8071C97.1626 61.8071 96.5244 62.3689 96.5244 63.0913C96.5244 63.8136 97.0829 64.3755 97.8008 64.3755C98.439 64.3755 99.0772 63.8136 99.0772 63.0913C99.0772 62.3689 98.5188 61.8071 97.8008 61.8071Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M113.756 56.9912C113.118 56.9912 112.559 57.4728 112.559 58.1952C112.559 58.9175 113.038 59.3991 113.756 59.3991C114.394 59.3991 114.952 58.9175 114.952 58.1952C114.952 57.4728 114.394 56.9912 113.756 56.9912Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M113.836 84.6019H113.517C113.038 84.6019 112.719 84.2006 112.719 83.7993V83.4782C112.719 83.0769 112.4 82.7559 112.001 82.7559C111.602 82.7559 111.283 83.0769 111.283 83.4782V83.7993C111.283 84.2809 110.884 84.6019 110.485 84.6019H110.166C109.767 84.6019 109.448 84.923 109.448 85.3243C109.448 85.7256 109.767 86.0467 110.166 86.0467H110.485C110.964 86.0467 111.283 86.448 111.283 86.8493V87.1704C111.283 87.5717 111.602 87.8927 112.001 87.8927C112.4 87.8927 112.719 87.5717 112.719 87.1704V86.8493C112.719 86.3677 113.118 86.0467 113.517 86.0467H113.836C114.235 86.0467 114.554 85.7256 114.554 85.3243C114.474 84.923 114.235 84.6019 113.836 84.6019Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint0_linear_355_44054)"}),d.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"white",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M51.5317 101.755H41.7992C41.5599 101.755 41.4003 101.594 41.4003 101.353C41.4003 101.113 41.5599 100.952 41.7992 100.952H51.5317C51.771 100.952 51.9306 101.113 51.9306 101.353C51.8508 101.594 51.6912 101.755 51.5317 101.755Z",fill:"url(#paint1_linear_355_44054)"}),d.jsx("path",{d:"M50.9733 99.427C51.2126 99.5875 51.4519 99.9086 51.4519 100.23V101.032H41.879V100.23C41.879 99.9086 42.0385 99.5875 42.2779 99.427L43.5543 98.5441V95.0928H49.6171V98.6244L50.9733 99.427Z",fill:"url(#paint2_linear_355_44054)"}),d.jsx("path",{d:"M47.3039 17.6383C46.905 17.3172 46.3466 17.3172 46.0275 17.6383C44.2725 19.1633 41.4803 24.5409 41.4803 30.2397V97.4205C41.4803 98.0627 41.959 98.5442 42.5972 98.5442H46.6657H50.7342C51.3724 98.5442 51.851 98.0627 51.851 97.4205V30.3199C51.851 24.5409 49.0589 19.2435 47.3039 17.6383Z",fill:"url(#paint3_linear_355_44054)"}),d.jsx("path",{d:"M65.6518 0.30099C64.7743 -0.10033 63.4979 -0.10033 62.6204 0.30099C58.4721 2.38785 51.8508 12.2603 51.8508 20.0459C51.8508 28.8749 51.8508 94.4505 51.8508 94.4505H64.1361H76.4214C76.4214 94.4505 76.4214 28.8749 76.4214 20.0459C76.3416 12.2603 69.8001 2.46811 65.6518 0.30099Z",fill:"url(#paint4_linear_355_44054)"}),d.jsx("path",{d:"M57.2756 28.9551H76.4215",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("path",{d:"M51.8508 28.9551H54.1643",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("path",{d:"M46.9047 31.2026H51.8507",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("path",{d:"M41.4003 31.2026H43.5542",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("path",{d:"M45.3892 45.0884H51.8509",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("path",{d:"M86.4729 101.755H76.7404C76.501 101.755 76.3415 101.594 76.3415 101.353C76.3415 101.113 76.501 100.952 76.7404 100.952H86.4729C86.7122 100.952 86.8717 101.113 86.8717 101.353C86.792 101.594 86.6324 101.755 86.4729 101.755Z",fill:"url(#paint5_linear_355_44054)"}),d.jsx("path",{d:"M85.9945 99.427C86.2338 99.5875 86.4731 99.9086 86.4731 100.23V101.032H76.9002V100.23C76.9002 99.9086 77.0597 99.5875 77.299 99.427L78.5754 98.5441V95.0928H84.6383V98.6244L85.9945 99.427Z",fill:"url(#paint6_linear_355_44054)"}),d.jsx("path",{d:"M82.2451 17.6383C81.8462 17.3172 81.2878 17.3172 80.9687 17.6383C79.2137 19.1633 76.4215 24.5409 76.4215 30.2397V97.4205C76.4215 98.0627 76.9002 98.5442 77.5384 98.5442H81.6069H85.6754C86.3136 98.5442 86.7922 98.0627 86.7922 97.4205V30.3199C86.7922 24.5409 84.0001 19.2435 82.2451 17.6383Z",fill:"url(#paint7_linear_355_44054)"}),d.jsx("path",{d:"M80.5699 31.2026H86.8721",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("path",{d:"M81.0486 45.0884H86.7923",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("path",{d:"M76.3415 45.0884H78.5752",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),d.jsx("g",{filter:"url(#filter0_d_355_44054)",children:d.jsx("path",{d:"M57.0362 40.192L57.5149 38.2657L58.7913 37.9447L60.9452 37.4631L61.1845 37.3828L61.344 40.192L64.4552 86.3438L57.7542 95.6544L55.1216 95.1728L36.6139 91.9623C35.4971 91.8017 34.6196 90.7583 34.6196 89.6346V80.8858C34.6196 79.8424 35.0184 78.799 35.7364 78.0766L48.1812 65.3949C50.1756 63.308 51.6913 60.7396 52.4093 58.0106L55.0419 47.8974L57.0362 40.192Z",fill:"url(#paint8_linear_355_44054)"})}),d.jsx("g",{filter:"url(#filter1_d_355_44054)",children:d.jsx("path",{d:"M94.53 80.8858V89.6346C94.53 90.7583 93.7323 91.8017 92.5357 91.9623L78.6549 94.3702L71.3954 95.6544L64.6146 86.3438L67.9651 37.3828L68.2044 37.4631L70.3584 37.9447L71.6347 38.2657L76.2617 55.8435L76.8201 58.0106C77.5381 60.8199 78.974 63.3883 81.0481 65.3949L93.493 78.0766C94.1312 78.799 94.53 79.8424 94.53 80.8858Z",fill:"url(#paint9_linear_355_44054)"})}),d.jsx("g",{filter:"url(#filter2_d_355_44054)",children:d.jsx("path",{d:"M71.6351 35.6974V94.5308H57.2756V35.6974C57.2756 33.1289 57.8341 30.6407 58.8711 28.3131C59.1104 27.9118 59.27 27.4302 59.5093 27.0289L62.5408 21.9722C63.4183 20.5275 65.4126 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.8002 27.9118 69.9598 28.3131C71.0766 30.6407 71.6351 33.2092 71.6351 35.6974Z",fill:"url(#paint10_linear_355_44054)"})}),d.jsx("path",{d:"M70.0396 28.3131C69.5609 27.5104 68.6834 27.0289 67.6464 27.0289H61.2644C60.3071 27.0289 59.4296 27.5104 58.8712 28.3131C59.1105 27.9118 59.27 27.4302 59.5094 27.0289L62.5408 21.9722C63.4183 20.5275 65.4127 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.88 27.9118 70.0396 28.3131Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M68.1248 35.1354C68.1248 35.3762 67.8057 35.5367 67.6462 35.2959C67.2473 34.8144 66.6889 34.5736 65.9709 34.5736H62.8597C62.2215 34.5736 61.6631 34.8144 61.2642 35.2959C61.2642 35.2959 61.2642 35.2959 61.1844 35.3762C61.0249 35.617 60.7058 35.4565 60.7058 35.2157C60.7058 34.9749 60.7058 34.7341 60.7058 34.413C60.7058 33.2091 61.6631 32.3262 62.8597 32.3262H65.9709C66.0507 32.3262 66.1305 32.3262 66.2102 32.3262C66.5293 32.3262 66.7686 32.4867 67.0877 32.567C67.7259 32.9683 68.1248 33.6104 68.1248 34.413C68.1248 34.6538 68.1248 34.8946 68.1248 35.1354Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M60.7056 82.0098H58.9506C56.7967 82.0098 55.1214 83.7756 55.1214 85.8624V95.6546H64.6146V85.8624C64.5348 83.7756 62.7798 82.0098 60.7056 82.0098Z",fill:"url(#paint11_linear_355_44054)"}),d.jsx("path",{d:"M70.1193 82.0098H68.3642C66.2103 82.0098 64.5351 83.7756 64.5351 85.8624V95.6546H74.0282V85.8624C73.9485 83.7756 72.1934 82.0098 70.1193 82.0098Z",fill:"url(#paint12_linear_355_44054)"}),d.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint13_linear_355_44054)"}),d.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"url(#paint14_linear_355_44054)"}),d.jsx("rect",{x:"64.5083",y:"75",width:"2",height:"21",rx:"1",fill:"#DFDFDF"}),d.jsxs("defs",{children:[d.jsxs("filter",{id:"filter0_d_355_44054",x:"12.6196",y:"26.3828",width:"73.8357",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[d.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feOffset",{dy:"11"}),d.jsx("feGaussianBlur",{stdDeviation:"11"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),d.jsxs("filter",{id:"filter1_d_355_44054",x:"42.6146",y:"26.3828",width:"73.9154",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[d.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feOffset",{dy:"11"}),d.jsx("feGaussianBlur",{stdDeviation:"11"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),d.jsxs("filter",{id:"filter2_d_355_44054",x:"35.2756",y:"9.88867",width:"58.3594",height:"117.642",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[d.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feOffset",{dy:"11"}),d.jsx("feGaussianBlur",{stdDeviation:"11"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),d.jsxs("linearGradient",{id:"paint0_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint1_linear_355_44054",x1:"51.5129",y1:"100.952",x2:"41.7417",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint2_linear_355_44054",x1:"51.0722",y1:"95.0928",x2:"42.1711",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint3_linear_355_44054",x1:"51.4397",y1:"17.3976",x2:"41.7965",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint4_linear_355_44054",x1:"75.4467",y1:"0.000197722",x2:"52.5998",y2:"0.0208906",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint5_linear_355_44054",x1:"86.454",y1:"100.952",x2:"76.6829",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint6_linear_355_44054",x1:"86.0934",y1:"95.0928",x2:"77.1923",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint7_linear_355_44054",x1:"86.3809",y1:"17.3976",x2:"76.7377",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint8_linear_355_44054",x1:"49.5277",y1:"36.0349",x2:"49.5277",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),d.jsxs("linearGradient",{id:"paint9_linear_355_44054",x1:"79.5626",y1:"36.0349",x2:"79.5626",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),d.jsxs("linearGradient",{id:"paint10_linear_355_44054",x1:"64.4507",y1:"19.1853",x2:"64.4507",y2:"95.3247",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),d.jsxs("linearGradient",{id:"paint11_linear_355_44054",x1:"59.8649",y1:"81.6941",x2:"59.8649",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),d.jsxs("linearGradient",{id:"paint12_linear_355_44054",x1:"69.2786",y1:"81.6941",x2:"69.2786",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),d.jsxs("linearGradient",{id:"paint13_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),d.jsxs("linearGradient",{id:"paint14_linear_355_44054",x1:"72.467",y1:"99.668",x2:"56.4793",y2:"100.415",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#DDD6C4"}),d.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),Bx=(()=>{const e=h.forwardRef(Fx);return e.displayName="SvgIllustrationLaunch",e})(),zx=(e,t)=>d.jsxs("svg",{width:"143",height:"154",viewBox:"0 0 143 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[d.jsx("path",{d:"M60.2972 119.867C93.3732 119.867 120.187 93.1019 120.187 60.0849C120.187 27.0678 93.3732 0.302246 60.2972 0.302246C27.2211 0.302246 0.407715 27.0678 0.407715 60.0849C0.407715 93.1019 27.2211 119.867 60.2972 119.867Z",fill:"#F3F1ED"}),d.jsx("path",{d:"M31.679 85.172C30.9662 85.172 30.2863 85.03 29.6649 84.7735L29.2833 85.6979C27.7504 85.0651 26.5176 83.846 25.8749 82.3283L26.7958 81.9384C26.5342 81.3205 26.3895 80.6443 26.3895 79.9357V77.4544H25.3895V72.4917H26.3895V67.529H25.3895V62.5663H26.3895V57.6037H25.3895V52.641H26.3895V47.6783H25.3895V42.7157H26.3895V40.2343C26.3895 39.5257 26.5342 38.8495 26.7958 38.2316L25.8749 37.8417C26.5176 36.324 27.7504 35.1049 29.2833 34.4722L29.6649 35.3965C30.2863 35.14 30.9662 34.998 31.679 34.998H34.0966V33.998H38.9318V34.998H43.767V33.998H48.6022V34.998H53.4374V33.998H58.2726V34.998H63.1078V33.998H67.943V34.998H72.7782V33.998H77.6134V34.998H82.4487V33.998H87.2839V34.998H89.7015C90.4142 34.998 91.0942 35.14 91.7156 35.3965L92.0971 34.4722C93.63 35.1049 94.8629 36.324 95.5055 37.8417L94.5847 38.2316C94.8463 38.8495 94.9909 39.5257 94.9909 40.2343V42.7212H95.9909V47.6948H94.9909V52.6684H95.9909V57.6421H94.9909V62.6157H95.9909V67.5894H94.9909V72.5631H95.9909V77.5367H94.9909V80.0235C94.9909 80.7383 94.8492 81.4119 94.5933 82.0212L95.5153 82.4085C94.8806 83.9197 93.6532 85.1161 92.0944 85.7269L91.7296 84.7958C91.1131 85.0373 90.4302 85.172 89.7015 85.172H87.2839V86.172H82.4487V85.172H77.6134V86.172H72.7782V85.172H67.943V86.172H63.1078V85.172H58.2726V86.172H53.4374V85.172H48.6022V86.172H43.767V85.172H38.9318V86.172H34.0966V85.172H31.679Z",fill:"#EEECE6",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-dasharray":"5.01 5.01"}),d.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M54.7164 65.4389C54.7164 64.7939 55.264 64.271 55.9394 64.271H66.5274C67.2029 64.271 67.7505 64.7939 67.7505 65.4389C67.7505 66.0839 67.2029 66.6068 66.5274 66.6068H55.9394C55.264 66.6068 54.7164 66.0839 54.7164 65.4389Z",fill:"#D2C8B1"}),d.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.1886 51.7284C61.8641 51.7284 62.4117 52.2513 62.4117 52.8963V61.1168C62.4117 61.7618 61.8641 62.2847 61.1886 62.2847C60.5131 62.2847 59.9655 61.7618 59.9655 61.1168V52.8963C59.9655 52.2513 60.5131 51.7284 61.1886 51.7284Z",fill:"#D2C8B1"}),d.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.3252 51.7304C60.7997 51.2784 61.5669 51.2754 62.0454 51.7235L67.3839 56.7236C67.8661 57.1753 67.8736 57.9147 67.4005 58.3752C66.9275 58.8357 66.1532 58.8428 65.6709 58.3912L61.1962 54.2L56.8032 58.3843C56.325 58.8398 55.5506 58.8389 55.0735 58.3822C54.5965 57.9255 54.5974 57.1861 55.0757 56.7305L60.3252 51.7304Z",fill:"#D2C8B1"}),d.jsx("g",{filter:"url(#filter0_d_355_44074)",children:d.jsx("path",{d:"M115.05 120.656H60.406C57.1524 120.656 54.4828 117.991 54.4828 114.743V77.0186C54.4828 73.7708 57.1524 71.106 60.406 71.106H115.05C118.304 71.106 120.973 73.7708 120.973 77.0186V114.743C120.973 117.991 118.304 120.656 115.05 120.656Z",fill:"url(#paint0_linear_355_44074)"})}),d.jsx("path",{d:"M120.29 107.6C121.273 107.6 122.059 108.387 122.059 109.37V120.778C122.059 123.335 120.094 125.302 117.539 125.302H110.07C109.284 125.302 108.498 125.105 108.105 124.515C106.336 122.942 102.601 119.795 101.815 118.615C101.619 118.221 101.422 118.025 101.422 117.631V115.074C101.422 113.501 102.601 112.321 104.174 112.321H105.156V117.238H105.746V107.01C105.746 106.027 106.532 105.24 107.515 105.24C108.498 105.24 109.284 106.027 109.284 107.01V108.977H109.873V106.42C109.873 105.437 110.66 104.65 111.642 104.65C112.625 104.65 113.411 105.437 113.411 106.42V108.977H114.197V107.6C114.197 106.617 114.984 105.83 115.966 105.83C116.949 105.83 117.735 106.617 117.735 107.6V108.977H118.521C118.718 108.19 119.308 107.6 120.29 107.6Z",fill:"white",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),d.jsx("path",{d:"M92.1912 93.3411C93.3431 93.3411 94.2768 92.409 94.2768 91.2592C94.2768 90.1094 93.3431 89.1772 92.1912 89.1772C91.0393 89.1772 90.1055 90.1094 90.1055 91.2592C90.1055 92.409 91.0393 93.3411 92.1912 93.3411Z",fill:"#DFDFDF"}),d.jsx("path",{d:"M92.5252 104.417H77.0079C76.0068 104.417 75.4229 103.251 76.0068 102.501L83.7655 91.6754C84.266 91.0092 85.2671 91.0092 85.7677 91.6754L93.5263 102.501C94.1103 103.334 93.5263 104.417 92.5252 104.417Z",fill:"#DFDFDF"}),d.jsx("path",{opacity:"0.7",d:"M97.8643 104.25H91.2736C90.2725 104.25 89.7719 103.168 90.2725 102.418L93.5261 97.838C94.0267 97.1718 94.9443 97.1718 95.4449 97.838L98.6985 102.418C99.4494 103.168 98.8654 104.25 97.8643 104.25Z",fill:"#D2C8B1"}),d.jsxs("defs",{children:[d.jsxs("filter",{id:"filter0_d_355_44074",x:"32.4828",y:"60.106",width:"110.491",height:"93.55",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[d.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feOffset",{dy:"11"}),d.jsx("feGaussianBlur",{stdDeviation:"11"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44074"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44074",result:"shape"})]}),d.jsxs("linearGradient",{id:"paint0_linear_355_44074",x1:"87.7064",y1:"69.9598",x2:"87.7064",y2:"121.19",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{"stop-color":"#FCFCFC"}),d.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),Gx=(()=>{const e=h.forwardRef(zx);return e.displayName="SvgIllustrationUpload",e})(),Hx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2.792a3.25 3.25 0 0 0-3.25 3.25v7.616l2.627 1.891a3.25 3.25 0 0 0 4.073-.221l4.096-3.687a4.75 4.75 0 0 1 5.953-.324l1.751 1.26v-2.535a.75.75 0 1 1 1.5 0v8a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12A4.75 4.75 0 0 1 6 1.292h8a.75.75 0 0 1 0 1.5H6ZM2.75 15.506v2.536A3.25 3.25 0 0 0 6 21.292h12a3.25 3.25 0 0 0 3.25-3.25v-3.616l-2.627-1.891a3.25 3.25 0 0 0-4.073.221l-4.096 3.687a4.75 4.75 0 0 1-5.953.324l-1.75-1.26ZM17.763 2.22a1.75 1.75 0 0 1 2.474 0l1.293 1.293a.75.75 0 1 1-1.06 1.06l-.72-.72v4.19a.75.75 0 0 1-1.5 0v-4.19l-.72.72a.75.75 0 0 1-1.06-1.06l1.293-1.293ZM8.5 6.792a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5Zm-3.25 1.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Z",clipRule:"evenodd"})}),Ux=(()=>{const e=h.forwardRef(Hx);return e.displayName="SvgImageUpload00",e})(),Vx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.349 2.628A.75.75 0 0 1 12 2.25h1.329c2.595 0 4.144 2.893 2.704 5.053l-.632.947h4.037a2.75 2.75 0 0 1 2.668 3.417l-1.62 6.485a4.75 4.75 0 0 1-4.61 3.598h-3.665a4.75 4.75 0 0 1-2.635-.798l-1.108-.738A2.75 2.75 0 0 1 6 21.75H4A2.75 2.75 0 0 1 1.25 19v-9A2.75 2.75 0 0 1 4 7.25h2c.859 0 1.626.394 2.13 1.01l3.219-5.632ZM8.75 10.266v8.199a.25.25 0 0 0 .111.208l1.547 1.031a3.25 3.25 0 0 0 1.803.546h3.666a3.25 3.25 0 0 0 3.153-2.462l1.621-6.485a1.25 1.25 0 0 0-1.213-1.553H14a.75.75 0 0 1-.624-1.166l1.409-2.113c.775-1.163-.059-2.721-1.456-2.721h-.894l-3.652 6.392a.25.25 0 0 0-.033.124ZM7.25 10c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v9c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-9Z",clipRule:"evenodd"})}),X0=(()=>{const e=h.forwardRef(Vx);return e.displayName="SvgLike",e})(),Wx=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.65 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 0 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.136 5.907a3.964 3.964 0 0 0-5.606 0l-1.666 1.667a.75.75 0 1 1-1.061-1.06l1.666-1.668a5.464 5.464 0 0 1 7.728 7.728L17.53 14.24a.75.75 0 1 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606ZM5.862 18.18a3.964 3.964 0 0 0 5.606 0l1.667-1.667a.75.75 0 0 1 1.06 1.06L12.53 19.24a5.464 5.464 0 1 1-7.727-7.727l1.666-1.667a.75.75 0 1 1 1.06 1.06l-1.666 1.667a3.964 3.964 0 0 0 0 5.607Z",clipRule:"evenodd"})]}),K0=(()=>{const e=h.forwardRef(Wx);return e.displayName="SvgLink",e})(),qx=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",d:"M18.82 4.12a.75.75 0 0 1 1.133.976l-.072.084-.72.72a.75.75 0 0 1-1.134-.976l.073-.084.72-.72Zm-.737 8.966a.75.75 0 0 1 .977-.066l.084.073.76.77a.75.75 0 0 1-.984 1.127l-.084-.073-.76-.77a.75.75 0 0 1 .007-1.06ZM9.11 4.12a.75.75 0 0 1 .976-.073l.085.073.72.72a.75.75 0 0 1-.977 1.133L9.83 5.9l-.72-.72a.75.75 0 0 1 0-1.06Z"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.263 17.849 9.577-9.581a1.749 1.749 0 0 1 2.475 0l1.412 1.413a1.75 1.75 0 0 1 0 2.475l-9.577 9.58a1.749 1.749 0 0 1-2.475.001l-1.412-1.413a1.75 1.75 0 0 1 0-2.475Z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",d:"M14.49 1.75a.75.75 0 0 1 .743.648l.007.102v1.02a.75.75 0 0 1-1.493.102l-.007-.102V2.5a.75.75 0 0 1 .75-.75Zm7.01 7.01a.75.75 0 0 1 .102 1.493l-.102.007h-1.02a.75.75 0 0 1-.102-1.493l.102-.007h1.02Z"})]}),Q0=(()=>{const e=h.forwardRef(qx);return e.displayName="SvgMagicWandGenerativeCustom",e})(),Yx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.793a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5Zm-10.75 9.25c0-5.937 4.813-10.75 10.75-10.75s10.75 4.813 10.75 10.75-4.813 10.75-10.75 10.75S1.25 17.98 1.25 12.043Zm7.391-3.359a.75.75 0 0 1 1.061 0L12 10.982l2.298-2.298a.75.75 0 0 1 1.06 1.06l-2.297 2.299 2.298 2.298a.75.75 0 1 1-1.06 1.06L12 13.105l-2.298 2.298a.75.75 0 0 1-1.06-1.06l2.297-2.3-2.298-2.297a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),Zx=(()=>{const e=h.forwardRef(Yx);return e.displayName="SvgMultiplyCircleEdu",e})(),Xx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.712 3.329a3.537 3.537 0 0 1 5.002 5.002L9.26 19.786a4.702 4.702 0 0 1-2.446 1.295l-3.673.699a.75.75 0 0 1-.877-.877l.7-3.673a4.702 4.702 0 0 1 1.294-2.446L15.712 3.33Zm3.941 1.06a2.037 2.037 0 0 0-2.88 0l-1.405 1.406 2.88 2.88 1.405-1.405a2.037 2.037 0 0 0 0-2.88Zm-2.465 5.347-2.881-2.88-8.99 8.99a3.202 3.202 0 0 0-.881 1.664l-.493 2.59 2.59-.493a3.202 3.202 0 0 0 1.665-.881l8.99-8.99Z",clipRule:"evenodd"})}),Kx=(()=>{const e=h.forwardRef(Xx);return e.displayName="SvgPencilEdu",e})(),Qx=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 5.25a.75.75 0 0 1 .75.75v5.25H18a.75.75 0 0 1 0 1.5h-5.25V18a.75.75 0 0 1-1.5 0v-5.25H6a.75.75 0 0 1 0-1.5h5.25V6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),Jx=(()=>{const e=h.forwardRef(Qx);return e.displayName="SvgPlusAdd",e})(),eE=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.227 7.227a.75.75 0 0 1 1.061 0l3.713 3.713 3.712-3.712a.75.75 0 1 1 1.06 1.06l-3.712 3.713 3.712 3.712a.75.75 0 1 1-1.06 1.06L12 13.061l-3.713 3.712a.75.75 0 1 1-1.06-1.06L10.94 12 7.227 8.288a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),Pu=(()=>{const e=h.forwardRef(eE);return e.displayName="SvgRemoveClose",e})(),tE=(e,t)=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.782 2.475A2.75 2.75 0 0 1 11.07 1.25h1.86c.92 0 1.778.46 2.288 1.225L16.4 4.25H21a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1 0-1.5h4.599l1.183-1.775Zm.62 1.775h5.197l-.63-.943a1.25 1.25 0 0 0-1.04-.557H11.07a1.25 1.25 0 0 0-1.04.557l-.629.943ZM5 7.25a.75.75 0 0 1 .75.75v10A3.25 3.25 0 0 0 9 21.25h6A3.25 3.25 0 0 0 18.25 18V8a.75.75 0 0 1 1.5 0v10A4.75 4.75 0 0 1 15 22.75H9A4.75 4.75 0 0 1 4.25 18V8A.75.75 0 0 1 5 7.25Zm5 3a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Zm4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),Ru=(()=>{const e=h.forwardRef(tE);return e.displayName="SvgTrash",e})(),nE=(e,t)=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.47 6.573a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1-1.06 1.06l-1.72-1.72v10.19a.75.75 0 0 1-1.5 0V4.853l-1.72 1.72a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 21.793a4.75 4.75 0 0 1-4.75-4.75v-4A4.75 4.75 0 0 1 7 8.293h.5a.75.75 0 0 1 0 1.5H7a3.25 3.25 0 0 0-3.25 3.25v4A3.25 3.25 0 0 0 7 20.293h10a3.25 3.25 0 0 0 3.25-3.25v-4A3.25 3.25 0 0 0 17 9.793h-.5a.75.75 0 0 1 0-1.5h.5a4.75 4.75 0 0 1 4.75 4.75v4a4.75 4.75 0 0 1-4.75 4.75H7Z",clipRule:"evenodd"})]}),rE=(()=>{const e=h.forwardRef(nE);return e.displayName="SvgUpload",e})(),Qn=h.forwardRef((e,t)=>{const{label:n,color:r="gray",variant:i="soft",fontWeight:s="semibold",closeIcon:l=!0,renderIcon:c,onCloseIconClicked:u,className:p,...m}=e;return d.jsxs("div",{ref:t,className:ae(ds.tag,ds[`tag--${r}-${i}`],p),...m,children:[c&&d.jsx("span",{className:ds["tag--icon-container"],children:c({width:Pa,height:Pa})}),d.jsx(xo,{variant:"tag",fontWeight:s,className:ds["tag--label"],children:n}),l?d.jsx("button",{className:ds["tag-close"],onClick:u,children:d.jsx(Pu,{width:Pa,height:Pa,className:"cursor-pointer"})}):null]})});Qn.displayName="Tag";const Nu=h.forwardRef((e,t)=>h.createElement(Ne.span,se({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),iE=Nu,[Ra,uk]=Bt("Tooltip",[po]),Lu=po(),oE="TooltipProvider",sE=700,ju="tooltip.open",[aE,ku]=Ra(oE),lE=e=>{const{__scopeTooltip:t,delayDuration:n=sE,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[l,c]=h.useState(!0),u=h.useRef(!1),p=h.useRef(0);return h.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),h.createElement(aE,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(p.current),c(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:h.useCallback(m=>{u.current=m},[]),disableHoverableContent:i},s)},Fu="Tooltip",[cE,Na]=Ra(Fu),uE=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=e,u=ku(Fu,e.__scopeTooltip),p=Lu(t),[m,g]=h.useState(null),v=Zn(),b=h.useRef(0),E=l??u.disableHoverableContent,_=c??u.delayDuration,w=h.useRef(!1),[y=!1,S]=hn({prop:r,defaultProp:i,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(ju))):u.onClose(),s==null||s(R)}}),T=h.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),A=h.useCallback(()=>{window.clearTimeout(b.current),w.current=!1,S(!0)},[S]),I=h.useCallback(()=>{window.clearTimeout(b.current),S(!1)},[S]),M=h.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{w.current=!0,S(!0)},_)},[_,S]);return h.useEffect(()=>()=>window.clearTimeout(b.current),[]),h.createElement(uu,p,h.createElement(cE,{scope:t,contentId:v,open:y,stateAttribute:T,trigger:m,onTriggerChange:g,onTriggerEnter:h.useCallback(()=>{u.isOpenDelayed?M():A()},[u.isOpenDelayed,M,A]),onTriggerLeave:h.useCallback(()=>{E?I():window.clearTimeout(b.current)},[I,E]),onOpen:A,onClose:I,disableHoverableContent:E},n))},J0="TooltipTrigger",eh=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Na(J0,n),s=ku(J0,n),l=Lu(n),c=h.useRef(null),u=et(t,c,i.onTriggerChange),p=h.useRef(!1),m=h.useRef(!1),g=h.useCallback(()=>p.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),h.createElement(du,se({asChild:!0},l),h.createElement(Ne.button,se({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:u,onPointerMove:Ee(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ee(e.onFocus,()=>{p.current||i.onOpen()}),onBlur:Ee(e.onBlur,i.onClose),onClick:Ee(e.onClick,i.onClose)})))}),dE="TooltipPortal",[dk,fE]=Ra(dE,{forceMount:void 0}),fs="TooltipContent",pE=h.forwardRef((e,t)=>{const n=fE(fs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,l=Na(fs,e.__scopeTooltip);return h.createElement(on,{present:r||l.open},l.disableHoverableContent?h.createElement(th,se({side:i},s,{ref:t})):h.createElement(hE,se({side:i},s,{ref:t})))}),hE=h.forwardRef((e,t)=>{const n=Na(fs,e.__scopeTooltip),r=ku(fs,e.__scopeTooltip),i=h.useRef(null),s=et(t,i),[l,c]=h.useState(null),{trigger:u,onClose:p}=n,m=i.current,{onPointerInTransitChange:g}=r,v=h.useCallback(()=>{c(null),g(!1)},[g]),b=h.useCallback((E,_)=>{const w=E.currentTarget,y={x:E.clientX,y:E.clientY},S=mE(y,w.getBoundingClientRect()),T=vE(y,S),A=bE(_.getBoundingClientRect()),I=xE([...T,...A]);c(I),g(!0)},[g]);return h.useEffect(()=>()=>v(),[v]),h.useEffect(()=>{if(u&&m){const E=w=>b(w,m),_=w=>b(w,u);return u.addEventListener("pointerleave",E),m.addEventListener("pointerleave",_),()=>{u.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",_)}}},[u,m,b,v]),h.useEffect(()=>{if(l){const E=_=>{const w=_.target,y={x:_.clientX,y:_.clientY},S=(u==null?void 0:u.contains(w))||(m==null?void 0:m.contains(w)),T=!_E(y,l);S?v():T&&(v(),p())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[u,m,l,p,v]),h.createElement(th,se({},e,{ref:s}))}),[gE,fk]=Ra(Fu,{isInside:!1}),th=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,u=Na(fs,n),p=Lu(n),{onClose:m}=u;return h.useEffect(()=>(document.addEventListener(ju,m),()=>document.removeEventListener(ju,m)),[m]),h.useEffect(()=>{if(u.trigger){const g=v=>{const b=v.target;b!=null&&b.contains(u.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[u.trigger,m]),h.createElement(rs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:g=>g.preventDefault(),onDismiss:m},h.createElement(fu,se({"data-state":u.stateAttribute},p,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(dp,null,r),h.createElement(gE,{scope:n,isInside:!0},h.createElement(iE,{id:u.contentId,role:"tooltip"},i||r))))});function mE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function vE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function bE(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function _E(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,u=t[s].y,p=t[l].x,m=t[l].y;u>r!=m>r&&n<(p-c)*(r-u)/(m-u)+c&&(i=!i)}return i}function xE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),EE(t)}function EE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const wE=lE,yE=uE,CE=eh,Bu=pE,Dn={"tooltip--container":"_tooltip--container_1i4jw_1","tooltip--dark":"_tooltip--dark_1i4jw_18","tooltip--image-preview":"_tooltip--image-preview_1i4jw_52","tooltip--image":"_tooltip--image_1i4jw_52","tooltip--title":"_tooltip--title_1i4jw_69","tooltip--suggestion":"_tooltip--suggestion_1i4jw_74","tooltip--description":"_tooltip--description_1i4jw_79","tooltip--feedback-container":"_tooltip--feedback-container_1i4jw_84","tooltip--feedback":"_tooltip--feedback_1i4jw_84","tooltip--feedback-icon":"_tooltip--feedback-icon_1i4jw_103"},ps=h.forwardRef(({title:e,suggestion:t,description:n,image:r,imageAlt:i,feedbackOptions:s,isDark:l,sideOffset:c=8,children:u,className:p,...m},g)=>d.jsx(Bu,{ref:g,sideOffset:c,className:ae(Dn["tooltip--container"],l&&Dn["tooltip--dark"],p),...m,children:u||d.jsxs("div",{children:[r&&d.jsx("div",{className:Dn["tooltip--image-preview"],children:d.jsx("img",{src:r,alt:i||"preview",className:Dn["tooltip--image"]})}),e&&(typeof e=="string"?d.jsx(He,{size:"md",fontWeight:"bold",color:l?"white-alpha-1000":"gray-1000",className:Dn["tooltip--title"],children:e}):e),t&&(typeof t=="string"?d.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-700",className:Dn["tooltip--suggestion"],children:t}):t),n&&(typeof n=="string"?d.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",className:Dn["tooltip--description"],children:n}):n),s&&d.jsxs("div",{className:Dn["tooltip--feedback-container"],children:[d.jsxs("div",{className:Dn["tooltip--feedback"],onClick:()=>s.onClick(!0),children:[d.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.positiveLabel}),d.jsx("div",{className:Dn["tooltip--feedback-icon"],children:d.jsx(e7,{className:"text--gray-700"})})]}),d.jsxs("div",{className:Dn["tooltip--feedback"],onClick:()=>s.onClick(!1),children:[d.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.negativeLabel}),d.jsx("div",{className:Dn["tooltip--feedback-icon"],children:d.jsx(z_,{className:"text--gray-700"})})]})]})]})}));ps.displayName=Bu.displayName;const La=({children:e,providerProps:t,rootProps:n})=>d.jsx(wE,{...t,children:d.jsx(yE,{...n,children:e})}),hs=h.forwardRef(({children:e,...t},n)=>d.jsx(CE,{ref:n,asChild:!0,...t,children:e}));hs.displayName=eh.displayName;const nh="Popover",[rh,pk]=Bt(nh,[po]),zu=po(),[TE,Mi]=rh(nh),SE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=zu(t),u=h.useRef(null),[p,m]=h.useState(!1),[g=!1,v]=hn({prop:r,defaultProp:i,onChange:s});return h.createElement(uu,c,h.createElement(TE,{scope:t,contentId:Zn(),triggerRef:u,open:g,onOpenChange:v,onOpenToggle:h.useCallback(()=>v(b=>!b),[v]),hasCustomAnchor:p,onCustomAnchorAdd:h.useCallback(()=>m(!0),[]),onCustomAnchorRemove:h.useCallback(()=>m(!1),[]),modal:l},n))},IE="PopoverTrigger",OE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Mi(IE,n),s=zu(n),l=et(t,i.triggerRef),c=h.createElement(Ne.button,se({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":sh(i.open)},r,{ref:l,onClick:Ee(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:h.createElement(du,se({asChild:!0},s),c)}),ih="PopoverPortal",[AE,$E]=rh(ih,{forceMount:void 0}),DE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,s=Mi(ih,t);return h.createElement(AE,{scope:t,forceMount:n},h.createElement(on,{present:n||s.open},h.createElement(_a,{asChild:!0,container:i},r)))},gs="PopoverContent",ME=h.forwardRef((e,t)=>{const n=$E(gs,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,s=Mi(gs,e.__scopePopover);return h.createElement(on,{present:r||s.open},s.modal?h.createElement(PE,se({},i,{ref:t})):h.createElement(RE,se({},i,{ref:t})))}),PE=h.forwardRef((e,t)=>{const n=Mi(gs,e.__scopePopover),r=h.useRef(null),i=et(t,r),s=h.useRef(!1);return h.useEffect(()=>{const l=r.current;if(l)return _u(l)},[]),h.createElement(Ia,{as:Si,allowPinchZoom:!0},h.createElement(oh,se({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),s.current||(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;s.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})))}),RE=h.forwardRef((e,t)=>{const n=Mi(gs,e.__scopePopover),r=h.useRef(!1),i=h.useRef(!1);return h.createElement(oh,se({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(u))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),oh=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:m,...g}=e,v=Mi(gs,n),b=zu(n);return eu(),h.createElement(ru,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},h.createElement(rs,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1)},h.createElement(fu,se({"data-state":sh(v.open),role:"dialog",id:v.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),NE="PopoverClose",LE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Mi(NE,n);return h.createElement(Ne.button,se({type:"button"},r,{ref:t,onClick:Ee(e.onClick,()=>i.onOpenChange(!1))}))});function sh(e){return e?"open":"closed"}const ja=SE,ka=OE,jE=DE,Fa=ME,kE=LE,Jn={"atom-top-ai-dropdown":"_atom-top-ai-dropdown_1f7wa_1","atom-top-ai-dropdown--text-field":"_atom-top-ai-dropdown--text-field_1f7wa_9","atom-top-ai-dropdown--container":"_atom-top-ai-dropdown--container_1f7wa_15","atom-top-ai-dropdown--text-container":"_atom-top-ai-dropdown--text-container_1f7wa_28","atom-top-ai-dropdown--selected-answer":"_atom-top-ai-dropdown--selected-answer_1f7wa_33","atom-top-ai-dropdown--popover-content":"_atom-top-ai-dropdown--popover-content_1f7wa_37","atom-top-ai-dropdown--popover-content--input":"_atom-top-ai-dropdown--popover-content--input_1f7wa_50","atom-top-ai-dropdown--popover-content--icons":"_atom-top-ai-dropdown--popover-content--icons_1f7wa_54"};function FE({value:e,tooltip:t,selectAnswer:n}){const[r,i]=h.useState(!1),s=h.useRef(null),l=h.useCallback(()=>{var m;let p=((m=s.current)==null?void 0:m.value)??"";p=p.startsWith("http://")||p.startsWith("https://")||p.startsWith("mailto:")||p.startsWith("{{")?p:"https://"+p,n({url:p})},[]),c=h.useCallback(()=>{i(!1)},[]),u=h.useCallback(p=>{p.key==="Enter"&&l(),p.key==="Escape"&&c()},[l,c]);return d.jsxs(ja,{open:r,onOpenChange:i,children:[d.jsx(ka,{asChild:!0,children:d.jsx("span",{children:d.jsxs(La,{rootProps:{open:t?void 0:!1},children:[d.jsx(hs,{children:d.jsx(st,{color:"sand",variant:"outlined",size:"sm",children:d.jsx(oa,{className:"text--gray-700"})})}),d.jsx(ps,{isDark:!0,description:t})]})})}),d.jsxs(Fa,{side:"top",sideOffset:8,className:Jn["atom-top-ai-dropdown--popover-content"],children:[d.jsx($n,{ref:s,autoFocus:!0,placeholder:"https://",className:Jn["atom-top-ai-dropdown--popover-content--input"],onKeyDown:u,defaultValue:e}),d.jsxs("div",{className:Jn["atom-top-ai-dropdown--popover-content--icons"],children:[d.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:d.jsx(Pc,{color:"var(--color-green-600)"})}),d.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:d.jsx(jc,{color:"var(--color-red-600)"})})]})]})]})}function BE({value:e,tooltip:t,selectAnswer:n}){const[r,i]=h.useState(!1),s=h.useRef(null),l=h.useCallback(()=>{var p;const u=((p=s.current)==null?void 0:p.value)??"";n({url:u?`tel: ${u}`:""})},[]),c=h.useCallback(()=>{i(!1)},[]);return d.jsxs(ja,{open:r,onOpenChange:i,children:[d.jsx(ka,{asChild:!0,children:d.jsx("span",{children:d.jsxs(La,{rootProps:{open:t?void 0:!1},children:[d.jsx(hs,{children:d.jsx(st,{color:"sand",variant:"outlined",size:"sm",children:d.jsx(ia,{className:"text--gray-700"})})}),d.jsx(ps,{isDark:!0,description:t})]})})}),d.jsxs(Fa,{side:"top",sideOffset:8,className:Jn["atom-top-ai-dropdown--popover-content"],children:[d.jsx($n,{ref:s,autoFocus:!0,placeholder:"+39",className:Jn["atom-top-ai-dropdown--popover-content--input"],defaultValue:e==null?void 0:e.replace(/tel:\s*/,"")}),d.jsxs("div",{className:Jn["atom-top-ai-dropdown--popover-content--icons"],children:[d.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:d.jsx(Pc,{color:"var(--color-green-600)"})}),d.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:d.jsx(jc,{color:"var(--color-red-600)"})})]})]})]})}function zE(e){return e==="url"?d.jsx(oa,{}):e==="phone"?d.jsx(ia,{}):null}function GE(e,t){return e==="variable"?d.jsxs(d.Fragment,{children:[d.jsx("b",{children:"{{ "}),t,d.jsx("b",{children:" }}"})]}):t}function HE({type:e,label:t,onRemove:n}){const r=zE(e);return d.jsx(Qn,{renderIcon:r?()=>r:null,label:GE(e,t),onCloseIconClicked:n})}const ah=h.forwardRef(({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,selectedAnswer:s,selectAnswer:l,onRemove:c,...u},p)=>d.jsx("div",{className:Jn["atom-top-ai-dropdown"],children:d.jsxs("div",{ref:p,className:Jn["atom-top-ai-dropdown--container"],children:[e?d.jsx("div",{className:Jn["atom-top-ai-dropdown--selected-answer"],children:d.jsx(HE,{...e,onRemove:c})}):d.jsx($n,{...u,contentClassName:Jn["atom-top-ai-dropdown--text-field"],className:Jn["atom-top-ai-dropdown--text-container"],size:"sm",placeholder:"Search"}),r&&d.jsx(FE,{value:(e==null?void 0:e.type)==="url"?e==null?void 0:e.label:void 0,tooltip:i,selectAnswer:l}),t&&d.jsx(BE,{value:(e==null?void 0:e.type)==="phone"?e==null?void 0:e.label:void 0,tooltip:n,selectAnswer:l})]})}));ah.displayName="AtomTopAiDropdown";const lh={"atom-head-item-ai-dropdown":"_atom-head-item-ai-dropdown_10v1a_1","atom-head-item-ai-dropdown--header":"_atom-head-item-ai-dropdown--header_10v1a_7"},Gu=h.forwardRef((e,t)=>{const{label:n,onNew:r}=e;return d.jsx("div",{ref:t,className:lh["atom-head-item-ai-dropdown"],children:d.jsxs("div",{className:lh["atom-head-item-ai-dropdown--header"],children:[d.jsx(Ce,{fontWeight:"bold",size:"xs",children:n}),d.jsx(Ot,{variant:"text",color:"primary",size:"sm",startIcon:d.jsx(f7,{}),onClick:r,children:"New"})]})})});Gu.displayName="AtomHeadItemAiDropdown";const er={"atom-item-ai-dropdown--root":"_atom-item-ai-dropdown--root_1wqx4_1","atom-item-ai-dropdown--trigger":"_atom-item-ai-dropdown--trigger_1wqx4_14","atom-item-ai-dropdown--header":"_atom-item-ai-dropdown--header_1wqx4_35","atom-item-ai-dropdown--icon":"_atom-item-ai-dropdown--icon_1wqx4_39","atom-item-ai-dropdown--label":"_atom-item-ai-dropdown--label_1wqx4_56","atom-item-ai-dropdown--icon-closed":"_atom-item-ai-dropdown--icon-closed_1wqx4_60","atom-item-ai-dropdown--icon-opened":"_atom-item-ai-dropdown--icon-opened_1wqx4_61","atom-item-ai-dropdown--content":"_atom-item-ai-dropdown--content_1wqx4_65"},ms={"atom-item-tag-ai-dropdown--container":"_atom-item-tag-ai-dropdown--container_4lwl5_1","atom-item-tag-ai-dropdown--content":"_atom-item-tag-ai-dropdown--content_4lwl5_9","atom-item-tag-ai-dropdown--add-button":"_atom-item-tag-ai-dropdown--add-button_4lwl5_16","atom-item-tag-ai-dropdown--answers":"_atom-item-tag-ai-dropdown--answers_4lwl5_20","atom-item-tag-ai-dropdown--tag":"_atom-item-tag-ai-dropdown--tag_4lwl5_26"},UE=h.forwardRef(({id:e,label:t,selectAnswer:n},r)=>{const i=h.useCallback(()=>{n==null||n({intentId:e})},[e]);return d.jsx(Qn,{ref:r,label:t,closeIcon:!1,color:"sand",className:ms["atom-item-tag-ai-dropdown--tag"],onClick:i},e)}),ch=h.forwardRef(({answers:e,onAdd:t,selectAnswer:n},r)=>d.jsx("div",{ref:r,className:ms["atom-item-tag-ai-dropdown--container"],children:d.jsx("div",{className:ms["atom-item-tag-ai-dropdown--content"],children:d.jsxs("div",{className:ms["atom-item-tag-ai-dropdown--answers"],children:[d.jsx(st,{variant:"outlined",color:"sand",size:"sm",onClick:t,className:ms["atom-item-tag-ai-dropdown--add-button"],children:d.jsx(Jx,{color:"text--gray-700"})}),e==null?void 0:e.map(i=>d.jsx(UE,{...i,selectAnswer:n},i==null?void 0:i.id))]})})}));ch.displayName="AtomItemTagAiDropdown";const Hu=h.forwardRef(({answers:e,...t},n)=>e?d.jsx(dh,{ref:n,...t,answers:e}):d.jsx(uh,{ref:n,...t}));Hu.displayName="AtomItemAiDropdown";const uh=h.forwardRef(({id:e,label:t,fontWeight:n,selectAnswer:r},i)=>{const s=h.useCallback(()=>{r==null||r({intentId:e})},[e]);return d.jsx("div",{ref:i,className:er["atom-item-ai-dropdown--trigger"],onClick:s,children:d.jsx("span",{className:er["atom-item-ai-dropdown--label"],children:typeof t=="string"?d.jsx(Ce,{size:"sm",fontWeight:n,color:"gray-1000",children:t}):t})})});uh.displayName="AtomItemSingleAiDropdown";const dh=h.forwardRef(({id:e,draft:t,path:n,label:r,answers:i,fontWeight:s="regular",className:l,contentClassname:c,onNewAnswer:u,selectAnswer:p,hasSearch:m},g)=>{const v=h.useCallback(()=>{u==null||u(t,n)},[u,t,n]),[b,E]=h.useState([]);return h.useEffect(()=>{E(m?[e]:[])},[m,e]),d.jsx(qc,{type:"multiple",className:ae(er["atom-item-ai-dropdown--root"],l),value:b,onValueChange:E,children:d.jsxs(Yc,{value:e,children:[d.jsx(Zc,{className:er["atom-item-ai-dropdown--header"],children:d.jsx(Xc,{asChild:!0,children:d.jsxs("div",{className:er["atom-item-ai-dropdown--trigger"],children:[d.jsxs(st,{variant:"ghost",color:"primary",size:"xs",children:[d.jsx(X_,{className:ae(er["atom-item-ai-dropdown--icon"],er["atom-item-ai-dropdown--icon-opened"]),"aria-hidden":!0}),d.jsx(Y_,{className:ae(er["atom-item-ai-dropdown--icon"],er["atom-item-ai-dropdown--icon-closed"]),"aria-hidden":!0})]}),d.jsx("span",{className:er["atom-item-ai-dropdown--label"],children:typeof r=="string"?d.jsx(Ce,{size:"sm",fontWeight:s,color:"gray-1000",children:r}):r})]})})}),d.jsx(Kc,{ref:g,className:ae(er["atom-item-ai-dropdown--content"],c),children:d.jsx(ch,{answers:i,selectAnswer:p,onAdd:v})})]})})});dh.displayName="AtomItemFolderAiDropdown";const Uu={"atom-sub-ai-dropdown--trigger":"_atom-sub-ai-dropdown--trigger_j4p1d_1","atom-sub-ai-dropdown--label":"_atom-sub-ai-dropdown--label_j4p1d_26","atom-sub-ai-dropdown--chevron":"_atom-sub-ai-dropdown--chevron_j4p1d_33"},fh=h.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:i="gray-1000",children:s},l)=>{const[c,u]=h.useState(!1),p=h.useRef(),m=()=>{p.current=setTimeout(()=>{u(!1)},t)},g=()=>{p.current&&clearTimeout(p.current),u(!0)};return d.jsxs(ja,{open:c,children:[d.jsx(ka,{asChild:!0,children:d.jsx("div",{ref:l,className:Uu["atom-sub-ai-dropdown--trigger"],onMouseEnter:g,onMouseLeave:m,children:d.jsxs("div",{className:Uu["atom-sub-ai-dropdown--label"],children:[d.jsx(Ce,{size:n,fontWeight:r,color:i,children:e}),d.jsx(Nc,{className:Uu["atom-sub-ai-dropdown--chevron"]})]})})}),d.jsx(Fa,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:g,onMouseLeave:m,children:s})]})});fh.displayName="AtomItemAiDropdown";const tr={"ai-dropdown":"_ai-dropdown_wbkpw_1",header:"_header_wbkpw_14","main-container":"_main-container_wbkpw_21",container:"_container_wbkpw_26","inner-container":"_inner-container_wbkpw_27",open:"_open_wbkpw_34",url:"_url_wbkpw_38","url-full":"_url-full_wbkpw_45",trigger:"_trigger_wbkpw_49"},VE=({type:e,label:t})=>{if(e==="url"||e==="phone"){const n=(t==null?void 0:t.replace(/tel:\s*/,""))??"";return d.jsxs(La,{children:[d.jsx(hs,{children:d.jsx(Qn,{color:"sand",renderIcon:()=>t!=null&&t.includes("tel:")?d.jsx(ia,{}):d.jsx(a7,{}),label:(n==null?void 0:n.length)>26?`${n==null?void 0:n.slice(0,23)}...`:n,closeIcon:!1})}),d.jsx(ps,{isDark:!0,description:d.jsxs("a",{className:tr.url,href:t,target:"_blank",rel:"noreferrer",children:[t!=null&&t.includes("tel:")?d.jsx(ia,{}):d.jsx(oa,{}),d.jsx("span",{className:ae(tr["url-full"],"clamp-1"),children:n})]})})]})}return e==="variable"?d.jsx(Qn,{color:"sand",renderIcon:null,label:d.jsxs(d.Fragment,{children:[d.jsx("b",{children:"{{ "}),t,d.jsx("b",{children:" }}"})]}),closeIcon:!1}):d.jsx(Qn,{color:"sand",renderIcon:null,label:t,closeIcon:!1})};function ph(){return d.jsx(Ce,{size:"sm",color:"gray-900",children:"No contents yet"})}function hh({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,showVariables:s,selectAnswer:l,liveAnswers:c,draftAnswers:u,onNewLive:p,onNewDraft:m,onNewAnswer:g,variablesContent:v,searchProps:b,hasSearch:E,closeDelay:_}){const w=h.useCallback(()=>{l(null)},[l]);return d.jsxs("div",{className:tr["ai-dropdown"],children:[d.jsxs("div",{className:tr.header,children:[d.jsx(ah,{currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,selectAnswer:l,onRemove:w,...b}),s?d.jsx(fh,{closeDelay:_,label:"Variables",children:v}):null]}),d.jsx(Zr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"sm"}),d.jsxs(Du,{className:tr["main-container"],children:[d.jsxs("div",{className:tr.container,children:[d.jsx(Gu,{label:"LIVE",onNew:p}),d.jsx("div",{className:tr["inner-container"],children:(c==null?void 0:c.length)>0?c.map(y=>d.jsx(Hu,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:E},y==null?void 0:y.id)):d.jsx(ph,{})})]}),d.jsx(Zr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"lg"}),d.jsxs("div",{className:tr.container,children:[d.jsx(Gu,{label:"DRAFT",onNew:m}),d.jsx("div",{className:tr["inner-container"],children:(u==null?void 0:u.length)>0?u==null?void 0:u.map(y=>d.jsx(Hu,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:E},y==null?void 0:y.id)):d.jsx(ph,{})})]})]})]})}const vs=h.forwardRef(({disabled:e,align:t="start",onOpenChange:n,label:r="Choose Agent",broken:i=!1,liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:u,onNewAnswer:p,variablesContent:m,currentValue:g,showPhoneButton:v=!0,phoneTooltip:b="You can connect a phone number",showUrlButton:E=!0,urlTooltip:_="You can connect any link",showVariables:w=!0,selectAnswer:y,searchProps:S,hasSearch:T=!1,closeDelay:A},I)=>{const[M,R]=h.useState(!1),D=h.useCallback(()=>{R(!1)},[]);h.useImperativeHandle(I,()=>({close:D}));const k=h.useCallback(L=>{R(L),n==null||n(L)},[n]),Y=h.useCallback(L=>{y==null||y(L),(L==null?void 0:L.id)!==-1&&R(!1)},[y]);return d.jsxs(D0,{open:M,onOpenChange:k,children:[d.jsx(M0,{asChild:!0,disabled:e,children:g?d.jsx("button",{className:tr.trigger,children:d.jsx(VE,{...g})}):d.jsx(Ot,{size:"sm",color:i?"red":"sand",className:ae(M&&tr.open),startIcon:i?d.jsx(y7,{}):null,endIcon:M?d.jsx(Dx,{}):d.jsx(Tx,{}),children:i?"Missing Connection":r})}),d.jsx(P0,{align:t,sideOffset:5,children:d.jsx(hh,{liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:u,onNewAnswer:p,variablesContent:m,currentValue:g,showPhoneButton:v,phoneTooltip:b,showUrlButton:E,urlTooltip:_,showVariables:w,selectAnswer:Y,searchProps:S,hasSearch:T,closeDelay:A})})]})});vs.displayName="AiDropdown";const Pi={"avatar-bot":"_avatar-bot_1x2kl_1","avatar-bot--image-bg":"_avatar-bot--image-bg_1x2kl_18","avatar-bot--active":"_avatar-bot--active_1x2kl_27","avatar-bot--active-icon":"_avatar-bot--active-icon_1x2kl_31","avatar-bot--image":"_avatar-bot--image_1x2kl_18","avatar-bot--image-active":"_avatar-bot--image-active_1x2kl_43","avatar-bot--custom-icon":"_avatar-bot--custom-icon_1x2kl_51"},Vu=h.forwardRef((e,t)=>{const{icon:n,image:r,active:i,className:s,onClick:l}=e;return d.jsxs("div",{ref:t,onClick:l,className:ae(Pi["avatar-bot"],i&&Pi["avatar-bot--active"],r&&Pi["avatar-bot--image-bg"],s),children:[i?d.jsx(np,{width:"2.4rem",height:"2.4rem",className:Pi["avatar-bot--active-icon"]}):n&&d.jsx("span",{className:Pi["avatar-bot--custom-icon"],children:n}),r&&d.jsx("img",{src:r.url,alt:r.alt,className:ae(Pi["avatar-bot--image"],i&&Pi["avatar-bot--image-active"])})]})});Vu.displayName="AvatarBot";const Ba={avatar:"_avatar_u6yy9_1","avatar--size-md":"_avatar--size-md_u6yy9_15","avatar--size-sm":"_avatar--size-sm_u6yy9_23","avatar--size-xs":"_avatar--size-xs_u6yy9_31","avatar--size-xxs":"_avatar--size-xxs_u6yy9_39","avatar--disabled":"_avatar--disabled_u6yy9_47","avatar--badge":"_avatar--badge_u6yy9_51","avatar--badge-size-sm":"_avatar--badge-size-sm_u6yy9_62","avatar--image":"_avatar--image_u6yy9_67"},Wu={badge:"_badge_1y0vz_1","badge--size-sm":"_badge--size-sm_1y0vz_11","badge--green":"_badge--green_1y0vz_16","badge--red":"_badge--red_1y0vz_20"},qu=h.forwardRef((e,t)=>{const{small:n=!1,color:r,className:i}=e;return d.jsx("div",{ref:t,className:ae(Wu.badge,Wu[`badge--${r}`],n&&Wu["badge--size-sm"],i)})});qu.displayName="Badge";const gh=e=>{const[t,n]=e.split(" ");return t&&n?`${t.charAt(0)}${n.charAt(0)}`:t.charAt(0)},wo=h.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,disabled:s,badge:l,image:c,status:u,className:p,children:m,...g}=e,v=()=>c?d.jsx("img",{src:c.url,alt:c.alt,className:Ba["avatar--image"]}):n?m:d.jsx(He,{size:r,color:"white",children:gh(i??"")}),b=h.useMemo(()=>({backgroundColor:e.color}),[e.color]);return d.jsxs("div",{ref:t,style:b,className:ae(Ba.avatar,Ba[`avatar--size-${r}`],s&&Ba["avatar--disabled"],p),...g,children:[v(),l?d.jsx(qu,{color:u&&u==="online"?"green":"red",small:r==="xs"||r==="xxs"}):null]})});wo.displayName="Avatar";const Yu={"avatar-workspace":"_avatar-workspace_jxkxx_1","avatar-workspace--size-md":"_avatar-workspace--size-md_jxkxx_15","avatar-workspace--size-sm":"_avatar-workspace--size-sm_jxkxx_24","avatar-workspace--purple":"_avatar-workspace--purple_jxkxx_33","avatar-workspace--gray":"_avatar-workspace--gray_jxkxx_37"},mh=h.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,color:s="purple",className:l,children:c}=e;return d.jsx("div",{ref:t,className:ae(Yu["avatar-workspace"],Yu[`avatar-workspace--size-${r}`],Yu[`avatar--${s}`],l),children:n?c:d.jsx(He,{size:r,color:"white",children:gh(i)})})});mh.displayName="AvatarWorkspace";const Zu={editor:"_editor_183tc_9","editor-text-field":"_editor-text-field_183tc_16","icon-button-gray":"_icon-button-gray_183tc_24"},za=h.forwardRef((e,t)=>{const{initialLabel:n,onSaveLabel:r}=e,[i,s]=h.useState(n),[l,c]=h.useState(n),[u,p]=h.useState(!1),m=()=>{p(b=>!b)},g=b=>{c(b.target.value)},v=()=>{r&&l&&(s(l),r(l)),p(!1)};return d.jsx(d.Fragment,{children:u?d.jsxs("div",{className:Zu["editor-text-field"],ref:t,children:[d.jsx($n,{value:l,onChange:g,placeholder:"Change name...",size:"sm",variant:"filled"}),d.jsxs("div",{children:[d.jsx(st,{onClick:v,color:"green",size:"sm",variant:"ghost",children:d.jsx(Pc,{})}),d.jsx(st,{onClick:m,color:"red",size:"sm",variant:"ghost",children:d.jsx(jc,{})})]})]}):d.jsxs("div",{className:Zu.editor,ref:t,children:[d.jsx(Ce,{fontWeight:"bold",color:"black",size:"md",children:i}),d.jsx(st,{onClick:m,color:"primary",size:"xs",variant:"ghost",children:d.jsx(Kx,{className:Zu["icon-button-gray"]})})]})})});za.displayName="AtomNameDivBlockModule";const vh={"title-block-module":"_title-block-module_1v5qg_1","drag-icon":"_drag-icon_1v5qg_9"},Xu={"icon-button":"_icon-button_7unaa_1","icon-button--size-lg":"_icon-button--size-lg_7unaa_14","icon-button--size-md":"_icon-button--size-md_7unaa_19","icon-button--size-sm":"_icon-button--size-sm_7unaa_24","icon-button--children":"_icon-button--children_7unaa_29","icon-button--icon":"_icon-button--icon_7unaa_35","icon-button--message":"_icon-button--message_7unaa_40","icon-button--logic":"_icon-button--logic_7unaa_45","icon-button--utility":"_icon-button--utility_7unaa_50","icon-button--action":"_icon-button--action_7unaa_55"},bh={text:{icon:d.jsx(rp,{}),category:"message"},image:{icon:d.jsx(ap,{}),category:"message"},video:{icon:d.jsx(ep,{}),category:"message"},agent:{icon:d.jsx(Q0,{}),category:"message"},card:{icon:d.jsx(cp,{}),category:"message"},handover:{icon:d.jsx(sp,{}),category:"logic"},contact_request:{icon:d.jsx(Lc,{}),category:"logic"},quick_reply:{icon:d.jsx(tp,{}),category:"logic"},reroute:{icon:d.jsx(Rc,{}),category:"logic"},api:{icon:d.jsx(lp,{}),category:"logic"},capture:{icon:d.jsx(ip,{}),category:"logic"},set_values:{icon:d.jsx(op,{}),category:"logic"},condition:{icon:d.jsx(up,{}),category:"logic"},notes:{icon:d.jsx(c7,{}),category:"utility"},mail:{icon:d.jsx(Lc,{}),category:"action"}},_h=h.forwardRef((e,t)=>{const{size:n="md",block:r="text",className:i,...s}=e,l=bh[r].category,c=bh[r].icon;return d.jsx("div",{ref:t,className:ae(Xu["icon-button"],Xu[`icon-button--size-${n}`],Xu[`icon-button--${l}`],i),...s,children:c})}),WE={text:{label:"Text"},image:{label:"Image"},video:{label:"Video"},agent:{label:"Agent"},card:{label:"Card"},handover:{label:"Handover"},contact_request:{label:"Contact Request"},quick_reply:{label:"Quick Reply"},reroute:{label:"Reroute"},api:{label:"API"},capture:{label:"Capture"},set_values:{label:"Set Values"},condition:{label:"Condition"},notes:{label:"Notes"},mail:{label:"Mail"}},Ku=h.forwardRef((e,t)=>{const{block:n="text",...r}=e,i=WE[n].label;return d.jsxs("div",{className:vh["title-block-module"],ref:t,...r,children:[d.jsx(Rx,{className:vh["drag-icon"]}),d.jsx(_h,{block:n,size:"md"}),d.jsx(Ce,{size:"sm",children:i})]})});Ku.displayName="TitleBlockModule";const Qu={"atom-top-modulo":"_atom-top-modulo_vojtq_1","atom-top-modulo-button":"_atom-top-modulo-button_vojtq_11","atom-top-modulo-button-copy":"_atom-top-modulo-button-copy_vojtq_17"},Ju=h.forwardRef((e,t)=>{const{block:n="text",dragHandlerProps:r,isCollapsed:i,onDelete:s,onCopy:l,onCollapse:c,showCopy:u=!1,className:p}=e;return d.jsxs("div",{ref:t,className:ae(Qu["atom-top-modulo"],p),children:[d.jsx(Ku,{block:n,...r}),d.jsxs("div",{className:Qu["atom-top-modulo-button"],children:[u?d.jsx(Ot,{color:"primary",size:"sm",startIcon:d.jsx(yx,{className:Qu["atom-top-modulo-button-copy"]}),variant:"text",onClick:l,children:"Copy"}):null,d.jsx(Ot,{color:"primary",size:"sm",variant:"outlined",startIcon:i?d.jsx(U_,{}):d.jsx(D_,{}),onClick:c,children:i?"Expand":"Collapse"}),d.jsx(st,{onClick:()=>{s()},variant:"ghost",children:d.jsx(Ru,{})})]})]})});Ju.displayName="AtomTopModulo";var xh={exports:{}};/*!
|
|
68
|
+
Copyright (c) 2018 Jed Watson.
|
|
69
|
+
Licensed under the MIT License (MIT), see
|
|
70
|
+
http://jedwatson.github.io/classnames
|
|
71
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,r(c)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(xh);var qE=xh.exports;const YE=Oc(qE),yo={block:"_block_b4jhb_1","is-dragging":"_is-dragging_b4jhb_6","block-children":"_block-children_b4jhb_11","block-collapse":"_block-collapse_b4jhb_20","block-is-dragging":"_block-is-dragging_b4jhb_25"},oi=h.forwardRef((e,t)=>{const{id:n,type:r,children:i,className:s,bodyClassName:l,isDragging:c,insertPosition:u,dragOverlay:p,dragListeners:m,dragAttributes:g,setDraggableNodeRef:v,headerClassName:b,onCopyBlock:E,onDeleteBlock:_,isCollapsed:w,...y}=e,S=h.useRef(null),T=h.useCallback(D=>{S.current=D,typeof t=="function"?t(D):t!=null&&t.current&&(t.current=D)},[t]),[A,I]=h.useState(w);h.useEffect(()=>{w!==A&&I(w)},[w]);const M=()=>{I(!A)},R={...m,...g};return d.jsxs("div",{ref:T,tabIndex:-1,className:YE(yo.block,c&&yo["is-dragging"],!c&&u,s),"data-testid":`block-${n}`,"data-id":n,"data-block-type":r,children:[d.jsx(Ju,{ref:v,className:ae({[yo["block-collapse"]]:A},{[yo["block-is-dragging"]]:c}),isCollapsed:A,onCollapse:M,onCopy:E,onDelete:_,isDragging:c,dragHandlerProps:R,...y}),p?null:d.jsx(d.Fragment,{children:A?null:d.jsx("div",{className:ae(yo["block-children"],{[yo["block-is-dragging"]]:c},l),children:i})})]},n)});oi.displayName="Block";const Ga={breadcrumb:"_breadcrumb_1685c_1","breadcrumb--list-item":"_breadcrumb--list-item_1685c_9","breadcrumb--link":"_breadcrumb--link_1685c_14","breadcrumb--separator":"_breadcrumb--separator_1685c_18"},Eh=h.forwardRef((e,t)=>{const{items:n,separator:r,className:i}=e,s=n.map((l,c)=>{const u=c+1===n.length;return d.jsxs("li",{onClick:l.onClick,className:ae(Ga["breadcrumb--list-item"],l.className),children:[d.jsx("a",{href:l.href,className:Ga["breadcrumb--link"],children:typeof l.title=="string"?d.jsx(Ce,{size:"xs",color:"gray-1000",children:l.title}):l.title}),!u&&d.jsx("span",{className:Ga["breadcrumb--separator"],children:r?d.jsx(Ce,{size:"xs",color:"gray-700",children:r}):d.jsx(Nc,{className:"text--gray-700"})})]},c)});return d.jsx("ul",{ref:t,className:ae(Ga.breadcrumb,i),children:s})});Eh.displayName="Breadcrumb";const bn={"builder-block-toolbar--container":"_builder-block-toolbar--container_1td2q_1","hide-toolbar":"_hide-toolbar_1td2q_17",hideToolbar:"_hideToolbar_1td2q_1","show-toolbar":"_show-toolbar_1td2q_21",showToolbar:"_showToolbar_1td2q_1","builder-block-toolbar--header":"_builder-block-toolbar--header_1td2q_57","builder-block-toolbar--input":"_builder-block-toolbar--input_1td2q_63","builder-block-toolbar--block-container":"_builder-block-toolbar--block-container_1td2q_67","builder-block-toolbar--sections":"_builder-block-toolbar--sections_1td2q_75","builder-block-toolbar--block":"_builder-block-toolbar--block_1td2q_67","builder-block-toolbar--block-dragging":"_builder-block-toolbar--block-dragging_1td2q_103","builder-block-toolbar--block-icon":"_builder-block-toolbar--block-icon_1td2q_113","builder-block-toolbar--block-icon-message":"_builder-block-toolbar--block-icon-message_1td2q_123","builder-block-toolbar--block-icon-logic":"_builder-block-toolbar--block-icon-logic_1td2q_128","builder-block-toolbar-block-label":"_builder-block-toolbar-block-label_1td2q_133"},ed={"quality-metric-icon":"_quality-metric-icon_1tcq8_1","quality-metric-icon--green":"_quality-metric-icon--green_1tcq8_10","quality-metric-icon--red":"_quality-metric-icon--red_1tcq8_14","quality-metric-icon--yellow":"_quality-metric-icon--yellow_1tcq8_18","quality-metric-icon--gray":"_quality-metric-icon--gray_1tcq8_22","filled--green":"_filled--green_1tcq8_26","filled--red":"_filled--red_1tcq8_30","filled--yellow":"_filled--yellow_1tcq8_34","filled--gray":"_filled--gray_1tcq8_38"},Ha=h.forwardRef((e,t)=>{const{color:n,filled:r,className:i,...s}=e;return d.jsx("div",{ref:t,className:ae(ed["quality-metric-icon"],ed[`quality-metric-icon--${n}`],r&&ed[`filled--${n}`],i),...s})});Ha.displayName="QualityMetricIcon";const Ua=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Co(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function td(e){return"nodeType"in e}function Ut(e){var t,n;return e?Co(e)?e:td(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function nd(e){const{Document:t}=Ut(e);return e instanceof t}function bs(e){return Co(e)?!1:e instanceof Ut(e).HTMLElement}function ZE(e){return e instanceof Ut(e).SVGElement}function To(e){return e?Co(e)?e.document:td(e)?nd(e)?e:bs(e)?e.ownerDocument:document:document:document}const Ir=Ua?h.useLayoutEffect:h.useEffect;function Va(e){const t=h.useRef(e);return Ir(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function XE(){const e=h.useRef(null),t=h.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function rd(e,t){t===void 0&&(t=[e]);const n=h.useRef(e);return Ir(()=>{n.current!==e&&(n.current=e)},t),n}function _s(e,t){const n=h.useRef();return h.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function id(e){const t=Va(e),n=h.useRef(null),r=h.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function Wa(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let od={};function sd(e,t){return h.useMemo(()=>{if(t)return t;const n=od[e]==null?0:od[e]+1;return od[e]=n,e+"-"+n},[e,t])}function wh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((s,l)=>{const c=Object.entries(l);for(const[u,p]of c){const m=s[u];m!=null&&(s[u]=m+e*p)}return s},{...t})}}const So=wh(1),qa=wh(-1);function KE(e){return"clientX"in e&&"clientY"in e}function ad(e){if(!e)return!1;const{KeyboardEvent:t}=Ut(e.target);return t&&e instanceof t}function QE(e){if(!e)return!1;const{TouchEvent:t}=Ut(e.target);return t&&e instanceof t}function Ya(e){if(QE(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return KE(e)?{x:e.clientX,y:e.clientY}:null}const xs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[xs.Translate.toString(e),xs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),yh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function JE(e){return e.matches(yh)?e:e.querySelector(yh)}const ew={display:"none"};function tw(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:ew},n)}const nw={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function rw(e){let{id:t,announcement:n}=e;return h.createElement("div",{id:t,style:nw,role:"status","aria-live":"assertive","aria-atomic":!0},n)}function iw(){const[e,t]=h.useState("");return{announce:h.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Ch=h.createContext(null);function Th(e){const t=h.useContext(Ch);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function ow(){const[e]=h.useState(()=>new Set),t=h.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[h.useCallback(r=>{let{type:i,event:s}=r;e.forEach(l=>{var c;return(c=l[i])==null?void 0:c.call(l,s)})},[e]),t]}const sw={draggable:`
|
|
68
72
|
To pick up a draggable item, press the space bar.
|
|
69
73
|
While dragging, use the arrow keys to move the item.
|
|
70
74
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
71
|
-
`},tw={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function nw(e){let{announcements:t=tw,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=ew}=e;const{announce:s,announcement:l}=QE(),c=su("DndLiveRegion"),[d,p]=h.useState(!1);if(h.useEffect(()=>{p(!0)},[]),Ch(h.useMemo(()=>({onDragStart(g){let{active:v}=g;s(t.onDragStart({active:v}))},onDragMove(g){let{active:v,over:b}=g;t.onDragMove&&s(t.onDragMove({active:v,over:b}))},onDragOver(g){let{active:v,over:b}=g;s(t.onDragOver({active:v,over:b}))},onDragEnd(g){let{active:v,over:b}=g;s(t.onDragEnd({active:v,over:b}))},onDragCancel(g){let{active:v,over:b}=g;s(t.onDragCancel({active:v,over:b}))}}),[s,t])),!d)return null;const m=h.createElement(h.Fragment,null,h.createElement(ZE,{id:r,value:o.draggable}),h.createElement(KE,{id:c,announcement:l}));return n?On.createPortal(m,n):m}var Bt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Bt||(Bt={}));function Xa(){}const rr=Object.freeze({x:0,y:0});function rw(e,t){const n=Za(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function iw(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ow(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function sw(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=o-r,c=s-n;if(r<o&&n<s){const d=t.width*t.height,p=e.width*e.height,m=l*c,g=m/(d+p-m);return Number(g.toFixed(4))}return 0}const aw=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const d=sw(c,t);d>0&&o.push({id:l,data:{droppableContainer:s,value:d}})}}return o.sort(iw)};function lw(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Th(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:rr}function cw(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const dw=cw(1);function Sh(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function uw(e,t,n){const r=Sh(t);if(!r)return e;const{scaleX:o,scaleY:s,x:l,y:c}=r,d=e.left-l-(1-o)*parseFloat(n),p=e.top-c-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),m=o?e.width/o:e.width,g=s?e.height/s:e.height;return{width:m,height:g,top:p,right:d+m,bottom:p+g,left:d}}const fw={ignoreTransform:!1};function ws(e,t){t===void 0&&(t=fw);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:p,transformOrigin:m}=Vt(e).getComputedStyle(e);p&&(n=uw(n,p,m))}const{top:r,left:o,width:s,height:l,bottom:c,right:d}=n;return{top:r,left:o,width:s,height:l,bottom:c,right:d}}function Ih(e){return ws(e,{ignoreTransform:!0})}function pw(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function hw(e,t){return t===void 0&&(t=Vt(e).getComputedStyle(e)),t.position==="fixed"}function gw(e,t){t===void 0&&(t=Vt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=t[o];return typeof s=="string"?n.test(s):!1})}function lu(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(nu(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!_s(o)||UE(o)||n.includes(o))return n;const s=Vt(e).getComputedStyle(o);return o!==e&&gw(o,s)&&n.push(o),hw(o,s)?n:r(o.parentNode)}return e?r(e):n}function Ah(e){const[t]=lu(e,1);return t??null}function cu(e){return!Va||!e?null:yo(e)?e:tu(e)?nu(e)||e===Co(e).scrollingElement?window:_s(e)?e:null:null}function Oh(e){return yo(e)?e.scrollX:e.scrollLeft}function $h(e){return yo(e)?e.scrollY:e.scrollTop}function du(e){return{x:Oh(e),y:$h(e)}}var Ot;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ot||(Ot={}));function Dh(e){return!Va||!e?!1:e===document.scrollingElement}function Mh(e){const t={x:0,y:0},n=Dh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:o,isLeft:s,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const mw={x:.2,y:.2};function vw(e,t,n,r,o){let{top:s,left:l,right:c,bottom:d}=n;r===void 0&&(r=10),o===void 0&&(o=mw);const{isTop:p,isBottom:m,isLeft:g,isRight:v}=Mh(e),b={x:0,y:0},E={x:0,y:0},_={height:t.height*o.y,width:t.width*o.x};return!p&&s<=t.top+_.height?(b.y=Ot.Backward,E.y=r*Math.abs((t.top+_.height-s)/_.height)):!m&&d>=t.bottom-_.height&&(b.y=Ot.Forward,E.y=r*Math.abs((t.bottom-_.height-d)/_.height)),!v&&c>=t.right-_.width?(b.x=Ot.Forward,E.x=r*Math.abs((t.right-_.width-c)/_.width)):!g&&l<=t.left+_.width&&(b.x=Ot.Backward,E.x=r*Math.abs((t.left+_.width-l)/_.width)),{direction:b,speed:E}}function bw(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Ph(e){return e.reduce((t,n)=>To(t,du(n)),rr)}function _w(e){return e.reduce((t,n)=>t+Oh(n),0)}function xw(e){return e.reduce((t,n)=>t+$h(n),0)}function Rh(e,t){if(t===void 0&&(t=ws),!e)return;const{top:n,left:r,bottom:o,right:s}=t(e);Ah(e)&&(o<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ew=[["x",["left","right"],_w],["y",["top","bottom"],xw]];class uu{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=lu(n),o=Ph(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,c]of Ew)for(const d of l)Object.defineProperty(this,d,{get:()=>{const p=c(r),m=o[s]-p;return this.rect[d]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ys{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function ww(e){const{EventTarget:t}=Vt(e);return e instanceof t?e:Co(e)}function fu(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Pn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Pn||(Pn={}));function Nh(e){e.preventDefault()}function yw(e){e.stopPropagation()}var nt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(nt||(nt={}));const Lh={start:[nt.Space,nt.Enter],cancel:[nt.Esc],end:[nt.Space,nt.Enter]},Cw=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case nt.Right:return{...n,x:n.x+25};case nt.Left:return{...n,x:n.x-25};case nt.Down:return{...n,y:n.y+25};case nt.Up:return{...n,y:n.y-25}}};class jh{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ys(Co(n)),this.windowListeners=new ys(Vt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Pn.Resize,this.handleCancel),this.windowListeners.add(Pn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Pn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Rh(r),n(rr)}handleKeyDown(t){if(au(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:s=Lh,coordinateGetter:l=Cw,scrollBehavior:c="smooth"}=o,{code:d}=t;if(s.end.includes(d)){this.handleEnd(t);return}if(s.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:p}=r.current,m=p?{x:p.left,y:p.top}:rr;this.referenceCoordinates||(this.referenceCoordinates=m);const g=l(t,{active:n,context:r.current,currentCoordinates:m});if(g){const v=Ya(g,m),b={x:0,y:0},{scrollableAncestors:E}=r.current;for(const _ of E){const w=t.code,{isTop:y,isRight:S,isLeft:T,isBottom:O,maxScroll:I,minScroll:M}=Mh(_),R=bw(_),D={x:Math.min(w===nt.Right?R.right-R.width/2:R.right,Math.max(w===nt.Right?R.left:R.left+R.width/2,g.x)),y:Math.min(w===nt.Down?R.bottom-R.height/2:R.bottom,Math.max(w===nt.Down?R.top:R.top+R.height/2,g.y))},k=w===nt.Right&&!S||w===nt.Left&&!T,q=w===nt.Down&&!O||w===nt.Up&&!y;if(k&&D.x!==g.x){const L=_.scrollLeft+v.x,U=w===nt.Right&&L<=I.x||w===nt.Left&&L>=M.x;if(U&&!v.y){_.scrollTo({left:L,behavior:c});return}U?b.x=_.scrollLeft-L:b.x=w===nt.Right?_.scrollLeft-I.x:_.scrollLeft-M.x,b.x&&_.scrollBy({left:-b.x,behavior:c});break}else if(q&&D.y!==g.y){const L=_.scrollTop+v.y,U=w===nt.Down&&L<=I.y||w===nt.Up&&L>=M.y;if(U&&!v.x){_.scrollTo({top:L,behavior:c});return}U?b.y=_.scrollTop-L:b.y=w===nt.Down?_.scrollTop-I.y:_.scrollTop-M.y,b.y&&_.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(t,To(Ya(g,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}jh.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Lh,onActivation:o}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=s.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function kh(e){return!!(e&&"distance"in e)}function Fh(e){return!!(e&&"delay"in e)}class pu{constructor(t,n,r){var o;r===void 0&&(r=ww(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=Co(l),this.documentListeners=new ys(this.document),this.listeners=new ys(r),this.windowListeners=new ys(Vt(l)),this.initialCoordinates=(o=Za(s))!=null?o:rr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Pn.Resize,this.handleCancel),this.windowListeners.add(Pn.DragStart,Nh),this.windowListeners.add(Pn.VisibilityChange,this.handleCancel),this.windowListeners.add(Pn.ContextMenu,Nh),this.documentListeners.add(Pn.Keydown,this.handleKeydown),n){if(kh(n))return;if(Fh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Pn.Click,yw,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Pn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:s}=this,{onMove:l,options:{activationConstraint:c}}=s;if(!o)return;const d=(n=Za(t))!=null?n:rr,p=Ya(o,d);if(!r&&c){if(Fh(c))return fu(p,c.tolerance)?this.handleCancel():void 0;if(kh(c))return c.tolerance!=null&&fu(p,c.tolerance)?this.handleCancel():fu(p,c.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),l(d)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===nt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Tw={move:{name:"pointermove"},end:{name:"pointerup"}};class Bh extends pu{constructor(t){const{event:n}=t,r=Co(n.target);super(t,Tw,r)}}Bh.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Sw={move:{name:"mousemove"},end:{name:"mouseup"}};var hu;(function(e){e[e.RightClick=2]="RightClick"})(hu||(hu={}));class Iw extends pu{constructor(t){super(t,Sw,Co(t.event.target))}}Iw.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===hu.RightClick?!1:(r==null||r({event:n}),!0)}}];const gu={move:{name:"touchmove"},end:{name:"touchend"}};class Aw extends pu{constructor(t){super(t,gu)}static setup(){return window.addEventListener(gu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(gu.move.name,t)};function t(){}}}Aw.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Cs;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Cs||(Cs={}));var Ka;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ka||(Ka={}));function Ow(e){let{acceleration:t,activator:n=Cs.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:l=5,order:c=Ka.TreeOrder,pointerCoordinates:d,scrollableAncestors:p,scrollableAncestorRects:m,delta:g,threshold:v}=e;const b=Dw({delta:g,disabled:!s}),[E,_]=HE(),w=h.useRef({x:0,y:0}),y=h.useRef({x:0,y:0}),S=h.useMemo(()=>{switch(n){case Cs.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case Cs.DraggableRect:return o}},[n,o,d]),T=h.useRef(null),O=h.useCallback(()=>{const M=T.current;if(!M)return;const R=w.current.x*y.current.x,D=w.current.y*y.current.y;M.scrollBy(R,D)},[]),I=h.useMemo(()=>c===Ka.TreeOrder?[...p].reverse():p,[c,p]);h.useEffect(()=>{if(!s||!p.length||!S){_();return}for(const M of I){if((r==null?void 0:r(M))===!1)continue;const R=p.indexOf(M),D=m[R];if(!D)continue;const{direction:k,speed:q}=vw(M,D,S,t,v);for(const L of["x","y"])b[L][k[L]]||(q[L]=0,k[L]=0);if(q.x>0||q.y>0){_(),T.current=M,E(O,l),w.current=q,y.current=k;return}}w.current={x:0,y:0},y.current={x:0,y:0},_()},[t,O,r,_,s,l,JSON.stringify(S),JSON.stringify(b),E,p,I,m,JSON.stringify(v)])}const $w={x:{[Ot.Backward]:!1,[Ot.Forward]:!1},y:{[Ot.Backward]:!1,[Ot.Forward]:!1}};function Dw(e){let{delta:t,disabled:n}=e;const r=qa(t);return xs(o=>{if(n||!r||!o)return $w;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ot.Backward]:o.x[Ot.Backward]||s.x===-1,[Ot.Forward]:o.x[Ot.Forward]||s.x===1},y:{[Ot.Backward]:o.y[Ot.Backward]||s.y===-1,[Ot.Forward]:o.y[Ot.Forward]||s.y===1}}},[n,t,r])}function Mw(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return xs(o=>{var s;return t===null?null:(s=r??o)!=null?s:null},[r,t])}function Pw(e,t){return h.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,s=o.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var Ts;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ts||(Ts={}));var mu;(function(e){e.Optimized="optimized"})(mu||(mu={}));const zh=new Map;function Rw(e,t){let{dragging:n,dependencies:r,config:o}=t;const[s,l]=h.useState(null),{frequency:c,measure:d,strategy:p}=o,m=h.useRef(e),g=w(),v=ru(g),b=h.useCallback(function(y){y===void 0&&(y=[]),!v.current&&l(S=>S===null?y:S.concat(y.filter(T=>!S.includes(T))))},[v]),E=h.useRef(null),_=xs(y=>{if(g&&!n)return zh;if(!y||y===zh||m.current!==e||s!=null){const S=new Map;for(let T of e){if(!T)continue;if(s&&s.length>0&&!s.includes(T.id)&&T.rect.current){S.set(T.id,T.rect.current);continue}const O=T.node.current,I=O?new uu(d(O),O):null;T.rect.current=I,I&&S.set(T.id,I)}return S}return y},[e,s,n,g,d]);return h.useEffect(()=>{m.current=e},[e]),h.useEffect(()=>{g||b()},[n,g]),h.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),h.useEffect(()=>{g||typeof c!="number"||E.current!==null||(E.current=setTimeout(()=>{b(),E.current=null},c))},[c,g,b,...r]),{droppableRects:_,measureDroppableContainers:b,measuringScheduled:s!=null};function w(){switch(p){case Ts.Always:return!1;case Ts.BeforeDragging:return n;default:return!n}}}function vu(e,t){return xs(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Nw(e,t){return vu(e,t)}function Lw(e){let{callback:t,disabled:n}=e;const r=Wa(t),o=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return h.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function bu(e){let{callback:t,disabled:n}=e;const r=Wa(t),o=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return h.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function jw(e){return new uu(ws(e),e)}function Gh(e,t,n){t===void 0&&(t=jw);const[r,o]=h.useReducer(c,null),s=Lw({callback(d){if(e)for(const p of d){const{type:m,target:g}=p;if(m==="childList"&&g instanceof HTMLElement&&g.contains(e)){o();break}}}}),l=bu({callback:o});return Ir(()=>{o(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),r;function c(d){if(!e)return null;if(e.isConnected===!1){var p;return(p=d??n)!=null?p:null}const m=t(e);return JSON.stringify(d)===JSON.stringify(m)?d:m}}function kw(e){const t=vu(e);return Th(e,t)}const Uh=[];function Fw(e){const t=h.useRef(e),n=xs(r=>e?r&&r!==Uh&&e&&t.current&&e.parentNode===t.current.parentNode?r:lu(e):Uh,[e]);return h.useEffect(()=>{t.current=e},[e]),n}function Bw(e){const[t,n]=h.useState(null),r=h.useRef(e),o=h.useCallback(s=>{const l=cu(s.target);l&&n(c=>c?(c.set(l,du(l)),new Map(c)):null)},[]);return h.useEffect(()=>{const s=r.current;if(e!==s){l(s);const c=e.map(d=>{const p=cu(d);return p?(p.addEventListener("scroll",o,{passive:!0}),[p,du(p)]):null}).filter(d=>d!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(s)};function l(c){c.forEach(d=>{const p=cu(d);p==null||p.removeEventListener("scroll",o)})}},[o,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>To(s,l),rr):Ph(e):rr,[e,t])}function Hh(e,t){t===void 0&&(t=[]);const n=h.useRef(null);return h.useEffect(()=>{n.current=null},t),h.useEffect(()=>{const r=e!==rr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ya(e,n.current):rr}function zw(e){h.useEffect(()=>{if(!Va)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Gw(e,t){return h.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:s}=r;return n[o]=l=>{s(l,t)},n},{}),[e,t])}function Vh(e){return h.useMemo(()=>e?pw(e):null,[e])}const _u=[];function Uw(e,t){t===void 0&&(t=ws);const[n]=e,r=Vh(n?Vt(n):null),[o,s]=h.useReducer(c,_u),l=bu({callback:s});return e.length>0&&o===_u&&s(),Ir(()=>{e.length?e.forEach(d=>l==null?void 0:l.observe(d)):(l==null||l.disconnect(),s())},[e]),o;function c(){return e.length?e.map(d=>Dh(d)?r:new uu(t(d),d)):_u}}function Wh(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return _s(t)?t:e}function Hw(e){let{measure:t}=e;const[n,r]=h.useState(null),o=h.useCallback(p=>{for(const{target:m}of p)if(_s(m)){r(g=>{const v=t(m);return g?{...g,width:v.width,height:v.height}:v});break}},[t]),s=bu({callback:o}),l=h.useCallback(p=>{const m=Wh(p);s==null||s.disconnect(),m&&(s==null||s.observe(m)),r(m?t(m):null)},[t,s]),[c,d]=iu(l);return h.useMemo(()=>({nodeRef:c,rect:n,setRef:d}),[n,c,d])}const Vw=[{sensor:Bh,options:{}},{sensor:jh,options:{}}],Ww={current:{}},Qa={draggable:{measure:Ih},droppable:{measure:Ih,strategy:Ts.WhileDragging,frequency:mu.Optimized},dragOverlay:{measure:ws}};class Ss extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const qw={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ss,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Xa},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Qa,measureDroppableContainers:Xa,windowRect:null,measuringScheduled:!1},qh={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Xa,draggableNodes:new Map,over:null,measureDroppableContainers:Xa},Ja=h.createContext(qh),Yh=h.createContext(qw);function Yw(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ss}}}function Zw(e,t){switch(t.type){case Bt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Bt.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Bt.DragEnd:case Bt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Bt.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ss(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Bt.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new Ss(e.droppable.containers);return l.set(n,{...s,disabled:o}),{...e,droppable:{...e.droppable,containers:l}}}case Bt.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Ss(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function Xw(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=h.useContext(Ja),s=qa(r),l=qa(n==null?void 0:n.id);return h.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!au(s)||document.activeElement===s.target)return;const c=o.get(l);if(!c)return;const{activatorNode:d,node:p}=c;if(!d.current&&!p.current)return;requestAnimationFrame(()=>{for(const m of[d.current,p.current]){if(!m)continue;const g=qE(m);if(g){g.focus();break}}})}},[r,t,o,l,s]),null}function Zh(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,s)=>s({transform:o,...r}),n):n}function Kw(e){return h.useMemo(()=>({draggable:{...Qa.draggable,...e==null?void 0:e.draggable},droppable:{...Qa.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Qa.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Qw(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const s=h.useRef(!1),{x:l,y:c}=typeof o=="boolean"?{x:o,y:o}:o;Ir(()=>{if(!l&&!c||!t){s.current=!1;return}if(s.current||!r)return;const p=t==null?void 0:t.node.current;if(!p||p.isConnected===!1)return;const m=n(p),g=Th(m,r);if(l||(g.x=0),c||(g.y=0),s.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const v=Ah(p);v&&v.scrollBy({top:g.y,left:g.x})}},[t,l,c,r,n])}const el=h.createContext({...rr,scaleX:1,scaleY:1});var oi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(oi||(oi={}));const Jw=h.memo(function(t){var n,r,o,s;let{id:l,accessibility:c,autoScroll:d=!0,children:p,sensors:m=Vw,collisionDetection:g=aw,measuring:v,modifiers:b,...E}=t;const _=h.useReducer(Zw,void 0,Yw),[w,y]=_,[S,T]=JE(),[O,I]=h.useState(oi.Uninitialized),M=O===oi.Initialized,{draggable:{active:R,nodes:D,translate:k},droppable:{containers:q}}=w,L=R?D.get(R):null,U=h.useRef({initial:null,translated:null}),X=h.useMemo(()=>{var ft;return R!=null?{id:R,data:(ft=L==null?void 0:L.data)!=null?ft:Ww,rect:U}:null},[R,L]),N=h.useRef(null),[K,B]=h.useState(null),[V,Q]=h.useState(null),W=ru(E,Object.values(E)),G=su("DndDescribedBy",l),Y=h.useMemo(()=>q.getEnabled(),[q]),de=Kw(v),{droppableRects:ue,measureDroppableContainers:fe,measuringScheduled:we}=Rw(Y,{dragging:M,dependencies:[k.x,k.y],config:de.droppable}),ne=Mw(D,R),le=h.useMemo(()=>V?Za(V):null,[V]),me=zo(),_e=Nw(ne,de.draggable.measure);Qw({activeNode:R?D.get(R):null,config:me.layoutShiftCompensation,initialRect:_e,measure:de.draggable.measure});const pe=Gh(ne,de.draggable.measure,_e),qe=Gh(ne?ne.parentElement:null),ce=h.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:ue,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),bt=q.getNodeFor((n=ce.current.over)==null?void 0:n.id),Ke=Hw({measure:de.dragOverlay.measure}),wt=(r=Ke.nodeRef.current)!=null?r:ne,En=M?(o=Ke.rect)!=null?o:pe:null,Nt=!!(Ke.nodeRef.current&&Ke.rect),kn=kw(Nt?null:pe),Rr=Vh(wt?Vt(wt):null),it=Fw(M?bt??ne:null),yt=Uw(it),Fn=Zh(b,{transform:{x:k.x-kn.x,y:k.y-kn.y,scaleX:1,scaleY:1},activatorEvent:V,active:X,activeNodeRect:pe,containerNodeRect:qe,draggingNodeRect:En,over:ce.current.over,overlayNodeRect:Ke.rect,scrollableAncestors:it,scrollableAncestorRects:yt,windowRect:Rr}),xr=le?To(le,k):null,Qi=Bw(it),lr=Hh(Qi),Bs=Hh(Qi,[pe]),ln=To(Fn,lr),Kt=En?dw(En,Fn):null,cr=X&&Kt?g({active:X,collisionRect:Kt,droppableRects:ue,droppableContainers:Y,pointerCoordinates:xr}):null,hi=ow(cr,"id"),[cn,gi]=h.useState(null),Nr=Nt?Fn:To(Fn,Bs),mi=lw(Nr,(s=cn==null?void 0:cn.rect)!=null?s:null,pe),wn=h.useCallback((ft,Tt)=>{let{sensor:Mt,options:Bn}=Tt;if(N.current==null)return;const zt=D.get(N.current);if(!zt)return;const Gt=ft.nativeEvent,Qt=new Mt({active:N.current,activeNode:zt,event:Gt,options:Bn,context:ce,onStart(Jt){const jr=N.current;if(jr==null)return;const j=D.get(jr);if(!j)return;const{onDragStart:ae}=W.current,he={active:{id:jr,data:j.data,rect:U}};On.unstable_batchedUpdates(()=>{ae==null||ae(he),I(oi.Initializing),y({type:Bt.DragStart,initialCoordinates:Jt,active:jr}),S({type:"onDragStart",event:he})})},onMove(Jt){y({type:Bt.DragMove,coordinates:Jt})},onEnd:wr(Bt.DragEnd),onCancel:wr(Bt.DragCancel)});On.unstable_batchedUpdates(()=>{B(Qt),Q(ft.nativeEvent)});function wr(Jt){return async function(){const{active:j,collisions:ae,over:he,scrollAdjustedTranslate:Te}=ce.current;let Ue=null;if(j&&Te){const{cancelDrop:Be}=W.current;Ue={activatorEvent:Gt,active:j,collisions:ae,delta:Te,over:he},Jt===Bt.DragEnd&&typeof Be=="function"&&await Promise.resolve(Be(Ue))&&(Jt=Bt.DragCancel)}N.current=null,On.unstable_batchedUpdates(()=>{y({type:Jt}),I(oi.Uninitialized),gi(null),B(null),Q(null);const Be=Jt===Bt.DragEnd?"onDragEnd":"onDragCancel";if(Ue){const Ne=W.current[Be];Ne==null||Ne(Ue),S({type:Be,event:Ue})}})}}},[D]),Lr=h.useCallback((ft,Tt)=>(Mt,Bn)=>{const zt=Mt.nativeEvent,Gt=D.get(Bn);if(N.current!==null||!Gt||zt.dndKit||zt.defaultPrevented)return;const Qt={active:Gt};ft(Mt,Tt.options,Qt)===!0&&(zt.dndKit={capturedBy:Tt.sensor},N.current=Bn,wn(Mt,Tt))},[D,wn]),Er=Pw(m,Lr);zw(m),Ir(()=>{pe&&O===oi.Initializing&&I(oi.Initialized)},[pe,O]),h.useEffect(()=>{const{onDragMove:ft}=W.current,{active:Tt,activatorEvent:Mt,collisions:Bn,over:zt}=ce.current;if(!Tt||!Mt)return;const Gt={active:Tt,activatorEvent:Mt,collisions:Bn,delta:{x:ln.x,y:ln.y},over:zt};On.unstable_batchedUpdates(()=>{ft==null||ft(Gt),S({type:"onDragMove",event:Gt})})},[ln.x,ln.y]),h.useEffect(()=>{const{active:ft,activatorEvent:Tt,collisions:Mt,droppableContainers:Bn,scrollAdjustedTranslate:zt}=ce.current;if(!ft||N.current==null||!Tt||!zt)return;const{onDragOver:Gt}=W.current,Qt=Bn.get(hi),wr=Qt&&Qt.rect.current?{id:Qt.id,rect:Qt.rect.current,data:Qt.data,disabled:Qt.disabled}:null,Jt={active:ft,activatorEvent:Tt,collisions:Mt,delta:{x:zt.x,y:zt.y},over:wr};On.unstable_batchedUpdates(()=>{gi(wr),Gt==null||Gt(Jt),S({type:"onDragOver",event:Jt})})},[hi]),Ir(()=>{ce.current={activatorEvent:V,active:X,activeNode:ne,collisionRect:Kt,collisions:cr,droppableRects:ue,draggableNodes:D,draggingNode:wt,draggingNodeRect:En,droppableContainers:q,over:cn,scrollableAncestors:it,scrollAdjustedTranslate:ln},U.current={initial:En,translated:Kt}},[X,ne,cr,Kt,D,wt,En,ue,q,cn,it,ln]),Ow({...me,delta:k,draggingRect:Kt,pointerCoordinates:xr,scrollableAncestors:it,scrollableAncestorRects:yt});const Bo=h.useMemo(()=>({active:X,activeNode:ne,activeNodeRect:pe,activatorEvent:V,collisions:cr,containerNodeRect:qe,dragOverlay:Ke,draggableNodes:D,droppableContainers:q,droppableRects:ue,over:cn,measureDroppableContainers:fe,scrollableAncestors:it,scrollableAncestorRects:yt,measuringConfiguration:de,measuringScheduled:we,windowRect:Rr}),[X,ne,pe,V,cr,qe,Ke,D,q,ue,cn,fe,it,yt,de,we,Rr]),zs=h.useMemo(()=>({activatorEvent:V,activators:Er,active:X,activeNodeRect:pe,ariaDescribedById:{draggable:G},dispatch:y,draggableNodes:D,over:cn,measureDroppableContainers:fe}),[V,Er,X,pe,y,G,D,cn,fe]);return h.createElement(yh.Provider,{value:T},h.createElement(Ja.Provider,{value:zs},h.createElement(Yh.Provider,{value:Bo},h.createElement(el.Provider,{value:mi},p)),h.createElement(Xw,{disabled:(c==null?void 0:c.restoreFocus)===!1})),h.createElement(nw,{...c,hiddenTextDescribedById:G}));function zo(){const ft=(K==null?void 0:K.autoScrollEnabled)===!1,Tt=typeof d=="object"?d.enabled===!1:d===!1,Mt=M&&!ft&&!Tt;return typeof d=="object"?{...d,enabled:Mt}:{enabled:Mt}}}),e9=h.createContext(null),Xh="button",t9="Droppable";function n9(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const s=su(t9),{activators:l,activatorEvent:c,active:d,activeNodeRect:p,ariaDescribedById:m,draggableNodes:g,over:v}=h.useContext(Ja),{role:b=Xh,roleDescription:E="draggable",tabIndex:_=0}=o??{},w=(d==null?void 0:d.id)===t,y=h.useContext(w?el:e9),[S,T]=iu(),[O,I]=iu(),M=Gw(l,t),R=ru(n);Ir(()=>(g.set(t,{id:t,key:s,node:S,activatorNode:O,data:R}),()=>{const k=g.get(t);k&&k.key===s&&g.delete(t)}),[g,t]);const D=h.useMemo(()=>({role:b,tabIndex:_,"aria-disabled":r,"aria-pressed":w&&b===Xh?!0:void 0,"aria-roledescription":E,"aria-describedby":m.draggable}),[r,b,_,w,E,m.draggable]);return{active:d,activatorEvent:c,activeNodeRect:p,attributes:D,isDragging:w,listeners:r?void 0:M,node:S,over:v,setNodeRef:T,setActivatorNodeRef:I,transform:y}}function r9(){return h.useContext(Yh)}function i9(e){let{animation:t,children:n}=e;const[r,o]=h.useState(null),[s,l]=h.useState(null),c=qa(n);return!n&&!r&&c&&o(c),Ir(()=>{if(!s)return;const d=r==null?void 0:r.key,p=r==null?void 0:r.props.id;if(d==null||p==null){o(null);return}Promise.resolve(t(p,s)).then(()=>{o(null)})},[t,r,s]),h.createElement(h.Fragment,null,n,r?h.cloneElement(r,{ref:l}):null)}const o9={x:0,y:0,scaleX:1,scaleY:1};function s9(e){let{children:t}=e;return h.createElement(Ja.Provider,{value:qh},h.createElement(el.Provider,{value:o9},t))}const a9={position:"fixed",touchAction:"none"},l9=e=>au(e)?"transform 250ms ease":void 0,c9=h.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:s,className:l,rect:c,style:d,transform:p,transition:m=l9}=e;if(!c)return null;const g=o?p:{...p,scaleX:1,scaleY:1},v={...a9,width:c.width,height:c.height,top:c.top,left:c.left,transform:Es.Transform.toString(g),transformOrigin:o&&r?rw(r,c):void 0,transition:typeof m=="function"?m(r):m,...d};return h.createElement(n,{className:l,style:v,ref:t},s)}),d9={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Es.Transform.toString(t)},{transform:Es.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:s,className:l}=e;if(s!=null&&s.active)for(const[c,d]of Object.entries(s.active))d!==void 0&&(o[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,d));if(s!=null&&s.dragOverlay)for(const[c,d]of Object.entries(s.dragOverlay))d!==void 0&&r.node.style.setProperty(c,d);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(const[d,p]of Object.entries(o))n.node.style.setProperty(d,p);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};function u9(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return Wa((s,l)=>{if(t===null)return;const c=n.get(s);if(!c)return;const d=c.node.current;if(!d)return;const p=Wh(l);if(!p)return;const{transform:m}=Vt(l).getComputedStyle(l),g=Sh(m);if(!g)return;const v=typeof t=="function"?t:f9(t);return Rh(d,o.draggable.measure),v({active:{id:s,data:c.data,node:d,rect:o.draggable.measure(d)},draggableNodes:n,dragOverlay:{node:l,rect:o.dragOverlay.measure(p)},droppableContainers:r,measuringConfiguration:o,transform:g})})}function f9(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...d9,...e};return s=>{let{active:l,dragOverlay:c,transform:d,...p}=s;if(!t)return;const m={x:c.rect.left-l.rect.left,y:c.rect.top-l.rect.top},g={scaleX:d.scaleX!==1?l.rect.width*d.scaleX/c.rect.width:1,scaleY:d.scaleY!==1?l.rect.height*d.scaleY/c.rect.height:1},v={x:d.x-m.x,y:d.y-m.y,...g},b=o({...p,active:l,dragOverlay:c,transform:{initial:d,final:v}}),[E]=b,_=b[b.length-1];if(JSON.stringify(E)===JSON.stringify(_))return;const w=r==null?void 0:r({active:l,dragOverlay:c,...p}),y=c.node.animate(b,{duration:t,easing:n,fill:"forwards"});return new Promise(S=>{y.onfinish=()=>{w==null||w(),S()}})}}let Kh=0;function p9(e){return h.useMemo(()=>{if(e!=null)return Kh++,Kh},[e])}const h9=h.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:s,modifiers:l,wrapperElement:c="div",className:d,zIndex:p=999}=e;const{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggableNodes:E,droppableContainers:_,dragOverlay:w,over:y,measuringConfiguration:S,scrollableAncestors:T,scrollableAncestorRects:O,windowRect:I}=r9(),M=h.useContext(el),R=p9(g==null?void 0:g.id),D=Zh(l,{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggingNodeRect:w.rect,over:y,overlayNodeRect:w.rect,scrollableAncestors:T,scrollableAncestorRects:O,transform:M,windowRect:I}),k=vu(v),q=u9({config:r,draggableNodes:E,droppableContainers:_,measuringConfiguration:S}),L=k?w.setRef:void 0;return h.createElement(s9,null,h.createElement(i9,{animation:q},g&&R?h.createElement(c9,{key:R,id:g.id,ref:L,as:c,activatorEvent:m,adjustScale:t,className:d,transition:s,rect:k,style:{zIndex:p,...o},transform:D},n):null))});var tl={exports:{}};/**
|
|
75
|
+
`},aw={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function lw(e){let{announcements:t=aw,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=sw}=e;const{announce:s,announcement:l}=iw(),c=sd("DndLiveRegion"),[u,p]=h.useState(!1);if(h.useEffect(()=>{p(!0)},[]),Th(h.useMemo(()=>({onDragStart(g){let{active:v}=g;s(t.onDragStart({active:v}))},onDragMove(g){let{active:v,over:b}=g;t.onDragMove&&s(t.onDragMove({active:v,over:b}))},onDragOver(g){let{active:v,over:b}=g;s(t.onDragOver({active:v,over:b}))},onDragEnd(g){let{active:v,over:b}=g;s(t.onDragEnd({active:v,over:b}))},onDragCancel(g){let{active:v,over:b}=g;s(t.onDragCancel({active:v,over:b}))}}),[s,t])),!u)return null;const m=h.createElement(h.Fragment,null,h.createElement(tw,{id:r,value:i.draggable}),h.createElement(rw,{id:c,announcement:l}));return n?On.createPortal(m,n):m}var zt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(zt||(zt={}));function Za(){}const nr=Object.freeze({x:0,y:0});function cw(e,t){const n=Ya(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function uw(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function dw(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function fw(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=i-r,c=s-n;if(r<i&&n<s){const u=t.width*t.height,p=e.width*e.height,m=l*c,g=m/(u+p-m);return Number(g.toFixed(4))}return 0}const pw=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const u=fw(c,t);u>0&&i.push({id:l,data:{droppableContainer:s,value:u}})}}return i.sort(uw)};function hw(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Sh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:nr}function gw(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return i.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const mw=gw(1);function Ih(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function vw(e,t,n){const r=Ih(t);if(!r)return e;const{scaleX:i,scaleY:s,x:l,y:c}=r,u=e.left-l-(1-i)*parseFloat(n),p=e.top-c-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),m=i?e.width/i:e.width,g=s?e.height/s:e.height;return{width:m,height:g,top:p,right:u+m,bottom:p+g,left:u}}const bw={ignoreTransform:!1};function Es(e,t){t===void 0&&(t=bw);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:p,transformOrigin:m}=Ut(e).getComputedStyle(e);p&&(n=vw(n,p,m))}const{top:r,left:i,width:s,height:l,bottom:c,right:u}=n;return{top:r,left:i,width:s,height:l,bottom:c,right:u}}function Oh(e){return Es(e,{ignoreTransform:!0})}function _w(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function xw(e,t){return t===void 0&&(t=Ut(e).getComputedStyle(e)),t.position==="fixed"}function Ew(e,t){t===void 0&&(t=Ut(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const s=t[i];return typeof s=="string"?n.test(s):!1})}function ld(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(nd(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!bs(i)||ZE(i)||n.includes(i))return n;const s=Ut(e).getComputedStyle(i);return i!==e&&Ew(i,s)&&n.push(i),xw(i,s)?n:r(i.parentNode)}return e?r(e):n}function Ah(e){const[t]=ld(e,1);return t??null}function cd(e){return!Ua||!e?null:Co(e)?e:td(e)?nd(e)||e===To(e).scrollingElement?window:bs(e)?e:null:null}function $h(e){return Co(e)?e.scrollX:e.scrollLeft}function Dh(e){return Co(e)?e.scrollY:e.scrollTop}function ud(e){return{x:$h(e),y:Dh(e)}}var At;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(At||(At={}));function Mh(e){return!Ua||!e?!1:e===document.scrollingElement}function Ph(e){const t={x:0,y:0},n=Mh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:i,isLeft:s,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const ww={x:.2,y:.2};function yw(e,t,n,r,i){let{top:s,left:l,right:c,bottom:u}=n;r===void 0&&(r=10),i===void 0&&(i=ww);const{isTop:p,isBottom:m,isLeft:g,isRight:v}=Ph(e),b={x:0,y:0},E={x:0,y:0},_={height:t.height*i.y,width:t.width*i.x};return!p&&s<=t.top+_.height?(b.y=At.Backward,E.y=r*Math.abs((t.top+_.height-s)/_.height)):!m&&u>=t.bottom-_.height&&(b.y=At.Forward,E.y=r*Math.abs((t.bottom-_.height-u)/_.height)),!v&&c>=t.right-_.width?(b.x=At.Forward,E.x=r*Math.abs((t.right-_.width-c)/_.width)):!g&&l<=t.left+_.width&&(b.x=At.Backward,E.x=r*Math.abs((t.left+_.width-l)/_.width)),{direction:b,speed:E}}function Cw(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Rh(e){return e.reduce((t,n)=>So(t,ud(n)),nr)}function Tw(e){return e.reduce((t,n)=>t+$h(n),0)}function Sw(e){return e.reduce((t,n)=>t+Dh(n),0)}function Nh(e,t){if(t===void 0&&(t=Es),!e)return;const{top:n,left:r,bottom:i,right:s}=t(e);Ah(e)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Iw=[["x",["left","right"],Tw],["y",["top","bottom"],Sw]];class dd{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=ld(n),i=Rh(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,c]of Iw)for(const u of l)Object.defineProperty(this,u,{get:()=>{const p=c(r),m=i[s]-p;return this.rect[u]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ws{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Ow(e){const{EventTarget:t}=Ut(e);return e instanceof t?e:To(e)}function fd(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Mn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Mn||(Mn={}));function Lh(e){e.preventDefault()}function Aw(e){e.stopPropagation()}var nt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(nt||(nt={}));const jh={start:[nt.Space,nt.Enter],cancel:[nt.Esc],end:[nt.Space,nt.Enter]},$w=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case nt.Right:return{...n,x:n.x+25};case nt.Left:return{...n,x:n.x-25};case nt.Down:return{...n,y:n.y+25};case nt.Up:return{...n,y:n.y-25}}};class kh{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ws(To(n)),this.windowListeners=new ws(Ut(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Mn.Resize,this.handleCancel),this.windowListeners.add(Mn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Mn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Nh(r),n(nr)}handleKeyDown(t){if(ad(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:s=jh,coordinateGetter:l=$w,scrollBehavior:c="smooth"}=i,{code:u}=t;if(s.end.includes(u)){this.handleEnd(t);return}if(s.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:p}=r.current,m=p?{x:p.left,y:p.top}:nr;this.referenceCoordinates||(this.referenceCoordinates=m);const g=l(t,{active:n,context:r.current,currentCoordinates:m});if(g){const v=qa(g,m),b={x:0,y:0},{scrollableAncestors:E}=r.current;for(const _ of E){const w=t.code,{isTop:y,isRight:S,isLeft:T,isBottom:A,maxScroll:I,minScroll:M}=Ph(_),R=Cw(_),D={x:Math.min(w===nt.Right?R.right-R.width/2:R.right,Math.max(w===nt.Right?R.left:R.left+R.width/2,g.x)),y:Math.min(w===nt.Down?R.bottom-R.height/2:R.bottom,Math.max(w===nt.Down?R.top:R.top+R.height/2,g.y))},k=w===nt.Right&&!S||w===nt.Left&&!T,Y=w===nt.Down&&!A||w===nt.Up&&!y;if(k&&D.x!==g.x){const L=_.scrollLeft+v.x,G=w===nt.Right&&L<=I.x||w===nt.Left&&L>=M.x;if(G&&!v.y){_.scrollTo({left:L,behavior:c});return}G?b.x=_.scrollLeft-L:b.x=w===nt.Right?_.scrollLeft-I.x:_.scrollLeft-M.x,b.x&&_.scrollBy({left:-b.x,behavior:c});break}else if(Y&&D.y!==g.y){const L=_.scrollTop+v.y,G=w===nt.Down&&L<=I.y||w===nt.Up&&L>=M.y;if(G&&!v.x){_.scrollTo({top:L,behavior:c});return}G?b.y=_.scrollTop-L:b.y=w===nt.Down?_.scrollTop-I.y:_.scrollTop-M.y,b.y&&_.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(t,So(qa(g,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}kh.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=jh,onActivation:i}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=s.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Fh(e){return!!(e&&"distance"in e)}function Bh(e){return!!(e&&"delay"in e)}class pd{constructor(t,n,r){var i;r===void 0&&(r=Ow(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=To(l),this.documentListeners=new ws(this.document),this.listeners=new ws(r),this.windowListeners=new ws(Ut(l)),this.initialCoordinates=(i=Ya(s))!=null?i:nr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Mn.Resize,this.handleCancel),this.windowListeners.add(Mn.DragStart,Lh),this.windowListeners.add(Mn.VisibilityChange,this.handleCancel),this.windowListeners.add(Mn.ContextMenu,Lh),this.documentListeners.add(Mn.Keydown,this.handleKeydown),n){if(Fh(n))return;if(Bh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Mn.Click,Aw,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Mn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:s}=this,{onMove:l,options:{activationConstraint:c}}=s;if(!i)return;const u=(n=Ya(t))!=null?n:nr,p=qa(i,u);if(!r&&c){if(Bh(c))return fd(p,c.tolerance)?this.handleCancel():void 0;if(Fh(c))return c.tolerance!=null&&fd(p,c.tolerance)?this.handleCancel():fd(p,c.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),l(u)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===nt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Dw={move:{name:"pointermove"},end:{name:"pointerup"}};class zh extends pd{constructor(t){const{event:n}=t,r=To(n.target);super(t,Dw,r)}}zh.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Mw={move:{name:"mousemove"},end:{name:"mouseup"}};var hd;(function(e){e[e.RightClick=2]="RightClick"})(hd||(hd={}));class Pw extends pd{constructor(t){super(t,Mw,To(t.event.target))}}Pw.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===hd.RightClick?!1:(r==null||r({event:n}),!0)}}];const gd={move:{name:"touchmove"},end:{name:"touchend"}};class Rw extends pd{constructor(t){super(t,gd)}static setup(){return window.addEventListener(gd.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(gd.move.name,t)};function t(){}}}Rw.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var ys;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ys||(ys={}));var Xa;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Xa||(Xa={}));function Nw(e){let{acceleration:t,activator:n=ys.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:l=5,order:c=Xa.TreeOrder,pointerCoordinates:u,scrollableAncestors:p,scrollableAncestorRects:m,delta:g,threshold:v}=e;const b=jw({delta:g,disabled:!s}),[E,_]=XE(),w=h.useRef({x:0,y:0}),y=h.useRef({x:0,y:0}),S=h.useMemo(()=>{switch(n){case ys.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ys.DraggableRect:return i}},[n,i,u]),T=h.useRef(null),A=h.useCallback(()=>{const M=T.current;if(!M)return;const R=w.current.x*y.current.x,D=w.current.y*y.current.y;M.scrollBy(R,D)},[]),I=h.useMemo(()=>c===Xa.TreeOrder?[...p].reverse():p,[c,p]);h.useEffect(()=>{if(!s||!p.length||!S){_();return}for(const M of I){if((r==null?void 0:r(M))===!1)continue;const R=p.indexOf(M),D=m[R];if(!D)continue;const{direction:k,speed:Y}=yw(M,D,S,t,v);for(const L of["x","y"])b[L][k[L]]||(Y[L]=0,k[L]=0);if(Y.x>0||Y.y>0){_(),T.current=M,E(A,l),w.current=Y,y.current=k;return}}w.current={x:0,y:0},y.current={x:0,y:0},_()},[t,A,r,_,s,l,JSON.stringify(S),JSON.stringify(b),E,p,I,m,JSON.stringify(v)])}const Lw={x:{[At.Backward]:!1,[At.Forward]:!1},y:{[At.Backward]:!1,[At.Forward]:!1}};function jw(e){let{delta:t,disabled:n}=e;const r=Wa(t);return _s(i=>{if(n||!r||!i)return Lw;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[At.Backward]:i.x[At.Backward]||s.x===-1,[At.Forward]:i.x[At.Forward]||s.x===1},y:{[At.Backward]:i.y[At.Backward]||s.y===-1,[At.Forward]:i.y[At.Forward]||s.y===1}}},[n,t,r])}function kw(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return _s(i=>{var s;return t===null?null:(s=r??i)!=null?s:null},[r,t])}function Fw(e,t){return h.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,s=i.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var Cs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Cs||(Cs={}));var md;(function(e){e.Optimized="optimized"})(md||(md={}));const Gh=new Map;function Bw(e,t){let{dragging:n,dependencies:r,config:i}=t;const[s,l]=h.useState(null),{frequency:c,measure:u,strategy:p}=i,m=h.useRef(e),g=w(),v=rd(g),b=h.useCallback(function(y){y===void 0&&(y=[]),!v.current&&l(S=>S===null?y:S.concat(y.filter(T=>!S.includes(T))))},[v]),E=h.useRef(null),_=_s(y=>{if(g&&!n)return Gh;if(!y||y===Gh||m.current!==e||s!=null){const S=new Map;for(let T of e){if(!T)continue;if(s&&s.length>0&&!s.includes(T.id)&&T.rect.current){S.set(T.id,T.rect.current);continue}const A=T.node.current,I=A?new dd(u(A),A):null;T.rect.current=I,I&&S.set(T.id,I)}return S}return y},[e,s,n,g,u]);return h.useEffect(()=>{m.current=e},[e]),h.useEffect(()=>{g||b()},[n,g]),h.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),h.useEffect(()=>{g||typeof c!="number"||E.current!==null||(E.current=setTimeout(()=>{b(),E.current=null},c))},[c,g,b,...r]),{droppableRects:_,measureDroppableContainers:b,measuringScheduled:s!=null};function w(){switch(p){case Cs.Always:return!1;case Cs.BeforeDragging:return n;default:return!n}}}function vd(e,t){return _s(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function zw(e,t){return vd(e,t)}function Gw(e){let{callback:t,disabled:n}=e;const r=Va(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function bd(e){let{callback:t,disabled:n}=e;const r=Va(t),i=h.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return h.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Hw(e){return new dd(Es(e),e)}function Hh(e,t,n){t===void 0&&(t=Hw);const[r,i]=h.useReducer(c,null),s=Gw({callback(u){if(e)for(const p of u){const{type:m,target:g}=p;if(m==="childList"&&g instanceof HTMLElement&&g.contains(e)){i();break}}}}),l=bd({callback:i});return Ir(()=>{i(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),r;function c(u){if(!e)return null;if(e.isConnected===!1){var p;return(p=u??n)!=null?p:null}const m=t(e);return JSON.stringify(u)===JSON.stringify(m)?u:m}}function Uw(e){const t=vd(e);return Sh(e,t)}const Uh=[];function Vw(e){const t=h.useRef(e),n=_s(r=>e?r&&r!==Uh&&e&&t.current&&e.parentNode===t.current.parentNode?r:ld(e):Uh,[e]);return h.useEffect(()=>{t.current=e},[e]),n}function Ww(e){const[t,n]=h.useState(null),r=h.useRef(e),i=h.useCallback(s=>{const l=cd(s.target);l&&n(c=>c?(c.set(l,ud(l)),new Map(c)):null)},[]);return h.useEffect(()=>{const s=r.current;if(e!==s){l(s);const c=e.map(u=>{const p=cd(u);return p?(p.addEventListener("scroll",i,{passive:!0}),[p,ud(p)]):null}).filter(u=>u!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(s)};function l(c){c.forEach(u=>{const p=cd(u);p==null||p.removeEventListener("scroll",i)})}},[i,e]),h.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>So(s,l),nr):Rh(e):nr,[e,t])}function Vh(e,t){t===void 0&&(t=[]);const n=h.useRef(null);return h.useEffect(()=>{n.current=null},t),h.useEffect(()=>{const r=e!==nr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?qa(e,n.current):nr}function qw(e){h.useEffect(()=>{if(!Ua)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Yw(e,t){return h.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:s}=r;return n[i]=l=>{s(l,t)},n},{}),[e,t])}function Wh(e){return h.useMemo(()=>e?_w(e):null,[e])}const _d=[];function Zw(e,t){t===void 0&&(t=Es);const[n]=e,r=Wh(n?Ut(n):null),[i,s]=h.useReducer(c,_d),l=bd({callback:s});return e.length>0&&i===_d&&s(),Ir(()=>{e.length?e.forEach(u=>l==null?void 0:l.observe(u)):(l==null||l.disconnect(),s())},[e]),i;function c(){return e.length?e.map(u=>Mh(u)?r:new dd(t(u),u)):_d}}function qh(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return bs(t)?t:e}function Xw(e){let{measure:t}=e;const[n,r]=h.useState(null),i=h.useCallback(p=>{for(const{target:m}of p)if(bs(m)){r(g=>{const v=t(m);return g?{...g,width:v.width,height:v.height}:v});break}},[t]),s=bd({callback:i}),l=h.useCallback(p=>{const m=qh(p);s==null||s.disconnect(),m&&(s==null||s.observe(m)),r(m?t(m):null)},[t,s]),[c,u]=id(l);return h.useMemo(()=>({nodeRef:c,rect:n,setRef:u}),[n,c,u])}const Kw=[{sensor:zh,options:{}},{sensor:kh,options:{}}],Qw={current:{}},Ka={draggable:{measure:Oh},droppable:{measure:Oh,strategy:Cs.WhileDragging,frequency:md.Optimized},dragOverlay:{measure:Es}};class Ts extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Jw={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ts,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Za},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ka,measureDroppableContainers:Za,windowRect:null,measuringScheduled:!1},Yh={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Za,draggableNodes:new Map,over:null,measureDroppableContainers:Za},Qa=h.createContext(Yh),Zh=h.createContext(Jw);function e9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ts}}}function t9(e,t){switch(t.type){case zt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case zt.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case zt.DragEnd:case zt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case zt.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Ts(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case zt.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new Ts(e.droppable.containers);return l.set(n,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case zt.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Ts(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function n9(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=h.useContext(Qa),s=Wa(r),l=Wa(n==null?void 0:n.id);return h.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!ad(s)||document.activeElement===s.target)return;const c=i.get(l);if(!c)return;const{activatorNode:u,node:p}=c;if(!u.current&&!p.current)return;requestAnimationFrame(()=>{for(const m of[u.current,p.current]){if(!m)continue;const g=JE(m);if(g){g.focus();break}}})}},[r,t,i,l,s]),null}function Xh(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,s)=>s({transform:i,...r}),n):n}function r9(e){return h.useMemo(()=>({draggable:{...Ka.draggable,...e==null?void 0:e.draggable},droppable:{...Ka.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ka.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function i9(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const s=h.useRef(!1),{x:l,y:c}=typeof i=="boolean"?{x:i,y:i}:i;Ir(()=>{if(!l&&!c||!t){s.current=!1;return}if(s.current||!r)return;const p=t==null?void 0:t.node.current;if(!p||p.isConnected===!1)return;const m=n(p),g=Sh(m,r);if(l||(g.x=0),c||(g.y=0),s.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const v=Ah(p);v&&v.scrollBy({top:g.y,left:g.x})}},[t,l,c,r,n])}const Ja=h.createContext({...nr,scaleX:1,scaleY:1});var si;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(si||(si={}));const o9=h.memo(function(t){var n,r,i,s;let{id:l,accessibility:c,autoScroll:u=!0,children:p,sensors:m=Kw,collisionDetection:g=pw,measuring:v,modifiers:b,...E}=t;const _=h.useReducer(t9,void 0,e9),[w,y]=_,[S,T]=ow(),[A,I]=h.useState(si.Uninitialized),M=A===si.Initialized,{draggable:{active:R,nodes:D,translate:k},droppable:{containers:Y}}=w,L=R?D.get(R):null,G=h.useRef({initial:null,translated:null}),X=h.useMemo(()=>{var at;return R!=null?{id:R,data:(at=L==null?void 0:L.data)!=null?at:Qw,rect:G}:null},[R,L]),N=h.useRef(null),[K,B]=h.useState(null),[W,J]=h.useState(null),q=rd(E,Object.values(E)),U=sd("DndDescribedBy",l),V=h.useMemo(()=>Y.getEnabled(),[Y]),ce=r9(v),{droppableRects:de,measureDroppableContainers:fe,measuringScheduled:we}=Bw(V,{dragging:M,dependencies:[k.x,k.y],config:ce.droppable}),ne=kw(D,R),le=h.useMemo(()=>W?Ya(W):null,[W]),ge=zs(),be=zw(ne,ce.draggable.measure);i9({activeNode:R?D.get(R):null,config:ge.layoutShiftCompensation,initialRect:be,measure:ce.draggable.measure});const pe=Hh(ne,ce.draggable.measure,be),We=Hh(ne?ne.parentElement:null),ue=h.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:de,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),bt=Y.getNodeFor((n=ue.current.over)==null?void 0:n.id),Ke=Xw({measure:ce.dragOverlay.measure}),wt=(r=Ke.nodeRef.current)!=null?r:ne,En=M?(i=Ke.rect)!=null?i:pe:null,Rt=!!(Ke.nodeRef.current&&Ke.rect),jn=Uw(Rt?null:pe),Rr=Wh(wt?Ut(wt):null),ft=Vw(M?bt??ne:null),yt=Zw(ft),kn=Xh(b,{transform:{x:k.x-jn.x,y:k.y-jn.y,scaleX:1,scaleY:1},activatorEvent:W,active:X,activeNodeRect:pe,containerNodeRect:We,draggingNodeRect:En,over:ue.current.over,overlayNodeRect:Ke.rect,scrollableAncestors:ft,scrollableAncestorRects:yt,windowRect:Rr}),_r=le?So(le,k):null,Qi=Ww(ft),Nr=Vh(Qi),Fs=Vh(Qi,[pe]),ln=So(kn,Nr),Xt=En?mw(En,kn):null,ar=X&&Xt?g({active:X,collisionRect:Xt,droppableRects:de,droppableContainers:V,pointerCoordinates:_r}):null,gi=dw(ar,"id"),[cn,xr]=h.useState(null),mi=Rt?kn:So(kn,Fs),Fn=hw(mi,(s=cn==null?void 0:cn.rect)!=null?s:null,pe),Er=h.useCallback((at,Tt)=>{let{sensor:Nt,options:Bn}=Tt;if(N.current==null)return;const Lt=D.get(N.current);if(!Lt)return;const Kt=at.nativeEvent,Qt=new Nt({active:N.current,activeNode:Lt,event:Kt,options:Bn,context:ue,onStart(Jt){const j=N.current;if(j==null)return;const oe=D.get(j);if(!oe)return;const{onDragStart:_e}=q.current,Te={active:{id:j,data:oe.data,rect:G}};On.unstable_batchedUpdates(()=>{_e==null||_e(Te),I(si.Initializing),y({type:zt.DragStart,initialCoordinates:Jt,active:j}),S({type:"onDragStart",event:Te})})},onMove(Jt){y({type:zt.DragMove,coordinates:Jt})},onEnd:wr(zt.DragEnd),onCancel:wr(zt.DragCancel)});On.unstable_batchedUpdates(()=>{B(Qt),J(at.nativeEvent)});function wr(Jt){return async function(){const{active:oe,collisions:_e,over:Te,scrollAdjustedTranslate:qe}=ue.current;let Be=null;if(oe&&qe){const{cancelDrop:Me}=q.current;Be={activatorEvent:Kt,active:oe,collisions:_e,delta:qe,over:Te},Jt===zt.DragEnd&&typeof Me=="function"&&await Promise.resolve(Me(Be))&&(Jt=zt.DragCancel)}N.current=null,On.unstable_batchedUpdates(()=>{y({type:Jt}),I(si.Uninitialized),xr(null),B(null),J(null);const Me=Jt===zt.DragEnd?"onDragEnd":"onDragCancel";if(Be){const Pe=q.current[Me];Pe==null||Pe(Be),S({type:Me,event:Be})}})}}},[D]),Lr=h.useCallback((at,Tt)=>(Nt,Bn)=>{const Lt=Nt.nativeEvent,Kt=D.get(Bn);if(N.current!==null||!Kt||Lt.dndKit||Lt.defaultPrevented)return;const Qt={active:Kt};at(Nt,Tt.options,Qt)===!0&&(Lt.dndKit={capturedBy:Tt.sensor},N.current=Bn,Er(Nt,Tt))},[D,Er]),jr=Fw(m,Lr);qw(m),Ir(()=>{pe&&A===si.Initializing&&I(si.Initialized)},[pe,A]),h.useEffect(()=>{const{onDragMove:at}=q.current,{active:Tt,activatorEvent:Nt,collisions:Bn,over:Lt}=ue.current;if(!Tt||!Nt)return;const Kt={active:Tt,activatorEvent:Nt,collisions:Bn,delta:{x:ln.x,y:ln.y},over:Lt};On.unstable_batchedUpdates(()=>{at==null||at(Kt),S({type:"onDragMove",event:Kt})})},[ln.x,ln.y]),h.useEffect(()=>{const{active:at,activatorEvent:Tt,collisions:Nt,droppableContainers:Bn,scrollAdjustedTranslate:Lt}=ue.current;if(!at||N.current==null||!Tt||!Lt)return;const{onDragOver:Kt}=q.current,Qt=Bn.get(gi),wr=Qt&&Qt.rect.current?{id:Qt.id,rect:Qt.rect.current,data:Qt.data,disabled:Qt.disabled}:null,Jt={active:at,activatorEvent:Tt,collisions:Nt,delta:{x:Lt.x,y:Lt.y},over:wr};On.unstable_batchedUpdates(()=>{xr(wr),Kt==null||Kt(Jt),S({type:"onDragOver",event:Jt})})},[gi]),Ir(()=>{ue.current={activatorEvent:W,active:X,activeNode:ne,collisionRect:Xt,collisions:ar,droppableRects:de,draggableNodes:D,draggingNode:wt,draggingNodeRect:En,droppableContainers:Y,over:cn,scrollableAncestors:ft,scrollAdjustedTranslate:ln},G.current={initial:En,translated:Xt}},[X,ne,ar,Xt,D,wt,En,de,Y,cn,ft,ln]),Nw({...ge,delta:k,draggingRect:Xt,pointerCoordinates:_r,scrollableAncestors:ft,scrollableAncestorRects:yt});const Bs=h.useMemo(()=>({active:X,activeNode:ne,activeNodeRect:pe,activatorEvent:W,collisions:ar,containerNodeRect:We,dragOverlay:Ke,draggableNodes:D,droppableContainers:Y,droppableRects:de,over:cn,measureDroppableContainers:fe,scrollableAncestors:ft,scrollableAncestorRects:yt,measuringConfiguration:ce,measuringScheduled:we,windowRect:Rr}),[X,ne,pe,W,ar,We,Ke,D,Y,de,cn,fe,ft,yt,ce,we,Rr]),Bo=h.useMemo(()=>({activatorEvent:W,activators:jr,active:X,activeNodeRect:pe,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:D,over:cn,measureDroppableContainers:fe}),[W,jr,X,pe,y,U,D,cn,fe]);return h.createElement(Ch.Provider,{value:T},h.createElement(Qa.Provider,{value:Bo},h.createElement(Zh.Provider,{value:Bs},h.createElement(Ja.Provider,{value:Fn},p)),h.createElement(n9,{disabled:(c==null?void 0:c.restoreFocus)===!1})),h.createElement(lw,{...c,hiddenTextDescribedById:U}));function zs(){const at=(K==null?void 0:K.autoScrollEnabled)===!1,Tt=typeof u=="object"?u.enabled===!1:u===!1,Nt=M&&!at&&!Tt;return typeof u=="object"?{...u,enabled:Nt}:{enabled:Nt}}}),s9=h.createContext(null),Kh="button",a9="Droppable";function l9(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const s=sd(a9),{activators:l,activatorEvent:c,active:u,activeNodeRect:p,ariaDescribedById:m,draggableNodes:g,over:v}=h.useContext(Qa),{role:b=Kh,roleDescription:E="draggable",tabIndex:_=0}=i??{},w=(u==null?void 0:u.id)===t,y=h.useContext(w?Ja:s9),[S,T]=id(),[A,I]=id(),M=Yw(l,t),R=rd(n);Ir(()=>(g.set(t,{id:t,key:s,node:S,activatorNode:A,data:R}),()=>{const k=g.get(t);k&&k.key===s&&g.delete(t)}),[g,t]);const D=h.useMemo(()=>({role:b,tabIndex:_,"aria-disabled":r,"aria-pressed":w&&b===Kh?!0:void 0,"aria-roledescription":E,"aria-describedby":m.draggable}),[r,b,_,w,E,m.draggable]);return{active:u,activatorEvent:c,activeNodeRect:p,attributes:D,isDragging:w,listeners:r?void 0:M,node:S,over:v,setNodeRef:T,setActivatorNodeRef:I,transform:y}}function c9(){return h.useContext(Zh)}function u9(e){let{animation:t,children:n}=e;const[r,i]=h.useState(null),[s,l]=h.useState(null),c=Wa(n);return!n&&!r&&c&&i(c),Ir(()=>{if(!s)return;const u=r==null?void 0:r.key,p=r==null?void 0:r.props.id;if(u==null||p==null){i(null);return}Promise.resolve(t(p,s)).then(()=>{i(null)})},[t,r,s]),h.createElement(h.Fragment,null,n,r?h.cloneElement(r,{ref:l}):null)}const d9={x:0,y:0,scaleX:1,scaleY:1};function f9(e){let{children:t}=e;return h.createElement(Qa.Provider,{value:Yh},h.createElement(Ja.Provider,{value:d9},t))}const p9={position:"fixed",touchAction:"none"},h9=e=>ad(e)?"transform 250ms ease":void 0,g9=h.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:s,className:l,rect:c,style:u,transform:p,transition:m=h9}=e;if(!c)return null;const g=i?p:{...p,scaleX:1,scaleY:1},v={...p9,width:c.width,height:c.height,top:c.top,left:c.left,transform:xs.Transform.toString(g),transformOrigin:i&&r?cw(r,c):void 0,transition:typeof m=="function"?m(r):m,...u};return h.createElement(n,{className:l,style:v,ref:t},s)}),m9={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:xs.Transform.toString(t)},{transform:xs.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:s,className:l}=e;if(s!=null&&s.active)for(const[c,u]of Object.entries(s.active))u!==void 0&&(i[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,u));if(s!=null&&s.dragOverlay)for(const[c,u]of Object.entries(s.dragOverlay))u!==void 0&&r.node.style.setProperty(c,u);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(const[u,p]of Object.entries(i))n.node.style.setProperty(u,p);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};function v9(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Va((s,l)=>{if(t===null)return;const c=n.get(s);if(!c)return;const u=c.node.current;if(!u)return;const p=qh(l);if(!p)return;const{transform:m}=Ut(l).getComputedStyle(l),g=Ih(m);if(!g)return;const v=typeof t=="function"?t:b9(t);return Nh(u,i.draggable.measure),v({active:{id:s,data:c.data,node:u,rect:i.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:l,rect:i.dragOverlay.measure(p)},droppableContainers:r,measuringConfiguration:i,transform:g})})}function b9(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...m9,...e};return s=>{let{active:l,dragOverlay:c,transform:u,...p}=s;if(!t)return;const m={x:c.rect.left-l.rect.left,y:c.rect.top-l.rect.top},g={scaleX:u.scaleX!==1?l.rect.width*u.scaleX/c.rect.width:1,scaleY:u.scaleY!==1?l.rect.height*u.scaleY/c.rect.height:1},v={x:u.x-m.x,y:u.y-m.y,...g},b=i({...p,active:l,dragOverlay:c,transform:{initial:u,final:v}}),[E]=b,_=b[b.length-1];if(JSON.stringify(E)===JSON.stringify(_))return;const w=r==null?void 0:r({active:l,dragOverlay:c,...p}),y=c.node.animate(b,{duration:t,easing:n,fill:"forwards"});return new Promise(S=>{y.onfinish=()=>{w==null||w(),S()}})}}let Qh=0;function _9(e){return h.useMemo(()=>{if(e!=null)return Qh++,Qh},[e])}const x9=h.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:s,modifiers:l,wrapperElement:c="div",className:u,zIndex:p=999}=e;const{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggableNodes:E,droppableContainers:_,dragOverlay:w,over:y,measuringConfiguration:S,scrollableAncestors:T,scrollableAncestorRects:A,windowRect:I}=c9(),M=h.useContext(Ja),R=_9(g==null?void 0:g.id),D=Xh(l,{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggingNodeRect:w.rect,over:y,overlayNodeRect:w.rect,scrollableAncestors:T,scrollableAncestorRects:A,transform:M,windowRect:I}),k=vd(v),Y=v9({config:r,draggableNodes:E,droppableContainers:_,measuringConfiguration:S}),L=k?w.setRef:void 0;return h.createElement(f9,null,h.createElement(u9,{animation:Y},g&&R?h.createElement(g9,{key:R,id:g.id,ref:L,as:c,activatorEvent:m,adjustScale:t,className:u,transition:s,rect:k,style:{zIndex:p,...i},transform:D},n):null))});var el={exports:{}};/**
|
|
72
76
|
* @license
|
|
73
77
|
* Lodash <https://lodash.com/>
|
|
74
78
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
75
79
|
* Released under MIT license <https://lodash.com/license>
|
|
76
80
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
77
81
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
78
|
-
*/tl.exports,function(e,t){(function(){var n,r="4.17.21",o=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,m="__lodash_placeholder__",g=1,v=2,b=4,E=1,_=2,w=1,y=2,S=4,T=8,O=16,I=32,M=64,R=128,D=256,k=512,q=30,L="...",U=800,X=16,N=1,K=2,B=3,V=1/0,Q=9007199254740991,W=17976931348623157e292,G=NaN,Y=4294967295,de=Y-1,ue=Y>>>1,fe=[["ary",R],["bind",w],["bindKey",y],["curry",T],["curryRight",O],["flip",k],["partial",I],["partialRight",M],["rearg",D]],we="[object Arguments]",ne="[object Array]",le="[object AsyncFunction]",me="[object Boolean]",_e="[object Date]",pe="[object DOMException]",qe="[object Error]",ce="[object Function]",bt="[object GeneratorFunction]",Ke="[object Map]",wt="[object Number]",En="[object Null]",Nt="[object Object]",kn="[object Promise]",Rr="[object Proxy]",it="[object RegExp]",yt="[object Set]",Fn="[object String]",xr="[object Symbol]",Qi="[object Undefined]",lr="[object WeakMap]",Bs="[object WeakSet]",ln="[object ArrayBuffer]",Kt="[object DataView]",cr="[object Float32Array]",hi="[object Float64Array]",cn="[object Int8Array]",gi="[object Int16Array]",Nr="[object Int32Array]",mi="[object Uint8Array]",wn="[object Uint8ClampedArray]",Lr="[object Uint16Array]",Er="[object Uint32Array]",Bo=/\b__p \+= '';/g,zs=/\b(__p \+=) '' \+/g,zo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ft=/&(?:amp|lt|gt|quot|#39);/g,Tt=/[&<>"']/g,Mt=RegExp(ft.source),Bn=RegExp(Tt.source),zt=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jt=/^\w*$/,jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(j.source),he=/^\s+/,Te=/\s/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Ne=/,? & /,je=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lt=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zn=/\w*$/,vi=/^[-+]0x[0-9a-f]+$/i,Bl=/^0b[01]+$/i,dr=/^\[object .+?Constructor\]$/,I$=/^0o[0-7]+$/i,A$=/^(?:0|[1-9]\d*)$/,O$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zl=/($^)/,$$=/['\n\r\u2028\u2029\\]/g,Gl="\\ud800-\\udfff",D$="\\u0300-\\u036f",M$="\\ufe20-\\ufe2f",P$="\\u20d0-\\u20ff",Z2=D$+M$+P$,X2="\\u2700-\\u27bf",K2="a-z\\xdf-\\xf6\\xf8-\\xff",R$="\\xac\\xb1\\xd7\\xf7",N$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",L$="\\u2000-\\u206f",j$=" \\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",Q2="A-Z\\xc0-\\xd6\\xd8-\\xde",J2="\\ufe0e\\ufe0f",e5=R$+N$+L$+j$,jf="['’]",k$="["+Gl+"]",t5="["+e5+"]",Ul="["+Z2+"]",n5="\\d+",F$="["+X2+"]",r5="["+K2+"]",i5="[^"+Gl+e5+n5+X2+K2+Q2+"]",kf="\\ud83c[\\udffb-\\udfff]",B$="(?:"+Ul+"|"+kf+")",o5="[^"+Gl+"]",Ff="(?:\\ud83c[\\udde6-\\uddff]){2}",Bf="[\\ud800-\\udbff][\\udc00-\\udfff]",Go="["+Q2+"]",s5="\\u200d",a5="(?:"+r5+"|"+i5+")",z$="(?:"+Go+"|"+i5+")",l5="(?:"+jf+"(?:d|ll|m|re|s|t|ve))?",c5="(?:"+jf+"(?:D|LL|M|RE|S|T|VE))?",d5=B$+"?",u5="["+J2+"]?",G$="(?:"+s5+"(?:"+[o5,Ff,Bf].join("|")+")"+u5+d5+")*",U$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",H$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",f5=u5+d5+G$,V$="(?:"+[F$,Ff,Bf].join("|")+")"+f5,W$="(?:"+[o5+Ul+"?",Ul,Ff,Bf,k$].join("|")+")",q$=RegExp(jf,"g"),Y$=RegExp(Ul,"g"),zf=RegExp(kf+"(?="+kf+")|"+W$+f5,"g"),Z$=RegExp([Go+"?"+r5+"+"+l5+"(?="+[t5,Go,"$"].join("|")+")",z$+"+"+c5+"(?="+[t5,Go+a5,"$"].join("|")+")",Go+"?"+a5+"+"+l5,Go+"+"+c5,H$,U$,n5,V$].join("|"),"g"),X$=RegExp("["+s5+Gl+Z2+J2+"]"),K$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Q$=["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"],J$=-1,ot={};ot[cr]=ot[hi]=ot[cn]=ot[gi]=ot[Nr]=ot[mi]=ot[wn]=ot[Lr]=ot[Er]=!0,ot[we]=ot[ne]=ot[ln]=ot[me]=ot[Kt]=ot[_e]=ot[qe]=ot[ce]=ot[Ke]=ot[wt]=ot[Nt]=ot[it]=ot[yt]=ot[Fn]=ot[lr]=!1;var rt={};rt[we]=rt[ne]=rt[ln]=rt[Kt]=rt[me]=rt[_e]=rt[cr]=rt[hi]=rt[cn]=rt[gi]=rt[Nr]=rt[Ke]=rt[wt]=rt[Nt]=rt[it]=rt[yt]=rt[Fn]=rt[xr]=rt[mi]=rt[wn]=rt[Lr]=rt[Er]=!0,rt[qe]=rt[ce]=rt[lr]=!1;var eD={À:"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"},tD={"&":"&","<":"<",">":">",'"':""","'":"'"},nD={"&":"&","<":"<",">":">",""":'"',"'":"'"},rD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iD=parseFloat,oD=parseInt,p5=typeof ns=="object"&&ns&&ns.Object===Object&&ns,sD=typeof self=="object"&&self&&self.Object===Object&&self,jt=p5||sD||Function("return this")(),Gf=t&&!t.nodeType&&t,Ji=Gf&&!0&&e&&!e.nodeType&&e,h5=Ji&&Ji.exports===Gf,Uf=h5&&p5.process,Gn=function(){try{var z=Ji&&Ji.require&&Ji.require("util").types;return z||Uf&&Uf.binding&&Uf.binding("util")}catch{}}(),g5=Gn&&Gn.isArrayBuffer,m5=Gn&&Gn.isDate,v5=Gn&&Gn.isMap,b5=Gn&&Gn.isRegExp,_5=Gn&&Gn.isSet,x5=Gn&&Gn.isTypedArray;function yn(z,J,Z){switch(Z.length){case 0:return z.call(J);case 1:return z.call(J,Z[0]);case 2:return z.call(J,Z[0],Z[1]);case 3:return z.call(J,Z[0],Z[1],Z[2])}return z.apply(J,Z)}function aD(z,J,Z,xe){for(var Oe=-1,Ye=z==null?0:z.length;++Oe<Ye;){var St=z[Oe];J(xe,St,Z(St),z)}return xe}function Un(z,J){for(var Z=-1,xe=z==null?0:z.length;++Z<xe&&J(z[Z],Z,z)!==!1;);return z}function lD(z,J){for(var Z=z==null?0:z.length;Z--&&J(z[Z],Z,z)!==!1;);return z}function E5(z,J){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(!J(z[Z],Z,z))return!1;return!0}function bi(z,J){for(var Z=-1,xe=z==null?0:z.length,Oe=0,Ye=[];++Z<xe;){var St=z[Z];J(St,Z,z)&&(Ye[Oe++]=St)}return Ye}function Hl(z,J){var Z=z==null?0:z.length;return!!Z&&Uo(z,J,0)>-1}function Hf(z,J,Z){for(var xe=-1,Oe=z==null?0:z.length;++xe<Oe;)if(Z(J,z[xe]))return!0;return!1}function st(z,J){for(var Z=-1,xe=z==null?0:z.length,Oe=Array(xe);++Z<xe;)Oe[Z]=J(z[Z],Z,z);return Oe}function _i(z,J){for(var Z=-1,xe=J.length,Oe=z.length;++Z<xe;)z[Oe+Z]=J[Z];return z}function Vf(z,J,Z,xe){var Oe=-1,Ye=z==null?0:z.length;for(xe&&Ye&&(Z=z[++Oe]);++Oe<Ye;)Z=J(Z,z[Oe],Oe,z);return Z}function cD(z,J,Z,xe){var Oe=z==null?0:z.length;for(xe&&Oe&&(Z=z[--Oe]);Oe--;)Z=J(Z,z[Oe],Oe,z);return Z}function Wf(z,J){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(J(z[Z],Z,z))return!0;return!1}var dD=qf("length");function uD(z){return z.split("")}function fD(z){return z.match(je)||[]}function w5(z,J,Z){var xe;return Z(z,function(Oe,Ye,St){if(J(Oe,Ye,St))return xe=Ye,!1}),xe}function Vl(z,J,Z,xe){for(var Oe=z.length,Ye=Z+(xe?1:-1);xe?Ye--:++Ye<Oe;)if(J(z[Ye],Ye,z))return Ye;return-1}function Uo(z,J,Z){return J===J?CD(z,J,Z):Vl(z,y5,Z)}function pD(z,J,Z,xe){for(var Oe=Z-1,Ye=z.length;++Oe<Ye;)if(xe(z[Oe],J))return Oe;return-1}function y5(z){return z!==z}function C5(z,J){var Z=z==null?0:z.length;return Z?Zf(z,J)/Z:G}function qf(z){return function(J){return J==null?n:J[z]}}function Yf(z){return function(J){return z==null?n:z[J]}}function T5(z,J,Z,xe,Oe){return Oe(z,function(Ye,St,tt){Z=xe?(xe=!1,Ye):J(Z,Ye,St,tt)}),Z}function hD(z,J){var Z=z.length;for(z.sort(J);Z--;)z[Z]=z[Z].value;return z}function Zf(z,J){for(var Z,xe=-1,Oe=z.length;++xe<Oe;){var Ye=J(z[xe]);Ye!==n&&(Z=Z===n?Ye:Z+Ye)}return Z}function Xf(z,J){for(var Z=-1,xe=Array(z);++Z<z;)xe[Z]=J(Z);return xe}function gD(z,J){return st(J,function(Z){return[Z,z[Z]]})}function S5(z){return z&&z.slice(0,$5(z)+1).replace(he,"")}function Cn(z){return function(J){return z(J)}}function Kf(z,J){return st(J,function(Z){return z[Z]})}function Gs(z,J){return z.has(J)}function I5(z,J){for(var Z=-1,xe=z.length;++Z<xe&&Uo(J,z[Z],0)>-1;);return Z}function A5(z,J){for(var Z=z.length;Z--&&Uo(J,z[Z],0)>-1;);return Z}function mD(z,J){for(var Z=z.length,xe=0;Z--;)z[Z]===J&&++xe;return xe}var vD=Yf(eD),bD=Yf(tD);function _D(z){return"\\"+rD[z]}function xD(z,J){return z==null?n:z[J]}function Ho(z){return X$.test(z)}function ED(z){return K$.test(z)}function wD(z){for(var J,Z=[];!(J=z.next()).done;)Z.push(J.value);return Z}function Qf(z){var J=-1,Z=Array(z.size);return z.forEach(function(xe,Oe){Z[++J]=[Oe,xe]}),Z}function O5(z,J){return function(Z){return z(J(Z))}}function xi(z,J){for(var Z=-1,xe=z.length,Oe=0,Ye=[];++Z<xe;){var St=z[Z];(St===J||St===m)&&(z[Z]=m,Ye[Oe++]=Z)}return Ye}function Wl(z){var J=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++J]=xe}),Z}function yD(z){var J=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++J]=[xe,xe]}),Z}function CD(z,J,Z){for(var xe=Z-1,Oe=z.length;++xe<Oe;)if(z[xe]===J)return xe;return-1}function TD(z,J,Z){for(var xe=Z+1;xe--;)if(z[xe]===J)return xe;return xe}function Vo(z){return Ho(z)?ID(z):dD(z)}function ur(z){return Ho(z)?AD(z):uD(z)}function $5(z){for(var J=z.length;J--&&Te.test(z.charAt(J)););return J}var SD=Yf(nD);function ID(z){for(var J=zf.lastIndex=0;zf.test(z);)++J;return J}function AD(z){return z.match(zf)||[]}function OD(z){return z.match(Z$)||[]}var $D=function z(J){J=J==null?jt:Wo.defaults(jt.Object(),J,Wo.pick(jt,Q$));var Z=J.Array,xe=J.Date,Oe=J.Error,Ye=J.Function,St=J.Math,tt=J.Object,Jf=J.RegExp,DD=J.String,Hn=J.TypeError,ql=Z.prototype,MD=Ye.prototype,qo=tt.prototype,Yl=J["__core-js_shared__"],Zl=MD.toString,Je=qo.hasOwnProperty,PD=0,D5=function(){var i=/[^.]+$/.exec(Yl&&Yl.keys&&Yl.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Xl=qo.toString,RD=Zl.call(tt),ND=jt._,LD=Jf("^"+Zl.call(Je).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kl=h5?J.Buffer:n,Ei=J.Symbol,Ql=J.Uint8Array,M5=Kl?Kl.allocUnsafe:n,Jl=O5(tt.getPrototypeOf,tt),P5=tt.create,R5=qo.propertyIsEnumerable,ec=ql.splice,N5=Ei?Ei.isConcatSpreadable:n,Us=Ei?Ei.iterator:n,eo=Ei?Ei.toStringTag:n,tc=function(){try{var i=oo(tt,"defineProperty");return i({},"",{}),i}catch{}}(),jD=J.clearTimeout!==jt.clearTimeout&&J.clearTimeout,kD=xe&&xe.now!==jt.Date.now&&xe.now,FD=J.setTimeout!==jt.setTimeout&&J.setTimeout,nc=St.ceil,rc=St.floor,e1=tt.getOwnPropertySymbols,BD=Kl?Kl.isBuffer:n,L5=J.isFinite,zD=ql.join,GD=O5(tt.keys,tt),It=St.max,Ut=St.min,UD=xe.now,HD=J.parseInt,j5=St.random,VD=ql.reverse,t1=oo(J,"DataView"),Hs=oo(J,"Map"),n1=oo(J,"Promise"),Yo=oo(J,"Set"),Vs=oo(J,"WeakMap"),Ws=oo(tt,"create"),ic=Vs&&new Vs,Zo={},WD=so(t1),qD=so(Hs),YD=so(n1),ZD=so(Yo),XD=so(Vs),oc=Ei?Ei.prototype:n,qs=oc?oc.valueOf:n,k5=oc?oc.toString:n;function A(i){if(ht(i)&&!De(i)&&!(i instanceof Fe)){if(i instanceof Vn)return i;if(Je.call(i,"__wrapped__"))return Fb(i)}return new Vn(i)}var Xo=function(){function i(){}return function(a){if(!ct(a))return{};if(P5)return P5(a);i.prototype=a;var f=new i;return i.prototype=n,f}}();function sc(){}function Vn(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}A.templateSettings={escape:zt,evaluate:Gt,interpolate:Qt,variable:"",imports:{_:A}},A.prototype=sc.prototype,A.prototype.constructor=A,Vn.prototype=Xo(sc.prototype),Vn.prototype.constructor=Vn;function Fe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function KD(){var i=new Fe(this.__wrapped__);return i.__actions__=dn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=dn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=dn(this.__views__),i}function QD(){if(this.__filtered__){var i=new Fe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function JD(){var i=this.__wrapped__.value(),a=this.__dir__,f=De(i),x=a<0,C=f?i.length:0,$=uP(0,C,this.__views__),P=$.start,F=$.end,H=F-P,ee=x?F:P-1,te=this.__iteratees__,ie=te.length,ve=0,ye=Ut(H,this.__takeCount__);if(!f||!x&&C==H&&ye==H)return lb(i,this.__actions__);var Ie=[];e:for(;H--&&ve<ye;){ee+=a;for(var Re=-1,Ae=i[ee];++Re<ie;){var ke=te[Re],ze=ke.iteratee,In=ke.type,nn=ze(Ae);if(In==K)Ae=nn;else if(!nn){if(In==N)continue e;break e}}Ie[ve++]=Ae}return Ie}Fe.prototype=Xo(sc.prototype),Fe.prototype.constructor=Fe;function to(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var x=i[a];this.set(x[0],x[1])}}function eM(){this.__data__=Ws?Ws(null):{},this.size=0}function tM(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function nM(i){var a=this.__data__;if(Ws){var f=a[i];return f===d?n:f}return Je.call(a,i)?a[i]:n}function rM(i){var a=this.__data__;return Ws?a[i]!==n:Je.call(a,i)}function iM(i,a){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Ws&&a===n?d:a,this}to.prototype.clear=eM,to.prototype.delete=tM,to.prototype.get=nM,to.prototype.has=rM,to.prototype.set=iM;function kr(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var x=i[a];this.set(x[0],x[1])}}function oM(){this.__data__=[],this.size=0}function sM(i){var a=this.__data__,f=ac(a,i);if(f<0)return!1;var x=a.length-1;return f==x?a.pop():ec.call(a,f,1),--this.size,!0}function aM(i){var a=this.__data__,f=ac(a,i);return f<0?n:a[f][1]}function lM(i){return ac(this.__data__,i)>-1}function cM(i,a){var f=this.__data__,x=ac(f,i);return x<0?(++this.size,f.push([i,a])):f[x][1]=a,this}kr.prototype.clear=oM,kr.prototype.delete=sM,kr.prototype.get=aM,kr.prototype.has=lM,kr.prototype.set=cM;function Fr(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var x=i[a];this.set(x[0],x[1])}}function dM(){this.size=0,this.__data__={hash:new to,map:new(Hs||kr),string:new to}}function uM(i){var a=_c(this,i).delete(i);return this.size-=a?1:0,a}function fM(i){return _c(this,i).get(i)}function pM(i){return _c(this,i).has(i)}function hM(i,a){var f=_c(this,i),x=f.size;return f.set(i,a),this.size+=f.size==x?0:1,this}Fr.prototype.clear=dM,Fr.prototype.delete=uM,Fr.prototype.get=fM,Fr.prototype.has=pM,Fr.prototype.set=hM;function no(i){var a=-1,f=i==null?0:i.length;for(this.__data__=new Fr;++a<f;)this.add(i[a])}function gM(i){return this.__data__.set(i,d),this}function mM(i){return this.__data__.has(i)}no.prototype.add=no.prototype.push=gM,no.prototype.has=mM;function fr(i){var a=this.__data__=new kr(i);this.size=a.size}function vM(){this.__data__=new kr,this.size=0}function bM(i){var a=this.__data__,f=a.delete(i);return this.size=a.size,f}function _M(i){return this.__data__.get(i)}function xM(i){return this.__data__.has(i)}function EM(i,a){var f=this.__data__;if(f instanceof kr){var x=f.__data__;if(!Hs||x.length<o-1)return x.push([i,a]),this.size=++f.size,this;f=this.__data__=new Fr(x)}return f.set(i,a),this.size=f.size,this}fr.prototype.clear=vM,fr.prototype.delete=bM,fr.prototype.get=_M,fr.prototype.has=xM,fr.prototype.set=EM;function F5(i,a){var f=De(i),x=!f&&ao(i),C=!f&&!x&&Si(i),$=!f&&!x&&!C&&es(i),P=f||x||C||$,F=P?Xf(i.length,DD):[],H=F.length;for(var ee in i)(a||Je.call(i,ee))&&!(P&&(ee=="length"||C&&(ee=="offset"||ee=="parent")||$&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||Ur(ee,H)))&&F.push(ee);return F}function B5(i){var a=i.length;return a?i[p1(0,a-1)]:n}function wM(i,a){return xc(dn(i),ro(a,0,i.length))}function yM(i){return xc(dn(i))}function r1(i,a,f){(f!==n&&!pr(i[a],f)||f===n&&!(a in i))&&Br(i,a,f)}function Ys(i,a,f){var x=i[a];(!(Je.call(i,a)&&pr(x,f))||f===n&&!(a in i))&&Br(i,a,f)}function ac(i,a){for(var f=i.length;f--;)if(pr(i[f][0],a))return f;return-1}function CM(i,a,f,x){return wi(i,function(C,$,P){a(x,C,f(C),P)}),x}function z5(i,a){return i&&Cr(a,Pt(a),i)}function TM(i,a){return i&&Cr(a,fn(a),i)}function Br(i,a,f){a=="__proto__"&&tc?tc(i,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[a]=f}function i1(i,a){for(var f=-1,x=a.length,C=Z(x),$=i==null;++f<x;)C[f]=$?n:k1(i,a[f]);return C}function ro(i,a,f){return i===i&&(f!==n&&(i=i<=f?i:f),a!==n&&(i=i>=a?i:a)),i}function Wn(i,a,f,x,C,$){var P,F=a&g,H=a&v,ee=a&b;if(f&&(P=C?f(i,x,C,$):f(i)),P!==n)return P;if(!ct(i))return i;var te=De(i);if(te){if(P=pP(i),!F)return dn(i,P)}else{var ie=Ht(i),ve=ie==ce||ie==bt;if(Si(i))return ub(i,F);if(ie==Nt||ie==we||ve&&!C){if(P=H||ve?{}:$b(i),!F)return H?nP(i,TM(P,i)):tP(i,z5(P,i))}else{if(!rt[ie])return C?i:{};P=hP(i,ie,F)}}$||($=new fr);var ye=$.get(i);if(ye)return ye;$.set(i,P),o_(i)?i.forEach(function(Ae){P.add(Wn(Ae,a,f,Ae,i,$))}):r_(i)&&i.forEach(function(Ae,ke){P.set(ke,Wn(Ae,a,f,ke,i,$))});var Ie=ee?H?C1:y1:H?fn:Pt,Re=te?n:Ie(i);return Un(Re||i,function(Ae,ke){Re&&(ke=Ae,Ae=i[ke]),Ys(P,ke,Wn(Ae,a,f,ke,i,$))}),P}function SM(i){var a=Pt(i);return function(f){return G5(f,i,a)}}function G5(i,a,f){var x=f.length;if(i==null)return!x;for(i=tt(i);x--;){var C=f[x],$=a[C],P=i[C];if(P===n&&!(C in i)||!$(P))return!1}return!0}function U5(i,a,f){if(typeof i!="function")throw new Hn(l);return ta(function(){i.apply(n,f)},a)}function Zs(i,a,f,x){var C=-1,$=Hl,P=!0,F=i.length,H=[],ee=a.length;if(!F)return H;f&&(a=st(a,Cn(f))),x?($=Hf,P=!1):a.length>=o&&($=Gs,P=!1,a=new no(a));e:for(;++C<F;){var te=i[C],ie=f==null?te:f(te);if(te=x||te!==0?te:0,P&&ie===ie){for(var ve=ee;ve--;)if(a[ve]===ie)continue e;H.push(te)}else $(a,ie,x)||H.push(te)}return H}var wi=mb(yr),H5=mb(s1,!0);function IM(i,a){var f=!0;return wi(i,function(x,C,$){return f=!!a(x,C,$),f}),f}function lc(i,a,f){for(var x=-1,C=i.length;++x<C;){var $=i[x],P=a($);if(P!=null&&(F===n?P===P&&!Sn(P):f(P,F)))var F=P,H=$}return H}function AM(i,a,f,x){var C=i.length;for(f=Me(f),f<0&&(f=-f>C?0:C+f),x=x===n||x>C?C:Me(x),x<0&&(x+=C),x=f>x?0:a_(x);f<x;)i[f++]=a;return i}function V5(i,a){var f=[];return wi(i,function(x,C,$){a(x,C,$)&&f.push(x)}),f}function kt(i,a,f,x,C){var $=-1,P=i.length;for(f||(f=mP),C||(C=[]);++$<P;){var F=i[$];a>0&&f(F)?a>1?kt(F,a-1,f,x,C):_i(C,F):x||(C[C.length]=F)}return C}var o1=vb(),W5=vb(!0);function yr(i,a){return i&&o1(i,a,Pt)}function s1(i,a){return i&&W5(i,a,Pt)}function cc(i,a){return bi(a,function(f){return Hr(i[f])})}function io(i,a){a=Ci(a,i);for(var f=0,x=a.length;i!=null&&f<x;)i=i[Tr(a[f++])];return f&&f==x?i:n}function q5(i,a,f){var x=a(i);return De(i)?x:_i(x,f(i))}function en(i){return i==null?i===n?Qi:En:eo&&eo in tt(i)?dP(i):yP(i)}function a1(i,a){return i>a}function OM(i,a){return i!=null&&Je.call(i,a)}function $M(i,a){return i!=null&&a in tt(i)}function DM(i,a,f){return i>=Ut(a,f)&&i<It(a,f)}function l1(i,a,f){for(var x=f?Hf:Hl,C=i[0].length,$=i.length,P=$,F=Z($),H=1/0,ee=[];P--;){var te=i[P];P&&a&&(te=st(te,Cn(a))),H=Ut(te.length,H),F[P]=!f&&(a||C>=120&&te.length>=120)?new no(P&&te):n}te=i[0];var ie=-1,ve=F[0];e:for(;++ie<C&&ee.length<H;){var ye=te[ie],Ie=a?a(ye):ye;if(ye=f||ye!==0?ye:0,!(ve?Gs(ve,Ie):x(ee,Ie,f))){for(P=$;--P;){var Re=F[P];if(!(Re?Gs(Re,Ie):x(i[P],Ie,f)))continue e}ve&&ve.push(Ie),ee.push(ye)}}return ee}function MM(i,a,f,x){return yr(i,function(C,$,P){a(x,f(C),$,P)}),x}function Xs(i,a,f){a=Ci(a,i),i=Rb(i,a);var x=i==null?i:i[Tr(Yn(a))];return x==null?n:yn(x,i,f)}function Y5(i){return ht(i)&&en(i)==we}function PM(i){return ht(i)&&en(i)==ln}function RM(i){return ht(i)&&en(i)==_e}function Ks(i,a,f,x,C){return i===a?!0:i==null||a==null||!ht(i)&&!ht(a)?i!==i&&a!==a:NM(i,a,f,x,Ks,C)}function NM(i,a,f,x,C,$){var P=De(i),F=De(a),H=P?ne:Ht(i),ee=F?ne:Ht(a);H=H==we?Nt:H,ee=ee==we?Nt:ee;var te=H==Nt,ie=ee==Nt,ve=H==ee;if(ve&&Si(i)){if(!Si(a))return!1;P=!0,te=!1}if(ve&&!te)return $||($=new fr),P||es(i)?Ib(i,a,f,x,C,$):lP(i,a,H,f,x,C,$);if(!(f&E)){var ye=te&&Je.call(i,"__wrapped__"),Ie=ie&&Je.call(a,"__wrapped__");if(ye||Ie){var Re=ye?i.value():i,Ae=Ie?a.value():a;return $||($=new fr),C(Re,Ae,f,x,$)}}return ve?($||($=new fr),cP(i,a,f,x,C,$)):!1}function LM(i){return ht(i)&&Ht(i)==Ke}function c1(i,a,f,x){var C=f.length,$=C,P=!x;if(i==null)return!$;for(i=tt(i);C--;){var F=f[C];if(P&&F[2]?F[1]!==i[F[0]]:!(F[0]in i))return!1}for(;++C<$;){F=f[C];var H=F[0],ee=i[H],te=F[1];if(P&&F[2]){if(ee===n&&!(H in i))return!1}else{var ie=new fr;if(x)var ve=x(ee,te,H,i,a,ie);if(!(ve===n?Ks(te,ee,E|_,x,ie):ve))return!1}}return!0}function Z5(i){if(!ct(i)||bP(i))return!1;var a=Hr(i)?LD:dr;return a.test(so(i))}function jM(i){return ht(i)&&en(i)==it}function kM(i){return ht(i)&&Ht(i)==yt}function FM(i){return ht(i)&&Sc(i.length)&&!!ot[en(i)]}function X5(i){return typeof i=="function"?i:i==null?pn:typeof i=="object"?De(i)?J5(i[0],i[1]):Q5(i):b_(i)}function d1(i){if(!ea(i))return GD(i);var a=[];for(var f in tt(i))Je.call(i,f)&&f!="constructor"&&a.push(f);return a}function BM(i){if(!ct(i))return wP(i);var a=ea(i),f=[];for(var x in i)x=="constructor"&&(a||!Je.call(i,x))||f.push(x);return f}function u1(i,a){return i<a}function K5(i,a){var f=-1,x=un(i)?Z(i.length):[];return wi(i,function(C,$,P){x[++f]=a(C,$,P)}),x}function Q5(i){var a=S1(i);return a.length==1&&a[0][2]?Mb(a[0][0],a[0][1]):function(f){return f===i||c1(f,i,a)}}function J5(i,a){return A1(i)&&Db(a)?Mb(Tr(i),a):function(f){var x=k1(f,i);return x===n&&x===a?F1(f,i):Ks(a,x,E|_)}}function dc(i,a,f,x,C){i!==a&&o1(a,function($,P){if(C||(C=new fr),ct($))zM(i,a,P,f,dc,x,C);else{var F=x?x($1(i,P),$,P+"",i,a,C):n;F===n&&(F=$),r1(i,P,F)}},fn)}function zM(i,a,f,x,C,$,P){var F=$1(i,f),H=$1(a,f),ee=P.get(H);if(ee){r1(i,f,ee);return}var te=$?$(F,H,f+"",i,a,P):n,ie=te===n;if(ie){var ve=De(H),ye=!ve&&Si(H),Ie=!ve&&!ye&&es(H);te=H,ve||ye||Ie?De(F)?te=F:_t(F)?te=dn(F):ye?(ie=!1,te=ub(H,!0)):Ie?(ie=!1,te=fb(H,!0)):te=[]:na(H)||ao(H)?(te=F,ao(F)?te=l_(F):(!ct(F)||Hr(F))&&(te=$b(H))):ie=!1}ie&&(P.set(H,te),C(te,H,x,$,P),P.delete(H)),r1(i,f,te)}function eb(i,a){var f=i.length;if(f)return a+=a<0?f:0,Ur(a,f)?i[a]:n}function tb(i,a,f){a.length?a=st(a,function($){return De($)?function(P){return io(P,$.length===1?$[0]:$)}:$}):a=[pn];var x=-1;a=st(a,Cn(Se()));var C=K5(i,function($,P,F){var H=st(a,function(ee){return ee($)});return{criteria:H,index:++x,value:$}});return hD(C,function($,P){return eP($,P,f)})}function GM(i,a){return nb(i,a,function(f,x){return F1(i,x)})}function nb(i,a,f){for(var x=-1,C=a.length,$={};++x<C;){var P=a[x],F=io(i,P);f(F,P)&&Qs($,Ci(P,i),F)}return $}function UM(i){return function(a){return io(a,i)}}function f1(i,a,f,x){var C=x?pD:Uo,$=-1,P=a.length,F=i;for(i===a&&(a=dn(a)),f&&(F=st(i,Cn(f)));++$<P;)for(var H=0,ee=a[$],te=f?f(ee):ee;(H=C(F,te,H,x))>-1;)F!==i&&ec.call(F,H,1),ec.call(i,H,1);return i}function rb(i,a){for(var f=i?a.length:0,x=f-1;f--;){var C=a[f];if(f==x||C!==$){var $=C;Ur(C)?ec.call(i,C,1):m1(i,C)}}return i}function p1(i,a){return i+rc(j5()*(a-i+1))}function HM(i,a,f,x){for(var C=-1,$=It(nc((a-i)/(f||1)),0),P=Z($);$--;)P[x?$:++C]=i,i+=f;return P}function h1(i,a){var f="";if(!i||a<1||a>Q)return f;do a%2&&(f+=i),a=rc(a/2),a&&(i+=i);while(a);return f}function Le(i,a){return D1(Pb(i,a,pn),i+"")}function VM(i){return B5(ts(i))}function WM(i,a){var f=ts(i);return xc(f,ro(a,0,f.length))}function Qs(i,a,f,x){if(!ct(i))return i;a=Ci(a,i);for(var C=-1,$=a.length,P=$-1,F=i;F!=null&&++C<$;){var H=Tr(a[C]),ee=f;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(C!=P){var te=F[H];ee=x?x(te,H,F):n,ee===n&&(ee=ct(te)?te:Ur(a[C+1])?[]:{})}Ys(F,H,ee),F=F[H]}return i}var ib=ic?function(i,a){return ic.set(i,a),i}:pn,qM=tc?function(i,a){return tc(i,"toString",{configurable:!0,enumerable:!1,value:z1(a),writable:!0})}:pn;function YM(i){return xc(ts(i))}function qn(i,a,f){var x=-1,C=i.length;a<0&&(a=-a>C?0:C+a),f=f>C?C:f,f<0&&(f+=C),C=a>f?0:f-a>>>0,a>>>=0;for(var $=Z(C);++x<C;)$[x]=i[x+a];return $}function ZM(i,a){var f;return wi(i,function(x,C,$){return f=a(x,C,$),!f}),!!f}function uc(i,a,f){var x=0,C=i==null?x:i.length;if(typeof a=="number"&&a===a&&C<=ue){for(;x<C;){var $=x+C>>>1,P=i[$];P!==null&&!Sn(P)&&(f?P<=a:P<a)?x=$+1:C=$}return C}return g1(i,a,pn,f)}function g1(i,a,f,x){var C=0,$=i==null?0:i.length;if($===0)return 0;a=f(a);for(var P=a!==a,F=a===null,H=Sn(a),ee=a===n;C<$;){var te=rc((C+$)/2),ie=f(i[te]),ve=ie!==n,ye=ie===null,Ie=ie===ie,Re=Sn(ie);if(P)var Ae=x||Ie;else ee?Ae=Ie&&(x||ve):F?Ae=Ie&&ve&&(x||!ye):H?Ae=Ie&&ve&&!ye&&(x||!Re):ye||Re?Ae=!1:Ae=x?ie<=a:ie<a;Ae?C=te+1:$=te}return Ut($,de)}function ob(i,a){for(var f=-1,x=i.length,C=0,$=[];++f<x;){var P=i[f],F=a?a(P):P;if(!f||!pr(F,H)){var H=F;$[C++]=P===0?0:P}}return $}function sb(i){return typeof i=="number"?i:Sn(i)?G:+i}function Tn(i){if(typeof i=="string")return i;if(De(i))return st(i,Tn)+"";if(Sn(i))return k5?k5.call(i):"";var a=i+"";return a=="0"&&1/i==-V?"-0":a}function yi(i,a,f){var x=-1,C=Hl,$=i.length,P=!0,F=[],H=F;if(f)P=!1,C=Hf;else if($>=o){var ee=a?null:sP(i);if(ee)return Wl(ee);P=!1,C=Gs,H=new no}else H=a?[]:F;e:for(;++x<$;){var te=i[x],ie=a?a(te):te;if(te=f||te!==0?te:0,P&&ie===ie){for(var ve=H.length;ve--;)if(H[ve]===ie)continue e;a&&H.push(ie),F.push(te)}else C(H,ie,f)||(H!==F&&H.push(ie),F.push(te))}return F}function m1(i,a){return a=Ci(a,i),i=Rb(i,a),i==null||delete i[Tr(Yn(a))]}function ab(i,a,f,x){return Qs(i,a,f(io(i,a)),x)}function fc(i,a,f,x){for(var C=i.length,$=x?C:-1;(x?$--:++$<C)&&a(i[$],$,i););return f?qn(i,x?0:$,x?$+1:C):qn(i,x?$+1:0,x?C:$)}function lb(i,a){var f=i;return f instanceof Fe&&(f=f.value()),Vf(a,function(x,C){return C.func.apply(C.thisArg,_i([x],C.args))},f)}function v1(i,a,f){var x=i.length;if(x<2)return x?yi(i[0]):[];for(var C=-1,$=Z(x);++C<x;)for(var P=i[C],F=-1;++F<x;)F!=C&&($[C]=Zs($[C]||P,i[F],a,f));return yi(kt($,1),a,f)}function cb(i,a,f){for(var x=-1,C=i.length,$=a.length,P={};++x<C;){var F=x<$?a[x]:n;f(P,i[x],F)}return P}function b1(i){return _t(i)?i:[]}function _1(i){return typeof i=="function"?i:pn}function Ci(i,a){return De(i)?i:A1(i,a)?[i]:kb(Qe(i))}var XM=Le;function Ti(i,a,f){var x=i.length;return f=f===n?x:f,!a&&f>=x?i:qn(i,a,f)}var db=jD||function(i){return jt.clearTimeout(i)};function ub(i,a){if(a)return i.slice();var f=i.length,x=M5?M5(f):new i.constructor(f);return i.copy(x),x}function x1(i){var a=new i.constructor(i.byteLength);return new Ql(a).set(new Ql(i)),a}function KM(i,a){var f=a?x1(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function QM(i){var a=new i.constructor(i.source,zn.exec(i));return a.lastIndex=i.lastIndex,a}function JM(i){return qs?tt(qs.call(i)):{}}function fb(i,a){var f=a?x1(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function pb(i,a){if(i!==a){var f=i!==n,x=i===null,C=i===i,$=Sn(i),P=a!==n,F=a===null,H=a===a,ee=Sn(a);if(!F&&!ee&&!$&&i>a||$&&P&&H&&!F&&!ee||x&&P&&H||!f&&H||!C)return 1;if(!x&&!$&&!ee&&i<a||ee&&f&&C&&!x&&!$||F&&f&&C||!P&&C||!H)return-1}return 0}function eP(i,a,f){for(var x=-1,C=i.criteria,$=a.criteria,P=C.length,F=f.length;++x<P;){var H=pb(C[x],$[x]);if(H){if(x>=F)return H;var ee=f[x];return H*(ee=="desc"?-1:1)}}return i.index-a.index}function hb(i,a,f,x){for(var C=-1,$=i.length,P=f.length,F=-1,H=a.length,ee=It($-P,0),te=Z(H+ee),ie=!x;++F<H;)te[F]=a[F];for(;++C<P;)(ie||C<$)&&(te[f[C]]=i[C]);for(;ee--;)te[F++]=i[C++];return te}function gb(i,a,f,x){for(var C=-1,$=i.length,P=-1,F=f.length,H=-1,ee=a.length,te=It($-F,0),ie=Z(te+ee),ve=!x;++C<te;)ie[C]=i[C];for(var ye=C;++H<ee;)ie[ye+H]=a[H];for(;++P<F;)(ve||C<$)&&(ie[ye+f[P]]=i[C++]);return ie}function dn(i,a){var f=-1,x=i.length;for(a||(a=Z(x));++f<x;)a[f]=i[f];return a}function Cr(i,a,f,x){var C=!f;f||(f={});for(var $=-1,P=a.length;++$<P;){var F=a[$],H=x?x(f[F],i[F],F,f,i):n;H===n&&(H=i[F]),C?Br(f,F,H):Ys(f,F,H)}return f}function tP(i,a){return Cr(i,I1(i),a)}function nP(i,a){return Cr(i,Ab(i),a)}function pc(i,a){return function(f,x){var C=De(f)?aD:CM,$=a?a():{};return C(f,i,Se(x,2),$)}}function Ko(i){return Le(function(a,f){var x=-1,C=f.length,$=C>1?f[C-1]:n,P=C>2?f[2]:n;for($=i.length>3&&typeof $=="function"?(C--,$):n,P&&tn(f[0],f[1],P)&&($=C<3?n:$,C=1),a=tt(a);++x<C;){var F=f[x];F&&i(a,F,x,$)}return a})}function mb(i,a){return function(f,x){if(f==null)return f;if(!un(f))return i(f,x);for(var C=f.length,$=a?C:-1,P=tt(f);(a?$--:++$<C)&&x(P[$],$,P)!==!1;);return f}}function vb(i){return function(a,f,x){for(var C=-1,$=tt(a),P=x(a),F=P.length;F--;){var H=P[i?F:++C];if(f($[H],H,$)===!1)break}return a}}function rP(i,a,f){var x=a&w,C=Js(i);function $(){var P=this&&this!==jt&&this instanceof $?C:i;return P.apply(x?f:this,arguments)}return $}function bb(i){return function(a){a=Qe(a);var f=Ho(a)?ur(a):n,x=f?f[0]:a.charAt(0),C=f?Ti(f,1).join(""):a.slice(1);return x[i]()+C}}function Qo(i){return function(a){return Vf(m_(g_(a).replace(q$,"")),i,"")}}function Js(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Xo(i.prototype),x=i.apply(f,a);return ct(x)?x:f}}function iP(i,a,f){var x=Js(i);function C(){for(var $=arguments.length,P=Z($),F=$,H=Jo(C);F--;)P[F]=arguments[F];var ee=$<3&&P[0]!==H&&P[$-1]!==H?[]:xi(P,H);if($-=ee.length,$<f)return yb(i,a,hc,C.placeholder,n,P,ee,n,n,f-$);var te=this&&this!==jt&&this instanceof C?x:i;return yn(te,this,P)}return C}function _b(i){return function(a,f,x){var C=tt(a);if(!un(a)){var $=Se(f,3);a=Pt(a),f=function(F){return $(C[F],F,C)}}var P=i(a,f,x);return P>-1?C[$?a[P]:P]:n}}function xb(i){return Gr(function(a){var f=a.length,x=f,C=Vn.prototype.thru;for(i&&a.reverse();x--;){var $=a[x];if(typeof $!="function")throw new Hn(l);if(C&&!P&&bc($)=="wrapper")var P=new Vn([],!0)}for(x=P?x:f;++x<f;){$=a[x];var F=bc($),H=F=="wrapper"?T1($):n;H&&O1(H[0])&&H[1]==(R|T|I|D)&&!H[4].length&&H[9]==1?P=P[bc(H[0])].apply(P,H[3]):P=$.length==1&&O1($)?P[F]():P.thru($)}return function(){var ee=arguments,te=ee[0];if(P&&ee.length==1&&De(te))return P.plant(te).value();for(var ie=0,ve=f?a[ie].apply(this,ee):te;++ie<f;)ve=a[ie].call(this,ve);return ve}})}function hc(i,a,f,x,C,$,P,F,H,ee){var te=a&R,ie=a&w,ve=a&y,ye=a&(T|O),Ie=a&k,Re=ve?n:Js(i);function Ae(){for(var ke=arguments.length,ze=Z(ke),In=ke;In--;)ze[In]=arguments[In];if(ye)var nn=Jo(Ae),An=mD(ze,nn);if(x&&(ze=hb(ze,x,C,ye)),$&&(ze=gb(ze,$,P,ye)),ke-=An,ye&&ke<ee){var xt=xi(ze,nn);return yb(i,a,hc,Ae.placeholder,f,ze,xt,F,H,ee-ke)}var hr=ie?f:this,Wr=ve?hr[i]:i;return ke=ze.length,F?ze=CP(ze,F):Ie&&ke>1&&ze.reverse(),te&&H<ke&&(ze.length=H),this&&this!==jt&&this instanceof Ae&&(Wr=Re||Js(Wr)),Wr.apply(hr,ze)}return Ae}function Eb(i,a){return function(f,x){return MM(f,i,a(x),{})}}function gc(i,a){return function(f,x){var C;if(f===n&&x===n)return a;if(f!==n&&(C=f),x!==n){if(C===n)return x;typeof f=="string"||typeof x=="string"?(f=Tn(f),x=Tn(x)):(f=sb(f),x=sb(x)),C=i(f,x)}return C}}function E1(i){return Gr(function(a){return a=st(a,Cn(Se())),Le(function(f){var x=this;return i(a,function(C){return yn(C,x,f)})})})}function mc(i,a){a=a===n?" ":Tn(a);var f=a.length;if(f<2)return f?h1(a,i):a;var x=h1(a,nc(i/Vo(a)));return Ho(a)?Ti(ur(x),0,i).join(""):x.slice(0,i)}function oP(i,a,f,x){var C=a&w,$=Js(i);function P(){for(var F=-1,H=arguments.length,ee=-1,te=x.length,ie=Z(te+H),ve=this&&this!==jt&&this instanceof P?$:i;++ee<te;)ie[ee]=x[ee];for(;H--;)ie[ee++]=arguments[++F];return yn(ve,C?f:this,ie)}return P}function wb(i){return function(a,f,x){return x&&typeof x!="number"&&tn(a,f,x)&&(f=x=n),a=Vr(a),f===n?(f=a,a=0):f=Vr(f),x=x===n?a<f?1:-1:Vr(x),HM(a,f,x,i)}}function vc(i){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Zn(a),f=Zn(f)),i(a,f)}}function yb(i,a,f,x,C,$,P,F,H,ee){var te=a&T,ie=te?P:n,ve=te?n:P,ye=te?$:n,Ie=te?n:$;a|=te?I:M,a&=~(te?M:I),a&S||(a&=~(w|y));var Re=[i,a,C,ye,ie,Ie,ve,F,H,ee],Ae=f.apply(n,Re);return O1(i)&&Nb(Ae,Re),Ae.placeholder=x,Lb(Ae,i,a)}function w1(i){var a=St[i];return function(f,x){if(f=Zn(f),x=x==null?0:Ut(Me(x),292),x&&L5(f)){var C=(Qe(f)+"e").split("e"),$=a(C[0]+"e"+(+C[1]+x));return C=(Qe($)+"e").split("e"),+(C[0]+"e"+(+C[1]-x))}return a(f)}}var sP=Yo&&1/Wl(new Yo([,-0]))[1]==V?function(i){return new Yo(i)}:H1;function Cb(i){return function(a){var f=Ht(a);return f==Ke?Qf(a):f==yt?yD(a):gD(a,i(a))}}function zr(i,a,f,x,C,$,P,F){var H=a&y;if(!H&&typeof i!="function")throw new Hn(l);var ee=x?x.length:0;if(ee||(a&=~(I|M),x=C=n),P=P===n?P:It(Me(P),0),F=F===n?F:Me(F),ee-=C?C.length:0,a&M){var te=x,ie=C;x=C=n}var ve=H?n:T1(i),ye=[i,a,f,x,C,te,ie,$,P,F];if(ve&&EP(ye,ve),i=ye[0],a=ye[1],f=ye[2],x=ye[3],C=ye[4],F=ye[9]=ye[9]===n?H?0:i.length:It(ye[9]-ee,0),!F&&a&(T|O)&&(a&=~(T|O)),!a||a==w)var Ie=rP(i,a,f);else a==T||a==O?Ie=iP(i,a,F):(a==I||a==(w|I))&&!C.length?Ie=oP(i,a,f,x):Ie=hc.apply(n,ye);var Re=ve?ib:Nb;return Lb(Re(Ie,ye),i,a)}function Tb(i,a,f,x){return i===n||pr(i,qo[f])&&!Je.call(x,f)?a:i}function Sb(i,a,f,x,C,$){return ct(i)&&ct(a)&&($.set(a,i),dc(i,a,n,Sb,$),$.delete(a)),i}function aP(i){return na(i)?n:i}function Ib(i,a,f,x,C,$){var P=f&E,F=i.length,H=a.length;if(F!=H&&!(P&&H>F))return!1;var ee=$.get(i),te=$.get(a);if(ee&&te)return ee==a&&te==i;var ie=-1,ve=!0,ye=f&_?new no:n;for($.set(i,a),$.set(a,i);++ie<F;){var Ie=i[ie],Re=a[ie];if(x)var Ae=P?x(Re,Ie,ie,a,i,$):x(Ie,Re,ie,i,a,$);if(Ae!==n){if(Ae)continue;ve=!1;break}if(ye){if(!Wf(a,function(ke,ze){if(!Gs(ye,ze)&&(Ie===ke||C(Ie,ke,f,x,$)))return ye.push(ze)})){ve=!1;break}}else if(!(Ie===Re||C(Ie,Re,f,x,$))){ve=!1;break}}return $.delete(i),$.delete(a),ve}function lP(i,a,f,x,C,$,P){switch(f){case Kt:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case ln:return!(i.byteLength!=a.byteLength||!$(new Ql(i),new Ql(a)));case me:case _e:case wt:return pr(+i,+a);case qe:return i.name==a.name&&i.message==a.message;case it:case Fn:return i==a+"";case Ke:var F=Qf;case yt:var H=x&E;if(F||(F=Wl),i.size!=a.size&&!H)return!1;var ee=P.get(i);if(ee)return ee==a;x|=_,P.set(i,a);var te=Ib(F(i),F(a),x,C,$,P);return P.delete(i),te;case xr:if(qs)return qs.call(i)==qs.call(a)}return!1}function cP(i,a,f,x,C,$){var P=f&E,F=y1(i),H=F.length,ee=y1(a),te=ee.length;if(H!=te&&!P)return!1;for(var ie=H;ie--;){var ve=F[ie];if(!(P?ve in a:Je.call(a,ve)))return!1}var ye=$.get(i),Ie=$.get(a);if(ye&&Ie)return ye==a&&Ie==i;var Re=!0;$.set(i,a),$.set(a,i);for(var Ae=P;++ie<H;){ve=F[ie];var ke=i[ve],ze=a[ve];if(x)var In=P?x(ze,ke,ve,a,i,$):x(ke,ze,ve,i,a,$);if(!(In===n?ke===ze||C(ke,ze,f,x,$):In)){Re=!1;break}Ae||(Ae=ve=="constructor")}if(Re&&!Ae){var nn=i.constructor,An=a.constructor;nn!=An&&"constructor"in i&&"constructor"in a&&!(typeof nn=="function"&&nn instanceof nn&&typeof An=="function"&&An instanceof An)&&(Re=!1)}return $.delete(i),$.delete(a),Re}function Gr(i){return D1(Pb(i,n,Gb),i+"")}function y1(i){return q5(i,Pt,I1)}function C1(i){return q5(i,fn,Ab)}var T1=ic?function(i){return ic.get(i)}:H1;function bc(i){for(var a=i.name+"",f=Zo[a],x=Je.call(Zo,a)?f.length:0;x--;){var C=f[x],$=C.func;if($==null||$==i)return C.name}return a}function Jo(i){var a=Je.call(A,"placeholder")?A:i;return a.placeholder}function Se(){var i=A.iteratee||G1;return i=i===G1?X5:i,arguments.length?i(arguments[0],arguments[1]):i}function _c(i,a){var f=i.__data__;return vP(a)?f[typeof a=="string"?"string":"hash"]:f.map}function S1(i){for(var a=Pt(i),f=a.length;f--;){var x=a[f],C=i[x];a[f]=[x,C,Db(C)]}return a}function oo(i,a){var f=xD(i,a);return Z5(f)?f:n}function dP(i){var a=Je.call(i,eo),f=i[eo];try{i[eo]=n;var x=!0}catch{}var C=Xl.call(i);return x&&(a?i[eo]=f:delete i[eo]),C}var I1=e1?function(i){return i==null?[]:(i=tt(i),bi(e1(i),function(a){return R5.call(i,a)}))}:V1,Ab=e1?function(i){for(var a=[];i;)_i(a,I1(i)),i=Jl(i);return a}:V1,Ht=en;(t1&&Ht(new t1(new ArrayBuffer(1)))!=Kt||Hs&&Ht(new Hs)!=Ke||n1&&Ht(n1.resolve())!=kn||Yo&&Ht(new Yo)!=yt||Vs&&Ht(new Vs)!=lr)&&(Ht=function(i){var a=en(i),f=a==Nt?i.constructor:n,x=f?so(f):"";if(x)switch(x){case WD:return Kt;case qD:return Ke;case YD:return kn;case ZD:return yt;case XD:return lr}return a});function uP(i,a,f){for(var x=-1,C=f.length;++x<C;){var $=f[x],P=$.size;switch($.type){case"drop":i+=P;break;case"dropRight":a-=P;break;case"take":a=Ut(a,i+P);break;case"takeRight":i=It(i,a-P);break}}return{start:i,end:a}}function fP(i){var a=i.match(Be);return a?a[1].split(Ne):[]}function Ob(i,a,f){a=Ci(a,i);for(var x=-1,C=a.length,$=!1;++x<C;){var P=Tr(a[x]);if(!($=i!=null&&f(i,P)))break;i=i[P]}return $||++x!=C?$:(C=i==null?0:i.length,!!C&&Sc(C)&&Ur(P,C)&&(De(i)||ao(i)))}function pP(i){var a=i.length,f=new i.constructor(a);return a&&typeof i[0]=="string"&&Je.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function $b(i){return typeof i.constructor=="function"&&!ea(i)?Xo(Jl(i)):{}}function hP(i,a,f){var x=i.constructor;switch(a){case ln:return x1(i);case me:case _e:return new x(+i);case Kt:return KM(i,f);case cr:case hi:case cn:case gi:case Nr:case mi:case wn:case Lr:case Er:return fb(i,f);case Ke:return new x;case wt:case Fn:return new x(i);case it:return QM(i);case yt:return new x;case xr:return JM(i)}}function gP(i,a){var f=a.length;if(!f)return i;var x=f-1;return a[x]=(f>1?"& ":"")+a[x],a=a.join(f>2?", ":" "),i.replace(Ue,`{
|
|
82
|
+
*/el.exports,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",p=500,m="__lodash_placeholder__",g=1,v=2,b=4,E=1,_=2,w=1,y=2,S=4,T=8,A=16,I=32,M=64,R=128,D=256,k=512,Y=30,L="...",G=800,X=16,N=1,K=2,B=3,W=1/0,J=9007199254740991,q=17976931348623157e292,U=NaN,V=4294967295,ce=V-1,de=V>>>1,fe=[["ary",R],["bind",w],["bindKey",y],["curry",T],["curryRight",A],["flip",k],["partial",I],["partialRight",M],["rearg",D]],we="[object Arguments]",ne="[object Array]",le="[object AsyncFunction]",ge="[object Boolean]",be="[object Date]",pe="[object DOMException]",We="[object Error]",ue="[object Function]",bt="[object GeneratorFunction]",Ke="[object Map]",wt="[object Number]",En="[object Null]",Rt="[object Object]",jn="[object Promise]",Rr="[object Proxy]",ft="[object RegExp]",yt="[object Set]",kn="[object String]",_r="[object Symbol]",Qi="[object Undefined]",Nr="[object WeakMap]",Fs="[object WeakSet]",ln="[object ArrayBuffer]",Xt="[object DataView]",ar="[object Float32Array]",gi="[object Float64Array]",cn="[object Int8Array]",xr="[object Int16Array]",mi="[object Int32Array]",Fn="[object Uint8Array]",Er="[object Uint8ClampedArray]",Lr="[object Uint16Array]",jr="[object Uint32Array]",Bs=/\b__p \+= '';/g,Bo=/\b(__p \+=) '' \+/g,zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,at=/&(?:amp|lt|gt|quot|#39);/g,Tt=/[&<>"']/g,Nt=RegExp(at.source),Bn=RegExp(Tt.source),Lt=/<%-([\s\S]+?)%>/g,Kt=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jt=/^\w*$/,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,_e=RegExp(oe.source),Te=/^\s+/,qe=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,lr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kr=/\w*$/,Fl=/^[-+]0x[0-9a-f]+$/i,cr=/^0b[01]+$/i,P$=/^\[object .+?Constructor\]$/,R$=/^0o[0-7]+$/i,N$=/^(?:0|[1-9]\d*)$/,L$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bl=/($^)/,j$=/['\n\r\u2028\u2029\\]/g,zl="\\ud800-\\udfff",k$="\\u0300-\\u036f",F$="\\ufe20-\\ufe2f",B$="\\u20d0-\\u20ff",Z2=k$+F$+B$,X2="\\u2700-\\u27bf",K2="a-z\\xdf-\\xf6\\xf8-\\xff",z$="\\xac\\xb1\\xd7\\xf7",G$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H$="\\u2000-\\u206f",U$=" \\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",Q2="A-Z\\xc0-\\xd6\\xd8-\\xde",J2="\\ufe0e\\ufe0f",e5=z$+G$+H$+U$,kf="['’]",V$="["+zl+"]",t5="["+e5+"]",Gl="["+Z2+"]",n5="\\d+",W$="["+X2+"]",r5="["+K2+"]",i5="[^"+zl+e5+n5+X2+K2+Q2+"]",Ff="\\ud83c[\\udffb-\\udfff]",q$="(?:"+Gl+"|"+Ff+")",o5="[^"+zl+"]",Bf="(?:\\ud83c[\\udde6-\\uddff]){2}",zf="[\\ud800-\\udbff][\\udc00-\\udfff]",zo="["+Q2+"]",s5="\\u200d",a5="(?:"+r5+"|"+i5+")",Y$="(?:"+zo+"|"+i5+")",l5="(?:"+kf+"(?:d|ll|m|re|s|t|ve))?",c5="(?:"+kf+"(?:D|LL|M|RE|S|T|VE))?",u5=q$+"?",d5="["+J2+"]?",Z$="(?:"+s5+"(?:"+[o5,Bf,zf].join("|")+")"+d5+u5+")*",X$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",K$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",f5=d5+u5+Z$,Q$="(?:"+[W$,Bf,zf].join("|")+")"+f5,J$="(?:"+[o5+Gl+"?",Gl,Bf,zf,V$].join("|")+")",eD=RegExp(kf,"g"),tD=RegExp(Gl,"g"),Gf=RegExp(Ff+"(?="+Ff+")|"+J$+f5,"g"),nD=RegExp([zo+"?"+r5+"+"+l5+"(?="+[t5,zo,"$"].join("|")+")",Y$+"+"+c5+"(?="+[t5,zo+a5,"$"].join("|")+")",zo+"?"+a5+"+"+l5,zo+"+"+c5,K$,X$,n5,Q$].join("|"),"g"),rD=RegExp("["+s5+zl+Z2+J2+"]"),iD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oD=["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"],sD=-1,it={};it[ar]=it[gi]=it[cn]=it[xr]=it[mi]=it[Fn]=it[Er]=it[Lr]=it[jr]=!0,it[we]=it[ne]=it[ln]=it[ge]=it[Xt]=it[be]=it[We]=it[ue]=it[Ke]=it[wt]=it[Rt]=it[ft]=it[yt]=it[kn]=it[Nr]=!1;var rt={};rt[we]=rt[ne]=rt[ln]=rt[Xt]=rt[ge]=rt[be]=rt[ar]=rt[gi]=rt[cn]=rt[xr]=rt[mi]=rt[Ke]=rt[wt]=rt[Rt]=rt[ft]=rt[yt]=rt[kn]=rt[_r]=rt[Fn]=rt[Er]=rt[Lr]=rt[jr]=!0,rt[We]=rt[ue]=rt[Nr]=!1;var aD={À:"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"},lD={"&":"&","<":"<",">":">",'"':""","'":"'"},cD={"&":"&","<":"<",">":">",""":'"',"'":"'"},uD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dD=parseFloat,fD=parseInt,p5=typeof ts=="object"&&ts&&ts.Object===Object&&ts,pD=typeof self=="object"&&self&&self.Object===Object&&self,kt=p5||pD||Function("return this")(),Hf=t&&!t.nodeType&&t,Ji=Hf&&!0&&e&&!e.nodeType&&e,h5=Ji&&Ji.exports===Hf,Uf=h5&&p5.process,zn=function(){try{var z=Ji&&Ji.require&&Ji.require("util").types;return z||Uf&&Uf.binding&&Uf.binding("util")}catch{}}(),g5=zn&&zn.isArrayBuffer,m5=zn&&zn.isDate,v5=zn&&zn.isMap,b5=zn&&zn.isRegExp,_5=zn&&zn.isSet,x5=zn&&zn.isTypedArray;function wn(z,Q,Z){switch(Z.length){case 0:return z.call(Q);case 1:return z.call(Q,Z[0]);case 2:return z.call(Q,Z[0],Z[1]);case 3:return z.call(Q,Z[0],Z[1],Z[2])}return z.apply(Q,Z)}function hD(z,Q,Z,xe){for(var $e=-1,Ye=z==null?0:z.length;++$e<Ye;){var St=z[$e];Q(xe,St,Z(St),z)}return xe}function Gn(z,Q){for(var Z=-1,xe=z==null?0:z.length;++Z<xe&&Q(z[Z],Z,z)!==!1;);return z}function gD(z,Q){for(var Z=z==null?0:z.length;Z--&&Q(z[Z],Z,z)!==!1;);return z}function E5(z,Q){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(!Q(z[Z],Z,z))return!1;return!0}function vi(z,Q){for(var Z=-1,xe=z==null?0:z.length,$e=0,Ye=[];++Z<xe;){var St=z[Z];Q(St,Z,z)&&(Ye[$e++]=St)}return Ye}function Hl(z,Q){var Z=z==null?0:z.length;return!!Z&&Go(z,Q,0)>-1}function Vf(z,Q,Z){for(var xe=-1,$e=z==null?0:z.length;++xe<$e;)if(Z(Q,z[xe]))return!0;return!1}function ot(z,Q){for(var Z=-1,xe=z==null?0:z.length,$e=Array(xe);++Z<xe;)$e[Z]=Q(z[Z],Z,z);return $e}function bi(z,Q){for(var Z=-1,xe=Q.length,$e=z.length;++Z<xe;)z[$e+Z]=Q[Z];return z}function Wf(z,Q,Z,xe){var $e=-1,Ye=z==null?0:z.length;for(xe&&Ye&&(Z=z[++$e]);++$e<Ye;)Z=Q(Z,z[$e],$e,z);return Z}function mD(z,Q,Z,xe){var $e=z==null?0:z.length;for(xe&&$e&&(Z=z[--$e]);$e--;)Z=Q(Z,z[$e],$e,z);return Z}function qf(z,Q){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(Q(z[Z],Z,z))return!0;return!1}var vD=Yf("length");function bD(z){return z.split("")}function _D(z){return z.match(jt)||[]}function w5(z,Q,Z){var xe;return Z(z,function($e,Ye,St){if(Q($e,Ye,St))return xe=Ye,!1}),xe}function Ul(z,Q,Z,xe){for(var $e=z.length,Ye=Z+(xe?1:-1);xe?Ye--:++Ye<$e;)if(Q(z[Ye],Ye,z))return Ye;return-1}function Go(z,Q,Z){return Q===Q?DD(z,Q,Z):Ul(z,y5,Z)}function xD(z,Q,Z,xe){for(var $e=Z-1,Ye=z.length;++$e<Ye;)if(xe(z[$e],Q))return $e;return-1}function y5(z){return z!==z}function C5(z,Q){var Z=z==null?0:z.length;return Z?Xf(z,Q)/Z:U}function Yf(z){return function(Q){return Q==null?n:Q[z]}}function Zf(z){return function(Q){return z==null?n:z[Q]}}function T5(z,Q,Z,xe,$e){return $e(z,function(Ye,St,tt){Z=xe?(xe=!1,Ye):Q(Z,Ye,St,tt)}),Z}function ED(z,Q){var Z=z.length;for(z.sort(Q);Z--;)z[Z]=z[Z].value;return z}function Xf(z,Q){for(var Z,xe=-1,$e=z.length;++xe<$e;){var Ye=Q(z[xe]);Ye!==n&&(Z=Z===n?Ye:Z+Ye)}return Z}function Kf(z,Q){for(var Z=-1,xe=Array(z);++Z<z;)xe[Z]=Q(Z);return xe}function wD(z,Q){return ot(Q,function(Z){return[Z,z[Z]]})}function S5(z){return z&&z.slice(0,$5(z)+1).replace(Te,"")}function yn(z){return function(Q){return z(Q)}}function Qf(z,Q){return ot(Q,function(Z){return z[Z]})}function Gs(z,Q){return z.has(Q)}function I5(z,Q){for(var Z=-1,xe=z.length;++Z<xe&&Go(Q,z[Z],0)>-1;);return Z}function O5(z,Q){for(var Z=z.length;Z--&&Go(Q,z[Z],0)>-1;);return Z}function yD(z,Q){for(var Z=z.length,xe=0;Z--;)z[Z]===Q&&++xe;return xe}var CD=Zf(aD),TD=Zf(lD);function SD(z){return"\\"+uD[z]}function ID(z,Q){return z==null?n:z[Q]}function Ho(z){return rD.test(z)}function OD(z){return iD.test(z)}function AD(z){for(var Q,Z=[];!(Q=z.next()).done;)Z.push(Q.value);return Z}function Jf(z){var Q=-1,Z=Array(z.size);return z.forEach(function(xe,$e){Z[++Q]=[$e,xe]}),Z}function A5(z,Q){return function(Z){return z(Q(Z))}}function _i(z,Q){for(var Z=-1,xe=z.length,$e=0,Ye=[];++Z<xe;){var St=z[Z];(St===Q||St===m)&&(z[Z]=m,Ye[$e++]=Z)}return Ye}function Vl(z){var Q=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++Q]=xe}),Z}function $D(z){var Q=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++Q]=[xe,xe]}),Z}function DD(z,Q,Z){for(var xe=Z-1,$e=z.length;++xe<$e;)if(z[xe]===Q)return xe;return-1}function MD(z,Q,Z){for(var xe=Z+1;xe--;)if(z[xe]===Q)return xe;return xe}function Uo(z){return Ho(z)?RD(z):vD(z)}function ur(z){return Ho(z)?ND(z):bD(z)}function $5(z){for(var Q=z.length;Q--&&qe.test(z.charAt(Q)););return Q}var PD=Zf(cD);function RD(z){for(var Q=Gf.lastIndex=0;Gf.test(z);)++Q;return Q}function ND(z){return z.match(Gf)||[]}function LD(z){return z.match(nD)||[]}var jD=function z(Q){Q=Q==null?kt:Vo.defaults(kt.Object(),Q,Vo.pick(kt,oD));var Z=Q.Array,xe=Q.Date,$e=Q.Error,Ye=Q.Function,St=Q.Math,tt=Q.Object,e1=Q.RegExp,kD=Q.String,Hn=Q.TypeError,Wl=Z.prototype,FD=Ye.prototype,Wo=tt.prototype,ql=Q["__core-js_shared__"],Yl=FD.toString,Je=Wo.hasOwnProperty,BD=0,D5=function(){var o=/[^.]+$/.exec(ql&&ql.keys&&ql.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Zl=Wo.toString,zD=Yl.call(tt),GD=kt._,HD=e1("^"+Yl.call(Je).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xl=h5?Q.Buffer:n,xi=Q.Symbol,Kl=Q.Uint8Array,M5=Xl?Xl.allocUnsafe:n,Ql=A5(tt.getPrototypeOf,tt),P5=tt.create,R5=Wo.propertyIsEnumerable,Jl=Wl.splice,N5=xi?xi.isConcatSpreadable:n,Hs=xi?xi.iterator:n,eo=xi?xi.toStringTag:n,ec=function(){try{var o=oo(tt,"defineProperty");return o({},"",{}),o}catch{}}(),UD=Q.clearTimeout!==kt.clearTimeout&&Q.clearTimeout,VD=xe&&xe.now!==kt.Date.now&&xe.now,WD=Q.setTimeout!==kt.setTimeout&&Q.setTimeout,tc=St.ceil,nc=St.floor,t1=tt.getOwnPropertySymbols,qD=Xl?Xl.isBuffer:n,L5=Q.isFinite,YD=Wl.join,ZD=A5(tt.keys,tt),It=St.max,Gt=St.min,XD=xe.now,KD=Q.parseInt,j5=St.random,QD=Wl.reverse,n1=oo(Q,"DataView"),Us=oo(Q,"Map"),r1=oo(Q,"Promise"),qo=oo(Q,"Set"),Vs=oo(Q,"WeakMap"),Ws=oo(tt,"create"),rc=Vs&&new Vs,Yo={},JD=so(n1),eM=so(Us),tM=so(r1),nM=so(qo),rM=so(Vs),ic=xi?xi.prototype:n,qs=ic?ic.valueOf:n,k5=ic?ic.toString:n;function O(o){if(ht(o)&&!De(o)&&!(o instanceof Fe)){if(o instanceof Un)return o;if(Je.call(o,"__wrapped__"))return Fb(o)}return new Un(o)}var Zo=function(){function o(){}return function(a){if(!ct(a))return{};if(P5)return P5(a);o.prototype=a;var f=new o;return o.prototype=n,f}}();function oc(){}function Un(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}O.templateSettings={escape:Lt,evaluate:Kt,interpolate:Qt,variable:"",imports:{_:O}},O.prototype=oc.prototype,O.prototype.constructor=O,Un.prototype=Zo(oc.prototype),Un.prototype.constructor=Un;function Fe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function iM(){var o=new Fe(this.__wrapped__);return o.__actions__=un(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=un(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=un(this.__views__),o}function oM(){if(this.__filtered__){var o=new Fe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function sM(){var o=this.__wrapped__.value(),a=this.__dir__,f=De(o),x=a<0,C=f?o.length:0,$=bP(0,C,this.__views__),P=$.start,F=$.end,H=F-P,ee=x?F:P-1,te=this.__iteratees__,ie=te.length,me=0,ye=Gt(H,this.__takeCount__);if(!f||!x&&C==H&&ye==H)return lb(o,this.__actions__);var Ie=[];e:for(;H--&&me<ye;){ee+=a;for(var Le=-1,Oe=o[ee];++Le<ie;){var ke=te[Le],ze=ke.iteratee,Sn=ke.type,nn=ze(Oe);if(Sn==K)Oe=nn;else if(!nn){if(Sn==N)continue e;break e}}Ie[me++]=Oe}return Ie}Fe.prototype=Zo(oc.prototype),Fe.prototype.constructor=Fe;function to(o){var a=-1,f=o==null?0:o.length;for(this.clear();++a<f;){var x=o[a];this.set(x[0],x[1])}}function aM(){this.__data__=Ws?Ws(null):{},this.size=0}function lM(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function cM(o){var a=this.__data__;if(Ws){var f=a[o];return f===u?n:f}return Je.call(a,o)?a[o]:n}function uM(o){var a=this.__data__;return Ws?a[o]!==n:Je.call(a,o)}function dM(o,a){var f=this.__data__;return this.size+=this.has(o)?0:1,f[o]=Ws&&a===n?u:a,this}to.prototype.clear=aM,to.prototype.delete=lM,to.prototype.get=cM,to.prototype.has=uM,to.prototype.set=dM;function Fr(o){var a=-1,f=o==null?0:o.length;for(this.clear();++a<f;){var x=o[a];this.set(x[0],x[1])}}function fM(){this.__data__=[],this.size=0}function pM(o){var a=this.__data__,f=sc(a,o);if(f<0)return!1;var x=a.length-1;return f==x?a.pop():Jl.call(a,f,1),--this.size,!0}function hM(o){var a=this.__data__,f=sc(a,o);return f<0?n:a[f][1]}function gM(o){return sc(this.__data__,o)>-1}function mM(o,a){var f=this.__data__,x=sc(f,o);return x<0?(++this.size,f.push([o,a])):f[x][1]=a,this}Fr.prototype.clear=fM,Fr.prototype.delete=pM,Fr.prototype.get=hM,Fr.prototype.has=gM,Fr.prototype.set=mM;function Br(o){var a=-1,f=o==null?0:o.length;for(this.clear();++a<f;){var x=o[a];this.set(x[0],x[1])}}function vM(){this.size=0,this.__data__={hash:new to,map:new(Us||Fr),string:new to}}function bM(o){var a=bc(this,o).delete(o);return this.size-=a?1:0,a}function _M(o){return bc(this,o).get(o)}function xM(o){return bc(this,o).has(o)}function EM(o,a){var f=bc(this,o),x=f.size;return f.set(o,a),this.size+=f.size==x?0:1,this}Br.prototype.clear=vM,Br.prototype.delete=bM,Br.prototype.get=_M,Br.prototype.has=xM,Br.prototype.set=EM;function no(o){var a=-1,f=o==null?0:o.length;for(this.__data__=new Br;++a<f;)this.add(o[a])}function wM(o){return this.__data__.set(o,u),this}function yM(o){return this.__data__.has(o)}no.prototype.add=no.prototype.push=wM,no.prototype.has=yM;function dr(o){var a=this.__data__=new Fr(o);this.size=a.size}function CM(){this.__data__=new Fr,this.size=0}function TM(o){var a=this.__data__,f=a.delete(o);return this.size=a.size,f}function SM(o){return this.__data__.get(o)}function IM(o){return this.__data__.has(o)}function OM(o,a){var f=this.__data__;if(f instanceof Fr){var x=f.__data__;if(!Us||x.length<i-1)return x.push([o,a]),this.size=++f.size,this;f=this.__data__=new Br(x)}return f.set(o,a),this.size=f.size,this}dr.prototype.clear=CM,dr.prototype.delete=TM,dr.prototype.get=SM,dr.prototype.has=IM,dr.prototype.set=OM;function F5(o,a){var f=De(o),x=!f&&ao(o),C=!f&&!x&&Ti(o),$=!f&&!x&&!C&&Jo(o),P=f||x||C||$,F=P?Kf(o.length,kD):[],H=F.length;for(var ee in o)(a||Je.call(o,ee))&&!(P&&(ee=="length"||C&&(ee=="offset"||ee=="parent")||$&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||Ur(ee,H)))&&F.push(ee);return F}function B5(o){var a=o.length;return a?o[h1(0,a-1)]:n}function AM(o,a){return _c(un(o),ro(a,0,o.length))}function $M(o){return _c(un(o))}function i1(o,a,f){(f!==n&&!fr(o[a],f)||f===n&&!(a in o))&&zr(o,a,f)}function Ys(o,a,f){var x=o[a];(!(Je.call(o,a)&&fr(x,f))||f===n&&!(a in o))&&zr(o,a,f)}function sc(o,a){for(var f=o.length;f--;)if(fr(o[f][0],a))return f;return-1}function DM(o,a,f,x){return Ei(o,function(C,$,P){a(x,C,f(C),P)}),x}function z5(o,a){return o&&Cr(a,Mt(a),o)}function MM(o,a){return o&&Cr(a,fn(a),o)}function zr(o,a,f){a=="__proto__"&&ec?ec(o,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):o[a]=f}function o1(o,a){for(var f=-1,x=a.length,C=Z(x),$=o==null;++f<x;)C[f]=$?n:F1(o,a[f]);return C}function ro(o,a,f){return o===o&&(f!==n&&(o=o<=f?o:f),a!==n&&(o=o>=a?o:a)),o}function Vn(o,a,f,x,C,$){var P,F=a&g,H=a&v,ee=a&b;if(f&&(P=C?f(o,x,C,$):f(o)),P!==n)return P;if(!ct(o))return o;var te=De(o);if(te){if(P=xP(o),!F)return un(o,P)}else{var ie=Ht(o),me=ie==ue||ie==bt;if(Ti(o))return db(o,F);if(ie==Rt||ie==we||me&&!C){if(P=H||me?{}:$b(o),!F)return H?cP(o,MM(P,o)):lP(o,z5(P,o))}else{if(!rt[ie])return C?o:{};P=EP(o,ie,F)}}$||($=new dr);var ye=$.get(o);if(ye)return ye;$.set(o,P),o_(o)?o.forEach(function(Oe){P.add(Vn(Oe,a,f,Oe,o,$))}):r_(o)&&o.forEach(function(Oe,ke){P.set(ke,Vn(Oe,a,f,ke,o,$))});var Ie=ee?H?T1:C1:H?fn:Mt,Le=te?n:Ie(o);return Gn(Le||o,function(Oe,ke){Le&&(ke=Oe,Oe=o[ke]),Ys(P,ke,Vn(Oe,a,f,ke,o,$))}),P}function PM(o){var a=Mt(o);return function(f){return G5(f,o,a)}}function G5(o,a,f){var x=f.length;if(o==null)return!x;for(o=tt(o);x--;){var C=f[x],$=a[C],P=o[C];if(P===n&&!(C in o)||!$(P))return!1}return!0}function H5(o,a,f){if(typeof o!="function")throw new Hn(l);return ta(function(){o.apply(n,f)},a)}function Zs(o,a,f,x){var C=-1,$=Hl,P=!0,F=o.length,H=[],ee=a.length;if(!F)return H;f&&(a=ot(a,yn(f))),x?($=Vf,P=!1):a.length>=i&&($=Gs,P=!1,a=new no(a));e:for(;++C<F;){var te=o[C],ie=f==null?te:f(te);if(te=x||te!==0?te:0,P&&ie===ie){for(var me=ee;me--;)if(a[me]===ie)continue e;H.push(te)}else $(a,ie,x)||H.push(te)}return H}var Ei=mb(yr),U5=mb(a1,!0);function RM(o,a){var f=!0;return Ei(o,function(x,C,$){return f=!!a(x,C,$),f}),f}function ac(o,a,f){for(var x=-1,C=o.length;++x<C;){var $=o[x],P=a($);if(P!=null&&(F===n?P===P&&!Tn(P):f(P,F)))var F=P,H=$}return H}function NM(o,a,f,x){var C=o.length;for(f=Re(f),f<0&&(f=-f>C?0:C+f),x=x===n||x>C?C:Re(x),x<0&&(x+=C),x=f>x?0:a_(x);f<x;)o[f++]=a;return o}function V5(o,a){var f=[];return Ei(o,function(x,C,$){a(x,C,$)&&f.push(x)}),f}function Ft(o,a,f,x,C){var $=-1,P=o.length;for(f||(f=yP),C||(C=[]);++$<P;){var F=o[$];a>0&&f(F)?a>1?Ft(F,a-1,f,x,C):bi(C,F):x||(C[C.length]=F)}return C}var s1=vb(),W5=vb(!0);function yr(o,a){return o&&s1(o,a,Mt)}function a1(o,a){return o&&W5(o,a,Mt)}function lc(o,a){return vi(a,function(f){return Vr(o[f])})}function io(o,a){a=yi(a,o);for(var f=0,x=a.length;o!=null&&f<x;)o=o[Tr(a[f++])];return f&&f==x?o:n}function q5(o,a,f){var x=a(o);return De(o)?x:bi(x,f(o))}function en(o){return o==null?o===n?Qi:En:eo&&eo in tt(o)?vP(o):$P(o)}function l1(o,a){return o>a}function LM(o,a){return o!=null&&Je.call(o,a)}function jM(o,a){return o!=null&&a in tt(o)}function kM(o,a,f){return o>=Gt(a,f)&&o<It(a,f)}function c1(o,a,f){for(var x=f?Vf:Hl,C=o[0].length,$=o.length,P=$,F=Z($),H=1/0,ee=[];P--;){var te=o[P];P&&a&&(te=ot(te,yn(a))),H=Gt(te.length,H),F[P]=!f&&(a||C>=120&&te.length>=120)?new no(P&&te):n}te=o[0];var ie=-1,me=F[0];e:for(;++ie<C&&ee.length<H;){var ye=te[ie],Ie=a?a(ye):ye;if(ye=f||ye!==0?ye:0,!(me?Gs(me,Ie):x(ee,Ie,f))){for(P=$;--P;){var Le=F[P];if(!(Le?Gs(Le,Ie):x(o[P],Ie,f)))continue e}me&&me.push(Ie),ee.push(ye)}}return ee}function FM(o,a,f,x){return yr(o,function(C,$,P){a(x,f(C),$,P)}),x}function Xs(o,a,f){a=yi(a,o),o=Rb(o,a);var x=o==null?o:o[Tr(qn(a))];return x==null?n:wn(x,o,f)}function Y5(o){return ht(o)&&en(o)==we}function BM(o){return ht(o)&&en(o)==ln}function zM(o){return ht(o)&&en(o)==be}function Ks(o,a,f,x,C){return o===a?!0:o==null||a==null||!ht(o)&&!ht(a)?o!==o&&a!==a:GM(o,a,f,x,Ks,C)}function GM(o,a,f,x,C,$){var P=De(o),F=De(a),H=P?ne:Ht(o),ee=F?ne:Ht(a);H=H==we?Rt:H,ee=ee==we?Rt:ee;var te=H==Rt,ie=ee==Rt,me=H==ee;if(me&&Ti(o)){if(!Ti(a))return!1;P=!0,te=!1}if(me&&!te)return $||($=new dr),P||Jo(o)?Ib(o,a,f,x,C,$):gP(o,a,H,f,x,C,$);if(!(f&E)){var ye=te&&Je.call(o,"__wrapped__"),Ie=ie&&Je.call(a,"__wrapped__");if(ye||Ie){var Le=ye?o.value():o,Oe=Ie?a.value():a;return $||($=new dr),C(Le,Oe,f,x,$)}}return me?($||($=new dr),mP(o,a,f,x,C,$)):!1}function HM(o){return ht(o)&&Ht(o)==Ke}function u1(o,a,f,x){var C=f.length,$=C,P=!x;if(o==null)return!$;for(o=tt(o);C--;){var F=f[C];if(P&&F[2]?F[1]!==o[F[0]]:!(F[0]in o))return!1}for(;++C<$;){F=f[C];var H=F[0],ee=o[H],te=F[1];if(P&&F[2]){if(ee===n&&!(H in o))return!1}else{var ie=new dr;if(x)var me=x(ee,te,H,o,a,ie);if(!(me===n?Ks(te,ee,E|_,x,ie):me))return!1}}return!0}function Z5(o){if(!ct(o)||TP(o))return!1;var a=Vr(o)?HD:P$;return a.test(so(o))}function UM(o){return ht(o)&&en(o)==ft}function VM(o){return ht(o)&&Ht(o)==yt}function WM(o){return ht(o)&&Tc(o.length)&&!!it[en(o)]}function X5(o){return typeof o=="function"?o:o==null?pn:typeof o=="object"?De(o)?J5(o[0],o[1]):Q5(o):b_(o)}function d1(o){if(!ea(o))return ZD(o);var a=[];for(var f in tt(o))Je.call(o,f)&&f!="constructor"&&a.push(f);return a}function qM(o){if(!ct(o))return AP(o);var a=ea(o),f=[];for(var x in o)x=="constructor"&&(a||!Je.call(o,x))||f.push(x);return f}function f1(o,a){return o<a}function K5(o,a){var f=-1,x=dn(o)?Z(o.length):[];return Ei(o,function(C,$,P){x[++f]=a(C,$,P)}),x}function Q5(o){var a=I1(o);return a.length==1&&a[0][2]?Mb(a[0][0],a[0][1]):function(f){return f===o||u1(f,o,a)}}function J5(o,a){return A1(o)&&Db(a)?Mb(Tr(o),a):function(f){var x=F1(f,o);return x===n&&x===a?B1(f,o):Ks(a,x,E|_)}}function cc(o,a,f,x,C){o!==a&&s1(a,function($,P){if(C||(C=new dr),ct($))YM(o,a,P,f,cc,x,C);else{var F=x?x(D1(o,P),$,P+"",o,a,C):n;F===n&&(F=$),i1(o,P,F)}},fn)}function YM(o,a,f,x,C,$,P){var F=D1(o,f),H=D1(a,f),ee=P.get(H);if(ee){i1(o,f,ee);return}var te=$?$(F,H,f+"",o,a,P):n,ie=te===n;if(ie){var me=De(H),ye=!me&&Ti(H),Ie=!me&&!ye&&Jo(H);te=H,me||ye||Ie?De(F)?te=F:_t(F)?te=un(F):ye?(ie=!1,te=db(H,!0)):Ie?(ie=!1,te=fb(H,!0)):te=[]:na(H)||ao(H)?(te=F,ao(F)?te=l_(F):(!ct(F)||Vr(F))&&(te=$b(H))):ie=!1}ie&&(P.set(H,te),C(te,H,x,$,P),P.delete(H)),i1(o,f,te)}function eb(o,a){var f=o.length;if(f)return a+=a<0?f:0,Ur(a,f)?o[a]:n}function tb(o,a,f){a.length?a=ot(a,function($){return De($)?function(P){return io(P,$.length===1?$[0]:$)}:$}):a=[pn];var x=-1;a=ot(a,yn(Se()));var C=K5(o,function($,P,F){var H=ot(a,function(ee){return ee($)});return{criteria:H,index:++x,value:$}});return ED(C,function($,P){return aP($,P,f)})}function ZM(o,a){return nb(o,a,function(f,x){return B1(o,x)})}function nb(o,a,f){for(var x=-1,C=a.length,$={};++x<C;){var P=a[x],F=io(o,P);f(F,P)&&Qs($,yi(P,o),F)}return $}function XM(o){return function(a){return io(a,o)}}function p1(o,a,f,x){var C=x?xD:Go,$=-1,P=a.length,F=o;for(o===a&&(a=un(a)),f&&(F=ot(o,yn(f)));++$<P;)for(var H=0,ee=a[$],te=f?f(ee):ee;(H=C(F,te,H,x))>-1;)F!==o&&Jl.call(F,H,1),Jl.call(o,H,1);return o}function rb(o,a){for(var f=o?a.length:0,x=f-1;f--;){var C=a[f];if(f==x||C!==$){var $=C;Ur(C)?Jl.call(o,C,1):v1(o,C)}}return o}function h1(o,a){return o+nc(j5()*(a-o+1))}function KM(o,a,f,x){for(var C=-1,$=It(tc((a-o)/(f||1)),0),P=Z($);$--;)P[x?$:++C]=o,o+=f;return P}function g1(o,a){var f="";if(!o||a<1||a>J)return f;do a%2&&(f+=o),a=nc(a/2),a&&(o+=o);while(a);return f}function je(o,a){return M1(Pb(o,a,pn),o+"")}function QM(o){return B5(es(o))}function JM(o,a){var f=es(o);return _c(f,ro(a,0,f.length))}function Qs(o,a,f,x){if(!ct(o))return o;a=yi(a,o);for(var C=-1,$=a.length,P=$-1,F=o;F!=null&&++C<$;){var H=Tr(a[C]),ee=f;if(H==="__proto__"||H==="constructor"||H==="prototype")return o;if(C!=P){var te=F[H];ee=x?x(te,H,F):n,ee===n&&(ee=ct(te)?te:Ur(a[C+1])?[]:{})}Ys(F,H,ee),F=F[H]}return o}var ib=rc?function(o,a){return rc.set(o,a),o}:pn,eP=ec?function(o,a){return ec(o,"toString",{configurable:!0,enumerable:!1,value:G1(a),writable:!0})}:pn;function tP(o){return _c(es(o))}function Wn(o,a,f){var x=-1,C=o.length;a<0&&(a=-a>C?0:C+a),f=f>C?C:f,f<0&&(f+=C),C=a>f?0:f-a>>>0,a>>>=0;for(var $=Z(C);++x<C;)$[x]=o[x+a];return $}function nP(o,a){var f;return Ei(o,function(x,C,$){return f=a(x,C,$),!f}),!!f}function uc(o,a,f){var x=0,C=o==null?x:o.length;if(typeof a=="number"&&a===a&&C<=de){for(;x<C;){var $=x+C>>>1,P=o[$];P!==null&&!Tn(P)&&(f?P<=a:P<a)?x=$+1:C=$}return C}return m1(o,a,pn,f)}function m1(o,a,f,x){var C=0,$=o==null?0:o.length;if($===0)return 0;a=f(a);for(var P=a!==a,F=a===null,H=Tn(a),ee=a===n;C<$;){var te=nc((C+$)/2),ie=f(o[te]),me=ie!==n,ye=ie===null,Ie=ie===ie,Le=Tn(ie);if(P)var Oe=x||Ie;else ee?Oe=Ie&&(x||me):F?Oe=Ie&&me&&(x||!ye):H?Oe=Ie&&me&&!ye&&(x||!Le):ye||Le?Oe=!1:Oe=x?ie<=a:ie<a;Oe?C=te+1:$=te}return Gt($,ce)}function ob(o,a){for(var f=-1,x=o.length,C=0,$=[];++f<x;){var P=o[f],F=a?a(P):P;if(!f||!fr(F,H)){var H=F;$[C++]=P===0?0:P}}return $}function sb(o){return typeof o=="number"?o:Tn(o)?U:+o}function Cn(o){if(typeof o=="string")return o;if(De(o))return ot(o,Cn)+"";if(Tn(o))return k5?k5.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function wi(o,a,f){var x=-1,C=Hl,$=o.length,P=!0,F=[],H=F;if(f)P=!1,C=Vf;else if($>=i){var ee=a?null:pP(o);if(ee)return Vl(ee);P=!1,C=Gs,H=new no}else H=a?[]:F;e:for(;++x<$;){var te=o[x],ie=a?a(te):te;if(te=f||te!==0?te:0,P&&ie===ie){for(var me=H.length;me--;)if(H[me]===ie)continue e;a&&H.push(ie),F.push(te)}else C(H,ie,f)||(H!==F&&H.push(ie),F.push(te))}return F}function v1(o,a){return a=yi(a,o),o=Rb(o,a),o==null||delete o[Tr(qn(a))]}function ab(o,a,f,x){return Qs(o,a,f(io(o,a)),x)}function dc(o,a,f,x){for(var C=o.length,$=x?C:-1;(x?$--:++$<C)&&a(o[$],$,o););return f?Wn(o,x?0:$,x?$+1:C):Wn(o,x?$+1:0,x?C:$)}function lb(o,a){var f=o;return f instanceof Fe&&(f=f.value()),Wf(a,function(x,C){return C.func.apply(C.thisArg,bi([x],C.args))},f)}function b1(o,a,f){var x=o.length;if(x<2)return x?wi(o[0]):[];for(var C=-1,$=Z(x);++C<x;)for(var P=o[C],F=-1;++F<x;)F!=C&&($[C]=Zs($[C]||P,o[F],a,f));return wi(Ft($,1),a,f)}function cb(o,a,f){for(var x=-1,C=o.length,$=a.length,P={};++x<C;){var F=x<$?a[x]:n;f(P,o[x],F)}return P}function _1(o){return _t(o)?o:[]}function x1(o){return typeof o=="function"?o:pn}function yi(o,a){return De(o)?o:A1(o,a)?[o]:kb(Qe(o))}var rP=je;function Ci(o,a,f){var x=o.length;return f=f===n?x:f,!a&&f>=x?o:Wn(o,a,f)}var ub=UD||function(o){return kt.clearTimeout(o)};function db(o,a){if(a)return o.slice();var f=o.length,x=M5?M5(f):new o.constructor(f);return o.copy(x),x}function E1(o){var a=new o.constructor(o.byteLength);return new Kl(a).set(new Kl(o)),a}function iP(o,a){var f=a?E1(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function oP(o){var a=new o.constructor(o.source,kr.exec(o));return a.lastIndex=o.lastIndex,a}function sP(o){return qs?tt(qs.call(o)):{}}function fb(o,a){var f=a?E1(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function pb(o,a){if(o!==a){var f=o!==n,x=o===null,C=o===o,$=Tn(o),P=a!==n,F=a===null,H=a===a,ee=Tn(a);if(!F&&!ee&&!$&&o>a||$&&P&&H&&!F&&!ee||x&&P&&H||!f&&H||!C)return 1;if(!x&&!$&&!ee&&o<a||ee&&f&&C&&!x&&!$||F&&f&&C||!P&&C||!H)return-1}return 0}function aP(o,a,f){for(var x=-1,C=o.criteria,$=a.criteria,P=C.length,F=f.length;++x<P;){var H=pb(C[x],$[x]);if(H){if(x>=F)return H;var ee=f[x];return H*(ee=="desc"?-1:1)}}return o.index-a.index}function hb(o,a,f,x){for(var C=-1,$=o.length,P=f.length,F=-1,H=a.length,ee=It($-P,0),te=Z(H+ee),ie=!x;++F<H;)te[F]=a[F];for(;++C<P;)(ie||C<$)&&(te[f[C]]=o[C]);for(;ee--;)te[F++]=o[C++];return te}function gb(o,a,f,x){for(var C=-1,$=o.length,P=-1,F=f.length,H=-1,ee=a.length,te=It($-F,0),ie=Z(te+ee),me=!x;++C<te;)ie[C]=o[C];for(var ye=C;++H<ee;)ie[ye+H]=a[H];for(;++P<F;)(me||C<$)&&(ie[ye+f[P]]=o[C++]);return ie}function un(o,a){var f=-1,x=o.length;for(a||(a=Z(x));++f<x;)a[f]=o[f];return a}function Cr(o,a,f,x){var C=!f;f||(f={});for(var $=-1,P=a.length;++$<P;){var F=a[$],H=x?x(f[F],o[F],F,f,o):n;H===n&&(H=o[F]),C?zr(f,F,H):Ys(f,F,H)}return f}function lP(o,a){return Cr(o,O1(o),a)}function cP(o,a){return Cr(o,Ob(o),a)}function fc(o,a){return function(f,x){var C=De(f)?hD:DM,$=a?a():{};return C(f,o,Se(x,2),$)}}function Xo(o){return je(function(a,f){var x=-1,C=f.length,$=C>1?f[C-1]:n,P=C>2?f[2]:n;for($=o.length>3&&typeof $=="function"?(C--,$):n,P&&tn(f[0],f[1],P)&&($=C<3?n:$,C=1),a=tt(a);++x<C;){var F=f[x];F&&o(a,F,x,$)}return a})}function mb(o,a){return function(f,x){if(f==null)return f;if(!dn(f))return o(f,x);for(var C=f.length,$=a?C:-1,P=tt(f);(a?$--:++$<C)&&x(P[$],$,P)!==!1;);return f}}function vb(o){return function(a,f,x){for(var C=-1,$=tt(a),P=x(a),F=P.length;F--;){var H=P[o?F:++C];if(f($[H],H,$)===!1)break}return a}}function uP(o,a,f){var x=a&w,C=Js(o);function $(){var P=this&&this!==kt&&this instanceof $?C:o;return P.apply(x?f:this,arguments)}return $}function bb(o){return function(a){a=Qe(a);var f=Ho(a)?ur(a):n,x=f?f[0]:a.charAt(0),C=f?Ci(f,1).join(""):a.slice(1);return x[o]()+C}}function Ko(o){return function(a){return Wf(m_(g_(a).replace(eD,"")),o,"")}}function Js(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Zo(o.prototype),x=o.apply(f,a);return ct(x)?x:f}}function dP(o,a,f){var x=Js(o);function C(){for(var $=arguments.length,P=Z($),F=$,H=Qo(C);F--;)P[F]=arguments[F];var ee=$<3&&P[0]!==H&&P[$-1]!==H?[]:_i(P,H);if($-=ee.length,$<f)return yb(o,a,pc,C.placeholder,n,P,ee,n,n,f-$);var te=this&&this!==kt&&this instanceof C?x:o;return wn(te,this,P)}return C}function _b(o){return function(a,f,x){var C=tt(a);if(!dn(a)){var $=Se(f,3);a=Mt(a),f=function(F){return $(C[F],F,C)}}var P=o(a,f,x);return P>-1?C[$?a[P]:P]:n}}function xb(o){return Hr(function(a){var f=a.length,x=f,C=Un.prototype.thru;for(o&&a.reverse();x--;){var $=a[x];if(typeof $!="function")throw new Hn(l);if(C&&!P&&vc($)=="wrapper")var P=new Un([],!0)}for(x=P?x:f;++x<f;){$=a[x];var F=vc($),H=F=="wrapper"?S1($):n;H&&$1(H[0])&&H[1]==(R|T|I|D)&&!H[4].length&&H[9]==1?P=P[vc(H[0])].apply(P,H[3]):P=$.length==1&&$1($)?P[F]():P.thru($)}return function(){var ee=arguments,te=ee[0];if(P&&ee.length==1&&De(te))return P.plant(te).value();for(var ie=0,me=f?a[ie].apply(this,ee):te;++ie<f;)me=a[ie].call(this,me);return me}})}function pc(o,a,f,x,C,$,P,F,H,ee){var te=a&R,ie=a&w,me=a&y,ye=a&(T|A),Ie=a&k,Le=me?n:Js(o);function Oe(){for(var ke=arguments.length,ze=Z(ke),Sn=ke;Sn--;)ze[Sn]=arguments[Sn];if(ye)var nn=Qo(Oe),In=yD(ze,nn);if(x&&(ze=hb(ze,x,C,ye)),$&&(ze=gb(ze,$,P,ye)),ke-=In,ye&&ke<ee){var xt=_i(ze,nn);return yb(o,a,pc,Oe.placeholder,f,ze,xt,F,H,ee-ke)}var pr=ie?f:this,qr=me?pr[o]:o;return ke=ze.length,F?ze=DP(ze,F):Ie&&ke>1&&ze.reverse(),te&&H<ke&&(ze.length=H),this&&this!==kt&&this instanceof Oe&&(qr=Le||Js(qr)),qr.apply(pr,ze)}return Oe}function Eb(o,a){return function(f,x){return FM(f,o,a(x),{})}}function hc(o,a){return function(f,x){var C;if(f===n&&x===n)return a;if(f!==n&&(C=f),x!==n){if(C===n)return x;typeof f=="string"||typeof x=="string"?(f=Cn(f),x=Cn(x)):(f=sb(f),x=sb(x)),C=o(f,x)}return C}}function w1(o){return Hr(function(a){return a=ot(a,yn(Se())),je(function(f){var x=this;return o(a,function(C){return wn(C,x,f)})})})}function gc(o,a){a=a===n?" ":Cn(a);var f=a.length;if(f<2)return f?g1(a,o):a;var x=g1(a,tc(o/Uo(a)));return Ho(a)?Ci(ur(x),0,o).join(""):x.slice(0,o)}function fP(o,a,f,x){var C=a&w,$=Js(o);function P(){for(var F=-1,H=arguments.length,ee=-1,te=x.length,ie=Z(te+H),me=this&&this!==kt&&this instanceof P?$:o;++ee<te;)ie[ee]=x[ee];for(;H--;)ie[ee++]=arguments[++F];return wn(me,C?f:this,ie)}return P}function wb(o){return function(a,f,x){return x&&typeof x!="number"&&tn(a,f,x)&&(f=x=n),a=Wr(a),f===n?(f=a,a=0):f=Wr(f),x=x===n?a<f?1:-1:Wr(x),KM(a,f,x,o)}}function mc(o){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Yn(a),f=Yn(f)),o(a,f)}}function yb(o,a,f,x,C,$,P,F,H,ee){var te=a&T,ie=te?P:n,me=te?n:P,ye=te?$:n,Ie=te?n:$;a|=te?I:M,a&=~(te?M:I),a&S||(a&=-4);var Le=[o,a,C,ye,ie,Ie,me,F,H,ee],Oe=f.apply(n,Le);return $1(o)&&Nb(Oe,Le),Oe.placeholder=x,Lb(Oe,o,a)}function y1(o){var a=St[o];return function(f,x){if(f=Yn(f),x=x==null?0:Gt(Re(x),292),x&&L5(f)){var C=(Qe(f)+"e").split("e"),$=a(C[0]+"e"+(+C[1]+x));return C=(Qe($)+"e").split("e"),+(C[0]+"e"+(+C[1]-x))}return a(f)}}var pP=qo&&1/Vl(new qo([,-0]))[1]==W?function(o){return new qo(o)}:V1;function Cb(o){return function(a){var f=Ht(a);return f==Ke?Jf(a):f==yt?$D(a):wD(a,o(a))}}function Gr(o,a,f,x,C,$,P,F){var H=a&y;if(!H&&typeof o!="function")throw new Hn(l);var ee=x?x.length:0;if(ee||(a&=-97,x=C=n),P=P===n?P:It(Re(P),0),F=F===n?F:Re(F),ee-=C?C.length:0,a&M){var te=x,ie=C;x=C=n}var me=H?n:S1(o),ye=[o,a,f,x,C,te,ie,$,P,F];if(me&&OP(ye,me),o=ye[0],a=ye[1],f=ye[2],x=ye[3],C=ye[4],F=ye[9]=ye[9]===n?H?0:o.length:It(ye[9]-ee,0),!F&&a&(T|A)&&(a&=-25),!a||a==w)var Ie=uP(o,a,f);else a==T||a==A?Ie=dP(o,a,F):(a==I||a==(w|I))&&!C.length?Ie=fP(o,a,f,x):Ie=pc.apply(n,ye);var Le=me?ib:Nb;return Lb(Le(Ie,ye),o,a)}function Tb(o,a,f,x){return o===n||fr(o,Wo[f])&&!Je.call(x,f)?a:o}function Sb(o,a,f,x,C,$){return ct(o)&&ct(a)&&($.set(a,o),cc(o,a,n,Sb,$),$.delete(a)),o}function hP(o){return na(o)?n:o}function Ib(o,a,f,x,C,$){var P=f&E,F=o.length,H=a.length;if(F!=H&&!(P&&H>F))return!1;var ee=$.get(o),te=$.get(a);if(ee&&te)return ee==a&&te==o;var ie=-1,me=!0,ye=f&_?new no:n;for($.set(o,a),$.set(a,o);++ie<F;){var Ie=o[ie],Le=a[ie];if(x)var Oe=P?x(Le,Ie,ie,a,o,$):x(Ie,Le,ie,o,a,$);if(Oe!==n){if(Oe)continue;me=!1;break}if(ye){if(!qf(a,function(ke,ze){if(!Gs(ye,ze)&&(Ie===ke||C(Ie,ke,f,x,$)))return ye.push(ze)})){me=!1;break}}else if(!(Ie===Le||C(Ie,Le,f,x,$))){me=!1;break}}return $.delete(o),$.delete(a),me}function gP(o,a,f,x,C,$,P){switch(f){case Xt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case ln:return!(o.byteLength!=a.byteLength||!$(new Kl(o),new Kl(a)));case ge:case be:case wt:return fr(+o,+a);case We:return o.name==a.name&&o.message==a.message;case ft:case kn:return o==a+"";case Ke:var F=Jf;case yt:var H=x&E;if(F||(F=Vl),o.size!=a.size&&!H)return!1;var ee=P.get(o);if(ee)return ee==a;x|=_,P.set(o,a);var te=Ib(F(o),F(a),x,C,$,P);return P.delete(o),te;case _r:if(qs)return qs.call(o)==qs.call(a)}return!1}function mP(o,a,f,x,C,$){var P=f&E,F=C1(o),H=F.length,ee=C1(a),te=ee.length;if(H!=te&&!P)return!1;for(var ie=H;ie--;){var me=F[ie];if(!(P?me in a:Je.call(a,me)))return!1}var ye=$.get(o),Ie=$.get(a);if(ye&&Ie)return ye==a&&Ie==o;var Le=!0;$.set(o,a),$.set(a,o);for(var Oe=P;++ie<H;){me=F[ie];var ke=o[me],ze=a[me];if(x)var Sn=P?x(ze,ke,me,a,o,$):x(ke,ze,me,o,a,$);if(!(Sn===n?ke===ze||C(ke,ze,f,x,$):Sn)){Le=!1;break}Oe||(Oe=me=="constructor")}if(Le&&!Oe){var nn=o.constructor,In=a.constructor;nn!=In&&"constructor"in o&&"constructor"in a&&!(typeof nn=="function"&&nn instanceof nn&&typeof In=="function"&&In instanceof In)&&(Le=!1)}return $.delete(o),$.delete(a),Le}function Hr(o){return M1(Pb(o,n,Gb),o+"")}function C1(o){return q5(o,Mt,O1)}function T1(o){return q5(o,fn,Ob)}var S1=rc?function(o){return rc.get(o)}:V1;function vc(o){for(var a=o.name+"",f=Yo[a],x=Je.call(Yo,a)?f.length:0;x--;){var C=f[x],$=C.func;if($==null||$==o)return C.name}return a}function Qo(o){var a=Je.call(O,"placeholder")?O:o;return a.placeholder}function Se(){var o=O.iteratee||H1;return o=o===H1?X5:o,arguments.length?o(arguments[0],arguments[1]):o}function bc(o,a){var f=o.__data__;return CP(a)?f[typeof a=="string"?"string":"hash"]:f.map}function I1(o){for(var a=Mt(o),f=a.length;f--;){var x=a[f],C=o[x];a[f]=[x,C,Db(C)]}return a}function oo(o,a){var f=ID(o,a);return Z5(f)?f:n}function vP(o){var a=Je.call(o,eo),f=o[eo];try{o[eo]=n;var x=!0}catch{}var C=Zl.call(o);return x&&(a?o[eo]=f:delete o[eo]),C}var O1=t1?function(o){return o==null?[]:(o=tt(o),vi(t1(o),function(a){return R5.call(o,a)}))}:W1,Ob=t1?function(o){for(var a=[];o;)bi(a,O1(o)),o=Ql(o);return a}:W1,Ht=en;(n1&&Ht(new n1(new ArrayBuffer(1)))!=Xt||Us&&Ht(new Us)!=Ke||r1&&Ht(r1.resolve())!=jn||qo&&Ht(new qo)!=yt||Vs&&Ht(new Vs)!=Nr)&&(Ht=function(o){var a=en(o),f=a==Rt?o.constructor:n,x=f?so(f):"";if(x)switch(x){case JD:return Xt;case eM:return Ke;case tM:return jn;case nM:return yt;case rM:return Nr}return a});function bP(o,a,f){for(var x=-1,C=f.length;++x<C;){var $=f[x],P=$.size;switch($.type){case"drop":o+=P;break;case"dropRight":a-=P;break;case"take":a=Gt(a,o+P);break;case"takeRight":o=It(o,a-P);break}}return{start:o,end:a}}function _P(o){var a=o.match(Me);return a?a[1].split(Pe):[]}function Ab(o,a,f){a=yi(a,o);for(var x=-1,C=a.length,$=!1;++x<C;){var P=Tr(a[x]);if(!($=o!=null&&f(o,P)))break;o=o[P]}return $||++x!=C?$:(C=o==null?0:o.length,!!C&&Tc(C)&&Ur(P,C)&&(De(o)||ao(o)))}function xP(o){var a=o.length,f=new o.constructor(a);return a&&typeof o[0]=="string"&&Je.call(o,"index")&&(f.index=o.index,f.input=o.input),f}function $b(o){return typeof o.constructor=="function"&&!ea(o)?Zo(Ql(o)):{}}function EP(o,a,f){var x=o.constructor;switch(a){case ln:return E1(o);case ge:case be:return new x(+o);case Xt:return iP(o,f);case ar:case gi:case cn:case xr:case mi:case Fn:case Er:case Lr:case jr:return fb(o,f);case Ke:return new x;case wt:case kn:return new x(o);case ft:return oP(o);case yt:return new x;case _r:return sP(o)}}function wP(o,a){var f=a.length;if(!f)return o;var x=f-1;return a[x]=(f>1?"& ":"")+a[x],a=a.join(f>2?", ":" "),o.replace(Be,`{
|
|
79
83
|
/* [wrapped with `+a+`] */
|
|
80
|
-
`)}function mP(i){return De(i)||ao(i)||!!(N5&&i&&i[N5])}function Ur(i,a){var f=typeof i;return a=a??Q,!!a&&(f=="number"||f!="symbol"&&A$.test(i))&&i>-1&&i%1==0&&i<a}function tn(i,a,f){if(!ct(f))return!1;var x=typeof a;return(x=="number"?un(f)&&Ur(a,f.length):x=="string"&&a in f)?pr(f[a],i):!1}function A1(i,a){if(De(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Sn(i)?!0:Jt.test(i)||!wr.test(i)||a!=null&&i in tt(a)}function vP(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function O1(i){var a=bc(i),f=A[a];if(typeof f!="function"||!(a in Fe.prototype))return!1;if(i===f)return!0;var x=T1(f);return!!x&&i===x[0]}function bP(i){return!!D5&&D5 in i}var _P=Yl?Hr:W1;function ea(i){var a=i&&i.constructor,f=typeof a=="function"&&a.prototype||qo;return i===f}function Db(i){return i===i&&!ct(i)}function Mb(i,a){return function(f){return f==null?!1:f[i]===a&&(a!==n||i in tt(f))}}function xP(i){var a=Cc(i,function(x){return f.size===p&&f.clear(),x}),f=a.cache;return a}function EP(i,a){var f=i[1],x=a[1],C=f|x,$=C<(w|y|R),P=x==R&&f==T||x==R&&f==D&&i[7].length<=a[8]||x==(R|D)&&a[7].length<=a[8]&&f==T;if(!($||P))return i;x&w&&(i[2]=a[2],C|=f&w?0:S);var F=a[3];if(F){var H=i[3];i[3]=H?hb(H,F,a[4]):F,i[4]=H?xi(i[3],m):a[4]}return F=a[5],F&&(H=i[5],i[5]=H?gb(H,F,a[6]):F,i[6]=H?xi(i[5],m):a[6]),F=a[7],F&&(i[7]=F),x&R&&(i[8]=i[8]==null?a[8]:Ut(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=C,i}function wP(i){var a=[];if(i!=null)for(var f in tt(i))a.push(f);return a}function yP(i){return Xl.call(i)}function Pb(i,a,f){return a=It(a===n?i.length-1:a,0),function(){for(var x=arguments,C=-1,$=It(x.length-a,0),P=Z($);++C<$;)P[C]=x[a+C];C=-1;for(var F=Z(a+1);++C<a;)F[C]=x[C];return F[a]=f(P),yn(i,this,F)}}function Rb(i,a){return a.length<2?i:io(i,qn(a,0,-1))}function CP(i,a){for(var f=i.length,x=Ut(a.length,f),C=dn(i);x--;){var $=a[x];i[x]=Ur($,f)?C[$]:n}return i}function $1(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var Nb=jb(ib),ta=FD||function(i,a){return jt.setTimeout(i,a)},D1=jb(qM);function Lb(i,a,f){var x=a+"";return D1(i,gP(x,TP(fP(x),f)))}function jb(i){var a=0,f=0;return function(){var x=UD(),C=X-(x-f);if(f=x,C>0){if(++a>=U)return arguments[0]}else a=0;return i.apply(n,arguments)}}function xc(i,a){var f=-1,x=i.length,C=x-1;for(a=a===n?x:a;++f<a;){var $=p1(f,C),P=i[$];i[$]=i[f],i[f]=P}return i.length=a,i}var kb=xP(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(jr,function(f,x,C,$){a.push(C?$.replace(lt,"$1"):x||f)}),a});function Tr(i){if(typeof i=="string"||Sn(i))return i;var a=i+"";return a=="0"&&1/i==-V?"-0":a}function so(i){if(i!=null){try{return Zl.call(i)}catch{}try{return i+""}catch{}}return""}function TP(i,a){return Un(fe,function(f){var x="_."+f[0];a&f[1]&&!Hl(i,x)&&i.push(x)}),i.sort()}function Fb(i){if(i instanceof Fe)return i.clone();var a=new Vn(i.__wrapped__,i.__chain__);return a.__actions__=dn(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function SP(i,a,f){(f?tn(i,a,f):a===n)?a=1:a=It(Me(a),0);var x=i==null?0:i.length;if(!x||a<1)return[];for(var C=0,$=0,P=Z(nc(x/a));C<x;)P[$++]=qn(i,C,C+=a);return P}function IP(i){for(var a=-1,f=i==null?0:i.length,x=0,C=[];++a<f;){var $=i[a];$&&(C[x++]=$)}return C}function AP(){var i=arguments.length;if(!i)return[];for(var a=Z(i-1),f=arguments[0],x=i;x--;)a[x-1]=arguments[x];return _i(De(f)?dn(f):[f],kt(a,1))}var OP=Le(function(i,a){return _t(i)?Zs(i,kt(a,1,_t,!0)):[]}),$P=Le(function(i,a){var f=Yn(a);return _t(f)&&(f=n),_t(i)?Zs(i,kt(a,1,_t,!0),Se(f,2)):[]}),DP=Le(function(i,a){var f=Yn(a);return _t(f)&&(f=n),_t(i)?Zs(i,kt(a,1,_t,!0),n,f):[]});function MP(i,a,f){var x=i==null?0:i.length;return x?(a=f||a===n?1:Me(a),qn(i,a<0?0:a,x)):[]}function PP(i,a,f){var x=i==null?0:i.length;return x?(a=f||a===n?1:Me(a),a=x-a,qn(i,0,a<0?0:a)):[]}function RP(i,a){return i&&i.length?fc(i,Se(a,3),!0,!0):[]}function NP(i,a){return i&&i.length?fc(i,Se(a,3),!0):[]}function LP(i,a,f,x){var C=i==null?0:i.length;return C?(f&&typeof f!="number"&&tn(i,a,f)&&(f=0,x=C),AM(i,a,f,x)):[]}function Bb(i,a,f){var x=i==null?0:i.length;if(!x)return-1;var C=f==null?0:Me(f);return C<0&&(C=It(x+C,0)),Vl(i,Se(a,3),C)}function zb(i,a,f){var x=i==null?0:i.length;if(!x)return-1;var C=x-1;return f!==n&&(C=Me(f),C=f<0?It(x+C,0):Ut(C,x-1)),Vl(i,Se(a,3),C,!0)}function Gb(i){var a=i==null?0:i.length;return a?kt(i,1):[]}function jP(i){var a=i==null?0:i.length;return a?kt(i,V):[]}function kP(i,a){var f=i==null?0:i.length;return f?(a=a===n?1:Me(a),kt(i,a)):[]}function FP(i){for(var a=-1,f=i==null?0:i.length,x={};++a<f;){var C=i[a];x[C[0]]=C[1]}return x}function Ub(i){return i&&i.length?i[0]:n}function BP(i,a,f){var x=i==null?0:i.length;if(!x)return-1;var C=f==null?0:Me(f);return C<0&&(C=It(x+C,0)),Uo(i,a,C)}function zP(i){var a=i==null?0:i.length;return a?qn(i,0,-1):[]}var GP=Le(function(i){var a=st(i,b1);return a.length&&a[0]===i[0]?l1(a):[]}),UP=Le(function(i){var a=Yn(i),f=st(i,b1);return a===Yn(f)?a=n:f.pop(),f.length&&f[0]===i[0]?l1(f,Se(a,2)):[]}),HP=Le(function(i){var a=Yn(i),f=st(i,b1);return a=typeof a=="function"?a:n,a&&f.pop(),f.length&&f[0]===i[0]?l1(f,n,a):[]});function VP(i,a){return i==null?"":zD.call(i,a)}function Yn(i){var a=i==null?0:i.length;return a?i[a-1]:n}function WP(i,a,f){var x=i==null?0:i.length;if(!x)return-1;var C=x;return f!==n&&(C=Me(f),C=C<0?It(x+C,0):Ut(C,x-1)),a===a?TD(i,a,C):Vl(i,y5,C,!0)}function qP(i,a){return i&&i.length?eb(i,Me(a)):n}var YP=Le(Hb);function Hb(i,a){return i&&i.length&&a&&a.length?f1(i,a):i}function ZP(i,a,f){return i&&i.length&&a&&a.length?f1(i,a,Se(f,2)):i}function XP(i,a,f){return i&&i.length&&a&&a.length?f1(i,a,n,f):i}var KP=Gr(function(i,a){var f=i==null?0:i.length,x=i1(i,a);return rb(i,st(a,function(C){return Ur(C,f)?+C:C}).sort(pb)),x});function QP(i,a){var f=[];if(!(i&&i.length))return f;var x=-1,C=[],$=i.length;for(a=Se(a,3);++x<$;){var P=i[x];a(P,x,i)&&(f.push(P),C.push(x))}return rb(i,C),f}function M1(i){return i==null?i:VD.call(i)}function JP(i,a,f){var x=i==null?0:i.length;return x?(f&&typeof f!="number"&&tn(i,a,f)?(a=0,f=x):(a=a==null?0:Me(a),f=f===n?x:Me(f)),qn(i,a,f)):[]}function eR(i,a){return uc(i,a)}function tR(i,a,f){return g1(i,a,Se(f,2))}function nR(i,a){var f=i==null?0:i.length;if(f){var x=uc(i,a);if(x<f&&pr(i[x],a))return x}return-1}function rR(i,a){return uc(i,a,!0)}function iR(i,a,f){return g1(i,a,Se(f,2),!0)}function oR(i,a){var f=i==null?0:i.length;if(f){var x=uc(i,a,!0)-1;if(pr(i[x],a))return x}return-1}function sR(i){return i&&i.length?ob(i):[]}function aR(i,a){return i&&i.length?ob(i,Se(a,2)):[]}function lR(i){var a=i==null?0:i.length;return a?qn(i,1,a):[]}function cR(i,a,f){return i&&i.length?(a=f||a===n?1:Me(a),qn(i,0,a<0?0:a)):[]}function dR(i,a,f){var x=i==null?0:i.length;return x?(a=f||a===n?1:Me(a),a=x-a,qn(i,a<0?0:a,x)):[]}function uR(i,a){return i&&i.length?fc(i,Se(a,3),!1,!0):[]}function fR(i,a){return i&&i.length?fc(i,Se(a,3)):[]}var pR=Le(function(i){return yi(kt(i,1,_t,!0))}),hR=Le(function(i){var a=Yn(i);return _t(a)&&(a=n),yi(kt(i,1,_t,!0),Se(a,2))}),gR=Le(function(i){var a=Yn(i);return a=typeof a=="function"?a:n,yi(kt(i,1,_t,!0),n,a)});function mR(i){return i&&i.length?yi(i):[]}function vR(i,a){return i&&i.length?yi(i,Se(a,2)):[]}function bR(i,a){return a=typeof a=="function"?a:n,i&&i.length?yi(i,n,a):[]}function P1(i){if(!(i&&i.length))return[];var a=0;return i=bi(i,function(f){if(_t(f))return a=It(f.length,a),!0}),Xf(a,function(f){return st(i,qf(f))})}function Vb(i,a){if(!(i&&i.length))return[];var f=P1(i);return a==null?f:st(f,function(x){return yn(a,n,x)})}var _R=Le(function(i,a){return _t(i)?Zs(i,a):[]}),xR=Le(function(i){return v1(bi(i,_t))}),ER=Le(function(i){var a=Yn(i);return _t(a)&&(a=n),v1(bi(i,_t),Se(a,2))}),wR=Le(function(i){var a=Yn(i);return a=typeof a=="function"?a:n,v1(bi(i,_t),n,a)}),yR=Le(P1);function CR(i,a){return cb(i||[],a||[],Ys)}function TR(i,a){return cb(i||[],a||[],Qs)}var SR=Le(function(i){var a=i.length,f=a>1?i[a-1]:n;return f=typeof f=="function"?(i.pop(),f):n,Vb(i,f)});function Wb(i){var a=A(i);return a.__chain__=!0,a}function IR(i,a){return a(i),i}function Ec(i,a){return a(i)}var AR=Gr(function(i){var a=i.length,f=a?i[0]:0,x=this.__wrapped__,C=function($){return i1($,i)};return a>1||this.__actions__.length||!(x instanceof Fe)||!Ur(f)?this.thru(C):(x=x.slice(f,+f+(a?1:0)),x.__actions__.push({func:Ec,args:[C],thisArg:n}),new Vn(x,this.__chain__).thru(function($){return a&&!$.length&&$.push(n),$}))});function OR(){return Wb(this)}function $R(){return new Vn(this.value(),this.__chain__)}function DR(){this.__values__===n&&(this.__values__=s_(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function MR(){return this}function PR(i){for(var a,f=this;f instanceof sc;){var x=Fb(f);x.__index__=0,x.__values__=n,a?C.__wrapped__=x:a=x;var C=x;f=f.__wrapped__}return C.__wrapped__=i,a}function RR(){var i=this.__wrapped__;if(i instanceof Fe){var a=i;return this.__actions__.length&&(a=new Fe(this)),a=a.reverse(),a.__actions__.push({func:Ec,args:[M1],thisArg:n}),new Vn(a,this.__chain__)}return this.thru(M1)}function NR(){return lb(this.__wrapped__,this.__actions__)}var LR=pc(function(i,a,f){Je.call(i,f)?++i[f]:Br(i,f,1)});function jR(i,a,f){var x=De(i)?E5:IM;return f&&tn(i,a,f)&&(a=n),x(i,Se(a,3))}function kR(i,a){var f=De(i)?bi:V5;return f(i,Se(a,3))}var FR=_b(Bb),BR=_b(zb);function zR(i,a){return kt(wc(i,a),1)}function GR(i,a){return kt(wc(i,a),V)}function UR(i,a,f){return f=f===n?1:Me(f),kt(wc(i,a),f)}function qb(i,a){var f=De(i)?Un:wi;return f(i,Se(a,3))}function Yb(i,a){var f=De(i)?lD:H5;return f(i,Se(a,3))}var HR=pc(function(i,a,f){Je.call(i,f)?i[f].push(a):Br(i,f,[a])});function VR(i,a,f,x){i=un(i)?i:ts(i),f=f&&!x?Me(f):0;var C=i.length;return f<0&&(f=It(C+f,0)),Ic(i)?f<=C&&i.indexOf(a,f)>-1:!!C&&Uo(i,a,f)>-1}var WR=Le(function(i,a,f){var x=-1,C=typeof a=="function",$=un(i)?Z(i.length):[];return wi(i,function(P){$[++x]=C?yn(a,P,f):Xs(P,a,f)}),$}),qR=pc(function(i,a,f){Br(i,f,a)});function wc(i,a){var f=De(i)?st:K5;return f(i,Se(a,3))}function YR(i,a,f,x){return i==null?[]:(De(a)||(a=a==null?[]:[a]),f=x?n:f,De(f)||(f=f==null?[]:[f]),tb(i,a,f))}var ZR=pc(function(i,a,f){i[f?0:1].push(a)},function(){return[[],[]]});function XR(i,a,f){var x=De(i)?Vf:T5,C=arguments.length<3;return x(i,Se(a,4),f,C,wi)}function KR(i,a,f){var x=De(i)?cD:T5,C=arguments.length<3;return x(i,Se(a,4),f,C,H5)}function QR(i,a){var f=De(i)?bi:V5;return f(i,Tc(Se(a,3)))}function JR(i){var a=De(i)?B5:VM;return a(i)}function eN(i,a,f){(f?tn(i,a,f):a===n)?a=1:a=Me(a);var x=De(i)?wM:WM;return x(i,a)}function tN(i){var a=De(i)?yM:YM;return a(i)}function nN(i){if(i==null)return 0;if(un(i))return Ic(i)?Vo(i):i.length;var a=Ht(i);return a==Ke||a==yt?i.size:d1(i).length}function rN(i,a,f){var x=De(i)?Wf:ZM;return f&&tn(i,a,f)&&(a=n),x(i,Se(a,3))}var iN=Le(function(i,a){if(i==null)return[];var f=a.length;return f>1&&tn(i,a[0],a[1])?a=[]:f>2&&tn(a[0],a[1],a[2])&&(a=[a[0]]),tb(i,kt(a,1),[])}),yc=kD||function(){return jt.Date.now()};function oN(i,a){if(typeof a!="function")throw new Hn(l);return i=Me(i),function(){if(--i<1)return a.apply(this,arguments)}}function Zb(i,a,f){return a=f?n:a,a=i&&a==null?i.length:a,zr(i,R,n,n,n,n,a)}function Xb(i,a){var f;if(typeof a!="function")throw new Hn(l);return i=Me(i),function(){return--i>0&&(f=a.apply(this,arguments)),i<=1&&(a=n),f}}var R1=Le(function(i,a,f){var x=w;if(f.length){var C=xi(f,Jo(R1));x|=I}return zr(i,x,a,f,C)}),Kb=Le(function(i,a,f){var x=w|y;if(f.length){var C=xi(f,Jo(Kb));x|=I}return zr(a,x,i,f,C)});function Qb(i,a,f){a=f?n:a;var x=zr(i,T,n,n,n,n,n,a);return x.placeholder=Qb.placeholder,x}function Jb(i,a,f){a=f?n:a;var x=zr(i,O,n,n,n,n,n,a);return x.placeholder=Jb.placeholder,x}function e_(i,a,f){var x,C,$,P,F,H,ee=0,te=!1,ie=!1,ve=!0;if(typeof i!="function")throw new Hn(l);a=Zn(a)||0,ct(f)&&(te=!!f.leading,ie="maxWait"in f,$=ie?It(Zn(f.maxWait)||0,a):$,ve="trailing"in f?!!f.trailing:ve);function ye(xt){var hr=x,Wr=C;return x=C=n,ee=xt,P=i.apply(Wr,hr),P}function Ie(xt){return ee=xt,F=ta(ke,a),te?ye(xt):P}function Re(xt){var hr=xt-H,Wr=xt-ee,__=a-hr;return ie?Ut(__,$-Wr):__}function Ae(xt){var hr=xt-H,Wr=xt-ee;return H===n||hr>=a||hr<0||ie&&Wr>=$}function ke(){var xt=yc();if(Ae(xt))return ze(xt);F=ta(ke,Re(xt))}function ze(xt){return F=n,ve&&x?ye(xt):(x=C=n,P)}function In(){F!==n&&db(F),ee=0,x=H=C=F=n}function nn(){return F===n?P:ze(yc())}function An(){var xt=yc(),hr=Ae(xt);if(x=arguments,C=this,H=xt,hr){if(F===n)return Ie(H);if(ie)return db(F),F=ta(ke,a),ye(H)}return F===n&&(F=ta(ke,a)),P}return An.cancel=In,An.flush=nn,An}var sN=Le(function(i,a){return U5(i,1,a)}),aN=Le(function(i,a,f){return U5(i,Zn(a)||0,f)});function lN(i){return zr(i,k)}function Cc(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Hn(l);var f=function(){var x=arguments,C=a?a.apply(this,x):x[0],$=f.cache;if($.has(C))return $.get(C);var P=i.apply(this,x);return f.cache=$.set(C,P)||$,P};return f.cache=new(Cc.Cache||Fr),f}Cc.Cache=Fr;function Tc(i){if(typeof i!="function")throw new Hn(l);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function cN(i){return Xb(2,i)}var dN=XM(function(i,a){a=a.length==1&&De(a[0])?st(a[0],Cn(Se())):st(kt(a,1),Cn(Se()));var f=a.length;return Le(function(x){for(var C=-1,$=Ut(x.length,f);++C<$;)x[C]=a[C].call(this,x[C]);return yn(i,this,x)})}),N1=Le(function(i,a){var f=xi(a,Jo(N1));return zr(i,I,n,a,f)}),t_=Le(function(i,a){var f=xi(a,Jo(t_));return zr(i,M,n,a,f)}),uN=Gr(function(i,a){return zr(i,D,n,n,n,a)});function fN(i,a){if(typeof i!="function")throw new Hn(l);return a=a===n?a:Me(a),Le(i,a)}function pN(i,a){if(typeof i!="function")throw new Hn(l);return a=a==null?0:It(Me(a),0),Le(function(f){var x=f[a],C=Ti(f,0,a);return x&&_i(C,x),yn(i,this,C)})}function hN(i,a,f){var x=!0,C=!0;if(typeof i!="function")throw new Hn(l);return ct(f)&&(x="leading"in f?!!f.leading:x,C="trailing"in f?!!f.trailing:C),e_(i,a,{leading:x,maxWait:a,trailing:C})}function gN(i){return Zb(i,1)}function mN(i,a){return N1(_1(a),i)}function vN(){if(!arguments.length)return[];var i=arguments[0];return De(i)?i:[i]}function bN(i){return Wn(i,b)}function _N(i,a){return a=typeof a=="function"?a:n,Wn(i,b,a)}function xN(i){return Wn(i,g|b)}function EN(i,a){return a=typeof a=="function"?a:n,Wn(i,g|b,a)}function wN(i,a){return a==null||G5(i,a,Pt(a))}function pr(i,a){return i===a||i!==i&&a!==a}var yN=vc(a1),CN=vc(function(i,a){return i>=a}),ao=Y5(function(){return arguments}())?Y5:function(i){return ht(i)&&Je.call(i,"callee")&&!R5.call(i,"callee")},De=Z.isArray,TN=g5?Cn(g5):PM;function un(i){return i!=null&&Sc(i.length)&&!Hr(i)}function _t(i){return ht(i)&&un(i)}function SN(i){return i===!0||i===!1||ht(i)&&en(i)==me}var Si=BD||W1,IN=m5?Cn(m5):RM;function AN(i){return ht(i)&&i.nodeType===1&&!na(i)}function ON(i){if(i==null)return!0;if(un(i)&&(De(i)||typeof i=="string"||typeof i.splice=="function"||Si(i)||es(i)||ao(i)))return!i.length;var a=Ht(i);if(a==Ke||a==yt)return!i.size;if(ea(i))return!d1(i).length;for(var f in i)if(Je.call(i,f))return!1;return!0}function $N(i,a){return Ks(i,a)}function DN(i,a,f){f=typeof f=="function"?f:n;var x=f?f(i,a):n;return x===n?Ks(i,a,n,f):!!x}function L1(i){if(!ht(i))return!1;var a=en(i);return a==qe||a==pe||typeof i.message=="string"&&typeof i.name=="string"&&!na(i)}function MN(i){return typeof i=="number"&&L5(i)}function Hr(i){if(!ct(i))return!1;var a=en(i);return a==ce||a==bt||a==le||a==Rr}function n_(i){return typeof i=="number"&&i==Me(i)}function Sc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Q}function ct(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function ht(i){return i!=null&&typeof i=="object"}var r_=v5?Cn(v5):LM;function PN(i,a){return i===a||c1(i,a,S1(a))}function RN(i,a,f){return f=typeof f=="function"?f:n,c1(i,a,S1(a),f)}function NN(i){return i_(i)&&i!=+i}function LN(i){if(_P(i))throw new Oe(s);return Z5(i)}function jN(i){return i===null}function kN(i){return i==null}function i_(i){return typeof i=="number"||ht(i)&&en(i)==wt}function na(i){if(!ht(i)||en(i)!=Nt)return!1;var a=Jl(i);if(a===null)return!0;var f=Je.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Zl.call(f)==RD}var j1=b5?Cn(b5):jM;function FN(i){return n_(i)&&i>=-Q&&i<=Q}var o_=_5?Cn(_5):kM;function Ic(i){return typeof i=="string"||!De(i)&&ht(i)&&en(i)==Fn}function Sn(i){return typeof i=="symbol"||ht(i)&&en(i)==xr}var es=x5?Cn(x5):FM;function BN(i){return i===n}function zN(i){return ht(i)&&Ht(i)==lr}function GN(i){return ht(i)&&en(i)==Bs}var UN=vc(u1),HN=vc(function(i,a){return i<=a});function s_(i){if(!i)return[];if(un(i))return Ic(i)?ur(i):dn(i);if(Us&&i[Us])return wD(i[Us]());var a=Ht(i),f=a==Ke?Qf:a==yt?Wl:ts;return f(i)}function Vr(i){if(!i)return i===0?i:0;if(i=Zn(i),i===V||i===-V){var a=i<0?-1:1;return a*W}return i===i?i:0}function Me(i){var a=Vr(i),f=a%1;return a===a?f?a-f:a:0}function a_(i){return i?ro(Me(i),0,Y):0}function Zn(i){if(typeof i=="number")return i;if(Sn(i))return G;if(ct(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=ct(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=S5(i);var f=Bl.test(i);return f||I$.test(i)?oD(i.slice(2),f?2:8):vi.test(i)?G:+i}function l_(i){return Cr(i,fn(i))}function VN(i){return i?ro(Me(i),-Q,Q):i===0?i:0}function Qe(i){return i==null?"":Tn(i)}var WN=Ko(function(i,a){if(ea(a)||un(a)){Cr(a,Pt(a),i);return}for(var f in a)Je.call(a,f)&&Ys(i,f,a[f])}),c_=Ko(function(i,a){Cr(a,fn(a),i)}),Ac=Ko(function(i,a,f,x){Cr(a,fn(a),i,x)}),qN=Ko(function(i,a,f,x){Cr(a,Pt(a),i,x)}),YN=Gr(i1);function ZN(i,a){var f=Xo(i);return a==null?f:z5(f,a)}var XN=Le(function(i,a){i=tt(i);var f=-1,x=a.length,C=x>2?a[2]:n;for(C&&tn(a[0],a[1],C)&&(x=1);++f<x;)for(var $=a[f],P=fn($),F=-1,H=P.length;++F<H;){var ee=P[F],te=i[ee];(te===n||pr(te,qo[ee])&&!Je.call(i,ee))&&(i[ee]=$[ee])}return i}),KN=Le(function(i){return i.push(n,Sb),yn(d_,n,i)});function QN(i,a){return w5(i,Se(a,3),yr)}function JN(i,a){return w5(i,Se(a,3),s1)}function eL(i,a){return i==null?i:o1(i,Se(a,3),fn)}function tL(i,a){return i==null?i:W5(i,Se(a,3),fn)}function nL(i,a){return i&&yr(i,Se(a,3))}function rL(i,a){return i&&s1(i,Se(a,3))}function iL(i){return i==null?[]:cc(i,Pt(i))}function oL(i){return i==null?[]:cc(i,fn(i))}function k1(i,a,f){var x=i==null?n:io(i,a);return x===n?f:x}function sL(i,a){return i!=null&&Ob(i,a,OM)}function F1(i,a){return i!=null&&Ob(i,a,$M)}var aL=Eb(function(i,a,f){a!=null&&typeof a.toString!="function"&&(a=Xl.call(a)),i[a]=f},z1(pn)),lL=Eb(function(i,a,f){a!=null&&typeof a.toString!="function"&&(a=Xl.call(a)),Je.call(i,a)?i[a].push(f):i[a]=[f]},Se),cL=Le(Xs);function Pt(i){return un(i)?F5(i):d1(i)}function fn(i){return un(i)?F5(i,!0):BM(i)}function dL(i,a){var f={};return a=Se(a,3),yr(i,function(x,C,$){Br(f,a(x,C,$),x)}),f}function uL(i,a){var f={};return a=Se(a,3),yr(i,function(x,C,$){Br(f,C,a(x,C,$))}),f}var fL=Ko(function(i,a,f){dc(i,a,f)}),d_=Ko(function(i,a,f,x){dc(i,a,f,x)}),pL=Gr(function(i,a){var f={};if(i==null)return f;var x=!1;a=st(a,function($){return $=Ci($,i),x||(x=$.length>1),$}),Cr(i,C1(i),f),x&&(f=Wn(f,g|v|b,aP));for(var C=a.length;C--;)m1(f,a[C]);return f});function hL(i,a){return u_(i,Tc(Se(a)))}var gL=Gr(function(i,a){return i==null?{}:GM(i,a)});function u_(i,a){if(i==null)return{};var f=st(C1(i),function(x){return[x]});return a=Se(a),nb(i,f,function(x,C){return a(x,C[0])})}function mL(i,a,f){a=Ci(a,i);var x=-1,C=a.length;for(C||(C=1,i=n);++x<C;){var $=i==null?n:i[Tr(a[x])];$===n&&(x=C,$=f),i=Hr($)?$.call(i):$}return i}function vL(i,a,f){return i==null?i:Qs(i,a,f)}function bL(i,a,f,x){return x=typeof x=="function"?x:n,i==null?i:Qs(i,a,f,x)}var f_=Cb(Pt),p_=Cb(fn);function _L(i,a,f){var x=De(i),C=x||Si(i)||es(i);if(a=Se(a,4),f==null){var $=i&&i.constructor;C?f=x?new $:[]:ct(i)?f=Hr($)?Xo(Jl(i)):{}:f={}}return(C?Un:yr)(i,function(P,F,H){return a(f,P,F,H)}),f}function xL(i,a){return i==null?!0:m1(i,a)}function EL(i,a,f){return i==null?i:ab(i,a,_1(f))}function wL(i,a,f,x){return x=typeof x=="function"?x:n,i==null?i:ab(i,a,_1(f),x)}function ts(i){return i==null?[]:Kf(i,Pt(i))}function yL(i){return i==null?[]:Kf(i,fn(i))}function CL(i,a,f){return f===n&&(f=a,a=n),f!==n&&(f=Zn(f),f=f===f?f:0),a!==n&&(a=Zn(a),a=a===a?a:0),ro(Zn(i),a,f)}function TL(i,a,f){return a=Vr(a),f===n?(f=a,a=0):f=Vr(f),i=Zn(i),DM(i,a,f)}function SL(i,a,f){if(f&&typeof f!="boolean"&&tn(i,a,f)&&(a=f=n),f===n&&(typeof a=="boolean"?(f=a,a=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&a===n?(i=0,a=1):(i=Vr(i),a===n?(a=i,i=0):a=Vr(a)),i>a){var x=i;i=a,a=x}if(f||i%1||a%1){var C=j5();return Ut(i+C*(a-i+iD("1e-"+((C+"").length-1))),a)}return p1(i,a)}var IL=Qo(function(i,a,f){return a=a.toLowerCase(),i+(f?h_(a):a)});function h_(i){return B1(Qe(i).toLowerCase())}function g_(i){return i=Qe(i),i&&i.replace(O$,vD).replace(Y$,"")}function AL(i,a,f){i=Qe(i),a=Tn(a);var x=i.length;f=f===n?x:ro(Me(f),0,x);var C=f;return f-=a.length,f>=0&&i.slice(f,C)==a}function OL(i){return i=Qe(i),i&&Bn.test(i)?i.replace(Tt,bD):i}function $L(i){return i=Qe(i),i&&ae.test(i)?i.replace(j,"\\$&"):i}var DL=Qo(function(i,a,f){return i+(f?"-":"")+a.toLowerCase()}),ML=Qo(function(i,a,f){return i+(f?" ":"")+a.toLowerCase()}),PL=bb("toLowerCase");function RL(i,a,f){i=Qe(i),a=Me(a);var x=a?Vo(i):0;if(!a||x>=a)return i;var C=(a-x)/2;return mc(rc(C),f)+i+mc(nc(C),f)}function NL(i,a,f){i=Qe(i),a=Me(a);var x=a?Vo(i):0;return a&&x<a?i+mc(a-x,f):i}function LL(i,a,f){i=Qe(i),a=Me(a);var x=a?Vo(i):0;return a&&x<a?mc(a-x,f)+i:i}function jL(i,a,f){return f||a==null?a=0:a&&(a=+a),HD(Qe(i).replace(he,""),a||0)}function kL(i,a,f){return(f?tn(i,a,f):a===n)?a=1:a=Me(a),h1(Qe(i),a)}function FL(){var i=arguments,a=Qe(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var BL=Qo(function(i,a,f){return i+(f?"_":"")+a.toLowerCase()});function zL(i,a,f){return f&&typeof f!="number"&&tn(i,a,f)&&(a=f=n),f=f===n?Y:f>>>0,f?(i=Qe(i),i&&(typeof a=="string"||a!=null&&!j1(a))&&(a=Tn(a),!a&&Ho(i))?Ti(ur(i),0,f):i.split(a,f)):[]}var GL=Qo(function(i,a,f){return i+(f?" ":"")+B1(a)});function UL(i,a,f){return i=Qe(i),f=f==null?0:ro(Me(f),0,i.length),a=Tn(a),i.slice(f,f+a.length)==a}function HL(i,a,f){var x=A.templateSettings;f&&tn(i,a,f)&&(a=n),i=Qe(i),a=Ac({},a,x,Tb);var C=Ac({},a.imports,x.imports,Tb),$=Pt(C),P=Kf(C,$),F,H,ee=0,te=a.interpolate||zl,ie="__p += '",ve=Jf((a.escape||zl).source+"|"+te.source+"|"+(te===Qt?pt:zl).source+"|"+(a.evaluate||zl).source+"|$","g"),ye="//# sourceURL="+(Je.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++J$+"]")+`
|
|
81
|
-
`;
|
|
84
|
+
`)}function yP(o){return De(o)||ao(o)||!!(N5&&o&&o[N5])}function Ur(o,a){var f=typeof o;return a=a??J,!!a&&(f=="number"||f!="symbol"&&N$.test(o))&&o>-1&&o%1==0&&o<a}function tn(o,a,f){if(!ct(f))return!1;var x=typeof a;return(x=="number"?dn(f)&&Ur(a,f.length):x=="string"&&a in f)?fr(f[a],o):!1}function A1(o,a){if(De(o))return!1;var f=typeof o;return f=="number"||f=="symbol"||f=="boolean"||o==null||Tn(o)?!0:Jt.test(o)||!wr.test(o)||a!=null&&o in tt(a)}function CP(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function $1(o){var a=vc(o),f=O[a];if(typeof f!="function"||!(a in Fe.prototype))return!1;if(o===f)return!0;var x=S1(f);return!!x&&o===x[0]}function TP(o){return!!D5&&D5 in o}var SP=ql?Vr:q1;function ea(o){var a=o&&o.constructor,f=typeof a=="function"&&a.prototype||Wo;return o===f}function Db(o){return o===o&&!ct(o)}function Mb(o,a){return function(f){return f==null?!1:f[o]===a&&(a!==n||o in tt(f))}}function IP(o){var a=yc(o,function(x){return f.size===p&&f.clear(),x}),f=a.cache;return a}function OP(o,a){var f=o[1],x=a[1],C=f|x,$=C<(w|y|R),P=x==R&&f==T||x==R&&f==D&&o[7].length<=a[8]||x==(R|D)&&a[7].length<=a[8]&&f==T;if(!($||P))return o;x&w&&(o[2]=a[2],C|=f&w?0:S);var F=a[3];if(F){var H=o[3];o[3]=H?hb(H,F,a[4]):F,o[4]=H?_i(o[3],m):a[4]}return F=a[5],F&&(H=o[5],o[5]=H?gb(H,F,a[6]):F,o[6]=H?_i(o[5],m):a[6]),F=a[7],F&&(o[7]=F),x&R&&(o[8]=o[8]==null?a[8]:Gt(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=C,o}function AP(o){var a=[];if(o!=null)for(var f in tt(o))a.push(f);return a}function $P(o){return Zl.call(o)}function Pb(o,a,f){return a=It(a===n?o.length-1:a,0),function(){for(var x=arguments,C=-1,$=It(x.length-a,0),P=Z($);++C<$;)P[C]=x[a+C];C=-1;for(var F=Z(a+1);++C<a;)F[C]=x[C];return F[a]=f(P),wn(o,this,F)}}function Rb(o,a){return a.length<2?o:io(o,Wn(a,0,-1))}function DP(o,a){for(var f=o.length,x=Gt(a.length,f),C=un(o);x--;){var $=a[x];o[x]=Ur($,f)?C[$]:n}return o}function D1(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var Nb=jb(ib),ta=WD||function(o,a){return kt.setTimeout(o,a)},M1=jb(eP);function Lb(o,a,f){var x=a+"";return M1(o,wP(x,MP(_P(x),f)))}function jb(o){var a=0,f=0;return function(){var x=XD(),C=X-(x-f);if(f=x,C>0){if(++a>=G)return arguments[0]}else a=0;return o.apply(n,arguments)}}function _c(o,a){var f=-1,x=o.length,C=x-1;for(a=a===n?x:a;++f<a;){var $=h1(f,C),P=o[$];o[$]=o[f],o[f]=P}return o.length=a,o}var kb=IP(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(j,function(f,x,C,$){a.push(C?$.replace(pt,"$1"):x||f)}),a});function Tr(o){if(typeof o=="string"||Tn(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function so(o){if(o!=null){try{return Yl.call(o)}catch{}try{return o+""}catch{}}return""}function MP(o,a){return Gn(fe,function(f){var x="_."+f[0];a&f[1]&&!Hl(o,x)&&o.push(x)}),o.sort()}function Fb(o){if(o instanceof Fe)return o.clone();var a=new Un(o.__wrapped__,o.__chain__);return a.__actions__=un(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function PP(o,a,f){(f?tn(o,a,f):a===n)?a=1:a=It(Re(a),0);var x=o==null?0:o.length;if(!x||a<1)return[];for(var C=0,$=0,P=Z(tc(x/a));C<x;)P[$++]=Wn(o,C,C+=a);return P}function RP(o){for(var a=-1,f=o==null?0:o.length,x=0,C=[];++a<f;){var $=o[a];$&&(C[x++]=$)}return C}function NP(){var o=arguments.length;if(!o)return[];for(var a=Z(o-1),f=arguments[0],x=o;x--;)a[x-1]=arguments[x];return bi(De(f)?un(f):[f],Ft(a,1))}var LP=je(function(o,a){return _t(o)?Zs(o,Ft(a,1,_t,!0)):[]}),jP=je(function(o,a){var f=qn(a);return _t(f)&&(f=n),_t(o)?Zs(o,Ft(a,1,_t,!0),Se(f,2)):[]}),kP=je(function(o,a){var f=qn(a);return _t(f)&&(f=n),_t(o)?Zs(o,Ft(a,1,_t,!0),n,f):[]});function FP(o,a,f){var x=o==null?0:o.length;return x?(a=f||a===n?1:Re(a),Wn(o,a<0?0:a,x)):[]}function BP(o,a,f){var x=o==null?0:o.length;return x?(a=f||a===n?1:Re(a),a=x-a,Wn(o,0,a<0?0:a)):[]}function zP(o,a){return o&&o.length?dc(o,Se(a,3),!0,!0):[]}function GP(o,a){return o&&o.length?dc(o,Se(a,3),!0):[]}function HP(o,a,f,x){var C=o==null?0:o.length;return C?(f&&typeof f!="number"&&tn(o,a,f)&&(f=0,x=C),NM(o,a,f,x)):[]}function Bb(o,a,f){var x=o==null?0:o.length;if(!x)return-1;var C=f==null?0:Re(f);return C<0&&(C=It(x+C,0)),Ul(o,Se(a,3),C)}function zb(o,a,f){var x=o==null?0:o.length;if(!x)return-1;var C=x-1;return f!==n&&(C=Re(f),C=f<0?It(x+C,0):Gt(C,x-1)),Ul(o,Se(a,3),C,!0)}function Gb(o){var a=o==null?0:o.length;return a?Ft(o,1):[]}function UP(o){var a=o==null?0:o.length;return a?Ft(o,W):[]}function VP(o,a){var f=o==null?0:o.length;return f?(a=a===n?1:Re(a),Ft(o,a)):[]}function WP(o){for(var a=-1,f=o==null?0:o.length,x={};++a<f;){var C=o[a];x[C[0]]=C[1]}return x}function Hb(o){return o&&o.length?o[0]:n}function qP(o,a,f){var x=o==null?0:o.length;if(!x)return-1;var C=f==null?0:Re(f);return C<0&&(C=It(x+C,0)),Go(o,a,C)}function YP(o){var a=o==null?0:o.length;return a?Wn(o,0,-1):[]}var ZP=je(function(o){var a=ot(o,_1);return a.length&&a[0]===o[0]?c1(a):[]}),XP=je(function(o){var a=qn(o),f=ot(o,_1);return a===qn(f)?a=n:f.pop(),f.length&&f[0]===o[0]?c1(f,Se(a,2)):[]}),KP=je(function(o){var a=qn(o),f=ot(o,_1);return a=typeof a=="function"?a:n,a&&f.pop(),f.length&&f[0]===o[0]?c1(f,n,a):[]});function QP(o,a){return o==null?"":YD.call(o,a)}function qn(o){var a=o==null?0:o.length;return a?o[a-1]:n}function JP(o,a,f){var x=o==null?0:o.length;if(!x)return-1;var C=x;return f!==n&&(C=Re(f),C=C<0?It(x+C,0):Gt(C,x-1)),a===a?MD(o,a,C):Ul(o,y5,C,!0)}function eR(o,a){return o&&o.length?eb(o,Re(a)):n}var tR=je(Ub);function Ub(o,a){return o&&o.length&&a&&a.length?p1(o,a):o}function nR(o,a,f){return o&&o.length&&a&&a.length?p1(o,a,Se(f,2)):o}function rR(o,a,f){return o&&o.length&&a&&a.length?p1(o,a,n,f):o}var iR=Hr(function(o,a){var f=o==null?0:o.length,x=o1(o,a);return rb(o,ot(a,function(C){return Ur(C,f)?+C:C}).sort(pb)),x});function oR(o,a){var f=[];if(!(o&&o.length))return f;var x=-1,C=[],$=o.length;for(a=Se(a,3);++x<$;){var P=o[x];a(P,x,o)&&(f.push(P),C.push(x))}return rb(o,C),f}function P1(o){return o==null?o:QD.call(o)}function sR(o,a,f){var x=o==null?0:o.length;return x?(f&&typeof f!="number"&&tn(o,a,f)?(a=0,f=x):(a=a==null?0:Re(a),f=f===n?x:Re(f)),Wn(o,a,f)):[]}function aR(o,a){return uc(o,a)}function lR(o,a,f){return m1(o,a,Se(f,2))}function cR(o,a){var f=o==null?0:o.length;if(f){var x=uc(o,a);if(x<f&&fr(o[x],a))return x}return-1}function uR(o,a){return uc(o,a,!0)}function dR(o,a,f){return m1(o,a,Se(f,2),!0)}function fR(o,a){var f=o==null?0:o.length;if(f){var x=uc(o,a,!0)-1;if(fr(o[x],a))return x}return-1}function pR(o){return o&&o.length?ob(o):[]}function hR(o,a){return o&&o.length?ob(o,Se(a,2)):[]}function gR(o){var a=o==null?0:o.length;return a?Wn(o,1,a):[]}function mR(o,a,f){return o&&o.length?(a=f||a===n?1:Re(a),Wn(o,0,a<0?0:a)):[]}function vR(o,a,f){var x=o==null?0:o.length;return x?(a=f||a===n?1:Re(a),a=x-a,Wn(o,a<0?0:a,x)):[]}function bR(o,a){return o&&o.length?dc(o,Se(a,3),!1,!0):[]}function _R(o,a){return o&&o.length?dc(o,Se(a,3)):[]}var xR=je(function(o){return wi(Ft(o,1,_t,!0))}),ER=je(function(o){var a=qn(o);return _t(a)&&(a=n),wi(Ft(o,1,_t,!0),Se(a,2))}),wR=je(function(o){var a=qn(o);return a=typeof a=="function"?a:n,wi(Ft(o,1,_t,!0),n,a)});function yR(o){return o&&o.length?wi(o):[]}function CR(o,a){return o&&o.length?wi(o,Se(a,2)):[]}function TR(o,a){return a=typeof a=="function"?a:n,o&&o.length?wi(o,n,a):[]}function R1(o){if(!(o&&o.length))return[];var a=0;return o=vi(o,function(f){if(_t(f))return a=It(f.length,a),!0}),Kf(a,function(f){return ot(o,Yf(f))})}function Vb(o,a){if(!(o&&o.length))return[];var f=R1(o);return a==null?f:ot(f,function(x){return wn(a,n,x)})}var SR=je(function(o,a){return _t(o)?Zs(o,a):[]}),IR=je(function(o){return b1(vi(o,_t))}),OR=je(function(o){var a=qn(o);return _t(a)&&(a=n),b1(vi(o,_t),Se(a,2))}),AR=je(function(o){var a=qn(o);return a=typeof a=="function"?a:n,b1(vi(o,_t),n,a)}),$R=je(R1);function DR(o,a){return cb(o||[],a||[],Ys)}function MR(o,a){return cb(o||[],a||[],Qs)}var PR=je(function(o){var a=o.length,f=a>1?o[a-1]:n;return f=typeof f=="function"?(o.pop(),f):n,Vb(o,f)});function Wb(o){var a=O(o);return a.__chain__=!0,a}function RR(o,a){return a(o),o}function xc(o,a){return a(o)}var NR=Hr(function(o){var a=o.length,f=a?o[0]:0,x=this.__wrapped__,C=function($){return o1($,o)};return a>1||this.__actions__.length||!(x instanceof Fe)||!Ur(f)?this.thru(C):(x=x.slice(f,+f+(a?1:0)),x.__actions__.push({func:xc,args:[C],thisArg:n}),new Un(x,this.__chain__).thru(function($){return a&&!$.length&&$.push(n),$}))});function LR(){return Wb(this)}function jR(){return new Un(this.value(),this.__chain__)}function kR(){this.__values__===n&&(this.__values__=s_(this.value()));var o=this.__index__>=this.__values__.length,a=o?n:this.__values__[this.__index__++];return{done:o,value:a}}function FR(){return this}function BR(o){for(var a,f=this;f instanceof oc;){var x=Fb(f);x.__index__=0,x.__values__=n,a?C.__wrapped__=x:a=x;var C=x;f=f.__wrapped__}return C.__wrapped__=o,a}function zR(){var o=this.__wrapped__;if(o instanceof Fe){var a=o;return this.__actions__.length&&(a=new Fe(this)),a=a.reverse(),a.__actions__.push({func:xc,args:[P1],thisArg:n}),new Un(a,this.__chain__)}return this.thru(P1)}function GR(){return lb(this.__wrapped__,this.__actions__)}var HR=fc(function(o,a,f){Je.call(o,f)?++o[f]:zr(o,f,1)});function UR(o,a,f){var x=De(o)?E5:RM;return f&&tn(o,a,f)&&(a=n),x(o,Se(a,3))}function VR(o,a){var f=De(o)?vi:V5;return f(o,Se(a,3))}var WR=_b(Bb),qR=_b(zb);function YR(o,a){return Ft(Ec(o,a),1)}function ZR(o,a){return Ft(Ec(o,a),W)}function XR(o,a,f){return f=f===n?1:Re(f),Ft(Ec(o,a),f)}function qb(o,a){var f=De(o)?Gn:Ei;return f(o,Se(a,3))}function Yb(o,a){var f=De(o)?gD:U5;return f(o,Se(a,3))}var KR=fc(function(o,a,f){Je.call(o,f)?o[f].push(a):zr(o,f,[a])});function QR(o,a,f,x){o=dn(o)?o:es(o),f=f&&!x?Re(f):0;var C=o.length;return f<0&&(f=It(C+f,0)),Sc(o)?f<=C&&o.indexOf(a,f)>-1:!!C&&Go(o,a,f)>-1}var JR=je(function(o,a,f){var x=-1,C=typeof a=="function",$=dn(o)?Z(o.length):[];return Ei(o,function(P){$[++x]=C?wn(a,P,f):Xs(P,a,f)}),$}),eN=fc(function(o,a,f){zr(o,f,a)});function Ec(o,a){var f=De(o)?ot:K5;return f(o,Se(a,3))}function tN(o,a,f,x){return o==null?[]:(De(a)||(a=a==null?[]:[a]),f=x?n:f,De(f)||(f=f==null?[]:[f]),tb(o,a,f))}var nN=fc(function(o,a,f){o[f?0:1].push(a)},function(){return[[],[]]});function rN(o,a,f){var x=De(o)?Wf:T5,C=arguments.length<3;return x(o,Se(a,4),f,C,Ei)}function iN(o,a,f){var x=De(o)?mD:T5,C=arguments.length<3;return x(o,Se(a,4),f,C,U5)}function oN(o,a){var f=De(o)?vi:V5;return f(o,Cc(Se(a,3)))}function sN(o){var a=De(o)?B5:QM;return a(o)}function aN(o,a,f){(f?tn(o,a,f):a===n)?a=1:a=Re(a);var x=De(o)?AM:JM;return x(o,a)}function lN(o){var a=De(o)?$M:tP;return a(o)}function cN(o){if(o==null)return 0;if(dn(o))return Sc(o)?Uo(o):o.length;var a=Ht(o);return a==Ke||a==yt?o.size:d1(o).length}function uN(o,a,f){var x=De(o)?qf:nP;return f&&tn(o,a,f)&&(a=n),x(o,Se(a,3))}var dN=je(function(o,a){if(o==null)return[];var f=a.length;return f>1&&tn(o,a[0],a[1])?a=[]:f>2&&tn(a[0],a[1],a[2])&&(a=[a[0]]),tb(o,Ft(a,1),[])}),wc=VD||function(){return kt.Date.now()};function fN(o,a){if(typeof a!="function")throw new Hn(l);return o=Re(o),function(){if(--o<1)return a.apply(this,arguments)}}function Zb(o,a,f){return a=f?n:a,a=o&&a==null?o.length:a,Gr(o,R,n,n,n,n,a)}function Xb(o,a){var f;if(typeof a!="function")throw new Hn(l);return o=Re(o),function(){return--o>0&&(f=a.apply(this,arguments)),o<=1&&(a=n),f}}var N1=je(function(o,a,f){var x=w;if(f.length){var C=_i(f,Qo(N1));x|=I}return Gr(o,x,a,f,C)}),Kb=je(function(o,a,f){var x=w|y;if(f.length){var C=_i(f,Qo(Kb));x|=I}return Gr(a,x,o,f,C)});function Qb(o,a,f){a=f?n:a;var x=Gr(o,T,n,n,n,n,n,a);return x.placeholder=Qb.placeholder,x}function Jb(o,a,f){a=f?n:a;var x=Gr(o,A,n,n,n,n,n,a);return x.placeholder=Jb.placeholder,x}function e_(o,a,f){var x,C,$,P,F,H,ee=0,te=!1,ie=!1,me=!0;if(typeof o!="function")throw new Hn(l);a=Yn(a)||0,ct(f)&&(te=!!f.leading,ie="maxWait"in f,$=ie?It(Yn(f.maxWait)||0,a):$,me="trailing"in f?!!f.trailing:me);function ye(xt){var pr=x,qr=C;return x=C=n,ee=xt,P=o.apply(qr,pr),P}function Ie(xt){return ee=xt,F=ta(ke,a),te?ye(xt):P}function Le(xt){var pr=xt-H,qr=xt-ee,__=a-pr;return ie?Gt(__,$-qr):__}function Oe(xt){var pr=xt-H,qr=xt-ee;return H===n||pr>=a||pr<0||ie&&qr>=$}function ke(){var xt=wc();if(Oe(xt))return ze(xt);F=ta(ke,Le(xt))}function ze(xt){return F=n,me&&x?ye(xt):(x=C=n,P)}function Sn(){F!==n&&ub(F),ee=0,x=H=C=F=n}function nn(){return F===n?P:ze(wc())}function In(){var xt=wc(),pr=Oe(xt);if(x=arguments,C=this,H=xt,pr){if(F===n)return Ie(H);if(ie)return ub(F),F=ta(ke,a),ye(H)}return F===n&&(F=ta(ke,a)),P}return In.cancel=Sn,In.flush=nn,In}var pN=je(function(o,a){return H5(o,1,a)}),hN=je(function(o,a,f){return H5(o,Yn(a)||0,f)});function gN(o){return Gr(o,k)}function yc(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Hn(l);var f=function(){var x=arguments,C=a?a.apply(this,x):x[0],$=f.cache;if($.has(C))return $.get(C);var P=o.apply(this,x);return f.cache=$.set(C,P)||$,P};return f.cache=new(yc.Cache||Br),f}yc.Cache=Br;function Cc(o){if(typeof o!="function")throw new Hn(l);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function mN(o){return Xb(2,o)}var vN=rP(function(o,a){a=a.length==1&&De(a[0])?ot(a[0],yn(Se())):ot(Ft(a,1),yn(Se()));var f=a.length;return je(function(x){for(var C=-1,$=Gt(x.length,f);++C<$;)x[C]=a[C].call(this,x[C]);return wn(o,this,x)})}),L1=je(function(o,a){var f=_i(a,Qo(L1));return Gr(o,I,n,a,f)}),t_=je(function(o,a){var f=_i(a,Qo(t_));return Gr(o,M,n,a,f)}),bN=Hr(function(o,a){return Gr(o,D,n,n,n,a)});function _N(o,a){if(typeof o!="function")throw new Hn(l);return a=a===n?a:Re(a),je(o,a)}function xN(o,a){if(typeof o!="function")throw new Hn(l);return a=a==null?0:It(Re(a),0),je(function(f){var x=f[a],C=Ci(f,0,a);return x&&bi(C,x),wn(o,this,C)})}function EN(o,a,f){var x=!0,C=!0;if(typeof o!="function")throw new Hn(l);return ct(f)&&(x="leading"in f?!!f.leading:x,C="trailing"in f?!!f.trailing:C),e_(o,a,{leading:x,maxWait:a,trailing:C})}function wN(o){return Zb(o,1)}function yN(o,a){return L1(x1(a),o)}function CN(){if(!arguments.length)return[];var o=arguments[0];return De(o)?o:[o]}function TN(o){return Vn(o,b)}function SN(o,a){return a=typeof a=="function"?a:n,Vn(o,b,a)}function IN(o){return Vn(o,g|b)}function ON(o,a){return a=typeof a=="function"?a:n,Vn(o,g|b,a)}function AN(o,a){return a==null||G5(o,a,Mt(a))}function fr(o,a){return o===a||o!==o&&a!==a}var $N=mc(l1),DN=mc(function(o,a){return o>=a}),ao=Y5(function(){return arguments}())?Y5:function(o){return ht(o)&&Je.call(o,"callee")&&!R5.call(o,"callee")},De=Z.isArray,MN=g5?yn(g5):BM;function dn(o){return o!=null&&Tc(o.length)&&!Vr(o)}function _t(o){return ht(o)&&dn(o)}function PN(o){return o===!0||o===!1||ht(o)&&en(o)==ge}var Ti=qD||q1,RN=m5?yn(m5):zM;function NN(o){return ht(o)&&o.nodeType===1&&!na(o)}function LN(o){if(o==null)return!0;if(dn(o)&&(De(o)||typeof o=="string"||typeof o.splice=="function"||Ti(o)||Jo(o)||ao(o)))return!o.length;var a=Ht(o);if(a==Ke||a==yt)return!o.size;if(ea(o))return!d1(o).length;for(var f in o)if(Je.call(o,f))return!1;return!0}function jN(o,a){return Ks(o,a)}function kN(o,a,f){f=typeof f=="function"?f:n;var x=f?f(o,a):n;return x===n?Ks(o,a,n,f):!!x}function j1(o){if(!ht(o))return!1;var a=en(o);return a==We||a==pe||typeof o.message=="string"&&typeof o.name=="string"&&!na(o)}function FN(o){return typeof o=="number"&&L5(o)}function Vr(o){if(!ct(o))return!1;var a=en(o);return a==ue||a==bt||a==le||a==Rr}function n_(o){return typeof o=="number"&&o==Re(o)}function Tc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=J}function ct(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function ht(o){return o!=null&&typeof o=="object"}var r_=v5?yn(v5):HM;function BN(o,a){return o===a||u1(o,a,I1(a))}function zN(o,a,f){return f=typeof f=="function"?f:n,u1(o,a,I1(a),f)}function GN(o){return i_(o)&&o!=+o}function HN(o){if(SP(o))throw new $e(s);return Z5(o)}function UN(o){return o===null}function VN(o){return o==null}function i_(o){return typeof o=="number"||ht(o)&&en(o)==wt}function na(o){if(!ht(o)||en(o)!=Rt)return!1;var a=Ql(o);if(a===null)return!0;var f=Je.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Yl.call(f)==zD}var k1=b5?yn(b5):UM;function WN(o){return n_(o)&&o>=-9007199254740991&&o<=J}var o_=_5?yn(_5):VM;function Sc(o){return typeof o=="string"||!De(o)&&ht(o)&&en(o)==kn}function Tn(o){return typeof o=="symbol"||ht(o)&&en(o)==_r}var Jo=x5?yn(x5):WM;function qN(o){return o===n}function YN(o){return ht(o)&&Ht(o)==Nr}function ZN(o){return ht(o)&&en(o)==Fs}var XN=mc(f1),KN=mc(function(o,a){return o<=a});function s_(o){if(!o)return[];if(dn(o))return Sc(o)?ur(o):un(o);if(Hs&&o[Hs])return AD(o[Hs]());var a=Ht(o),f=a==Ke?Jf:a==yt?Vl:es;return f(o)}function Wr(o){if(!o)return o===0?o:0;if(o=Yn(o),o===W||o===-1/0){var a=o<0?-1:1;return a*q}return o===o?o:0}function Re(o){var a=Wr(o),f=a%1;return a===a?f?a-f:a:0}function a_(o){return o?ro(Re(o),0,V):0}function Yn(o){if(typeof o=="number")return o;if(Tn(o))return U;if(ct(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=ct(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=S5(o);var f=cr.test(o);return f||R$.test(o)?fD(o.slice(2),f?2:8):Fl.test(o)?U:+o}function l_(o){return Cr(o,fn(o))}function QN(o){return o?ro(Re(o),-9007199254740991,J):o===0?o:0}function Qe(o){return o==null?"":Cn(o)}var JN=Xo(function(o,a){if(ea(a)||dn(a)){Cr(a,Mt(a),o);return}for(var f in a)Je.call(a,f)&&Ys(o,f,a[f])}),c_=Xo(function(o,a){Cr(a,fn(a),o)}),Ic=Xo(function(o,a,f,x){Cr(a,fn(a),o,x)}),eL=Xo(function(o,a,f,x){Cr(a,Mt(a),o,x)}),tL=Hr(o1);function nL(o,a){var f=Zo(o);return a==null?f:z5(f,a)}var rL=je(function(o,a){o=tt(o);var f=-1,x=a.length,C=x>2?a[2]:n;for(C&&tn(a[0],a[1],C)&&(x=1);++f<x;)for(var $=a[f],P=fn($),F=-1,H=P.length;++F<H;){var ee=P[F],te=o[ee];(te===n||fr(te,Wo[ee])&&!Je.call(o,ee))&&(o[ee]=$[ee])}return o}),iL=je(function(o){return o.push(n,Sb),wn(u_,n,o)});function oL(o,a){return w5(o,Se(a,3),yr)}function sL(o,a){return w5(o,Se(a,3),a1)}function aL(o,a){return o==null?o:s1(o,Se(a,3),fn)}function lL(o,a){return o==null?o:W5(o,Se(a,3),fn)}function cL(o,a){return o&&yr(o,Se(a,3))}function uL(o,a){return o&&a1(o,Se(a,3))}function dL(o){return o==null?[]:lc(o,Mt(o))}function fL(o){return o==null?[]:lc(o,fn(o))}function F1(o,a,f){var x=o==null?n:io(o,a);return x===n?f:x}function pL(o,a){return o!=null&&Ab(o,a,LM)}function B1(o,a){return o!=null&&Ab(o,a,jM)}var hL=Eb(function(o,a,f){a!=null&&typeof a.toString!="function"&&(a=Zl.call(a)),o[a]=f},G1(pn)),gL=Eb(function(o,a,f){a!=null&&typeof a.toString!="function"&&(a=Zl.call(a)),Je.call(o,a)?o[a].push(f):o[a]=[f]},Se),mL=je(Xs);function Mt(o){return dn(o)?F5(o):d1(o)}function fn(o){return dn(o)?F5(o,!0):qM(o)}function vL(o,a){var f={};return a=Se(a,3),yr(o,function(x,C,$){zr(f,a(x,C,$),x)}),f}function bL(o,a){var f={};return a=Se(a,3),yr(o,function(x,C,$){zr(f,C,a(x,C,$))}),f}var _L=Xo(function(o,a,f){cc(o,a,f)}),u_=Xo(function(o,a,f,x){cc(o,a,f,x)}),xL=Hr(function(o,a){var f={};if(o==null)return f;var x=!1;a=ot(a,function($){return $=yi($,o),x||(x=$.length>1),$}),Cr(o,T1(o),f),x&&(f=Vn(f,g|v|b,hP));for(var C=a.length;C--;)v1(f,a[C]);return f});function EL(o,a){return d_(o,Cc(Se(a)))}var wL=Hr(function(o,a){return o==null?{}:ZM(o,a)});function d_(o,a){if(o==null)return{};var f=ot(T1(o),function(x){return[x]});return a=Se(a),nb(o,f,function(x,C){return a(x,C[0])})}function yL(o,a,f){a=yi(a,o);var x=-1,C=a.length;for(C||(C=1,o=n);++x<C;){var $=o==null?n:o[Tr(a[x])];$===n&&(x=C,$=f),o=Vr($)?$.call(o):$}return o}function CL(o,a,f){return o==null?o:Qs(o,a,f)}function TL(o,a,f,x){return x=typeof x=="function"?x:n,o==null?o:Qs(o,a,f,x)}var f_=Cb(Mt),p_=Cb(fn);function SL(o,a,f){var x=De(o),C=x||Ti(o)||Jo(o);if(a=Se(a,4),f==null){var $=o&&o.constructor;C?f=x?new $:[]:ct(o)?f=Vr($)?Zo(Ql(o)):{}:f={}}return(C?Gn:yr)(o,function(P,F,H){return a(f,P,F,H)}),f}function IL(o,a){return o==null?!0:v1(o,a)}function OL(o,a,f){return o==null?o:ab(o,a,x1(f))}function AL(o,a,f,x){return x=typeof x=="function"?x:n,o==null?o:ab(o,a,x1(f),x)}function es(o){return o==null?[]:Qf(o,Mt(o))}function $L(o){return o==null?[]:Qf(o,fn(o))}function DL(o,a,f){return f===n&&(f=a,a=n),f!==n&&(f=Yn(f),f=f===f?f:0),a!==n&&(a=Yn(a),a=a===a?a:0),ro(Yn(o),a,f)}function ML(o,a,f){return a=Wr(a),f===n?(f=a,a=0):f=Wr(f),o=Yn(o),kM(o,a,f)}function PL(o,a,f){if(f&&typeof f!="boolean"&&tn(o,a,f)&&(a=f=n),f===n&&(typeof a=="boolean"?(f=a,a=n):typeof o=="boolean"&&(f=o,o=n)),o===n&&a===n?(o=0,a=1):(o=Wr(o),a===n?(a=o,o=0):a=Wr(a)),o>a){var x=o;o=a,a=x}if(f||o%1||a%1){var C=j5();return Gt(o+C*(a-o+dD("1e-"+((C+"").length-1))),a)}return h1(o,a)}var RL=Ko(function(o,a,f){return a=a.toLowerCase(),o+(f?h_(a):a)});function h_(o){return z1(Qe(o).toLowerCase())}function g_(o){return o=Qe(o),o&&o.replace(L$,CD).replace(tD,"")}function NL(o,a,f){o=Qe(o),a=Cn(a);var x=o.length;f=f===n?x:ro(Re(f),0,x);var C=f;return f-=a.length,f>=0&&o.slice(f,C)==a}function LL(o){return o=Qe(o),o&&Bn.test(o)?o.replace(Tt,TD):o}function jL(o){return o=Qe(o),o&&_e.test(o)?o.replace(oe,"\\$&"):o}var kL=Ko(function(o,a,f){return o+(f?"-":"")+a.toLowerCase()}),FL=Ko(function(o,a,f){return o+(f?" ":"")+a.toLowerCase()}),BL=bb("toLowerCase");function zL(o,a,f){o=Qe(o),a=Re(a);var x=a?Uo(o):0;if(!a||x>=a)return o;var C=(a-x)/2;return gc(nc(C),f)+o+gc(tc(C),f)}function GL(o,a,f){o=Qe(o),a=Re(a);var x=a?Uo(o):0;return a&&x<a?o+gc(a-x,f):o}function HL(o,a,f){o=Qe(o),a=Re(a);var x=a?Uo(o):0;return a&&x<a?gc(a-x,f)+o:o}function UL(o,a,f){return f||a==null?a=0:a&&(a=+a),KD(Qe(o).replace(Te,""),a||0)}function VL(o,a,f){return(f?tn(o,a,f):a===n)?a=1:a=Re(a),g1(Qe(o),a)}function WL(){var o=arguments,a=Qe(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var qL=Ko(function(o,a,f){return o+(f?"_":"")+a.toLowerCase()});function YL(o,a,f){return f&&typeof f!="number"&&tn(o,a,f)&&(a=f=n),f=f===n?V:f>>>0,f?(o=Qe(o),o&&(typeof a=="string"||a!=null&&!k1(a))&&(a=Cn(a),!a&&Ho(o))?Ci(ur(o),0,f):o.split(a,f)):[]}var ZL=Ko(function(o,a,f){return o+(f?" ":"")+z1(a)});function XL(o,a,f){return o=Qe(o),f=f==null?0:ro(Re(f),0,o.length),a=Cn(a),o.slice(f,f+a.length)==a}function KL(o,a,f){var x=O.templateSettings;f&&tn(o,a,f)&&(a=n),o=Qe(o),a=Ic({},a,x,Tb);var C=Ic({},a.imports,x.imports,Tb),$=Mt(C),P=Qf(C,$),F,H,ee=0,te=a.interpolate||Bl,ie="__p += '",me=e1((a.escape||Bl).source+"|"+te.source+"|"+(te===Qt?lr:Bl).source+"|"+(a.evaluate||Bl).source+"|$","g"),ye="//# sourceURL="+(Je.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sD+"]")+`
|
|
85
|
+
`;o.replace(me,function(Oe,ke,ze,Sn,nn,In){return ze||(ze=Sn),ie+=o.slice(ee,In).replace(j$,SD),ke&&(F=!0,ie+=`' +
|
|
82
86
|
__e(`+ke+`) +
|
|
83
87
|
'`),nn&&(H=!0,ie+=`';
|
|
84
88
|
`+nn+`;
|
|
85
89
|
__p += '`),ze&&(ie+=`' +
|
|
86
90
|
((__t = (`+ze+`)) == null ? '' : __t) +
|
|
87
|
-
'`),ee=
|
|
91
|
+
'`),ee=In+Oe.length,Oe}),ie+=`';
|
|
88
92
|
`;var Ie=Je.call(a,"variable")&&a.variable;if(!Ie)ie=`with (obj) {
|
|
89
93
|
`+ie+`
|
|
90
94
|
}
|
|
91
|
-
`;else if(
|
|
95
|
+
`;else if(lt.test(Ie))throw new $e(c);ie=(H?ie.replace(Bs,""):ie).replace(Bo,"$1").replace(zs,"$1;"),ie="function("+(Ie||"obj")+`) {
|
|
92
96
|
`+(Ie?"":`obj || (obj = {});
|
|
93
97
|
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
|
|
94
98
|
function print() { __p += __j.call(arguments, '') }
|
|
95
99
|
`:`;
|
|
96
100
|
`)+ie+`return __p
|
|
97
|
-
}`;var Re=v_(function(){return Ye($,ye+"return "+ie).apply(n,P)});if(Re.source=ie,L1(Re))throw Re;return Re}function VL(i){return Qe(i).toLowerCase()}function WL(i){return Qe(i).toUpperCase()}function qL(i,a,f){if(i=Qe(i),i&&(f||a===n))return S5(i);if(!i||!(a=Tn(a)))return i;var x=ur(i),C=ur(a),$=I5(x,C),P=A5(x,C)+1;return Ti(x,$,P).join("")}function YL(i,a,f){if(i=Qe(i),i&&(f||a===n))return i.slice(0,$5(i)+1);if(!i||!(a=Tn(a)))return i;var x=ur(i),C=A5(x,ur(a))+1;return Ti(x,0,C).join("")}function ZL(i,a,f){if(i=Qe(i),i&&(f||a===n))return i.replace(he,"");if(!i||!(a=Tn(a)))return i;var x=ur(i),C=I5(x,ur(a));return Ti(x,C).join("")}function XL(i,a){var f=q,x=L;if(ct(a)){var C="separator"in a?a.separator:C;f="length"in a?Me(a.length):f,x="omission"in a?Tn(a.omission):x}i=Qe(i);var $=i.length;if(Ho(i)){var P=ur(i);$=P.length}if(f>=$)return i;var F=f-Vo(x);if(F<1)return x;var H=P?Ti(P,0,F).join(""):i.slice(0,F);if(C===n)return H+x;if(P&&(F+=H.length-F),j1(C)){if(i.slice(F).search(C)){var ee,te=H;for(C.global||(C=Jf(C.source,Qe(zn.exec(C))+"g")),C.lastIndex=0;ee=C.exec(te);)var ie=ee.index;H=H.slice(0,ie===n?F:ie)}}else if(i.indexOf(Tn(C),F)!=F){var ve=H.lastIndexOf(C);ve>-1&&(H=H.slice(0,ve))}return H+x}function KL(i){return i=Qe(i),i&&Mt.test(i)?i.replace(ft,SD):i}var QL=Qo(function(i,a,f){return i+(f?" ":"")+a.toUpperCase()}),B1=bb("toUpperCase");function m_(i,a,f){return i=Qe(i),a=f?n:a,a===n?ED(i)?OD(i):fD(i):i.match(a)||[]}var v_=Le(function(i,a){try{return yn(i,n,a)}catch(f){return L1(f)?f:new Oe(f)}}),JL=Gr(function(i,a){return Un(a,function(f){f=Tr(f),Br(i,f,R1(i[f],i))}),i});function ej(i){var a=i==null?0:i.length,f=Se();return i=a?st(i,function(x){if(typeof x[1]!="function")throw new Hn(l);return[f(x[0]),x[1]]}):[],Le(function(x){for(var C=-1;++C<a;){var $=i[C];if(yn($[0],this,x))return yn($[1],this,x)}})}function tj(i){return SM(Wn(i,g))}function z1(i){return function(){return i}}function nj(i,a){return i==null||i!==i?a:i}var rj=xb(),ij=xb(!0);function pn(i){return i}function G1(i){return X5(typeof i=="function"?i:Wn(i,g))}function oj(i){return Q5(Wn(i,g))}function sj(i,a){return J5(i,Wn(a,g))}var aj=Le(function(i,a){return function(f){return Xs(f,i,a)}}),lj=Le(function(i,a){return function(f){return Xs(i,f,a)}});function U1(i,a,f){var x=Pt(a),C=cc(a,x);f==null&&!(ct(a)&&(C.length||!x.length))&&(f=a,a=i,i=this,C=cc(a,Pt(a)));var $=!(ct(f)&&"chain"in f)||!!f.chain,P=Hr(i);return Un(C,function(F){var H=a[F];i[F]=H,P&&(i.prototype[F]=function(){var ee=this.__chain__;if($||ee){var te=i(this.__wrapped__),ie=te.__actions__=dn(this.__actions__);return ie.push({func:H,args:arguments,thisArg:i}),te.__chain__=ee,te}return H.apply(i,_i([this.value()],arguments))})}),i}function cj(){return jt._===this&&(jt._=ND),this}function H1(){}function dj(i){return i=Me(i),Le(function(a){return eb(a,i)})}var uj=E1(st),fj=E1(E5),pj=E1(Wf);function b_(i){return A1(i)?qf(Tr(i)):UM(i)}function hj(i){return function(a){return i==null?n:io(i,a)}}var gj=wb(),mj=wb(!0);function V1(){return[]}function W1(){return!1}function vj(){return{}}function bj(){return""}function _j(){return!0}function xj(i,a){if(i=Me(i),i<1||i>Q)return[];var f=Y,x=Ut(i,Y);a=Se(a),i-=Y;for(var C=Xf(x,a);++f<i;)a(f);return C}function Ej(i){return De(i)?st(i,Tr):Sn(i)?[i]:dn(kb(Qe(i)))}function wj(i){var a=++PD;return Qe(i)+a}var yj=gc(function(i,a){return i+a},0),Cj=w1("ceil"),Tj=gc(function(i,a){return i/a},1),Sj=w1("floor");function Ij(i){return i&&i.length?lc(i,pn,a1):n}function Aj(i,a){return i&&i.length?lc(i,Se(a,2),a1):n}function Oj(i){return C5(i,pn)}function $j(i,a){return C5(i,Se(a,2))}function Dj(i){return i&&i.length?lc(i,pn,u1):n}function Mj(i,a){return i&&i.length?lc(i,Se(a,2),u1):n}var Pj=gc(function(i,a){return i*a},1),Rj=w1("round"),Nj=gc(function(i,a){return i-a},0);function Lj(i){return i&&i.length?Zf(i,pn):0}function jj(i,a){return i&&i.length?Zf(i,Se(a,2)):0}return A.after=oN,A.ary=Zb,A.assign=WN,A.assignIn=c_,A.assignInWith=Ac,A.assignWith=qN,A.at=YN,A.before=Xb,A.bind=R1,A.bindAll=JL,A.bindKey=Kb,A.castArray=vN,A.chain=Wb,A.chunk=SP,A.compact=IP,A.concat=AP,A.cond=ej,A.conforms=tj,A.constant=z1,A.countBy=LR,A.create=ZN,A.curry=Qb,A.curryRight=Jb,A.debounce=e_,A.defaults=XN,A.defaultsDeep=KN,A.defer=sN,A.delay=aN,A.difference=OP,A.differenceBy=$P,A.differenceWith=DP,A.drop=MP,A.dropRight=PP,A.dropRightWhile=RP,A.dropWhile=NP,A.fill=LP,A.filter=kR,A.flatMap=zR,A.flatMapDeep=GR,A.flatMapDepth=UR,A.flatten=Gb,A.flattenDeep=jP,A.flattenDepth=kP,A.flip=lN,A.flow=rj,A.flowRight=ij,A.fromPairs=FP,A.functions=iL,A.functionsIn=oL,A.groupBy=HR,A.initial=zP,A.intersection=GP,A.intersectionBy=UP,A.intersectionWith=HP,A.invert=aL,A.invertBy=lL,A.invokeMap=WR,A.iteratee=G1,A.keyBy=qR,A.keys=Pt,A.keysIn=fn,A.map=wc,A.mapKeys=dL,A.mapValues=uL,A.matches=oj,A.matchesProperty=sj,A.memoize=Cc,A.merge=fL,A.mergeWith=d_,A.method=aj,A.methodOf=lj,A.mixin=U1,A.negate=Tc,A.nthArg=dj,A.omit=pL,A.omitBy=hL,A.once=cN,A.orderBy=YR,A.over=uj,A.overArgs=dN,A.overEvery=fj,A.overSome=pj,A.partial=N1,A.partialRight=t_,A.partition=ZR,A.pick=gL,A.pickBy=u_,A.property=b_,A.propertyOf=hj,A.pull=YP,A.pullAll=Hb,A.pullAllBy=ZP,A.pullAllWith=XP,A.pullAt=KP,A.range=gj,A.rangeRight=mj,A.rearg=uN,A.reject=QR,A.remove=QP,A.rest=fN,A.reverse=M1,A.sampleSize=eN,A.set=vL,A.setWith=bL,A.shuffle=tN,A.slice=JP,A.sortBy=iN,A.sortedUniq=sR,A.sortedUniqBy=aR,A.split=zL,A.spread=pN,A.tail=lR,A.take=cR,A.takeRight=dR,A.takeRightWhile=uR,A.takeWhile=fR,A.tap=IR,A.throttle=hN,A.thru=Ec,A.toArray=s_,A.toPairs=f_,A.toPairsIn=p_,A.toPath=Ej,A.toPlainObject=l_,A.transform=_L,A.unary=gN,A.union=pR,A.unionBy=hR,A.unionWith=gR,A.uniq=mR,A.uniqBy=vR,A.uniqWith=bR,A.unset=xL,A.unzip=P1,A.unzipWith=Vb,A.update=EL,A.updateWith=wL,A.values=ts,A.valuesIn=yL,A.without=_R,A.words=m_,A.wrap=mN,A.xor=xR,A.xorBy=ER,A.xorWith=wR,A.zip=yR,A.zipObject=CR,A.zipObjectDeep=TR,A.zipWith=SR,A.entries=f_,A.entriesIn=p_,A.extend=c_,A.extendWith=Ac,U1(A,A),A.add=yj,A.attempt=v_,A.camelCase=IL,A.capitalize=h_,A.ceil=Cj,A.clamp=CL,A.clone=bN,A.cloneDeep=xN,A.cloneDeepWith=EN,A.cloneWith=_N,A.conformsTo=wN,A.deburr=g_,A.defaultTo=nj,A.divide=Tj,A.endsWith=AL,A.eq=pr,A.escape=OL,A.escapeRegExp=$L,A.every=jR,A.find=FR,A.findIndex=Bb,A.findKey=QN,A.findLast=BR,A.findLastIndex=zb,A.findLastKey=JN,A.floor=Sj,A.forEach=qb,A.forEachRight=Yb,A.forIn=eL,A.forInRight=tL,A.forOwn=nL,A.forOwnRight=rL,A.get=k1,A.gt=yN,A.gte=CN,A.has=sL,A.hasIn=F1,A.head=Ub,A.identity=pn,A.includes=VR,A.indexOf=BP,A.inRange=TL,A.invoke=cL,A.isArguments=ao,A.isArray=De,A.isArrayBuffer=TN,A.isArrayLike=un,A.isArrayLikeObject=_t,A.isBoolean=SN,A.isBuffer=Si,A.isDate=IN,A.isElement=AN,A.isEmpty=ON,A.isEqual=$N,A.isEqualWith=DN,A.isError=L1,A.isFinite=MN,A.isFunction=Hr,A.isInteger=n_,A.isLength=Sc,A.isMap=r_,A.isMatch=PN,A.isMatchWith=RN,A.isNaN=NN,A.isNative=LN,A.isNil=kN,A.isNull=jN,A.isNumber=i_,A.isObject=ct,A.isObjectLike=ht,A.isPlainObject=na,A.isRegExp=j1,A.isSafeInteger=FN,A.isSet=o_,A.isString=Ic,A.isSymbol=Sn,A.isTypedArray=es,A.isUndefined=BN,A.isWeakMap=zN,A.isWeakSet=GN,A.join=VP,A.kebabCase=DL,A.last=Yn,A.lastIndexOf=WP,A.lowerCase=ML,A.lowerFirst=PL,A.lt=UN,A.lte=HN,A.max=Ij,A.maxBy=Aj,A.mean=Oj,A.meanBy=$j,A.min=Dj,A.minBy=Mj,A.stubArray=V1,A.stubFalse=W1,A.stubObject=vj,A.stubString=bj,A.stubTrue=_j,A.multiply=Pj,A.nth=qP,A.noConflict=cj,A.noop=H1,A.now=yc,A.pad=RL,A.padEnd=NL,A.padStart=LL,A.parseInt=jL,A.random=SL,A.reduce=XR,A.reduceRight=KR,A.repeat=kL,A.replace=FL,A.result=mL,A.round=Rj,A.runInContext=z,A.sample=JR,A.size=nN,A.snakeCase=BL,A.some=rN,A.sortedIndex=eR,A.sortedIndexBy=tR,A.sortedIndexOf=nR,A.sortedLastIndex=rR,A.sortedLastIndexBy=iR,A.sortedLastIndexOf=oR,A.startCase=GL,A.startsWith=UL,A.subtract=Nj,A.sum=Lj,A.sumBy=jj,A.template=HL,A.times=xj,A.toFinite=Vr,A.toInteger=Me,A.toLength=a_,A.toLower=VL,A.toNumber=Zn,A.toSafeInteger=VN,A.toString=Qe,A.toUpper=WL,A.trim=qL,A.trimEnd=YL,A.trimStart=ZL,A.truncate=XL,A.unescape=KL,A.uniqueId=wj,A.upperCase=QL,A.upperFirst=B1,A.each=qb,A.eachRight=Yb,A.first=Ub,U1(A,function(){var i={};return yr(A,function(a,f){Je.call(A.prototype,f)||(i[f]=a)}),i}(),{chain:!1}),A.VERSION=r,Un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){A[i].placeholder=A}),Un(["drop","take"],function(i,a){Fe.prototype[i]=function(f){f=f===n?1:It(Me(f),0);var x=this.__filtered__&&!a?new Fe(this):this.clone();return x.__filtered__?x.__takeCount__=Ut(f,x.__takeCount__):x.__views__.push({size:Ut(f,Y),type:i+(x.__dir__<0?"Right":"")}),x},Fe.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),Un(["filter","map","takeWhile"],function(i,a){var f=a+1,x=f==N||f==B;Fe.prototype[i]=function(C){var $=this.clone();return $.__iteratees__.push({iteratee:Se(C,3),type:f}),$.__filtered__=$.__filtered__||x,$}}),Un(["head","last"],function(i,a){var f="take"+(a?"Right":"");Fe.prototype[i]=function(){return this[f](1).value()[0]}}),Un(["initial","tail"],function(i,a){var f="drop"+(a?"":"Right");Fe.prototype[i]=function(){return this.__filtered__?new Fe(this):this[f](1)}}),Fe.prototype.compact=function(){return this.filter(pn)},Fe.prototype.find=function(i){return this.filter(i).head()},Fe.prototype.findLast=function(i){return this.reverse().find(i)},Fe.prototype.invokeMap=Le(function(i,a){return typeof i=="function"?new Fe(this):this.map(function(f){return Xs(f,i,a)})}),Fe.prototype.reject=function(i){return this.filter(Tc(Se(i)))},Fe.prototype.slice=function(i,a){i=Me(i);var f=this;return f.__filtered__&&(i>0||a<0)?new Fe(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),a!==n&&(a=Me(a),f=a<0?f.dropRight(-a):f.take(a-i)),f)},Fe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Fe.prototype.toArray=function(){return this.take(Y)},yr(Fe.prototype,function(i,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),x=/^(?:head|last)$/.test(a),C=A[x?"take"+(a=="last"?"Right":""):a],$=x||/^find/.test(a);C&&(A.prototype[a]=function(){var P=this.__wrapped__,F=x?[1]:arguments,H=P instanceof Fe,ee=F[0],te=H||De(P),ie=function(ke){var ze=C.apply(A,_i([ke],F));return x&&ve?ze[0]:ze};te&&f&&typeof ee=="function"&&ee.length!=1&&(H=te=!1);var ve=this.__chain__,ye=!!this.__actions__.length,Ie=$&&!ve,Re=H&&!ye;if(!$&&te){P=Re?P:new Fe(this);var Ae=i.apply(P,F);return Ae.__actions__.push({func:Ec,args:[ie],thisArg:n}),new Vn(Ae,ve)}return Ie&&Re?i.apply(this,F):(Ae=this.thru(ie),Ie?x?Ae.value()[0]:Ae.value():Ae)})}),Un(["pop","push","shift","sort","splice","unshift"],function(i){var a=ql[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",x=/^(?:pop|shift)$/.test(i);A.prototype[i]=function(){var C=arguments;if(x&&!this.__chain__){var $=this.value();return a.apply(De($)?$:[],C)}return this[f](function(P){return a.apply(De(P)?P:[],C)})}}),yr(Fe.prototype,function(i,a){var f=A[a];if(f){var x=f.name+"";Je.call(Zo,x)||(Zo[x]=[]),Zo[x].push({name:a,func:f})}}),Zo[hc(n,y).name]=[{name:"wrapper",func:n}],Fe.prototype.clone=KD,Fe.prototype.reverse=QD,Fe.prototype.value=JD,A.prototype.at=AR,A.prototype.chain=OR,A.prototype.commit=$R,A.prototype.next=DR,A.prototype.plant=PR,A.prototype.reverse=RR,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=NR,A.prototype.first=A.prototype.head,Us&&(A.prototype[Us]=MR),A},Wo=$D();Ji?((Ji.exports=Wo)._=Wo,Gf._=Wo):jt._=Wo}).call(ns)}(tl,tl.exports);var xu=tl.exports;const Qh=Jw;Qh.displayName="BuilderBlockToolbarContext";const Jh=h.forwardRef((e,t)=>{const{sections:n,qualityMetricIcon:r,isToolbarLocked:o=!0,inputPlaceholder:s="Search Block",onToggleToolbarLock:l,className:c}=e,[d,p]=h.useState(null),[m,g]=h.useState(null),[v,b]=h.useState(o),[E,_]=h.useState(!0);Ch({onDragStart(I){p(I.active.data.current),document.body.style.setProperty("cursor","grabbing")},onDragEnd(){p(null),document.body.style.setProperty("cursor","")}});const w=()=>{l==null||l(!v),b(I=>!I)},y=I=>{const M=I.target.value;g(M)},T=m?(I=>{const M=n.filter(R=>R.blocks&&R.blocks.some(D=>D.type.includes(I)));return xu.isEmpty(M)?[]:M.map(R=>{var k;const D=(k=R==null?void 0:R.blocks)==null?void 0:k.filter(q=>q.type.includes(I));return{name:R.name,label:R.label,blocks:D}})})(m):n,O=xu.debounce(_,500);return u.jsxs("div",{ref:t,className:se(bn["builder-block-toolbar--container"],!v&&!E?bn["hide-toolbar"]:bn["show-toolbar"],c),onMouseEnter:()=>!v&&O(!0),onMouseLeave:()=>!v&&O(!1),children:[u.jsxs("div",{className:se(bn["builder-block-toolbar--header"]),children:[r&&u.jsx(at,{variant:"ghost",color:"primary",children:u.jsx(Ha,{...r})}),u.jsx(at,{variant:"ghost",color:"primary",style:{marginLeft:"auto"},onClick:w,children:v?u.jsx(i7,{}):u.jsx(E7,{})})]}),u.jsx(Dn,{placeholder:s,className:bn["builder-block-toolbar--input"],onChange:y}),u.jsx("div",{className:bn["builder-block-toolbar--sections"],children:xu.isEmpty(T.length)&&u.jsx(qc,{type:"multiple",children:T.map(I=>{var M;return u.jsxs(Yc,{value:I.name,children:[u.jsx(Zc,{children:u.jsx(Xc,{children:u.jsx(Ce,{children:I.label})})}),u.jsx(Kc,{className:bn["builder-block-toolbar--block-container"],children:(M=I.blocks)==null?void 0:M.map((R,D)=>u.jsx(eg,{block:R,name:I.name},D))})]},I.name)})})}),On.createPortal(u.jsx(h9,{children:d&&u.jsx(eg,{block:d.block,name:d.name,isOverlay:!0})}),document.body)]})});Jh.displayName="BuilderBlockToolbar";const eg=({block:e,name:t,isOverlay:n})=>{const{attributes:r,listeners:o,setNodeRef:s,isDragging:l}=n9({id:e.type,data:{block:e,name:t}});return u.jsxs("button",{ref:s,className:se(bn["builder-block-toolbar--block"],l&&bn["builder-block-toolbar--block-dragging"],n&&bn["builder-block-toolbar--block-overlay"]),...o,...r,children:[u.jsx("div",{className:se(bn["builder-block-toolbar--block-icon"],bn[`builder-block-toolbar--block-icon-${t}`]),children:g9(e.type)}),u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-1000",className:bn["builder-block-toolbar-block-label"],children:e.label})]})};function g9(e){switch(e){case"text":return u.jsx(rp,{});case"image":return u.jsx(ap,{});case"video":return u.jsx(ep,{});case"variant":return u.jsx(P_,{});case"entities":return u.jsx(_7,{});case"generative":return u.jsx(Q0,{});case"card":return u.jsx(cp,{});case"quickReplies":return u.jsx(tp,{});case"reroute":return u.jsx(Rc,{});case"api":return u.jsx(lp,{});case"conditional":return u.jsx(dp,{});case"capture":return u.jsx(ip,{});case"redirect":return u.jsx(Rc,{});case"setValues":return u.jsx(op,{});case"contactRequest":return u.jsx(Lc,{});case"agentTakeover":return u.jsx(sp,{});default:console.warn("Unknown block type:",e)}}const Eu={"ai-chat--trigger":"_ai-chat--trigger_17efd_1","ai-chat":"_ai-chat_17efd_1","ai-chat--container":"_ai-chat--container_17efd_11",slideDownAndFade:"_slideDownAndFade_17efd_1",slideLeftAndFade:"_slideLeftAndFade_17efd_1",slideUpAndFade:"_slideUpAndFade_17efd_1",slideRightAndFade:"_slideRightAndFade_17efd_1"},tg=ja;tg.displayName="ChatRoot";const ng=h.forwardRef((e,t)=>u.jsx(ka,{ref:t,className:Eu["ai-chat--trigger"],onClick:n=>n.preventDefault,children:u.jsx(Vd,{image:e.avatarBot.image,active:e.active,onClick:e.onClick})}));ng.displayName="ChatTrigger";const rg=h.forwardRef(({children:e},t)=>u.jsx(PE,{children:u.jsx(Fa,{ref:t,side:"top",align:"end",avoidCollisions:!1,sideOffset:16,className:Eu["ai-chat--container"],children:u.jsx("div",{className:Eu["ai-chat"],children:e})})}));rg.displayName="ChatContainer";const nl={"chat-header":"_chat-header_2piic_1","chat-header--purple":"_chat-header--purple_2piic_14","chat-header--white":"_chat-header--white_2piic_18","chat-header--label":"_chat-header--label_2piic_22","chat-header--close":"_chat-header--close_2piic_27"},m9=({botName:e,avatar:t,repliesInstantlyLabel:n="Replies instantly",type:r})=>{const o=r==="purple"?"white":"gray-1000";return u.jsxs("div",{className:se(nl["chat-header"],nl[`chat-header--${r}`]),children:[u.jsx("div",{children:u.jsx(wo,{...t})}),u.jsxs("div",{className:nl["chat-header--label"],children:[u.jsx(Ce,{fontWeight:"bold",size:"md",color:o,children:e}),u.jsx(Ce,{fontWeight:"regular",size:"xs",color:o,children:n})]}),u.jsx(RE,{className:nl["chat-header--close"],children:u.jsx(Pd,{color:o,height:"3.2rem",width:"3.2rem"})})]})},ig={"chat-content":"_chat-content_1yrah_1","chat-messages":"_chat-messages_1yrah_16"},So={"chat-input--container":"_chat-input--container_vv57m_1","chat-input--disabled":"_chat-input--disabled_vv57m_13","chat-input--input":"_chat-input--input_vv57m_18","chat-input--icon":"_chat-input--icon_vv57m_42","chat-input--content":"_chat-input--content_vv57m_53","send-button":"_send-button_vv57m_70"},v9=(e,t)=>{h.useEffect(()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}},[e,t])},og=h.forwardRef((e,t)=>{const{disabled:n,placeholder:r,className:o,onChange:s,value:l,...c}=e,d=h.useRef(null),[p,m]=h.useState(l);v9(d.current,p);const g=v=>{var E;const b=(E=v.target)==null?void 0:E.value;m(b),s==null||s(v)};return u.jsx("div",{className:se(So["chat-input--container"],n&&So["chat-input--disabled"],o),children:u.jsxs("div",{className:So["chat-input--content"],children:[u.jsx("textarea",{ref:d,className:se(So["chat-input--input"],n&&"cursor-not-allowed"),placeholder:r,disabled:n,value:p,onChange:g,rows:1,...c}),u.jsx("span",{className:So["chat-input--icon"],children:u.jsx(at,{className:So["send-button"],variant:"ghost",color:"primary",size:"md",children:u.jsx(m7,{className:"text--purple-600"})})})]})})});og.displayName="ChatInput";const We={"chat-item":"_chat-item_1oblk_1","chat-item--bot":"_chat-item--bot_1oblk_6","chat-item--user":"_chat-item--user_1oblk_10","chat-item--avatar-container":"_chat-item--avatar-container_1oblk_14","chat-item--chat":"_chat-item--chat_1oblk_20","chat-item--typing":"_chat-item--typing_1oblk_28","chat-item--chat-bot":"_chat-item--chat-bot_1oblk_37","chat-item--chat-user":"_chat-item--chat-user_1oblk_43","chat-item--feedback-requested":"_chat-item--feedback-requested_1oblk_49","chat-item--media":"_chat-item--media_1oblk_53","chat-item--image":"_chat-item--image_1oblk_57","chat-item--video":"_chat-item--video_1oblk_62","chat-item--button-container":"_chat-item--button-container_1oblk_67","chat-item--caption":"_chat-item--caption_1oblk_76","chat-item--icon":"_chat-item--icon_1oblk_80","chat-item--feedback":"_chat-item--feedback_1oblk_49","chat-item-feedback-icons":"_chat-item-feedback-icons_1oblk_102","chat-item--feedback-given":"_chat-item--feedback-given_1oblk_107","chat-item--card":"_chat-item--card_1oblk_114","chat-item--card-image":"_chat-item--card-image_1oblk_123","chat-item--card-content":"_chat-item--card-content_1oblk_127","chat-item--card-buttons":"_chat-item--card-buttons_1oblk_134","chat-item--carousel":"_chat-item--carousel_1oblk_138","chat-item--carousel-card":"_chat-item--carousel-card_1oblk_147","chat-item--carousel-left-navigation":"_chat-item--carousel-left-navigation_1oblk_155","chat-item--carousel-right-navigation":"_chat-item--carousel-right-navigation_1oblk_162","swiper-wrapper":"_swiper-wrapper_1oblk_169"};function sg(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function wu(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:sg(t[n])&&sg(e[n])&&Object.keys(t[n]).length>0&&wu(e[n],t[n])})}const ag={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ar(){const e=typeof document<"u"?document:{};return wu(e,ag),e}const b9={document:ag,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Wt(){const e=typeof window<"u"?window:{};return wu(e,b9),e}function _9(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function yu(e,t=0){return setTimeout(e,t)}function rl(){return Date.now()}function x9(e){const t=Wt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function E9(e,t="x"){const n=Wt();let r,o,s;const l=x9(e);return n.WebKitCSSMatrix?(o=l.transform||l.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(c=>c.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(o==="none"?"":o)):(s=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?o=s.m41:r.length===16?o=parseFloat(r[12]):o=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?o=s.m42:r.length===16?o=parseFloat(r[13]):o=parseFloat(r[5])),o||0}function il(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function w9(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function _n(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const o=e[r];if(o!=null&&!w9(o)){const s=Object.keys(Object(o)).filter(l=>n.indexOf(l)<0);for(let l=0,c=s.length;l<c;l+=1){const d=s[l],p=Object.getOwnPropertyDescriptor(o,d);p!==void 0&&p.enumerable&&(il(t[d])&&il(o[d])?o[d].__swiper__?t[d]=o[d]:_n(t[d],o[d]):!il(t[d])&&il(o[d])?(t[d]={},o[d].__swiper__?t[d]=o[d]:_n(t[d],o[d])):t[d]=o[d])}}}return t}function ol(e,t,n){e.style.setProperty(t,n)}function lg({swiper:e,targetPosition:t,side:n}){const r=Wt(),o=-e.translate;let s=null,l;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const d=t>o?"next":"prev",p=(g,v)=>d==="next"&&g>=v||d==="prev"&&g<=v,m=()=>{l=new Date().getTime(),s===null&&(s=l);const g=Math.max(Math.min((l-s)/c,1),0),v=.5-Math.cos(g*Math.PI)/2;let b=o+v*(t-o);if(p(b,t)&&(b=t),e.wrapperEl.scrollTo({[n]:b}),p(b,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(m)};m()}function mr(e,t=""){return[...e.children].filter(n=>n.matches(t))}function cg(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function y9(e){const t=Wt(),n=Ar(),r=e.getBoundingClientRect(),o=n.body,s=e.clientTop||o.clientTop||0,l=e.clientLeft||o.clientLeft||0,c=e===t?t.scrollY:e.scrollTop,d=e===t?t.scrollX:e.scrollLeft;return{top:r.top+c-s,left:r.left+d-l}}function C9(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function T9(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function si(e,t){return Wt().getComputedStyle(e,null).getPropertyValue(t)}function dg(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Cu(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function ug(e,t,n){const r=Wt();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}let Tu;function S9(){const e=Wt(),t=Ar();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function fg(){return Tu||(Tu=S9()),Tu}let Su;function I9({userAgent:e}={}){const t=fg(),n=Wt(),r=n.navigator.platform,o=e||n.navigator.userAgent,s={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/);let p=o.match(/(iPad).*OS\s([\d_]+)/);const m=o.match(/(iPod)(.*OS\s([\d_]+))?/),g=!p&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let b=r==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!p&&b&&t.touch&&E.indexOf(`${l}x${c}`)>=0&&(p=o.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),b=!1),d&&!v&&(s.os="android",s.android=!0),(p||g||m)&&(s.os="ios",s.ios=!0),s}function A9(e={}){return Su||(Su=I9(e)),Su}let Iu;function O9(){const e=Wt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[o,s]=r.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));t=o<16||o===16&&s<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function $9(){return Iu||(Iu=O9()),Iu}function D9({swiper:e,on:t,emit:n}){const r=Wt();let o=null,s=null;const l=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(m=>{s=r.requestAnimationFrame(()=>{const{width:g,height:v}=e;let b=g,E=v;m.forEach(({contentBoxSize:_,contentRect:w,target:y})=>{y&&y!==e.el||(b=w?w.width:(_[0]||_).inlineSize,E=w?w.height:(_[0]||_).blockSize)}),(b!==g||E!==v)&&l()})}),o.observe(e.el))},d=()=>{s&&r.cancelAnimationFrame(s),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},p=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){c();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",p)}),t("destroy",()=>{d(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",p)})}function M9({swiper:e,extendParams:t,on:n,emit:r}){const o=[],s=Wt(),l=(p,m={})=>{const g=s.MutationObserver||s.WebkitMutationObserver,v=new g(b=>{if(e.__preventObserver__)return;if(b.length===1){r("observerUpdate",b[0]);return}const E=function(){r("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(E):s.setTimeout(E,0)});v.observe(p,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),o.push(v)},c=()=>{if(e.params.observer){if(e.params.observeParents){const p=Cu(e.el);for(let m=0;m<p.length;m+=1)l(p[m])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},d=()=>{o.forEach(p=>{p.disconnect()}),o.splice(0,o.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",c),n("destroy",d)}const P9={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const o=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][o](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function o(...s){r.off(e,o),o.__emitterProxy&&delete o.__emitterProxy,t.apply(r,s)}return o.__emitterProxy=t,r.on(e,o,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((o,s)=>{(o===t||o.__emitterProxy&&o.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,o;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),o=t):(n=e[0].events,r=e[0].data,o=e[0].context||t),r.unshift(o),(Array.isArray(n)?n:n.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(o,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(o,r)})}),t}};function R9(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(si(r,"padding-left")||0,10)-parseInt(si(r,"padding-right")||0,10),n=n-parseInt(si(r,"padding-top")||0,10)-parseInt(si(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function N9(){const e=this;function t(L){return e.isHorizontal()?L:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[L]}function n(L,U){return parseFloat(L.getPropertyValue(t(U))||0)}const r=e.params,{wrapperEl:o,slidesEl:s,size:l,rtlTranslate:c,wrongRTL:d}=e,p=e.virtual&&r.virtual.enabled,m=p?e.virtual.slides.length:e.slides.length,g=mr(s,`.${e.params.slideClass}, swiper-slide`),v=p?e.virtual.slides.length:g.length;let b=[];const E=[],_=[];let w=r.slidesOffsetBefore;typeof w=="function"&&(w=r.slidesOffsetBefore.call(e));let y=r.slidesOffsetAfter;typeof y=="function"&&(y=r.slidesOffsetAfter.call(e));const S=e.snapGrid.length,T=e.slidesGrid.length;let O=r.spaceBetween,I=-w,M=0,R=0;if(typeof l>"u")return;typeof O=="string"&&O.indexOf("%")>=0?O=parseFloat(O.replace("%",""))/100*l:typeof O=="string"&&(O=parseFloat(O)),e.virtualSize=-O,g.forEach(L=>{c?L.style.marginLeft="":L.style.marginRight="",L.style.marginBottom="",L.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(ol(o,"--swiper-centered-offset-before",""),ol(o,"--swiper-centered-offset-after",""));const D=r.grid&&r.grid.rows>1&&e.grid;D&&e.grid.initSlides(v);let k;const q=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(L=>typeof r.breakpoints[L].slidesPerView<"u").length>0;for(let L=0;L<v;L+=1){k=0;let U;if(g[L]&&(U=g[L]),D&&e.grid.updateSlide(L,U,v,t),!(g[L]&&si(U,"display")==="none")){if(r.slidesPerView==="auto"){q&&(g[L].style[t("width")]="");const X=getComputedStyle(U),N=U.style.transform,K=U.style.webkitTransform;if(N&&(U.style.transform="none"),K&&(U.style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?ug(U,"width"):ug(U,"height");else{const B=n(X,"width"),V=n(X,"padding-left"),Q=n(X,"padding-right"),W=n(X,"margin-left"),G=n(X,"margin-right"),Y=X.getPropertyValue("box-sizing");if(Y&&Y==="border-box")k=B+W+G;else{const{clientWidth:de,offsetWidth:ue}=U;k=B+V+Q+W+G+(ue-de)}}N&&(U.style.transform=N),K&&(U.style.webkitTransform=K),r.roundLengths&&(k=Math.floor(k))}else k=(l-(r.slidesPerView-1)*O)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),g[L]&&(g[L].style[t("width")]=`${k}px`);g[L]&&(g[L].swiperSlideSize=k),_.push(k),r.centeredSlides?(I=I+k/2+M/2+O,M===0&&L!==0&&(I=I-l/2-O),L===0&&(I=I-l/2-O),Math.abs(I)<1/1e3&&(I=0),r.roundLengths&&(I=Math.floor(I)),R%r.slidesPerGroup===0&&b.push(I),E.push(I)):(r.roundLengths&&(I=Math.floor(I)),(R-Math.min(e.params.slidesPerGroupSkip,R))%e.params.slidesPerGroup===0&&b.push(I),E.push(I),I=I+k+O),e.virtualSize+=k+O,M=k,R+=1}}if(e.virtualSize=Math.max(e.virtualSize,l)+y,c&&d&&(r.effect==="slide"||r.effect==="coverflow")&&(o.style.width=`${e.virtualSize+O}px`),r.setWrapperSize&&(o.style[t("width")]=`${e.virtualSize+O}px`),D&&e.grid.updateWrapperSize(k,b,t),!r.centeredSlides){const L=[];for(let U=0;U<b.length;U+=1){let X=b[U];r.roundLengths&&(X=Math.floor(X)),b[U]<=e.virtualSize-l&&L.push(X)}b=L,Math.floor(e.virtualSize-l)-Math.floor(b[b.length-1])>1&&b.push(e.virtualSize-l)}if(p&&r.loop){const L=_[0]+O;if(r.slidesPerGroup>1){const U=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),X=L*r.slidesPerGroup;for(let N=0;N<U;N+=1)b.push(b[b.length-1]+X)}for(let U=0;U<e.virtual.slidesBefore+e.virtual.slidesAfter;U+=1)r.slidesPerGroup===1&&b.push(b[b.length-1]+L),E.push(E[E.length-1]+L),e.virtualSize+=L}if(b.length===0&&(b=[0]),O!==0){const L=e.isHorizontal()&&c?"marginLeft":t("marginRight");g.filter((U,X)=>!r.cssMode||r.loop?!0:X!==g.length-1).forEach(U=>{U.style[L]=`${O}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let L=0;_.forEach(X=>{L+=X+(O||0)}),L-=O;const U=L-l;b=b.map(X=>X<=0?-w:X>U?U+y:X)}if(r.centerInsufficientSlides){let L=0;if(_.forEach(U=>{L+=U+(O||0)}),L-=O,L<l){const U=(l-L)/2;b.forEach((X,N)=>{b[N]=X-U}),E.forEach((X,N)=>{E[N]=X+U})}}if(Object.assign(e,{slides:g,snapGrid:b,slidesGrid:E,slidesSizesGrid:_}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){ol(o,"--swiper-centered-offset-before",`${-b[0]}px`),ol(o,"--swiper-centered-offset-after",`${e.size/2-_[_.length-1]/2}px`);const L=-e.snapGrid[0],U=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(X=>X+L),e.slidesGrid=e.slidesGrid.map(X=>X+U)}if(v!==m&&e.emit("slidesLengthChange"),b.length!==S&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),E.length!==T&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!p&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const L=`${r.containerModifierClass}backface-hidden`,U=e.el.classList.contains(L);v<=r.maxBackfaceHiddenSlides?U||e.el.classList.add(L):U&&e.el.classList.remove(L)}}function L9(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let o=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=c=>r?t.slides[t.getSlideIndexByData(c)]:t.slides[c];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(c=>{n.push(c)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const c=t.activeIndex+s;if(c>t.slides.length&&!r)break;n.push(l(c))}else n.push(l(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const c=n[s].offsetHeight;o=c>o?c:o}(o||o===0)&&(t.wrapperEl.style.height=`${o}px`)}function j9(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function k9(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:o,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;o&&(l=e),r.forEach(d=>{d.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let c=n.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*t.size:typeof c=="string"&&(c=parseFloat(c));for(let d=0;d<r.length;d+=1){const p=r[d];let m=p.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(m-=r[0].swiperSlideOffset);const g=(l+(n.centeredSlides?t.minTranslate():0)-m)/(p.swiperSlideSize+c),v=(l-s[0]+(n.centeredSlides?t.minTranslate():0)-m)/(p.swiperSlideSize+c),b=-(l-m),E=b+t.slidesSizesGrid[d];(b>=0&&b<t.size-1||E>1&&E<=t.size||b<=0&&E>=t.size)&&(t.visibleSlides.push(p),t.visibleSlidesIndexes.push(d),r[d].classList.add(n.slideVisibleClass)),p.progress=o?-g:g,p.originalProgress=o?-v:v}}function F9(e){const t=this;if(typeof e>"u"){const m=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*m||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:o,isBeginning:s,isEnd:l,progressLoop:c}=t;const d=s,p=l;if(r===0)o=0,s=!0,l=!0;else{o=(e-t.minTranslate())/r;const m=Math.abs(e-t.minTranslate())<1,g=Math.abs(e-t.maxTranslate())<1;s=m||o<=0,l=g||o>=1,m&&(o=0),g&&(o=1)}if(n.loop){const m=t.getSlideIndexByData(0),g=t.getSlideIndexByData(t.slides.length-1),v=t.slidesGrid[m],b=t.slidesGrid[g],E=t.slidesGrid[t.slidesGrid.length-1],_=Math.abs(e);_>=v?c=(_-v)/E:c=(_+E-b)/E,c>1&&(c-=1)}Object.assign(t,{progress:o,progressLoop:c,isBeginning:s,isEnd:l}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!d&&t.emit("reachBeginning toEdge"),l&&!p&&t.emit("reachEnd toEdge"),(d&&!s||p&&!l)&&t.emit("fromEdge"),t.emit("progress",o)}function B9(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:o}=e,s=e.virtual&&n.virtual.enabled,l=d=>mr(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];t.forEach(d=>{d.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let c;if(s)if(n.loop){let d=o-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),c=l(`[data-swiper-slide-index="${d}"]`)}else c=l(`[data-swiper-slide-index="${o}"]`);else c=t[o];if(c){c.classList.add(n.slideActiveClass);let d=T9(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!d&&(d=t[0]),d&&d.classList.add(n.slideNextClass);let p=C9(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!p===0&&(p=t[t.length-1]),p&&p.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const sl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const o=r.querySelector(`.${e.params.lazyPreloaderClass}`);o&&o.remove()}},Au=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Ou=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),o=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=o,c=[l-t];c.push(...Array.from({length:t}).map((d,p)=>l+r+p)),e.slides.forEach((d,p)=>{c.includes(d.column)&&Au(e,p)});return}const s=o+r-1;if(e.params.rewind||e.params.loop)for(let l=o-t;l<=s+t;l+=1){const c=(l%n+n)%n;(c<o||c>s)&&Au(e,c)}else for(let l=Math.max(o-t,0);l<=Math.min(s+t,n-1);l+=1)l!==o&&(l>s||l<o)&&Au(e,l)};function z9(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let o;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?o=s:r>=t[s]&&r<t[s+1]&&(o=s+1):r>=t[s]&&(o=s);return n.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function G9(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:o,activeIndex:s,realIndex:l,snapIndex:c}=t;let d=e,p;const m=v=>{let b=v-t.virtual.slidesBefore;return b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),b};if(typeof d>"u"&&(d=z9(t)),r.indexOf(n)>=0)p=r.indexOf(n);else{const v=Math.min(o.slidesPerGroupSkip,d);p=v+Math.floor((d-v)/o.slidesPerGroup)}if(p>=r.length&&(p=r.length-1),d===s){p!==c&&(t.snapIndex=p,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=m(d));return}let g;t.virtual&&o.virtual.enabled&&o.loop?g=m(d):t.slides[d]?g=parseInt(t.slides[d].getAttribute("data-swiper-slide-index")||d,10):g=d,Object.assign(t,{previousSnapIndex:c,snapIndex:p,previousRealIndex:l,realIndex:g,previousIndex:s,activeIndex:d}),t.initialized&&Ou(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==g&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function U9(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let o=!1,s;if(r){for(let l=0;l<t.slides.length;l+=1)if(t.slides[l]===r){o=!0,s=l;break}}if(r&&o)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=s;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const H9={updateSize:R9,updateSlides:N9,updateAutoHeight:L9,updateSlidesOffset:j9,updateSlidesProgress:k9,updateProgress:F9,updateSlidesClasses:B9,updateActiveIndex:G9,updateClickedSlide:U9};function V9(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:o,wrapperEl:s}=t;if(n.virtualTranslate)return r?-o:o;if(n.cssMode)return o;let l=E9(s,e);return l+=t.cssOverflowAdjustment(),r&&(l=-l),l||0}function W9(e,t){const n=this,{rtlTranslate:r,params:o,wrapperEl:s,progress:l}=n;let c=0,d=0;const p=0;n.isHorizontal()?c=r?-e:e:d=e,o.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:d,o.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-d:o.virtualTranslate||(n.isHorizontal()?c-=n.cssOverflowAdjustment():d-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${c}px, ${d}px, ${p}px)`);let m;const g=n.maxTranslate()-n.minTranslate();g===0?m=0:m=(e-n.minTranslate())/g,m!==l&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function q9(){return-this.snapGrid[0]}function Y9(){return-this.snapGrid[this.snapGrid.length-1]}function Z9(e=0,t=this.params.speed,n=!0,r=!0,o){const s=this,{params:l,wrapperEl:c}=s;if(s.animating&&l.preventInteractionOnTransition)return!1;const d=s.minTranslate(),p=s.maxTranslate();let m;if(r&&e>d?m=d:r&&e<p?m=p:m=e,s.updateProgress(m),l.cssMode){const g=s.isHorizontal();if(t===0)c[g?"scrollLeft":"scrollTop"]=-m;else{if(!s.support.smoothScroll)return lg({swiper:s,targetPosition:-m,side:g?"left":"top"}),!0;c.scrollTo({[g?"left":"top"]:-m,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}const X9={getTranslate:V9,setTranslate:W9,minTranslate:q9,maxTranslate:Y9,translateTo:Z9};function K9(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function pg({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:o,previousIndex:s}=e;let l=n;if(l||(o>s?l="next":o<s?l="prev":l="reset"),e.emit(`transition${r}`),t&&o!==s){if(l==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),l==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Q9(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),pg({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function J9(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),pg({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const ey={setTransition:K9,transitionStart:Q9,transitionEnd:J9};function ty(e=0,t=this.params.speed,n=!0,r,o){typeof e=="string"&&(e=parseInt(e,10));const s=this;let l=e;l<0&&(l=0);const{params:c,snapGrid:d,slidesGrid:p,previousIndex:m,activeIndex:g,rtlTranslate:v,wrapperEl:b,enabled:E}=s;if(s.animating&&c.preventInteractionOnTransition||!E&&!r&&!o)return!1;const _=Math.min(s.params.slidesPerGroupSkip,l);let w=_+Math.floor((l-_)/s.params.slidesPerGroup);w>=d.length&&(w=d.length-1);const y=-d[w];if(c.normalizeSlideIndex)for(let T=0;T<p.length;T+=1){const O=-Math.floor(y*100),I=Math.floor(p[T]*100),M=Math.floor(p[T+1]*100);typeof p[T+1]<"u"?O>=I&&O<M-(M-I)/2?l=T:O>=I&&O<M&&(l=T+1):O>=I&&(l=T)}if(s.initialized&&l!==g&&(!s.allowSlideNext&&(v?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())||!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(g||0)!==l))return!1;l!==(m||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(y);let S;if(l>g?S="next":l<g?S="prev":S="reset",v&&-y===s.translate||!v&&y===s.translate)return s.updateActiveIndex(l),c.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),c.effect!=="slide"&&s.setTranslate(y),S!=="reset"&&(s.transitionStart(n,S),s.transitionEnd(n,S)),!1;if(c.cssMode){const T=s.isHorizontal(),O=v?y:-y;if(t===0){const I=s.virtual&&s.params.virtual.enabled;I&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),I&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{b[T?"scrollLeft":"scrollTop"]=O})):b[T?"scrollLeft":"scrollTop"]=O,I&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return lg({swiper:s,targetPosition:O,side:T?"left":"top"}),!0;b.scrollTo({[T?"left":"top"]:O,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(y),s.updateActiveIndex(l),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,S),t===0?s.transitionEnd(n,S):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(O){!s||s.destroyed||O.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,S))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function ny(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const o=this;let s=e;return o.params.loop&&(o.virtual&&o.params.virtual.enabled?s=s+o.virtual.slidesBefore:s=o.getSlideIndexByData(s)),o.slideTo(s,t,n,r)}function ry(e=this.params.speed,t=!0,n){const r=this,{enabled:o,params:s,animating:l}=r;if(!o)return r;let c=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(c=Math.max(r.slidesPerViewDynamic("current",!0),1));const d=r.activeIndex<s.slidesPerGroupSkip?1:c,p=r.virtual&&s.virtual.enabled;if(s.loop){if(l&&!p&&s.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+d,e,t,n)}function iy(e=this.params.speed,t=!0,n){const r=this,{params:o,snapGrid:s,slidesGrid:l,rtlTranslate:c,enabled:d,animating:p}=r;if(!d)return r;const m=r.virtual&&o.virtual.enabled;if(o.loop){if(p&&!m&&o.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const g=c?r.translate:-r.translate;function v(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const b=v(g),E=s.map(y=>v(y));let _=s[E.indexOf(b)-1];if(typeof _>"u"&&o.cssMode){let y;s.forEach((S,T)=>{b>=S&&(y=T)}),typeof y<"u"&&(_=s[y>0?y-1:y])}let w=0;if(typeof _<"u"&&(w=l.indexOf(_),w<0&&(w=r.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(w=w-r.slidesPerViewDynamic("previous",!0)+1,w=Math.max(w,0))),o.rewind&&r.isBeginning){const y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,n)}return r.slideTo(w,e,t,n)}function oy(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function sy(e=this.params.speed,t=!0,n,r=.5){const o=this;let s=o.activeIndex;const l=Math.min(o.params.slidesPerGroupSkip,s),c=l+Math.floor((s-l)/o.params.slidesPerGroup),d=o.rtlTranslate?o.translate:-o.translate;if(d>=o.snapGrid[c]){const p=o.snapGrid[c],m=o.snapGrid[c+1];d-p>(m-p)*r&&(s+=o.params.slidesPerGroup)}else{const p=o.snapGrid[c-1],m=o.snapGrid[c];d-p<=(m-p)*r&&(s-=o.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,e,t,n)}function ay(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let o=e.clickedIndex,s;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-r/2||o>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=e.getSlideIndex(mr(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),yu(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=e.getSlideIndex(mr(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),yu(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}const ly={slideTo:ty,slideToLoop:ny,slideNext:ry,slidePrev:iy,slideReset:oy,slideToClosest:sy,slideToClickedSlide:ay};function cy(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;mr(r,`.${n.slideClass}, swiper-slide`).forEach((s,l)=>{s.setAttribute("data-swiper-slide-index",l)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function dy({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:o,byController:s,byMousewheel:l}={}){const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:p,allowSlideNext:m,slidesEl:g,params:v}=c;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&v.virtual.enabled){t&&(!v.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v.centeredSlides&&c.snapIndex<v.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=p,c.allowSlideNext=m,c.emit("loopFix");return}const b=v.slidesPerView==="auto"?c.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let E=v.loopedSlides||b;E%v.slidesPerGroup!==0&&(E+=v.slidesPerGroup-E%v.slidesPerGroup),c.loopedSlides=E;const _=[],w=[];let y=c.activeIndex;typeof o>"u"?o=c.getSlideIndex(c.slides.filter(M=>M.classList.contains(v.slideActiveClass))[0]):y=o;const S=n==="next"||!n,T=n==="prev"||!n;let O=0,I=0;if(o<E){O=Math.max(E-o,v.slidesPerGroup);for(let M=0;M<E-o;M+=1){const R=M-Math.floor(M/d.length)*d.length;_.push(d.length-R-1)}}else if(o>c.slides.length-E*2){I=Math.max(o-(c.slides.length-E*2),v.slidesPerGroup);for(let M=0;M<I;M+=1){const R=M-Math.floor(M/d.length)*d.length;w.push(R)}}if(T&&_.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.prepend(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),S&&w.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.append(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),c.recalcSlides(),v.slidesPerView==="auto"&&c.updateSlides(),v.watchSlidesProgress&&c.updateSlidesOffset(),t){if(_.length>0&&T)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y+O]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y+O,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else r&&c.slideToLoop(e,0,!1,!0);else if(w.length>0&&S)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y-I]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y-I,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else c.slideToLoop(e,0,!1,!0)}if(c.allowSlidePrev=p,c.allowSlideNext=m,c.controller&&c.controller.control&&!s){const M={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:o,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(R=>{!R.destroyed&&R.params.loop&&R.loopFix(M)}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix(M)}c.emit("loopFix")}function uy(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(o=>{const s=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;r[s]=o}),e.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),r.forEach(o=>{n.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const fy={loopCreate:cy,loopFix:dy,loopDestroy:uy};function py(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function hy(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const gy={setGrabCursor:py,unsetGrabCursor:hy};function my(e,t=this){function n(r){if(!r||r===Ar()||r===Wt())return null;r.assignedSlot&&(r=r.assignedSlot);const o=r.closest(e);return!o&&!r.getRootNode?null:o||n(r.getRootNode().host)}return n(t)}function vy(e){const t=this,n=Ar(),r=Wt(),o=t.touchEventsData;o.evCache.push(e);const{params:s,touches:l,enabled:c}=t;if(!c||!s.simulateTouch&&e.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let d=e;d.originalEvent&&(d=d.originalEvent);let p=d.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(p)||"which"in d&&d.which===3||"button"in d&&d.button>0||o.isTouched&&o.isMoved)return;const m=!!s.noSwipingClass&&s.noSwipingClass!=="",g=e.composedPath?e.composedPath():e.path;m&&d.target&&d.target.shadowRoot&&g&&(p=g[0]);const v=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,b=!!(d.target&&d.target.shadowRoot);if(s.noSwiping&&(b?my(v,p):p.closest(v))){t.allowClick=!0;return}if(s.swipeHandler&&!p.closest(s.swipeHandler))return;l.currentX=d.pageX,l.currentY=d.pageY;const E=l.currentX,_=l.currentY,w=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,y=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(w&&(E<=y||E>=r.innerWidth-y))if(w==="prevent")e.preventDefault();else return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=E,l.startY=_,o.touchStartTime=rl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let S=!0;p.matches(o.focusableElements)&&(S=!1,p.nodeName==="SELECT"&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==p&&n.activeElement.blur();const T=S&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||T)&&!p.isContentEditable&&d.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",d)}function by(e){const t=Ar(),n=this,r=n.touchEventsData,{params:o,touches:s,rtlTranslate:l,enabled:c}=n;if(!c||!o.simulateTouch&&e.pointerType==="mouse")return;let d=e;if(d.originalEvent&&(d=d.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",d);return}const p=r.evCache.findIndex(M=>M.pointerId===d.pointerId);p>=0&&(r.evCache[p]=d);const m=r.evCache.length>1?r.evCache[0]:d,g=m.pageX,v=m.pageY;if(d.preventedByNestedSwiper){s.startX=g,s.startY=v;return}if(!n.allowTouchMove){d.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:g,startY:v,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:g,currentY:v}),r.touchStartTime=rl());return}if(o.touchReleaseOnEdges&&!o.loop){if(n.isVertical()){if(v<s.startY&&n.translate<=n.maxTranslate()||v>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(g<s.startX&&n.translate<=n.maxTranslate()||g>s.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&d.target===t.activeElement&&d.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;s.currentX=g,s.currentY=v;const b=s.currentX-s.startX,E=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(b**2+E**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let M;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:b*b+E*E>=25&&(M=Math.atan2(Math.abs(E),Math.abs(b))*180/Math.PI,r.isScrolling=n.isHorizontal()?M>o.touchAngle:90-M>o.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",d),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!o.cssMode&&d.cancelable&&d.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&d.stopPropagation();let _=n.isHorizontal()?b:E,w=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(_=Math.abs(_)*(l?1:-1),w=Math.abs(w)*(l?1:-1)),s.diff=_,_*=o.touchRatio,l&&(_=-_,w=-w);const y=n.touchesDirection;n.swipeDirection=_>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const S=n.params.loop&&!o.cssMode;if(!r.isMoved){if(S&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(M)}r.allowMomentumBounce=!1,o.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",d)}let T;r.isMoved&&y!==n.touchesDirection&&S&&Math.abs(_)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),T=!0),n.emit("sliderMove",d),r.isMoved=!0,r.currentTranslate=_+r.startTranslate;let O=!0,I=o.resistanceRatio;if(o.touchReleaseOnEdges&&(I=0),_>0?(S&&!T&&r.currentTranslate>(o.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(O=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+_)**I))):_<0&&(S&&!T&&r.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(o.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(O=!1,o.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-_)**I))),O&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),o.threshold>0)if(Math.abs(_)>o.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function _y(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(T=>T.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:o,touches:s,rtlTranslate:l,slidesGrid:c,enabled:d}=t;if(!d||!o.simulateTouch&&e.pointerType==="mouse")return;let p=e;if(p.originalEvent&&(p=p.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",p),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=rl(),g=m-n.touchStartTime;if(t.allowClick){const T=p.path||p.composedPath&&p.composedPath();t.updateClickedSlide(T&&T[0]||p.target),t.emit("tap click",p),g<300&&m-n.lastClickTime<300&&t.emit("doubleTap doubleClick",p)}if(n.lastClickTime=rl(),yu(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(o.followFinger?v=l?t.translate:-t.translate:v=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}let b=0,E=t.slidesSizesGrid[0];for(let T=0;T<c.length;T+=T<o.slidesPerGroupSkip?1:o.slidesPerGroup){const O=T<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof c[T+O]<"u"?v>=c[T]&&v<c[T+O]&&(b=T,E=c[T+O]-c[T]):v>=c[T]&&(b=T,E=c[c.length-1]-c[c.length-2])}let _=null,w=null;o.rewind&&(t.isBeginning?w=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(_=0));const y=(v-c[b])/E,S=b<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(g>o.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?_:b+S):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-o.longSwipesRatio?t.slideTo(b+S):w!==null&&y<0&&Math.abs(y)>o.longSwipesRatio?t.slideTo(w):t.slideTo(b))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(p.target===t.navigation.nextEl||p.target===t.navigation.prevEl)?p.target===t.navigation.nextEl?t.slideTo(b+S):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(_!==null?_:b+S),t.swipeDirection==="prev"&&t.slideTo(w!==null?w:b))}}function hg(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:o,snapGrid:s}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const c=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!c?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function xy(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ey(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let o;const s=e.maxTranslate()-e.minTranslate();s===0?o=0:o=(e.translate-e.minTranslate())/s,o!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function wy(e){const t=this;sl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let gg=!1;function yy(){}const mg=(e,t)=>{const n=Ar(),{params:r,el:o,wrapperEl:s,device:l}=e,c=!!r.nested,d=t==="on"?"addEventListener":"removeEventListener",p=t;o[d]("pointerdown",e.onTouchStart,{passive:!1}),n[d]("pointermove",e.onTouchMove,{passive:!1,capture:c}),n[d]("pointerup",e.onTouchEnd,{passive:!0}),n[d]("pointercancel",e.onTouchEnd,{passive:!0}),n[d]("pointerout",e.onTouchEnd,{passive:!0}),n[d]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&o[d]("click",e.onClick,!0),r.cssMode&&s[d]("scroll",e.onScroll),r.updateOnWindowResize?e[p](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",hg,!0):e[p]("observerUpdate",hg,!0),o[d]("load",e.onLoad,{capture:!0})};function Cy(){const e=this,t=Ar(),{params:n}=e;e.onTouchStart=vy.bind(e),e.onTouchMove=by.bind(e),e.onTouchEnd=_y.bind(e),n.cssMode&&(e.onScroll=Ey.bind(e)),e.onClick=xy.bind(e),e.onLoad=wy.bind(e),gg||(t.addEventListener("touchstart",yy),gg=!0),mg(e,"on")}function Ty(){mg(this,"off")}const Sy={attachEvents:Cy,detachEvents:Ty},vg=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Iy(){const e=this,{realIndex:t,initialized:n,params:r,el:o}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const l=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const d=(l in s?s[l]:void 0)||e.originalParams,p=vg(e,r),m=vg(e,d),g=r.enabled;p&&!m?(o.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&m&&(o.classList.add(`${r.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&r.grid.fill==="column")&&o.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(_=>{if(typeof d[_]>"u")return;const w=r[_]&&r[_].enabled,y=d[_]&&d[_].enabled;w&&!y&&e[_].disable(),!w&&y&&e[_].enable()});const v=d.direction&&d.direction!==r.direction,b=r.loop&&(d.slidesPerView!==r.slidesPerView||v);v&&n&&e.changeDirection(),_n(e.params,d);const E=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!E?e.disable():!g&&E&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",d),b&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",d)}function Ay(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const o=Wt(),s=t==="window"?o.innerHeight:n.clientHeight,l=Object.keys(e).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const d=parseFloat(c.substr(1));return{value:s*d,point:c}}return{value:c,point:c}});l.sort((c,d)=>parseInt(c.value,10)-parseInt(d.value,10));for(let c=0;c<l.length;c+=1){const{point:d,value:p}=l[c];t==="window"?o.matchMedia(`(min-width: ${p}px)`).matches&&(r=d):p<=n.clientWidth&&(r=d)}return r||"max"}const Oy={setBreakpoint:Iy,getBreakpoint:Ay};function $y(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(o=>{r[o]&&n.push(t+o)}):typeof r=="string"&&n.push(t+r)}),n}function Dy(){const e=this,{classNames:t,params:n,rtl:r,el:o,device:s}=e,l=$y(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...l),o.classList.add(...t),e.emitContainerClasses()}function My(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const Py={addClasses:Dy,removeClasses:My};function Ry(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const o=e.slides.length-1,s=e.slidesGrid[o]+e.slidesSizesGrid[o]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const Ny={checkOverflow:Ry},bg={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ly(e,t){return function(r={}){const o=Object.keys(r)[0],s=r[o];if(typeof s!="object"||s===null){_n(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(o)>=0&&e[o]===!0&&(e[o]={auto:!0}),!(o in e&&"enabled"in s)){_n(t,r);return}e[o]===!0&&(e[o]={enabled:!0}),typeof e[o]=="object"&&!("enabled"in e[o])&&(e[o].enabled=!0),e[o]||(e[o]={enabled:!1}),_n(t,r)}}const $u={eventsEmitter:P9,update:H9,translate:X9,transition:ey,slide:ly,loop:fy,grabCursor:gy,events:Sy,breakpoints:Oy,checkOverflow:Ny,classes:Py},Du={};let Is=class qr{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=_n({},r),n&&!r.el&&(r.el=n);const o=Ar();if(r.el&&typeof r.el=="string"&&o.querySelectorAll(r.el).length>1){const d=[];return o.querySelectorAll(r.el).forEach(p=>{const m=_n({},r,{el:p});d.push(new qr(m))}),d}const s=this;s.__swiper__=!0,s.support=fg(),s.device=A9({userAgent:r.userAgent}),s.browser=$9(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],r.modules&&Array.isArray(r.modules)&&s.modules.push(...r.modules);const l={};s.modules.forEach(d=>{d({params:r,swiper:s,extendParams:Ly(r,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const c=_n({},bg,l);return s.params=_n({},c,Du,r),s.originalParams=_n({},s.params),s.passedParams=_n({},r),s.params&&s.params.on&&Object.keys(s.params.on).forEach(d=>{s.on(d,s.params.on[d])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getSlideIndex(t){const{slidesEl:n,params:r}=this,o=mr(n,`.${r.slideClass}, swiper-slide`),s=dg(o[0]);return dg(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=mr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const o=r.minTranslate(),l=(r.maxTranslate()-o)*t+o;r.translateTo(l,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const o=t.getSlideClasses(r);n.push({slideEl:r,classNames:o}),t.emit("_slideClass",r,o)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:o,slides:s,slidesGrid:l,slidesSizesGrid:c,size:d,activeIndex:p}=r;let m=1;if(o.centeredSlides){let g=s[p]?s[p].swiperSlideSize:0,v;for(let b=p+1;b<s.length;b+=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>d&&(v=!0));for(let b=p-1;b>=0;b-=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>d&&(v=!0))}else if(t==="current")for(let g=p+1;g<s.length;g+=1)(n?l[g]+c[g]-l[p]<d:l[g]-l[p]<d)&&(m+=1);else for(let g=p-1;g>=0;g-=1)l[p]-l[g]<d&&(m+=1);return m}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&sl(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function o(){const l=t.rtlTranslate?t.translate*-1:t.translate,c=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)o(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const l=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(l.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||o()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,o=r.params.direction;return t||(t=o==="horizontal"?"vertical":"horizontal"),t===o||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${o}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(o()):mr(r,o())[0];return!l&&n.params.createElements&&(l=cg("div",n.params.wrapperClass),r.append(l),mr(r,`.${n.params.slideClass}`).forEach(c=>{l.append(c)})),Object.assign(n,{el:r,wrapperEl:l,slidesEl:n.isElement?r:l,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||si(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||si(r,"direction")==="rtl"),wrongRTL:si(l,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete?sl(n,o):o.addEventListener("load",s=>{sl(n,s.target)})}),Ou(n),n.initialized=!0,Ou(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:o,el:s,wrapperEl:l,slides:c}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),o.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),l.removeAttribute("style"),c&&c.length&&c.forEach(d=>{d.classList.remove(o.slideVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(d=>{r.off(d)}),t!==!1&&(r.el.swiper=null,_9(r)),r.destroyed=!0),null}static extendDefaults(t){_n(Du,t)}static get extendedDefaults(){return Du}static get defaults(){return bg}static installModule(t){qr.prototype.__modules__||(qr.prototype.__modules__=[]);const n=qr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>qr.installModule(n)),qr):(qr.installModule(t),qr)}};Object.keys($u).forEach(e=>{Object.keys($u[e]).forEach(t=>{Is.prototype[t]=$u[e][t]})}),Is.use([D9,M9]);function jy({swiper:e,extendParams:t,on:n,emit:r}){const o=Ar(),s=Wt();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function l(p){if(!e.enabled)return;const{rtlTranslate:m}=e;let g=p;g.originalEvent&&(g=g.originalEvent);const v=g.keyCode||g.charCode,b=e.params.keyboard.pageUpDown,E=b&&v===33,_=b&&v===34,w=v===37,y=v===39,S=v===38,T=v===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&T||_)||!e.allowSlidePrev&&(e.isHorizontal()&&w||e.isVertical()&&S||E))return!1;if(!(g.shiftKey||g.altKey||g.ctrlKey||g.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(E||_||w||y||S||T)){let O=!1;if(Cu(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Cu(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,M=I.clientWidth,R=I.clientHeight,D=s.innerWidth,k=s.innerHeight,q=y9(I);m&&(q.left-=I.scrollLeft);const L=[[q.left,q.top],[q.left+M,q.top],[q.left,q.top+R],[q.left+M,q.top+R]];for(let U=0;U<L.length;U+=1){const X=L[U];if(X[0]>=0&&X[0]<=D&&X[1]>=0&&X[1]<=k){if(X[0]===0&&X[1]===0)continue;O=!0}}if(!O)return}e.isHorizontal()?((E||_||w||y)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),((_||y)&&!m||(E||w)&&m)&&e.slideNext(),((E||w)&&!m||(_||y)&&m)&&e.slidePrev()):((E||_||S||T)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),(_||T)&&e.slideNext(),(E||S)&&e.slidePrev()),r("keyPress",v)}}function c(){e.keyboard.enabled||(o.addEventListener("keydown",l),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(o.removeEventListener("keydown",l),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&c()}),n("destroy",()=>{e.keyboard.enabled&&d()}),Object.assign(e.keyboard,{enable:c,disable:d})}function ky(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&n.auto===!0){let s=mr(e.el,`.${r[o]}`)[0];s||(s=cg("div",r[o]),s.className=r[o],e.el.append(s)),n[o]=s,t[o]=s}}),n}function Fy({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const o=E=>(Array.isArray(E)||(E=[E].filter(_=>!!_)),E);function s(E){let _;return E&&typeof E=="string"&&e.isElement&&(_=e.el.shadowRoot.querySelector(E),_)?_:(E&&(typeof E=="string"&&(_=[...document.querySelectorAll(E)]),e.params.uniqueNavElements&&typeof E=="string"&&_.length>1&&e.el.querySelectorAll(E).length===1&&(_=e.el.querySelector(E))),E&&!_?E:_)}function l(E,_){const w=e.params.navigation;E=o(E),E.forEach(y=>{y&&(y.classList[_?"add":"remove"](...w.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=_),e.params.watchOverflow&&e.enabled&&y.classList[e.isLocked?"add":"remove"](w.lockClass))})}function c(){const{nextEl:E,prevEl:_}=e.navigation;if(e.params.loop){l(_,!1),l(E,!1);return}l(_,e.isBeginning&&!e.params.rewind),l(E,e.isEnd&&!e.params.rewind)}function d(E){E.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function p(E){E.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function m(){const E=e.params.navigation;if(e.params.navigation=ky(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(E.nextEl||E.prevEl))return;let _=s(E.nextEl),w=s(E.prevEl);Object.assign(e.navigation,{nextEl:_,prevEl:w}),_=o(_),w=o(w);const y=(S,T)=>{S&&S.addEventListener("click",T==="next"?p:d),!e.enabled&&S&&S.classList.add(...E.lockClass.split(" "))};_.forEach(S=>y(S,"next")),w.forEach(S=>y(S,"prev"))}function g(){let{nextEl:E,prevEl:_}=e.navigation;E=o(E),_=o(_);const w=(y,S)=>{y.removeEventListener("click",S==="next"?p:d),y.classList.remove(...e.params.navigation.disabledClass.split(" "))};E.forEach(y=>w(y,"next")),_.forEach(y=>w(y,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?b():(m(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{g()}),n("enable disable",()=>{let{nextEl:E,prevEl:_}=e.navigation;E=o(E),_=o(_),[...E,..._].filter(w=>!!w).forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(E,_)=>{let{nextEl:w,prevEl:y}=e.navigation;w=o(w),y=o(y);const S=_.target;if(e.params.navigation.hideOnClick&&!y.includes(S)&&!w.includes(S)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===S||e.pagination.el.contains(S)))return;let T;w.length?T=w[0].classList.contains(e.params.navigation.hiddenClass):y.length&&(T=y[0].classList.contains(e.params.navigation.hiddenClass)),r(T===!0?"navigationShow":"navigationHide"),[...w,...y].filter(O=>!!O).forEach(O=>O.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),c()},b=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:v,disable:b,update:c,init:m,destroy:g})}function Ni(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ai(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Ni(t[r])&&Ni(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:ai(e[r],t[r]):e[r]=t[r]})}function _g(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function xg(e={}){return e.pagination&&typeof e.pagination.el>"u"}function Eg(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function wg(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function By(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const yg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function zy(e={},t=!0){const n={on:{}},r={},o={};ai(n,Is.defaults),ai(n,Is.extendedDefaults),n._emitClasses=!0,n.init=!1;const s={},l=yg.map(d=>d.replace(/_/,"")),c=Object.assign({},e);return Object.keys(c).forEach(d=>{typeof e[d]>"u"||(l.indexOf(d)>=0?Ni(e[d])?(n[d]={},o[d]={},ai(n[d],e[d]),ai(o[d],e[d])):(n[d]=e[d],o[d]=e[d]):d.search(/on[A-Z]/)===0&&typeof e[d]=="function"?t?r[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:n.on[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:s[d]=e[d])}),["navigation","pagination","scrollbar"].forEach(d=>{n[d]===!0&&(n[d]={}),n[d]===!1&&delete n[d]}),{params:n,passedParams:o,rest:s,events:r}}function Gy({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:o,swiper:s},l){_g(l)&&t&&n&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),xg(l)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),Eg(l)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(e)}function Uy(e,t,n,r,o){const s=[];if(!t)return s;const l=d=>{s.indexOf(d)<0&&s.push(d)};if(n&&r){const d=r.map(o),p=n.map(o);d.join("")!==p.join("")&&l("children"),r.length!==n.length&&l("children")}return yg.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in e&&d in t)if(Ni(e[d])&&Ni(t[d])){const p=Object.keys(e[d]),m=Object.keys(t[d]);p.length!==m.length?l(d):(p.forEach(g=>{e[d][g]!==t[d][g]&&l(d)}),m.forEach(g=>{e[d][g]!==t[d][g]&&l(d)}))}else e[d]!==t[d]&&l(d)}),s}function Cg(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Tg(e){const t=[];return h.Children.toArray(e).forEach(n=>{Cg(n)?t.push(n):n.props&&n.props.children&&Tg(n.props.children).forEach(r=>t.push(r))}),t}function Hy(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return h.Children.toArray(e).forEach(r=>{if(Cg(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const o=Tg(r.props.children);o.length>0?o.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Vy({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:o,prevEl:s,scrollbarEl:l,paginationEl:c}){const d=r.filter(D=>D!=="children"&&D!=="direction"&&D!=="wrapperClass"),{params:p,pagination:m,navigation:g,scrollbar:v,virtual:b,thumbs:E}=e;let _,w,y,S,T,O,I,M;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&p.thumbs&&!p.thumbs.swiper&&(_=!0),r.includes("controller")&&n.controller&&n.controller.control&&p.controller&&!p.controller.control&&(w=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||c)&&(p.pagination||p.pagination===!1)&&m&&!m.el&&(y=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||l)&&(p.scrollbar||p.scrollbar===!1)&&v&&!v.el&&(S=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||o)&&(p.navigation||p.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(T=!0);const R=D=>{e[D]&&(e[D].destroy(),D==="navigation"?(e.isElement&&(e[D].prevEl.remove(),e[D].nextEl.remove()),p[D].prevEl=void 0,p[D].nextEl=void 0,e[D].prevEl=void 0,e[D].nextEl=void 0):(e.isElement&&e[D].el.remove(),p[D].el=void 0,e[D].el=void 0))};r.includes("loop")&&e.isElement&&(p.loop&&!n.loop?O=!0:!p.loop&&n.loop?I=!0:M=!0),d.forEach(D=>{if(Ni(p[D])&&Ni(n[D]))ai(p[D],n[D]),(D==="navigation"||D==="pagination"||D==="scrollbar")&&"enabled"in n[D]&&!n[D].enabled&&R(D);else{const k=n[D];(k===!0||k===!1)&&(D==="navigation"||D==="pagination"||D==="scrollbar")?k===!1&&R(D):p[D]=n[D]}}),d.includes("controller")&&!w&&e.controller&&e.controller.control&&p.controller&&p.controller.control&&(e.controller.control=p.controller.control),r.includes("children")&&t&&b&&p.virtual.enabled&&(b.slides=t,b.update(!0)),r.includes("children")&&t&&p.loop&&(M=!0),_&&E.init()&&E.update(!0),w&&(e.controller.control=p.controller.control),y&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(c)),c&&(p.pagination.el=c),m.init(),m.render(),m.update()),S&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(p.scrollbar.el=l),v.init(),v.updateSize(),v.setTranslate()),T&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(o)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(s))),o&&(p.navigation.nextEl=o),s&&(p.navigation.prevEl=s),g.init(),g.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(O||M)&&e.loopDestroy(),(I||M)&&e.loopCreate(),e.update()}function Wy(e,t,n){if(!n)return null;const r=m=>{let g=m;return m<0?g=t.length+m:g>=t.length&&(g=g-t.length),g},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:l}=n,c=e.params.loop?-t.length:0,d=e.params.loop?t.length*2:t.length,p=[];for(let m=c;m<d;m+=1)m>=s&&m<=l&&p.push(t[r(m)]);return p.map((m,g)=>h.cloneElement(m,{swiper:e,style:o,key:`slide-${g}`}))}const qy=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function As(e,t){return typeof window>"u"?h.useEffect(e,t):h.useLayoutEffect(e,t)}const Sg=h.createContext(null),Yy=h.createContext(null);function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mu.apply(this,arguments)}const Ig=h.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:o="div",children:s,onSwiper:l,...c}=e===void 0?{}:e,d=!1;const[p,m]=h.useState("swiper"),[g,v]=h.useState(null),[b,E]=h.useState(!1),_=h.useRef(!1),w=h.useRef(null),y=h.useRef(null),S=h.useRef(null),T=h.useRef(null),O=h.useRef(null),I=h.useRef(null),M=h.useRef(null),R=h.useRef(null),{params:D,passedParams:k,rest:q,events:L}=zy(c),{slides:U,slots:X}=Hy(s),N=()=>{E(!b)};Object.assign(D.on,{_containerClasses(W,G){m(G)}});const K=()=>{Object.assign(D.on,L),d=!0;const W={...D};if(delete W.wrapperClass,y.current=new Is(W),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=U;const G={cache:!1,slides:U,renderExternal:v,renderExternalUpdate:!1};ai(y.current.params.virtual,G),ai(y.current.originalParams.virtual,G)}};w.current||K(),y.current&&y.current.on("_beforeBreakpoint",N);const B=()=>{d||!L||!y.current||Object.keys(L).forEach(W=>{y.current.on(W,L[W])})},V=()=>{!L||!y.current||Object.keys(L).forEach(W=>{y.current.off(W,L[W])})};h.useEffect(()=>()=>{y.current&&y.current.off("_beforeBreakpoint",N)}),h.useEffect(()=>{!_.current&&y.current&&(y.current.emitSlidesClasses(),_.current=!0)}),As(()=>{if(t&&(t.current=w.current),!!w.current)return y.current.destroyed&&K(),Gy({el:w.current,nextEl:O.current,prevEl:I.current,paginationEl:M.current,scrollbarEl:R.current,swiper:y.current},D),l&&l(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}},[]),As(()=>{B();const W=Uy(k,S.current,U,T.current,G=>G.key);return S.current=k,T.current=U,W.length&&y.current&&!y.current.destroyed&&Vy({swiper:y.current,slides:U,passedParams:k,changedParams:W,nextEl:O.current,prevEl:I.current,scrollbarEl:R.current,paginationEl:M.current}),()=>{V()}}),As(()=>{qy(y.current)},[g]);function Q(){return D.virtual?Wy(y.current,U,g):U.map((W,G)=>h.cloneElement(W,{swiper:y.current,swiperSlideIndex:G}))}return h.createElement(r,Mu({ref:w,className:wg(`${p}${n?` ${n}`:""}`)},q),h.createElement(Yy.Provider,{value:y.current},X["container-start"],h.createElement(o,{className:By(D.wrapperClass)},X["wrapper-start"],Q(),X["wrapper-end"]),_g(D)&&h.createElement(h.Fragment,null,h.createElement("div",{ref:I,className:"swiper-button-prev"}),h.createElement("div",{ref:O,className:"swiper-button-next"})),Eg(D)&&h.createElement("div",{ref:R,className:"swiper-scrollbar"}),xg(D)&&h.createElement("div",{ref:M,className:"swiper-pagination"}),X["container-end"]))});Ig.displayName="Swiper";function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pu.apply(this,arguments)}const Ag=h.forwardRef(function(e,t){let{tag:n="div",children:r,className:o="",swiper:s,zoom:l,lazy:c,virtualIndex:d,swiperSlideIndex:p,...m}=e===void 0?{}:e;const g=h.useRef(null),[v,b]=h.useState("swiper-slide"),[E,_]=h.useState(!1);function w(O,I,M){I===g.current&&b(M)}As(()=>{if(typeof p<"u"&&(g.current.swiperSlideIndex=p),t&&(t.current=g.current),!(!g.current||!s)){if(s.destroyed){v!=="swiper-slide"&&b("swiper-slide");return}return s.on("_slideClass",w),()=>{s&&s.off("_slideClass",w)}}}),As(()=>{s&&g.current&&!s.destroyed&&b(s.getSlideClasses(g.current))},[s]);const y={isActive:v.indexOf("swiper-slide-active")>=0,isVisible:v.indexOf("swiper-slide-visible")>=0,isPrev:v.indexOf("swiper-slide-prev")>=0,isNext:v.indexOf("swiper-slide-next")>=0},S=()=>typeof r=="function"?r(y):r,T=()=>{_(!0)};return h.createElement(n,Pu({ref:g,className:wg(`${v}${o?` ${o}`:""}`),"data-swiper-slide-index":d,onLoad:T},m),l&&h.createElement(Sg.Provider,{value:y},h.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},S(),c&&!E&&h.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&h.createElement(Sg.Provider,{value:y},S(),c&&!E&&h.createElement("div",{className:"swiper-lazy-preloader"})))});Ag.displayName="SwiperSlide";const Zy=e=>{const{avatar:t,message:n,feedbackRequested:r,onFeedbackClicked:o,onMessageButtonClicked:s}=e,[l,c]=h.useState(null),[d,p]=h.useState(null),[m,g]=h.useState(),v=_=>_.isPositive?u.jsx("div",{className:se(We["chat-item--icon"],We["chat-item--feedback-given"]),children:u.jsx(X0,{className:"text--purple-800"})}):u.jsx("div",{className:se(We["chat-item--icon"],We["chat-item--feedback-given"]),children:u.jsx(Z0,{className:"text--purple-800"})}),b=_=>u.jsxs("div",{className:We["chat-item--feedback"],children:[u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:_||"Was it helpful?"}),u.jsxs("div",{className:We["chat-item-feedback-icons"],children:[u.jsx("button",{className:se(We["chat-item--icon"],"cursor-pointer"),onClick:()=>o==null?void 0:o(!0),children:u.jsx(X0,{className:"text--gray-700"})}),u.jsx("button",{className:se(We["chat-item--icon"],"cursor-pointer"),onClick:()=>o==null?void 0:o(!1),children:u.jsx(Z0,{className:"text--gray-700"})})]})]}),E=_=>{switch(_.type){case"chat":return u.jsxs("div",{children:[u.jsxs("div",{className:se(We["chat-item--chat"],We[`chat-item--chat-${_.whoSent}`]),children:[u.jsx(Ce,{size:"xs",fontWeight:"regular",color:_.whoSent==="bot"?"gray-1000":"white",children:_.text}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:We["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"jpg":return u.jsxs("div",{className:We["chat-item--media"],children:[u.jsxs("div",{className:We["chat-item--feedback-requested"],children:[u.jsx("img",{src:_.imageUrl,alt:_.imageAlt,className:We["chat-item--image"]}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:We["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"mp4":return u.jsxs("div",{className:We["chat-item--media"],children:[u.jsxs("div",{className:We["chat-item--feedback-requested"],children:[u.jsx("iframe",{src:_.videoPreviewUrl,className:We["chat-item--video"],title:"Video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:We["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"button":return u.jsx("div",{className:We["chat-item--button-container"],children:_.buttons.map((w,y)=>u.jsx(At,{onClick:()=>s==null?void 0:s((w==null?void 0:w.label)||""),...w},(w==null?void 0:w.id)??y))});case"typing":return u.jsx("div",{className:We["chat-item--typing"],children:u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-1000",children:"..."})});case"cards":return u.jsxs("div",{className:We["chat-item--carousel"],children:[u.jsx(Ig,{slidesPerView:"auto",modules:[Fy,jy],onSlideChange:w=>g(w.activeIndex),navigation:{prevEl:l,nextEl:d},keyboard:{enabled:!0},className:We["swiper-wrapper"],children:_.cards.map((w,y)=>u.jsx(Ag,{children:u.jsxs("div",{className:We["chat-item--carousel-card"],children:[w.imageUrl&&u.jsx("img",{src:w.imageUrl,alt:w.imageAlt,className:We["chat-item--card-image"]}),u.jsxs("div",{className:We["chat-item--card-content"],children:[u.jsx(Ce,{fontWeight:"bold",size:"sm",color:"gray-1000",children:w.title}),u.jsx(Ce,{fontWeight:"regular",size:"xs",color:"gray-800",children:w.title}),w.buttons&&u.jsx("div",{className:We["chat-item--card-buttons"],children:w.buttons.map((S,T)=>u.jsx(At,{...S,fullWidth:!0},(S==null?void 0:S.id)??T))})]})]})},y))}),_.cards.length>1&&u.jsxs(u.Fragment,{children:[u.jsx("div",{ref:w=>c(w),className:We["chat-item--carousel-left-navigation"],children:u.jsx(at,{color:"primary",variant:"outlined",disabled:m===0,children:u.jsx(yx,{})})}),u.jsx("div",{ref:w=>p(w),className:We["chat-item--carousel-right-navigation"],children:u.jsx(at,{color:"primary",variant:"outlined",disabled:m===_.cards.length-1,children:u.jsx(Tx,{})})})]})]})}};return u.jsxs("div",{className:se(We["chat-item"],We[`chat-item--${n.whoSent}`]),children:[n.whoSent==="bot"&&u.jsx("div",{className:We["chat-item--avatar-container"],children:u.jsx(wo,{...t})}),E(n)]})},Xy=e=>{const{avatar:t,messages:n,isTyping:r=!1,feedbackRequested:o=[],onMessageButtonClicked:s,onInputChange:l,onFeedbackClicked:c}=e,d=[...n,...r?[{type:"typing",whoSent:"bot"}]:[]],p=(g,v)=>{g.whoSent==="bot"&&g.type!=="typing"&&!o.find(b=>b.id===g.id)&&(c==null||c(g,v))},m=d[d.length-1].type==="button";return u.jsxs("div",{className:ig["chat-content"],children:[u.jsx("div",{className:ig["chat-messages"],children:d.map((g,v)=>{const b="id"in g?o.find(E=>E.id===g.id):void 0;return u.jsx(Zy,{avatar:t,message:g,feedbackRequested:b,onMessageButtonClicked:s,onFeedbackClicked:E=>p(g,E)},(g==null?void 0:g.id)??v)})}),m?u.jsx("div",{children:u.jsx(Jn,{variant:"soft",color:"gray",label:"Choose an option to continue",closeIcon:!1})}):u.jsx(og,{placeholder:"Chat input",onChange:l})]})};function Ru(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Og="Checkbox",[Ky,Ik]=Ft(Og),[Qy,Jy]=Ky(Og),e8=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:l,disabled:c,value:d="on",onCheckedChange:p,...m}=e,[g,v]=h.useState(null),b=et(t,T=>v(T)),E=h.useRef(!1),_=g?!!g.closest("form"):!0,[w=!1,y]=hn({prop:o,defaultProp:s,onChange:p}),S=h.useRef(w);return h.useEffect(()=>{const T=g==null?void 0:g.form;if(T){const O=()=>y(S.current);return T.addEventListener("reset",O),()=>T.removeEventListener("reset",O)}},[g,y]),h.createElement(Qy,{scope:n,state:w,disabled:c},h.createElement(Pe.button,oe({type:"button",role:"checkbox","aria-checked":Li(w)?"mixed":w,"aria-required":l,"data-state":$g(w),"data-disabled":c?"":void 0,disabled:c,value:d},m,{ref:b,onKeyDown:Ee(e.onKeyDown,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:Ee(e.onClick,T=>{y(O=>Li(O)?!0:!O),_&&(E.current=T.isPropagationStopped(),E.current||T.stopPropagation())})})),_&&h.createElement(r8,{control:g,bubbles:!E.current,name:r,value:d,checked:w,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),t8="CheckboxIndicator",n8=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=Jy(t8,n);return h.createElement(on,{present:r||Li(s.state)||s.state===!0},h.createElement(Pe.span,oe({"data-state":$g(s.state),"data-disabled":s.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),r8=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,s=h.useRef(null),l=Ru(n),c=ba(t);return h.useEffect(()=>{const d=s.current,p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});d.indeterminate=Li(n),g.call(d,Li(n)?!1:n),d.dispatchEvent(v)}},[l,n,r]),h.createElement("input",oe({type:"checkbox","aria-hidden":!0,defaultChecked:Li(n)?!1:n},o,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Li(e){return e==="indeterminate"}function $g(e){return Li(e)?"indeterminate":e?"checked":"unchecked"}const i8=e8,o8=n8;function al(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var s8=["color"],a8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=al(e,s8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),l8=["color"],c8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=al(e,l8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d8=["color"],u8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=al(e,d8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),f8=["color"],p8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=al(e,f8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const vr={checkbox:"_checkbox_1lymw_1","checkbox--root":"_checkbox--root_1lymw_11","checkbox--root-size-sm":"_checkbox--root-size-sm_1lymw_21","checkbox--indicator":"_checkbox--indicator_1lymw_69","checkbox--label":"_checkbox--label_1lymw_78","checkbox--label-size-sm":"_checkbox--label-size-sm_1lymw_79","checkbox--label--disabled":"_checkbox--label--disabled_1lymw_94"},Dg=e=>{const{label:t,small:n,disabled:r,id:o,children:s}=e;return t?u.jsx("label",{className:se(n?vr["checkbox--label-size-sm"]:vr["checkbox--label"],r&&vr["checkbox--label--disabled"]),htmlFor:o,children:t}):s?u.jsx("label",{className:se(n?vr["checkbox--label-size-sm"]:vr["checkbox--label"],r&&vr["checkbox--label--disabled"]),htmlFor:o,children:s}):null},Os=h.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,small:r,checked:o,label:s,labelPosition:l="start",children:c,onCheckedChange:d,disabled:p,className:m,...g}=e;return u.jsxs("div",{className:se(vr.checkbox,m),children:[l==="end"?u.jsx(Dg,{id:n,label:s,small:r,disabled:p,children:c}):null,u.jsx(i8,{ref:t,id:n,className:se(r&&vr["checkbox--root-size-sm"],vr["checkbox--root"]),onCheckedChange:d,disabled:p,checked:o,...g,children:u.jsxs(o8,{className:vr["checkbox--indicator"],children:[o==="indeterminate"&&u.jsx(p8,{}),o===!0&&u.jsx(a8,{})]})}),l==="start"?u.jsx(Dg,{id:n,label:s,small:r,disabled:p,children:c}):null]})});Os.displayName="Checkbox";/*!
|
|
98
|
-
* FilePond 4.
|
|
101
|
+
}`;var Le=v_(function(){return Ye($,ye+"return "+ie).apply(n,P)});if(Le.source=ie,j1(Le))throw Le;return Le}function QL(o){return Qe(o).toLowerCase()}function JL(o){return Qe(o).toUpperCase()}function ej(o,a,f){if(o=Qe(o),o&&(f||a===n))return S5(o);if(!o||!(a=Cn(a)))return o;var x=ur(o),C=ur(a),$=I5(x,C),P=O5(x,C)+1;return Ci(x,$,P).join("")}function tj(o,a,f){if(o=Qe(o),o&&(f||a===n))return o.slice(0,$5(o)+1);if(!o||!(a=Cn(a)))return o;var x=ur(o),C=O5(x,ur(a))+1;return Ci(x,0,C).join("")}function nj(o,a,f){if(o=Qe(o),o&&(f||a===n))return o.replace(Te,"");if(!o||!(a=Cn(a)))return o;var x=ur(o),C=I5(x,ur(a));return Ci(x,C).join("")}function rj(o,a){var f=Y,x=L;if(ct(a)){var C="separator"in a?a.separator:C;f="length"in a?Re(a.length):f,x="omission"in a?Cn(a.omission):x}o=Qe(o);var $=o.length;if(Ho(o)){var P=ur(o);$=P.length}if(f>=$)return o;var F=f-Uo(x);if(F<1)return x;var H=P?Ci(P,0,F).join(""):o.slice(0,F);if(C===n)return H+x;if(P&&(F+=H.length-F),k1(C)){if(o.slice(F).search(C)){var ee,te=H;for(C.global||(C=e1(C.source,Qe(kr.exec(C))+"g")),C.lastIndex=0;ee=C.exec(te);)var ie=ee.index;H=H.slice(0,ie===n?F:ie)}}else if(o.indexOf(Cn(C),F)!=F){var me=H.lastIndexOf(C);me>-1&&(H=H.slice(0,me))}return H+x}function ij(o){return o=Qe(o),o&&Nt.test(o)?o.replace(at,PD):o}var oj=Ko(function(o,a,f){return o+(f?" ":"")+a.toUpperCase()}),z1=bb("toUpperCase");function m_(o,a,f){return o=Qe(o),a=f?n:a,a===n?OD(o)?LD(o):_D(o):o.match(a)||[]}var v_=je(function(o,a){try{return wn(o,n,a)}catch(f){return j1(f)?f:new $e(f)}}),sj=Hr(function(o,a){return Gn(a,function(f){f=Tr(f),zr(o,f,N1(o[f],o))}),o});function aj(o){var a=o==null?0:o.length,f=Se();return o=a?ot(o,function(x){if(typeof x[1]!="function")throw new Hn(l);return[f(x[0]),x[1]]}):[],je(function(x){for(var C=-1;++C<a;){var $=o[C];if(wn($[0],this,x))return wn($[1],this,x)}})}function lj(o){return PM(Vn(o,g))}function G1(o){return function(){return o}}function cj(o,a){return o==null||o!==o?a:o}var uj=xb(),dj=xb(!0);function pn(o){return o}function H1(o){return X5(typeof o=="function"?o:Vn(o,g))}function fj(o){return Q5(Vn(o,g))}function pj(o,a){return J5(o,Vn(a,g))}var hj=je(function(o,a){return function(f){return Xs(f,o,a)}}),gj=je(function(o,a){return function(f){return Xs(o,f,a)}});function U1(o,a,f){var x=Mt(a),C=lc(a,x);f==null&&!(ct(a)&&(C.length||!x.length))&&(f=a,a=o,o=this,C=lc(a,Mt(a)));var $=!(ct(f)&&"chain"in f)||!!f.chain,P=Vr(o);return Gn(C,function(F){var H=a[F];o[F]=H,P&&(o.prototype[F]=function(){var ee=this.__chain__;if($||ee){var te=o(this.__wrapped__),ie=te.__actions__=un(this.__actions__);return ie.push({func:H,args:arguments,thisArg:o}),te.__chain__=ee,te}return H.apply(o,bi([this.value()],arguments))})}),o}function mj(){return kt._===this&&(kt._=GD),this}function V1(){}function vj(o){return o=Re(o),je(function(a){return eb(a,o)})}var bj=w1(ot),_j=w1(E5),xj=w1(qf);function b_(o){return A1(o)?Yf(Tr(o)):XM(o)}function Ej(o){return function(a){return o==null?n:io(o,a)}}var wj=wb(),yj=wb(!0);function W1(){return[]}function q1(){return!1}function Cj(){return{}}function Tj(){return""}function Sj(){return!0}function Ij(o,a){if(o=Re(o),o<1||o>J)return[];var f=V,x=Gt(o,V);a=Se(a),o-=V;for(var C=Kf(x,a);++f<o;)a(f);return C}function Oj(o){return De(o)?ot(o,Tr):Tn(o)?[o]:un(kb(Qe(o)))}function Aj(o){var a=++BD;return Qe(o)+a}var $j=hc(function(o,a){return o+a},0),Dj=y1("ceil"),Mj=hc(function(o,a){return o/a},1),Pj=y1("floor");function Rj(o){return o&&o.length?ac(o,pn,l1):n}function Nj(o,a){return o&&o.length?ac(o,Se(a,2),l1):n}function Lj(o){return C5(o,pn)}function jj(o,a){return C5(o,Se(a,2))}function kj(o){return o&&o.length?ac(o,pn,f1):n}function Fj(o,a){return o&&o.length?ac(o,Se(a,2),f1):n}var Bj=hc(function(o,a){return o*a},1),zj=y1("round"),Gj=hc(function(o,a){return o-a},0);function Hj(o){return o&&o.length?Xf(o,pn):0}function Uj(o,a){return o&&o.length?Xf(o,Se(a,2)):0}return O.after=fN,O.ary=Zb,O.assign=JN,O.assignIn=c_,O.assignInWith=Ic,O.assignWith=eL,O.at=tL,O.before=Xb,O.bind=N1,O.bindAll=sj,O.bindKey=Kb,O.castArray=CN,O.chain=Wb,O.chunk=PP,O.compact=RP,O.concat=NP,O.cond=aj,O.conforms=lj,O.constant=G1,O.countBy=HR,O.create=nL,O.curry=Qb,O.curryRight=Jb,O.debounce=e_,O.defaults=rL,O.defaultsDeep=iL,O.defer=pN,O.delay=hN,O.difference=LP,O.differenceBy=jP,O.differenceWith=kP,O.drop=FP,O.dropRight=BP,O.dropRightWhile=zP,O.dropWhile=GP,O.fill=HP,O.filter=VR,O.flatMap=YR,O.flatMapDeep=ZR,O.flatMapDepth=XR,O.flatten=Gb,O.flattenDeep=UP,O.flattenDepth=VP,O.flip=gN,O.flow=uj,O.flowRight=dj,O.fromPairs=WP,O.functions=dL,O.functionsIn=fL,O.groupBy=KR,O.initial=YP,O.intersection=ZP,O.intersectionBy=XP,O.intersectionWith=KP,O.invert=hL,O.invertBy=gL,O.invokeMap=JR,O.iteratee=H1,O.keyBy=eN,O.keys=Mt,O.keysIn=fn,O.map=Ec,O.mapKeys=vL,O.mapValues=bL,O.matches=fj,O.matchesProperty=pj,O.memoize=yc,O.merge=_L,O.mergeWith=u_,O.method=hj,O.methodOf=gj,O.mixin=U1,O.negate=Cc,O.nthArg=vj,O.omit=xL,O.omitBy=EL,O.once=mN,O.orderBy=tN,O.over=bj,O.overArgs=vN,O.overEvery=_j,O.overSome=xj,O.partial=L1,O.partialRight=t_,O.partition=nN,O.pick=wL,O.pickBy=d_,O.property=b_,O.propertyOf=Ej,O.pull=tR,O.pullAll=Ub,O.pullAllBy=nR,O.pullAllWith=rR,O.pullAt=iR,O.range=wj,O.rangeRight=yj,O.rearg=bN,O.reject=oN,O.remove=oR,O.rest=_N,O.reverse=P1,O.sampleSize=aN,O.set=CL,O.setWith=TL,O.shuffle=lN,O.slice=sR,O.sortBy=dN,O.sortedUniq=pR,O.sortedUniqBy=hR,O.split=YL,O.spread=xN,O.tail=gR,O.take=mR,O.takeRight=vR,O.takeRightWhile=bR,O.takeWhile=_R,O.tap=RR,O.throttle=EN,O.thru=xc,O.toArray=s_,O.toPairs=f_,O.toPairsIn=p_,O.toPath=Oj,O.toPlainObject=l_,O.transform=SL,O.unary=wN,O.union=xR,O.unionBy=ER,O.unionWith=wR,O.uniq=yR,O.uniqBy=CR,O.uniqWith=TR,O.unset=IL,O.unzip=R1,O.unzipWith=Vb,O.update=OL,O.updateWith=AL,O.values=es,O.valuesIn=$L,O.without=SR,O.words=m_,O.wrap=yN,O.xor=IR,O.xorBy=OR,O.xorWith=AR,O.zip=$R,O.zipObject=DR,O.zipObjectDeep=MR,O.zipWith=PR,O.entries=f_,O.entriesIn=p_,O.extend=c_,O.extendWith=Ic,U1(O,O),O.add=$j,O.attempt=v_,O.camelCase=RL,O.capitalize=h_,O.ceil=Dj,O.clamp=DL,O.clone=TN,O.cloneDeep=IN,O.cloneDeepWith=ON,O.cloneWith=SN,O.conformsTo=AN,O.deburr=g_,O.defaultTo=cj,O.divide=Mj,O.endsWith=NL,O.eq=fr,O.escape=LL,O.escapeRegExp=jL,O.every=UR,O.find=WR,O.findIndex=Bb,O.findKey=oL,O.findLast=qR,O.findLastIndex=zb,O.findLastKey=sL,O.floor=Pj,O.forEach=qb,O.forEachRight=Yb,O.forIn=aL,O.forInRight=lL,O.forOwn=cL,O.forOwnRight=uL,O.get=F1,O.gt=$N,O.gte=DN,O.has=pL,O.hasIn=B1,O.head=Hb,O.identity=pn,O.includes=QR,O.indexOf=qP,O.inRange=ML,O.invoke=mL,O.isArguments=ao,O.isArray=De,O.isArrayBuffer=MN,O.isArrayLike=dn,O.isArrayLikeObject=_t,O.isBoolean=PN,O.isBuffer=Ti,O.isDate=RN,O.isElement=NN,O.isEmpty=LN,O.isEqual=jN,O.isEqualWith=kN,O.isError=j1,O.isFinite=FN,O.isFunction=Vr,O.isInteger=n_,O.isLength=Tc,O.isMap=r_,O.isMatch=BN,O.isMatchWith=zN,O.isNaN=GN,O.isNative=HN,O.isNil=VN,O.isNull=UN,O.isNumber=i_,O.isObject=ct,O.isObjectLike=ht,O.isPlainObject=na,O.isRegExp=k1,O.isSafeInteger=WN,O.isSet=o_,O.isString=Sc,O.isSymbol=Tn,O.isTypedArray=Jo,O.isUndefined=qN,O.isWeakMap=YN,O.isWeakSet=ZN,O.join=QP,O.kebabCase=kL,O.last=qn,O.lastIndexOf=JP,O.lowerCase=FL,O.lowerFirst=BL,O.lt=XN,O.lte=KN,O.max=Rj,O.maxBy=Nj,O.mean=Lj,O.meanBy=jj,O.min=kj,O.minBy=Fj,O.stubArray=W1,O.stubFalse=q1,O.stubObject=Cj,O.stubString=Tj,O.stubTrue=Sj,O.multiply=Bj,O.nth=eR,O.noConflict=mj,O.noop=V1,O.now=wc,O.pad=zL,O.padEnd=GL,O.padStart=HL,O.parseInt=UL,O.random=PL,O.reduce=rN,O.reduceRight=iN,O.repeat=VL,O.replace=WL,O.result=yL,O.round=zj,O.runInContext=z,O.sample=sN,O.size=cN,O.snakeCase=qL,O.some=uN,O.sortedIndex=aR,O.sortedIndexBy=lR,O.sortedIndexOf=cR,O.sortedLastIndex=uR,O.sortedLastIndexBy=dR,O.sortedLastIndexOf=fR,O.startCase=ZL,O.startsWith=XL,O.subtract=Gj,O.sum=Hj,O.sumBy=Uj,O.template=KL,O.times=Ij,O.toFinite=Wr,O.toInteger=Re,O.toLength=a_,O.toLower=QL,O.toNumber=Yn,O.toSafeInteger=QN,O.toString=Qe,O.toUpper=JL,O.trim=ej,O.trimEnd=tj,O.trimStart=nj,O.truncate=rj,O.unescape=ij,O.uniqueId=Aj,O.upperCase=oj,O.upperFirst=z1,O.each=qb,O.eachRight=Yb,O.first=Hb,U1(O,function(){var o={};return yr(O,function(a,f){Je.call(O.prototype,f)||(o[f]=a)}),o}(),{chain:!1}),O.VERSION=r,Gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){O[o].placeholder=O}),Gn(["drop","take"],function(o,a){Fe.prototype[o]=function(f){f=f===n?1:It(Re(f),0);var x=this.__filtered__&&!a?new Fe(this):this.clone();return x.__filtered__?x.__takeCount__=Gt(f,x.__takeCount__):x.__views__.push({size:Gt(f,V),type:o+(x.__dir__<0?"Right":"")}),x},Fe.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),Gn(["filter","map","takeWhile"],function(o,a){var f=a+1,x=f==N||f==B;Fe.prototype[o]=function(C){var $=this.clone();return $.__iteratees__.push({iteratee:Se(C,3),type:f}),$.__filtered__=$.__filtered__||x,$}}),Gn(["head","last"],function(o,a){var f="take"+(a?"Right":"");Fe.prototype[o]=function(){return this[f](1).value()[0]}}),Gn(["initial","tail"],function(o,a){var f="drop"+(a?"":"Right");Fe.prototype[o]=function(){return this.__filtered__?new Fe(this):this[f](1)}}),Fe.prototype.compact=function(){return this.filter(pn)},Fe.prototype.find=function(o){return this.filter(o).head()},Fe.prototype.findLast=function(o){return this.reverse().find(o)},Fe.prototype.invokeMap=je(function(o,a){return typeof o=="function"?new Fe(this):this.map(function(f){return Xs(f,o,a)})}),Fe.prototype.reject=function(o){return this.filter(Cc(Se(o)))},Fe.prototype.slice=function(o,a){o=Re(o);var f=this;return f.__filtered__&&(o>0||a<0)?new Fe(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),a!==n&&(a=Re(a),f=a<0?f.dropRight(-a):f.take(a-o)),f)},Fe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Fe.prototype.toArray=function(){return this.take(V)},yr(Fe.prototype,function(o,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),x=/^(?:head|last)$/.test(a),C=O[x?"take"+(a=="last"?"Right":""):a],$=x||/^find/.test(a);C&&(O.prototype[a]=function(){var P=this.__wrapped__,F=x?[1]:arguments,H=P instanceof Fe,ee=F[0],te=H||De(P),ie=function(ke){var ze=C.apply(O,bi([ke],F));return x&&me?ze[0]:ze};te&&f&&typeof ee=="function"&&ee.length!=1&&(H=te=!1);var me=this.__chain__,ye=!!this.__actions__.length,Ie=$&&!me,Le=H&&!ye;if(!$&&te){P=Le?P:new Fe(this);var Oe=o.apply(P,F);return Oe.__actions__.push({func:xc,args:[ie],thisArg:n}),new Un(Oe,me)}return Ie&&Le?o.apply(this,F):(Oe=this.thru(ie),Ie?x?Oe.value()[0]:Oe.value():Oe)})}),Gn(["pop","push","shift","sort","splice","unshift"],function(o){var a=Wl[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",x=/^(?:pop|shift)$/.test(o);O.prototype[o]=function(){var C=arguments;if(x&&!this.__chain__){var $=this.value();return a.apply(De($)?$:[],C)}return this[f](function(P){return a.apply(De(P)?P:[],C)})}}),yr(Fe.prototype,function(o,a){var f=O[a];if(f){var x=f.name+"";Je.call(Yo,x)||(Yo[x]=[]),Yo[x].push({name:a,func:f})}}),Yo[pc(n,y).name]=[{name:"wrapper",func:n}],Fe.prototype.clone=iM,Fe.prototype.reverse=oM,Fe.prototype.value=sM,O.prototype.at=NR,O.prototype.chain=LR,O.prototype.commit=jR,O.prototype.next=kR,O.prototype.plant=BR,O.prototype.reverse=zR,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=GR,O.prototype.first=O.prototype.head,Hs&&(O.prototype[Hs]=FR),O},Vo=jD();Ji?((Ji.exports=Vo)._=Vo,Hf._=Vo):kt._=Vo}).call(ts)}(el,el.exports);var xd=el.exports;const Jh=o9;Jh.displayName="BuilderBlockToolbarContext";const eg=h.forwardRef((e,t)=>{const{sections:n,qualityMetricIcon:r,isToolbarLocked:i=!0,inputPlaceholder:s="Search Block",onToggleToolbarLock:l,className:c}=e,[u,p]=h.useState(null),[m,g]=h.useState(null),[v,b]=h.useState(i),[E,_]=h.useState(!0);Th({onDragStart(I){p(I.active.data.current),document.body.style.setProperty("cursor","grabbing")},onDragEnd(){p(null),document.body.style.setProperty("cursor","")}});const w=()=>{l==null||l(!v),b(I=>!I)},y=I=>{const M=I.target.value;g(M)},T=m?(I=>{const M=n.filter(R=>R.blocks&&R.blocks.some(D=>D.type.includes(I)));return xd.isEmpty(M)?[]:M.map(R=>{var k;const D=(k=R==null?void 0:R.blocks)==null?void 0:k.filter(Y=>Y.type.includes(I));return{name:R.name,label:R.label,blocks:D}})})(m):n,A=xd.debounce(_,500);return d.jsxs("div",{ref:t,className:ae(bn["builder-block-toolbar--container"],!v&&!E?bn["hide-toolbar"]:bn["show-toolbar"],c),onMouseEnter:()=>!v&&A(!0),onMouseLeave:()=>!v&&A(!1),children:[d.jsxs("div",{className:ae(bn["builder-block-toolbar--header"]),children:[r&&d.jsx(st,{variant:"ghost",color:"primary",children:d.jsx(Ha,{...r})}),d.jsx(st,{variant:"ghost",color:"primary",style:{marginLeft:"auto"},onClick:w,children:v?d.jsx(i7,{}):d.jsx(E7,{})})]}),d.jsx($n,{placeholder:s,className:bn["builder-block-toolbar--input"],onChange:y}),d.jsx("div",{className:bn["builder-block-toolbar--sections"],children:xd.isEmpty(T.length)&&d.jsx(qc,{type:"multiple",children:T.map(I=>{var M;return d.jsxs(Yc,{value:I.name,children:[d.jsx(Zc,{children:d.jsx(Xc,{children:d.jsx(Ce,{children:I.label})})}),d.jsx(Kc,{className:bn["builder-block-toolbar--block-container"],children:(M=I.blocks)==null?void 0:M.map((R,D)=>d.jsx(tg,{block:R,name:I.name},D))})]},I.name)})})}),On.createPortal(d.jsx(x9,{children:u&&d.jsx(tg,{block:u.block,name:u.name,isOverlay:!0})}),document.body)]})});eg.displayName="BuilderBlockToolbar";const tg=({block:e,name:t,isOverlay:n})=>{const{attributes:r,listeners:i,setNodeRef:s,isDragging:l}=l9({id:e.type,data:{block:e,name:t}});return d.jsxs("button",{ref:s,className:ae(bn["builder-block-toolbar--block"],l&&bn["builder-block-toolbar--block-dragging"],n&&bn["builder-block-toolbar--block-overlay"]),...i,...r,children:[d.jsx("div",{className:ae(bn["builder-block-toolbar--block-icon"],bn[`builder-block-toolbar--block-icon-${t}`]),children:E9(e.type)}),d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-1000",className:bn["builder-block-toolbar-block-label"],children:e.label})]})};function E9(e){switch(e){case"text":return d.jsx(rp,{});case"image":return d.jsx(ap,{});case"video":return d.jsx(ep,{});case"variant":return d.jsx(P_,{});case"entities":return d.jsx(_7,{});case"generative":return d.jsx(Q0,{});case"card":return d.jsx(cp,{});case"quickReplies":return d.jsx(tp,{});case"reroute":return d.jsx(Rc,{});case"api":return d.jsx(lp,{});case"conditional":return d.jsx(up,{});case"capture":return d.jsx(ip,{});case"redirect":return d.jsx(Rc,{});case"setValues":return d.jsx(op,{});case"contactRequest":return d.jsx(Lc,{});case"agentTakeover":return d.jsx(sp,{});default:console.warn("Unknown block type:",e)}}const Ed={"ai-chat--trigger":"_ai-chat--trigger_17efd_1","ai-chat":"_ai-chat_17efd_1","ai-chat--container":"_ai-chat--container_17efd_11"},ng=ja;ng.displayName="ChatRoot";const rg=h.forwardRef((e,t)=>d.jsx(ka,{ref:t,className:Ed["ai-chat--trigger"],onClick:n=>n.preventDefault,children:d.jsx(Vu,{image:e.avatarBot.image,active:e.active,onClick:e.onClick})}));rg.displayName="ChatTrigger";const ig=h.forwardRef(({children:e},t)=>d.jsx(jE,{children:d.jsx(Fa,{ref:t,side:"top",align:"end",avoidCollisions:!1,sideOffset:16,className:Ed["ai-chat--container"],children:d.jsx("div",{className:Ed["ai-chat"],children:e})})}));ig.displayName="ChatContainer";const tl={"chat-header":"_chat-header_2piic_1","chat-header--purple":"_chat-header--purple_2piic_14","chat-header--white":"_chat-header--white_2piic_18","chat-header--label":"_chat-header--label_2piic_22","chat-header--close":"_chat-header--close_2piic_27"},w9=({botName:e,avatar:t,repliesInstantlyLabel:n="Replies instantly",type:r})=>{const i=r==="purple"?"white":"gray-1000";return d.jsxs("div",{className:ae(tl["chat-header"],tl[`chat-header--${r}`]),children:[d.jsx("div",{children:d.jsx(wo,{...t})}),d.jsxs("div",{className:tl["chat-header--label"],children:[d.jsx(Ce,{fontWeight:"bold",size:"md",color:i,children:e}),d.jsx(Ce,{fontWeight:"regular",size:"xs",color:i,children:n})]}),d.jsx(kE,{className:tl["chat-header--close"],children:d.jsx(Pu,{color:i,height:"3.2rem",width:"3.2rem"})})]})},og={"chat-content":"_chat-content_1yrah_1","chat-messages":"_chat-messages_1yrah_16"},Io={"chat-input--container":"_chat-input--container_vv57m_1","chat-input--disabled":"_chat-input--disabled_vv57m_13","chat-input--input":"_chat-input--input_vv57m_18","chat-input--icon":"_chat-input--icon_vv57m_42","chat-input--content":"_chat-input--content_vv57m_53","send-button":"_send-button_vv57m_70"},y9=(e,t)=>{h.useEffect(()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}},[e,t])},sg=h.forwardRef((e,t)=>{const{disabled:n,placeholder:r,className:i,onChange:s,value:l,...c}=e,u=h.useRef(null),[p,m]=h.useState(l);y9(u.current,p);const g=v=>{var E;const b=(E=v.target)==null?void 0:E.value;m(b),s==null||s(v)};return d.jsx("div",{className:ae(Io["chat-input--container"],n&&Io["chat-input--disabled"],i),children:d.jsxs("div",{className:Io["chat-input--content"],children:[d.jsx("textarea",{ref:u,className:ae(Io["chat-input--input"],n&&"cursor-not-allowed"),placeholder:r,disabled:n,value:p,onChange:g,rows:1,...c}),d.jsx("span",{className:Io["chat-input--icon"],children:d.jsx(st,{className:Io["send-button"],variant:"ghost",color:"primary",size:"md",children:d.jsx(m7,{className:"text--purple-600"})})})]})})});sg.displayName="ChatInput";const Ve={"chat-item":"_chat-item_1oblk_1","chat-item--bot":"_chat-item--bot_1oblk_6","chat-item--user":"_chat-item--user_1oblk_10","chat-item--avatar-container":"_chat-item--avatar-container_1oblk_14","chat-item--chat":"_chat-item--chat_1oblk_20","chat-item--typing":"_chat-item--typing_1oblk_28","chat-item--chat-bot":"_chat-item--chat-bot_1oblk_37","chat-item--chat-user":"_chat-item--chat-user_1oblk_43","chat-item--feedback-requested":"_chat-item--feedback-requested_1oblk_49","chat-item--media":"_chat-item--media_1oblk_53","chat-item--image":"_chat-item--image_1oblk_57","chat-item--video":"_chat-item--video_1oblk_62","chat-item--button-container":"_chat-item--button-container_1oblk_67","chat-item--caption":"_chat-item--caption_1oblk_76","chat-item--icon":"_chat-item--icon_1oblk_80","chat-item--feedback":"_chat-item--feedback_1oblk_49","chat-item-feedback-icons":"_chat-item-feedback-icons_1oblk_102","chat-item--feedback-given":"_chat-item--feedback-given_1oblk_107","chat-item--card":"_chat-item--card_1oblk_114","chat-item--card-image":"_chat-item--card-image_1oblk_123","chat-item--card-content":"_chat-item--card-content_1oblk_127","chat-item--card-buttons":"_chat-item--card-buttons_1oblk_134","chat-item--carousel":"_chat-item--carousel_1oblk_138","chat-item--carousel-card":"_chat-item--carousel-card_1oblk_147","chat-item--carousel-left-navigation":"_chat-item--carousel-left-navigation_1oblk_155","chat-item--carousel-right-navigation":"_chat-item--carousel-right-navigation_1oblk_162","swiper-wrapper":"_swiper-wrapper_1oblk_169"};function ag(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function wd(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:ag(t[n])&&ag(e[n])&&Object.keys(t[n]).length>0&&wd(e[n],t[n])})}const lg={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Or(){const e=typeof document<"u"?document:{};return wd(e,lg),e}const C9={document:lg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Vt(){const e=typeof window<"u"?window:{};return wd(e,C9),e}function T9(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function yd(e,t=0){return setTimeout(e,t)}function nl(){return Date.now()}function S9(e){const t=Vt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function I9(e,t="x"){const n=Vt();let r,i,s;const l=S9(e);return n.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(c=>c.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function rl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function O9(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function _n(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!O9(i)){const s=Object.keys(Object(i)).filter(l=>n.indexOf(l)<0);for(let l=0,c=s.length;l<c;l+=1){const u=s[l],p=Object.getOwnPropertyDescriptor(i,u);p!==void 0&&p.enumerable&&(rl(t[u])&&rl(i[u])?i[u].__swiper__?t[u]=i[u]:_n(t[u],i[u]):!rl(t[u])&&rl(i[u])?(t[u]={},i[u].__swiper__?t[u]=i[u]:_n(t[u],i[u])):t[u]=i[u])}}}return t}function il(e,t,n){e.style.setProperty(t,n)}function cg({swiper:e,targetPosition:t,side:n}){const r=Vt(),i=-e.translate;let s=null,l;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const u=t>i?"next":"prev",p=(g,v)=>u==="next"&&g>=v||u==="prev"&&g<=v,m=()=>{l=new Date().getTime(),s===null&&(s=l);const g=Math.max(Math.min((l-s)/c,1),0),v=.5-Math.cos(g*Math.PI)/2;let b=i+v*(t-i);if(p(b,t)&&(b=t),e.wrapperEl.scrollTo({[n]:b}),p(b,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(m)};m()}function gr(e,t=""){return[...e.children].filter(n=>n.matches(t))}function ug(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function A9(e){const t=Vt(),n=Or(),r=e.getBoundingClientRect(),i=n.body,s=e.clientTop||i.clientTop||0,l=e.clientLeft||i.clientLeft||0,c=e===t?t.scrollY:e.scrollTop,u=e===t?t.scrollX:e.scrollLeft;return{top:r.top+c-s,left:r.left+u-l}}function $9(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function D9(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function ai(e,t){return Vt().getComputedStyle(e,null).getPropertyValue(t)}function dg(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Cd(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function fg(e,t,n){const r=Vt();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}let Td;function M9(){const e=Vt(),t=Or();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function pg(){return Td||(Td=M9()),Td}let Sd;function P9({userAgent:e}={}){const t=pg(),n=Vt(),r=n.navigator.platform,i=e||n.navigator.userAgent,s={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/);let p=i.match(/(iPad).*OS\s([\d_]+)/);const m=i.match(/(iPod)(.*OS\s([\d_]+))?/),g=!p&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let b=r==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!p&&b&&t.touch&&E.indexOf(`${l}x${c}`)>=0&&(p=i.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),b=!1),u&&!v&&(s.os="android",s.android=!0),(p||g||m)&&(s.os="ios",s.ios=!0),s}function R9(e={}){return Sd||(Sd=P9(e)),Sd}let Id;function N9(){const e=Vt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,s]=r.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));t=i<16||i===16&&s<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function L9(){return Id||(Id=N9()),Id}function j9({swiper:e,on:t,emit:n}){const r=Vt();let i=null,s=null;const l=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(m=>{s=r.requestAnimationFrame(()=>{const{width:g,height:v}=e;let b=g,E=v;m.forEach(({contentBoxSize:_,contentRect:w,target:y})=>{y&&y!==e.el||(b=w?w.width:(_[0]||_).inlineSize,E=w?w.height:(_[0]||_).blockSize)}),(b!==g||E!==v)&&l()})}),i.observe(e.el))},u=()=>{s&&r.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},p=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){c();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",p)}),t("destroy",()=>{u(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",p)})}function k9({swiper:e,extendParams:t,on:n,emit:r}){const i=[],s=Vt(),l=(p,m={})=>{const g=s.MutationObserver||s.WebkitMutationObserver,v=new g(b=>{if(e.__preventObserver__)return;if(b.length===1){r("observerUpdate",b[0]);return}const E=function(){r("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(E):s.setTimeout(E,0)});v.observe(p,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),i.push(v)},c=()=>{if(e.params.observer){if(e.params.observeParents){const p=Cd(e.el);for(let m=0;m<p.length;m+=1)l(p[m])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},u=()=>{i.forEach(p=>{p.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",c),n("destroy",u)}const F9={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...s){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,s)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(i,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(i,r)})}),t}};function B9(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(ai(r,"padding-left")||0,10)-parseInt(ai(r,"padding-right")||0,10),n=n-parseInt(ai(r,"padding-top")||0,10)-parseInt(ai(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function z9(){const e=this;function t(L){return e.isHorizontal()?L:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[L]}function n(L,G){return parseFloat(L.getPropertyValue(t(G))||0)}const r=e.params,{wrapperEl:i,slidesEl:s,size:l,rtlTranslate:c,wrongRTL:u}=e,p=e.virtual&&r.virtual.enabled,m=p?e.virtual.slides.length:e.slides.length,g=gr(s,`.${e.params.slideClass}, swiper-slide`),v=p?e.virtual.slides.length:g.length;let b=[];const E=[],_=[];let w=r.slidesOffsetBefore;typeof w=="function"&&(w=r.slidesOffsetBefore.call(e));let y=r.slidesOffsetAfter;typeof y=="function"&&(y=r.slidesOffsetAfter.call(e));const S=e.snapGrid.length,T=e.slidesGrid.length;let A=r.spaceBetween,I=-w,M=0,R=0;if(typeof l>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*l:typeof A=="string"&&(A=parseFloat(A)),e.virtualSize=-A,g.forEach(L=>{c?L.style.marginLeft="":L.style.marginRight="",L.style.marginBottom="",L.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(il(i,"--swiper-centered-offset-before",""),il(i,"--swiper-centered-offset-after",""));const D=r.grid&&r.grid.rows>1&&e.grid;D&&e.grid.initSlides(v);let k;const Y=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(L=>typeof r.breakpoints[L].slidesPerView<"u").length>0;for(let L=0;L<v;L+=1){k=0;let G;if(g[L]&&(G=g[L]),D&&e.grid.updateSlide(L,G,v,t),!(g[L]&&ai(G,"display")==="none")){if(r.slidesPerView==="auto"){Y&&(g[L].style[t("width")]="");const X=getComputedStyle(G),N=G.style.transform,K=G.style.webkitTransform;if(N&&(G.style.transform="none"),K&&(G.style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?fg(G,"width"):fg(G,"height");else{const B=n(X,"width"),W=n(X,"padding-left"),J=n(X,"padding-right"),q=n(X,"margin-left"),U=n(X,"margin-right"),V=X.getPropertyValue("box-sizing");if(V&&V==="border-box")k=B+q+U;else{const{clientWidth:ce,offsetWidth:de}=G;k=B+W+J+q+U+(de-ce)}}N&&(G.style.transform=N),K&&(G.style.webkitTransform=K),r.roundLengths&&(k=Math.floor(k))}else k=(l-(r.slidesPerView-1)*A)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),g[L]&&(g[L].style[t("width")]=`${k}px`);g[L]&&(g[L].swiperSlideSize=k),_.push(k),r.centeredSlides?(I=I+k/2+M/2+A,M===0&&L!==0&&(I=I-l/2-A),L===0&&(I=I-l/2-A),Math.abs(I)<1/1e3&&(I=0),r.roundLengths&&(I=Math.floor(I)),R%r.slidesPerGroup===0&&b.push(I),E.push(I)):(r.roundLengths&&(I=Math.floor(I)),(R-Math.min(e.params.slidesPerGroupSkip,R))%e.params.slidesPerGroup===0&&b.push(I),E.push(I),I=I+k+A),e.virtualSize+=k+A,M=k,R+=1}}if(e.virtualSize=Math.max(e.virtualSize,l)+y,c&&u&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+A}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+A}px`),D&&e.grid.updateWrapperSize(k,b,t),!r.centeredSlides){const L=[];for(let G=0;G<b.length;G+=1){let X=b[G];r.roundLengths&&(X=Math.floor(X)),b[G]<=e.virtualSize-l&&L.push(X)}b=L,Math.floor(e.virtualSize-l)-Math.floor(b[b.length-1])>1&&b.push(e.virtualSize-l)}if(p&&r.loop){const L=_[0]+A;if(r.slidesPerGroup>1){const G=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),X=L*r.slidesPerGroup;for(let N=0;N<G;N+=1)b.push(b[b.length-1]+X)}for(let G=0;G<e.virtual.slidesBefore+e.virtual.slidesAfter;G+=1)r.slidesPerGroup===1&&b.push(b[b.length-1]+L),E.push(E[E.length-1]+L),e.virtualSize+=L}if(b.length===0&&(b=[0]),A!==0){const L=e.isHorizontal()&&c?"marginLeft":t("marginRight");g.filter((G,X)=>!r.cssMode||r.loop?!0:X!==g.length-1).forEach(G=>{G.style[L]=`${A}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let L=0;_.forEach(X=>{L+=X+(A||0)}),L-=A;const G=L-l;b=b.map(X=>X<=0?-w:X>G?G+y:X)}if(r.centerInsufficientSlides){let L=0;if(_.forEach(G=>{L+=G+(A||0)}),L-=A,L<l){const G=(l-L)/2;b.forEach((X,N)=>{b[N]=X-G}),E.forEach((X,N)=>{E[N]=X+G})}}if(Object.assign(e,{slides:g,snapGrid:b,slidesGrid:E,slidesSizesGrid:_}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){il(i,"--swiper-centered-offset-before",`${-b[0]}px`),il(i,"--swiper-centered-offset-after",`${e.size/2-_[_.length-1]/2}px`);const L=-e.snapGrid[0],G=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(X=>X+L),e.slidesGrid=e.slidesGrid.map(X=>X+G)}if(v!==m&&e.emit("slidesLengthChange"),b.length!==S&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),E.length!==T&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!p&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const L=`${r.containerModifierClass}backface-hidden`,G=e.el.classList.contains(L);v<=r.maxBackfaceHiddenSlides?G||e.el.classList.add(L):G&&e.el.classList.remove(L)}}function G9(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=c=>r?t.slides[t.getSlideIndexByData(c)]:t.slides[c];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(c=>{n.push(c)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const c=t.activeIndex+s;if(c>t.slides.length&&!r)break;n.push(l(c))}else n.push(l(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const c=n[s].offsetHeight;i=c>i?c:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function H9(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function U9(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;i&&(l=e),r.forEach(u=>{u.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let c=n.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*t.size:typeof c=="string"&&(c=parseFloat(c));for(let u=0;u<r.length;u+=1){const p=r[u];let m=p.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(m-=r[0].swiperSlideOffset);const g=(l+(n.centeredSlides?t.minTranslate():0)-m)/(p.swiperSlideSize+c),v=(l-s[0]+(n.centeredSlides?t.minTranslate():0)-m)/(p.swiperSlideSize+c),b=-(l-m),E=b+t.slidesSizesGrid[u];(b>=0&&b<t.size-1||E>1&&E<=t.size||b<=0&&E>=t.size)&&(t.visibleSlides.push(p),t.visibleSlidesIndexes.push(u),r[u].classList.add(n.slideVisibleClass)),p.progress=i?-g:g,p.originalProgress=i?-v:v}}function V9(e){const t=this;if(typeof e>"u"){const m=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*m||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:l,progressLoop:c}=t;const u=s,p=l;if(r===0)i=0,s=!0,l=!0;else{i=(e-t.minTranslate())/r;const m=Math.abs(e-t.minTranslate())<1,g=Math.abs(e-t.maxTranslate())<1;s=m||i<=0,l=g||i>=1,m&&(i=0),g&&(i=1)}if(n.loop){const m=t.getSlideIndexByData(0),g=t.getSlideIndexByData(t.slides.length-1),v=t.slidesGrid[m],b=t.slidesGrid[g],E=t.slidesGrid[t.slidesGrid.length-1],_=Math.abs(e);_>=v?c=(_-v)/E:c=(_+E-b)/E,c>1&&(c-=1)}Object.assign(t,{progress:i,progressLoop:c,isBeginning:s,isEnd:l}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!u&&t.emit("reachBeginning toEdge"),l&&!p&&t.emit("reachEnd toEdge"),(u&&!s||p&&!l)&&t.emit("fromEdge"),t.emit("progress",i)}function W9(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,s=e.virtual&&n.virtual.enabled,l=u=>gr(r,`.${n.slideClass}${u}, swiper-slide${u}`)[0];t.forEach(u=>{u.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let c;if(s)if(n.loop){let u=i-e.virtual.slidesBefore;u<0&&(u=e.virtual.slides.length+u),u>=e.virtual.slides.length&&(u-=e.virtual.slides.length),c=l(`[data-swiper-slide-index="${u}"]`)}else c=l(`[data-swiper-slide-index="${i}"]`);else c=t[i];if(c){c.classList.add(n.slideActiveClass);let u=D9(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u&&(u=t[0]),u&&u.classList.add(n.slideNextClass);let p=$9(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!p===0&&(p=t[t.length-1]),p&&p.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const ol=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}},Od=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Ad=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=i,c=[l-t];c.push(...Array.from({length:t}).map((u,p)=>l+r+p)),e.slides.forEach((u,p)=>{c.includes(u.column)&&Od(e,p)});return}const s=i+r-1;if(e.params.rewind||e.params.loop)for(let l=i-t;l<=s+t;l+=1){const c=(l%n+n)%n;(c<i||c>s)&&Od(e,c)}else for(let l=Math.max(i-t,0);l<=Math.min(s+t,n-1);l+=1)l!==i&&(l>s||l<i)&&Od(e,l)};function q9(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?i=s:r>=t[s]&&r<t[s+1]&&(i=s+1):r>=t[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function Y9(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:l,snapIndex:c}=t;let u=e,p;const m=v=>{let b=v-t.virtual.slidesBefore;return b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),b};if(typeof u>"u"&&(u=q9(t)),r.indexOf(n)>=0)p=r.indexOf(n);else{const v=Math.min(i.slidesPerGroupSkip,u);p=v+Math.floor((u-v)/i.slidesPerGroup)}if(p>=r.length&&(p=r.length-1),u===s){p!==c&&(t.snapIndex=p,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=m(u));return}let g;t.virtual&&i.virtual.enabled&&i.loop?g=m(u):t.slides[u]?g=parseInt(t.slides[u].getAttribute("data-swiper-slide-index")||u,10):g=u,Object.assign(t,{previousSnapIndex:c,snapIndex:p,previousRealIndex:l,realIndex:g,previousIndex:s,activeIndex:u}),t.initialized&&Ad(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==g&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function Z9(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,s;if(r){for(let l=0;l<t.slides.length;l+=1)if(t.slides[l]===r){i=!0,s=l;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=s;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const X9={updateSize:B9,updateSlides:z9,updateAutoHeight:G9,updateSlidesOffset:H9,updateSlidesProgress:U9,updateProgress:V9,updateSlidesClasses:W9,updateActiveIndex:Y9,updateClickedSlide:Z9};function K9(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:s}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let l=I9(s,e);return l+=t.cssOverflowAdjustment(),r&&(l=-l),l||0}function Q9(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:s,progress:l}=n;let c=0,u=0;const p=0;n.isHorizontal()?c=r?-e:e:u=e,i.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:u,i.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-u:i.virtualTranslate||(n.isHorizontal()?c-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${c}px, ${u}px, ${p}px)`);let m;const g=n.maxTranslate()-n.minTranslate();g===0?m=0:m=(e-n.minTranslate())/g,m!==l&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function J9(){return-this.snapGrid[0]}function ey(){return-this.snapGrid[this.snapGrid.length-1]}function ty(e=0,t=this.params.speed,n=!0,r=!0,i){const s=this,{params:l,wrapperEl:c}=s;if(s.animating&&l.preventInteractionOnTransition)return!1;const u=s.minTranslate(),p=s.maxTranslate();let m;if(r&&e>u?m=u:r&&e<p?m=p:m=e,s.updateProgress(m),l.cssMode){const g=s.isHorizontal();if(t===0)c[g?"scrollLeft":"scrollTop"]=-m;else{if(!s.support.smoothScroll)return cg({swiper:s,targetPosition:-m,side:g?"left":"top"}),!0;c.scrollTo({[g?"left":"top"]:-m,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}const ny={getTranslate:K9,setTranslate:Q9,minTranslate:J9,maxTranslate:ey,translateTo:ty};function ry(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function hg({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:s}=e;let l=n;if(l||(i>s?l="next":i<s?l="prev":l="reset"),e.emit(`transition${r}`),t&&i!==s){if(l==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),l==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function iy(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),hg({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function oy(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),hg({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const sy={setTransition:ry,transitionStart:iy,transitionEnd:oy};function ay(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const s=this;let l=e;l<0&&(l=0);const{params:c,snapGrid:u,slidesGrid:p,previousIndex:m,activeIndex:g,rtlTranslate:v,wrapperEl:b,enabled:E}=s;if(s.animating&&c.preventInteractionOnTransition||!E&&!r&&!i)return!1;const _=Math.min(s.params.slidesPerGroupSkip,l);let w=_+Math.floor((l-_)/s.params.slidesPerGroup);w>=u.length&&(w=u.length-1);const y=-u[w];if(c.normalizeSlideIndex)for(let T=0;T<p.length;T+=1){const A=-Math.floor(y*100),I=Math.floor(p[T]*100),M=Math.floor(p[T+1]*100);typeof p[T+1]<"u"?A>=I&&A<M-(M-I)/2?l=T:A>=I&&A<M&&(l=T+1):A>=I&&(l=T)}if(s.initialized&&l!==g&&(!s.allowSlideNext&&(v?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())||!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(g||0)!==l))return!1;l!==(m||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(y);let S;if(l>g?S="next":l<g?S="prev":S="reset",v&&-y===s.translate||!v&&y===s.translate)return s.updateActiveIndex(l),c.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),c.effect!=="slide"&&s.setTranslate(y),S!=="reset"&&(s.transitionStart(n,S),s.transitionEnd(n,S)),!1;if(c.cssMode){const T=s.isHorizontal(),A=v?y:-y;if(t===0){const I=s.virtual&&s.params.virtual.enabled;I&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),I&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{b[T?"scrollLeft":"scrollTop"]=A})):b[T?"scrollLeft":"scrollTop"]=A,I&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return cg({swiper:s,targetPosition:A,side:T?"left":"top"}),!0;b.scrollTo({[T?"left":"top"]:A,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(y),s.updateActiveIndex(l),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,S),t===0?s.transitionEnd(n,S):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(A){!s||s.destroyed||A.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,S))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function ly(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?s=s+i.virtual.slidesBefore:s=i.getSlideIndexByData(s)),i.slideTo(s,t,n,r)}function cy(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:s,animating:l}=r;if(!i)return r;let c=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(c=Math.max(r.slidesPerViewDynamic("current",!0),1));const u=r.activeIndex<s.slidesPerGroupSkip?1:c,p=r.virtual&&s.virtual.enabled;if(s.loop){if(l&&!p&&s.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+u,e,t,n)}function uy(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:s,slidesGrid:l,rtlTranslate:c,enabled:u,animating:p}=r;if(!u)return r;const m=r.virtual&&i.virtual.enabled;if(i.loop){if(p&&!m&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const g=c?r.translate:-r.translate;function v(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const b=v(g),E=s.map(y=>v(y));let _=s[E.indexOf(b)-1];if(typeof _>"u"&&i.cssMode){let y;s.forEach((S,T)=>{b>=S&&(y=T)}),typeof y<"u"&&(_=s[y>0?y-1:y])}let w=0;if(typeof _<"u"&&(w=l.indexOf(_),w<0&&(w=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(w=w-r.slidesPerViewDynamic("previous",!0)+1,w=Math.max(w,0))),i.rewind&&r.isBeginning){const y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,n)}return r.slideTo(w,e,t,n)}function dy(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function fy(e=this.params.speed,t=!0,n,r=.5){const i=this;let s=i.activeIndex;const l=Math.min(i.params.slidesPerGroupSkip,s),c=l+Math.floor((s-l)/i.params.slidesPerGroup),u=i.rtlTranslate?i.translate:-i.translate;if(u>=i.snapGrid[c]){const p=i.snapGrid[c],m=i.snapGrid[c+1];u-p>(m-p)*r&&(s+=i.params.slidesPerGroup)}else{const p=i.snapGrid[c-1],m=i.snapGrid[c];u-p<=(m-p)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)}function py(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,s;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(gr(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),yd(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(gr(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),yd(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const hy={slideTo:ay,slideToLoop:ly,slideNext:cy,slidePrev:uy,slideReset:dy,slideToClosest:fy,slideToClickedSlide:py};function gy(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;gr(r,`.${n.slideClass}, swiper-slide`).forEach((s,l)=>{s.setAttribute("data-swiper-slide-index",l)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function my({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:s,byMousewheel:l}={}){const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:p,allowSlideNext:m,slidesEl:g,params:v}=c;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&v.virtual.enabled){t&&(!v.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v.centeredSlides&&c.snapIndex<v.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=p,c.allowSlideNext=m,c.emit("loopFix");return}const b=v.slidesPerView==="auto"?c.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let E=v.loopedSlides||b;E%v.slidesPerGroup!==0&&(E+=v.slidesPerGroup-E%v.slidesPerGroup),c.loopedSlides=E;const _=[],w=[];let y=c.activeIndex;typeof i>"u"?i=c.getSlideIndex(c.slides.filter(M=>M.classList.contains(v.slideActiveClass))[0]):y=i;const S=n==="next"||!n,T=n==="prev"||!n;let A=0,I=0;if(i<E){A=Math.max(E-i,v.slidesPerGroup);for(let M=0;M<E-i;M+=1){const R=M-Math.floor(M/u.length)*u.length;_.push(u.length-R-1)}}else if(i>c.slides.length-E*2){I=Math.max(i-(c.slides.length-E*2),v.slidesPerGroup);for(let M=0;M<I;M+=1){const R=M-Math.floor(M/u.length)*u.length;w.push(R)}}if(T&&_.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.prepend(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),S&&w.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.append(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),c.recalcSlides(),v.slidesPerView==="auto"&&c.updateSlides(),v.watchSlidesProgress&&c.updateSlidesOffset(),t){if(_.length>0&&T)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y+A]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y+A,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else r&&c.slideToLoop(e,0,!1,!0);else if(w.length>0&&S)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y-I]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y-I,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else c.slideToLoop(e,0,!1,!0)}if(c.allowSlidePrev=p,c.allowSlideNext=m,c.controller&&c.controller.control&&!s){const M={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(R=>{!R.destroyed&&R.params.loop&&R.loopFix(M)}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix(M)}c.emit("loopFix")}function vy(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const by={loopCreate:gy,loopFix:my,loopDestroy:vy};function _y(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function xy(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const Ey={setGrabCursor:_y,unsetGrabCursor:xy};function wy(e,t=this){function n(r){if(!r||r===Or()||r===Vt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function yy(e){const t=this,n=Or(),r=Vt(),i=t.touchEventsData;i.evCache.push(e);const{params:s,touches:l,enabled:c}=t;if(!c||!s.simulateTouch&&e.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let u=e;u.originalEvent&&(u=u.originalEvent);let p=u.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(p)||"which"in u&&u.which===3||"button"in u&&u.button>0||i.isTouched&&i.isMoved)return;const m=!!s.noSwipingClass&&s.noSwipingClass!=="",g=e.composedPath?e.composedPath():e.path;m&&u.target&&u.target.shadowRoot&&g&&(p=g[0]);const v=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,b=!!(u.target&&u.target.shadowRoot);if(s.noSwiping&&(b?wy(v,p):p.closest(v))){t.allowClick=!0;return}if(s.swipeHandler&&!p.closest(s.swipeHandler))return;l.currentX=u.pageX,l.currentY=u.pageY;const E=l.currentX,_=l.currentY,w=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,y=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(w&&(E<=y||E>=r.innerWidth-y))if(w==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=E,l.startY=_,i.touchStartTime=nl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let S=!0;p.matches(i.focusableElements)&&(S=!1,p.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==p&&n.activeElement.blur();const T=S&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||T)&&!p.isContentEditable&&u.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",u)}function Cy(e){const t=Or(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:l,enabled:c}=n;if(!c||!i.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",u);return}const p=r.evCache.findIndex(M=>M.pointerId===u.pointerId);p>=0&&(r.evCache[p]=u);const m=r.evCache.length>1?r.evCache[0]:u,g=m.pageX,v=m.pageY;if(u.preventedByNestedSwiper){s.startX=g,s.startY=v;return}if(!n.allowTouchMove){u.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:g,startY:v,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:g,currentY:v}),r.touchStartTime=nl());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(v<s.startY&&n.translate<=n.maxTranslate()||v>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(g<s.startX&&n.translate<=n.maxTranslate()||g>s.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&u.target===t.activeElement&&u.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",u),u.targetTouches&&u.targetTouches.length>1)return;s.currentX=g,s.currentY=v;const b=s.currentX-s.startX,E=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(b**2+E**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let M;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:b*b+E*E>=25&&(M=Math.atan2(Math.abs(E),Math.abs(b))*180/Math.PI,r.isScrolling=n.isHorizontal()?M>i.touchAngle:90-M>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",u),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&u.cancelable&&u.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&u.stopPropagation();let _=n.isHorizontal()?b:E,w=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(_=Math.abs(_)*(l?1:-1),w=Math.abs(w)*(l?1:-1)),s.diff=_,_*=i.touchRatio,l&&(_=-_,w=-w);const y=n.touchesDirection;n.swipeDirection=_>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const S=n.params.loop&&!i.cssMode;if(!r.isMoved){if(S&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(M)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}let T;r.isMoved&&y!==n.touchesDirection&&S&&Math.abs(_)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),T=!0),n.emit("sliderMove",u),r.isMoved=!0,r.currentTranslate=_+r.startTranslate;let A=!0,I=i.resistanceRatio;if(i.touchReleaseOnEdges&&(I=0),_>0?(S&&!T&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(A=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+_)**I))):_<0&&(S&&!T&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(A=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-_)**I))),A&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(_)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Ty(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(T=>T.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:i,touches:s,rtlTranslate:l,slidesGrid:c,enabled:u}=t;if(!u||!i.simulateTouch&&e.pointerType==="mouse")return;let p=e;if(p.originalEvent&&(p=p.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",p),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=nl(),g=m-n.touchStartTime;if(t.allowClick){const T=p.path||p.composedPath&&p.composedPath();t.updateClickedSlide(T&&T[0]||p.target),t.emit("tap click",p),g<300&&m-n.lastClickTime<300&&t.emit("doubleTap doubleClick",p)}if(n.lastClickTime=nl(),yd(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(i.followFinger?v=l?t.translate:-t.translate:v=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}let b=0,E=t.slidesSizesGrid[0];for(let T=0;T<c.length;T+=T<i.slidesPerGroupSkip?1:i.slidesPerGroup){const A=T<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof c[T+A]<"u"?v>=c[T]&&v<c[T+A]&&(b=T,E=c[T+A]-c[T]):v>=c[T]&&(b=T,E=c[c.length-1]-c[c.length-2])}let _=null,w=null;i.rewind&&(t.isBeginning?w=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(_=0));const y=(v-c[b])/E,S=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(g>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?_:b+S):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(b+S):w!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(w):t.slideTo(b))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(p.target===t.navigation.nextEl||p.target===t.navigation.prevEl)?p.target===t.navigation.nextEl?t.slideTo(b+S):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(_!==null?_:b+S),t.swipeDirection==="prev"&&t.slideTo(w!==null?w:b))}}function gg(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const c=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!c?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function Sy(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Iy(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const s=e.maxTranslate()-e.minTranslate();s===0?i=0:i=(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Oy(e){const t=this;ol(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let mg=!1;function Ay(){}const vg=(e,t)=>{const n=Or(),{params:r,el:i,wrapperEl:s,device:l}=e,c=!!r.nested,u=t==="on"?"addEventListener":"removeEventListener",p=t;i[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:c}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[u]("click",e.onClick,!0),r.cssMode&&s[u]("scroll",e.onScroll),r.updateOnWindowResize?e[p](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",gg,!0):e[p]("observerUpdate",gg,!0),i[u]("load",e.onLoad,{capture:!0})};function $y(){const e=this,t=Or(),{params:n}=e;e.onTouchStart=yy.bind(e),e.onTouchMove=Cy.bind(e),e.onTouchEnd=Ty.bind(e),n.cssMode&&(e.onScroll=Iy.bind(e)),e.onClick=Sy.bind(e),e.onLoad=Oy.bind(e),mg||(t.addEventListener("touchstart",Ay),mg=!0),vg(e,"on")}function Dy(){vg(this,"off")}const My={attachEvents:$y,detachEvents:Dy},bg=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Py(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const l=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const u=(l in s?s[l]:void 0)||e.originalParams,p=bg(e,r),m=bg(e,u),g=r.enabled;p&&!m?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&m&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(_=>{if(typeof u[_]>"u")return;const w=r[_]&&r[_].enabled,y=u[_]&&u[_].enabled;w&&!y&&e[_].disable(),!w&&y&&e[_].enable()});const v=u.direction&&u.direction!==r.direction,b=r.loop&&(u.slidesPerView!==r.slidesPerView||v);v&&n&&e.changeDirection(),_n(e.params,u);const E=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!E?e.disable():!g&&E&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),b&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",u)}function Ry(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Vt(),s=t==="window"?i.innerHeight:n.clientHeight,l=Object.keys(e).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const u=parseFloat(c.substr(1));return{value:s*u,point:c}}return{value:c,point:c}});l.sort((c,u)=>parseInt(c.value,10)-parseInt(u.value,10));for(let c=0;c<l.length;c+=1){const{point:u,value:p}=l[c];t==="window"?i.matchMedia(`(min-width: ${p}px)`).matches&&(r=u):p<=n.clientWidth&&(r=u)}return r||"max"}const Ny={setBreakpoint:Py,getBreakpoint:Ry};function Ly(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function jy(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:s}=e,l=Ly(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...l),i.classList.add(...t),e.emitContainerClasses()}function ky(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const Fy={addClasses:jy,removeClasses:ky};function By(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,s=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const zy={checkOverflow:By},_g={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Gy(e,t){return function(r={}){const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){_n(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in s)){_n(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),_n(t,r)}}const $d={eventsEmitter:F9,update:X9,translate:ny,transition:sy,slide:hy,loop:by,grabCursor:Ey,events:My,breakpoints:Ny,checkOverflow:zy,classes:Fy},Dd={};let Ss=class Yr{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=_n({},r),n&&!r.el&&(r.el=n);const i=Or();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const u=[];return i.querySelectorAll(r.el).forEach(p=>{const m=_n({},r,{el:p});u.push(new Yr(m))}),u}const s=this;s.__swiper__=!0,s.support=pg(),s.device=R9({userAgent:r.userAgent}),s.browser=L9(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],r.modules&&Array.isArray(r.modules)&&s.modules.push(...r.modules);const l={};s.modules.forEach(u=>{u({params:r,swiper:s,extendParams:Gy(r,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const c=_n({},_g,l);return s.params=_n({},c,Dd,r),s.originalParams=_n({},s.params),s.passedParams=_n({},r),s.params&&s.params.on&&Object.keys(s.params.on).forEach(u=>{s.on(u,s.params.on[u])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=gr(n,`.${r.slideClass}, swiper-slide`),s=dg(i[0]);return dg(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=gr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),l=(r.maxTranslate()-i)*t+i;r.translateTo(l,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:s,slidesGrid:l,slidesSizesGrid:c,size:u,activeIndex:p}=r;let m=1;if(i.centeredSlides){let g=s[p]?s[p].swiperSlideSize:0,v;for(let b=p+1;b<s.length;b+=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>u&&(v=!0));for(let b=p-1;b>=0;b-=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>u&&(v=!0))}else if(t==="current")for(let g=p+1;g<s.length;g+=1)(n?l[g]+c[g]-l[p]<u:l[g]-l[p]<u)&&(m+=1);else for(let g=p-1;g>=0;g-=1)l[p]-l[g]<u&&(m+=1);return m}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&ol(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const l=t.rtlTranslate?t.translate*-1:t.translate,c=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const l=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(l.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):gr(r,i())[0];return!l&&n.params.createElements&&(l=ug("div",n.params.wrapperClass),r.append(l),gr(r,`.${n.params.slideClass}`).forEach(c=>{l.append(c)})),Object.assign(n,{el:r,wrapperEl:l,slidesEl:n.isElement?r:l,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||ai(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||ai(r,"direction")==="rtl"),wrongRTL:ai(l,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?ol(n,i):i.addEventListener("load",s=>{ol(n,s.target)})}),Ad(n),n.initialized=!0,Ad(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:s,wrapperEl:l,slides:c}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),l.removeAttribute("style"),c&&c.length&&c.forEach(u=>{u.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),u.removeAttribute("style"),u.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(u=>{r.off(u)}),t!==!1&&(r.el.swiper=null,T9(r)),r.destroyed=!0),null}static extendDefaults(t){_n(Dd,t)}static get extendedDefaults(){return Dd}static get defaults(){return _g}static installModule(t){Yr.prototype.__modules__||(Yr.prototype.__modules__=[]);const n=Yr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Yr.installModule(n)),Yr):(Yr.installModule(t),Yr)}};Object.keys($d).forEach(e=>{Object.keys($d[e]).forEach(t=>{Ss.prototype[t]=$d[e][t]})}),Ss.use([j9,k9]);function Hy({swiper:e,extendParams:t,on:n,emit:r}){const i=Or(),s=Vt();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function l(p){if(!e.enabled)return;const{rtlTranslate:m}=e;let g=p;g.originalEvent&&(g=g.originalEvent);const v=g.keyCode||g.charCode,b=e.params.keyboard.pageUpDown,E=b&&v===33,_=b&&v===34,w=v===37,y=v===39,S=v===38,T=v===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&T||_)||!e.allowSlidePrev&&(e.isHorizontal()&&w||e.isVertical()&&S||E))return!1;if(!(g.shiftKey||g.altKey||g.ctrlKey||g.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(E||_||w||y||S||T)){let A=!1;if(Cd(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Cd(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,M=I.clientWidth,R=I.clientHeight,D=s.innerWidth,k=s.innerHeight,Y=A9(I);m&&(Y.left-=I.scrollLeft);const L=[[Y.left,Y.top],[Y.left+M,Y.top],[Y.left,Y.top+R],[Y.left+M,Y.top+R]];for(let G=0;G<L.length;G+=1){const X=L[G];if(X[0]>=0&&X[0]<=D&&X[1]>=0&&X[1]<=k){if(X[0]===0&&X[1]===0)continue;A=!0}}if(!A)return}e.isHorizontal()?((E||_||w||y)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),((_||y)&&!m||(E||w)&&m)&&e.slideNext(),((E||w)&&!m||(_||y)&&m)&&e.slidePrev()):((E||_||S||T)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),(_||T)&&e.slideNext(),(E||S)&&e.slidePrev()),r("keyPress",v)}}function c(){e.keyboard.enabled||(i.addEventListener("keydown",l),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(i.removeEventListener("keydown",l),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&c()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:c,disable:u})}function Uy(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let s=gr(e.el,`.${r[i]}`)[0];s||(s=ug("div",r[i]),s.className=r[i],e.el.append(s)),n[i]=s,t[i]=s}}),n}function Vy({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=E=>(Array.isArray(E)||(E=[E].filter(_=>!!_)),E);function s(E){let _;return E&&typeof E=="string"&&e.isElement&&(_=e.el.shadowRoot.querySelector(E),_)?_:(E&&(typeof E=="string"&&(_=[...document.querySelectorAll(E)]),e.params.uniqueNavElements&&typeof E=="string"&&_.length>1&&e.el.querySelectorAll(E).length===1&&(_=e.el.querySelector(E))),E&&!_?E:_)}function l(E,_){const w=e.params.navigation;E=i(E),E.forEach(y=>{y&&(y.classList[_?"add":"remove"](...w.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=_),e.params.watchOverflow&&e.enabled&&y.classList[e.isLocked?"add":"remove"](w.lockClass))})}function c(){const{nextEl:E,prevEl:_}=e.navigation;if(e.params.loop){l(_,!1),l(E,!1);return}l(_,e.isBeginning&&!e.params.rewind),l(E,e.isEnd&&!e.params.rewind)}function u(E){E.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function p(E){E.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function m(){const E=e.params.navigation;if(e.params.navigation=Uy(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(E.nextEl||E.prevEl))return;let _=s(E.nextEl),w=s(E.prevEl);Object.assign(e.navigation,{nextEl:_,prevEl:w}),_=i(_),w=i(w);const y=(S,T)=>{S&&S.addEventListener("click",T==="next"?p:u),!e.enabled&&S&&S.classList.add(...E.lockClass.split(" "))};_.forEach(S=>y(S,"next")),w.forEach(S=>y(S,"prev"))}function g(){let{nextEl:E,prevEl:_}=e.navigation;E=i(E),_=i(_);const w=(y,S)=>{y.removeEventListener("click",S==="next"?p:u),y.classList.remove(...e.params.navigation.disabledClass.split(" "))};E.forEach(y=>w(y,"next")),_.forEach(y=>w(y,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?b():(m(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{g()}),n("enable disable",()=>{let{nextEl:E,prevEl:_}=e.navigation;E=i(E),_=i(_),[...E,..._].filter(w=>!!w).forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(E,_)=>{let{nextEl:w,prevEl:y}=e.navigation;w=i(w),y=i(y);const S=_.target;if(e.params.navigation.hideOnClick&&!y.includes(S)&&!w.includes(S)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===S||e.pagination.el.contains(S)))return;let T;w.length?T=w[0].classList.contains(e.params.navigation.hiddenClass):y.length&&(T=y[0].classList.contains(e.params.navigation.hiddenClass)),r(T===!0?"navigationShow":"navigationHide"),[...w,...y].filter(A=>!!A).forEach(A=>A.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),c()},b=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:v,disable:b,update:c,init:m,destroy:g})}function Ri(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function li(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Ri(t[r])&&Ri(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:li(e[r],t[r]):e[r]=t[r]})}function xg(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Eg(e={}){return e.pagination&&typeof e.pagination.el>"u"}function wg(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function yg(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Wy(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Cg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function qy(e={},t=!0){const n={on:{}},r={},i={};li(n,Ss.defaults),li(n,Ss.extendedDefaults),n._emitClasses=!0,n.init=!1;const s={},l=Cg.map(u=>u.replace(/_/,"")),c=Object.assign({},e);return Object.keys(c).forEach(u=>{typeof e[u]>"u"||(l.indexOf(u)>=0?Ri(e[u])?(n[u]={},i[u]={},li(n[u],e[u]),li(i[u],e[u])):(n[u]=e[u],i[u]=e[u]):u.search(/on[A-Z]/)===0&&typeof e[u]=="function"?t?r[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:n.on[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:s[u]=e[u])}),["navigation","pagination","scrollbar"].forEach(u=>{n[u]===!0&&(n[u]={}),n[u]===!1&&delete n[u]}),{params:n,passedParams:i,rest:s,events:r}}function Yy({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:s},l){xg(l)&&t&&n&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),Eg(l)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),wg(l)&&i&&(s.params.scrollbar.el=i,s.originalParams.scrollbar.el=i),s.init(e)}function Zy(e,t,n,r,i){const s=[];if(!t)return s;const l=u=>{s.indexOf(u)<0&&s.push(u)};if(n&&r){const u=r.map(i),p=n.map(i);u.join("")!==p.join("")&&l("children"),r.length!==n.length&&l("children")}return Cg.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in e&&u in t)if(Ri(e[u])&&Ri(t[u])){const p=Object.keys(e[u]),m=Object.keys(t[u]);p.length!==m.length?l(u):(p.forEach(g=>{e[u][g]!==t[u][g]&&l(u)}),m.forEach(g=>{e[u][g]!==t[u][g]&&l(u)}))}else e[u]!==t[u]&&l(u)}),s}function Tg(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Sg(e){const t=[];return h.Children.toArray(e).forEach(n=>{Tg(n)?t.push(n):n.props&&n.props.children&&Sg(n.props.children).forEach(r=>t.push(r))}),t}function Xy(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return h.Children.toArray(e).forEach(r=>{if(Tg(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=Sg(r.props.children);i.length>0?i.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Ky({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:s,scrollbarEl:l,paginationEl:c}){const u=r.filter(D=>D!=="children"&&D!=="direction"&&D!=="wrapperClass"),{params:p,pagination:m,navigation:g,scrollbar:v,virtual:b,thumbs:E}=e;let _,w,y,S,T,A,I,M;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&p.thumbs&&!p.thumbs.swiper&&(_=!0),r.includes("controller")&&n.controller&&n.controller.control&&p.controller&&!p.controller.control&&(w=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||c)&&(p.pagination||p.pagination===!1)&&m&&!m.el&&(y=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||l)&&(p.scrollbar||p.scrollbar===!1)&&v&&!v.el&&(S=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||i)&&(p.navigation||p.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(T=!0);const R=D=>{e[D]&&(e[D].destroy(),D==="navigation"?(e.isElement&&(e[D].prevEl.remove(),e[D].nextEl.remove()),p[D].prevEl=void 0,p[D].nextEl=void 0,e[D].prevEl=void 0,e[D].nextEl=void 0):(e.isElement&&e[D].el.remove(),p[D].el=void 0,e[D].el=void 0))};r.includes("loop")&&e.isElement&&(p.loop&&!n.loop?A=!0:!p.loop&&n.loop?I=!0:M=!0),u.forEach(D=>{if(Ri(p[D])&&Ri(n[D]))li(p[D],n[D]),(D==="navigation"||D==="pagination"||D==="scrollbar")&&"enabled"in n[D]&&!n[D].enabled&&R(D);else{const k=n[D];(k===!0||k===!1)&&(D==="navigation"||D==="pagination"||D==="scrollbar")?k===!1&&R(D):p[D]=n[D]}}),u.includes("controller")&&!w&&e.controller&&e.controller.control&&p.controller&&p.controller.control&&(e.controller.control=p.controller.control),r.includes("children")&&t&&b&&p.virtual.enabled&&(b.slides=t,b.update(!0)),r.includes("children")&&t&&p.loop&&(M=!0),_&&E.init()&&E.update(!0),w&&(e.controller.control=p.controller.control),y&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(c)),c&&(p.pagination.el=c),m.init(),m.render(),m.update()),S&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(p.scrollbar.el=l),v.init(),v.updateSize(),v.setTranslate()),T&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(s))),i&&(p.navigation.nextEl=i),s&&(p.navigation.prevEl=s),g.init(),g.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(A||M)&&e.loopDestroy(),(I||M)&&e.loopCreate(),e.update()}function Qy(e,t,n){if(!n)return null;const r=m=>{let g=m;return m<0?g=t.length+m:g>=t.length&&(g=g-t.length),g},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:l}=n,c=e.params.loop?-t.length:0,u=e.params.loop?t.length*2:t.length,p=[];for(let m=c;m<u;m+=1)m>=s&&m<=l&&p.push(t[r(m)]);return p.map((m,g)=>h.cloneElement(m,{swiper:e,style:i,key:`slide-${g}`}))}const Jy=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Is(e,t){return typeof window>"u"?h.useEffect(e,t):h.useLayoutEffect(e,t)}const Ig=h.createContext(null),e8=h.createContext(null);function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Md.apply(this,arguments)}const Og=h.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:s,onSwiper:l,...c}=e===void 0?{}:e,u=!1;const[p,m]=h.useState("swiper"),[g,v]=h.useState(null),[b,E]=h.useState(!1),_=h.useRef(!1),w=h.useRef(null),y=h.useRef(null),S=h.useRef(null),T=h.useRef(null),A=h.useRef(null),I=h.useRef(null),M=h.useRef(null),R=h.useRef(null),{params:D,passedParams:k,rest:Y,events:L}=qy(c),{slides:G,slots:X}=Xy(s),N=()=>{E(!b)};Object.assign(D.on,{_containerClasses(q,U){m(U)}});const K=()=>{Object.assign(D.on,L),u=!0;const q={...D};if(delete q.wrapperClass,y.current=new Ss(q),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=G;const U={cache:!1,slides:G,renderExternal:v,renderExternalUpdate:!1};li(y.current.params.virtual,U),li(y.current.originalParams.virtual,U)}};w.current||K(),y.current&&y.current.on("_beforeBreakpoint",N);const B=()=>{u||!L||!y.current||Object.keys(L).forEach(q=>{y.current.on(q,L[q])})},W=()=>{!L||!y.current||Object.keys(L).forEach(q=>{y.current.off(q,L[q])})};h.useEffect(()=>()=>{y.current&&y.current.off("_beforeBreakpoint",N)}),h.useEffect(()=>{!_.current&&y.current&&(y.current.emitSlidesClasses(),_.current=!0)}),Is(()=>{if(t&&(t.current=w.current),!!w.current)return y.current.destroyed&&K(),Yy({el:w.current,nextEl:A.current,prevEl:I.current,paginationEl:M.current,scrollbarEl:R.current,swiper:y.current},D),l&&l(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}},[]),Is(()=>{B();const q=Zy(k,S.current,G,T.current,U=>U.key);return S.current=k,T.current=G,q.length&&y.current&&!y.current.destroyed&&Ky({swiper:y.current,slides:G,passedParams:k,changedParams:q,nextEl:A.current,prevEl:I.current,scrollbarEl:R.current,paginationEl:M.current}),()=>{W()}}),Is(()=>{Jy(y.current)},[g]);function J(){return D.virtual?Qy(y.current,G,g):G.map((q,U)=>h.cloneElement(q,{swiper:y.current,swiperSlideIndex:U}))}return h.createElement(r,Md({ref:w,className:yg(`${p}${n?` ${n}`:""}`)},Y),h.createElement(e8.Provider,{value:y.current},X["container-start"],h.createElement(i,{className:Wy(D.wrapperClass)},X["wrapper-start"],J(),X["wrapper-end"]),xg(D)&&h.createElement(h.Fragment,null,h.createElement("div",{ref:I,className:"swiper-button-prev"}),h.createElement("div",{ref:A,className:"swiper-button-next"})),wg(D)&&h.createElement("div",{ref:R,className:"swiper-scrollbar"}),Eg(D)&&h.createElement("div",{ref:M,className:"swiper-pagination"}),X["container-end"]))});Og.displayName="Swiper";function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(this,arguments)}const Ag=h.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:s,zoom:l,lazy:c,virtualIndex:u,swiperSlideIndex:p,...m}=e===void 0?{}:e;const g=h.useRef(null),[v,b]=h.useState("swiper-slide"),[E,_]=h.useState(!1);function w(A,I,M){I===g.current&&b(M)}Is(()=>{if(typeof p<"u"&&(g.current.swiperSlideIndex=p),t&&(t.current=g.current),!(!g.current||!s)){if(s.destroyed){v!=="swiper-slide"&&b("swiper-slide");return}return s.on("_slideClass",w),()=>{s&&s.off("_slideClass",w)}}}),Is(()=>{s&&g.current&&!s.destroyed&&b(s.getSlideClasses(g.current))},[s]);const y={isActive:v.indexOf("swiper-slide-active")>=0,isVisible:v.indexOf("swiper-slide-visible")>=0,isPrev:v.indexOf("swiper-slide-prev")>=0,isNext:v.indexOf("swiper-slide-next")>=0},S=()=>typeof r=="function"?r(y):r,T=()=>{_(!0)};return h.createElement(n,Pd({ref:g,className:yg(`${v}${i?` ${i}`:""}`),"data-swiper-slide-index":u,onLoad:T},m),l&&h.createElement(Ig.Provider,{value:y},h.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},S(),c&&!E&&h.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&h.createElement(Ig.Provider,{value:y},S(),c&&!E&&h.createElement("div",{className:"swiper-lazy-preloader"})))});Ag.displayName="SwiperSlide";const t8=e=>{const{avatar:t,message:n,feedbackRequested:r,onFeedbackClicked:i,onMessageButtonClicked:s}=e,[l,c]=h.useState(null),[u,p]=h.useState(null),[m,g]=h.useState(),v=_=>_.isPositive?d.jsx("div",{className:ae(Ve["chat-item--icon"],Ve["chat-item--feedback-given"]),children:d.jsx(X0,{className:"text--purple-800"})}):d.jsx("div",{className:ae(Ve["chat-item--icon"],Ve["chat-item--feedback-given"]),children:d.jsx(Z0,{className:"text--purple-800"})}),b=_=>d.jsxs("div",{className:Ve["chat-item--feedback"],children:[d.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:_||"Was it helpful?"}),d.jsxs("div",{className:Ve["chat-item-feedback-icons"],children:[d.jsx("button",{className:ae(Ve["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!0),children:d.jsx(X0,{className:"text--gray-700"})}),d.jsx("button",{className:ae(Ve["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!1),children:d.jsx(Z0,{className:"text--gray-700"})})]})]}),E=_=>{switch(_.type){case"chat":return d.jsxs("div",{children:[d.jsxs("div",{className:ae(Ve["chat-item--chat"],Ve[`chat-item--chat-${_.whoSent}`]),children:[d.jsx(Ce,{size:"xs",fontWeight:"regular",color:_.whoSent==="bot"?"gray-1000":"white",children:_.text}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&d.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"jpg":return d.jsxs("div",{className:Ve["chat-item--media"],children:[d.jsxs("div",{className:Ve["chat-item--feedback-requested"],children:[d.jsx("img",{src:_.imageUrl,alt:_.imageAlt,className:Ve["chat-item--image"]}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&d.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"mp4":return d.jsxs("div",{className:Ve["chat-item--media"],children:[d.jsxs("div",{className:Ve["chat-item--feedback-requested"],children:[d.jsx("iframe",{src:_.videoPreviewUrl,className:Ve["chat-item--video"],title:"Video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&d.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"button":return d.jsx("div",{className:Ve["chat-item--button-container"],children:_.buttons.map((w,y)=>d.jsx(Ot,{onClick:()=>s==null?void 0:s((w==null?void 0:w.label)||""),...w},(w==null?void 0:w.id)??y))});case"typing":return d.jsx("div",{className:Ve["chat-item--typing"],children:d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-1000",children:"..."})});case"cards":return d.jsxs("div",{className:Ve["chat-item--carousel"],children:[d.jsx(Og,{slidesPerView:"auto",modules:[Vy,Hy],onSlideChange:w=>g(w.activeIndex),navigation:{prevEl:l,nextEl:u},keyboard:{enabled:!0},className:Ve["swiper-wrapper"],children:_.cards.map((w,y)=>d.jsx(Ag,{children:d.jsxs("div",{className:Ve["chat-item--carousel-card"],children:[w.imageUrl&&d.jsx("img",{src:w.imageUrl,alt:w.imageAlt,className:Ve["chat-item--card-image"]}),d.jsxs("div",{className:Ve["chat-item--card-content"],children:[d.jsx(Ce,{fontWeight:"bold",size:"sm",color:"gray-1000",children:w.title}),d.jsx(Ce,{fontWeight:"regular",size:"xs",color:"gray-800",children:w.title}),w.buttons&&d.jsx("div",{className:Ve["chat-item--card-buttons"],children:w.buttons.map((S,T)=>d.jsx(Ot,{...S,fullWidth:!0},(S==null?void 0:S.id)??T))})]})]})},y))}),_.cards.length>1&&d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:w=>c(w),className:Ve["chat-item--carousel-left-navigation"],children:d.jsx(st,{color:"primary",variant:"outlined",disabled:m===0,children:d.jsx(Ix,{})})}),d.jsx("div",{ref:w=>p(w),className:Ve["chat-item--carousel-right-navigation"],children:d.jsx(st,{color:"primary",variant:"outlined",disabled:m===_.cards.length-1,children:d.jsx(Ax,{})})})]})]})}};return d.jsxs("div",{className:ae(Ve["chat-item"],Ve[`chat-item--${n.whoSent}`]),children:[n.whoSent==="bot"&&d.jsx("div",{className:Ve["chat-item--avatar-container"],children:d.jsx(wo,{...t})}),E(n)]})},n8=e=>{const{avatar:t,messages:n,isTyping:r=!1,feedbackRequested:i=[],onMessageButtonClicked:s,onInputChange:l,onFeedbackClicked:c}=e,u=[...n,...r?[{type:"typing",whoSent:"bot"}]:[]],p=(g,v)=>{g.whoSent==="bot"&&g.type!=="typing"&&!i.find(b=>b.id===g.id)&&(c==null||c(g,v))},m=u[u.length-1].type==="button";return d.jsxs("div",{className:og["chat-content"],children:[d.jsx("div",{className:og["chat-messages"],children:u.map((g,v)=>{const b="id"in g?i.find(E=>E.id===g.id):void 0;return d.jsx(t8,{avatar:t,message:g,feedbackRequested:b,onMessageButtonClicked:s,onFeedbackClicked:E=>p(g,E)},(g==null?void 0:g.id)??v)})}),m?d.jsx("div",{children:d.jsx(Qn,{variant:"soft",color:"gray",label:"Choose an option to continue",closeIcon:!1})}):d.jsx(sg,{placeholder:"Chat input",onChange:l})]})};function Rd(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const $g="Checkbox",[r8,Ok]=Bt($g),[i8,o8]=r8($g),s8=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:l,disabled:c,value:u="on",onCheckedChange:p,...m}=e,[g,v]=h.useState(null),b=et(t,T=>v(T)),E=h.useRef(!1),_=g?!!g.closest("form"):!0,[w=!1,y]=hn({prop:i,defaultProp:s,onChange:p}),S=h.useRef(w);return h.useEffect(()=>{const T=g==null?void 0:g.form;if(T){const A=()=>y(S.current);return T.addEventListener("reset",A),()=>T.removeEventListener("reset",A)}},[g,y]),h.createElement(i8,{scope:n,state:w,disabled:c},h.createElement(Ne.button,se({type:"button",role:"checkbox","aria-checked":Ni(w)?"mixed":w,"aria-required":l,"data-state":Dg(w),"data-disabled":c?"":void 0,disabled:c,value:u},m,{ref:b,onKeyDown:Ee(e.onKeyDown,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:Ee(e.onClick,T=>{y(A=>Ni(A)?!0:!A),_&&(E.current=T.isPropagationStopped(),E.current||T.stopPropagation())})})),_&&h.createElement(c8,{control:g,bubbles:!E.current,name:r,value:u,checked:w,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),a8="CheckboxIndicator",l8=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,s=o8(a8,n);return h.createElement(on,{present:r||Ni(s.state)||s.state===!0},h.createElement(Ne.span,se({"data-state":Dg(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),c8=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=h.useRef(null),l=Rd(n),c=ba(t);return h.useEffect(()=>{const u=s.current,p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});u.indeterminate=Ni(n),g.call(u,Ni(n)?!1:n),u.dispatchEvent(v)}},[l,n,r]),h.createElement("input",se({type:"checkbox","aria-hidden":!0,defaultChecked:Ni(n)?!1:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ni(e){return e==="indeterminate"}function Dg(e){return Ni(e)?"indeterminate":e?"checked":"unchecked"}const u8=s8,d8=l8;function sl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var f8=["color"],p8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=sl(e,f8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),h.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h8=["color"],g8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=sl(e,h8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),h.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),m8=["color"],v8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=sl(e,m8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),h.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),b8=["color"],_8=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=sl(e,b8);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),h.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const mr={checkbox:"_checkbox_1lymw_1","checkbox--root":"_checkbox--root_1lymw_11","checkbox--root-size-sm":"_checkbox--root-size-sm_1lymw_21","checkbox--indicator":"_checkbox--indicator_1lymw_69","checkbox--label":"_checkbox--label_1lymw_78","checkbox--label-size-sm":"_checkbox--label-size-sm_1lymw_79","checkbox--label--disabled":"_checkbox--label--disabled_1lymw_94"},Mg=e=>{const{label:t,small:n,disabled:r,id:i,children:s}=e;return t?d.jsx("label",{className:ae(n?mr["checkbox--label-size-sm"]:mr["checkbox--label"],r&&mr["checkbox--label--disabled"]),htmlFor:i,children:t}):s?d.jsx("label",{className:ae(n?mr["checkbox--label-size-sm"]:mr["checkbox--label"],r&&mr["checkbox--label--disabled"]),htmlFor:i,children:s}):null},Os=h.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,small:r,checked:i,label:s,labelPosition:l="start",children:c,onCheckedChange:u,disabled:p,className:m,...g}=e;return d.jsxs("div",{className:ae(mr.checkbox,m),children:[l==="end"?d.jsx(Mg,{id:n,label:s,small:r,disabled:p,children:c}):null,d.jsx(u8,{ref:t,id:n,className:ae(r&&mr["checkbox--root-size-sm"],mr["checkbox--root"]),onCheckedChange:u,disabled:p,checked:i,...g,children:d.jsxs(d8,{className:mr["checkbox--indicator"],children:[i==="indeterminate"&&d.jsx(_8,{}),i===!0&&d.jsx(p8,{})]})}),l==="start"?d.jsx(Mg,{id:n,label:s,small:r,disabled:p,children:c}):null]})});Os.displayName="Checkbox";/*!
|
|
102
|
+
* FilePond 4.32.7
|
|
99
103
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
100
104
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
101
|
-
*/const h8=e=>e instanceof HTMLElement,g8=(e,t=[],n=[])=>{const r={...e},o=[],s=[],l=()=>({...r}),c=()=>{const E=[...o];return o.length=0,E},d=()=>{const E=[...s];s.length=0,E.forEach(({type:_,data:w})=>{p(_,w)})},p=(E,_,w)=>{if(w&&!document.hidden){s.push({type:E,data:_});return}b[E]&&b[E](_),o.push({type:E,data:_})},m=(E,..._)=>v[E]?v[E](..._):null,g={getState:l,processActionQueue:c,processDispatchQueue:d,dispatch:p,query:m};let v={};t.forEach(E=>{v={...E(r),...v}});let b={};return n.forEach(E=>{b={...E(p,m,r),...b}}),g},m8=(e,t,n)=>{if(typeof n=="function"){e[t]=n;return}Object.defineProperty(e,t,{...n})},ut=(e,t)=>{for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])},li=e=>{const t={};return ut(e,n=>{m8(t,n,e[n])}),t},Ct=(e,t,n=null)=>{if(n===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},v8="http://www.w3.org/2000/svg",b8=["svg","path"],Mg=e=>b8.includes(e),ll=(e,t,n={})=>{typeof t=="object"&&(n=t,t=null);const r=Mg(e)?document.createElementNS(v8,e):document.createElement(e);return t&&(Mg(e)?Ct(r,"class",t):r.className=t),ut(n,(o,s)=>{Ct(r,o,s)}),r},_8=e=>(t,n)=>{typeof n<"u"&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)},x8=(e,t)=>(n,r)=>(typeof r<"u"?t.splice(r,0,n):t.push(n),n),E8=(e,t)=>n=>(t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n),w8=typeof window<"u"&&typeof window.document<"u",Pg=()=>w8,y8="children"in(Pg()?ll("svg"):{})?e=>e.children.length:e=>e.childNodes.length,Rg=(e,t,n,r)=>{const o=n[0]||e.left,s=n[1]||e.top,l=o+e.width,c=s+e.height*(r[1]||1),d={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:o,top:s,right:l,bottom:c}};return t.filter(p=>!p.isRectIgnored()).map(p=>p.rect).forEach(p=>{Ng(d.inner,{...p.inner}),Ng(d.outer,{...p.outer})}),Lg(d.inner),d.outer.bottom+=d.element.marginBottom,d.outer.right+=d.element.marginRight,Lg(d.outer),d},Ng=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},Lg=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},ji=e=>typeof e=="number",C8=(e,t,n,r=.001)=>Math.abs(e-t)<r&&Math.abs(n)<r,T8=({stiffness:e=.5,damping:t=.75,mass:n=10}={})=>{let r=null,o=null,s=0,l=!1;const p=li({interpolate:(m,g)=>{if(l)return;if(!(ji(r)&&ji(o))){l=!0,s=0;return}const v=-(o-r)*e;s+=v/n,o+=s,s*=t,C8(o,r,s)||g?(o=r,s=0,l=!0,p.onupdate(o),p.oncomplete(o)):p.onupdate(o)},target:{set:m=>{if(ji(m)&&!ji(o)&&(o=m),r===null&&(r=m,o=m),r=m,o===r||typeof r>"u"){l=!0,s=0,p.onupdate(o),p.oncomplete(o);return}l=!1},get:()=>r},resting:{get:()=>l},onupdate:m=>{},oncomplete:m=>{}});return p},S8=e=>e<.5?2*e*e:-1+(4-2*e)*e,jg={spring:T8,tween:({duration:e=500,easing:t=S8,delay:n=0}={})=>{let r=null,o,s,l=!0,c=!1,d=null;const m=li({interpolate:(g,v)=>{l||d===null||(r===null&&(r=g),!(g-r<n)&&(o=g-r-n,o>=e||v?(o=1,s=c?0:1,m.onupdate(s*d),m.oncomplete(s*d),l=!0):(s=o/e,m.onupdate((o>=0?t(c?1-s:s):0)*d))))},target:{get:()=>c?0:d,set:g=>{if(d===null){d=g,m.onupdate(g),m.oncomplete(g);return}g<d?(d=1,c=!0):(c=!1,d=g),l=!1,r=null}},resting:{get:()=>l},onupdate:g=>{},oncomplete:g=>{}});return m}},I8=(e,t,n)=>{const r=e[t]&&typeof e[t][n]=="object"?e[t][n]:e[t]||e,o=typeof r=="string"?r:r.type,s=typeof r=="object"?{...r}:{};return jg[o]?jg[o](s):null},Nu=(e,t,n,r=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(o=>{e.forEach(s=>{let l=s,c=()=>n[s],d=p=>n[s]=p;typeof s=="object"&&(l=s.key,c=s.getter||c,d=s.setter||d),!(o[l]&&!r)&&(o[l]={get:c,set:d})})})},A8=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r})=>{const o={...t},s=[];return ut(e,(l,c)=>{const d=I8(c);if(!d)return;d.onupdate=m=>{t[l]=m},d.target=o[l],Nu([{key:l,setter:m=>{d.target!==m&&(d.target=m)},getter:()=>t[l]}],[n,r],t,!0),s.push(d)}),{write:l=>{let c=document.hidden,d=!0;return s.forEach(p=>{p.resting||(d=!1),p.interpolate(l,c)}),d},destroy:()=>{}}},O8=e=>(t,n)=>{e.addEventListener(t,n)},$8=e=>(t,n)=>{e.removeEventListener(t,n)},D8=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,viewState:o,view:s})=>{const l=[],c=O8(s.element),d=$8(s.element);return r.on=(p,m)=>{l.push({type:p,fn:m}),c(p,m)},r.off=(p,m)=>{l.splice(l.findIndex(g=>g.type===p&&g.fn===m),1),d(p,m)},{write:()=>!0,destroy:()=>{l.forEach(p=>{d(p.type,p.fn)})}}},M8=({mixinConfig:e,viewProps:t,viewExternalAPI:n})=>{Nu(e,n,t)},qt=e=>e!=null,P8={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},R8=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,view:o})=>{const s={...t},l={};Nu(e,[n,r],t);const c=()=>[t.translateX||0,t.translateY||0],d=()=>[t.scaleX||0,t.scaleY||0],p=()=>o.rect?Rg(o.rect,o.childViews,c(),d()):null;return n.rect={get:p},r.rect={get:p},e.forEach(m=>{t[m]=typeof s[m]>"u"?P8[m]:s[m]}),{write:()=>{if(N8(l,t))return L8(o.element,t),Object.assign(l,{...t}),!0},destroy:()=>{}}},N8=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const n in t)if(t[n]!==e[n])return!0;return!1},L8=(e,{opacity:t,perspective:n,translateX:r,translateY:o,scaleX:s,scaleY:l,rotateX:c,rotateY:d,rotateZ:p,originX:m,originY:g,width:v,height:b})=>{let E="",_="";(qt(m)||qt(g))&&(_+=`transform-origin: ${m||0}px ${g||0}px;`),qt(n)&&(E+=`perspective(${n}px) `),(qt(r)||qt(o))&&(E+=`translate3d(${r||0}px, ${o||0}px, 0) `),(qt(s)||qt(l))&&(E+=`scale3d(${qt(s)?s:1}, ${qt(l)?l:1}, 1) `),qt(p)&&(E+=`rotateZ(${p}rad) `),qt(c)&&(E+=`rotateX(${c}rad) `),qt(d)&&(E+=`rotateY(${d}rad) `),E.length&&(_+=`transform:${E};`),qt(t)&&(_+=`opacity:${t};`,t===0&&(_+="visibility:hidden;"),t<1&&(_+="pointer-events:none;")),qt(b)&&(_+=`height:${b}px;`),qt(v)&&(_+=`width:${v}px;`);const w=e.elementCurrentStyle||"";(_.length!==w.length||_!==w)&&(e.style.cssText=_,e.elementCurrentStyle=_)},j8={styles:R8,listeners:D8,animations:A8,apis:M8},kg=(e={},t={},n={})=>(t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=t.offsetParent===null,e),Et=({tag:e="div",name:t=null,attributes:n={},read:r=()=>{},write:o=()=>{},create:s=()=>{},destroy:l=()=>{},filterFrameActionsForChild:c=(b,E)=>E,didCreateView:d=()=>{},didWriteView:p=()=>{},ignoreRect:m=!1,ignoreRectUpdate:g=!1,mixins:v=[]}={})=>(b,E={})=>{const _=ll(e,`filepond--${t}`,n),w=window.getComputedStyle(_,null),y=kg();let S=null,T=!1;const O=[],I=[],M={},R={},D=[o],k=[r],q=[l],L=()=>_,U=()=>O.concat(),X=()=>M,N=ne=>(le,me)=>le(ne,me),K=()=>S||(S=Rg(y,O,[0,0],[1,1]),S),B=()=>w,V=()=>{S=null,O.forEach(me=>me._read()),!(g&&y.width&&y.height)&&kg(y,_,w);const le={root:fe,props:E,rect:y};k.forEach(me=>me(le))},Q=(ne,le,me)=>{let _e=le.length===0;return D.forEach(pe=>{pe({props:E,root:fe,actions:le,timestamp:ne,shouldOptimize:me})===!1&&(_e=!1)}),I.forEach(pe=>{pe.write(ne)===!1&&(_e=!1)}),O.filter(pe=>!!pe.element.parentNode).forEach(pe=>{pe._write(ne,c(pe,le),me)||(_e=!1)}),O.forEach((pe,qe)=>{pe.element.parentNode||(fe.appendChild(pe.element,qe),pe._read(),pe._write(ne,c(pe,le),me),_e=!1)}),T=_e,p({props:E,root:fe,actions:le,timestamp:ne}),_e},W=()=>{I.forEach(ne=>ne.destroy()),q.forEach(ne=>{ne({root:fe,props:E})}),O.forEach(ne=>ne._destroy())},G={element:{get:L},style:{get:B},childViews:{get:U}},Y={...G,rect:{get:K},ref:{get:X},is:ne=>t===ne,appendChild:_8(_),createChildView:N(b),linkView:ne=>(O.push(ne),ne),unlinkView:ne=>{O.splice(O.indexOf(ne),1)},appendChildView:x8(_,O),removeChildView:E8(_,O),registerWriter:ne=>D.push(ne),registerReader:ne=>k.push(ne),registerDestroyer:ne=>q.push(ne),invalidateLayout:()=>_.layoutCalculated=!1,dispatch:b.dispatch,query:b.query},de={element:{get:L},childViews:{get:U},rect:{get:K},resting:{get:()=>T},isRectIgnored:()=>m,_read:V,_write:Q,_destroy:W},ue={...G,rect:{get:()=>y}};Object.keys(v).sort((ne,le)=>ne==="styles"?1:le==="styles"?-1:0).forEach(ne=>{const le=j8[ne]({mixinConfig:v[ne],viewProps:E,viewState:R,viewInternalAPI:Y,viewExternalAPI:de,view:li(ue)});le&&I.push(le)});const fe=li(Y);s({root:fe,props:E});const we=y8(_);return O.forEach((ne,le)=>{fe.appendChild(ne.element,we+le)}),d(fe),li(de)},k8=(e,t,n=60)=>{const r="__framePainter";if(window[r]){window[r].readers.push(e),window[r].writers.push(t);return}window[r]={readers:[e],writers:[t]};const o=window[r],s=1e3/n;let l=null,c=null,d=null,p=null;const m=()=>{document.hidden?(d=()=>window.setTimeout(()=>g(performance.now()),s),p=()=>window.clearTimeout(c)):(d=()=>window.requestAnimationFrame(g),p=()=>window.cancelAnimationFrame(c))};document.addEventListener("visibilitychange",()=>{p&&p(),m(),g(performance.now())});const g=v=>{c=d(g),l||(l=v);const b=v-l;b<=s||(l=v-b%s,o.readers.forEach(E=>E()),o.writers.forEach(E=>E(v)))};return m(),g(performance.now()),{pause:()=>{p(c)}}},Yt=(e,t)=>({root:n,props:r,actions:o=[],timestamp:s,shouldOptimize:l})=>{o.filter(c=>e[c.type]).forEach(c=>e[c.type]({root:n,props:r,action:c.data,timestamp:s,shouldOptimize:l})),t&&t({root:n,props:r,actions:o,timestamp:s,shouldOptimize:l})},Fg=(e,t)=>t.parentNode.insertBefore(e,t),Bg=(e,t)=>t.parentNode.insertBefore(e,t.nextSibling),cl=e=>Array.isArray(e),Or=e=>e==null,F8=e=>e.trim(),dl=e=>""+e,B8=(e,t=",")=>Or(e)?[]:cl(e)?e:dl(e).split(t).map(F8).filter(n=>n.length),zg=e=>typeof e=="boolean",Gg=e=>zg(e)?e:e==="true",Zt=e=>typeof e=="string",Ug=e=>ji(e)?e:Zt(e)?dl(e).replace(/[a-z]+/gi,""):0,ul=e=>parseInt(Ug(e),10),Hg=e=>parseFloat(Ug(e)),Io=e=>ji(e)&&isFinite(e)&&Math.floor(e)===e,Vg=(e,t=1e3)=>{if(Io(e))return e;let n=dl(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),ul(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),ul(n)*t):ul(n)},ki=e=>typeof e=="function",z8=e=>{let t=self,n=e.split("."),r=null;for(;r=n.shift();)if(t=t[r],!t)return null;return t},Wg={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},G8=e=>{const t={};return t.url=Zt(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},ut(Wg,n=>{t[n]=U8(n,e[n],Wg[n],t.timeout,t.headers)}),t.process=e.process||Zt(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},U8=(e,t,n,r,o)=>{if(t===null)return null;if(typeof t=="function")return t;const s={url:n==="GET"||n==="PATCH"?`?${e}=`:"",method:n,headers:o,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(Zt(t))return s.url=t,s;if(Object.assign(s,t),Zt(s.headers)){const l=s.headers.split(/:(.+)/);s.headers={header:l[0],value:l[1]}}return s.withCredentials=Gg(s.withCredentials),s},H8=e=>G8(e),V8=e=>e===null,$t=e=>typeof e=="object"&&e!==null,W8=e=>$t(e)&&Zt(e.url)&&$t(e.process)&&$t(e.revert)&&$t(e.restore)&&$t(e.fetch),Lu=e=>cl(e)?"array":V8(e)?"null":Io(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":W8(e)?"api":typeof e,q8=e=>e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'),Y8={array:B8,boolean:Gg,int:e=>Lu(e)==="bytes"?Vg(e):ul(e),number:Hg,float:Hg,bytes:Vg,string:e=>ki(e)?e:dl(e),function:e=>z8(e),serverapi:H8,object:e=>{try{return JSON.parse(q8(e))}catch{return null}}},Z8=(e,t)=>Y8[t](e),qg=(e,t,n)=>{if(e===t)return e;let r=Lu(e);if(r!==n){const o=Z8(e,n);if(r=Lu(o),o===null)throw`Trying to assign value with incorrect type to "${option}", allowed type: "${n}"`;e=o}return e},X8=(e,t)=>{let n=e;return{enumerable:!0,get:()=>n,set:r=>{n=qg(r,e,t)}}},K8=e=>{const t={};return ut(e,n=>{const r=e[n];t[n]=X8(r[0],r[1])}),li(t)},Q8=e=>({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:K8(e)}),fl=(e,t="-")=>e.split(/(?=[A-Z])/).map(n=>n.toLowerCase()).join(t),J8=(e,t)=>{const n={};return ut(t,r=>{n[r]={get:()=>e.getState().options[r],set:o=>{e.dispatch(`SET_${fl(r,"_").toUpperCase()}`,{value:o})}}}),n},eC=e=>(t,n,r)=>{const o={};return ut(e,s=>{const l=fl(s,"_").toUpperCase();o[`SET_${l}`]=c=>{try{r.options[s]=c.value}catch{}t(`DID_SET_${l}`,{value:r.options[s]})}}),o},tC=e=>t=>{const n={};return ut(e,r=>{n[`GET_${fl(r,"_").toUpperCase()}`]=o=>t.options[r]}),n},Rn={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},ju=()=>Math.random().toString(36).substring(2,11),ku=(e,t)=>e.splice(t,1),nC=(e,t)=>{t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},pl=()=>{const e=[],t=(r,o)=>{ku(e,e.findIndex(s=>s.event===r&&(s.cb===o||!o)))},n=(r,o,s)=>{e.filter(l=>l.event===r).map(l=>l.cb).forEach(l=>nC(()=>l(...o),s))};return{fireSync:(r,...o)=>{n(r,o,!0)},fire:(r,...o)=>{n(r,o,!1)},on:(r,o)=>{e.push({event:r,cb:o})},onOnce:(r,o)=>{e.push({event:r,cb:(...s)=>{t(r,o),o(...s)}})},off:t}},Yg=(e,t,n)=>{Object.getOwnPropertyNames(e).filter(r=>!n.includes(r)).forEach(r=>Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r)))},rC=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],an=e=>{const t={};return Yg(e,t,rC),t},iC=e=>{e.forEach((t,n)=>{t.released&&ku(e,n)})},$e={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Dt={INPUT:1,LIMBO:2,LOCAL:3},Zg=e=>/[^0-9]+/.exec(e),Xg=()=>Zg(1.1.toLocaleString())[0],oC=()=>{const e=Xg(),t=1e3.toLocaleString();return t!=="1000"?Zg(t)[0]:e==="."?",":"."},re={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Fu=[],ir=(e,t,n)=>new Promise((r,o)=>{const s=Fu.filter(c=>c.key===e).map(c=>c.cb);if(s.length===0){r(t);return}const l=s.shift();s.reduce((c,d)=>c.then(p=>d(p,n)),l(t,n)).then(c=>r(c)).catch(c=>o(c))}),Fi=(e,t,n)=>Fu.filter(r=>r.key===e).map(r=>r.cb(t,n)),sC=(e,t)=>Fu.push({key:e,cb:t}),aC=e=>Object.assign(Ao,e),hl=()=>({...Ao}),lC=e=>{ut(e,(t,n)=>{Ao[t]&&(Ao[t][0]=qg(n,Ao[t][0],Ao[t][1]))})},Ao={id:[null,re.STRING],name:["filepond",re.STRING],disabled:[!1,re.BOOLEAN],className:[null,re.STRING],required:[!1,re.BOOLEAN],captureMethod:[null,re.STRING],allowSyncAcceptAttribute:[!0,re.BOOLEAN],allowDrop:[!0,re.BOOLEAN],allowBrowse:[!0,re.BOOLEAN],allowPaste:[!0,re.BOOLEAN],allowMultiple:[!1,re.BOOLEAN],allowReplace:[!0,re.BOOLEAN],allowRevert:[!0,re.BOOLEAN],allowRemove:[!0,re.BOOLEAN],allowProcess:[!0,re.BOOLEAN],allowReorder:[!1,re.BOOLEAN],allowDirectoriesOnly:[!1,re.BOOLEAN],storeAsFile:[!1,re.BOOLEAN],forceRevert:[!1,re.BOOLEAN],maxFiles:[null,re.INT],checkValidity:[!1,re.BOOLEAN],itemInsertLocationFreedom:[!0,re.BOOLEAN],itemInsertLocation:["before",re.STRING],itemInsertInterval:[75,re.INT],dropOnPage:[!1,re.BOOLEAN],dropOnElement:[!0,re.BOOLEAN],dropValidation:[!1,re.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],re.ARRAY],instantUpload:[!0,re.BOOLEAN],maxParallelUploads:[2,re.INT],allowMinimumUploadDuration:[!0,re.BOOLEAN],chunkUploads:[!1,re.BOOLEAN],chunkForce:[!1,re.BOOLEAN],chunkSize:[5e6,re.INT],chunkRetryDelays:[[500,1e3,3e3],re.ARRAY],server:[null,re.SERVER_API],fileSizeBase:[1e3,re.INT],labelFileSizeBytes:["bytes",re.STRING],labelFileSizeKilobytes:["KB",re.STRING],labelFileSizeMegabytes:["MB",re.STRING],labelFileSizeGigabytes:["GB",re.STRING],labelDecimalSeparator:[Xg(),re.STRING],labelThousandsSeparator:[oC(),re.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',re.STRING],labelInvalidField:["Field contains invalid files",re.STRING],labelFileWaitingForSize:["Waiting for size",re.STRING],labelFileSizeNotAvailable:["Size not available",re.STRING],labelFileCountSingular:["file in list",re.STRING],labelFileCountPlural:["files in list",re.STRING],labelFileLoading:["Loading",re.STRING],labelFileAdded:["Added",re.STRING],labelFileLoadError:["Error during load",re.STRING],labelFileRemoved:["Removed",re.STRING],labelFileRemoveError:["Error during remove",re.STRING],labelFileProcessing:["Uploading",re.STRING],labelFileProcessingComplete:["Upload complete",re.STRING],labelFileProcessingAborted:["Upload cancelled",re.STRING],labelFileProcessingError:["Error during upload",re.STRING],labelFileProcessingRevertError:["Error during revert",re.STRING],labelTapToCancel:["tap to cancel",re.STRING],labelTapToRetry:["tap to retry",re.STRING],labelTapToUndo:["tap to undo",re.STRING],labelButtonRemoveItem:["Remove",re.STRING],labelButtonAbortItemLoad:["Abort",re.STRING],labelButtonRetryItemLoad:["Retry",re.STRING],labelButtonAbortItemProcessing:["Cancel",re.STRING],labelButtonUndoItemProcessing:["Undo",re.STRING],labelButtonRetryItemProcessing:["Retry",re.STRING],labelButtonProcessItem:["Upload",re.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',re.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],oninit:[null,re.FUNCTION],onwarning:[null,re.FUNCTION],onerror:[null,re.FUNCTION],onactivatefile:[null,re.FUNCTION],oninitfile:[null,re.FUNCTION],onaddfilestart:[null,re.FUNCTION],onaddfileprogress:[null,re.FUNCTION],onaddfile:[null,re.FUNCTION],onprocessfilestart:[null,re.FUNCTION],onprocessfileprogress:[null,re.FUNCTION],onprocessfileabort:[null,re.FUNCTION],onprocessfilerevert:[null,re.FUNCTION],onprocessfile:[null,re.FUNCTION],onprocessfiles:[null,re.FUNCTION],onremovefile:[null,re.FUNCTION],onpreparefile:[null,re.FUNCTION],onupdatefiles:[null,re.FUNCTION],onreorderfiles:[null,re.FUNCTION],beforeDropFile:[null,re.FUNCTION],beforeAddFile:[null,re.FUNCTION],beforeRemoveFile:[null,re.FUNCTION],beforePrepareFile:[null,re.FUNCTION],stylePanelLayout:[null,re.STRING],stylePanelAspectRatio:[null,re.STRING],styleItemPanelAspectRatio:[null,re.STRING],styleButtonRemoveItemPosition:["left",re.STRING],styleButtonProcessItemPosition:["right",re.STRING],styleLoadIndicatorPosition:["right",re.STRING],styleProgressIndicatorPosition:["right",re.STRING],styleButtonRemoveItemAlign:[!1,re.BOOLEAN],files:[[],re.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],re.ARRAY]},Bi=(e,t)=>Or(t)?e[0]||null:Io(t)?e[t]||null:(typeof t=="object"&&(t=t.id),e.find(n=>n.id===t)||null),Kg=e=>{if(Or(e))return e;if(/:/.test(e)){const t=e.split(":");return t[1]/t[0]}return parseFloat(e)},or=e=>e.filter(t=>!t.archived),cC={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4};let gl=null;const dC=()=>{if(gl===null)try{const e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));const t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,gl=t.files.length===1}catch{gl=!1}return gl},uC=[$e.LOAD_ERROR,$e.PROCESSING_ERROR,$e.PROCESSING_REVERT_ERROR],fC=[$e.LOADING,$e.PROCESSING,$e.PROCESSING_QUEUED,$e.INIT],pC=[$e.PROCESSING_COMPLETE],hC=e=>uC.includes(e.status),gC=e=>fC.includes(e.status),mC=e=>pC.includes(e.status),Qg=e=>$t(e.options.server)&&($t(e.options.server.process)||ki(e.options.server.process)),vC=e=>({GET_STATUS:()=>{const t=or(e.items),{EMPTY:n,ERROR:r,BUSY:o,IDLE:s,READY:l}=cC;return t.length===0?n:t.some(hC)?r:t.some(gC)?o:t.some(mC)?l:s},GET_ITEM:t=>Bi(e.items,t),GET_ACTIVE_ITEM:t=>Bi(or(e.items),t),GET_ACTIVE_ITEMS:()=>or(e.items),GET_ITEMS:()=>e.items,GET_ITEM_NAME:t=>{const n=Bi(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:t=>{const n=Bi(e.items,t);return n?n.fileSize:null},GET_STYLES:()=>Object.keys(e.options).filter(t=>/^style/.test(t)).map(t=>({name:t,value:e.options[t]})),GET_PANEL_ASPECT_RATIO:()=>/circle/.test(e.options.stylePanelLayout)?1:Kg(e.options.stylePanelAspectRatio),GET_ITEM_PANEL_ASPECT_RATIO:()=>e.options.styleItemPanelAspectRatio,GET_ITEMS_BY_STATUS:t=>or(e.items).filter(n=>n.status===t),GET_TOTAL_ITEMS:()=>or(e.items).length,SHOULD_UPDATE_FILE_INPUT:()=>e.options.storeAsFile&&dC()&&!Qg(e),IS_ASYNC:()=>Qg(e),GET_FILE_SIZE_LABELS:t=>({labelBytes:t("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:t("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:t("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:t("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0})}),bC=e=>{const t=or(e.items).length;if(!e.options.allowMultiple)return t===0;const n=e.options.maxFiles;return n===null||t<n},Jg=(e,t,n)=>Math.max(Math.min(n,e),t),_C=(e,t,n)=>e.splice(t,0,n),xC=(e,t,n)=>Or(t)?null:typeof n>"u"?(e.push(t),t):(n=Jg(n,0,e.length),_C(e,n,t),t),Bu=e=>/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e),$s=e=>`${e}`.split("/").pop().split("?").shift(),ml=e=>e.split(".").pop(),EC=e=>{if(typeof e!="string")return"";const t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?t==="jpeg"?"jpg":t:""},Ds=(e,t="")=>(t+e).slice(-t.length),em=(e=new Date)=>`${e.getFullYear()}-${Ds(e.getMonth()+1,"00")}-${Ds(e.getDate(),"00")}_${Ds(e.getHours(),"00")}-${Ds(e.getMinutes(),"00")}-${Ds(e.getSeconds(),"00")}`,Oo=(e,t,n=null,r=null)=>{const o=typeof n=="string"?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return o.lastModifiedDate=new Date,e._relativePath&&(o._relativePath=e._relativePath),Zt(t)||(t=em()),t&&r===null&&ml(t)?o.name=t:(r=r||EC(o.type),o.name=t+(r?"."+r:"")),o},wC=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,tm=(e,t)=>{const n=wC();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},yC=(e,t)=>{const n=new ArrayBuffer(e.length),r=new Uint8Array(n);for(let o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return tm(n,t)},nm=e=>(/^data:(.+);/.exec(e)||[])[1]||null,CC=e=>e.split(",")[1].replace(/\s/g,""),TC=e=>atob(CC(e)),SC=e=>{const t=nm(e),n=TC(e);return yC(n,t)},IC=(e,t,n)=>Oo(SC(e),t,null,n),AC=e=>{if(!/^content-disposition:/i.test(e))return null;const t=e.split(/filename=|filename\*=.+''/).splice(1).map(n=>n.trim().replace(/^["']|[;"']{0,2}$/g,"")).filter(n=>n.length);return t.length?decodeURI(t[t.length-1]):null},OC=e=>{if(/content-length:/i.test(e)){const t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},$C=e=>/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null,zu=e=>{const t={source:null,name:null,size:null},n=e.split(`
|
|
102
|
-
`);for(let r of n){const o=AC(r);if(o){t.name=o;continue}const s=OC(r);if(s){t.size=s;continue}const l=$C(r);if(l){t.source=l;continue}}return t},DC=e=>{const t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=()=>t.progress,r=()=>{t.request&&t.request.abort&&t.request.abort()},o=()=>{const c=t.source;l.fire("init",c),c instanceof File?l.fire("load",c):c instanceof Blob?l.fire("load",Oo(c,c.name)):Bu(c)?l.fire("load",IC(c)):s(c)},s=c=>{if(!e){l.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(c,d=>{t.duration=Date.now()-t.timestamp,t.complete=!0,d instanceof Blob&&(d=Oo(d,d.name||$s(c))),l.fire("load",d instanceof Blob?d:d?d.body:null)},d=>{l.fire("error",typeof d=="string"?{type:"error",code:0,body:d}:d)},(d,p,m)=>{if(m&&(t.size=m),t.duration=Date.now()-t.timestamp,!d){t.progress=null;return}t.progress=p/m,l.fire("progress",t.progress)},()=>{l.fire("abort")},d=>{const p=zu(typeof d=="string"?d:d.headers);l.fire("meta",{size:t.size||p.size,filename:p.name,source:p.source})})},l={...pl(),setSource:c=>t.source=c,getProgress:n,abort:r,load:o};return l},rm=e=>/GET|HEAD/.test(e),zi=(e,t,n)=>{const r={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{o=!0,l.abort()}};let o=!1,s=!1;n={method:"POST",headers:{},withCredentials:!1,...n},t=encodeURI(t),rm(n.method)&&e&&(t=`${t}${encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))}`);const l=new XMLHttpRequest,c=rm(n.method)?l:l.upload;return c.onprogress=d=>{o||r.onprogress(d.lengthComputable,d.loaded,d.total)},l.onreadystatechange=()=>{l.readyState<2||l.readyState===4&&l.status===0||s||(s=!0,r.onheaders(l))},l.onload=()=>{l.status>=200&&l.status<300?r.onload(l):r.onerror(l)},l.onerror=()=>r.onerror(l),l.onabort=()=>{o=!0,r.onabort()},l.ontimeout=()=>r.ontimeout(l),l.open(n.method,t,!0),Io(n.timeout)&&(l.timeout=n.timeout),Object.keys(n.headers).forEach(d=>{const p=unescape(encodeURIComponent(n.headers[d]));l.setRequestHeader(d,p)}),n.responseType&&(l.responseType=n.responseType),n.withCredentials&&(l.withCredentials=!0),l.send(e),r},gt=(e,t,n,r)=>({type:e,code:t,body:n,headers:r}),Gi=e=>t=>{e(gt("error",0,"Timeout",t.getAllResponseHeaders()))},im=e=>/\?/.test(e),Ms=(...e)=>{let t="";return e.forEach(n=>{t+=im(t)&&im(n)?n.replace(/\?/,"&"):n}),t},Gu=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Zt(t.url))return null;const n=t.onload||(o=>o),r=t.onerror||(o=>null);return(o,s,l,c,d,p)=>{const m=zi(o,Ms(e,t.url),{...t,responseType:"blob"});return m.onload=g=>{const v=g.getAllResponseHeaders(),b=zu(v).name||$s(o);s(gt("load",g.status,t.method==="HEAD"?null:Oo(n(g.response),b),v))},m.onerror=g=>{l(gt("error",g.status,r(g.response)||g.statusText,g.getAllResponseHeaders()))},m.onheaders=g=>{p(gt("headers",g.status,null,g.getAllResponseHeaders()))},m.ontimeout=Gi(l),m.onprogress=c,m.onabort=d,m}},Nn={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},MC=(e,t,n,r,o,s,l,c,d,p,m)=>{const g=[],{chunkTransferId:v,chunkServer:b,chunkSize:E,chunkRetryDelays:_}=m,w={serverId:v,aborted:!1},y=t.ondata||(N=>N),S=t.onload||((N,K)=>K==="HEAD"?N.getResponseHeader("Upload-Offset"):N.response),T=t.onerror||(N=>null),O=N=>{const K=new FormData;$t(o)&&K.append(n,JSON.stringify(o));const B=typeof t.headers=="function"?t.headers(r,o):{...t.headers,"Upload-Length":r.size},V={...t,headers:B},Q=zi(y(K),Ms(e,t.url),V);Q.onload=W=>N(S(W,V.method)),Q.onerror=W=>l(gt("error",W.status,T(W.response)||W.statusText,W.getAllResponseHeaders())),Q.ontimeout=Gi(l)},I=N=>{const K=Ms(e,b.url,w.serverId),V={headers:typeof t.headers=="function"?t.headers(w.serverId):{...t.headers},method:"HEAD"},Q=zi(null,K,V);Q.onload=W=>N(S(W,V.method)),Q.onerror=W=>l(gt("error",W.status,T(W.response)||W.statusText,W.getAllResponseHeaders())),Q.ontimeout=Gi(l)},M=Math.floor(r.size/E);for(let N=0;N<=M;N++){const K=N*E,B=r.slice(K,K+E,"application/offset+octet-stream");g[N]={index:N,size:B.size,offset:K,data:B,file:r,progress:0,retries:[..._],status:Nn.QUEUED,error:null,request:null,timeout:null}}const R=()=>s(w.serverId),D=N=>N.status===Nn.QUEUED||N.status===Nn.ERROR,k=N=>{if(w.aborted)return;if(N=N||g.find(D),!N){g.every(G=>G.status===Nn.COMPLETE)&&R();return}N.status=Nn.PROCESSING,N.progress=null;const K=b.ondata||(G=>G),B=b.onerror||(G=>null),V=Ms(e,b.url,w.serverId),Q=typeof b.headers=="function"?b.headers(N):{...b.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":N.offset,"Upload-Length":r.size,"Upload-Name":r.name},W=N.request=zi(K(N.data),V,{...b,headers:Q});W.onload=()=>{N.status=Nn.COMPLETE,N.request=null,U()},W.onprogress=(G,Y,de)=>{N.progress=G?Y:null,L()},W.onerror=G=>{N.status=Nn.ERROR,N.request=null,N.error=B(G.response)||G.statusText,q(N)||l(gt("error",G.status,B(G.response)||G.statusText,G.getAllResponseHeaders()))},W.ontimeout=G=>{N.status=Nn.ERROR,N.request=null,q(N)||Gi(l)(G)},W.onabort=()=>{N.status=Nn.QUEUED,N.request=null,d()}},q=N=>N.retries.length===0?!1:(N.status=Nn.WAITING,clearTimeout(N.timeout),N.timeout=setTimeout(()=>{k(N)},N.retries.shift()),!0),L=()=>{const N=g.reduce((B,V)=>B===null||V.progress===null?null:B+V.progress,0);if(N===null)return c(!1,0,0);const K=g.reduce((B,V)=>B+V.size,0);c(!0,N,K)},U=()=>{g.filter(K=>K.status===Nn.PROCESSING).length>=1||k()},X=()=>{g.forEach(N=>{clearTimeout(N.timeout),N.request&&N.request.abort()})};return w.serverId?I(N=>{w.aborted||(g.filter(K=>K.offset<N).forEach(K=>{K.status=Nn.COMPLETE,K.progress=K.size}),U())}):O(N=>{w.aborted||(p(N),w.serverId=N,U())}),{abort:()=>{w.aborted=!0,X()}}},PC=(e,t,n,r)=>(o,s,l,c,d,p,m)=>{if(!o)return;const g=r.chunkUploads,v=g&&o.size>r.chunkSize,b=g&&(v||r.chunkForce);if(o instanceof Blob&&b)return MC(e,t,n,o,s,l,c,d,p,m,r);const E=t.ondata||(I=>I),_=t.onload||(I=>I),w=t.onerror||(I=>null),y=typeof t.headers=="function"?t.headers(o,s)||{}:{...t.headers},S={...t,headers:y};var T=new FormData;$t(s)&&T.append(n,JSON.stringify(s)),(o instanceof Blob?[{name:null,file:o}]:o).forEach(I=>{T.append(n,I.file,I.name===null?I.file.name:`${I.name}${I.file.name}`)});const O=zi(E(T),Ms(e,t.url),S);return O.onload=I=>{l(gt("load",I.status,_(I.response),I.getAllResponseHeaders()))},O.onerror=I=>{c(gt("error",I.status,w(I.response)||I.statusText,I.getAllResponseHeaders()))},O.ontimeout=Gi(c),O.onprogress=d,O.onabort=p,O},RC=(e="",t,n,r)=>typeof t=="function"?(...o)=>t(n,...o,r):!t||!Zt(t.url)?null:PC(e,t,n,r),Ps=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Zt(t.url))return(o,s)=>s();const n=t.onload||(o=>o),r=t.onerror||(o=>null);return(o,s,l)=>{const c=zi(o,e+t.url,t);return c.onload=d=>{s(gt("load",d.status,n(d.response),d.getAllResponseHeaders()))},c.onerror=d=>{l(gt("error",d.status,r(d.response)||d.statusText,d.getAllResponseHeaders()))},c.ontimeout=Gi(l),c}},om=(e=0,t=1)=>e+Math.random()*(t-e),NC=(e,t=1e3,n=0,r=25,o=250)=>{let s=null;const l=Date.now(),c=()=>{let d=Date.now()-l,p=om(r,o);d+p>t&&(p=d+p-t);let m=d/t;if(m>=1||document.hidden){e(1);return}e(m),s=setTimeout(c,p)};return t>0&&c(),{clear:()=>{clearTimeout(s)}}},LC=(e,t)=>{const n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},{allowMinimumUploadDuration:r}=t,o=(m,g)=>{const v=()=>{n.duration===0||n.progress===null||p.fire("progress",p.getProgress())},b=()=>{n.complete=!0,p.fire("load-perceived",n.response.body)};p.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=NC(E=>{n.perceivedProgress=E,n.perceivedDuration=Date.now()-n.timestamp,v(),n.response&&n.perceivedProgress===1&&!n.complete&&b()},r?om(750,1500):0),n.request=e(m,g,E=>{n.response=$t(E)?E:{type:"load",code:200,body:`${E}`,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,p.fire("load",n.response.body),(!r||r&&n.perceivedProgress===1)&&b()},E=>{n.perceivedPerformanceUpdater.clear(),p.fire("error",$t(E)?E:{type:"error",code:0,body:`${E}`})},(E,_,w)=>{n.duration=Date.now()-n.timestamp,n.progress=E?_/w:null,v()},()=>{n.perceivedPerformanceUpdater.clear(),p.fire("abort",n.response?n.response.body:null)},E=>{p.fire("transfer",E)})},s=()=>{n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},l=()=>{s(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},c=r?()=>n.progress?Math.min(n.progress,n.perceivedProgress):null:()=>n.progress||null,d=r?()=>Math.min(n.duration,n.perceivedDuration):()=>n.duration,p={...pl(),process:o,abort:s,getProgress:c,getDuration:d,reset:l};return p},sm=e=>e.substring(0,e.lastIndexOf("."))||e,jC=e=>{let t=[e.name,e.size,e.type];return e instanceof Blob||Bu(e)?t[0]=e.name||em():Bu(e)?(t[1]=e.length,t[2]=nm(e)):Zt(e)&&(t[0]=$s(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},Ui=e=>!!(e instanceof File||e instanceof Blob&&e.name),am=e=>{if(!$t(e))return e;const t=cl(e)?[]:{};for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t[n]=r&&$t(r)?am(r):r}return t},kC=(e=null,t=null,n=null)=>{const r=ju(),o={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?$e.PROCESSING_COMPLETE:$e.INIT,activeLoader:null,activeProcessor:null};let s=null;const l={},c=D=>o.status=D,d=(D,...k)=>{o.released||o.frozen||M.fire(D,...k)},p=()=>ml(o.file.name),m=()=>o.file.type,g=()=>o.file.size,v=()=>o.file,b=(D,k,q)=>{if(o.source=D,M.fireSync("init"),o.file){M.fireSync("load-skip");return}o.file=jC(D),k.on("init",()=>{d("load-init")}),k.on("meta",L=>{o.file.size=L.size,o.file.filename=L.filename,L.source&&(e=Dt.LIMBO,o.serverFileReference=L.source,o.status=$e.PROCESSING_COMPLETE),d("load-meta")}),k.on("progress",L=>{c($e.LOADING),d("load-progress",L)}),k.on("error",L=>{c($e.LOAD_ERROR),d("load-request-error",L)}),k.on("abort",()=>{c($e.INIT),d("load-abort")}),k.on("load",L=>{o.activeLoader=null;const U=N=>{o.file=Ui(N)?N:o.file,e===Dt.LIMBO&&o.serverFileReference?c($e.PROCESSING_COMPLETE):c($e.IDLE),d("load")},X=N=>{o.file=L,d("load-meta"),c($e.LOAD_ERROR),d("load-file-error",N)};if(o.serverFileReference){U(L);return}q(L,U,X)}),k.setSource(D),o.activeLoader=k,k.load()},E=()=>{o.activeLoader&&o.activeLoader.load()},_=()=>{if(o.activeLoader){o.activeLoader.abort();return}c($e.INIT),d("load-abort")},w=(D,k)=>{if(o.processingAborted){o.processingAborted=!1;return}if(c($e.PROCESSING),s=null,!(o.file instanceof Blob)){M.on("load",()=>{w(D,k)});return}D.on("load",U=>{o.transferId=null,o.serverFileReference=U}),D.on("transfer",U=>{o.transferId=U}),D.on("load-perceived",U=>{o.activeProcessor=null,o.transferId=null,o.serverFileReference=U,c($e.PROCESSING_COMPLETE),d("process-complete",U)}),D.on("start",()=>{d("process-start")}),D.on("error",U=>{o.activeProcessor=null,c($e.PROCESSING_ERROR),d("process-error",U)}),D.on("abort",U=>{o.activeProcessor=null,o.serverFileReference=U,c($e.IDLE),d("process-abort"),s&&s()}),D.on("progress",U=>{d("process-progress",U)});const q=U=>{o.archived||D.process(U,{...l})},L=console.error;k(o.file,q,L),o.activeProcessor=D},y=()=>{o.processingAborted=!1,c($e.PROCESSING_QUEUED)},S=()=>new Promise(D=>{if(!o.activeProcessor){o.processingAborted=!0,c($e.IDLE),d("process-abort"),D();return}s=()=>{D()},o.activeProcessor.abort()}),T=(D,k)=>new Promise((q,L)=>{const U=o.serverFileReference!==null?o.serverFileReference:o.transferId;if(U===null){q();return}D(U,()=>{o.serverFileReference=null,o.transferId=null,q()},X=>{if(!k){q();return}c($e.PROCESSING_REVERT_ERROR),d("process-revert-error"),L(X)}),c($e.IDLE),d("process-revert")}),O=(D,k,q)=>{const L=D.split("."),U=L[0],X=L.pop();let N=l;L.forEach(K=>N=N[K]),JSON.stringify(N[X])!==JSON.stringify(k)&&(N[X]=k,d("metadata-update",{key:U,value:l[U],silent:q}))},M={id:{get:()=>r},origin:{get:()=>e,set:D=>e=D},serverId:{get:()=>o.serverFileReference},transferId:{get:()=>o.transferId},status:{get:()=>o.status},filename:{get:()=>o.file.name},filenameWithoutExtension:{get:()=>sm(o.file.name)},fileExtension:{get:p},fileType:{get:m},fileSize:{get:g},file:{get:v},relativePath:{get:()=>o.file._relativePath},source:{get:()=>o.source},getMetadata:D=>am(D?l[D]:l),setMetadata:(D,k,q)=>{if($t(D)){const L=D;return Object.keys(L).forEach(U=>{O(U,L[U],k)}),D}return O(D,k,q),k},extend:(D,k)=>R[D]=k,abortLoad:_,retryLoad:E,requestProcessing:y,abortProcessing:S,load:b,process:w,revert:T,...pl(),freeze:()=>o.frozen=!0,release:()=>o.released=!0,released:{get:()=>o.released},archive:()=>o.archived=!0,archived:{get:()=>o.archived},setFile:D=>o.file=D},R=li(M);return R},FC=(e,t)=>Or(t)?0:Zt(t)?e.findIndex(n=>n.id===t):-1,lm=(e,t)=>{const n=FC(e,t);if(!(n<0))return e[n]||null},cm=(e,t,n,r,o,s)=>{const l=zi(null,e,{method:"GET",responseType:"blob"});return l.onload=c=>{const d=c.getAllResponseHeaders(),p=zu(d).name||$s(e);t(gt("load",c.status,Oo(c.response,p),d))},l.onerror=c=>{n(gt("error",c.status,c.statusText,c.getAllResponseHeaders()))},l.onheaders=c=>{s(gt("headers",c.status,null,c.getAllResponseHeaders()))},l.ontimeout=Gi(n),l.onprogress=r,l.onabort=o,l},dm=e=>(e.indexOf("//")===0&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]),BC=e=>(e.indexOf(":")>-1||e.indexOf("//")>-1)&&dm(location.href)!==dm(e),vl=e=>(...t)=>ki(e)?e(...t):e,zC=e=>!Ui(e.file),Uu=(e,t)=>{clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(()=>{e("DID_UPDATE_ITEMS",{items:or(t.items)})},0)},um=(e,...t)=>new Promise(n=>{if(!e)return n(!0);const r=e(...t);if(r==null)return n(!0);if(typeof r=="boolean")return n(r);typeof r.then=="function"&&r.then(n)}),Hu=(e,t)=>{e.items.sort((n,r)=>t(an(n),an(r)))},Ln=(e,t)=>({query:n,success:r=()=>{},failure:o=()=>{},...s}={})=>{const l=Bi(e.items,n);if(!l){o({error:gt("error",0,"Item not found"),file:null});return}t(l,r,o,s||{})},GC=(e,t,n)=>({ABORT_ALL:()=>{or(n.items).forEach(r=>{r.freeze(),r.abortLoad(),r.abortProcessing()})},DID_SET_FILES:({value:r=[]})=>{const o=r.map(l=>({source:l.source?l.source:l,options:l.options}));let s=or(n.items);s.forEach(l=>{o.find(c=>c.source===l.source||c.source===l.file)||e("REMOVE_ITEM",{query:l,remove:!1})}),s=or(n.items),o.forEach((l,c)=>{s.find(d=>d.source===l.source||d.file===l.source)||e("ADD_ITEM",{...l,interactionMethod:Rn.NONE,index:c})})},DID_UPDATE_ITEM_METADATA:({id:r,action:o,change:s})=>{s.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(()=>{const l=lm(n.items,r);if(!t("IS_ASYNC")){ir("SHOULD_PREPARE_OUTPUT",!1,{item:l,query:t,action:o,change:s}).then(m=>{const g=t("GET_BEFORE_PREPARE_FILE");g&&(m=g(l,m)),m&&e("REQUEST_PREPARE_OUTPUT",{query:r,item:l,success:v=>{e("DID_PREPARE_OUTPUT",{id:r,file:v})}},!0)});return}l.origin===Dt.LOCAL&&e("DID_LOAD_ITEM",{id:l.id,error:null,serverFileReference:l.source});const c=()=>{setTimeout(()=>{e("REQUEST_ITEM_PROCESSING",{query:r})},32)},d=m=>{l.revert(Ps(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(m?c:()=>{}).catch(()=>{})},p=m=>{l.abortProcessing().then(m?c:()=>{})};if(l.status===$e.PROCESSING_COMPLETE)return d(n.options.instantUpload);if(l.status===$e.PROCESSING)return p(n.options.instantUpload);n.options.instantUpload&&c()},0))},MOVE_ITEM:({query:r,index:o})=>{const s=Bi(n.items,r);if(!s)return;const l=n.items.indexOf(s);o=Jg(o,0,n.items.length-1),l!==o&&n.items.splice(o,0,n.items.splice(l,1)[0])},SORT:({compare:r})=>{Hu(n,r),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:({items:r,index:o,interactionMethod:s,success:l=()=>{},failure:c=()=>{}})=>{let d=o;if(o===-1||typeof o>"u"){const b=t("GET_ITEM_INSERT_LOCATION"),E=t("GET_TOTAL_ITEMS");d=b==="before"?0:E}const p=t("GET_IGNORED_FILES"),m=b=>Ui(b)?!p.includes(b.name.toLowerCase()):!Or(b),v=r.filter(m).map(b=>new Promise((E,_)=>{e("ADD_ITEM",{interactionMethod:s,source:b.source||b,success:E,failure:_,index:d++,options:b.options||{}})}));Promise.all(v).then(l).catch(c)},ADD_ITEM:({source:r,index:o=-1,interactionMethod:s,success:l=()=>{},failure:c=()=>{},options:d={}})=>{if(Or(r)){c({error:gt("error",0,"No source"),file:null});return}if(Ui(r)&&n.options.ignoredFiles.includes(r.name.toLowerCase()))return;if(!bC(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){const S=gt("warning",0,"Max files");e("DID_THROW_MAX_FILES",{source:r,error:S}),c({error:S,file:null});return}const y=or(n.items)[0];if(y.status===$e.PROCESSING_COMPLETE||y.status===$e.PROCESSING_REVERT_ERROR){const S=t("GET_FORCE_REVERT");if(y.revert(Ps(n.options.server.url,n.options.server.revert),S).then(()=>{S&&e("ADD_ITEM",{source:r,index:o,interactionMethod:s,success:l,failure:c,options:d})}).catch(()=>{}),S)return}e("REMOVE_ITEM",{query:y.id})}const p=d.type==="local"?Dt.LOCAL:d.type==="limbo"?Dt.LIMBO:Dt.INPUT,m=kC(p,p===Dt.INPUT?null:r,d.file);Object.keys(d.metadata||{}).forEach(y=>{m.setMetadata(y,d.metadata[y])}),Fi("DID_CREATE_ITEM",m,{query:t,dispatch:e});const g=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(o=g==="before"?-1:n.items.length),xC(n.items,m,o),ki(g)&&r&&Hu(n,g);const v=m.id;m.on("init",()=>{e("DID_INIT_ITEM",{id:v})}),m.on("load-init",()=>{e("DID_START_ITEM_LOAD",{id:v})}),m.on("load-meta",()=>{e("DID_UPDATE_ITEM_META",{id:v})}),m.on("load-progress",y=>{e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:v,progress:y})}),m.on("load-request-error",y=>{const S=vl(n.options.labelFileLoadError)(y);if(y.code>=400&&y.code<500){e("DID_THROW_ITEM_INVALID",{id:v,error:y,status:{main:S,sub:`${y.code} (${y.body})`}}),c({error:y,file:an(m)});return}e("DID_THROW_ITEM_LOAD_ERROR",{id:v,error:y,status:{main:S,sub:n.options.labelTapToRetry}})}),m.on("load-file-error",y=>{e("DID_THROW_ITEM_INVALID",{id:v,error:y.status,status:y.status}),c({error:y.status,file:an(m)})}),m.on("load-abort",()=>{e("REMOVE_ITEM",{query:v})}),m.on("load-skip",()=>{m.on("metadata-update",y=>{Ui(m.file)&&e("DID_UPDATE_ITEM_METADATA",{id:v,change:y})}),e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}})}),m.on("load",()=>{const y=S=>{if(!S){e("REMOVE_ITEM",{query:v});return}m.on("metadata-update",T=>{e("DID_UPDATE_ITEM_METADATA",{id:v,change:T})}),ir("SHOULD_PREPARE_OUTPUT",!1,{item:m,query:t}).then(T=>{const O=t("GET_BEFORE_PREPARE_FILE");O&&(T=O(m,T));const I=()=>{e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}}),Uu(e,n)};if(T){e("REQUEST_PREPARE_OUTPUT",{query:v,item:m,success:M=>{e("DID_PREPARE_OUTPUT",{id:v,file:M}),I()}},!0);return}I()})};ir("DID_LOAD_ITEM",m,{query:t,dispatch:e}).then(()=>{um(t("GET_BEFORE_ADD_FILE"),an(m)).then(y)}).catch(S=>{if(!S||!S.error||!S.status)return y(!1);e("DID_THROW_ITEM_INVALID",{id:v,error:S.error,status:S.status})})}),m.on("process-start",()=>{e("DID_START_ITEM_PROCESSING",{id:v})}),m.on("process-progress",y=>{e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:v,progress:y})}),m.on("process-error",y=>{e("DID_THROW_ITEM_PROCESSING_ERROR",{id:v,error:y,status:{main:vl(n.options.labelFileProcessingError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-revert-error",y=>{e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:v,error:y,status:{main:vl(n.options.labelFileProcessingRevertError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-complete",y=>{e("DID_COMPLETE_ITEM_PROCESSING",{id:v,error:null,serverFileReference:y}),e("DID_DEFINE_VALUE",{id:v,value:y})}),m.on("process-abort",()=>{e("DID_ABORT_ITEM_PROCESSING",{id:v})}),m.on("process-revert",()=>{e("DID_REVERT_ITEM_PROCESSING",{id:v}),e("DID_DEFINE_VALUE",{id:v,value:null})}),e("DID_ADD_ITEM",{id:v,index:o,interactionMethod:s}),Uu(e,n);const{url:b,load:E,restore:_,fetch:w}=n.options.server||{};m.load(r,DC(p===Dt.INPUT?Zt(r)&&BC(r)&&w?Gu(b,w):cm:p===Dt.LIMBO?Gu(b,_):Gu(b,E)),(y,S,T)=>{ir("LOAD_FILE",y,{query:t}).then(S).catch(T)})},REQUEST_PREPARE_OUTPUT:({item:r,success:o,failure:s=()=>{}})=>{const l={error:gt("error",0,"Item not found"),file:null};if(r.archived)return s(l);ir("PREPARE_OUTPUT",r.file,{query:t,item:r}).then(c=>{ir("COMPLETE_PREPARE_OUTPUT",c,{query:t,item:r}).then(d=>{if(r.archived)return s(l);o(d)})})},COMPLETE_LOAD_ITEM:({item:r,data:o})=>{const{success:s,source:l}=o,c=t("GET_ITEM_INSERT_LOCATION");if(ki(c)&&l&&Hu(n,c),e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===Dt.INPUT?null:l}),s(an(r)),r.origin===Dt.LOCAL){e("DID_LOAD_LOCAL_ITEM",{id:r.id});return}if(r.origin===Dt.LIMBO){e("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:l}),e("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||l});return}t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:r.id})},RETRY_ITEM_LOAD:Ln(n,r=>{r.retryLoad()}),REQUEST_ITEM_PREPARE:Ln(n,(r,o,s)=>{e("REQUEST_PREPARE_OUTPUT",{query:r.id,item:r,success:l=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:l}),o({file:r,output:l})},failure:s},!0)}),REQUEST_ITEM_PROCESSING:Ln(n,(r,o,s)=>{if(!(r.status===$e.IDLE||r.status===$e.PROCESSING_ERROR)){const c=()=>e("REQUEST_ITEM_PROCESSING",{query:r,success:o,failure:s}),d=()=>document.hidden?c():setTimeout(c,32);r.status===$e.PROCESSING_COMPLETE||r.status===$e.PROCESSING_REVERT_ERROR?r.revert(Ps(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(d).catch(()=>{}):r.status===$e.PROCESSING&&r.abortProcessing().then(d);return}r.status!==$e.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:o,failure:s},!0))}),PROCESS_ITEM:Ln(n,(r,o,s)=>{const l=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",$e.PROCESSING).length===l){n.processingQueue.push({id:r.id,success:o,failure:s});return}if(r.status===$e.PROCESSING)return;const d=()=>{const m=n.processingQueue.shift();if(!m)return;const{id:g,success:v,failure:b}=m,E=Bi(n.items,g);if(!E||E.archived){d();return}e("PROCESS_ITEM",{query:g,success:v,failure:b},!0)};r.onOnce("process-complete",()=>{o(an(r)),d();const m=n.options.server;if(n.options.instantUpload&&r.origin===Dt.LOCAL&&ki(m.remove)){const b=()=>{};r.origin=Dt.LIMBO,n.options.server.remove(r.source,b,b)}t("GET_ITEMS_BY_STATUS",$e.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",m=>{s({error:m,file:an(r)}),d()});const p=n.options;r.process(LC(RC(p.server.url,p.server.process,p.name,{chunkTransferId:r.transferId,chunkServer:p.server.patch,chunkUploads:p.chunkUploads,chunkForce:p.chunkForce,chunkSize:p.chunkSize,chunkRetryDelays:p.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(m,g,v)=>{ir("PREPARE_OUTPUT",m,{query:t,item:r}).then(b=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:b}),g(b)}).catch(v)})}),RETRY_ITEM_PROCESSING:Ln(n,r=>{e("REQUEST_ITEM_PROCESSING",{query:r})}),REQUEST_REMOVE_ITEM:Ln(n,r=>{um(t("GET_BEFORE_REMOVE_FILE"),an(r)).then(o=>{o&&e("REMOVE_ITEM",{query:r})})}),RELEASE_ITEM:Ln(n,r=>{r.release()}),REMOVE_ITEM:Ln(n,(r,o,s,l)=>{const c=()=>{const p=r.id;lm(n.items,p).archive(),e("DID_REMOVE_ITEM",{error:null,id:p,item:r}),Uu(e,n),o(an(r))},d=n.options.server;r.origin===Dt.LOCAL&&d&&ki(d.remove)&&l.remove!==!1?(e("DID_START_ITEM_REMOVE",{id:r.id}),d.remove(r.source,()=>c(),p=>{e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:gt("error",0,p,null),status:{main:vl(n.options.labelFileRemoveError)(p),sub:n.options.labelTapToRetry}})})):((l.revert&&r.origin!==Dt.LOCAL&&r.serverId!==null||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Ps(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),c())}),ABORT_ITEM_LOAD:Ln(n,r=>{r.abortLoad()}),ABORT_ITEM_PROCESSING:Ln(n,r=>{if(r.serverId){e("REVERT_ITEM_PROCESSING",{id:r.id});return}r.abortProcessing().then(()=>{n.options.instantUpload&&e("REMOVE_ITEM",{query:r.id})})}),REQUEST_REVERT_ITEM_PROCESSING:Ln(n,r=>{if(!n.options.instantUpload){e("REVERT_ITEM_PROCESSING",{query:r});return}const o=c=>{c&&e("REVERT_ITEM_PROCESSING",{query:r})},s=t("GET_BEFORE_REMOVE_FILE");if(!s)return o(!0);const l=s(an(r));if(l==null)return o(!0);if(typeof l=="boolean")return o(l);typeof l.then=="function"&&l.then(o)}),REVERT_ITEM_PROCESSING:Ln(n,r=>{r.revert(Ps(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(()=>{(n.options.instantUpload||zC(r))&&e("REMOVE_ITEM",{query:r.id})}).catch(()=>{})}),SET_OPTIONS:({options:r})=>{const o=Object.keys(r),s=UC.filter(c=>o.includes(c));[...s,...Object.keys(r).filter(c=>!s.includes(c))].forEach(c=>{e(`SET_${fl(c,"_").toUpperCase()}`,{value:r[c]})})}}),UC=["server"],Vu=e=>e,$r=e=>document.createElement(e),mt=(e,t)=>{let n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},fm=(e,t,n,r)=>{const o=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},HC=(e,t,n,r,o,s)=>{const l=fm(e,t,n,o),c=fm(e,t,n,r);return["M",l.x,l.y,"A",n,n,0,s,0,c.x,c.y].join(" ")},VC=(e,t,n,r,o)=>{let s=1;return o>r&&o-r<=.5&&(s=0),r>o&&r-o>=.5&&(s=0),HC(e,t,n,Math.min(.9999,r)*360,Math.min(.9999,o)*360,s)},pm=Et({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:({root:e,props:t})=>{t.spin=!1,t.progress=0,t.opacity=0;const n=ll("svg");e.ref.path=ll("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(e.ref.path),e.ref.svg=n,e.appendChild(n)},write:({root:e,props:t})=>{if(t.opacity===0)return;t.align&&(e.element.dataset.align=t.align);const n=parseInt(Ct(e.ref.path,"stroke-width"),10),r=e.rect.element.width*.5;let o=0,s=0;t.spin?(o=0,s=.5):(o=0,s=t.progress);const l=VC(r,r,r-n,o,s);Ct(e.ref.path,"d",l),Ct(e.ref.path,"stroke-opacity",t.spin||t.progress>0?1:0)},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),hm=Et({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:({root:e,props:t})=>{e.element.innerHTML=(t.icon||"")+`<span>${t.label}</span>`,t.isDisabled=!1},write:({root:e,props:t})=>{const{isDisabled:n}=t,r=e.query("GET_DISABLED")||t.opacity===0;r&&!n?(t.isDisabled=!0,Ct(e.element,"disabled","disabled")):!r&&n&&(t.isDisabled=!1,e.element.removeAttribute("disabled"))}}),gm=(e,t=".",n=1e3,r={})=>{const{labelBytes:o="bytes",labelKilobytes:s="KB",labelMegabytes:l="MB",labelGigabytes:c="GB"}=r;e=Math.round(Math.abs(e));const d=n,p=n*n,m=n*n*n;return e<d?`${e} ${o}`:e<p?`${Math.floor(e/d)} ${s}`:e<m?`${mm(e/p,1,t)} ${l}`:`${mm(e/m,2,t)} ${c}`},mm=(e,t,n)=>e.toFixed(t).split(".").filter(r=>r!=="0").join(n),WC=({root:e,props:t})=>{const n=$r("span");n.className="filepond--file-info-main",Ct(n,"aria-hidden","true"),e.appendChild(n),e.ref.fileName=n;const r=$r("span");r.className="filepond--file-info-sub",e.appendChild(r),e.ref.fileSize=r,mt(r,e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),mt(n,Vu(e.query("GET_ITEM_NAME",t.id)))},Wu=({root:e,props:t})=>{mt(e.ref.fileSize,gm(e.query("GET_ITEM_SIZE",t.id),".",e.query("GET_FILE_SIZE_BASE"),e.query("GET_FILE_SIZE_LABELS",e.query))),mt(e.ref.fileName,Vu(e.query("GET_ITEM_NAME",t.id)))},vm=({root:e,props:t})=>{if(Io(e.query("GET_ITEM_SIZE",t.id))){Wu({root:e,props:t});return}mt(e.ref.fileSize,e.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},qC=Et({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:Wu,DID_UPDATE_ITEM_META:Wu,DID_THROW_ITEM_LOAD_ERROR:vm,DID_THROW_ITEM_INVALID:vm}),didCreateView:e=>{Fi("CREATE_VIEW",{...e,view:e})},create:WC,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),bm=e=>Math.round(e*100),YC=({root:e})=>{const t=$r("span");t.className="filepond--file-status-main",e.appendChild(t),e.ref.main=t;const n=$r("span");n.className="filepond--file-status-sub",e.appendChild(n),e.ref.sub=n,_m({root:e,action:{progress:null}})},_m=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_LOADING"):`${e.query("GET_LABEL_FILE_LOADING")} ${bm(t.progress)}%`;mt(e.ref.main,n),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},ZC=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_PROCESSING"):`${e.query("GET_LABEL_FILE_PROCESSING")} ${bm(t.progress)}%`;mt(e.ref.main,n),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},XC=({root:e})=>{mt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING")),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},KC=({root:e})=>{mt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_ABORTED")),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_RETRY"))},QC=({root:e})=>{mt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_UNDO"))},xm=({root:e})=>{mt(e.ref.main,""),mt(e.ref.sub,"")},Rs=({root:e,action:t})=>{mt(e.ref.main,t.status.main),mt(e.ref.sub,t.status.sub)},JC=Et({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:xm,DID_REVERT_ITEM_PROCESSING:xm,DID_REQUEST_ITEM_PROCESSING:XC,DID_ABORT_ITEM_PROCESSING:KC,DID_COMPLETE_ITEM_PROCESSING:QC,DID_UPDATE_ITEM_PROCESS_PROGRESS:ZC,DID_UPDATE_ITEM_LOAD_PROGRESS:_m,DID_THROW_ITEM_LOAD_ERROR:Rs,DID_THROW_ITEM_INVALID:Rs,DID_THROW_ITEM_PROCESSING_ERROR:Rs,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Rs,DID_THROW_ITEM_REMOVE_ERROR:Rs}),didCreateView:e=>{Fi("CREATE_VIEW",{...e,view:e})},create:YC,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),qu={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Yu=[];ut(qu,e=>{Yu.push(e)});const xn=e=>{if(Zu(e)==="right")return 0;const t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},eT=e=>e.ref.buttonAbortItemLoad.rect.element.width,bl=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.height/4),tT=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.left/2),nT=e=>e.query("GET_STYLE_LOAD_INDICATOR_POSITION"),rT=e=>e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),Zu=e=>e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"),iT={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:nT},processProgressIndicator:{opacity:0,align:rT},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Em={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:xn},status:{translateX:xn}},Xu={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},$o={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{translateX:xn,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:Zu},info:{translateX:xn},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:Zu},buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{opacity:1,translateX:xn}},DID_LOAD_ITEM:Em,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{translateX:xn}},DID_START_ITEM_PROCESSING:Xu,DID_REQUEST_ITEM_PROCESSING:Xu,DID_UPDATE_ITEM_PROCESS_PROGRESS:Xu,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:xn}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:xn},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Em},oT=Et({create:({root:e})=>{e.element.innerHTML=e.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),sT=({root:e,props:t})=>{const n=Object.keys(qu).reduce((E,_)=>(E[_]={...qu[_]},E),{}),{id:r}=t,o=e.query("GET_ALLOW_REVERT"),s=e.query("GET_ALLOW_REMOVE"),l=e.query("GET_ALLOW_PROCESS"),c=e.query("GET_INSTANT_UPLOAD"),d=e.query("IS_ASYNC"),p=e.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");let m;d?l&&!o?m=E=>!/RevertItemProcessing/.test(E):!l&&o?m=E=>!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(E):!l&&!o&&(m=E=>!/Process/.test(E)):m=E=>!/Process/.test(E);const g=m?Yu.filter(m):Yu.concat();if(c&&o&&(n.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",n.RevertItemProcessing.icon="GET_ICON_REMOVE"),d&&!o){const E=$o.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=tT,E.info.translateY=bl,E.status.translateY=bl,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(d&&!l&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(E=>{$o[E].status.translateY=bl}),$o.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=eT),p&&o){n.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";const E=$o.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=xn,E.status.translateY=bl,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(n.RemoveItem.disabled=!0),ut(n,(E,_)=>{const w=e.createChildView(hm,{label:e.query(_.label),icon:e.query(_.icon),opacity:0});g.includes(E)&&e.appendChildView(w),_.disabled&&(w.element.setAttribute("disabled","disabled"),w.element.setAttribute("hidden","hidden")),w.element.dataset.align=e.query(`GET_STYLE_${_.align}`),w.element.classList.add(_.className),w.on("click",y=>{y.stopPropagation(),!_.disabled&&e.dispatch(_.action,{query:r})}),e.ref[`button${E}`]=w}),e.ref.processingCompleteIndicator=e.appendChildView(e.createChildView(oT)),e.ref.processingCompleteIndicator.element.dataset.align=e.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),e.ref.info=e.appendChildView(e.createChildView(qC,{id:r})),e.ref.status=e.appendChildView(e.createChildView(JC,{id:r}));const v=e.appendChildView(e.createChildView(pm,{opacity:0,align:e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));v.element.classList.add("filepond--load-indicator"),e.ref.loadProgressIndicator=v;const b=e.appendChildView(e.createChildView(pm,{opacity:0,align:e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));b.element.classList.add("filepond--process-indicator"),e.ref.processProgressIndicator=b,e.ref.activeStyles=[]},aT=({root:e,actions:t,props:n})=>{lT({root:e,actions:t,props:n});let r=t.concat().filter(o=>/^DID_/.test(o.type)).reverse().find(o=>$o[o.type]);if(r){e.ref.activeStyles=[];const o=$o[r.type];ut(iT,(s,l)=>{const c=e.ref[s];ut(l,(d,p)=>{const m=o[s]&&typeof o[s][d]<"u"?o[s][d]:p;e.ref.activeStyles.push({control:c,key:d,value:m})})})}e.ref.activeStyles.forEach(({control:o,key:s,value:l})=>{o[s]=typeof l=="function"?l(e):l})},lT=Yt({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:({root:e,action:t})=>{e.ref.buttonAbortItemProcessing.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:({root:e,action:t})=>{e.ref.buttonAbortItemLoad.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:({root:e,action:t})=>{e.ref.buttonAbortItemRemoval.label=t.value},DID_REQUEST_ITEM_PROCESSING:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:({root:e})=>{e.ref.loadProgressIndicator.spin=!0,e.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:({root:e,action:t})=>{e.ref.loadProgressIndicator.spin=!1,e.ref.loadProgressIndicator.progress=t.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:({root:e,action:t})=>{e.ref.processProgressIndicator.spin=!1,e.ref.processProgressIndicator.progress=t.progress}}),cT=Et({create:sT,write:aT,didCreateView:e=>{Fi("CREATE_VIEW",{...e,view:e})},name:"file"}),dT=Et({create:({root:e,props:t})=>{e.ref.fileName=$r("legend"),e.appendChild(e.ref.fileName),e.ref.file=e.appendChildView(e.createChildView(cT,{id:t.id})),e.ref.data=!1},ignoreRect:!0,write:Yt({DID_LOAD_ITEM:({root:e,props:t})=>{mt(e.ref.fileName,Vu(e.query("GET_ITEM_NAME",t.id)))}}),didCreateView:e=>{Fi("CREATE_VIEW",{...e,view:e})},tag:"fieldset",name:"file-wrapper"}),wm={type:"spring",damping:.6,mass:7},uT=({root:e,props:t})=>{[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:wm},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:wm},styles:["translateY"]}}].forEach(n=>{fT(e,n,t.name)}),e.element.classList.add(`filepond--${t.name}`),e.ref.scalable=null},fT=(e,t,n)=>{const r=Et({name:`panel-${t.name} filepond--${n}`,mixins:t.mixins,ignoreRectUpdate:!0}),o=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(o)},ym=Et({name:"panel",read:({root:e,props:t})=>t.heightCurrent=e.ref.bottom.translateY,write:({root:e,props:t})=>{if((e.ref.scalable===null||t.scalable!==e.ref.scalable)&&(e.ref.scalable=zg(t.scalable)?t.scalable:!0,e.element.dataset.scalable=e.ref.scalable),!t.height)return;const n=e.ref.top.rect.element,r=e.ref.bottom.rect.element,o=Math.max(n.height+r.height,t.height);e.ref.center.translateY=n.height,e.ref.center.scaleY=(o-n.height-r.height)/100,e.ref.bottom.translateY=o-r.height},create:uT,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),pT=e=>{const t=e.map(r=>r.id);let n;return{setIndex:r=>{n=r},getIndex:()=>n,getItemIndex:r=>t.indexOf(r.id)}},Cm={type:"spring",stiffness:.75,damping:.45,mass:10},Tm="spring",Sm={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},hT=({root:e,props:t})=>{if(e.ref.handleClick=r=>e.dispatch("DID_ACTIVATE_ITEM",{id:t.id}),e.element.id=`filepond--item-${t.id}`,e.element.addEventListener("click",e.ref.handleClick),e.ref.container=e.appendChildView(e.createChildView(dT,{id:t.id})),e.ref.panel=e.appendChildView(e.createChildView(ym,{name:"item-panel"})),e.ref.panel.height=null,t.markedForRemoval=!1,!e.query("GET_ALLOW_REORDER"))return;e.element.dataset.dragState="idle";const n=r=>{if(!r.isPrimary)return;let o=!1;const s={x:r.pageX,y:r.pageY};t.dragOrigin={x:e.translateX,y:e.translateY},t.dragCenter={x:r.offsetX,y:r.offsetY};const l=pT(e.query("GET_ACTIVE_ITEMS"));e.dispatch("DID_GRAB_ITEM",{id:t.id,dragState:l});const c=g=>{if(!g.isPrimary)return;g.stopPropagation(),g.preventDefault(),t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},t.dragOffset.x*t.dragOffset.x+t.dragOffset.y*t.dragOffset.y>16&&!o&&(o=!0,e.element.removeEventListener("click",e.ref.handleClick)),e.dispatch("DID_DRAG_ITEM",{id:t.id,dragState:l})},d=g=>{g.isPrimary&&(t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},m())},p=()=>{m()},m=()=>{document.removeEventListener("pointercancel",p),document.removeEventListener("pointermove",c),document.removeEventListener("pointerup",d),e.dispatch("DID_DROP_ITEM",{id:t.id,dragState:l}),o&&setTimeout(()=>e.element.addEventListener("click",e.ref.handleClick),0)};document.addEventListener("pointercancel",p),document.addEventListener("pointermove",c),document.addEventListener("pointerup",d)};e.element.addEventListener("pointerdown",n)},gT=Yt({DID_UPDATE_PANEL_HEIGHT:({root:e,action:t})=>{e.height=t.height}}),mT=Yt({DID_GRAB_ITEM:({root:e,props:t})=>{t.dragOrigin={x:e.translateX,y:e.translateY}},DID_DRAG_ITEM:({root:e})=>{e.element.dataset.dragState="drag"},DID_DROP_ITEM:({root:e,props:t})=>{t.dragOffset=null,t.dragOrigin=null,e.element.dataset.dragState="drop"}},({root:e,actions:t,props:n,shouldOptimize:r})=>{e.element.dataset.dragState==="drop"&&e.scaleX<=1&&(e.element.dataset.dragState="idle");let o=t.concat().filter(l=>/^DID_/.test(l.type)).reverse().find(l=>Sm[l.type]);o&&o.type!==n.currentState&&(n.currentState=o.type,e.element.dataset.filepondItemState=Sm[n.currentState]||"");const s=e.query("GET_ITEM_PANEL_ASPECT_RATIO")||e.query("GET_PANEL_ASPECT_RATIO");s?r||(e.height=e.rect.element.width*s):(gT({root:e,actions:t,props:n}),!e.height&&e.ref.container.rect.element.height>0&&(e.height=e.ref.container.rect.element.height)),r&&(e.ref.panel.height=null),e.ref.panel.height=e.height}),vT=Et({create:hT,write:mT,destroy:({root:e,props:t})=>{e.element.removeEventListener("click",e.ref.handleClick),e.dispatch("RELEASE_ITEM",{query:t.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:Tm,scaleY:Tm,translateX:Cm,translateY:Cm,opacity:{type:"tween",duration:150}}}});var Ku=(e,t)=>Math.max(1,Math.floor((e+1)/t));const Qu=(e,t,n)=>{if(!n)return;const r=e.rect.element.width,o=t.length;let s=null;if(o===0||n.top<t[0].rect.element.top)return-1;const c=t[0].rect.element,d=c.marginLeft+c.marginRight,p=c.width+d,m=Ku(r,p);if(m===1){for(let b=0;b<o;b++){const E=t[b],_=E.rect.outer.top+E.rect.element.height*.5;if(n.top<_)return b}return o}const g=c.marginTop+c.marginBottom,v=c.height+g;for(let b=0;b<o;b++){const E=b%m,_=Math.floor(b/m),w=E*p,y=_*v,S=y-c.marginTop,T=w+p,O=y+v+c.marginBottom;if(n.top<O&&n.top>S){if(n.left<T)return b;b!==o-1?s=b:s=null}}return s!==null?s:o},_l={height:0,width:0,get getHeight(){return this.height},set setHeight(e){(this.height===0||e===0)&&(this.height=e)},get getWidth(){return this.width},set setWidth(e){(this.width===0||e===0)&&(this.width=e)},setDimensions:function(e,t){(this.height===0||e===0)&&(this.height=e),(this.width===0||t===0)&&(this.width=t)}},bT=({root:e})=>{Ct(e.element,"role","list"),e.ref.lastItemSpanwDate=Date.now()},_T=({root:e,action:t})=>{const{id:n,index:r,interactionMethod:o}=t;e.ref.addIndex=r;const s=Date.now();let l=s,c=1;if(o!==Rn.NONE){c=0;const d=e.query("GET_ITEM_INSERT_INTERVAL"),p=s-e.ref.lastItemSpanwDate;l=p<d?s+(d-p):s}e.ref.lastItemSpanwDate=l,e.appendChildView(e.createChildView(vT,{spawnDate:l,id:n,opacity:c,interactionMethod:o}),r)},Im=(e,t,n,r=0,o=1)=>{e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(e.opacity===0&&xT(e,t,n,r,o),e.scaleX=1,e.scaleY=1,e.opacity=1))},xT=(e,t,n,r,o)=>{e.interactionMethod===Rn.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Rn.DROP?(e.translateX=null,e.translateX=t-r*20,e.translateY=null,e.translateY=n-o*10,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Rn.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Rn.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},ET=({root:e,action:t})=>{const{id:n}=t,r=e.childViews.find(o=>o.id===n);r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},Ju=e=>e.rect.element.height+e.rect.element.marginBottom*.5+e.rect.element.marginTop*.5,wT=e=>e.rect.element.width+e.rect.element.marginLeft*.5+e.rect.element.marginRight*.5,yT=Yt({DID_ADD_ITEM:_T,DID_REMOVE_ITEM:ET,DID_DRAG_ITEM:({root:e,action:t})=>{const{id:n,dragState:r}=t,o=e.query("GET_ITEM",{id:n}),s=e.childViews.find(w=>w.id===n),l=e.childViews.length,c=r.getItemIndex(o);if(!s)return;const d={x:s.dragOrigin.x+s.dragOffset.x+s.dragCenter.x,y:s.dragOrigin.y+s.dragOffset.y+s.dragCenter.y},p=Ju(s),m=wT(s);let g=Math.floor(e.rect.outer.width/m);g>l&&(g=l);const v=Math.floor(l/g+1);_l.setHeight=p*v,_l.setWidth=m*g;var b={y:Math.floor(d.y/p),x:Math.floor(d.x/m),getGridIndex:function(){return d.y>_l.getHeight||d.y<0||d.x>_l.getWidth||d.x<0?c:this.y*g+this.x},getColIndex:function(){const y=e.query("GET_ACTIVE_ITEMS"),S=e.childViews.filter(L=>L.rect.element.height),T=y.map(L=>S.find(U=>U.id===L.id)),O=T.findIndex(L=>L===s),I=Ju(s),M=T.length;let R=M,D=0,k=0,q=0;for(let L=0;L<M;L++)if(D=Ju(T[L]),q=k,k=q+D,d.y<k){if(O>L){if(d.y<q+I){R=L;break}continue}R=L;break}return R}};const E=g>1?b.getGridIndex():b.getColIndex();e.dispatch("MOVE_ITEM",{query:s,index:E});const _=r.getIndex();if(_===void 0||_!==E){if(r.setIndex(E),_===void 0)return;e.dispatch("DID_REORDER_ITEMS",{items:e.query("GET_ACTIVE_ITEMS"),origin:c,target:E})}}}),CT=Et({create:bT,write:({root:e,props:t,actions:n,shouldOptimize:r})=>{yT({root:e,props:t,actions:n});const{dragCoordinates:o}=t,s=e.rect.element.width,l=e.childViews.filter(T=>T.rect.element.height),c=e.query("GET_ACTIVE_ITEMS").map(T=>l.find(O=>O.id===T.id)).filter(T=>T),d=o?Qu(e,c,o):null,p=e.ref.addIndex||null;e.ref.addIndex=null;let m=0,g=0,v=0;if(c.length===0)return;const b=c[0].rect.element,E=b.marginTop+b.marginBottom,_=b.marginLeft+b.marginRight,w=b.width+_,y=b.height+E,S=Ku(s,w);if(S===1){let T=0,O=0;c.forEach((I,M)=>{if(d){let k=M-d;k===-2?O=-E*.25:k===-1?O=-E*.75:k===0?O=E*.75:k===1?O=E*.25:O=0}r&&(I.translateX=null,I.translateY=null),I.markedForRemoval||Im(I,0,T+O);let D=(I.rect.element.height+E)*(I.markedForRemoval?I.opacity:1);T+=D})}else{let T=0,O=0;c.forEach((I,M)=>{M===d&&(m=1),M===p&&(v+=1),I.markedForRemoval&&I.opacity<.5&&(g-=1);const R=M+v+m+g,D=R%S,k=Math.floor(R/S),q=D*w,L=k*y,U=Math.sign(q-T),X=Math.sign(L-O);T=q,O=L,!I.markedForRemoval&&(r&&(I.translateX=null,I.translateY=null),Im(I,q,L,U,X))})}},tag:"ul",name:"list",didWriteView:({root:e})=>{e.childViews.filter(t=>t.markedForRemoval&&t.opacity===0&&t.resting).forEach(t=>{t._destroy(),e.removeChildView(t)})},filterFrameActionsForChild:(e,t)=>t.filter(n=>n.data&&n.data.id?e.id===n.data.id:!0),mixins:{apis:["dragCoordinates"]}}),TT=({root:e,props:t})=>{e.ref.list=e.appendChildView(e.createChildView(CT)),t.dragCoordinates=null,t.overflowing=!1},ST=Yt({DID_DRAG:({root:e,props:t,action:n})=>{e.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(t.dragCoordinates={left:n.position.scopeLeft-e.ref.list.rect.element.left,top:n.position.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},DID_END_DRAG:({props:e})=>{e.dragCoordinates=null}}),IT=Et({create:TT,write:({root:e,props:t,actions:n})=>{if(ST({root:e,props:t,actions:n}),e.ref.list.dragCoordinates=t.dragCoordinates,t.overflowing&&!t.overflow&&(t.overflowing=!1,e.element.dataset.state="",e.height=null),t.overflow){const r=Math.round(t.overflow);r!==e.height&&(t.overflowing=!0,e.element.dataset.state="overflow",e.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),sr=(e,t,n,r="")=>{n?Ct(e,t,r):e.removeAttribute(t)},AT=e=>{if(!(!e||e.value==="")){try{e.value=""}catch{}if(e.value){const t=$r("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},OT=({root:e,props:t})=>{e.element.id=`filepond--browser-${t.id}`,Ct(e.element,"name",e.query("GET_NAME")),Ct(e.element,"aria-controls",`filepond--assistant-${t.id}`),Ct(e.element,"aria-labelledby",`filepond--drop-label-${t.id}`),Am({root:e,action:{value:e.query("GET_ACCEPTED_FILE_TYPES")}}),Om({root:e,action:{value:e.query("GET_ALLOW_MULTIPLE")}}),$m({root:e,action:{value:e.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ef({root:e}),Dm({root:e,action:{value:e.query("GET_REQUIRED")}}),Mm({root:e,action:{value:e.query("GET_CAPTURE_METHOD")}}),e.ref.handleChange=n=>{if(!e.element.value)return;const r=Array.from(e.element.files).map(o=>(o._relativePath=o.webkitRelativePath,o));setTimeout(()=>{t.onload(r),AT(e.element)},250)},e.element.addEventListener("change",e.ref.handleChange)},Am=({root:e,action:t})=>{e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&sr(e.element,"accept",!!t.value,t.value?t.value.join(","):"")},Om=({root:e,action:t})=>{sr(e.element,"multiple",t.value)},$m=({root:e,action:t})=>{sr(e.element,"webkitdirectory",t.value)},ef=({root:e})=>{const t=e.query("GET_DISABLED"),n=e.query("GET_ALLOW_BROWSE"),r=t||!n;sr(e.element,"disabled",r)},Dm=({root:e,action:t})=>{t.value?e.query("GET_TOTAL_ITEMS")===0&&sr(e.element,"required",!0):sr(e.element,"required",!1)},Mm=({root:e,action:t})=>{sr(e.element,"capture",!!t.value,t.value===!0?"":t.value)},Pm=({root:e})=>{const{element:t}=e;e.query("GET_TOTAL_ITEMS")>0?(sr(t,"required",!1),sr(t,"name",!1)):(sr(t,"name",!0,e.query("GET_NAME")),e.query("GET_CHECK_VALIDITY")&&t.setCustomValidity(""),e.query("GET_REQUIRED")&&sr(t,"required",!0))},$T=Et({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:OT,destroy:({root:e})=>{e.element.removeEventListener("change",e.ref.handleChange)},write:Yt({DID_LOAD_ITEM:Pm,DID_REMOVE_ITEM:Pm,DID_THROW_ITEM_INVALID:({root:e})=>{e.query("GET_CHECK_VALIDITY")&&e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:ef,DID_SET_ALLOW_BROWSE:ef,DID_SET_ALLOW_DIRECTORIES_ONLY:$m,DID_SET_ALLOW_MULTIPLE:Om,DID_SET_ACCEPTED_FILE_TYPES:Am,DID_SET_CAPTURE_METHOD:Mm,DID_SET_REQUIRED:Dm})}),Rm={ENTER:13,SPACE:32},DT=({root:e,props:t})=>{const n=$r("label");Ct(n,"for",`filepond--browser-${t.id}`),Ct(n,"id",`filepond--drop-label-${t.id}`),e.ref.handleKeyDown=r=>{(r.keyCode===Rm.ENTER||r.keyCode===Rm.SPACE)&&(r.preventDefault(),e.ref.label.click())},e.ref.handleClick=r=>{r.target===n||n.contains(r.target)||e.ref.label.click()},n.addEventListener("keydown",e.ref.handleKeyDown),e.element.addEventListener("click",e.ref.handleClick),Nm(n,t.caption),e.appendChild(n),e.ref.label=n},Nm=(e,t)=>{e.innerHTML=t;const n=e.querySelector(".filepond--label-action");return n&&Ct(n,"tabindex","0"),t},MT=Et({name:"drop-label",ignoreRect:!0,create:DT,destroy:({root:e})=>{e.ref.label.addEventListener("keydown",e.ref.handleKeyDown),e.element.removeEventListener("click",e.ref.handleClick)},write:Yt({DID_SET_LABEL_IDLE:({root:e,action:t})=>{Nm(e.ref.label,t.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),PT=Et({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),RT=({root:e})=>{const t=e.rect.element.width*.5,n=e.rect.element.height*.5;e.ref.blob=e.appendChildView(e.createChildView(PT,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:t,translateY:n}))},NT=({root:e,action:t})=>{if(!e.ref.blob){RT({root:e});return}e.ref.blob.translateX=t.position.scopeLeft,e.ref.blob.translateY=t.position.scopeTop,e.ref.blob.scaleX=1,e.ref.blob.scaleY=1,e.ref.blob.opacity=1},LT=({root:e})=>{e.ref.blob&&(e.ref.blob.opacity=0)},jT=({root:e})=>{e.ref.blob&&(e.ref.blob.scaleX=2.5,e.ref.blob.scaleY=2.5,e.ref.blob.opacity=0)},kT=({root:e,props:t,actions:n})=>{FT({root:e,props:t,actions:n});const{blob:r}=e.ref;n.length===0&&r&&r.opacity===0&&(e.removeChildView(r),e.ref.blob=null)},FT=Yt({DID_DRAG:NT,DID_DROP:jT,DID_END_DRAG:LT}),BT=Et({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:kT}),Lm=(e,t)=>{try{const n=new DataTransfer;t.forEach(r=>{r instanceof File?n.items.add(r):n.items.add(new File([r],r.name,{type:r.type}))}),e.files=n.files}catch{return!1}return!0},zT=({root:e})=>e.ref.fields={},xl=(e,t)=>e.ref.fields[t],tf=e=>{e.query("GET_ACTIVE_ITEMS").forEach(t=>{e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])})},jm=({root:e})=>tf(e),GT=Yt({DID_SET_DISABLED:({root:e})=>{e.element.disabled=e.query("GET_DISABLED")},DID_ADD_ITEM:({root:e,action:t})=>{const o=!(e.query("GET_ITEM",t.id).origin===Dt.LOCAL)&&e.query("SHOULD_UPDATE_FILE_INPUT"),s=$r("input");s.type=o?"file":"hidden",s.name=e.query("GET_NAME"),e.ref.fields[t.id]=s,tf(e)},DID_LOAD_ITEM:({root:e,action:t})=>{const n=xl(e,t.id);if(!n||(t.serverFileReference!==null&&(n.value=t.serverFileReference),!e.query("SHOULD_UPDATE_FILE_INPUT")))return;const r=e.query("GET_ITEM",t.id);Lm(n,[r.file])},DID_REMOVE_ITEM:({root:e,action:t})=>{const n=xl(e,t.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete e.ref.fields[t.id])},DID_DEFINE_VALUE:({root:e,action:t})=>{const n=xl(e,t.id);n&&(t.value===null?n.removeAttribute("value"):n.type!="file"&&(n.value=t.value),tf(e))},DID_PREPARE_OUTPUT:({root:e,action:t})=>{e.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(()=>{const n=xl(e,t.id);n&&Lm(n,[t.file])},0)},DID_REORDER_ITEMS:jm,DID_SORT_ITEMS:jm}),UT=Et({tag:"fieldset",name:"data",create:zT,write:GT,ignoreRect:!0}),HT=e=>"getRootNode"in e?e.getRootNode():document,VT=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],WT=["css","csv","html","txt"],qT={zip:"zip|compressed",epub:"application/epub+zip"},km=(e="")=>(e=e.toLowerCase(),VT.includes(e)?"image/"+(e==="jpg"?"jpeg":e==="svg"?"svg+xml":e):WT.includes(e)?"text/"+e:qT[e]||""),nf=e=>new Promise((t,n)=>{const r=tS(e);if(r.length&&!YT(e))return t(r);ZT(e).then(t)}),YT=e=>e.files?e.files.length>0:!1,ZT=e=>new Promise((t,n)=>{const r=(e.items?Array.from(e.items):[]).filter(o=>XT(o)).map(o=>KT(o));if(!r.length){t(e.files?Array.from(e.files):[]);return}Promise.all(r).then(o=>{const s=[];o.forEach(l=>{s.push.apply(s,l)}),t(s.filter(l=>l).map(l=>(l._relativePath||(l._relativePath=l.webkitRelativePath),l)))}).catch(console.error)}),XT=e=>{if(Fm(e)){const t=rf(e);if(t)return t.isFile||t.isDirectory}return e.kind==="file"},KT=e=>new Promise((t,n)=>{if(eS(e)){QT(rf(e)).then(t).catch(n);return}t([e.getAsFile()])}),QT=e=>new Promise((t,n)=>{const r=[];let o=0,s=0;const l=()=>{s===0&&o===0&&t(r)},c=d=>{o++;const p=d.createReader(),m=()=>{p.readEntries(g=>{if(g.length===0){o--,l();return}g.forEach(v=>{v.isDirectory?c(v):(s++,v.file(b=>{const E=JT(b);v.fullPath&&(E._relativePath=v.fullPath),r.push(E),s--,l()}))}),m()},n)};m()};c(e)}),JT=e=>{if(e.type.length)return e;const t=e.lastModifiedDate,n=e.name,r=km(ml(e.name));return r.length&&(e=e.slice(0,e.size,r),e.name=n,e.lastModifiedDate=t),e},eS=e=>Fm(e)&&(rf(e)||{}).isDirectory,Fm=e=>"webkitGetAsEntry"in e,rf=e=>e.webkitGetAsEntry(),tS=e=>{let t=[];try{if(t=rS(e),t.length)return t;t=nS(e)}catch{}return t},nS=e=>{let t=e.getData("url");return typeof t=="string"&&t.length?[t]:[]},rS=e=>{let t=e.getData("text/html");if(typeof t=="string"&&t.length){const n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},El=[],Hi=e=>({pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}),iS=(e,t,n)=>{const r=oS(t),o={element:e,filterElement:n,state:null,ondrop:()=>{},onenter:()=>{},ondrag:()=>{},onexit:()=>{},onload:()=>{},allowdrop:()=>{}};return o.destroy=r.addListener(o),o},oS=e=>{const t=El.find(r=>r.element===e);if(t)return t;const n=sS(e);return El.push(n),n},sS=e=>{const t=[],n={dragenter:lS,dragover:cS,dragleave:uS,drop:dS},r={};ut(n,(s,l)=>{r[s]=l(e,t),e.addEventListener(s,r[s],!1)});const o={element:e,addListener:s=>(t.push(s),()=>{t.splice(t.indexOf(s),1),t.length===0&&(El.splice(El.indexOf(o),1),ut(n,l=>{e.removeEventListener(l,r[l],!1)}))})};return o},aS=(e,t)=>("elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)),of=(e,t)=>{const n=HT(t),r=aS(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)};let Bm=null;const wl=(e,t)=>{try{e.dropEffect=t}catch{}},lS=(e,t)=>n=>{n.preventDefault(),Bm=n.target,t.forEach(r=>{const{element:o,onenter:s}=r;of(n,o)&&(r.state="enter",s(Hi(n)))})},cS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;nf(r).then(o=>{let s=!1;t.some(l=>{const{filterElement:c,element:d,onenter:p,onexit:m,ondrag:g,allowdrop:v}=l;wl(r,"copy");const b=v(o);if(!b){wl(r,"none");return}if(of(n,d)){if(s=!0,l.state===null){l.state="enter",p(Hi(n));return}if(l.state="over",c&&!b){wl(r,"none");return}g(Hi(n))}else c&&!s&&wl(r,"none"),l.state&&(l.state=null,m(Hi(n)))})})},dS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;nf(r).then(o=>{t.forEach(s=>{const{filterElement:l,element:c,ondrop:d,onexit:p,allowdrop:m}=s;if(s.state=null,!(l&&!of(n,c))){if(!m(o))return p(Hi(n));d(Hi(n),o)}})})},uS=(e,t)=>n=>{Bm===n.target&&t.forEach(r=>{const{onexit:o}=r;r.state=null,o(Hi(n))})},fS=(e,t,n)=>{e.classList.add("filepond--hopper");const{catchesDropsOnPage:r,requiresDropOnElement:o,filterItems:s=m=>m}=n,l=iS(e,r?document.documentElement:e,o);let c="",d="";l.allowdrop=m=>t(s(m)),l.ondrop=(m,g)=>{const v=s(g);if(!t(v)){p.ondragend(m);return}d="drag-drop",p.onload(v,m)},l.ondrag=m=>{p.ondrag(m)},l.onenter=m=>{d="drag-over",p.ondragstart(m)},l.onexit=m=>{d="drag-exit",p.ondragend(m)};const p={updateHopperState:()=>{c!==d&&(e.dataset.hopperState=d,c=d)},onload:()=>{},ondragstart:()=>{},ondrag:()=>{},ondragend:()=>{},destroy:()=>{l.destroy()}};return p};let sf=!1;const Do=[],zm=e=>{const t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||t.getAttribute("contenteditable")==="true")){let r=!1,o=t;for(;o!==document.body;){if(o.classList.contains("filepond--root")){r=!0;break}o=o.parentNode}if(!r)return}nf(e.clipboardData).then(r=>{r.length&&Do.forEach(o=>o(r))})},pS=e=>{Do.includes(e)||(Do.push(e),!sf&&(sf=!0,document.addEventListener("paste",zm)))},hS=e=>{ku(Do,Do.indexOf(e)),Do.length===0&&(document.removeEventListener("paste",zm),sf=!1)},gS=()=>{const e=n=>{t.onload(n)},t={destroy:()=>{hS(e)},onload:()=>{}};return pS(e),t},mS=({root:e,props:t})=>{e.element.id=`filepond--assistant-${t.id}`,Ct(e.element,"role","status"),Ct(e.element,"aria-live","polite"),Ct(e.element,"aria-relevant","additions")};let Gm=null,Um=null;const af=[],yl=(e,t)=>{e.element.textContent=t},vS=e=>{e.element.textContent=""},Hm=(e,t,n)=>{const r=e.query("GET_TOTAL_ITEMS");yl(e,`${n} ${t}, ${r} ${r===1?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL")}`),clearTimeout(Um),Um=setTimeout(()=>{vS(e)},1500)},Vm=e=>e.element.parentNode.contains(document.activeElement),bS=({root:e,action:t})=>{if(!Vm(e))return;e.element.textContent="";const n=e.query("GET_ITEM",t.id);af.push(n.filename),clearTimeout(Gm),Gm=setTimeout(()=>{Hm(e,af.join(", "),e.query("GET_LABEL_FILE_ADDED")),af.length=0},750)},_S=({root:e,action:t})=>{if(!Vm(e))return;const n=t.item;Hm(e,n.filename,e.query("GET_LABEL_FILE_REMOVED"))},xS=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,o=e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");yl(e,`${r} ${o}`)},Wm=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,o=e.query("GET_LABEL_FILE_PROCESSING_ABORTED");yl(e,`${r} ${o}`)},Cl=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename;yl(e,`${t.status.main} ${r} ${t.status.sub}`)},ES=Et({create:mS,ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:bS,DID_REMOVE_ITEM:_S,DID_COMPLETE_ITEM_PROCESSING:xS,DID_ABORT_ITEM_PROCESSING:Wm,DID_REVERT_ITEM_PROCESSING:Wm,DID_THROW_ITEM_REMOVE_ERROR:Cl,DID_THROW_ITEM_LOAD_ERROR:Cl,DID_THROW_ITEM_INVALID:Cl,DID_THROW_ITEM_PROCESSING_ERROR:Cl}),tag:"span",name:"assistant"}),qm=(e,t="-")=>e.replace(new RegExp(`${t}.`,"g"),n=>n.charAt(1).toUpperCase()),Ym=(e,t=16,n=!0)=>{let r=Date.now(),o=null;return(...s)=>{clearTimeout(o);const l=Date.now()-r,c=()=>{r=Date.now(),e(...s)};l<t?n||(o=setTimeout(c,t-l)):c()}},wS=1e6,Tl=e=>e.preventDefault(),yS=({root:e,props:t})=>{const n=e.query("GET_ID");n&&(e.element.id=n);const r=e.query("GET_CLASS_NAME");r&&r.split(" ").filter(d=>d.length).forEach(d=>{e.element.classList.add(d)}),e.ref.label=e.appendChildView(e.createChildView(MT,{...t,translateY:null,caption:e.query("GET_LABEL_IDLE")})),e.ref.list=e.appendChildView(e.createChildView(IT,{translateY:null})),e.ref.panel=e.appendChildView(e.createChildView(ym,{name:"panel-root"})),e.ref.assistant=e.appendChildView(e.createChildView(ES,{...t})),e.ref.data=e.appendChildView(e.createChildView(UT,{...t})),e.ref.measure=$r("div"),e.ref.measure.style.height="100%",e.element.appendChild(e.ref.measure),e.ref.bounds=null,e.query("GET_STYLES").filter(d=>!Or(d.value)).map(({name:d,value:p})=>{e.element.dataset[d]=p}),e.ref.widthPrevious=null,e.ref.widthUpdated=Ym(()=>{e.ref.updateHistory=[],e.dispatch("DID_RESIZE_ROOT")},250),e.ref.previousAspectRatio=null,e.ref.updateHistory=[];const o=window.matchMedia("(pointer: fine) and (hover: hover)").matches,s="PointerEvent"in window;e.query("GET_ALLOW_REORDER")&&s&&!o&&(e.element.addEventListener("touchmove",Tl,{passive:!1}),e.element.addEventListener("gesturestart",Tl));const l=e.query("GET_CREDITS");if(l.length===2){const d=document.createElement("a");d.className="filepond--credits",d.href=l[0],d.tabIndex=-1,d.target="_blank",d.rel="noopener noreferrer",d.textContent=l[1],e.element.appendChild(d),e.ref.credits=d}},CS=({root:e,props:t,actions:n})=>{if(OS({root:e,props:t,actions:n}),n.filter(M=>/^DID_SET_STYLE_/.test(M.type)).filter(M=>!Or(M.data.value)).map(({type:M,data:R})=>{const D=qm(M.substring(8).toLowerCase(),"_");e.element.dataset[D]=R.value,e.invalidateLayout()}),e.rect.element.hidden)return;e.rect.element.width!==e.ref.widthPrevious&&(e.ref.widthPrevious=e.rect.element.width,e.ref.widthUpdated());let r=e.ref.bounds;r||(r=e.ref.bounds=IS(e),e.element.removeChild(e.ref.measure),e.ref.measure=null);const{hopper:o,label:s,list:l,panel:c}=e.ref;o&&o.updateHopperState();const d=e.query("GET_PANEL_ASPECT_RATIO"),p=e.query("GET_ALLOW_MULTIPLE"),m=e.query("GET_TOTAL_ITEMS"),g=p?e.query("GET_MAX_FILES")||wS:1,v=m===g,b=n.find(M=>M.type==="DID_ADD_ITEM");if(v&&b){const M=b.data.interactionMethod;s.opacity=0,p?s.translateY=-40:M===Rn.API?s.translateX=40:M===Rn.BROWSE?s.translateY=40:s.translateY=30}else v||(s.opacity=1,s.translateX=0,s.translateY=0);const E=TS(e),_=SS(e),w=s.rect.element.height,y=!p||v?0:w,S=v?l.rect.element.marginTop:0,T=m===0?0:l.rect.element.marginBottom,O=y+S+_.visual+T,I=y+S+_.bounds+T;if(l.translateY=Math.max(0,y-l.rect.element.marginTop)-E.top,d){const M=e.rect.element.width,R=M*d;d!==e.ref.previousAspectRatio&&(e.ref.previousAspectRatio=d,e.ref.updateHistory=[]);const D=e.ref.updateHistory;D.push(M);const k=2;if(D.length>k*2){const L=D.length,U=L-10;let X=0;for(let N=L;N>=U;N--)if(D[N]===D[N-2]&&X++,X>=k)return}c.scalable=!1,c.height=R;const q=R-y-(T-E.bottom)-(v?S:0);_.visual>q?l.overflow=q:l.overflow=null,e.height=R}else if(r.fixedHeight){c.scalable=!1;const M=r.fixedHeight-y-(T-E.bottom)-(v?S:0);_.visual>M?l.overflow=M:l.overflow=null}else if(r.cappedHeight){const M=O>=r.cappedHeight,R=Math.min(r.cappedHeight,O);c.scalable=!0,c.height=M?R:R-E.top-E.bottom;const D=R-y-(T-E.bottom)-(v?S:0);O>r.cappedHeight&&_.visual>D?l.overflow=D:l.overflow=null,e.height=Math.min(r.cappedHeight,I-E.top-E.bottom)}else{const M=m>0?E.top+E.bottom:0;c.scalable=!0,c.height=Math.max(w,O-M),e.height=Math.max(w,I-M)}e.ref.credits&&c.heightCurrent&&(e.ref.credits.style.transform=`translateY(${c.heightCurrent}px)`)},TS=e=>{const t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},SS=e=>{let t=0,n=0;const r=e.ref.list,o=r.childViews[0],s=o.childViews.filter(S=>S.rect.element.height),l=e.query("GET_ACTIVE_ITEMS").map(S=>s.find(T=>T.id===S.id)).filter(S=>S);if(l.length===0)return{visual:t,bounds:n};const c=o.rect.element.width,d=Qu(o,l,r.dragCoordinates),p=l[0].rect.element,m=p.marginTop+p.marginBottom,g=p.marginLeft+p.marginRight,v=p.width+g,b=p.height+m,E=typeof d<"u"&&d>=0?1:0,_=l.find(S=>S.markedForRemoval&&S.opacity<.45)?-1:0,w=l.length+E+_,y=Ku(c,v);return y===1?l.forEach(S=>{const T=S.rect.element.height+m;n+=T,t+=T*S.opacity}):(n=Math.ceil(w/y)*b,t=n),{visual:t,bounds:n}},IS=e=>{const t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:t===0?null:t}},lf=(e,t)=>{const n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),o=e.query("GET_TOTAL_ITEMS");let s=e.query("GET_MAX_FILES");const l=t.length;return!r&&l>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:gt("warning",0,"Max files")}),!0):(s=r?s:1,!r&&n?!1:Io(s)&&o+l>s?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:gt("warning",0,"Max files")}),!0):!1)},AS=(e,t,n)=>{const r=e.childViews[0];return Qu(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Zm=e=>{const t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){const o=fS(e.element,s=>{const l=e.query("GET_BEFORE_DROP_FILE")||(()=>!0);return e.query("GET_DROP_VALIDATION")?s.every(d=>Fi("ALLOW_HOPPER_ITEM",d,{query:e.query}).every(p=>p===!0)&&l(d)):!0},{filterItems:s=>{const l=e.query("GET_IGNORED_FILES");return s.filter(c=>Ui(c)?!l.includes(c.name.toLowerCase()):!0)},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});o.onload=(s,l)=>{const d=e.ref.list.childViews[0].childViews.filter(m=>m.rect.element.height),p=e.query("GET_ACTIVE_ITEMS").map(m=>d.find(g=>g.id===m.id)).filter(m=>m);ir("ADD_ITEMS",s,{dispatch:e.dispatch}).then(m=>{if(lf(e,m))return!1;e.dispatch("ADD_ITEMS",{items:m,index:AS(e.ref.list,p,l),interactionMethod:Rn.DROP})}),e.dispatch("DID_DROP",{position:l}),e.dispatch("DID_END_DRAG",{position:l})},o.ondragstart=s=>{e.dispatch("DID_START_DRAG",{position:s})},o.ondrag=Ym(s=>{e.dispatch("DID_DRAG",{position:s})}),o.ondragend=s=>{e.dispatch("DID_END_DRAG",{position:s})},e.ref.hopper=o,e.ref.drip=e.appendChildView(e.createChildView(BT))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Xm=(e,t)=>{const n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),o=n&&!r;o&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView($T,{...t,onload:s=>{ir("ADD_ITEMS",s,{dispatch:e.dispatch}).then(l=>{if(lf(e,l))return!1;e.dispatch("ADD_ITEMS",{items:l,index:-1,interactionMethod:Rn.BROWSE})})}}),0):!o&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Km=e=>{const t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=gS(),e.ref.paster.onload=o=>{ir("ADD_ITEMS",o,{dispatch:e.dispatch}).then(s=>{if(lf(e,s))return!1;e.dispatch("ADD_ITEMS",{items:s,index:-1,interactionMethod:Rn.PASTE})})}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},OS=Yt({DID_SET_ALLOW_BROWSE:({root:e,props:t})=>{Xm(e,t)},DID_SET_ALLOW_DROP:({root:e})=>{Zm(e)},DID_SET_ALLOW_PASTE:({root:e})=>{Km(e)},DID_SET_DISABLED:({root:e,props:t})=>{Zm(e),Km(e),Xm(e,t),e.query("GET_DISABLED")?e.element.dataset.disabled="disabled":e.element.removeAttribute("data-disabled")}}),$S=Et({name:"root",read:({root:e})=>{e.ref.measure&&(e.ref.measureHeight=e.ref.measure.offsetHeight)},create:yS,write:CS,destroy:({root:e})=>{e.ref.paster&&e.ref.paster.destroy(),e.ref.hopper&&e.ref.hopper.destroy(),e.element.removeEventListener("touchmove",Tl),e.element.removeEventListener("gesturestart",Tl)},mixins:{styles:["height"]}}),DS=(e={})=>{let t=null;const n=hl(),r=g8(Q8(n),[vC,tC(n)],[GC,eC(n)]);r.dispatch("SET_OPTIONS",{options:e});const o=()=>{document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",o);let s=null,l=!1,c=!1,d=null,p=null;const m=()=>{l||(l=!0),clearTimeout(s),s=setTimeout(()=>{l=!1,d=null,p=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",m);const g=$S(r,{id:ju()});let v=!1,b=!1;const E={_read:()=>{l&&(p=window.innerWidth,d||(d=p),!c&&p!==d&&(r.dispatch("DID_START_RESIZE"),c=!0)),b&&v&&(v=g.element.offsetParent===null),!v&&(g._read(),b=g.rect.element.hidden)},_write:B=>{const V=r.processActionQueue().filter(Q=>!/^SET_/.test(Q.type));v&&!V.length||(S(V),v=g._write(B,V,c),iC(r.query("GET_ITEMS")),v&&r.processDispatchQueue())}},_=B=>V=>{const Q={type:B};if(!V)return Q;if(V.hasOwnProperty("error")&&(Q.error=V.error?{...V.error}:null),V.status&&(Q.status={...V.status}),V.file&&(Q.output=V.file),V.source)Q.file=V.source;else if(V.item||V.id){const W=V.item?V.item:r.query("GET_ITEM",V.id);Q.file=W?an(W):null}return V.items&&(Q.items=V.items.map(an)),/progress/.test(B)&&(Q.progress=V.progress),V.hasOwnProperty("origin")&&V.hasOwnProperty("target")&&(Q.origin=V.origin,Q.target=V.target),Q},w={DID_DESTROY:_("destroy"),DID_INIT:_("init"),DID_THROW_MAX_FILES:_("warning"),DID_INIT_ITEM:_("initfile"),DID_START_ITEM_LOAD:_("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:_("addfileprogress"),DID_LOAD_ITEM:_("addfile"),DID_THROW_ITEM_INVALID:[_("error"),_("addfile")],DID_THROW_ITEM_LOAD_ERROR:[_("error"),_("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[_("error"),_("removefile")],DID_PREPARE_OUTPUT:_("preparefile"),DID_START_ITEM_PROCESSING:_("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:_("processfileprogress"),DID_ABORT_ITEM_PROCESSING:_("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:_("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:_("processfiles"),DID_REVERT_ITEM_PROCESSING:_("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[_("error"),_("processfile")],DID_REMOVE_ITEM:_("removefile"),DID_UPDATE_ITEMS:_("updatefiles"),DID_ACTIVATE_ITEM:_("activatefile"),DID_REORDER_ITEMS:_("reorderfiles")},y=B=>{const V={pond:K,...B};delete V.type,g.element.dispatchEvent(new CustomEvent(`FilePond:${B.type}`,{detail:V,bubbles:!0,cancelable:!0,composed:!0}));const Q=[];B.hasOwnProperty("error")&&Q.push(B.error),B.hasOwnProperty("file")&&Q.push(B.file);const W=["type","error","file"];Object.keys(B).filter(Y=>!W.includes(Y)).forEach(Y=>Q.push(B[Y])),K.fire(B.type,...Q);const G=r.query(`GET_ON${B.type.toUpperCase()}`);G&&G(...Q)},S=B=>{B.length&&B.filter(V=>w[V.type]).forEach(V=>{const Q=w[V.type];(Array.isArray(Q)?Q:[Q]).forEach(W=>{V.type==="DID_INIT_ITEM"?y(W(V.data)):setTimeout(()=>{y(W(V.data))},0)})})},T=B=>r.dispatch("SET_OPTIONS",{options:B}),O=B=>r.query("GET_ACTIVE_ITEM",B),I=B=>new Promise((V,Q)=>{r.dispatch("REQUEST_ITEM_PREPARE",{query:B,success:W=>{V(W)},failure:W=>{Q(W)}})}),M=(B,V={})=>new Promise((Q,W)=>{k([{source:B,options:V}],{index:V.index}).then(G=>Q(G&&G[0])).catch(W)}),R=B=>B.file&&B.id,D=(B,V)=>(typeof B=="object"&&!R(B)&&!V&&(V=B,B=void 0),r.dispatch("REMOVE_ITEM",{...V,query:B}),r.query("GET_ACTIVE_ITEM",B)===null),k=(...B)=>new Promise((V,Q)=>{const W=[],G={};if(cl(B[0]))W.push.apply(W,B[0]),Object.assign(G,B[1]||{});else{const Y=B[B.length-1];typeof Y=="object"&&!(Y instanceof Blob)&&Object.assign(G,B.pop()),W.push(...B)}r.dispatch("ADD_ITEMS",{items:W,index:G.index,interactionMethod:Rn.API,success:V,failure:Q})}),q=()=>r.query("GET_ACTIVE_ITEMS"),L=B=>new Promise((V,Q)=>{r.dispatch("REQUEST_ITEM_PROCESSING",{query:B,success:W=>{V(W)},failure:W=>{Q(W)}})}),U=(...B)=>{const V=Array.isArray(B[0])?B[0]:B,Q=V.length?V:q();return Promise.all(Q.map(I))},X=(...B)=>{const V=Array.isArray(B[0])?B[0]:B;if(!V.length){const Q=q().filter(W=>!(W.status===$e.IDLE&&W.origin===Dt.LOCAL)&&W.status!==$e.PROCESSING&&W.status!==$e.PROCESSING_COMPLETE&&W.status!==$e.PROCESSING_REVERT_ERROR);return Promise.all(Q.map(L))}return Promise.all(V.map(L))},N=(...B)=>{const V=Array.isArray(B[0])?B[0]:B;let Q;typeof V[V.length-1]=="object"?Q=V.pop():Array.isArray(B[0])&&(Q=B[1]);const W=q();return V.length?V.map(Y=>ji(Y)?W[Y]?W[Y].id:null:Y).filter(Y=>Y).map(Y=>D(Y,Q)):Promise.all(W.map(Y=>D(Y,Q)))},K={...pl(),...E,...J8(r,n),setOptions:T,addFile:M,addFiles:k,getFile:O,processFile:L,prepareFile:I,removeFile:D,moveFile:(B,V)=>r.dispatch("MOVE_ITEM",{query:B,index:V}),getFiles:q,processFiles:X,removeFiles:N,prepareFiles:U,sort:B=>r.dispatch("SORT",{compare:B}),browse:()=>{var B=g.element.querySelector("input[type=file]");B&&B.click()},destroy:()=>{K.fire("destroy",g.element),r.dispatch("ABORT_ALL"),g._destroy(),window.removeEventListener("resize",m),document.removeEventListener("visibilitychange",o),r.dispatch("DID_DESTROY")},insertBefore:B=>Fg(g.element,B),insertAfter:B=>Bg(g.element,B),appendTo:B=>B.appendChild(g.element),replaceElement:B=>{Fg(g.element,B),B.parentNode.removeChild(B),t=B},restoreElement:()=>{t&&(Bg(t,g.element),g.element.parentNode.removeChild(g.element),t=null)},isAttachedTo:B=>g.element===B||t===B,element:{get:()=>g.element},status:{get:()=>r.query("GET_STATUS")}};return r.dispatch("DID_INIT"),li(K)},Qm=(e={})=>{const t={};return ut(hl(),(r,o)=>{t[r]=o[0]}),DS({...t,...e})},MS=e=>e.charAt(0).toLowerCase()+e.slice(1),PS=e=>qm(e.replace(/^data-/,"")),Jm=(e,t)=>{ut(t,(n,r)=>{ut(e,(o,s)=>{const l=new RegExp(n);if(!l.test(o)||(delete e[o],r===!1))return;if(Zt(r)){e[r]=s;return}const d=r.group;$t(r)&&!e[d]&&(e[d]={}),e[d][MS(o.replace(l,""))]=s}),r.mapping&&Jm(e[r.group],r.mapping)})},RS=(e,t={})=>{const n=[];ut(e.attributes,o=>{n.push(e.attributes[o])});const r=n.filter(o=>o.name).reduce((o,s)=>{const l=Ct(e,s.name);return o[PS(s.name)]=l===s.name?!0:l,o},{});return Jm(r,t),r},NS=(e,t={})=>{const n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Fi("SET_ATTRIBUTE_TO_OPTION_MAP",n);const r={...t},o=RS(e.nodeName==="FIELDSET"?e.querySelector("input[type=file]"):e,n);Object.keys(o).forEach(l=>{$t(o[l])?($t(r[l])||(r[l]={}),Object.assign(r[l],o[l])):r[l]=o[l]}),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map(l=>({source:l.value,options:{type:l.dataset.type}})));const s=Qm(r);return e.files&&Array.from(e.files).forEach(l=>{s.addFile(l)}),s.replaceElement(e),s},LS=(...e)=>h8(e[0])?NS(...e):Qm(...e),jS=["fire","_read","_write"],ev=e=>{const t={};return Yg(e,t,jS),t},kS=(e,t)=>e.replace(/(?:{([a-zA-Z]+)})/g,(n,r)=>t[r]),FS=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:(o,s)=>{},post:(o,s,l)=>{const c=ju();r.onmessage=d=>{d.data.id===c&&s(d.data.message)},r.postMessage({id:c,message:o},l)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},BS=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=o=>{n(o)},r.src=e}),tv=(e,t)=>{const n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},zS=e=>tv(e,e.name),nv=[],GS=e=>{if(nv.includes(e))return;nv.push(e);const t=e({addFilter:sC,utils:{Type:re,forin:ut,isString:Zt,isFile:Ui,toNaturalFileSize:gm,replaceInString:kS,getExtensionFromFilename:ml,getFilenameWithoutExtension:sm,guesstimateMimeType:km,getFileFromBlob:Oo,getFilenameFromURL:$s,createRoute:Yt,createWorker:FS,createView:Et,createItemAPI:an,loadImage:BS,copyFile:zS,renameFile:tv,createBlob:tm,applyFilterChain:ir,text:mt,getNumericAspectRatioFromString:Kg},views:{fileActionButton:hm}});aC(t.options)},US=()=>Object.prototype.toString.call(window.operamini)==="[object OperaMini]",HS=()=>"Promise"in window,VS=()=>"slice"in Blob.prototype,WS=()=>"URL"in window&&"createObjectURL"in window.URL,qS=()=>"visibilityState"in document,YS=()=>"performance"in window,ZS=()=>"supports"in(window.CSS||{}),XS=()=>/MSIE|Trident/.test(window.navigator.userAgent),cf=(()=>{const e=Pg()&&!US()&&qS()&&HS()&&VS()&&WS()&&YS()&&(ZS()||XS());return()=>e})(),ci={apps:[]},KS="filepond",Vi=()=>{};let rv={},Sl=Vi,df=Vi,iv=Vi,ov=Vi,uf=Vi,sv=Vi,av=Vi;if(cf()){k8(()=>{ci.apps.forEach(n=>n._read())},n=>{ci.apps.forEach(r=>r._write(n))});const e=()=>{document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:cf,create:Sl,destroy:df,parse:iv,find:ov,registerPlugin:uf,setOptions:av}})),document.removeEventListener("DOMContentLoaded",e)};document.readyState!=="loading"?setTimeout(()=>e(),0):document.addEventListener("DOMContentLoaded",e);const t=()=>ut(hl(),(n,r)=>{rv[n]=r[1]});rv={},t(),Sl=(...n)=>{const r=LS(...n);return r.on("destroy",df),ci.apps.push(r),ev(r)},df=n=>{const r=ci.apps.findIndex(o=>o.isAttachedTo(n));return r>=0?(ci.apps.splice(r,1)[0].restoreElement(),!0):!1},iv=n=>Array.from(n.querySelectorAll(`.${KS}`)).filter(s=>!ci.apps.find(l=>l.isAttachedTo(s))).map(s=>Sl(s)),ov=n=>{const r=ci.apps.find(o=>o.isAttachedTo(n));return r?ev(r):null},uf=(...n)=>{n.forEach(GS),t()},sv=()=>{const n={};return ut(hl(),(r,o)=>{n[r]=o[0]}),n},av=n=>($t(n)&&(ci.apps.forEach(r=>{r.setOptions(n)}),lC(n)),sv())}/*!
|
|
103
|
-
* react-filepond v7.1.
|
|
105
|
+
*/const x8=e=>e instanceof HTMLElement,E8=(e,t=[],n=[])=>{const r={...e},i=[],s=[],l=()=>({...r}),c=()=>{const E=[...i];return i.length=0,E},u=()=>{const E=[...s];s.length=0,E.forEach(({type:_,data:w})=>{p(_,w)})},p=(E,_,w)=>{if(w&&!document.hidden){s.push({type:E,data:_});return}b[E]&&b[E](_),i.push({type:E,data:_})},m=(E,..._)=>v[E]?v[E](..._):null,g={getState:l,processActionQueue:c,processDispatchQueue:u,dispatch:p,query:m};let v={};t.forEach(E=>{v={...E(r),...v}});let b={};return n.forEach(E=>{b={...E(p,m,r),...b}}),g},w8=(e,t,n)=>{if(typeof n=="function"){e[t]=n;return}Object.defineProperty(e,t,{...n})},dt=(e,t)=>{for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])},ci=e=>{const t={};return dt(e,n=>{w8(t,n,e[n])}),t},Ct=(e,t,n=null)=>{if(n===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},y8="http://www.w3.org/2000/svg",C8=["svg","path"],Pg=e=>C8.includes(e),al=(e,t,n={})=>{typeof t=="object"&&(n=t,t=null);const r=Pg(e)?document.createElementNS(y8,e):document.createElement(e);return t&&(Pg(e)?Ct(r,"class",t):r.className=t),dt(n,(i,s)=>{Ct(r,i,s)}),r},T8=e=>(t,n)=>{typeof n<"u"&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)},S8=(e,t)=>(n,r)=>(typeof r<"u"?t.splice(r,0,n):t.push(n),n),I8=(e,t)=>n=>(t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n),O8=typeof window<"u"&&typeof window.document<"u",Rg=()=>O8,A8="children"in(Rg()?al("svg"):{})?e=>e.children.length:e=>e.childNodes.length,Ng=(e,t,n,r)=>{const i=n[0]||e.left,s=n[1]||e.top,l=i+e.width,c=s+e.height*(r[1]||1),u={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:s,right:l,bottom:c}};return t.filter(p=>!p.isRectIgnored()).map(p=>p.rect).forEach(p=>{Lg(u.inner,{...p.inner}),Lg(u.outer,{...p.outer})}),jg(u.inner),u.outer.bottom+=u.element.marginBottom,u.outer.right+=u.element.marginRight,jg(u.outer),u},Lg=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},jg=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},Li=e=>typeof e=="number",$8=(e,t,n,r=.001)=>Math.abs(e-t)<r&&Math.abs(n)<r,D8=({stiffness:e=.5,damping:t=.75,mass:n=10}={})=>{let r=null,i=null,s=0,l=!1;const p=ci({interpolate:(m,g)=>{if(l)return;if(!(Li(r)&&Li(i))){l=!0,s=0;return}const v=-(i-r)*e;s+=v/n,i+=s,s*=t,$8(i,r,s)||g?(i=r,s=0,l=!0,p.onupdate(i),p.oncomplete(i)):p.onupdate(i)},target:{set:m=>{if(Li(m)&&!Li(i)&&(i=m),r===null&&(r=m,i=m),r=m,i===r||typeof r>"u"){l=!0,s=0,p.onupdate(i),p.oncomplete(i);return}l=!1},get:()=>r},resting:{get:()=>l},onupdate:m=>{},oncomplete:m=>{}});return p},M8=e=>e<.5?2*e*e:-1+(4-2*e)*e,kg={spring:D8,tween:({duration:e=500,easing:t=M8,delay:n=0}={})=>{let r=null,i,s,l=!0,c=!1,u=null;const m=ci({interpolate:(g,v)=>{l||u===null||(r===null&&(r=g),!(g-r<n)&&(i=g-r-n,i>=e||v?(i=1,s=c?0:1,m.onupdate(s*u),m.oncomplete(s*u),l=!0):(s=i/e,m.onupdate((i>=0?t(c?1-s:s):0)*u))))},target:{get:()=>c?0:u,set:g=>{if(u===null){u=g,m.onupdate(g),m.oncomplete(g);return}g<u?(u=1,c=!0):(c=!1,u=g),l=!1,r=null}},resting:{get:()=>l},onupdate:g=>{},oncomplete:g=>{}});return m}},P8=(e,t,n)=>{const r=e[t]&&typeof e[t][n]=="object"?e[t][n]:e[t]||e,i=typeof r=="string"?r:r.type,s=typeof r=="object"?{...r}:{};return kg[i]?kg[i](s):null},Nd=(e,t,n,r=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(i=>{e.forEach(s=>{let l=s,c=()=>n[s],u=p=>n[s]=p;typeof s=="object"&&(l=s.key,c=s.getter||c,u=s.setter||u),!(i[l]&&!r)&&(i[l]={get:c,set:u})})})},R8=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r})=>{const i={...t},s=[];return dt(e,(l,c)=>{const u=P8(c);if(!u)return;u.onupdate=m=>{t[l]=m},u.target=i[l],Nd([{key:l,setter:m=>{u.target!==m&&(u.target=m)},getter:()=>t[l]}],[n,r],t,!0),s.push(u)}),{write:l=>{let c=document.hidden,u=!0;return s.forEach(p=>{p.resting||(u=!1),p.interpolate(l,c)}),u},destroy:()=>{}}},N8=e=>(t,n)=>{e.addEventListener(t,n)},L8=e=>(t,n)=>{e.removeEventListener(t,n)},j8=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,viewState:i,view:s})=>{const l=[],c=N8(s.element),u=L8(s.element);return r.on=(p,m)=>{l.push({type:p,fn:m}),c(p,m)},r.off=(p,m)=>{l.splice(l.findIndex(g=>g.type===p&&g.fn===m),1),u(p,m)},{write:()=>!0,destroy:()=>{l.forEach(p=>{u(p.type,p.fn)})}}},k8=({mixinConfig:e,viewProps:t,viewExternalAPI:n})=>{Nd(e,n,t)},Wt=e=>e!=null,F8={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},B8=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,view:i})=>{const s={...t},l={};Nd(e,[n,r],t);const c=()=>[t.translateX||0,t.translateY||0],u=()=>[t.scaleX||0,t.scaleY||0],p=()=>i.rect?Ng(i.rect,i.childViews,c(),u()):null;return n.rect={get:p},r.rect={get:p},e.forEach(m=>{t[m]=typeof s[m]>"u"?F8[m]:s[m]}),{write:()=>{if(z8(l,t))return G8(i.element,t),Object.assign(l,{...t}),!0},destroy:()=>{}}},z8=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const n in t)if(t[n]!==e[n])return!0;return!1},G8=(e,{opacity:t,perspective:n,translateX:r,translateY:i,scaleX:s,scaleY:l,rotateX:c,rotateY:u,rotateZ:p,originX:m,originY:g,width:v,height:b})=>{let E="",_="";(Wt(m)||Wt(g))&&(_+=`transform-origin: ${m||0}px ${g||0}px;`),Wt(n)&&(E+=`perspective(${n}px) `),(Wt(r)||Wt(i))&&(E+=`translate3d(${r||0}px, ${i||0}px, 0) `),(Wt(s)||Wt(l))&&(E+=`scale3d(${Wt(s)?s:1}, ${Wt(l)?l:1}, 1) `),Wt(p)&&(E+=`rotateZ(${p}rad) `),Wt(c)&&(E+=`rotateX(${c}rad) `),Wt(u)&&(E+=`rotateY(${u}rad) `),E.length&&(_+=`transform:${E};`),Wt(t)&&(_+=`opacity:${t};`,t===0&&(_+="visibility:hidden;"),t<1&&(_+="pointer-events:none;")),Wt(b)&&(_+=`height:${b}px;`),Wt(v)&&(_+=`width:${v}px;`);const w=e.elementCurrentStyle||"";(_.length!==w.length||_!==w)&&(e.style.cssText=_,e.elementCurrentStyle=_)},H8={styles:B8,listeners:j8,animations:R8,apis:k8},Fg=(e={},t={},n={})=>(t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=t.offsetParent===null,e),Et=({tag:e="div",name:t=null,attributes:n={},read:r=()=>{},write:i=()=>{},create:s=()=>{},destroy:l=()=>{},filterFrameActionsForChild:c=(b,E)=>E,didCreateView:u=()=>{},didWriteView:p=()=>{},ignoreRect:m=!1,ignoreRectUpdate:g=!1,mixins:v=[]}={})=>(b,E={})=>{const _=al(e,`filepond--${t}`,n),w=window.getComputedStyle(_,null),y=Fg();let S=null,T=!1;const A=[],I=[],M={},R={},D=[i],k=[r],Y=[l],L=()=>_,G=()=>A.concat(),X=()=>M,N=ne=>(le,ge)=>le(ne,ge),K=()=>S||(S=Ng(y,A,[0,0],[1,1]),S),B=()=>w,W=()=>{S=null,A.forEach(ge=>ge._read()),!(g&&y.width&&y.height)&&Fg(y,_,w);const le={root:fe,props:E,rect:y};k.forEach(ge=>ge(le))},J=(ne,le,ge)=>{let be=le.length===0;return D.forEach(pe=>{pe({props:E,root:fe,actions:le,timestamp:ne,shouldOptimize:ge})===!1&&(be=!1)}),I.forEach(pe=>{pe.write(ne)===!1&&(be=!1)}),A.filter(pe=>!!pe.element.parentNode).forEach(pe=>{pe._write(ne,c(pe,le),ge)||(be=!1)}),A.forEach((pe,We)=>{pe.element.parentNode||(fe.appendChild(pe.element,We),pe._read(),pe._write(ne,c(pe,le),ge),be=!1)}),T=be,p({props:E,root:fe,actions:le,timestamp:ne}),be},q=()=>{I.forEach(ne=>ne.destroy()),Y.forEach(ne=>{ne({root:fe,props:E})}),A.forEach(ne=>ne._destroy())},U={element:{get:L},style:{get:B},childViews:{get:G}},V={...U,rect:{get:K},ref:{get:X},is:ne=>t===ne,appendChild:T8(_),createChildView:N(b),linkView:ne=>(A.push(ne),ne),unlinkView:ne=>{A.splice(A.indexOf(ne),1)},appendChildView:S8(_,A),removeChildView:I8(_,A),registerWriter:ne=>D.push(ne),registerReader:ne=>k.push(ne),registerDestroyer:ne=>Y.push(ne),invalidateLayout:()=>_.layoutCalculated=!1,dispatch:b.dispatch,query:b.query},ce={element:{get:L},childViews:{get:G},rect:{get:K},resting:{get:()=>T},isRectIgnored:()=>m,_read:W,_write:J,_destroy:q},de={...U,rect:{get:()=>y}};Object.keys(v).sort((ne,le)=>ne==="styles"?1:le==="styles"?-1:0).forEach(ne=>{const le=H8[ne]({mixinConfig:v[ne],viewProps:E,viewState:R,viewInternalAPI:V,viewExternalAPI:ce,view:ci(de)});le&&I.push(le)});const fe=ci(V);s({root:fe,props:E});const we=A8(_);return A.forEach((ne,le)=>{fe.appendChild(ne.element,we+le)}),u(fe),ci(ce)},U8=(e,t,n=60)=>{const r="__framePainter";if(window[r]){window[r].readers.push(e),window[r].writers.push(t);return}window[r]={readers:[e],writers:[t]};const i=window[r],s=1e3/n;let l=null,c=null,u=null,p=null;const m=()=>{document.hidden?(u=()=>window.setTimeout(()=>g(performance.now()),s),p=()=>window.clearTimeout(c)):(u=()=>window.requestAnimationFrame(g),p=()=>window.cancelAnimationFrame(c))};document.addEventListener("visibilitychange",()=>{p&&p(),m(),g(performance.now())});const g=v=>{c=u(g),l||(l=v);const b=v-l;b<=s||(l=v-b%s,i.readers.forEach(E=>E()),i.writers.forEach(E=>E(v)))};return m(),g(performance.now()),{pause:()=>{p(c)}}},qt=(e,t)=>({root:n,props:r,actions:i=[],timestamp:s,shouldOptimize:l})=>{i.filter(c=>e[c.type]).forEach(c=>e[c.type]({root:n,props:r,action:c.data,timestamp:s,shouldOptimize:l})),t&&t({root:n,props:r,actions:i,timestamp:s,shouldOptimize:l})},Bg=(e,t)=>t.parentNode.insertBefore(e,t),zg=(e,t)=>t.parentNode.insertBefore(e,t.nextSibling),ll=e=>Array.isArray(e),Ar=e=>e==null,V8=e=>e.trim(),cl=e=>""+e,W8=(e,t=",")=>Ar(e)?[]:ll(e)?e:cl(e).split(t).map(V8).filter(n=>n.length),Gg=e=>typeof e=="boolean",Hg=e=>Gg(e)?e:e==="true",Yt=e=>typeof e=="string",Ug=e=>Li(e)?e:Yt(e)?cl(e).replace(/[a-z]+/gi,""):0,ul=e=>parseInt(Ug(e),10),Vg=e=>parseFloat(Ug(e)),Oo=e=>Li(e)&&isFinite(e)&&Math.floor(e)===e,Wg=(e,t=1e3)=>{if(Oo(e))return e;let n=cl(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),ul(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),ul(n)*t):ul(n)},ji=e=>typeof e=="function",q8=e=>{let t=self,n=e.split("."),r=null;for(;r=n.shift();)if(t=t[r],!t)return null;return t},qg={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},Y8=e=>{const t={};return t.url=Yt(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},dt(qg,n=>{t[n]=Z8(n,e[n],qg[n],t.timeout,t.headers)}),t.process=e.process||Yt(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},Z8=(e,t,n,r,i)=>{if(t===null)return null;if(typeof t=="function")return t;const s={url:n==="GET"||n==="PATCH"?`?${e}=`:"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(Yt(t))return s.url=t,s;if(Object.assign(s,t),Yt(s.headers)){const l=s.headers.split(/:(.+)/);s.headers={header:l[0],value:l[1]}}return s.withCredentials=Hg(s.withCredentials),s},X8=e=>Y8(e),K8=e=>e===null,$t=e=>typeof e=="object"&&e!==null,Q8=e=>$t(e)&&Yt(e.url)&&$t(e.process)&&$t(e.revert)&&$t(e.restore)&&$t(e.fetch),Ld=e=>ll(e)?"array":K8(e)?"null":Oo(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":Q8(e)?"api":typeof e,J8=e=>e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'),eC={array:W8,boolean:Hg,int:e=>Ld(e)==="bytes"?Wg(e):ul(e),number:Vg,float:Vg,bytes:Wg,string:e=>ji(e)?e:cl(e),function:e=>q8(e),serverapi:X8,object:e=>{try{return JSON.parse(J8(e))}catch{return null}}},tC=(e,t)=>eC[t](e),Yg=(e,t,n)=>{if(e===t)return e;let r=Ld(e);if(r!==n){const i=tC(e,n);if(r=Ld(i),i===null)throw`Trying to assign value with incorrect type to "${option}", allowed type: "${n}"`;e=i}return e},nC=(e,t)=>{let n=e;return{enumerable:!0,get:()=>n,set:r=>{n=Yg(r,e,t)}}},rC=e=>{const t={};return dt(e,n=>{const r=e[n];t[n]=nC(r[0],r[1])}),ci(t)},iC=e=>({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:rC(e)}),dl=(e,t="-")=>e.split(/(?=[A-Z])/).map(n=>n.toLowerCase()).join(t),oC=(e,t)=>{const n={};return dt(t,r=>{n[r]={get:()=>e.getState().options[r],set:i=>{e.dispatch(`SET_${dl(r,"_").toUpperCase()}`,{value:i})}}}),n},sC=e=>(t,n,r)=>{const i={};return dt(e,s=>{const l=dl(s,"_").toUpperCase();i[`SET_${l}`]=c=>{try{r.options[s]=c.value}catch{}t(`DID_SET_${l}`,{value:r.options[s]})}}),i},aC=e=>t=>{const n={};return dt(e,r=>{n[`GET_${dl(r,"_").toUpperCase()}`]=i=>t.options[r]}),n},Pn={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},jd=()=>Math.random().toString(36).substring(2,11),kd=(e,t)=>e.splice(t,1),lC=(e,t)=>{t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},fl=()=>{const e=[],t=(r,i)=>{kd(e,e.findIndex(s=>s.event===r&&(s.cb===i||!i)))},n=(r,i,s)=>{e.filter(l=>l.event===r).map(l=>l.cb).forEach(l=>lC(()=>l(...i),s))};return{fireSync:(r,...i)=>{n(r,i,!0)},fire:(r,...i)=>{n(r,i,!1)},on:(r,i)=>{e.push({event:r,cb:i})},onOnce:(r,i)=>{e.push({event:r,cb:(...s)=>{t(r,i),i(...s)}})},off:t}},Zg=(e,t,n)=>{Object.getOwnPropertyNames(e).filter(r=>!n.includes(r)).forEach(r=>Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r)))},cC=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],an=e=>{const t={};return Zg(e,t,cC),t},uC=e=>{e.forEach((t,n)=>{t.released&&kd(e,n)})},Ae={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Dt={INPUT:1,LIMBO:2,LOCAL:3},Xg=e=>/[^0-9]+/.exec(e),Kg=()=>Xg(1.1.toLocaleString())[0],dC=()=>{const e=Kg(),t=1e3.toLocaleString();return t!=="1000"?Xg(t)[0]:e==="."?",":"."},re={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Fd=[],rr=(e,t,n)=>new Promise((r,i)=>{const s=Fd.filter(c=>c.key===e).map(c=>c.cb);if(s.length===0){r(t);return}const l=s.shift();s.reduce((c,u)=>c.then(p=>u(p,n)),l(t,n)).then(c=>r(c)).catch(c=>i(c))}),ki=(e,t,n)=>Fd.filter(r=>r.key===e).map(r=>r.cb(t,n)),fC=(e,t)=>Fd.push({key:e,cb:t}),pC=e=>Object.assign(Ao,e),pl=()=>({...Ao}),hC=e=>{dt(e,(t,n)=>{Ao[t]&&(Ao[t][0]=Yg(n,Ao[t][0],Ao[t][1]))})},Ao={id:[null,re.STRING],name:["filepond",re.STRING],disabled:[!1,re.BOOLEAN],className:[null,re.STRING],required:[!1,re.BOOLEAN],captureMethod:[null,re.STRING],allowSyncAcceptAttribute:[!0,re.BOOLEAN],allowDrop:[!0,re.BOOLEAN],allowBrowse:[!0,re.BOOLEAN],allowPaste:[!0,re.BOOLEAN],allowMultiple:[!1,re.BOOLEAN],allowReplace:[!0,re.BOOLEAN],allowRevert:[!0,re.BOOLEAN],allowRemove:[!0,re.BOOLEAN],allowProcess:[!0,re.BOOLEAN],allowReorder:[!1,re.BOOLEAN],allowDirectoriesOnly:[!1,re.BOOLEAN],storeAsFile:[!1,re.BOOLEAN],forceRevert:[!1,re.BOOLEAN],maxFiles:[null,re.INT],checkValidity:[!1,re.BOOLEAN],itemInsertLocationFreedom:[!0,re.BOOLEAN],itemInsertLocation:["before",re.STRING],itemInsertInterval:[75,re.INT],dropOnPage:[!1,re.BOOLEAN],dropOnElement:[!0,re.BOOLEAN],dropValidation:[!1,re.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],re.ARRAY],instantUpload:[!0,re.BOOLEAN],maxParallelUploads:[2,re.INT],allowMinimumUploadDuration:[!0,re.BOOLEAN],chunkUploads:[!1,re.BOOLEAN],chunkForce:[!1,re.BOOLEAN],chunkSize:[5e6,re.INT],chunkRetryDelays:[[500,1e3,3e3],re.ARRAY],server:[null,re.SERVER_API],fileSizeBase:[1e3,re.INT],labelFileSizeBytes:["bytes",re.STRING],labelFileSizeKilobytes:["KB",re.STRING],labelFileSizeMegabytes:["MB",re.STRING],labelFileSizeGigabytes:["GB",re.STRING],labelDecimalSeparator:[Kg(),re.STRING],labelThousandsSeparator:[dC(),re.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',re.STRING],labelInvalidField:["Field contains invalid files",re.STRING],labelFileWaitingForSize:["Waiting for size",re.STRING],labelFileSizeNotAvailable:["Size not available",re.STRING],labelFileCountSingular:["file in list",re.STRING],labelFileCountPlural:["files in list",re.STRING],labelFileLoading:["Loading",re.STRING],labelFileAdded:["Added",re.STRING],labelFileLoadError:["Error during load",re.STRING],labelFileRemoved:["Removed",re.STRING],labelFileRemoveError:["Error during remove",re.STRING],labelFileProcessing:["Uploading",re.STRING],labelFileProcessingComplete:["Upload complete",re.STRING],labelFileProcessingAborted:["Upload cancelled",re.STRING],labelFileProcessingError:["Error during upload",re.STRING],labelFileProcessingRevertError:["Error during revert",re.STRING],labelTapToCancel:["tap to cancel",re.STRING],labelTapToRetry:["tap to retry",re.STRING],labelTapToUndo:["tap to undo",re.STRING],labelButtonRemoveItem:["Remove",re.STRING],labelButtonAbortItemLoad:["Abort",re.STRING],labelButtonRetryItemLoad:["Retry",re.STRING],labelButtonAbortItemProcessing:["Cancel",re.STRING],labelButtonUndoItemProcessing:["Undo",re.STRING],labelButtonRetryItemProcessing:["Retry",re.STRING],labelButtonProcessItem:["Upload",re.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',re.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],oninit:[null,re.FUNCTION],onwarning:[null,re.FUNCTION],onerror:[null,re.FUNCTION],onactivatefile:[null,re.FUNCTION],oninitfile:[null,re.FUNCTION],onaddfilestart:[null,re.FUNCTION],onaddfileprogress:[null,re.FUNCTION],onaddfile:[null,re.FUNCTION],onprocessfilestart:[null,re.FUNCTION],onprocessfileprogress:[null,re.FUNCTION],onprocessfileabort:[null,re.FUNCTION],onprocessfilerevert:[null,re.FUNCTION],onprocessfile:[null,re.FUNCTION],onprocessfiles:[null,re.FUNCTION],onremovefile:[null,re.FUNCTION],onpreparefile:[null,re.FUNCTION],onupdatefiles:[null,re.FUNCTION],onreorderfiles:[null,re.FUNCTION],beforeDropFile:[null,re.FUNCTION],beforeAddFile:[null,re.FUNCTION],beforeRemoveFile:[null,re.FUNCTION],beforePrepareFile:[null,re.FUNCTION],stylePanelLayout:[null,re.STRING],stylePanelAspectRatio:[null,re.STRING],styleItemPanelAspectRatio:[null,re.STRING],styleButtonRemoveItemPosition:["left",re.STRING],styleButtonProcessItemPosition:["right",re.STRING],styleLoadIndicatorPosition:["right",re.STRING],styleProgressIndicatorPosition:["right",re.STRING],styleButtonRemoveItemAlign:[!1,re.BOOLEAN],files:[[],re.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],re.ARRAY]},Fi=(e,t)=>Ar(t)?e[0]||null:Oo(t)?e[t]||null:(typeof t=="object"&&(t=t.id),e.find(n=>n.id===t)||null),Qg=e=>{if(Ar(e))return e;if(/:/.test(e)){const t=e.split(":");return t[1]/t[0]}return parseFloat(e)},ir=e=>e.filter(t=>!t.archived),gC={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4};let hl=null;const mC=()=>{if(hl===null)try{const e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));const t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,hl=t.files.length===1}catch{hl=!1}return hl},vC=[Ae.LOAD_ERROR,Ae.PROCESSING_ERROR,Ae.PROCESSING_REVERT_ERROR],bC=[Ae.LOADING,Ae.PROCESSING,Ae.PROCESSING_QUEUED,Ae.INIT],_C=[Ae.PROCESSING_COMPLETE],xC=e=>vC.includes(e.status),EC=e=>bC.includes(e.status),wC=e=>_C.includes(e.status),Jg=e=>$t(e.options.server)&&($t(e.options.server.process)||ji(e.options.server.process)),yC=e=>({GET_STATUS:()=>{const t=ir(e.items),{EMPTY:n,ERROR:r,BUSY:i,IDLE:s,READY:l}=gC;return t.length===0?n:t.some(xC)?r:t.some(EC)?i:t.some(wC)?l:s},GET_ITEM:t=>Fi(e.items,t),GET_ACTIVE_ITEM:t=>Fi(ir(e.items),t),GET_ACTIVE_ITEMS:()=>ir(e.items),GET_ITEMS:()=>e.items,GET_ITEM_NAME:t=>{const n=Fi(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:t=>{const n=Fi(e.items,t);return n?n.fileSize:null},GET_STYLES:()=>Object.keys(e.options).filter(t=>/^style/.test(t)).map(t=>({name:t,value:e.options[t]})),GET_PANEL_ASPECT_RATIO:()=>/circle/.test(e.options.stylePanelLayout)?1:Qg(e.options.stylePanelAspectRatio),GET_ITEM_PANEL_ASPECT_RATIO:()=>e.options.styleItemPanelAspectRatio,GET_ITEMS_BY_STATUS:t=>ir(e.items).filter(n=>n.status===t),GET_TOTAL_ITEMS:()=>ir(e.items).length,SHOULD_UPDATE_FILE_INPUT:()=>e.options.storeAsFile&&mC()&&!Jg(e),IS_ASYNC:()=>Jg(e),GET_FILE_SIZE_LABELS:t=>({labelBytes:t("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:t("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:t("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:t("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0})}),CC=e=>{const t=ir(e.items).length;if(!e.options.allowMultiple)return t===0;const n=e.options.maxFiles;return n===null||t<n},em=(e,t,n)=>Math.max(Math.min(n,e),t),TC=(e,t,n)=>e.splice(t,0,n),SC=(e,t,n)=>Ar(t)?null:typeof n>"u"?(e.push(t),t):(n=em(n,0,e.length),TC(e,n,t),t),Bd=e=>/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e),As=e=>`${e}`.split("/").pop().split("?").shift(),gl=e=>e.split(".").pop(),IC=e=>{if(typeof e!="string")return"";const t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?t==="jpeg"?"jpg":t:""},$s=(e,t="")=>(t+e).slice(-t.length),tm=(e=new Date)=>`${e.getFullYear()}-${$s(e.getMonth()+1,"00")}-${$s(e.getDate(),"00")}_${$s(e.getHours(),"00")}-${$s(e.getMinutes(),"00")}-${$s(e.getSeconds(),"00")}`,$o=(e,t,n=null,r=null)=>{const i=typeof n=="string"?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),Yt(t)||(t=tm()),t&&r===null&&gl(t)?i.name=t:(r=r||IC(i.type),i.name=t+(r?"."+r:"")),i},OC=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,nm=(e,t)=>{const n=OC();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},AC=(e,t)=>{const n=new ArrayBuffer(e.length),r=new Uint8Array(n);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return nm(n,t)},rm=e=>(/^data:(.+);/.exec(e)||[])[1]||null,$C=e=>e.split(",")[1].replace(/\s/g,""),DC=e=>atob($C(e)),MC=e=>{const t=rm(e),n=DC(e);return AC(n,t)},PC=(e,t,n)=>$o(MC(e),t,null,n),RC=e=>{if(!/^content-disposition:/i.test(e))return null;const t=e.split(/filename=|filename\*=.+''/).splice(1).map(n=>n.trim().replace(/^["']|[;"']{0,2}$/g,"")).filter(n=>n.length);return t.length?decodeURI(t[t.length-1]):null},NC=e=>{if(/content-length:/i.test(e)){const t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},LC=e=>/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null,zd=e=>{const t={source:null,name:null,size:null},n=e.split(`
|
|
106
|
+
`);for(let r of n){const i=RC(r);if(i){t.name=i;continue}const s=NC(r);if(s){t.size=s;continue}const l=LC(r);if(l){t.source=l;continue}}return t},jC=e=>{const t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=()=>t.progress,r=()=>{t.request&&t.request.abort&&t.request.abort()},i=()=>{const c=t.source;l.fire("init",c),c instanceof File?l.fire("load",c):c instanceof Blob?l.fire("load",$o(c,c.name)):Bd(c)?l.fire("load",PC(c)):s(c)},s=c=>{if(!e){l.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(c,u=>{t.duration=Date.now()-t.timestamp,t.complete=!0,u instanceof Blob&&(u=$o(u,u.name||As(c))),l.fire("load",u instanceof Blob?u:u?u.body:null)},u=>{l.fire("error",typeof u=="string"?{type:"error",code:0,body:u}:u)},(u,p,m)=>{if(m&&(t.size=m),t.duration=Date.now()-t.timestamp,!u){t.progress=null;return}t.progress=p/m,l.fire("progress",t.progress)},()=>{l.fire("abort")},u=>{const p=zd(typeof u=="string"?u:u.headers);l.fire("meta",{size:t.size||p.size,filename:p.name,source:p.source})})},l={...fl(),setSource:c=>t.source=c,getProgress:n,abort:r,load:i};return l},im=e=>/GET|HEAD/.test(e),Bi=(e,t,n)=>{const r={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{i=!0,l.abort()}};let i=!1,s=!1;n={method:"POST",headers:{},withCredentials:!1,...n},t=encodeURI(t),im(n.method)&&e&&(t=`${t}${encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))}`);const l=new XMLHttpRequest,c=im(n.method)?l:l.upload;return c.onprogress=u=>{i||r.onprogress(u.lengthComputable,u.loaded,u.total)},l.onreadystatechange=()=>{l.readyState<2||l.readyState===4&&l.status===0||s||(s=!0,r.onheaders(l))},l.onload=()=>{l.status>=200&&l.status<300?r.onload(l):r.onerror(l)},l.onerror=()=>r.onerror(l),l.onabort=()=>{i=!0,r.onabort()},l.ontimeout=()=>r.ontimeout(l),l.open(n.method,t,!0),Oo(n.timeout)&&(l.timeout=n.timeout),Object.keys(n.headers).forEach(u=>{const p=unescape(encodeURIComponent(n.headers[u]));l.setRequestHeader(u,p)}),n.responseType&&(l.responseType=n.responseType),n.withCredentials&&(l.withCredentials=!0),l.send(e),r},gt=(e,t,n,r)=>({type:e,code:t,body:n,headers:r}),zi=e=>t=>{e(gt("error",0,"Timeout",t.getAllResponseHeaders()))},om=e=>/\?/.test(e),Ds=(...e)=>{let t="";return e.forEach(n=>{t+=om(t)&&om(n)?n.replace(/\?/,"&"):n}),t},Gd=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Yt(t.url))return null;const n=t.onload||(i=>i),r=t.onerror||(i=>null);return(i,s,l,c,u,p)=>{const m=Bi(i,Ds(e,t.url),{...t,responseType:"blob"});return m.onload=g=>{const v=g.getAllResponseHeaders(),b=zd(v).name||As(i);s(gt("load",g.status,t.method==="HEAD"?null:$o(n(g.response),b),v))},m.onerror=g=>{l(gt("error",g.status,r(g.response)||g.statusText,g.getAllResponseHeaders()))},m.onheaders=g=>{p(gt("headers",g.status,null,g.getAllResponseHeaders()))},m.ontimeout=zi(l),m.onprogress=c,m.onabort=u,m}},Rn={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},kC=(e,t,n,r,i,s,l,c,u,p,m)=>{const g=[],{chunkTransferId:v,chunkServer:b,chunkSize:E,chunkRetryDelays:_}=m,w={serverId:v,aborted:!1},y=t.ondata||(N=>N),S=t.onload||((N,K)=>K==="HEAD"?N.getResponseHeader("Upload-Offset"):N.response),T=t.onerror||(N=>null),A=N=>{const K=new FormData;$t(i)&&K.append(n,JSON.stringify(i));const B=typeof t.headers=="function"?t.headers(r,i):{...t.headers,"Upload-Length":r.size},W={...t,headers:B},J=Bi(y(K),Ds(e,t.url),W);J.onload=q=>N(S(q,W.method)),J.onerror=q=>l(gt("error",q.status,T(q.response)||q.statusText,q.getAllResponseHeaders())),J.ontimeout=zi(l)},I=N=>{const K=Ds(e,b.url,w.serverId),W={headers:typeof t.headers=="function"?t.headers(w.serverId):{...t.headers},method:"HEAD"},J=Bi(null,K,W);J.onload=q=>N(S(q,W.method)),J.onerror=q=>l(gt("error",q.status,T(q.response)||q.statusText,q.getAllResponseHeaders())),J.ontimeout=zi(l)},M=Math.floor(r.size/E);for(let N=0;N<=M;N++){const K=N*E,B=r.slice(K,K+E,"application/offset+octet-stream");g[N]={index:N,size:B.size,offset:K,data:B,file:r,progress:0,retries:[..._],status:Rn.QUEUED,error:null,request:null,timeout:null}}const R=()=>s(w.serverId),D=N=>N.status===Rn.QUEUED||N.status===Rn.ERROR,k=N=>{if(w.aborted)return;if(N=N||g.find(D),!N){g.every(V=>V.status===Rn.COMPLETE)&&R();return}N.status=Rn.PROCESSING,N.progress=null;const K=b.ondata||(V=>V),B=b.onerror||(V=>null),W=b.onload||(()=>{}),J=Ds(e,b.url,w.serverId),q=typeof b.headers=="function"?b.headers(N):{...b.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":N.offset,"Upload-Length":r.size,"Upload-Name":r.name},U=N.request=Bi(K(N.data),J,{...b,headers:q});U.onload=V=>{W(V,N.index,g.length),N.status=Rn.COMPLETE,N.request=null,G()},U.onprogress=(V,ce,de)=>{N.progress=V?ce:null,L()},U.onerror=V=>{N.status=Rn.ERROR,N.request=null,N.error=B(V.response)||V.statusText,Y(N)||l(gt("error",V.status,B(V.response)||V.statusText,V.getAllResponseHeaders()))},U.ontimeout=V=>{N.status=Rn.ERROR,N.request=null,Y(N)||zi(l)(V)},U.onabort=()=>{N.status=Rn.QUEUED,N.request=null,u()}},Y=N=>N.retries.length===0?!1:(N.status=Rn.WAITING,clearTimeout(N.timeout),N.timeout=setTimeout(()=>{k(N)},N.retries.shift()),!0),L=()=>{const N=g.reduce((B,W)=>B===null||W.progress===null?null:B+W.progress,0);if(N===null)return c(!1,0,0);const K=g.reduce((B,W)=>B+W.size,0);c(!0,N,K)},G=()=>{g.filter(K=>K.status===Rn.PROCESSING).length>=1||k()},X=()=>{g.forEach(N=>{clearTimeout(N.timeout),N.request&&N.request.abort()})};return w.serverId?I(N=>{w.aborted||(g.filter(K=>K.offset<N).forEach(K=>{K.status=Rn.COMPLETE,K.progress=K.size}),G())}):A(N=>{w.aborted||(p(N),w.serverId=N,G())}),{abort:()=>{w.aborted=!0,X()}}},FC=(e,t,n,r)=>(i,s,l,c,u,p,m)=>{if(!i)return;const g=r.chunkUploads,v=g&&i.size>r.chunkSize,b=g&&(v||r.chunkForce);if(i instanceof Blob&&b)return kC(e,t,n,i,s,l,c,u,p,m,r);const E=t.ondata||(I=>I),_=t.onload||(I=>I),w=t.onerror||(I=>null),y=typeof t.headers=="function"?t.headers(i,s)||{}:{...t.headers},S={...t,headers:y};var T=new FormData;$t(s)&&T.append(n,JSON.stringify(s)),(i instanceof Blob?[{name:null,file:i}]:i).forEach(I=>{T.append(n,I.file,I.name===null?I.file.name:`${I.name}${I.file.name}`)});const A=Bi(E(T),Ds(e,t.url),S);return A.onload=I=>{l(gt("load",I.status,_(I.response),I.getAllResponseHeaders()))},A.onerror=I=>{c(gt("error",I.status,w(I.response)||I.statusText,I.getAllResponseHeaders()))},A.ontimeout=zi(c),A.onprogress=u,A.onabort=p,A},BC=(e="",t,n,r)=>typeof t=="function"?(...i)=>t(n,...i,r):!t||!Yt(t.url)?null:FC(e,t,n,r),Ms=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Yt(t.url))return(i,s)=>s();const n=t.onload||(i=>i),r=t.onerror||(i=>null);return(i,s,l)=>{const c=Bi(i,e+t.url,t);return c.onload=u=>{s(gt("load",u.status,n(u.response),u.getAllResponseHeaders()))},c.onerror=u=>{l(gt("error",u.status,r(u.response)||u.statusText,u.getAllResponseHeaders()))},c.ontimeout=zi(l),c}},sm=(e=0,t=1)=>e+Math.random()*(t-e),zC=(e,t=1e3,n=0,r=25,i=250)=>{let s=null;const l=Date.now(),c=()=>{let u=Date.now()-l,p=sm(r,i);u+p>t&&(p=u+p-t);let m=u/t;if(m>=1||document.hidden){e(1);return}e(m),s=setTimeout(c,p)};return t>0&&c(),{clear:()=>{clearTimeout(s)}}},GC=(e,t)=>{const n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},{allowMinimumUploadDuration:r}=t,i=(m,g)=>{const v=()=>{n.duration===0||n.progress===null||p.fire("progress",p.getProgress())},b=()=>{n.complete=!0,p.fire("load-perceived",n.response.body)};p.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=zC(E=>{n.perceivedProgress=E,n.perceivedDuration=Date.now()-n.timestamp,v(),n.response&&n.perceivedProgress===1&&!n.complete&&b()},r?sm(750,1500):0),n.request=e(m,g,E=>{n.response=$t(E)?E:{type:"load",code:200,body:`${E}`,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,p.fire("load",n.response.body),(!r||r&&n.perceivedProgress===1)&&b()},E=>{n.perceivedPerformanceUpdater.clear(),p.fire("error",$t(E)?E:{type:"error",code:0,body:`${E}`})},(E,_,w)=>{n.duration=Date.now()-n.timestamp,n.progress=E?_/w:null,v()},()=>{n.perceivedPerformanceUpdater.clear(),p.fire("abort",n.response?n.response.body:null)},E=>{p.fire("transfer",E)})},s=()=>{n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},l=()=>{s(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},c=r?()=>n.progress?Math.min(n.progress,n.perceivedProgress):null:()=>n.progress||null,u=r?()=>Math.min(n.duration,n.perceivedDuration):()=>n.duration,p={...fl(),process:i,abort:s,getProgress:c,getDuration:u,reset:l};return p},am=e=>e.substring(0,e.lastIndexOf("."))||e,HC=e=>{let t=[e.name,e.size,e.type];return e instanceof Blob||Bd(e)?t[0]=e.name||tm():Bd(e)?(t[1]=e.length,t[2]=rm(e)):Yt(e)&&(t[0]=As(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},Gi=e=>!!(e instanceof File||e instanceof Blob&&e.name),lm=e=>{if(!$t(e))return e;const t=ll(e)?[]:{};for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t[n]=r&&$t(r)?lm(r):r}return t},UC=(e=null,t=null,n=null)=>{const r=jd(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Ae.PROCESSING_COMPLETE:Ae.INIT,activeLoader:null,activeProcessor:null};let s=null;const l={},c=D=>i.status=D,u=(D,...k)=>{i.released||i.frozen||M.fire(D,...k)},p=()=>gl(i.file.name),m=()=>i.file.type,g=()=>i.file.size,v=()=>i.file,b=(D,k,Y)=>{if(i.source=D,M.fireSync("init"),i.file){M.fireSync("load-skip");return}i.file=HC(D),k.on("init",()=>{u("load-init")}),k.on("meta",L=>{i.file.size=L.size,i.file.filename=L.filename,L.source&&(e=Dt.LIMBO,i.serverFileReference=L.source,i.status=Ae.PROCESSING_COMPLETE),u("load-meta")}),k.on("progress",L=>{c(Ae.LOADING),u("load-progress",L)}),k.on("error",L=>{c(Ae.LOAD_ERROR),u("load-request-error",L)}),k.on("abort",()=>{c(Ae.INIT),u("load-abort")}),k.on("load",L=>{i.activeLoader=null;const G=N=>{i.file=Gi(N)?N:i.file,e===Dt.LIMBO&&i.serverFileReference?c(Ae.PROCESSING_COMPLETE):c(Ae.IDLE),u("load")},X=N=>{i.file=L,u("load-meta"),c(Ae.LOAD_ERROR),u("load-file-error",N)};if(i.serverFileReference){G(L);return}Y(L,G,X)}),k.setSource(D),i.activeLoader=k,k.load()},E=()=>{i.activeLoader&&i.activeLoader.load()},_=()=>{if(i.activeLoader){i.activeLoader.abort();return}c(Ae.INIT),u("load-abort")},w=(D,k)=>{if(i.processingAborted){i.processingAborted=!1;return}if(c(Ae.PROCESSING),s=null,!(i.file instanceof Blob)){M.on("load",()=>{w(D,k)});return}D.on("load",G=>{i.transferId=null,i.serverFileReference=G}),D.on("transfer",G=>{i.transferId=G}),D.on("load-perceived",G=>{i.activeProcessor=null,i.transferId=null,i.serverFileReference=G,c(Ae.PROCESSING_COMPLETE),u("process-complete",G)}),D.on("start",()=>{u("process-start")}),D.on("error",G=>{i.activeProcessor=null,c(Ae.PROCESSING_ERROR),u("process-error",G)}),D.on("abort",G=>{i.activeProcessor=null,i.serverFileReference=G,c(Ae.IDLE),u("process-abort"),s&&s()}),D.on("progress",G=>{u("process-progress",G)});const Y=G=>{i.archived||D.process(G,{...l})},L=console.error;k(i.file,Y,L),i.activeProcessor=D},y=()=>{i.processingAborted=!1,c(Ae.PROCESSING_QUEUED)},S=()=>new Promise(D=>{if(!i.activeProcessor){i.processingAborted=!0,c(Ae.IDLE),u("process-abort"),D();return}s=()=>{D()},i.activeProcessor.abort()}),T=(D,k)=>new Promise((Y,L)=>{const G=i.serverFileReference!==null?i.serverFileReference:i.transferId;if(G===null){Y();return}D(G,()=>{i.serverFileReference=null,i.transferId=null,Y()},X=>{if(!k){Y();return}c(Ae.PROCESSING_REVERT_ERROR),u("process-revert-error"),L(X)}),c(Ae.IDLE),u("process-revert")}),A=(D,k,Y)=>{const L=D.split("."),G=L[0],X=L.pop();let N=l;L.forEach(K=>N=N[K]),JSON.stringify(N[X])!==JSON.stringify(k)&&(N[X]=k,u("metadata-update",{key:G,value:l[G],silent:Y}))},M={id:{get:()=>r},origin:{get:()=>e,set:D=>e=D},serverId:{get:()=>i.serverFileReference},transferId:{get:()=>i.transferId},status:{get:()=>i.status},filename:{get:()=>i.file.name},filenameWithoutExtension:{get:()=>am(i.file.name)},fileExtension:{get:p},fileType:{get:m},fileSize:{get:g},file:{get:v},relativePath:{get:()=>i.file._relativePath},source:{get:()=>i.source},getMetadata:D=>lm(D?l[D]:l),setMetadata:(D,k,Y)=>{if($t(D)){const L=D;return Object.keys(L).forEach(G=>{A(G,L[G],k)}),D}return A(D,k,Y),k},extend:(D,k)=>R[D]=k,abortLoad:_,retryLoad:E,requestProcessing:y,abortProcessing:S,load:b,process:w,revert:T,...fl(),freeze:()=>i.frozen=!0,release:()=>i.released=!0,released:{get:()=>i.released},archive:()=>i.archived=!0,archived:{get:()=>i.archived},setFile:D=>i.file=D},R=ci(M);return R},VC=(e,t)=>Ar(t)?0:Yt(t)?e.findIndex(n=>n.id===t):-1,cm=(e,t)=>{const n=VC(e,t);if(!(n<0))return e[n]||null},um=(e,t,n,r,i,s)=>{const l=Bi(null,e,{method:"GET",responseType:"blob"});return l.onload=c=>{const u=c.getAllResponseHeaders(),p=zd(u).name||As(e);t(gt("load",c.status,$o(c.response,p),u))},l.onerror=c=>{n(gt("error",c.status,c.statusText,c.getAllResponseHeaders()))},l.onheaders=c=>{s(gt("headers",c.status,null,c.getAllResponseHeaders()))},l.ontimeout=zi(n),l.onprogress=r,l.onabort=i,l},dm=e=>(e.indexOf("//")===0&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]),WC=e=>(e.indexOf(":")>-1||e.indexOf("//")>-1)&&dm(location.href)!==dm(e),ml=e=>(...t)=>ji(e)?e(...t):e,qC=e=>!Gi(e.file),Hd=(e,t)=>{clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(()=>{e("DID_UPDATE_ITEMS",{items:ir(t.items)})},0)},fm=(e,...t)=>new Promise(n=>{if(!e)return n(!0);const r=e(...t);if(r==null)return n(!0);if(typeof r=="boolean")return n(r);typeof r.then=="function"&&r.then(n)}),Ud=(e,t)=>{e.items.sort((n,r)=>t(an(n),an(r)))},Nn=(e,t)=>({query:n,success:r=()=>{},failure:i=()=>{},...s}={})=>{const l=Fi(e.items,n);if(!l){i({error:gt("error",0,"Item not found"),file:null});return}t(l,r,i,s||{})},YC=(e,t,n)=>({ABORT_ALL:()=>{ir(n.items).forEach(r=>{r.freeze(),r.abortLoad(),r.abortProcessing()})},DID_SET_FILES:({value:r=[]})=>{const i=r.map(l=>({source:l.source?l.source:l,options:l.options}));let s=ir(n.items);s.forEach(l=>{i.find(c=>c.source===l.source||c.source===l.file)||e("REMOVE_ITEM",{query:l,remove:!1})}),s=ir(n.items),i.forEach((l,c)=>{s.find(u=>u.source===l.source||u.file===l.source)||e("ADD_ITEM",{...l,interactionMethod:Pn.NONE,index:c})})},DID_UPDATE_ITEM_METADATA:({id:r,action:i,change:s})=>{s.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(()=>{const l=cm(n.items,r);if(!t("IS_ASYNC")){rr("SHOULD_PREPARE_OUTPUT",!1,{item:l,query:t,action:i,change:s}).then(m=>{const g=t("GET_BEFORE_PREPARE_FILE");g&&(m=g(l,m)),m&&e("REQUEST_PREPARE_OUTPUT",{query:r,item:l,success:v=>{e("DID_PREPARE_OUTPUT",{id:r,file:v})}},!0)});return}l.origin===Dt.LOCAL&&e("DID_LOAD_ITEM",{id:l.id,error:null,serverFileReference:l.source});const c=()=>{setTimeout(()=>{e("REQUEST_ITEM_PROCESSING",{query:r})},32)},u=m=>{l.revert(Ms(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(m?c:()=>{}).catch(()=>{})},p=m=>{l.abortProcessing().then(m?c:()=>{})};if(l.status===Ae.PROCESSING_COMPLETE)return u(n.options.instantUpload);if(l.status===Ae.PROCESSING)return p(n.options.instantUpload);n.options.instantUpload&&c()},0))},MOVE_ITEM:({query:r,index:i})=>{const s=Fi(n.items,r);if(!s)return;const l=n.items.indexOf(s);i=em(i,0,n.items.length-1),l!==i&&n.items.splice(i,0,n.items.splice(l,1)[0])},SORT:({compare:r})=>{Ud(n,r),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:({items:r,index:i,interactionMethod:s,success:l=()=>{},failure:c=()=>{}})=>{let u=i;if(i===-1||typeof i>"u"){const b=t("GET_ITEM_INSERT_LOCATION"),E=t("GET_TOTAL_ITEMS");u=b==="before"?0:E}const p=t("GET_IGNORED_FILES"),m=b=>Gi(b)?!p.includes(b.name.toLowerCase()):!Ar(b),v=r.filter(m).map(b=>new Promise((E,_)=>{e("ADD_ITEM",{interactionMethod:s,source:b.source||b,success:E,failure:_,index:u++,options:b.options||{}})}));Promise.all(v).then(l).catch(c)},ADD_ITEM:({source:r,index:i=-1,interactionMethod:s,success:l=()=>{},failure:c=()=>{},options:u={}})=>{if(Ar(r)){c({error:gt("error",0,"No source"),file:null});return}if(Gi(r)&&n.options.ignoredFiles.includes(r.name.toLowerCase()))return;if(!CC(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){const S=gt("warning",0,"Max files");e("DID_THROW_MAX_FILES",{source:r,error:S}),c({error:S,file:null});return}const y=ir(n.items)[0];if(y.status===Ae.PROCESSING_COMPLETE||y.status===Ae.PROCESSING_REVERT_ERROR){const S=t("GET_FORCE_REVERT");if(y.revert(Ms(n.options.server.url,n.options.server.revert),S).then(()=>{S&&e("ADD_ITEM",{source:r,index:i,interactionMethod:s,success:l,failure:c,options:u})}).catch(()=>{}),S)return}e("REMOVE_ITEM",{query:y.id})}const p=u.type==="local"?Dt.LOCAL:u.type==="limbo"?Dt.LIMBO:Dt.INPUT,m=UC(p,p===Dt.INPUT?null:r,u.file);Object.keys(u.metadata||{}).forEach(y=>{m.setMetadata(y,u.metadata[y])}),ki("DID_CREATE_ITEM",m,{query:t,dispatch:e});const g=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(i=g==="before"?-1:n.items.length),SC(n.items,m,i),ji(g)&&r&&Ud(n,g);const v=m.id;m.on("init",()=>{e("DID_INIT_ITEM",{id:v})}),m.on("load-init",()=>{e("DID_START_ITEM_LOAD",{id:v})}),m.on("load-meta",()=>{e("DID_UPDATE_ITEM_META",{id:v})}),m.on("load-progress",y=>{e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:v,progress:y})}),m.on("load-request-error",y=>{const S=ml(n.options.labelFileLoadError)(y);if(y.code>=400&&y.code<500){e("DID_THROW_ITEM_INVALID",{id:v,error:y,status:{main:S,sub:`${y.code} (${y.body})`}}),c({error:y,file:an(m)});return}e("DID_THROW_ITEM_LOAD_ERROR",{id:v,error:y,status:{main:S,sub:n.options.labelTapToRetry}})}),m.on("load-file-error",y=>{e("DID_THROW_ITEM_INVALID",{id:v,error:y.status,status:y.status}),c({error:y.status,file:an(m)})}),m.on("load-abort",()=>{e("REMOVE_ITEM",{query:v})}),m.on("load-skip",()=>{m.on("metadata-update",y=>{Gi(m.file)&&e("DID_UPDATE_ITEM_METADATA",{id:v,change:y})}),e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}})}),m.on("load",()=>{const y=S=>{if(!S){e("REMOVE_ITEM",{query:v});return}m.on("metadata-update",T=>{e("DID_UPDATE_ITEM_METADATA",{id:v,change:T})}),rr("SHOULD_PREPARE_OUTPUT",!1,{item:m,query:t}).then(T=>{const A=t("GET_BEFORE_PREPARE_FILE");A&&(T=A(m,T));const I=()=>{e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}}),Hd(e,n)};if(T){e("REQUEST_PREPARE_OUTPUT",{query:v,item:m,success:M=>{e("DID_PREPARE_OUTPUT",{id:v,file:M}),I()}},!0);return}I()})};rr("DID_LOAD_ITEM",m,{query:t,dispatch:e}).then(()=>{fm(t("GET_BEFORE_ADD_FILE"),an(m)).then(y)}).catch(S=>{if(!S||!S.error||!S.status)return y(!1);e("DID_THROW_ITEM_INVALID",{id:v,error:S.error,status:S.status})})}),m.on("process-start",()=>{e("DID_START_ITEM_PROCESSING",{id:v})}),m.on("process-progress",y=>{e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:v,progress:y})}),m.on("process-error",y=>{e("DID_THROW_ITEM_PROCESSING_ERROR",{id:v,error:y,status:{main:ml(n.options.labelFileProcessingError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-revert-error",y=>{e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:v,error:y,status:{main:ml(n.options.labelFileProcessingRevertError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-complete",y=>{e("DID_COMPLETE_ITEM_PROCESSING",{id:v,error:null,serverFileReference:y}),e("DID_DEFINE_VALUE",{id:v,value:y})}),m.on("process-abort",()=>{e("DID_ABORT_ITEM_PROCESSING",{id:v})}),m.on("process-revert",()=>{e("DID_REVERT_ITEM_PROCESSING",{id:v}),e("DID_DEFINE_VALUE",{id:v,value:null})}),e("DID_ADD_ITEM",{id:v,index:i,interactionMethod:s}),Hd(e,n);const{url:b,load:E,restore:_,fetch:w}=n.options.server||{};m.load(r,jC(p===Dt.INPUT?Yt(r)&&WC(r)&&w?Gd(b,w):um:p===Dt.LIMBO?Gd(b,_):Gd(b,E)),(y,S,T)=>{rr("LOAD_FILE",y,{query:t}).then(S).catch(T)})},REQUEST_PREPARE_OUTPUT:({item:r,success:i,failure:s=()=>{}})=>{const l={error:gt("error",0,"Item not found"),file:null};if(r.archived)return s(l);rr("PREPARE_OUTPUT",r.file,{query:t,item:r}).then(c=>{rr("COMPLETE_PREPARE_OUTPUT",c,{query:t,item:r}).then(u=>{if(r.archived)return s(l);i(u)})})},COMPLETE_LOAD_ITEM:({item:r,data:i})=>{const{success:s,source:l}=i,c=t("GET_ITEM_INSERT_LOCATION");if(ji(c)&&l&&Ud(n,c),e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===Dt.INPUT?null:l}),s(an(r)),r.origin===Dt.LOCAL){e("DID_LOAD_LOCAL_ITEM",{id:r.id});return}if(r.origin===Dt.LIMBO){e("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:l}),e("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||l});return}t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:r.id})},RETRY_ITEM_LOAD:Nn(n,r=>{r.retryLoad()}),REQUEST_ITEM_PREPARE:Nn(n,(r,i,s)=>{e("REQUEST_PREPARE_OUTPUT",{query:r.id,item:r,success:l=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:l}),i({file:r,output:l})},failure:s},!0)}),REQUEST_ITEM_PROCESSING:Nn(n,(r,i,s)=>{if(!(r.status===Ae.IDLE||r.status===Ae.PROCESSING_ERROR)){const c=()=>e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:s}),u=()=>document.hidden?c():setTimeout(c,32);r.status===Ae.PROCESSING_COMPLETE||r.status===Ae.PROCESSING_REVERT_ERROR?r.revert(Ms(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(u).catch(()=>{}):r.status===Ae.PROCESSING&&r.abortProcessing().then(u);return}r.status!==Ae.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:s},!0))}),PROCESS_ITEM:Nn(n,(r,i,s)=>{const l=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",Ae.PROCESSING).length===l){n.processingQueue.push({id:r.id,success:i,failure:s});return}if(r.status===Ae.PROCESSING)return;const u=()=>{const m=n.processingQueue.shift();if(!m)return;const{id:g,success:v,failure:b}=m,E=Fi(n.items,g);if(!E||E.archived){u();return}e("PROCESS_ITEM",{query:g,success:v,failure:b},!0)};r.onOnce("process-complete",()=>{i(an(r)),u();const m=n.options.server;if(n.options.instantUpload&&r.origin===Dt.LOCAL&&ji(m.remove)){const b=()=>{};r.origin=Dt.LIMBO,n.options.server.remove(r.source,b,b)}t("GET_ITEMS_BY_STATUS",Ae.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",m=>{s({error:m,file:an(r)}),u()});const p=n.options;r.process(GC(BC(p.server.url,p.server.process,p.name,{chunkTransferId:r.transferId,chunkServer:p.server.patch,chunkUploads:p.chunkUploads,chunkForce:p.chunkForce,chunkSize:p.chunkSize,chunkRetryDelays:p.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(m,g,v)=>{rr("PREPARE_OUTPUT",m,{query:t,item:r}).then(b=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:b}),g(b)}).catch(v)})}),RETRY_ITEM_PROCESSING:Nn(n,r=>{e("REQUEST_ITEM_PROCESSING",{query:r})}),REQUEST_REMOVE_ITEM:Nn(n,r=>{fm(t("GET_BEFORE_REMOVE_FILE"),an(r)).then(i=>{i&&e("REMOVE_ITEM",{query:r})})}),RELEASE_ITEM:Nn(n,r=>{r.release()}),REMOVE_ITEM:Nn(n,(r,i,s,l)=>{const c=()=>{const p=r.id;cm(n.items,p).archive(),e("DID_REMOVE_ITEM",{error:null,id:p,item:r}),Hd(e,n),i(an(r))},u=n.options.server;r.origin===Dt.LOCAL&&u&&ji(u.remove)&&l.remove!==!1?(e("DID_START_ITEM_REMOVE",{id:r.id}),u.remove(r.source,()=>c(),p=>{e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:gt("error",0,p,null),status:{main:ml(n.options.labelFileRemoveError)(p),sub:n.options.labelTapToRetry}})})):((l.revert&&r.origin!==Dt.LOCAL&&r.serverId!==null||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Ms(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),c())}),ABORT_ITEM_LOAD:Nn(n,r=>{r.abortLoad()}),ABORT_ITEM_PROCESSING:Nn(n,r=>{if(r.serverId){e("REVERT_ITEM_PROCESSING",{id:r.id});return}r.abortProcessing().then(()=>{n.options.instantUpload&&e("REMOVE_ITEM",{query:r.id})})}),REQUEST_REVERT_ITEM_PROCESSING:Nn(n,r=>{if(!n.options.instantUpload){e("REVERT_ITEM_PROCESSING",{query:r});return}const i=c=>{c&&e("REVERT_ITEM_PROCESSING",{query:r})},s=t("GET_BEFORE_REMOVE_FILE");if(!s)return i(!0);const l=s(an(r));if(l==null)return i(!0);if(typeof l=="boolean")return i(l);typeof l.then=="function"&&l.then(i)}),REVERT_ITEM_PROCESSING:Nn(n,r=>{r.revert(Ms(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(()=>{(n.options.instantUpload||qC(r))&&e("REMOVE_ITEM",{query:r.id})}).catch(()=>{})}),SET_OPTIONS:({options:r})=>{const i=Object.keys(r),s=ZC.filter(c=>i.includes(c));[...s,...Object.keys(r).filter(c=>!s.includes(c))].forEach(c=>{e(`SET_${dl(c,"_").toUpperCase()}`,{value:r[c]})})}}),ZC=["server"],Vd=e=>e,$r=e=>document.createElement(e),mt=(e,t)=>{let n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},pm=(e,t,n,r)=>{const i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},XC=(e,t,n,r,i,s)=>{const l=pm(e,t,n,i),c=pm(e,t,n,r);return["M",l.x,l.y,"A",n,n,0,s,0,c.x,c.y].join(" ")},KC=(e,t,n,r,i)=>{let s=1;return i>r&&i-r<=.5&&(s=0),r>i&&r-i>=.5&&(s=0),XC(e,t,n,Math.min(.9999,r)*360,Math.min(.9999,i)*360,s)},hm=Et({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:({root:e,props:t})=>{t.spin=!1,t.progress=0,t.opacity=0;const n=al("svg");e.ref.path=al("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(e.ref.path),e.ref.svg=n,e.appendChild(n)},write:({root:e,props:t})=>{if(t.opacity===0)return;t.align&&(e.element.dataset.align=t.align);const n=parseInt(Ct(e.ref.path,"stroke-width"),10),r=e.rect.element.width*.5;let i=0,s=0;t.spin?(i=0,s=.5):(i=0,s=t.progress);const l=KC(r,r,r-n,i,s);Ct(e.ref.path,"d",l),Ct(e.ref.path,"stroke-opacity",t.spin||t.progress>0?1:0)},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),gm=Et({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:({root:e,props:t})=>{e.element.innerHTML=(t.icon||"")+`<span>${t.label}</span>`,t.isDisabled=!1},write:({root:e,props:t})=>{const{isDisabled:n}=t,r=e.query("GET_DISABLED")||t.opacity===0;r&&!n?(t.isDisabled=!0,Ct(e.element,"disabled","disabled")):!r&&n&&(t.isDisabled=!1,e.element.removeAttribute("disabled"))}}),mm=(e,t=".",n=1e3,r={})=>{const{labelBytes:i="bytes",labelKilobytes:s="KB",labelMegabytes:l="MB",labelGigabytes:c="GB"}=r;e=Math.round(Math.abs(e));const u=n,p=n*n,m=n*n*n;return e<u?`${e} ${i}`:e<p?`${Math.floor(e/u)} ${s}`:e<m?`${vm(e/p,1,t)} ${l}`:`${vm(e/m,2,t)} ${c}`},vm=(e,t,n)=>e.toFixed(t).split(".").filter(r=>r!=="0").join(n),QC=({root:e,props:t})=>{const n=$r("span");n.className="filepond--file-info-main",Ct(n,"aria-hidden","true"),e.appendChild(n),e.ref.fileName=n;const r=$r("span");r.className="filepond--file-info-sub",e.appendChild(r),e.ref.fileSize=r,mt(r,e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),mt(n,Vd(e.query("GET_ITEM_NAME",t.id)))},Wd=({root:e,props:t})=>{mt(e.ref.fileSize,mm(e.query("GET_ITEM_SIZE",t.id),".",e.query("GET_FILE_SIZE_BASE"),e.query("GET_FILE_SIZE_LABELS",e.query))),mt(e.ref.fileName,Vd(e.query("GET_ITEM_NAME",t.id)))},bm=({root:e,props:t})=>{if(Oo(e.query("GET_ITEM_SIZE",t.id))){Wd({root:e,props:t});return}mt(e.ref.fileSize,e.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},JC=Et({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:qt({DID_LOAD_ITEM:Wd,DID_UPDATE_ITEM_META:Wd,DID_THROW_ITEM_LOAD_ERROR:bm,DID_THROW_ITEM_INVALID:bm}),didCreateView:e=>{ki("CREATE_VIEW",{...e,view:e})},create:QC,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),_m=e=>Math.round(e*100),eT=({root:e})=>{const t=$r("span");t.className="filepond--file-status-main",e.appendChild(t),e.ref.main=t;const n=$r("span");n.className="filepond--file-status-sub",e.appendChild(n),e.ref.sub=n,xm({root:e,action:{progress:null}})},xm=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_LOADING"):`${e.query("GET_LABEL_FILE_LOADING")} ${_m(t.progress)}%`;mt(e.ref.main,n),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},tT=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_PROCESSING"):`${e.query("GET_LABEL_FILE_PROCESSING")} ${_m(t.progress)}%`;mt(e.ref.main,n),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},nT=({root:e})=>{mt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING")),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},rT=({root:e})=>{mt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_ABORTED")),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_RETRY"))},iT=({root:e})=>{mt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),mt(e.ref.sub,e.query("GET_LABEL_TAP_TO_UNDO"))},Em=({root:e})=>{mt(e.ref.main,""),mt(e.ref.sub,"")},Ps=({root:e,action:t})=>{mt(e.ref.main,t.status.main),mt(e.ref.sub,t.status.sub)},oT=Et({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:qt({DID_LOAD_ITEM:Em,DID_REVERT_ITEM_PROCESSING:Em,DID_REQUEST_ITEM_PROCESSING:nT,DID_ABORT_ITEM_PROCESSING:rT,DID_COMPLETE_ITEM_PROCESSING:iT,DID_UPDATE_ITEM_PROCESS_PROGRESS:tT,DID_UPDATE_ITEM_LOAD_PROGRESS:xm,DID_THROW_ITEM_LOAD_ERROR:Ps,DID_THROW_ITEM_INVALID:Ps,DID_THROW_ITEM_PROCESSING_ERROR:Ps,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Ps,DID_THROW_ITEM_REMOVE_ERROR:Ps}),didCreateView:e=>{ki("CREATE_VIEW",{...e,view:e})},create:eT,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),qd={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Yd=[];dt(qd,e=>{Yd.push(e)});const xn=e=>{if(Zd(e)==="right")return 0;const t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},sT=e=>e.ref.buttonAbortItemLoad.rect.element.width,vl=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.height/4),aT=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.left/2),lT=e=>e.query("GET_STYLE_LOAD_INDICATOR_POSITION"),cT=e=>e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),Zd=e=>e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"),uT={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:lT},processProgressIndicator:{opacity:0,align:cT},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},wm={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:xn},status:{translateX:xn}},Xd={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},Do={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{translateX:xn,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:Zd},info:{translateX:xn},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:Zd},buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{opacity:1,translateX:xn}},DID_LOAD_ITEM:wm,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:xn},status:{translateX:xn}},DID_START_ITEM_PROCESSING:Xd,DID_REQUEST_ITEM_PROCESSING:Xd,DID_UPDATE_ITEM_PROCESS_PROGRESS:Xd,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:xn}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:xn},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:wm},dT=Et({create:({root:e})=>{e.element.innerHTML=e.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),fT=({root:e,props:t})=>{const n=Object.keys(qd).reduce((E,_)=>(E[_]={...qd[_]},E),{}),{id:r}=t,i=e.query("GET_ALLOW_REVERT"),s=e.query("GET_ALLOW_REMOVE"),l=e.query("GET_ALLOW_PROCESS"),c=e.query("GET_INSTANT_UPLOAD"),u=e.query("IS_ASYNC"),p=e.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");let m;u?l&&!i?m=E=>!/RevertItemProcessing/.test(E):!l&&i?m=E=>!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(E):!l&&!i&&(m=E=>!/Process/.test(E)):m=E=>!/Process/.test(E);const g=m?Yd.filter(m):Yd.concat();if(c&&i&&(n.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",n.RevertItemProcessing.icon="GET_ICON_REMOVE"),u&&!i){const E=Do.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=aT,E.info.translateY=vl,E.status.translateY=vl,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(u&&!l&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(E=>{Do[E].status.translateY=vl}),Do.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=sT),p&&i){n.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";const E=Do.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=xn,E.status.translateY=vl,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(n.RemoveItem.disabled=!0),dt(n,(E,_)=>{const w=e.createChildView(gm,{label:e.query(_.label),icon:e.query(_.icon),opacity:0});g.includes(E)&&e.appendChildView(w),_.disabled&&(w.element.setAttribute("disabled","disabled"),w.element.setAttribute("hidden","hidden")),w.element.dataset.align=e.query(`GET_STYLE_${_.align}`),w.element.classList.add(_.className),w.on("click",y=>{y.stopPropagation(),!_.disabled&&e.dispatch(_.action,{query:r})}),e.ref[`button${E}`]=w}),e.ref.processingCompleteIndicator=e.appendChildView(e.createChildView(dT)),e.ref.processingCompleteIndicator.element.dataset.align=e.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),e.ref.info=e.appendChildView(e.createChildView(JC,{id:r})),e.ref.status=e.appendChildView(e.createChildView(oT,{id:r}));const v=e.appendChildView(e.createChildView(hm,{opacity:0,align:e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));v.element.classList.add("filepond--load-indicator"),e.ref.loadProgressIndicator=v;const b=e.appendChildView(e.createChildView(hm,{opacity:0,align:e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));b.element.classList.add("filepond--process-indicator"),e.ref.processProgressIndicator=b,e.ref.activeStyles=[]},pT=({root:e,actions:t,props:n})=>{hT({root:e,actions:t,props:n});let r=t.concat().filter(i=>/^DID_/.test(i.type)).reverse().find(i=>Do[i.type]);if(r){e.ref.activeStyles=[];const i=Do[r.type];dt(uT,(s,l)=>{const c=e.ref[s];dt(l,(u,p)=>{const m=i[s]&&typeof i[s][u]<"u"?i[s][u]:p;e.ref.activeStyles.push({control:c,key:u,value:m})})})}e.ref.activeStyles.forEach(({control:i,key:s,value:l})=>{i[s]=typeof l=="function"?l(e):l})},hT=qt({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:({root:e,action:t})=>{e.ref.buttonAbortItemProcessing.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:({root:e,action:t})=>{e.ref.buttonAbortItemLoad.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:({root:e,action:t})=>{e.ref.buttonAbortItemRemoval.label=t.value},DID_REQUEST_ITEM_PROCESSING:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:({root:e})=>{e.ref.loadProgressIndicator.spin=!0,e.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:({root:e,action:t})=>{e.ref.loadProgressIndicator.spin=!1,e.ref.loadProgressIndicator.progress=t.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:({root:e,action:t})=>{e.ref.processProgressIndicator.spin=!1,e.ref.processProgressIndicator.progress=t.progress}}),gT=Et({create:fT,write:pT,didCreateView:e=>{ki("CREATE_VIEW",{...e,view:e})},name:"file"}),mT=Et({create:({root:e,props:t})=>{e.ref.fileName=$r("legend"),e.appendChild(e.ref.fileName),e.ref.file=e.appendChildView(e.createChildView(gT,{id:t.id})),e.ref.data=!1},ignoreRect:!0,write:qt({DID_LOAD_ITEM:({root:e,props:t})=>{mt(e.ref.fileName,Vd(e.query("GET_ITEM_NAME",t.id)))}}),didCreateView:e=>{ki("CREATE_VIEW",{...e,view:e})},tag:"fieldset",name:"file-wrapper"}),ym={type:"spring",damping:.6,mass:7},vT=({root:e,props:t})=>{[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:ym},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:ym},styles:["translateY"]}}].forEach(n=>{bT(e,n,t.name)}),e.element.classList.add(`filepond--${t.name}`),e.ref.scalable=null},bT=(e,t,n)=>{const r=Et({name:`panel-${t.name} filepond--${n}`,mixins:t.mixins,ignoreRectUpdate:!0}),i=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(i)},Cm=Et({name:"panel",read:({root:e,props:t})=>t.heightCurrent=e.ref.bottom.translateY,write:({root:e,props:t})=>{if((e.ref.scalable===null||t.scalable!==e.ref.scalable)&&(e.ref.scalable=Gg(t.scalable)?t.scalable:!0,e.element.dataset.scalable=e.ref.scalable),!t.height)return;const n=e.ref.top.rect.element,r=e.ref.bottom.rect.element,i=Math.max(n.height+r.height,t.height);e.ref.center.translateY=n.height,e.ref.center.scaleY=(i-n.height-r.height)/100,e.ref.bottom.translateY=i-r.height},create:vT,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),_T=e=>{const t=e.map(r=>r.id);let n;return{setIndex:r=>{n=r},getIndex:()=>n,getItemIndex:r=>t.indexOf(r.id)}},Tm={type:"spring",stiffness:.75,damping:.45,mass:10},Sm="spring",Im={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},xT=({root:e,props:t})=>{if(e.ref.handleClick=r=>e.dispatch("DID_ACTIVATE_ITEM",{id:t.id}),e.element.id=`filepond--item-${t.id}`,e.element.addEventListener("click",e.ref.handleClick),e.ref.container=e.appendChildView(e.createChildView(mT,{id:t.id})),e.ref.panel=e.appendChildView(e.createChildView(Cm,{name:"item-panel"})),e.ref.panel.height=null,t.markedForRemoval=!1,!e.query("GET_ALLOW_REORDER"))return;e.element.dataset.dragState="idle";const n=r=>{if(!r.isPrimary)return;let i=!1;const s={x:r.pageX,y:r.pageY};t.dragOrigin={x:e.translateX,y:e.translateY},t.dragCenter={x:r.offsetX,y:r.offsetY};const l=_T(e.query("GET_ACTIVE_ITEMS"));e.dispatch("DID_GRAB_ITEM",{id:t.id,dragState:l});const c=g=>{if(!g.isPrimary)return;g.stopPropagation(),g.preventDefault(),t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},t.dragOffset.x*t.dragOffset.x+t.dragOffset.y*t.dragOffset.y>16&&!i&&(i=!0,e.element.removeEventListener("click",e.ref.handleClick)),e.dispatch("DID_DRAG_ITEM",{id:t.id,dragState:l})},u=g=>{g.isPrimary&&(t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},m())},p=()=>{m()},m=()=>{document.removeEventListener("pointercancel",p),document.removeEventListener("pointermove",c),document.removeEventListener("pointerup",u),e.dispatch("DID_DROP_ITEM",{id:t.id,dragState:l}),i&&setTimeout(()=>e.element.addEventListener("click",e.ref.handleClick),0)};document.addEventListener("pointercancel",p),document.addEventListener("pointermove",c),document.addEventListener("pointerup",u)};e.element.addEventListener("pointerdown",n)},ET=qt({DID_UPDATE_PANEL_HEIGHT:({root:e,action:t})=>{e.height=t.height}}),wT=qt({DID_GRAB_ITEM:({root:e,props:t})=>{t.dragOrigin={x:e.translateX,y:e.translateY}},DID_DRAG_ITEM:({root:e})=>{e.element.dataset.dragState="drag"},DID_DROP_ITEM:({root:e,props:t})=>{t.dragOffset=null,t.dragOrigin=null,e.element.dataset.dragState="drop"}},({root:e,actions:t,props:n,shouldOptimize:r})=>{e.element.dataset.dragState==="drop"&&e.scaleX<=1&&(e.element.dataset.dragState="idle");let i=t.concat().filter(l=>/^DID_/.test(l.type)).reverse().find(l=>Im[l.type]);i&&i.type!==n.currentState&&(n.currentState=i.type,e.element.dataset.filepondItemState=Im[n.currentState]||"");const s=e.query("GET_ITEM_PANEL_ASPECT_RATIO")||e.query("GET_PANEL_ASPECT_RATIO");s?r||(e.height=e.rect.element.width*s):(ET({root:e,actions:t,props:n}),!e.height&&e.ref.container.rect.element.height>0&&(e.height=e.ref.container.rect.element.height)),r&&(e.ref.panel.height=null),e.ref.panel.height=e.height}),yT=Et({create:xT,write:wT,destroy:({root:e,props:t})=>{e.element.removeEventListener("click",e.ref.handleClick),e.dispatch("RELEASE_ITEM",{query:t.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:Sm,scaleY:Sm,translateX:Tm,translateY:Tm,opacity:{type:"tween",duration:150}}}});var Kd=(e,t)=>Math.max(1,Math.floor((e+1)/t));const Qd=(e,t,n)=>{if(!n)return;const r=e.rect.element.width,i=t.length;let s=null;if(i===0||n.top<t[0].rect.element.top)return-1;const c=t[0].rect.element,u=c.marginLeft+c.marginRight,p=c.width+u,m=Kd(r,p);if(m===1){for(let b=0;b<i;b++){const E=t[b],_=E.rect.outer.top+E.rect.element.height*.5;if(n.top<_)return b}return i}const g=c.marginTop+c.marginBottom,v=c.height+g;for(let b=0;b<i;b++){const E=b%m,_=Math.floor(b/m),w=E*p,y=_*v,S=y-c.marginTop,T=w+p,A=y+v+c.marginBottom;if(n.top<A&&n.top>S){if(n.left<T)return b;b!==i-1?s=b:s=null}}return s!==null?s:i},bl={height:0,width:0,get getHeight(){return this.height},set setHeight(e){(this.height===0||e===0)&&(this.height=e)},get getWidth(){return this.width},set setWidth(e){(this.width===0||e===0)&&(this.width=e)}},CT=({root:e})=>{Ct(e.element,"role","list"),e.ref.lastItemSpanwDate=Date.now()},TT=({root:e,action:t})=>{const{id:n,index:r,interactionMethod:i}=t;e.ref.addIndex=r;const s=Date.now();let l=s,c=1;if(i!==Pn.NONE){c=0;const u=e.query("GET_ITEM_INSERT_INTERVAL"),p=s-e.ref.lastItemSpanwDate;l=p<u?s+(u-p):s}e.ref.lastItemSpanwDate=l,e.appendChildView(e.createChildView(yT,{spawnDate:l,id:n,opacity:c,interactionMethod:i}),r)},Om=(e,t,n,r=0,i=1)=>{e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(e.opacity===0&&ST(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},ST=(e,t,n,r,i)=>{e.interactionMethod===Pn.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Pn.DROP?(e.translateX=null,e.translateX=t-r*20,e.translateY=null,e.translateY=n-i*10,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Pn.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Pn.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},IT=({root:e,action:t})=>{const{id:n}=t,r=e.childViews.find(i=>i.id===n);r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},Jd=e=>e.rect.element.height+e.rect.element.marginBottom*.5+e.rect.element.marginTop*.5,OT=e=>e.rect.element.width+e.rect.element.marginLeft*.5+e.rect.element.marginRight*.5,AT=qt({DID_ADD_ITEM:TT,DID_REMOVE_ITEM:IT,DID_DRAG_ITEM:({root:e,action:t})=>{const{id:n,dragState:r}=t,i=e.query("GET_ITEM",{id:n}),s=e.childViews.find(w=>w.id===n),l=e.childViews.length,c=r.getItemIndex(i);if(!s)return;const u={x:s.dragOrigin.x+s.dragOffset.x+s.dragCenter.x,y:s.dragOrigin.y+s.dragOffset.y+s.dragCenter.y},p=Jd(s),m=OT(s);let g=Math.floor(e.rect.outer.width/m);g>l&&(g=l);const v=Math.floor(l/g+1);bl.setHeight=p*v,bl.setWidth=m*g;var b={y:Math.floor(u.y/p),x:Math.floor(u.x/m),getGridIndex:function(){return u.y>bl.getHeight||u.y<0||u.x>bl.getWidth||u.x<0?c:this.y*g+this.x},getColIndex:function(){const y=e.query("GET_ACTIVE_ITEMS"),S=e.childViews.filter(L=>L.rect.element.height),T=y.map(L=>S.find(G=>G.id===L.id)),A=T.findIndex(L=>L===s),I=Jd(s),M=T.length;let R=M,D=0,k=0,Y=0;for(let L=0;L<M;L++)if(D=Jd(T[L]),Y=k,k=Y+D,u.y<k){if(A>L){if(u.y<Y+I){R=L;break}continue}R=L;break}return R}};const E=g>1?b.getGridIndex():b.getColIndex();e.dispatch("MOVE_ITEM",{query:s,index:E});const _=r.getIndex();if(_===void 0||_!==E){if(r.setIndex(E),_===void 0)return;e.dispatch("DID_REORDER_ITEMS",{items:e.query("GET_ACTIVE_ITEMS"),origin:c,target:E})}}}),$T=Et({create:CT,write:({root:e,props:t,actions:n,shouldOptimize:r})=>{AT({root:e,props:t,actions:n});const{dragCoordinates:i}=t,s=e.rect.element.width,l=e.childViews.filter(T=>T.rect.element.height),c=e.query("GET_ACTIVE_ITEMS").map(T=>l.find(A=>A.id===T.id)).filter(T=>T),u=i?Qd(e,c,i):null,p=e.ref.addIndex||null;e.ref.addIndex=null;let m=0,g=0,v=0;if(c.length===0)return;const b=c[0].rect.element,E=b.marginTop+b.marginBottom,_=b.marginLeft+b.marginRight,w=b.width+_,y=b.height+E,S=Kd(s,w);if(S===1){let T=0,A=0;c.forEach((I,M)=>{if(u){let k=M-u;k===-2?A=-E*.25:k===-1?A=-E*.75:k===0?A=E*.75:k===1?A=E*.25:A=0}r&&(I.translateX=null,I.translateY=null),I.markedForRemoval||Om(I,0,T+A);let D=(I.rect.element.height+E)*(I.markedForRemoval?I.opacity:1);T+=D})}else{let T=0,A=0;c.forEach((I,M)=>{M===u&&(m=1),M===p&&(v+=1),I.markedForRemoval&&I.opacity<.5&&(g-=1);const R=M+v+m+g,D=R%S,k=Math.floor(R/S),Y=D*w,L=k*y,G=Math.sign(Y-T),X=Math.sign(L-A);T=Y,A=L,!I.markedForRemoval&&(r&&(I.translateX=null,I.translateY=null),Om(I,Y,L,G,X))})}},tag:"ul",name:"list",didWriteView:({root:e})=>{e.childViews.filter(t=>t.markedForRemoval&&t.opacity===0&&t.resting).forEach(t=>{t._destroy(),e.removeChildView(t)})},filterFrameActionsForChild:(e,t)=>t.filter(n=>n.data&&n.data.id?e.id===n.data.id:!0),mixins:{apis:["dragCoordinates"]}}),DT=({root:e,props:t})=>{e.ref.list=e.appendChildView(e.createChildView($T)),t.dragCoordinates=null,t.overflowing=!1},MT=qt({DID_DRAG:({root:e,props:t,action:n})=>{e.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(t.dragCoordinates={left:n.position.scopeLeft-e.ref.list.rect.element.left,top:n.position.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},DID_END_DRAG:({props:e})=>{e.dragCoordinates=null}}),PT=Et({create:DT,write:({root:e,props:t,actions:n})=>{if(MT({root:e,props:t,actions:n}),e.ref.list.dragCoordinates=t.dragCoordinates,t.overflowing&&!t.overflow&&(t.overflowing=!1,e.element.dataset.state="",e.height=null),t.overflow){const r=Math.round(t.overflow);r!==e.height&&(t.overflowing=!0,e.element.dataset.state="overflow",e.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),or=(e,t,n,r="")=>{n?Ct(e,t,r):e.removeAttribute(t)},RT=e=>{if(!(!e||e.value==="")){try{e.value=""}catch{}if(e.value){const t=$r("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},NT=({root:e,props:t})=>{e.element.id=`filepond--browser-${t.id}`,Ct(e.element,"name",e.query("GET_NAME")),Ct(e.element,"aria-controls",`filepond--assistant-${t.id}`),Ct(e.element,"aria-labelledby",`filepond--drop-label-${t.id}`),Am({root:e,action:{value:e.query("GET_ACCEPTED_FILE_TYPES")}}),$m({root:e,action:{value:e.query("GET_ALLOW_MULTIPLE")}}),Dm({root:e,action:{value:e.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ef({root:e}),Mm({root:e,action:{value:e.query("GET_REQUIRED")}}),Pm({root:e,action:{value:e.query("GET_CAPTURE_METHOD")}}),e.ref.handleChange=n=>{if(!e.element.value)return;const r=Array.from(e.element.files).map(i=>(i._relativePath=i.webkitRelativePath,i));setTimeout(()=>{t.onload(r),RT(e.element)},250)},e.element.addEventListener("change",e.ref.handleChange)},Am=({root:e,action:t})=>{e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&or(e.element,"accept",!!t.value,t.value?t.value.join(","):"")},$m=({root:e,action:t})=>{or(e.element,"multiple",t.value)},Dm=({root:e,action:t})=>{or(e.element,"webkitdirectory",t.value)},ef=({root:e})=>{const t=e.query("GET_DISABLED"),n=e.query("GET_ALLOW_BROWSE"),r=t||!n;or(e.element,"disabled",r)},Mm=({root:e,action:t})=>{t.value?e.query("GET_TOTAL_ITEMS")===0&&or(e.element,"required",!0):or(e.element,"required",!1)},Pm=({root:e,action:t})=>{or(e.element,"capture",!!t.value,t.value===!0?"":t.value)},Rm=({root:e})=>{const{element:t}=e;if(e.query("GET_TOTAL_ITEMS")>0){or(t,"required",!1),or(t,"name",!1);const n=e.query("GET_ACTIVE_ITEMS");let r=!1;for(let i=0;i<n.length;i++)n[i].status===Ae.LOAD_ERROR&&(r=!0);e.element.setCustomValidity(r?e.query("GET_LABEL_INVALID_FIELD"):"")}else or(t,"name",!0,e.query("GET_NAME")),e.query("GET_CHECK_VALIDITY")&&t.setCustomValidity(""),e.query("GET_REQUIRED")&&or(t,"required",!0)},LT=Et({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:NT,destroy:({root:e})=>{e.element.removeEventListener("change",e.ref.handleChange)},write:qt({DID_LOAD_ITEM:Rm,DID_REMOVE_ITEM:Rm,DID_THROW_ITEM_INVALID:({root:e})=>{e.query("GET_CHECK_VALIDITY")&&e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:ef,DID_SET_ALLOW_BROWSE:ef,DID_SET_ALLOW_DIRECTORIES_ONLY:Dm,DID_SET_ALLOW_MULTIPLE:$m,DID_SET_ACCEPTED_FILE_TYPES:Am,DID_SET_CAPTURE_METHOD:Pm,DID_SET_REQUIRED:Mm})}),Nm={ENTER:13,SPACE:32},jT=({root:e,props:t})=>{const n=$r("label");Ct(n,"for",`filepond--browser-${t.id}`),Ct(n,"id",`filepond--drop-label-${t.id}`),e.ref.handleKeyDown=r=>{(r.keyCode===Nm.ENTER||r.keyCode===Nm.SPACE)&&(r.preventDefault(),e.ref.label.click())},e.ref.handleClick=r=>{r.target===n||n.contains(r.target)||e.ref.label.click()},n.addEventListener("keydown",e.ref.handleKeyDown),e.element.addEventListener("click",e.ref.handleClick),Lm(n,t.caption),e.appendChild(n),e.ref.label=n},Lm=(e,t)=>{e.innerHTML=t;const n=e.querySelector(".filepond--label-action");return n&&Ct(n,"tabindex","0"),t},kT=Et({name:"drop-label",ignoreRect:!0,create:jT,destroy:({root:e})=>{e.ref.label.addEventListener("keydown",e.ref.handleKeyDown),e.element.removeEventListener("click",e.ref.handleClick)},write:qt({DID_SET_LABEL_IDLE:({root:e,action:t})=>{Lm(e.ref.label,t.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),FT=Et({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),BT=({root:e})=>{const t=e.rect.element.width*.5,n=e.rect.element.height*.5;e.ref.blob=e.appendChildView(e.createChildView(FT,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:t,translateY:n}))},zT=({root:e,action:t})=>{if(!e.ref.blob){BT({root:e});return}e.ref.blob.translateX=t.position.scopeLeft,e.ref.blob.translateY=t.position.scopeTop,e.ref.blob.scaleX=1,e.ref.blob.scaleY=1,e.ref.blob.opacity=1},GT=({root:e})=>{e.ref.blob&&(e.ref.blob.opacity=0)},HT=({root:e})=>{e.ref.blob&&(e.ref.blob.scaleX=2.5,e.ref.blob.scaleY=2.5,e.ref.blob.opacity=0)},UT=({root:e,props:t,actions:n})=>{VT({root:e,props:t,actions:n});const{blob:r}=e.ref;n.length===0&&r&&r.opacity===0&&(e.removeChildView(r),e.ref.blob=null)},VT=qt({DID_DRAG:zT,DID_DROP:HT,DID_END_DRAG:GT}),WT=Et({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:UT}),jm=(e,t)=>{try{const n=new DataTransfer;t.forEach(r=>{r instanceof File?n.items.add(r):n.items.add(new File([r],r.name,{type:r.type}))}),e.files=n.files}catch{return!1}return!0},qT=({root:e})=>{e.ref.fields={};const t=document.createElement("legend");t.textContent="Files",e.element.appendChild(t)},_l=(e,t)=>e.ref.fields[t],tf=e=>{e.query("GET_ACTIVE_ITEMS").forEach(t=>{e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])})},km=({root:e})=>tf(e),YT=qt({DID_SET_DISABLED:({root:e})=>{e.element.disabled=e.query("GET_DISABLED")},DID_ADD_ITEM:({root:e,action:t})=>{const i=!(e.query("GET_ITEM",t.id).origin===Dt.LOCAL)&&e.query("SHOULD_UPDATE_FILE_INPUT"),s=$r("input");s.type=i?"file":"hidden",s.name=e.query("GET_NAME"),e.ref.fields[t.id]=s,tf(e)},DID_LOAD_ITEM:({root:e,action:t})=>{const n=_l(e,t.id);if(!n||(t.serverFileReference!==null&&(n.value=t.serverFileReference),!e.query("SHOULD_UPDATE_FILE_INPUT")))return;const r=e.query("GET_ITEM",t.id);jm(n,[r.file])},DID_REMOVE_ITEM:({root:e,action:t})=>{const n=_l(e,t.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete e.ref.fields[t.id])},DID_DEFINE_VALUE:({root:e,action:t})=>{const n=_l(e,t.id);n&&(t.value===null?n.removeAttribute("value"):n.type!="file"&&(n.value=t.value),tf(e))},DID_PREPARE_OUTPUT:({root:e,action:t})=>{e.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(()=>{const n=_l(e,t.id);n&&jm(n,[t.file])},0)},DID_REORDER_ITEMS:km,DID_SORT_ITEMS:km}),ZT=Et({tag:"fieldset",name:"data",create:qT,write:YT,ignoreRect:!0}),XT=e=>"getRootNode"in e?e.getRootNode():document,KT=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],QT=["css","csv","html","txt"],JT={zip:"zip|compressed",epub:"application/epub+zip"},Fm=(e="")=>(e=e.toLowerCase(),KT.includes(e)?"image/"+(e==="jpg"?"jpeg":e==="svg"?"svg+xml":e):QT.includes(e)?"text/"+e:JT[e]||""),nf=e=>new Promise((t,n)=>{const r=aS(e);if(r.length&&!eS(e))return t(r);tS(e).then(t)}),eS=e=>e.files?e.files.length>0:!1,tS=e=>new Promise((t,n)=>{const r=(e.items?Array.from(e.items):[]).filter(i=>nS(i)).map(i=>rS(i));if(!r.length){t(e.files?Array.from(e.files):[]);return}Promise.all(r).then(i=>{const s=[];i.forEach(l=>{s.push.apply(s,l)}),t(s.filter(l=>l).map(l=>(l._relativePath||(l._relativePath=l.webkitRelativePath),l)))}).catch(console.error)}),nS=e=>{if(Bm(e)){const t=rf(e);if(t)return t.isFile||t.isDirectory}return e.kind==="file"},rS=e=>new Promise((t,n)=>{if(sS(e)){iS(rf(e)).then(t).catch(n);return}t([e.getAsFile()])}),iS=e=>new Promise((t,n)=>{const r=[];let i=0,s=0;const l=()=>{s===0&&i===0&&t(r)},c=u=>{i++;const p=u.createReader(),m=()=>{p.readEntries(g=>{if(g.length===0){i--,l();return}g.forEach(v=>{v.isDirectory?c(v):(s++,v.file(b=>{const E=oS(b);v.fullPath&&(E._relativePath=v.fullPath),r.push(E),s--,l()}))}),m()},n)};m()};c(e)}),oS=e=>{if(e.type.length)return e;const t=e.lastModifiedDate,n=e.name,r=Fm(gl(e.name));return r.length&&(e=e.slice(0,e.size,r),e.name=n,e.lastModifiedDate=t),e},sS=e=>Bm(e)&&(rf(e)||{}).isDirectory,Bm=e=>"webkitGetAsEntry"in e,rf=e=>e.webkitGetAsEntry(),aS=e=>{let t=[];try{if(t=cS(e),t.length)return t;t=lS(e)}catch{}return t},lS=e=>{let t=e.getData("url");return typeof t=="string"&&t.length?[t]:[]},cS=e=>{let t=e.getData("text/html");if(typeof t=="string"&&t.length){const n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},xl=[],Hi=e=>({pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}),uS=(e,t,n)=>{const r=dS(t),i={element:e,filterElement:n,state:null,ondrop:()=>{},onenter:()=>{},ondrag:()=>{},onexit:()=>{},onload:()=>{},allowdrop:()=>{}};return i.destroy=r.addListener(i),i},dS=e=>{const t=xl.find(r=>r.element===e);if(t)return t;const n=fS(e);return xl.push(n),n},fS=e=>{const t=[],n={dragenter:hS,dragover:gS,dragleave:vS,drop:mS},r={};dt(n,(s,l)=>{r[s]=l(e,t),e.addEventListener(s,r[s],!1)});const i={element:e,addListener:s=>(t.push(s),()=>{t.splice(t.indexOf(s),1),t.length===0&&(xl.splice(xl.indexOf(i),1),dt(n,l=>{e.removeEventListener(l,r[l],!1)}))})};return i},pS=(e,t)=>("elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)),of=(e,t)=>{const n=XT(t),r=pS(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)};let zm=null;const El=(e,t)=>{try{e.dropEffect=t}catch{}},hS=(e,t)=>n=>{n.preventDefault(),zm=n.target,t.forEach(r=>{const{element:i,onenter:s}=r;of(n,i)&&(r.state="enter",s(Hi(n)))})},gS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;nf(r).then(i=>{let s=!1;t.some(l=>{const{filterElement:c,element:u,onenter:p,onexit:m,ondrag:g,allowdrop:v}=l;El(r,"copy");const b=v(i);if(!b){El(r,"none");return}if(of(n,u)){if(s=!0,l.state===null){l.state="enter",p(Hi(n));return}if(l.state="over",c&&!b){El(r,"none");return}g(Hi(n))}else c&&!s&&El(r,"none"),l.state&&(l.state=null,m(Hi(n)))})})},mS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;nf(r).then(i=>{t.forEach(s=>{const{filterElement:l,element:c,ondrop:u,onexit:p,allowdrop:m}=s;if(s.state=null,!(l&&!of(n,c))){if(!m(i))return p(Hi(n));u(Hi(n),i)}})})},vS=(e,t)=>n=>{zm===n.target&&t.forEach(r=>{const{onexit:i}=r;r.state=null,i(Hi(n))})},bS=(e,t,n)=>{e.classList.add("filepond--hopper");const{catchesDropsOnPage:r,requiresDropOnElement:i,filterItems:s=m=>m}=n,l=uS(e,r?document.documentElement:e,i);let c="",u="";l.allowdrop=m=>t(s(m)),l.ondrop=(m,g)=>{const v=s(g);if(!t(v)){p.ondragend(m);return}u="drag-drop",p.onload(v,m)},l.ondrag=m=>{p.ondrag(m)},l.onenter=m=>{u="drag-over",p.ondragstart(m)},l.onexit=m=>{u="drag-exit",p.ondragend(m)};const p={updateHopperState:()=>{c!==u&&(e.dataset.hopperState=u,c=u)},onload:()=>{},ondragstart:()=>{},ondrag:()=>{},ondragend:()=>{},destroy:()=>{l.destroy()}};return p};let sf=!1;const Mo=[],Gm=e=>{const t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||t.getAttribute("contenteditable")==="true")){let r=!1,i=t;for(;i!==document.body;){if(i.classList.contains("filepond--root")){r=!0;break}i=i.parentNode}if(!r)return}nf(e.clipboardData).then(r=>{r.length&&Mo.forEach(i=>i(r))})},_S=e=>{Mo.includes(e)||(Mo.push(e),!sf&&(sf=!0,document.addEventListener("paste",Gm)))},xS=e=>{kd(Mo,Mo.indexOf(e)),Mo.length===0&&(document.removeEventListener("paste",Gm),sf=!1)},ES=()=>{const e=n=>{t.onload(n)},t={destroy:()=>{xS(e)},onload:()=>{}};return _S(e),t},wS=({root:e,props:t})=>{e.element.id=`filepond--assistant-${t.id}`,Ct(e.element,"role","alert"),Ct(e.element,"aria-live","polite"),Ct(e.element,"aria-relevant","additions")};let Hm=null,Um=null;const af=[],wl=(e,t)=>{e.element.textContent=t},yS=e=>{e.element.textContent=""},Vm=(e,t,n)=>{const r=e.query("GET_TOTAL_ITEMS");wl(e,`${n} ${t}, ${r} ${r===1?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL")}`),clearTimeout(Um),Um=setTimeout(()=>{yS(e)},1500)},Wm=e=>e.element.parentNode.contains(document.activeElement),CS=({root:e,action:t})=>{if(!Wm(e))return;e.element.textContent="";const n=e.query("GET_ITEM",t.id);af.push(n.filename),clearTimeout(Hm),Hm=setTimeout(()=>{Vm(e,af.join(", "),e.query("GET_LABEL_FILE_ADDED")),af.length=0},750)},TS=({root:e,action:t})=>{if(!Wm(e))return;const n=t.item;Vm(e,n.filename,e.query("GET_LABEL_FILE_REMOVED"))},SS=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");wl(e,`${r} ${i}`)},qm=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_ABORTED");wl(e,`${r} ${i}`)},yl=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename;wl(e,`${t.status.main} ${r} ${t.status.sub}`)},IS=Et({create:wS,ignoreRect:!0,ignoreRectUpdate:!0,write:qt({DID_LOAD_ITEM:CS,DID_REMOVE_ITEM:TS,DID_COMPLETE_ITEM_PROCESSING:SS,DID_ABORT_ITEM_PROCESSING:qm,DID_REVERT_ITEM_PROCESSING:qm,DID_THROW_ITEM_REMOVE_ERROR:yl,DID_THROW_ITEM_LOAD_ERROR:yl,DID_THROW_ITEM_INVALID:yl,DID_THROW_ITEM_PROCESSING_ERROR:yl}),tag:"span",name:"assistant"}),Ym=(e,t="-")=>e.replace(new RegExp(`${t}.`,"g"),n=>n.charAt(1).toUpperCase()),Zm=(e,t=16,n=!0)=>{let r=Date.now(),i=null;return(...s)=>{clearTimeout(i);const l=Date.now()-r,c=()=>{r=Date.now(),e(...s)};l<t?n||(i=setTimeout(c,t-l)):c()}},OS=1e6,Cl=e=>e.preventDefault(),AS=({root:e,props:t})=>{const n=e.query("GET_ID");n&&(e.element.id=n);const r=e.query("GET_CLASS_NAME");r&&r.split(" ").filter(u=>u.length).forEach(u=>{e.element.classList.add(u)}),e.ref.label=e.appendChildView(e.createChildView(kT,{...t,translateY:null,caption:e.query("GET_LABEL_IDLE")})),e.ref.list=e.appendChildView(e.createChildView(PT,{translateY:null})),e.ref.panel=e.appendChildView(e.createChildView(Cm,{name:"panel-root"})),e.ref.assistant=e.appendChildView(e.createChildView(IS,{...t})),e.ref.data=e.appendChildView(e.createChildView(ZT,{...t})),e.ref.measure=$r("div"),e.ref.measure.style.height="100%",e.element.appendChild(e.ref.measure),e.ref.bounds=null,e.query("GET_STYLES").filter(u=>!Ar(u.value)).map(({name:u,value:p})=>{e.element.dataset[u]=p}),e.ref.widthPrevious=null,e.ref.widthUpdated=Zm(()=>{e.ref.updateHistory=[],e.dispatch("DID_RESIZE_ROOT")},250),e.ref.previousAspectRatio=null,e.ref.updateHistory=[];const i=window.matchMedia("(pointer: fine) and (hover: hover)").matches,s="PointerEvent"in window;e.query("GET_ALLOW_REORDER")&&s&&!i&&(e.element.addEventListener("touchmove",Cl,{passive:!1}),e.element.addEventListener("gesturestart",Cl));const l=e.query("GET_CREDITS");if(l.length===2){const u=document.createElement("a");u.className="filepond--credits",u.href=l[0],u.tabIndex=-1,u.target="_blank",u.rel="noopener noreferrer nofollow",u.textContent=l[1],e.element.appendChild(u),e.ref.credits=u}},$S=({root:e,props:t,actions:n})=>{if(NS({root:e,props:t,actions:n}),n.filter(M=>/^DID_SET_STYLE_/.test(M.type)).filter(M=>!Ar(M.data.value)).map(({type:M,data:R})=>{const D=Ym(M.substring(8).toLowerCase(),"_");e.element.dataset[D]=R.value,e.invalidateLayout()}),e.rect.element.hidden)return;e.rect.element.width!==e.ref.widthPrevious&&(e.ref.widthPrevious=e.rect.element.width,e.ref.widthUpdated());let r=e.ref.bounds;r||(r=e.ref.bounds=PS(e),e.element.removeChild(e.ref.measure),e.ref.measure=null);const{hopper:i,label:s,list:l,panel:c}=e.ref;i&&i.updateHopperState();const u=e.query("GET_PANEL_ASPECT_RATIO"),p=e.query("GET_ALLOW_MULTIPLE"),m=e.query("GET_TOTAL_ITEMS"),g=p?e.query("GET_MAX_FILES")||OS:1,v=m===g,b=n.find(M=>M.type==="DID_ADD_ITEM");if(v&&b){const M=b.data.interactionMethod;s.opacity=0,p?s.translateY=-40:M===Pn.API?s.translateX=40:M===Pn.BROWSE?s.translateY=40:s.translateY=30}else v||(s.opacity=1,s.translateX=0,s.translateY=0);const E=DS(e),_=MS(e),w=s.rect.element.height,y=!p||v?0:w,S=v?l.rect.element.marginTop:0,T=m===0?0:l.rect.element.marginBottom,A=y+S+_.visual+T,I=y+S+_.bounds+T;if(l.translateY=Math.max(0,y-l.rect.element.marginTop)-E.top,u){const M=e.rect.element.width,R=M*u;u!==e.ref.previousAspectRatio&&(e.ref.previousAspectRatio=u,e.ref.updateHistory=[]);const D=e.ref.updateHistory;D.push(M);const k=2;if(D.length>k*2){const L=D.length,G=L-10;let X=0;for(let N=L;N>=G;N--)if(D[N]===D[N-2]&&X++,X>=k)return}c.scalable=!1,c.height=R;const Y=R-y-(T-E.bottom)-(v?S:0);_.visual>Y?l.overflow=Y:l.overflow=null,e.height=R}else if(r.fixedHeight){c.scalable=!1;const M=r.fixedHeight-y-(T-E.bottom)-(v?S:0);_.visual>M?l.overflow=M:l.overflow=null}else if(r.cappedHeight){const M=A>=r.cappedHeight,R=Math.min(r.cappedHeight,A);c.scalable=!0,c.height=M?R:R-E.top-E.bottom;const D=R-y-(T-E.bottom)-(v?S:0);A>r.cappedHeight&&_.visual>D?l.overflow=D:l.overflow=null,e.height=Math.min(r.cappedHeight,I-E.top-E.bottom)}else{const M=m>0?E.top+E.bottom:0;c.scalable=!0,c.height=Math.max(w,A-M),e.height=Math.max(w,I-M)}e.ref.credits&&c.heightCurrent&&(e.ref.credits.style.transform=`translateY(${c.heightCurrent}px)`)},DS=e=>{const t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},MS=e=>{let t=0,n=0;const r=e.ref.list,i=r.childViews[0],s=i.childViews.filter(S=>S.rect.element.height),l=e.query("GET_ACTIVE_ITEMS").map(S=>s.find(T=>T.id===S.id)).filter(S=>S);if(l.length===0)return{visual:t,bounds:n};const c=i.rect.element.width,u=Qd(i,l,r.dragCoordinates),p=l[0].rect.element,m=p.marginTop+p.marginBottom,g=p.marginLeft+p.marginRight,v=p.width+g,b=p.height+m,E=typeof u<"u"&&u>=0?1:0,_=l.find(S=>S.markedForRemoval&&S.opacity<.45)?-1:0,w=l.length+E+_,y=Kd(c,v);return y===1?l.forEach(S=>{const T=S.rect.element.height+m;n+=T,t+=T*S.opacity}):(n=Math.ceil(w/y)*b,t=n),{visual:t,bounds:n}},PS=e=>{const t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:t===0?null:t}},lf=(e,t)=>{const n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS");let s=e.query("GET_MAX_FILES");const l=t.length;return!r&&l>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:gt("warning",0,"Max files")}),!0):(s=r?s:1,!r&&n?!1:Oo(s)&&i+l>s?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:gt("warning",0,"Max files")}),!0):!1)},RS=(e,t,n)=>{const r=e.childViews[0];return Qd(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Xm=e=>{const t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){const i=bS(e.element,s=>{const l=e.query("GET_BEFORE_DROP_FILE")||(()=>!0);return e.query("GET_DROP_VALIDATION")?s.every(u=>ki("ALLOW_HOPPER_ITEM",u,{query:e.query}).every(p=>p===!0)&&l(u)):!0},{filterItems:s=>{const l=e.query("GET_IGNORED_FILES");return s.filter(c=>Gi(c)?!l.includes(c.name.toLowerCase()):!0)},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=(s,l)=>{const u=e.ref.list.childViews[0].childViews.filter(m=>m.rect.element.height),p=e.query("GET_ACTIVE_ITEMS").map(m=>u.find(g=>g.id===m.id)).filter(m=>m);rr("ADD_ITEMS",s,{dispatch:e.dispatch}).then(m=>{if(lf(e,m))return!1;e.dispatch("ADD_ITEMS",{items:m,index:RS(e.ref.list,p,l),interactionMethod:Pn.DROP})}),e.dispatch("DID_DROP",{position:l}),e.dispatch("DID_END_DRAG",{position:l})},i.ondragstart=s=>{e.dispatch("DID_START_DRAG",{position:s})},i.ondrag=Zm(s=>{e.dispatch("DID_DRAG",{position:s})}),i.ondragend=s=>{e.dispatch("DID_END_DRAG",{position:s})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(WT))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Km=(e,t)=>{const n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(LT,{...t,onload:s=>{rr("ADD_ITEMS",s,{dispatch:e.dispatch}).then(l=>{if(lf(e,l))return!1;e.dispatch("ADD_ITEMS",{items:l,index:-1,interactionMethod:Pn.BROWSE})})}}),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Qm=e=>{const t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=ES(),e.ref.paster.onload=i=>{rr("ADD_ITEMS",i,{dispatch:e.dispatch}).then(s=>{if(lf(e,s))return!1;e.dispatch("ADD_ITEMS",{items:s,index:-1,interactionMethod:Pn.PASTE})})}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},NS=qt({DID_SET_ALLOW_BROWSE:({root:e,props:t})=>{Km(e,t)},DID_SET_ALLOW_DROP:({root:e})=>{Xm(e)},DID_SET_ALLOW_PASTE:({root:e})=>{Qm(e)},DID_SET_DISABLED:({root:e,props:t})=>{Xm(e),Qm(e),Km(e,t),e.query("GET_DISABLED")?e.element.dataset.disabled="disabled":e.element.removeAttribute("data-disabled")}}),LS=Et({name:"root",read:({root:e})=>{e.ref.measure&&(e.ref.measureHeight=e.ref.measure.offsetHeight)},create:AS,write:$S,destroy:({root:e})=>{e.ref.paster&&e.ref.paster.destroy(),e.ref.hopper&&e.ref.hopper.destroy(),e.element.removeEventListener("touchmove",Cl),e.element.removeEventListener("gesturestart",Cl)},mixins:{styles:["height"]}}),jS=(e={})=>{let t=null;const n=pl(),r=E8(iC(n),[yC,aC(n)],[YC,sC(n)]);r.dispatch("SET_OPTIONS",{options:e});const i=()=>{document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",i);let s=null,l=!1,c=!1,u=null,p=null;const m=()=>{l||(l=!0),clearTimeout(s),s=setTimeout(()=>{l=!1,u=null,p=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",m);const g=LS(r,{id:jd()});let v=!1,b=!1;const E={_read:()=>{l&&(p=window.innerWidth,u||(u=p),!c&&p!==u&&(r.dispatch("DID_START_RESIZE"),c=!0)),b&&v&&(v=g.element.offsetParent===null),!v&&(g._read(),b=g.rect.element.hidden)},_write:B=>{const W=r.processActionQueue().filter(J=>!/^SET_/.test(J.type));v&&!W.length||(S(W),v=g._write(B,W,c),uC(r.query("GET_ITEMS")),v&&r.processDispatchQueue())}},_=B=>W=>{const J={type:B};if(!W)return J;if(W.hasOwnProperty("error")&&(J.error=W.error?{...W.error}:null),W.status&&(J.status={...W.status}),W.file&&(J.output=W.file),W.source)J.file=W.source;else if(W.item||W.id){const q=W.item?W.item:r.query("GET_ITEM",W.id);J.file=q?an(q):null}return W.items&&(J.items=W.items.map(an)),/progress/.test(B)&&(J.progress=W.progress),W.hasOwnProperty("origin")&&W.hasOwnProperty("target")&&(J.origin=W.origin,J.target=W.target),J},w={DID_DESTROY:_("destroy"),DID_INIT:_("init"),DID_THROW_MAX_FILES:_("warning"),DID_INIT_ITEM:_("initfile"),DID_START_ITEM_LOAD:_("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:_("addfileprogress"),DID_LOAD_ITEM:_("addfile"),DID_THROW_ITEM_INVALID:[_("error"),_("addfile")],DID_THROW_ITEM_LOAD_ERROR:[_("error"),_("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[_("error"),_("removefile")],DID_PREPARE_OUTPUT:_("preparefile"),DID_START_ITEM_PROCESSING:_("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:_("processfileprogress"),DID_ABORT_ITEM_PROCESSING:_("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:_("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:_("processfiles"),DID_REVERT_ITEM_PROCESSING:_("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[_("error"),_("processfile")],DID_REMOVE_ITEM:_("removefile"),DID_UPDATE_ITEMS:_("updatefiles"),DID_ACTIVATE_ITEM:_("activatefile"),DID_REORDER_ITEMS:_("reorderfiles")},y=B=>{const W={pond:K,...B};delete W.type,g.element.dispatchEvent(new CustomEvent(`FilePond:${B.type}`,{detail:W,bubbles:!0,cancelable:!0,composed:!0}));const J=[];B.hasOwnProperty("error")&&J.push(B.error),B.hasOwnProperty("file")&&J.push(B.file);const q=["type","error","file"];Object.keys(B).filter(V=>!q.includes(V)).forEach(V=>J.push(B[V])),K.fire(B.type,...J);const U=r.query(`GET_ON${B.type.toUpperCase()}`);U&&U(...J)},S=B=>{B.length&&B.filter(W=>w[W.type]).forEach(W=>{const J=w[W.type];(Array.isArray(J)?J:[J]).forEach(q=>{W.type==="DID_INIT_ITEM"?y(q(W.data)):setTimeout(()=>{y(q(W.data))},0)})})},T=B=>r.dispatch("SET_OPTIONS",{options:B}),A=B=>r.query("GET_ACTIVE_ITEM",B),I=B=>new Promise((W,J)=>{r.dispatch("REQUEST_ITEM_PREPARE",{query:B,success:q=>{W(q)},failure:q=>{J(q)}})}),M=(B,W={})=>new Promise((J,q)=>{k([{source:B,options:W}],{index:W.index}).then(U=>J(U&&U[0])).catch(q)}),R=B=>B.file&&B.id,D=(B,W)=>(typeof B=="object"&&!R(B)&&!W&&(W=B,B=void 0),r.dispatch("REMOVE_ITEM",{...W,query:B}),r.query("GET_ACTIVE_ITEM",B)===null),k=(...B)=>new Promise((W,J)=>{const q=[],U={};if(ll(B[0]))q.push.apply(q,B[0]),Object.assign(U,B[1]||{});else{const V=B[B.length-1];typeof V=="object"&&!(V instanceof Blob)&&Object.assign(U,B.pop()),q.push(...B)}r.dispatch("ADD_ITEMS",{items:q,index:U.index,interactionMethod:Pn.API,success:W,failure:J})}),Y=()=>r.query("GET_ACTIVE_ITEMS"),L=B=>new Promise((W,J)=>{r.dispatch("REQUEST_ITEM_PROCESSING",{query:B,success:q=>{W(q)},failure:q=>{J(q)}})}),G=(...B)=>{const W=Array.isArray(B[0])?B[0]:B,J=W.length?W:Y();return Promise.all(J.map(I))},X=(...B)=>{const W=Array.isArray(B[0])?B[0]:B;if(!W.length){const J=Y().filter(q=>!(q.status===Ae.IDLE&&q.origin===Dt.LOCAL)&&q.status!==Ae.PROCESSING&&q.status!==Ae.PROCESSING_COMPLETE&&q.status!==Ae.PROCESSING_REVERT_ERROR);return Promise.all(J.map(L))}return Promise.all(W.map(L))},N=(...B)=>{const W=Array.isArray(B[0])?B[0]:B;let J;typeof W[W.length-1]=="object"?J=W.pop():Array.isArray(B[0])&&(J=B[1]);const q=Y();return W.length?W.map(V=>Li(V)?q[V]?q[V].id:null:V).filter(V=>V).map(V=>D(V,J)):Promise.all(q.map(V=>D(V,J)))},K={...fl(),...E,...oC(r,n),setOptions:T,addFile:M,addFiles:k,getFile:A,processFile:L,prepareFile:I,removeFile:D,moveFile:(B,W)=>r.dispatch("MOVE_ITEM",{query:B,index:W}),getFiles:Y,processFiles:X,removeFiles:N,prepareFiles:G,sort:B=>r.dispatch("SORT",{compare:B}),browse:()=>{var B=g.element.querySelector("input[type=file]");B&&B.click()},destroy:()=>{K.fire("destroy",g.element),r.dispatch("ABORT_ALL"),g._destroy(),window.removeEventListener("resize",m),document.removeEventListener("visibilitychange",i),r.dispatch("DID_DESTROY")},insertBefore:B=>Bg(g.element,B),insertAfter:B=>zg(g.element,B),appendTo:B=>B.appendChild(g.element),replaceElement:B=>{Bg(g.element,B),B.parentNode.removeChild(B),t=B},restoreElement:()=>{t&&(zg(t,g.element),g.element.parentNode.removeChild(g.element),t=null)},isAttachedTo:B=>g.element===B||t===B,element:{get:()=>g.element},status:{get:()=>r.query("GET_STATUS")}};return r.dispatch("DID_INIT"),ci(K)},Jm=(e={})=>{const t={};return dt(pl(),(r,i)=>{t[r]=i[0]}),jS({...t,...e})},kS=e=>e.charAt(0).toLowerCase()+e.slice(1),FS=e=>Ym(e.replace(/^data-/,"")),ev=(e,t)=>{dt(t,(n,r)=>{dt(e,(i,s)=>{const l=new RegExp(n);if(!l.test(i)||(delete e[i],r===!1))return;if(Yt(r)){e[r]=s;return}const u=r.group;$t(r)&&!e[u]&&(e[u]={}),e[u][kS(i.replace(l,""))]=s}),r.mapping&&ev(e[r.group],r.mapping)})},BS=(e,t={})=>{const n=[];dt(e.attributes,i=>{n.push(e.attributes[i])});const r=n.filter(i=>i.name).reduce((i,s)=>{const l=Ct(e,s.name);return i[FS(s.name)]=l===s.name?!0:l,i},{});return ev(r,t),r},zS=(e,t={})=>{const n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};ki("SET_ATTRIBUTE_TO_OPTION_MAP",n);const r={...t},i=BS(e.nodeName==="FIELDSET"?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach(l=>{$t(i[l])?($t(r[l])||(r[l]={}),Object.assign(r[l],i[l])):r[l]=i[l]}),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map(l=>({source:l.value,options:{type:l.dataset.type}})));const s=Jm(r);return e.files&&Array.from(e.files).forEach(l=>{s.addFile(l)}),s.replaceElement(e),s},GS=(...e)=>x8(e[0])?zS(...e):Jm(...e),HS=["fire","_read","_write"],tv=e=>{const t={};return Zg(e,t,HS),t},US=(e,t)=>e.replace(/(?:{([a-zA-Z]+)})/g,(n,r)=>t[r]),VS=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:(i,s)=>{},post:(i,s,l)=>{const c=jd();r.onmessage=u=>{u.data.id===c&&s(u.data.message)},r.postMessage({id:c,message:i},l)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},WS=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=i=>{n(i)},r.src=e}),nv=(e,t)=>{const n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},qS=e=>nv(e,e.name),rv=[],YS=e=>{if(rv.includes(e))return;rv.push(e);const t=e({addFilter:fC,utils:{Type:re,forin:dt,isString:Yt,isFile:Gi,toNaturalFileSize:mm,replaceInString:US,getExtensionFromFilename:gl,getFilenameWithoutExtension:am,guesstimateMimeType:Fm,getFileFromBlob:$o,getFilenameFromURL:As,createRoute:qt,createWorker:VS,createView:Et,createItemAPI:an,loadImage:WS,copyFile:qS,renameFile:nv,createBlob:nm,applyFilterChain:rr,text:mt,getNumericAspectRatioFromString:Qg},views:{fileActionButton:gm}});pC(t.options)},ZS=()=>Object.prototype.toString.call(window.operamini)==="[object OperaMini]",XS=()=>"Promise"in window,KS=()=>"slice"in Blob.prototype,QS=()=>"URL"in window&&"createObjectURL"in window.URL,JS=()=>"visibilityState"in document,eI=()=>"performance"in window,tI=()=>"supports"in(window.CSS||{}),nI=()=>/MSIE|Trident/.test(window.navigator.userAgent),cf=(()=>{const e=Rg()&&!ZS()&&JS()&&XS()&&KS()&&QS()&&eI()&&(tI()||nI());return()=>e})(),ui={apps:[]},rI="filepond",Ui=()=>{};let iv={},Tl=Ui,uf=Ui,ov=Ui,sv=Ui,df=Ui,av=Ui,lv=Ui;if(cf()){U8(()=>{ui.apps.forEach(n=>n._read())},n=>{ui.apps.forEach(r=>r._write(n))});const e=()=>{document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:cf,create:Tl,destroy:uf,parse:ov,find:sv,registerPlugin:df,setOptions:lv}})),document.removeEventListener("DOMContentLoaded",e)};document.readyState!=="loading"?setTimeout(()=>e(),0):document.addEventListener("DOMContentLoaded",e);const t=()=>dt(pl(),(n,r)=>{iv[n]=r[1]});iv={},t(),Tl=(...n)=>{const r=GS(...n);return r.on("destroy",uf),ui.apps.push(r),tv(r)},uf=n=>{const r=ui.apps.findIndex(i=>i.isAttachedTo(n));return r>=0?(ui.apps.splice(r,1)[0].restoreElement(),!0):!1},ov=n=>Array.from(n.querySelectorAll(`.${rI}`)).filter(s=>!ui.apps.find(l=>l.isAttachedTo(s))).map(s=>Tl(s)),sv=n=>{const r=ui.apps.find(i=>i.isAttachedTo(n));return r?tv(r):null},df=(...n)=>{n.forEach(YS),t()},av=()=>{const n={};return dt(pl(),(r,i)=>{n[r]=i[0]}),n},lv=n=>($t(n)&&(ui.apps.forEach(r=>{r.setOptions(n)}),hC(n)),av())}/*!
|
|
107
|
+
* react-filepond v7.1.3
|
|
104
108
|
* A handy FilePond adapter component for React
|
|
105
109
|
*
|
|
106
|
-
* Copyright (c)
|
|
110
|
+
* Copyright (c) 2024 PQINA
|
|
107
111
|
* https://pqina.nl/filepond
|
|
108
112
|
*
|
|
109
113
|
* Licensed under the MIT license.
|
|
110
|
-
*/const
|
|
114
|
+
*/const iI=cf(),oI=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"];class sI extends h.Component{constructor(t){super(t),this.allowFilesSync=!0}componentDidMount(){if(this._input=this._element.querySelector('input[type="file"]'),this._inputClone=this._input.cloneNode(),!iI)return;const t=Object.assign({},this.props);if(t.onupdatefiles){const n=t.onupdatefiles;t.onupdatefiles=r=>{this.allowFilesSync=!1,n(r)}}this._pond=Tl(this._input,t),Object.keys(this._pond).filter(n=>!oI.includes(n)).forEach(n=>{this[n]=this._pond[n]})}componentWillUnmount(){if(!this._pond)return;const t=document.createElement("div");t.append(this._pond.element),t.id="foo",this._pond.destroy(),this._pond=void 0,this._element.append(this._inputClone)}shouldComponentUpdate(){return this.allowFilesSync?!0:(this.allowFilesSync=!0,!1)}componentDidUpdate(){if(!this._pond)return;const t=Object.assign({},this.props);delete t.onupdatefiles,this._pond.setOptions(t)}render(){const{id:t,name:n,className:r,allowMultiple:i,required:s,captureMethod:l,acceptedFileTypes:c}=this.props;return h.createElement("div",{className:"filepond--wrapper",ref:u=>this._element=u},h.createElement("input",{type:"file",name:n,id:t,accept:c,multiple:i,required:s,className:r,capture:l}))}}/*!
|
|
111
115
|
* FilePondPluginImageExifOrientation 1.0.11
|
|
112
116
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
113
117
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
114
|
-
*/const
|
|
118
|
+
*/const aI=e=>/^image\/jpeg/.test(e.type),Vi={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},Wi=(e,t,n=!1)=>e.getUint16(t,n),cv=(e,t,n=!1)=>e.getUint32(t,n),lI=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=function(i){const s=new DataView(i.target.result);if(Wi(s,0)!==Vi.JPEG){t(-1);return}const l=s.byteLength;let c=2;for(;c<l;){const u=Wi(s,c);if(c+=2,u===Vi.APP1){if(cv(s,c+=2)!==Vi.EXIF)break;const p=Wi(s,c+=6)===Vi.TIFF;c+=cv(s,c+4,p);const m=Wi(s,c,p);c+=2;for(let g=0;g<m;g++)if(Wi(s,c+g*12,p)===Vi.Orientation){t(Wi(s,c+g*12+8,p));return}}else{if((u&Vi.Unknown)!==Vi.Unknown)break;c+=Wi(s,c)}}t(-1)},r.readAsArrayBuffer(e.slice(0,64*1024))}),cI=typeof window<"u"&&typeof window.document<"u",uI=()=>cI,dI="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=";let uv;const Sl=uI()?new Image:{};Sl.onload=()=>uv=Sl.naturalWidth>Sl.naturalHeight,Sl.src=dI;const fI=()=>uv,dv=({addFilter:e,utils:t})=>{const{Type:n,isFile:r}=t;return e("DID_LOAD_ITEM",(i,{query:s})=>new Promise((l,c)=>{const u=i.file;if(!r(u)||!aI(u)||!s("GET_ALLOW_IMAGE_EXIF_ORIENTATION")||!fI())return l(i);lI(u).then(p=>{i.setMetadata("exif",{orientation:p}),l(i)})})),{options:{allowImageExifOrientation:[!0,n.BOOLEAN]}}};typeof window<"u"&&typeof window.document<"u"&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:dv}));/*!
|
|
115
119
|
* FilePondPluginImageResize 2.0.10
|
|
116
120
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
117
121
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
118
|
-
*/const
|
|
122
|
+
*/const pI=e=>/^image/.test(e.type),hI=(e,t)=>{let n=new Image;n.onload=()=>{const r=n.naturalWidth,i=n.naturalHeight;n=null,t({width:r,height:i})},n.onerror=()=>t(null),n.src=e},fv=({addFilter:e,utils:t})=>{const{Type:n}=t;return e("DID_LOAD_ITEM",(r,{query:i})=>new Promise((s,l)=>{const c=r.file;if(!pI(c)||!i("GET_ALLOW_IMAGE_RESIZE"))return s(r);const u=i("GET_IMAGE_RESIZE_MODE"),p=i("GET_IMAGE_RESIZE_TARGET_WIDTH"),m=i("GET_IMAGE_RESIZE_TARGET_HEIGHT"),g=i("GET_IMAGE_RESIZE_UPSCALE");if(p===null&&m===null)return s(r);const v=p===null?m:p,b=m===null?v:m,E=URL.createObjectURL(c);hI(E,_=>{if(URL.revokeObjectURL(E),!_)return s(r);let{width:w,height:y}=_;const S=(r.getMetadata("exif")||{}).orientation||-1;if(S>=5&&S<=8&&([w,y]=[y,w]),w===v&&y===b)return s(r);if(!g){if(u==="cover"){if(w<=v||y<=b)return s(r)}else if(w<=v&&y<=v)return s(r)}r.setMetadata("resize",{mode:u,upscale:g,size:{width:v,height:b}}),s(r)})})),{options:{allowImageResize:[!0,n.BOOLEAN],imageResizeMode:["cover",n.STRING],imageResizeUpscale:[!0,n.BOOLEAN],imageResizeTargetWidth:[null,n.INT],imageResizeTargetHeight:[null,n.INT]}}};typeof window<"u"&&typeof window.document<"u"&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:fv}));/*!
|
|
119
123
|
* FilePondPluginImageTransform 3.8.7
|
|
120
124
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
121
125
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
122
|
-
*/const
|
|
126
|
+
*/const gI=e=>/^image/.test(e.type),mI=e=>e.substr(0,e.lastIndexOf("."))||e,vI={jpeg:"jpg","svg+xml":"svg"},bI=(e,t)=>{const n=mI(e),r=t.split("/")[1],i=vI[r]||r;return`${n}.${i}`},_I=e=>/jpeg|png|svg\+xml/.test(e)?e:"image/jpeg",xI=e=>/^image/.test(e.type),EI={1:()=>[1,0,0,1,0,0],2:e=>[-1,0,0,1,e,0],3:(e,t)=>[-1,0,0,-1,e,t],4:(e,t)=>[1,0,0,-1,0,t],5:()=>[0,1,1,0,0,0],6:(e,t)=>[0,1,-1,0,t,0],7:(e,t)=>[0,-1,-1,0,t,e],8:e=>[0,-1,1,0,0,e]},wI=(e,t,n)=>(n===-1&&(n=1),EI[n](e,t)),Rs=(e,t)=>({x:e,y:t}),yI=(e,t)=>e.x*t.x+e.y*t.y,pv=(e,t)=>Rs(e.x-t.x,e.y-t.y),CI=(e,t)=>yI(pv(e,t),pv(e,t)),hv=(e,t)=>Math.sqrt(CI(e,t)),gv=(e,t)=>{const n=e,r=1.5707963267948966,i=t,s=1.5707963267948966-t,l=Math.sin(r),c=Math.sin(i),u=Math.sin(s),p=Math.cos(s),m=n/l,g=m*c,v=m*u;return Rs(p*g,p*v)},TI=(e,t)=>{const n=e.width,r=e.height,i=gv(n,t),s=gv(r,t),l=Rs(e.x+Math.abs(i.x),e.y-Math.abs(i.y)),c=Rs(e.x+e.width+Math.abs(s.y),e.y+Math.abs(s.x)),u=Rs(e.x-Math.abs(s.y),e.y+e.height-Math.abs(s.x));return{width:hv(l,c),height:hv(l,u)}},mv=(e,t,n=0,r={x:.5,y:.5})=>{const i=r.x>.5?1-r.x:r.x,s=r.y>.5?1-r.y:r.y,l=i*2*e.width,c=s*2*e.height,u=TI(t,n);return Math.max(u.width/l,u.height/c)},vv=(e,t)=>{let n=e.width,r=n*t;r>e.height&&(r=e.height,n=r/t);const i=(e.width-n)*.5,s=(e.height-r)*.5;return{x:i,y:s,width:n,height:r}},bv=(e,t,n=1)=>{const r=e.height/e.width;let i=1,s=t,l=1,c=r;c>s&&(c=s,l=c/r);const u=Math.max(i/l,s/c),p=e.width/(n*u*l),m=p*t;return{width:p,height:m}},_v=e=>{e.width=1,e.height=1,e.getContext("2d").clearRect(0,0,1,1)},xv=e=>e&&(e.horizontal||e.vertical),SI=(e,t,n)=>{if(t<=1&&!xv(n))return e.width=e.naturalWidth,e.height=e.naturalHeight,e;const r=document.createElement("canvas"),i=e.naturalWidth,s=e.naturalHeight,l=t>=5&&t<=8;l?(r.width=s,r.height=i):(r.width=i,r.height=s);const c=r.getContext("2d");if(t&&c.transform.apply(c,wI(i,s,t)),xv(n)){const u=[1,0,0,1,0,0];(!l&&n.horizontal||l&n.vertical)&&(u[0]=-1,u[4]=i),(!l&&n.vertical||l&&n.horizontal)&&(u[3]=-1,u[5]=s),c.transform(...u)}return c.drawImage(e,0,0,i,s),r},II=(e,t,n={},r={})=>{const{canvasMemoryLimit:i,background:s=null}=r,l=n.zoom||1,c=SI(e,t,n.flip),u={width:c.width,height:c.height},p=n.aspectRatio||u.height/u.width;let m=bv(u,p,l);if(i){const T=m.width*m.height;if(T>i){const A=Math.sqrt(i)/Math.sqrt(T);u.width=Math.floor(u.width*A),u.height=Math.floor(u.height*A),m=bv(u,p,l)}}const g=document.createElement("canvas"),v={x:m.width*.5,y:m.height*.5},b={width:m.width,height:m.height},E=typeof n.scaleToFit>"u"||n.scaleToFit,_=l*mv(u,vv(b,p),n.rotation,E?n.center:{x:.5,y:.5});g.width=Math.round(m.width/_),g.height=Math.round(m.height/_),v.x/=_,v.y/=_;const w={x:v.x-u.width*(n.center?n.center.x:.5),y:v.y-u.height*(n.center?n.center.y:.5)},y=g.getContext("2d");s&&(y.fillStyle=s,y.fillRect(0,0,g.width,g.height)),y.translate(v.x,v.y),y.rotate(n.rotation||0),y.drawImage(c,w.x-v.x,w.y-v.y,u.width,u.height);const S=y.getImageData(0,0,g.width,g.height);return _v(g),S};typeof window<"u"&&typeof window.document<"u"&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var r=this.toDataURL(t,n).split(",")[1];setTimeout(function(){for(var i=atob(r),s=i.length,l=new Uint8Array(s),c=0;c<s;c++)l[c]=i.charCodeAt(c);e(new Blob([l],{type:t||"image/png"}))})}}));const OI=(e,t,n=null)=>new Promise(r=>{const i=n?n(e):e;Promise.resolve(i).then(s=>{s.toBlob(r,t.type,t.quality)})}),Il=(e,t)=>Ns(e.x*t,e.y*t),Ol=(e,t)=>Ns(e.x+t.x,e.y+t.y),Ev=e=>{const t=Math.sqrt(e.x*e.x+e.y*e.y);return t===0?{x:0,y:0}:Ns(e.x/t,e.y/t)},di=(e,t,n)=>{const r=Math.cos(t),i=Math.sin(t),s=Ns(e.x-n.x,e.y-n.y);return Ns(n.x+r*s.x-i*s.y,n.y+i*s.x+r*s.y)},Ns=(e=0,t=0)=>({x:e,y:t}),Pt=(e,t,n=1,r)=>{if(typeof e=="string")return parseFloat(e)*n;if(typeof e=="number")return e*(r?t[r]:Math.min(t.width,t.height))},qi=(e,t,n)=>{const r=e.borderStyle||e.lineStyle||"solid",i=e.backgroundColor||e.fontColor||"transparent",s=e.borderColor||e.lineColor||"transparent",l=Pt(e.borderWidth||e.lineWidth,t,n),c=e.lineCap||"round",u=e.lineJoin||"round",p=typeof r=="string"?"":r.map(g=>Pt(g,t,n)).join(","),m=e.opacity||1;return{"stroke-linecap":c,"stroke-linejoin":u,"stroke-width":l||0,"stroke-dasharray":p,stroke:s,fill:i,opacity:m}},Ln=e=>e!=null,Po=(e,t,n=1)=>{let r=Pt(e.x,t,n,"width")||Pt(e.left,t,n,"width"),i=Pt(e.y,t,n,"height")||Pt(e.top,t,n,"height"),s=Pt(e.width,t,n,"width"),l=Pt(e.height,t,n,"height"),c=Pt(e.right,t,n,"width"),u=Pt(e.bottom,t,n,"height");return Ln(i)||(Ln(l)&&Ln(u)?i=t.height-l-u:i=u),Ln(r)||(Ln(s)&&Ln(c)?r=t.width-s-c:r=c),Ln(s)||(Ln(r)&&Ln(c)?s=t.width-r-c:s=0),Ln(l)||(Ln(i)&&Ln(u)?l=t.height-i-u:l=0),{x:r||0,y:i||0,width:s||0,height:l||0}},AI=e=>e.map((t,n)=>`${n===0?"M":"L"} ${t.x} ${t.y}`).join(" "),vr=(e,t)=>Object.keys(t).forEach(n=>e.setAttribute(n,t[n])),$I="http://www.w3.org/2000/svg",Ro=(e,t)=>{const n=document.createElementNS($I,e);return t&&vr(n,t),n},DI=e=>vr(e,{...e.rect,...e.styles}),MI=e=>{const t=e.rect.x+e.rect.width*.5,n=e.rect.y+e.rect.height*.5,r=e.rect.width*.5,i=e.rect.height*.5;return vr(e,{cx:t,cy:n,rx:r,ry:i,...e.styles})},PI={contain:"xMidYMid meet",cover:"xMidYMid slice"},RI=(e,t)=>{vr(e,{...e.rect,...e.styles,preserveAspectRatio:PI[t.fit]||"none"})},NI={left:"start",center:"middle",right:"end"},LI=(e,t,n,r)=>{const i=Pt(t.fontSize,n,r),s=t.fontFamily||"sans-serif",l=t.fontWeight||"normal",c=NI[t.textAlign]||"start";vr(e,{...e.rect,...e.styles,"stroke-width":0,"font-weight":l,"font-size":i,"font-family":s,"text-anchor":c}),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},jI=(e,t,n,r)=>{vr(e,{...e.rect,...e.styles,fill:"none"});const i=e.childNodes[0],s=e.childNodes[1],l=e.childNodes[2],c=e.rect,u={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(vr(i,{x1:c.x,y1:c.y,x2:u.x,y2:u.y}),!t.lineDecoration)return;s.style.display="none",l.style.display="none";const p=Ev({x:u.x-c.x,y:u.y-c.y}),m=Pt(.05,n,r);if(t.lineDecoration.indexOf("arrow-begin")!==-1){const g=Il(p,m),v=Ol(c,g),b=di(c,2,v),E=di(c,-2,v);vr(s,{style:"display:block;",d:`M${b.x},${b.y} L${c.x},${c.y} L${E.x},${E.y}`})}if(t.lineDecoration.indexOf("arrow-end")!==-1){const g=Il(p,-m),v=Ol(u,g),b=di(u,2,v),E=di(u,-2,v);vr(l,{style:"display:block;",d:`M${b.x},${b.y} L${u.x},${u.y} L${E.x},${E.y}`})}},kI=(e,t,n,r)=>{vr(e,{...e.styles,fill:"none",d:AI(t.points.map(i=>({x:Pt(i.x,n,r,"width"),y:Pt(i.y,n,r,"height")})))})},Al=e=>t=>Ro(e,{id:t.id}),FI=e=>{const t=Ro("image",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return t.onload=()=>{t.setAttribute("opacity",e.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.src),t},BI=e=>{const t=Ro("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=Ro("line");t.appendChild(n);const r=Ro("path");t.appendChild(r);const i=Ro("path");return t.appendChild(i),t},zI={image:FI,rect:Al("rect"),ellipse:Al("ellipse"),text:Al("text"),path:Al("path"),line:BI},GI={rect:DI,ellipse:MI,image:RI,text:LI,path:kI,line:jI},HI=(e,t)=>zI[e](t),UI=(e,t,n,r,i)=>{t!=="path"&&(e.rect=Po(n,r,i)),e.styles=qi(n,r,i),GI[t](e,n,r,i)},wv=(e,t)=>e[1].zIndex>t[1].zIndex?1:e[1].zIndex<t[1].zIndex?-1:0,VI=(e,t={},n,r)=>new Promise(i=>{const{background:s=null}=r,l=new FileReader;l.onloadend=()=>{const c=l.result,u=document.createElement("div");u.style.cssText="position:absolute;pointer-events:none;width:0;height:0;visibility:hidden;",u.innerHTML=c;const p=u.querySelector("svg");document.body.appendChild(u);const m=p.getBBox();u.parentNode.removeChild(u);const g=u.querySelector("title"),v=p.getAttribute("viewBox")||"",b=p.getAttribute("width")||"",E=p.getAttribute("height")||"";let _=parseFloat(b)||null,w=parseFloat(E)||null;const y=(b.match(/[a-z]+/)||[])[0]||"",S=(E.match(/[a-z]+/)||[])[0]||"",T=v.split(" ").map(parseFloat),A=T.length?{x:T[0],y:T[1],width:T[2],height:T[3]}:m;let I=_??A.width,M=w??A.height;p.style.overflow="visible",p.setAttribute("width",I),p.setAttribute("height",M);let R="";if(n&&n.length){const fe={width:I,height:M};R=n.sort(wv).reduce((we,ne)=>{const le=HI(ne[0],ne[1]);return UI(le,ne[0],ne[1],fe),le.removeAttribute("id"),le.getAttribute("opacity")===1&&le.removeAttribute("opacity"),we+`
|
|
123
127
|
`+le.outerHTML+`
|
|
124
128
|
`},""),R=`
|
|
125
129
|
|
|
126
130
|
<g>${R.replace(/ /g," ")}</g>
|
|
127
131
|
|
|
128
|
-
`}const D=t.aspectRatio||M/I,k=I,
|
|
129
|
-
<svg width="${k}${y}" height="${
|
|
130
|
-
viewBox="0 0 ${k} ${
|
|
132
|
+
`}const D=t.aspectRatio||M/I,k=I,Y=k*D,L=typeof t.scaleToFit>"u"||t.scaleToFit,G=t.center?t.center.x:.5,X=t.center?t.center.y:.5,N=mv({width:I,height:M},vv({width:k,height:Y},D),t.rotation,L?{x:G,y:X}:{x:.5,y:.5}),K=t.zoom*N,B=t.rotation*(180/Math.PI),W={x:k*.5,y:Y*.5},J={x:W.x-I*G,y:W.y-M*X},q=[`rotate(${B} ${W.x} ${W.y})`,`translate(${W.x} ${W.y})`,`scale(${K})`,`translate(${-W.x} ${-W.y})`,`translate(${J.x} ${J.y})`],U=t.flip&&t.flip.horizontal,V=t.flip&&t.flip.vertical,ce=[`scale(${U?-1:1} ${V?-1:1})`,`translate(${U?-I:0} ${V?-M:0})`],de=`<?xml version="1.0" encoding="UTF-8"?>
|
|
133
|
+
<svg width="${k}${y}" height="${Y}${S}"
|
|
134
|
+
viewBox="0 0 ${k} ${Y}" ${s?'style="background:'+s+'" ':""}
|
|
131
135
|
preserveAspectRatio="xMinYMin"
|
|
132
136
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
133
137
|
xmlns="http://www.w3.org/2000/svg">
|
|
134
138
|
<!-- Generated by PQINA - https://pqina.nl/ -->
|
|
135
139
|
<title>${g?g.textContent:""}</title>
|
|
136
|
-
<g transform="${
|
|
137
|
-
<g transform="${
|
|
140
|
+
<g transform="${q.join(" ")}">
|
|
141
|
+
<g transform="${ce.join(" ")}">
|
|
138
142
|
${p.outerHTML}${R}
|
|
139
143
|
</g>
|
|
140
144
|
</g>
|
|
141
|
-
</svg>`;o(ue)},l.readAsText(e)}),BI=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},zI=()=>{const e={resize:m,filter:p},t=(g,v)=>(g.forEach(b=>{v=e[b.type](v,b.data)}),v),n=(g,v)=>{let b=g.transforms,E=null;if(b.forEach(_=>{_.type==="filter"&&(E=_)}),E){let _=null;b.forEach(w=>{w.type==="resize"&&(_=w)}),_&&(_.data.matrix=E.data,b=b.filter(w=>w.type!=="filter"))}v(t(b,g.imageData))};self.onmessage=g=>{n(g.data.message,v=>{self.postMessage({id:g.data.id,message:v},[v.data.buffer])})};const r=1,o=1,s=1;function l(g,v,b){const E=v[g]/255,_=v[g+1]/255,w=v[g+2]/255,y=v[g+3]/255,S=E*b[0]+_*b[1]+w*b[2]+y*b[3]+b[4],T=E*b[5]+_*b[6]+w*b[7]+y*b[8]+b[9],O=E*b[10]+_*b[11]+w*b[12]+y*b[13]+b[14],I=E*b[15]+_*b[16]+w*b[17]+y*b[18]+b[19],M=Math.max(0,S*I)+r*(1-I),R=Math.max(0,T*I)+o*(1-I),D=Math.max(0,O*I)+s*(1-I);v[g]=Math.max(0,Math.min(1,M))*255,v[g+1]=Math.max(0,Math.min(1,R))*255,v[g+2]=Math.max(0,Math.min(1,D))*255}const c=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function d(g){return self.JSON.stringify(g||[])===c}function p(g,v){if(!v||d(v))return g;const b=g.data,E=b.length,_=v[0],w=v[1],y=v[2],S=v[3],T=v[4],O=v[5],I=v[6],M=v[7],R=v[8],D=v[9],k=v[10],q=v[11],L=v[12],U=v[13],X=v[14],N=v[15],K=v[16],B=v[17],V=v[18],Q=v[19];let W=0,G=0,Y=0,de=0,ue=0,fe=0,we=0,ne=0,le=0,me=0,_e=0,pe=0;for(;W<E;W+=4)G=b[W]/255,Y=b[W+1]/255,de=b[W+2]/255,ue=b[W+3]/255,fe=G*_+Y*w+de*y+ue*S+T,we=G*O+Y*I+de*M+ue*R+D,ne=G*k+Y*q+de*L+ue*U+X,le=G*N+Y*K+de*B+ue*V+Q,me=Math.max(0,fe*le)+r*(1-le),_e=Math.max(0,we*le)+o*(1-le),pe=Math.max(0,ne*le)+s*(1-le),b[W]=Math.max(0,Math.min(1,me))*255,b[W+1]=Math.max(0,Math.min(1,_e))*255,b[W+2]=Math.max(0,Math.min(1,pe))*255;return g}function m(g,v){let{mode:b="contain",upscale:E=!1,width:_,height:w,matrix:y}=v;if(y=!y||d(y)?null:y,!_&&!w)return p(g,y);if(_===null?_=w:w===null&&(w=_),b!=="force"){let U=_/g.width,X=w/g.height,N=1;if(b==="cover"?N=Math.max(U,X):b==="contain"&&(N=Math.min(U,X)),N>1&&E===!1)return p(g,y);_=g.width*N,w=g.height*N}const S=g.width,T=g.height,O=Math.round(_),I=Math.round(w),M=g.data,R=new Uint8ClampedArray(O*I*4),D=S/O,k=T/I,q=Math.ceil(D*.5),L=Math.ceil(k*.5);for(let U=0;U<I;U++)for(let X=0;X<O;X++){let N=(X+U*O)*4,K=0,B=0,V=0,Q=0,W=0,G=0,Y=0,de=(U+.5)*k;for(let ue=Math.floor(U*k);ue<(U+1)*k;ue++){let fe=Math.abs(de-(ue+.5))/L,we=(X+.5)*D,ne=fe*fe;for(let le=Math.floor(X*D);le<(X+1)*D;le++){let me=Math.abs(we-(le+.5))/q,_e=Math.sqrt(ne+me*me);if(_e>=-1&&_e<=1&&(K=2*_e*_e*_e-3*_e*_e+1,K>0)){me=4*(le+ue*S);let pe=M[me+3];Y+=K*pe,V+=K,pe<255&&(K=K*pe/250),Q+=K*M[me],W+=K*M[me+1],G+=K*M[me+2],B+=K}}}R[N]=Q/B,R[N+1]=W/B,R[N+2]=G/B,R[N+3]=Y/V,y&&l(N,R,y)}return{data:R,width:O,height:I}}},GI=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;const n=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,n);const r=e.getUint16(t,n);t+=2;for(let o=0;o<r;o++)if(e.getUint16(t+o*12,n)===274)return e.setUint16(t+o*12+8,1,n),!0;return!1},UI=e=>{const t=new DataView(e);if(t.getUint16(0)!==65496)return null;let n=2,r,o,s=!1;for(;n<t.byteLength&&(r=t.getUint16(n,!1),o=t.getUint16(n+2,!1)+2,!(!(r>=65504&&r<=65519||r===65534)||(s||(s=GI(t,n)),n+o>t.byteLength)));)n+=o;return e.slice(0,n)},HI=e=>new Promise(t=>{const n=new FileReader;n.onload=()=>t(UI(n.result)||null),n.readAsArrayBuffer(e.slice(0,256*1024))}),VI=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,WI=(e,t)=>{const n=VI();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},qI=()=>Math.random().toString(36).substr(2,9),YI=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n),o=[];return{transfer:()=>{},post:(s,l,c)=>{const d=qI();o[d]=l,r.onmessage=p=>{const m=o[p.data.id];m&&(m(p.data.message),delete o[p.data.id])},r.postMessage({id:d,message:s},c)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},ZI=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=o=>{n(o)},r.src=e}),XI=e=>e.reduce((t,n)=>t.then(r=>n().then(Array.prototype.concat.bind(r))),Promise.resolve([])),KI=(e,t)=>new Promise(n=>{const r={width:e.width,height:e.height},o=e.getContext("2d"),s=t.sort(Ev).map(l=>()=>new Promise(c=>{QI[l[0]](o,r,l[1],c)&&c()}));XI(s).then(()=>n(e))}),Ro=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},No=e=>{e.fill(),e.stroke(),e.globalAlpha=1},QI={rect:(e,t,n)=>{const r=Mo(n,t),o=Yi(n,t);return Ro(e,o),e.rect(r.x,r.y,r.width,r.height),No(e),!0},ellipse:(e,t,n)=>{const r=Mo(n,t),o=Yi(n,t);Ro(e,o);const s=r.x,l=r.y,c=r.width,d=r.height,p=.5522848,m=c/2*p,g=d/2*p,v=s+c,b=l+d,E=s+c/2,_=l+d/2;return e.moveTo(s,_),e.bezierCurveTo(s,_-g,E-m,l,E,l),e.bezierCurveTo(E+m,l,v,_-g,v,_),e.bezierCurveTo(v,_+g,E+m,b,E,b),e.bezierCurveTo(E-m,b,s,_+g,s,_),No(e),!0},image:(e,t,n,r)=>{const o=Mo(n,t),s=Yi(n,t);Ro(e,s);const l=new Image;new URL(n.src,window.location.href).origin!==window.location.origin&&(l.crossOrigin=""),l.onload=()=>{if(n.fit==="cover"){const d=o.width/o.height,p=d>1?l.width:l.height*d,m=d>1?l.width/d:l.height,g=l.width*.5-p*.5,v=l.height*.5-m*.5;e.drawImage(l,g,v,p,m,o.x,o.y,o.width,o.height)}else if(n.fit==="contain"){const d=Math.min(o.width/l.width,o.height/l.height),p=d*l.width,m=d*l.height,g=o.x+o.width*.5-p*.5,v=o.y+o.height*.5-m*.5;e.drawImage(l,0,0,l.width,l.height,g,v,p,m)}else e.drawImage(l,0,0,l.width,l.height,o.x,o.y,o.width,o.height);No(e),r()},l.src=n.src},text:(e,t,n)=>{const r=Mo(n,t),o=Yi(n,t);Ro(e,o);const s=Rt(n.fontSize,t),l=n.fontFamily||"sans-serif",c=n.fontWeight||"normal",d=n.textAlign||"left";return e.font=`${c} ${s}px ${l}`,e.textAlign=d,e.fillText(n.text,r.x,r.y),No(e),!0},line:(e,t,n)=>{const r=Mo(n,t),o=Yi(n,t);Ro(e,o),e.beginPath();const s={x:r.x,y:r.y},l={x:r.x+r.width,y:r.y+r.height};e.moveTo(s.x,s.y),e.lineTo(l.x,l.y);const c=xv({x:l.x-s.x,y:l.y-s.y}),d=.04*Math.min(t.width,t.height);if(n.lineDecoration.indexOf("arrow-begin")!==-1){const p=Al(c,d),m=Ol(s,p),g=di(s,2,m),v=di(s,-2,m);e.moveTo(g.x,g.y),e.lineTo(s.x,s.y),e.lineTo(v.x,v.y)}if(n.lineDecoration.indexOf("arrow-end")!==-1){const p=Al(c,-d),m=Ol(l,p),g=di(l,2,m),v=di(l,-2,m);e.moveTo(g.x,g.y),e.lineTo(l.x,l.y),e.lineTo(v.x,v.y)}return No(e),!0},path:(e,t,n)=>{const r=Yi(n,t);Ro(e,r),e.beginPath();const o=n.points.map(l=>({x:Rt(l.x,t,1,"width"),y:Rt(l.y,t,1,"height")}));e.moveTo(o[0].x,o[0].y);const s=o.length;for(let l=1;l<s;l++)e.lineTo(o[l].x,o[l].y);return No(e),!0}},JI=e=>{const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t},eA=(e,t,n={})=>new Promise((r,o)=>{if(!e||!hI(e))return o({status:"not an image file",file:e});const{stripImageHead:s,beforeCreateBlob:l,afterCreateBlob:c,canvasMemoryLimit:d}=n,{crop:p,size:m,filter:g,markup:v,output:b}=t,E=t.image&&t.image.orientation?Math.max(1,Math.min(8,t.image.orientation)):null,_=b&&b.quality,w=_===null?null:_/100,y=b&&b.type||null,S=b&&b.background||null,T=[];m&&(typeof m.width=="number"||typeof m.height=="number")&&T.push({type:"resize",data:m}),g&&g.length===20&&T.push({type:"filter",data:g});const O=R=>{const D=c?c(R):R;Promise.resolve(D).then(r)},I=(R,D)=>{const k=JI(R),q=v.length?KI(k,v):k;Promise.resolve(q).then(L=>{wI(L,D,l).then(U=>{if(bv(L),s)return O(U);HI(e).then(X=>{X!==null&&(U=new Blob([X,U.slice(20)],{type:U.type})),O(U)})}).catch(o)})};if(/svg/.test(e.type)&&y===null)return FI(e,p,v,{background:S}).then(R=>{r(WI(R,"image/svg+xml"))});const M=URL.createObjectURL(e);ZI(M).then(R=>{URL.revokeObjectURL(M);const D=EI(R,E,p,{canvasMemoryLimit:d,background:S}),k={quality:w,type:y||e.type};if(!T.length)return I(D,k);const q=YI(zI);q.post({transforms:T,imageData:D},L=>{I(BI(L),k),q.terminate()},[D.data.buffer])}).catch(o)}),tA=["x","y","left","top","right","bottom","width","height"],nA=e=>typeof e=="string"&&/%/.test(e)?parseFloat(e)/100:e,rA=e=>{const[t,n]=e,r=n.points?{}:tA.reduce((o,s)=>(o[s]=nA(n[s]),o),{});return[t,{zIndex:0,...n,...r}]},iA=e=>new Promise((t,n)=>{const r=new Image;r.src=URL.createObjectURL(e);const o=()=>{const l=r.naturalWidth,c=r.naturalHeight;l&&c&&(URL.revokeObjectURL(r.src),clearInterval(s),t({width:l,height:c}))};r.onerror=l=>{URL.revokeObjectURL(r.src),clearInterval(s),n(l)};const s=setInterval(o,1);o()});typeof window<"u"&&typeof window.document<"u"&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){const r=this;setTimeout(()=>{const o=r.toDataURL(t,n).split(",")[1],s=atob(o);let l=s.length;const c=new Uint8Array(l);for(;l--;)c[l]=s.charCodeAt(l);e(new Blob([c],{type:t||"image/png"}))})}}));const ff=typeof window<"u"&&typeof window.document<"u",oA=ff&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,wv=({addFilter:e,utils:t})=>{const{Type:n,forin:r,getFileFromBlob:o,isFile:s}=t,l=["crop","resize","filter","markup","output"],c=m=>(g,v,b)=>g(v,m?m(b):b),d=m=>m.aspectRatio===null&&m.rotation===0&&m.zoom===1&&m.center&&m.center.x===.5&&m.center.y===.5&&m.flip&&m.flip.horizontal===!1&&m.flip.vertical===!1;e("SHOULD_PREPARE_OUTPUT",(m,{query:g})=>new Promise(v=>{v(!g("IS_ASYNC"))}));const p=(m,g,v)=>new Promise(b=>{if(!m("GET_ALLOW_IMAGE_TRANSFORM")||v.archived||!s(g)||!cI(g))return b(!1);iA(g).then(()=>{const E=m("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(E){const _=E(g);if(_==null)return handleRevert(!0);if(typeof _=="boolean")return b(_);if(typeof _.then=="function")return _.then(b)}b(!0)}).catch(E=>{b(!1)})});return e("DID_CREATE_ITEM",(m,{query:g,dispatch:v})=>{g("GET_ALLOW_IMAGE_TRANSFORM")&&m.extend("requestPrepare",()=>new Promise((b,E)=>{v("REQUEST_PREPARE_OUTPUT",{query:m.id,item:m,success:b,failure:E},!0)}))}),e("PREPARE_OUTPUT",(m,{query:g,item:v})=>new Promise(b=>{p(g,m,v).then(E=>{if(!E)return b(m);const _=[];g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL")&&_.push(()=>new Promise(D=>{D({name:g("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:m})})),g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT")&&_.push((D,k,q)=>new Promise(L=>{D(k,q).then(U=>L({name:g("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:U}))}));const w=g("GET_IMAGE_TRANSFORM_VARIANTS")||{};r(w,(D,k)=>{const q=c(k);_.push((L,U,X)=>new Promise(N=>{q(L,U,X).then(K=>N({name:D,file:K}))}))});const y=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),S=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),T=y===null?null:y/100,O=g("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),I=g("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||l;v.setMetadata("output",{type:O,quality:T,client:I},!0);const M=(D,k)=>new Promise((q,L)=>{const U={...k};Object.keys(U).filter(Y=>Y!=="exif").forEach(Y=>{I.indexOf(Y)===-1&&delete U[Y]});const{resize:X,exif:N,output:K,crop:B,filter:V,markup:Q}=U,W={image:{orientation:N?N.orientation:null},output:K&&(K.type||typeof K.quality=="number"||K.background)?{type:K.type,quality:typeof K.quality=="number"?K.quality*100:null,background:K.background||g("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:X&&(X.size.width||X.size.height)?{mode:X.mode,upscale:X.upscale,...X.size}:void 0,crop:B&&!d(B)?{...B}:void 0,markup:Q&&Q.length?Q.map(rA):[],filter:V};if(W.output){const Y=K.type?K.type!==D.type:!1,de=/\/jpe?g$/.test(D.type),ue=K.quality!==null?de&&S==="always":!1;if(!!!(W.size||W.crop||W.filter||Y||ue))return q(D)}const G={beforeCreateBlob:g("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:g("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:g("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:g("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};eA(D,W,G).then(Y=>{const de=o(Y,fI(D.name,pI(Y.type)));q(de)}).catch(L)}),R=_.map(D=>D(M,m,v.getMetadata()));Promise.all(R).then(D=>{b(D.length===1&&D[0].name===null?D[0].file:D)})})})),{options:{allowImageTransform:[!0,n.BOOLEAN],imageTransformImageFilter:[null,n.FUNCTION],imageTransformOutputMimeType:[null,n.STRING],imageTransformOutputQuality:[null,n.INT],imageTransformOutputStripImageHead:[!0,n.BOOLEAN],imageTransformClientTransforms:[null,n.ARRAY],imageTransformOutputQualityMode:["always",n.STRING],imageTransformVariants:[null,n.OBJECT],imageTransformVariantsIncludeDefault:[!0,n.BOOLEAN],imageTransformVariantsDefaultName:[null,n.STRING],imageTransformVariantsIncludeOriginal:[!1,n.BOOLEAN],imageTransformVariantsOriginalName:["original_",n.STRING],imageTransformBeforeCreateBlob:[null,n.FUNCTION],imageTransformAfterCreateBlob:[null,n.FUNCTION],imageTransformCanvasMemoryLimit:[ff&&oA?4096*4096:null,n.INT],imageTransformCanvasBackgroundColor:[null,n.STRING]}}};ff&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:wv})),uf(dv,uv,wv);const yv=h.forwardRef(({onAddFile:e,onError:t,acceptedFormats:n,maxFileSize:r},o)=>{const s=h.useRef(null);h.useImperativeHandle(o,()=>({browse:()=>{var c;(c=s.current)==null||c.browse()}}));const l=(c,d)=>{var v,b;const{file:p,fileExtension:m,fileSize:g}=d;if(g>r){(v=s.current)==null||v.removeFiles(),t("The file is too big. Please make sure the file is below 5 MB.");return}if(!n.includes(m.toLowerCase())){(b=s.current)==null||b.removeFiles(),t("Looks like this is one of the very few formats we don’t support. Please try .png, .jpg, .gif.");return}e(p)};return u.jsx(eI,{ref:s,credits:!1,allowMultiple:!1,maxFiles:1,server:"/api",instantUpload:!1,allowProcess:!1,onaddfile:l})}),vt={"input-text-field--container":"_input-text-field--container_gu1u8_1","input-text-field--input":"_input-text-field--input_gu1u8_9",resizer:"_resizer_gu1u8_10","input-text-field--size-lg":"_input-text-field--size-lg_gu1u8_21","input-text-field--size-md":"_input-text-field--size-md_gu1u8_26","input-text-field--size-sm":"_input-text-field--size-sm_gu1u8_31","input-text-field--input-error":"_input-text-field--input-error_gu1u8_47","input-text-field--content":"_input-text-field--content_gu1u8_64","input-text-field--outlined":"_input-text-field--outlined_gu1u8_78","input-text-field--filled":"_input-text-field--filled_gu1u8_84","input-text-field--helper-text":"_input-text-field--helper-text_gu1u8_90","input-text-field--label-text":"_input-text-field--label-text_gu1u8_94","input-text-field--disabled":"_input-text-field--disabled_gu1u8_98","input-text-field--no-resize":"_input-text-field--no-resize_gu1u8_103","input-text-field--icon-container":"_input-text-field--icon-container_gu1u8_107","input-text-field--icon":"_input-text-field--icon_gu1u8_107","input-text-field--left-icon":"_input-text-field--left-icon_gu1u8_122","input-text-field--right-icon":"_input-text-field--right-icon_gu1u8_126"},sA=({autoResize:e,value:t,children:n})=>e?u.jsx("div",{className:vt.resizer,"data-replicated-value":t,children:n}):u.jsx(u.Fragment,{children:n}),Dr=h.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:o,variant:s="outlined",label:l,placeholder:c,helperText:d,leftIcon:p,leftIconTwo:m,rightIcon:g,rightIconTwo:v,rows:b=1,resize:E=!1,autoResize:_=!0,value:w,defaultValue:y,onChange:S,className:T,inputClassName:O,contentClassName:I,...M}=e,R=(L,U)=>{switch(U){case"lg":return u.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:vt["input-text-field--label-text"],children:L});default:case"md":return u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:vt["input-text-field--label-text"],children:L});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:vt["input-text-field--label-text"],children:L})}},[D,k]=h.useState(w??y??""),q=h.useCallback(L=>{S==null||S(L),k(L.target.value)},[S]);return h.useEffect(()=>{k(w??"")},[w]),u.jsxs("div",{className:se(vt["input-text-field--container"],o&&vt["input-text-field--disabled"],T),children:[l?R(l,n):null,u.jsxs("div",{className:se(vt["input-text-field--content"],vt[`input-text-field--size-${n}`],vt[`input-text-field--${s}`],r&&vt["input-text-field--input-error"],I),children:[p||m?u.jsxs("div",{className:se(vt["input-text-field--icon-container"],vt["input-text-field--left-icon"]),children:[p?u.jsx("span",{className:vt["input-text-field--icon"],children:p}):null,m?u.jsx("span",{className:se(vt["input-text-field--icon"]),children:m}):null]}):null,u.jsx(sA,{autoResize:_,value:D||(c??""),children:u.jsx("textarea",{ref:t,className:se(vt["input-text-field--input"],s==="filled"&&"bg--sand-200",o&&"cursor-not-allowed",!E&&vt["input-text-field--no-resize"],O),placeholder:c,disabled:o,rows:b,value:D,onChange:q,...M})}),g||v?u.jsxs("div",{className:se(vt["input-text-field--icon-container"],vt["input-text-field--right-icon"]),children:[g?u.jsx("span",{className:vt["input-text-field--icon"],children:g}):null,v?u.jsx("span",{className:se(vt["input-text-field--icon"]),children:v}):null]}):null]}),d?u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:vt["input-text-field--helper-text"],children:d}):null]})});Dr.displayName="TextFieldMultiline";const Zi={"empty-state":"_empty-state_5pkj5_1","empty-state-input-container":"_empty-state-input-container_5pkj5_12",illustration:"_illustration_5pkj5_18"},Cv=h.forwardRef(({isCard:e,onConnect:t,onUploadImage:n,...r},o)=>{const s=h.useRef(null),[l,c]=h.useState(""),d=["jpeg","svg","png","jpg","gif"],p=5*1024*1024,m=h.useCallback(b=>{c(""),n&&n(b)},[n]),g=h.useCallback(b=>{c(b)},[]),v=h.useCallback(()=>{var b;(b=s.current)==null||b.browse()},[]);return u.jsxs("div",{ref:o,className:Zi["empty-state"],...r,children:[u.jsx("div",{className:Zi.illustration,children:u.jsx(kx,{})}),u.jsx("div",{style:{display:"none"},children:u.jsx(yv,{ref:s,onAddFile:m,onError:g,acceptedFormats:d,maxFileSize:p})}),l&&u.jsx(Ce,{color:"red-500",children:l}),e?u.jsx(At,{variant:"text",size:"md",endIcon:u.jsx(Jx,{}),onClick:v,children:"Upload Image"}):u.jsxs(u.Fragment,{children:[u.jsx(At,{size:"md",endIcon:u.jsx(Bx,{}),onClick:v,children:"Upload Image"}),u.jsx(Ce,{color:"gray-700",size:"xs",children:"or connect URL"}),u.jsxs("div",{className:Zi["empty-state-input-container"],children:[u.jsx(Dr,{placeholder:"Insert image from URL",size:"md",rows:1,leftIcon:u.jsx(K0,{}),variant:"outlined",helperText:"Max. file size. 5 Mb",value:"image"}),u.jsx(At,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},children:"Connect"})]})]})]})});Cv.displayName="EmptyStateImage";const aA=()=>u.jsx("div",{className:Zi["empty-state"],children:u.jsx(Mx,{})}),lA=()=>u.jsxs("div",{className:Zi["empty-state"],children:[u.jsx(Lx,{}),u.jsx(Ce,{fontWeight:"bold",color:"gray-700",size:"xs",children:"Drop it like it’s hot!"})]}),cA=()=>u.jsxs(u.Fragment,{children:["Embed any video hosted on YouTube or Vimeo ",u.jsx("br",{}),"or Google Drive"]}),dA=({onConnect:e})=>{const[t,n]=h.useState(""),r=()=>{e&&e(t)};return u.jsxs("div",{className:Zi["empty-state"],children:[u.jsx(Rx,{}),u.jsxs("div",{className:Zi["empty-state-input-container"],children:[u.jsx(Dr,{placeholder:"Insert video from URL",size:"md",rows:1,autoResize:!0,leftIcon:u.jsx(K0,{}),helperText:u.jsx(cA,{}),variant:"outlined",value:t,onChange:o=>n(o.target.value)}),u.jsx(At,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},onClick:r,children:"Connect"})]})]})},uA=h.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:o,isCard:s}=e;let l;switch(n){case"text":l=u.jsx(aA,{});break;case"image":l=u.jsx(Cv,{onConnect:r,onUploadImage:o,isCard:s});break;case"video":l=u.jsx(dA,{onConnect:r});break;default:l=u.jsx(lA,{});break}return u.jsx("div",{ref:t,children:u.jsx("div",{children:l})})}),Dl=h.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:o,isCard:s}=e;return u.jsx(uA,{status:n,onConnect:r,onUploadImage:o,isCard:s,ref:t})});Dl.displayName="EmptyState";const Tv={heading:"_heading_k87kj_1","heading--hero":"_heading--hero_k87kj_7","heading--h1":"_heading--h1_k87kj_11","heading--h2":"_heading--h2_k87kj_16","heading--h3":"_heading--h3_k87kj_21","heading--h4":"_heading--h4_k87kj_26","heading--h5":"_heading--h5_k87kj_31","heading--h6":"_heading--h6_k87kj_36","heading--weight-bold":"_heading--weight-bold_k87kj_41","heading--weight-semibold":"_heading--weight-semibold_k87kj_45","heading--weight-regular":"_heading--weight-regular_k87kj_49"},fA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",hero:"h1"},pf=h.forwardRef((e,t)=>{const{variant:n="h1",fontWeight:r="bold",color:o="gray-1000",...s}=e,l=fA[n];return s.className=se(Tv.heading,Tv[`heading--${n}`],`text--weight-${r}`,`text--${o}`,s.className),u.jsx(l,{ref:t,...s})});pf.displayName="Heading";const Lo={"image-block":"_image-block_1yfej_1","image-container":"_image-container_1yfej_6",image:"_image_1yfej_1","image-description":"_image-description_1yfej_20","image-block-input-container":"_image-block-input-container_1yfej_27","image-block-instance-slot-container":"_image-block-instance-slot-container_1yfej_35","image-block-spinner":"_image-block-spinner_1yfej_42",rotation:"_rotation_1yfej_1"},Sv=h.forwardRef((e,t)=>{const{image:n,altProps:r,urlWithVariables:o,fileName:s,isUploading:l,saveTitle:c,onDeleteImage:d,connectImage:p,uploadImage:m,onUrlChange:g,...v}=e,[b,E]=h.useState(n),[_,w]=h.useState(s);h.useEffect(()=>{E(n)},[n]),h.useEffect(()=>{w(s)},[s]);const y=()=>{d&&d(),E("")},S=()=>u.jsxs(u.Fragment,{children:["Describe the purpose of the image. Leave empty if it’s purely decorative. ",u.jsx("br",{}),"Max. 100 characters"]});return u.jsx(ii,{...v,block:"image",ref:t,children:u.jsxs("div",{children:[u.jsxs("div",{className:Lo["image-block-instance-slot-container"],children:[u.jsx(za,{initialLabel:"Image",onSave:c}),o?u.jsxs("div",{children:[" ",u.jsx(Ce,{children:" The image to display will be determined based on the value of the "})," "]}):b?u.jsxs("div",{className:Lo["image-container"],children:[u.jsx("img",{src:b,alt:"",className:Lo.image,"data-testid":"block-image","aria-label":"Image"}),u.jsxs("div",{className:Lo["image-description"],children:[u.jsx(Ce,{color:"gray-1000",size:"xs",children:_||"Image file name"}),u.jsx(at,{size:"sm",onClick:y,variant:"ghost",children:u.jsx(Rd,{})})]})]}):l?u.jsx("div",{className:Lo["image-block-spinner"],children:u.jsx("span",{children:u.jsx(sa,{})})}):u.jsx(Dl,{status:"image",onConnect:p,onUploadImage:m})]}),u.jsx("div",{className:Lo["image-block-input-container"],children:u.jsx(Dr,{label:"Label",helperText:u.jsx(S,{}),placeholder:"Describe the image",rows:1,autoResize:!0,size:"md",variant:"filled",...r})})]})})});Sv.displayName="ImageBlock";const pA=30,hA=106,gA=h.forwardRef(({color:e="white",...t},n)=>u.jsxs("svg",{ref:n,width:hA,height:pA,role:"img",viewBox:"0 0 385 95",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.16684H12.5898V14.8949H0V2.16684Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.29525 2.16684C2.6965 2.16684 0 4.97167 0 8.48284C0 12.09 2.6965 14.8949 6.29525 14.8949C9.894 14.8949 12.5905 12.09 12.5905 8.48284C12.5905 4.97167 9.894 2.16684 6.29525 2.16684Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.29 64.9361C96.1503 64.9361 89.1925 57.4078 89.1925 47.2361C89.1925 37.0644 96.1503 29.4357 105.29 29.4357C114.436 29.4357 121.393 37.0644 121.393 47.2361C121.393 57.4078 114.436 64.9361 105.29 64.9361ZM131.419 3.05176e-05H121.369V30.6154C117.265 24.76 110.677 21.1129 102.815 21.1129C88.8658 21.1129 78.745 32.2884 78.745 47.2447C78.745 61.2642 87.6557 71.9712 100.092 73.2427C100.966 73.3096 101.837 73.3765 102.711 73.3765H102.815C103.383 73.3765 103.954 73.3431 104.529 73.3096C104.832 73.2761 105.134 73.2427 105.403 73.2092H105.47C106.072 73.1423 106.68 73.0419 107.285 72.9081C108.022 72.7742 108.731 72.5735 109.433 72.3727C110.143 72.1385 110.845 71.9043 111.517 71.6032C112.126 71.3355 112.731 71.0678 113.332 70.7667C113.403 70.7332 113.437 70.6998 113.504 70.6663C114.778 69.9637 115.988 69.1606 117.1 68.2238C117.668 67.7553 118.21 67.2534 118.747 66.7516C119.215 66.2831 119.688 65.7812 120.088 65.2459C120.562 64.7105 120.999 64.1417 121.369 63.5729C122.441 62.0338 123.319 60.3608 123.957 58.554L124.653 60.5683L124.65 60.5749L128.727 72.3861H138.754L131.419 52.2402V3.05176e-05Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M150.04 73.3943H159.417V22.5952H150.04V73.3943Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M154.723 1.87726C150.975 1.87726 148.161 4.77952 148.161 8.41266C148.161 12.1452 150.975 15.0474 154.723 15.0474C158.474 15.0474 161.288 12.1452 161.288 8.41266C161.288 4.77952 158.474 1.87726 154.723 1.87726Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M260.652 66.787C251.609 66.787 244.708 59.1913 244.708 48.9298C244.708 38.6718 251.609 30.9749 260.652 30.9749C269.695 30.9749 276.599 38.6718 276.599 48.9298C276.599 59.1913 269.695 66.787 260.652 66.787ZM260.655 22.5952C245.586 22.5952 234.402 33.842 234.402 48.9355C234.402 64.029 245.586 75.2758 260.655 75.2758C275.728 75.2758 286.909 64.029 286.909 48.9355C286.909 33.842 275.728 22.5952 260.655 22.5952Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M300.98 60.1891C297.284 60.1891 294.417 62.9912 294.417 66.7263C294.417 70.4645 297.284 73.3593 300.98 73.3593C304.676 73.3593 307.544 70.4645 307.544 66.7263C307.544 62.9912 304.676 60.1891 300.98 60.1891Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M336.085 67.4672C330.765 67.4672 326.987 65.3953 326.987 60.2663C326.987 55.6299 330.665 52.2758 340.247 52.2758C344.021 52.2758 348.282 52.7685 352.056 53.4602C351.186 60.0672 345.087 67.4672 336.085 67.4672ZM340.353 22.5952C326.414 22.5952 319.157 29.9952 318.67 40.3511H328.546C328.934 34.0377 333.287 30.5857 340.353 30.5857C347.517 30.5857 352.066 35.023 352.066 41.8325V45.9728C347.421 45.2844 343.352 44.8896 340.061 44.8896C325.352 44.8896 316.932 50.7104 316.932 60.8706C316.932 70.6394 324.385 75.2758 333.387 75.2758C341.419 75.2758 347.901 71.7226 352.066 66.003V74.2871H361.939V42.423C361.939 29.9952 353.811 22.5952 340.353 22.5952Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M377.862 15.0474C381.614 15.0474 384.425 12.1452 384.425 8.40912C384.425 4.77952 381.614 1.87726 377.862 1.87726C374.11 1.87726 371.298 4.77952 371.298 8.40912C371.298 12.1452 374.11 15.0474 377.862 15.0474Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M373.183 73.3943H382.56V22.5952H373.183V73.3943Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.4961 22.5952V73.3943H32.3938V32.6759H59.4802V73.3943H69.3778V22.5952H22.4961Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M211.41 47.6021C211.41 57.1636 204.45 64.2598 195.305 64.2598C186.159 64.2598 179.165 57.1636 179.165 47.6021C179.165 38.0738 186.159 30.8777 195.305 30.8777C204.45 30.8777 211.41 38.0738 211.41 47.6021ZM228.793 23.5714H221.474L228.793 23.5614L221.467 23.5714H218.77L214.211 36.6943V36.6877C213.538 34.9219 212.597 33.2562 211.487 31.757C211.386 31.5904 211.285 31.4571 211.185 31.3572C210.882 30.9574 210.579 30.5909 210.21 30.2245C209.974 29.8913 209.668 29.6248 209.369 29.3249C209.234 29.1251 209.029 28.9252 208.828 28.7919C208.458 28.4254 208.058 28.059 207.654 27.7258C207.553 27.6592 207.486 27.5925 207.385 27.5259C206.877 27.0928 206.343 26.693 205.805 26.3599C205.196 25.9601 204.594 25.5936 203.922 25.2605C203.35 24.9273 202.745 24.6608 202.14 24.3943C201.464 24.1277 200.795 23.8612 200.089 23.6613C199.581 23.4947 199.046 23.3615 198.508 23.2282C198.441 23.2282 198.337 23.1949 198.239 23.1616C198.004 23.1283 197.765 23.0616 197.53 23.0283C196.958 22.9284 196.323 22.8284 195.718 22.7618C194.776 22.6618 193.835 22.5952 192.856 22.5952C178.906 22.5952 168.785 33.3228 168.785 47.6152C168.785 61.9408 178.906 72.6684 192.658 72.6684C200.422 72.6684 207.116 69.1703 211.42 63.3067V70.7028C211.42 79.8645 204.762 85.8946 195.109 85.8946C187.043 85.8946 181.058 81.1305 180.083 74.6007H169.962C171.34 85.9946 181.828 94.0902 195.109 94.0902C210.24 94.0902 221.474 84.1622 221.474 69.2369V43.5906L228.793 23.5714Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.86945 73.3943H11.2458V22.5952H1.86945V73.3943Z",fill:e})]})),Iv="Dialog",[Av,uF]=Ft(Iv),[mA,ar]=Av(Iv),vA=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,c=h.useRef(null),d=h.useRef(null),[p=!1,m]=hn({prop:r,defaultProp:o,onChange:s});return h.createElement(mA,{scope:t,triggerRef:c,contentRef:d,contentId:Xn(),titleId:Xn(),descriptionId:Xn(),open:p,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(g=>!g),[m]),modal:l},n)},bA="DialogTrigger",_A=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ar(bA,n),s=et(t,o.triggerRef);return h.createElement(Pe.button,oe({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":gf(o.open)},r,{ref:s,onClick:Ee(e.onClick,o.onOpenToggle)}))}),Ov="DialogPortal",[xA,$v]=Av(Ov,{forceMount:void 0}),EA=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ar(Ov,t);return h.createElement(xA,{scope:t,forceMount:n},h.Children.map(r,l=>h.createElement(on,{present:n||s.open},h.createElement(_a,{asChild:!0,container:o},l))))},hf="DialogOverlay",wA=h.forwardRef((e,t)=>{const n=$v(hf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ar(hf,e.__scopeDialog);return s.modal?h.createElement(on,{present:r||s.open},h.createElement(yA,oe({},o,{ref:t}))):null}),yA=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ar(hf,n);return h.createElement(Ia,{as:Ii,allowPinchZoom:!0,shards:[o.contentRef]},h.createElement(Pe.div,oe({"data-state":gf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),jo="DialogContent",Dv=h.forwardRef((e,t)=>{const n=$v(jo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ar(jo,e.__scopeDialog);return h.createElement(on,{present:r||s.open},s.modal?h.createElement(CA,oe({},o,{ref:t})):h.createElement(TA,oe({},o,{ref:t})))}),CA=h.forwardRef((e,t)=>{const n=ar(jo,e.__scopeDialog),r=h.useRef(null),o=et(t,n.contentRef,r);return h.useEffect(()=>{const s=r.current;if(s)return _d(s)},[]),h.createElement(Mv,oe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())}))}),TA=h.forwardRef((e,t)=>{const n=ar(jo,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(Mv,oe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}}))}),Mv=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,c=ar(jo,n),d=h.useRef(null),p=et(t,d);return ed(),h.createElement(h.Fragment,null,h.createElement(rd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s},h.createElement(is,oe({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":gf(c.open)},l,{ref:p,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),Pv="DialogTitle",SA=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ar(Pv,n);return h.createElement(Pe.h2,oe({id:o.titleId},r,{ref:t}))}),Rv="DialogDescription",IA=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ar(Rv,n);return h.createElement(Pe.p,oe({id:o.descriptionId},r,{ref:t}))}),Nv="DialogClose",Lv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ar(Nv,n);return h.createElement(Pe.button,oe({type:"button"},r,{ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))}))});function gf(e){return e?"open":"closed"}const AA=vA,OA=_A,$A=EA,DA=wA,MA=Dv,jv=Lv,Mr={"modal--trigger":"_modal--trigger_1u07z_1","modal--content":"_modal--content_1u07z_2",contentShow:"_contentShow_1u07z_1","modal--children":"_modal--children_1u07z_23","modal--overlay":"_modal--overlay_1u07z_27",overlayShow:"_overlayShow_1u07z_1","modal--description":"_modal--description_1u07z_34","modal--close-icon":"_modal--close-icon_1u07z_40","modal--footer":"_modal--footer_1u07z_49","modal--buttons":"_modal--buttons_1u07z_56","modal--buttons-right":"_modal--buttons-right_1u07z_61"},PA=AA,RA=h.forwardRef(({className:e,...t},n)=>u.jsx(OA,{ref:n,className:se(Mr["modal--trigger"],e),...t})),kv=h.forwardRef((e,t)=>{const{title:n,description:r,closeIcon:o=!0,checkboxProps:s,leftButton:l,rightButton:c,className:d,children:p,...m}=e;return u.jsxs($A,{children:[u.jsx(DA,{className:Mr["modal--overlay"]}),u.jsxs(MA,{ref:t,className:Mr["modal--content"],...m,children:[o&&u.jsx(jv,{asChild:!0,children:u.jsx(at,{className:Mr["modal--close-icon"],variant:"ghost",color:"primary",size:"xs",children:u.jsx(u8,{})})}),u.jsxs("div",{className:Mr["modal--description"],children:[n&&(typeof n=="string"?u.jsx(pf,{variant:"h5",fontWeight:"bold",color:"gray-1000",children:n}):n),r&&(typeof r=="string"?u.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-1000",children:r}):r)]}),p&&u.jsx("div",{className:se(Mr["modal--children"],d),children:p}),u.jsxs("div",{className:Mr["modal--footer"],children:[s&&u.jsx(Os,{...s}),u.jsxs("div",{className:`${Mr["modal--buttons"]} ${s?"":Mr["modal--buttons-right"]}`,children:[l&&(o?u.jsx(At,{...l}):u.jsx(jv,{asChild:!0,children:u.jsx(At,{...l})})),c&&u.jsx(At,{...c})]})]})]})]})});kv.displayName="ModalContent";const Fv="Switch",[NA,hF]=Ft(Fv),[LA,jA]=NA(Fv),kA=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:l,disabled:c,value:d="on",onCheckedChange:p,...m}=e,[g,v]=h.useState(null),b=et(t,S=>v(S)),E=h.useRef(!1),_=g?!!g.closest("form"):!0,[w=!1,y]=hn({prop:o,defaultProp:s,onChange:p});return h.createElement(LA,{scope:n,checked:w,disabled:c},h.createElement(Pe.button,oe({type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":Bv(w),"data-disabled":c?"":void 0,disabled:c,value:d},m,{ref:b,onClick:Ee(e.onClick,S=>{y(T=>!T),_&&(E.current=S.isPropagationStopped(),E.current||S.stopPropagation())})})),_&&h.createElement(zA,{control:g,bubbles:!E.current,name:r,value:d,checked:w,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),FA="SwitchThumb",BA=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=jA(FA,n);return h.createElement(Pe.span,oe({"data-state":Bv(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),zA=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,s=h.useRef(null),l=Ru(n),c=ba(t);return h.useEffect(()=>{const d=s.current,p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(d,n),d.dispatchEvent(v)}},[l,n,r]),h.createElement("input",oe({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Bv(e){return e?"checked":"unchecked"}const GA=kA,UA=BA,js={"toggle--container":"_toggle--container_kp2m5_1",toggle:"_toggle_kp2m5_1","toggle--disabled":"_toggle--disabled_kp2m5_26","toggle--content":"_toggle--content_kp2m5_30","toggle--label":"_toggle--label_kp2m5_45"},zv=e=>{const{id:t,small:n,label:r}=e;return u.jsx("label",{htmlFor:t,className:js["toggle--label"],children:n?u.jsx(He,{size:"md",children:r}):u.jsx(Ce,{size:"sm",children:r})})},mf=h.forwardRef((e,t)=>{const{id:n,checked:r=!1,label:o,labelPosition:s="start",small:l=!1,required:c=!1,disabled:d,className:p,onCheckedChanged:m,...g}=e;return u.jsxs("div",{className:se(d?"cursor-not-allowed":"cursor-pointer",js["toggle--container"],p),children:[o&&s==="end"?u.jsx(zv,{id:n,small:l,label:o}):null,u.jsx(GA,{ref:t,id:n,className:se(js.toggle,d&&js["toggle--disabled"]),required:c,checked:r,disabled:d,onCheckedChange:m,...g,children:u.jsx(UA,{className:js["toggle--content"]})}),o&&s==="start"?u.jsx(zv,{id:n,small:l,label:o}):null]})});mf.displayName="Toggle";const Xt={"mail-block":"_mail-block_vqhat_1","mail-field-container":"_mail-field-container_vqhat_8","mail-field-container1":"_mail-field-container1_vqhat_9","input-wrapper":"_input-wrapper_vqhat_22","button-container":"_button-container_vqhat_26","mail-cc-button":"_mail-cc-button_vqhat_32","mail-selectors":"_mail-selectors_vqhat_39","mail-selector":"_mail-selector_vqhat_39","body-header":"_body-header_vqhat_48","mail-body":"_mail-body_vqhat_55"},Gv=h.forwardRef((e,t)=>{const{isHtmlMode:n,setIsHtmlMode:r,successSelectorProps:o,errorSelectorProps:s,destinationConfig:l,destinationError:c,destinationErrorText:d,ccConfig:p,ccError:m,ccErrorText:g,senderConfig:v,senderError:b,senderErrorText:E,subjectConfig:_,subjectError:w,subjectErrorText:y,replyToConfig:S,replyToError:T,replyToErrorText:O,bodyConfig:I,bodyError:M,bodyErrorText:R,onDeleteBlock:D,...k}=e,[q,L]=h.useState(!1);return u.jsx(ii,{block:"mail",onDeleteBlock:D,...k,ref:t,children:u.jsxs("div",{className:Xt["mail-block"],children:[u.jsxs("div",{className:Xt["mail-field-container1"],children:[u.jsx("div",{className:Xt["input-wrapper"],children:u.jsx(Dn,{...l,label:"Destination",error:c,helperText:c?d:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["button-container"],children:u.jsx(At,{variant:"outlined",onClick:()=>L(!q),size:"md",children:q?"- Remove CC":"+ Add cc"})})]}),q&&u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(Dn,{...p,label:"CC",error:m,helperText:m?g:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(Dn,{...v,label:"Sender name",error:b,helperText:b?E:"",placeholder:"Enter the name of sender",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(Dn,{..._,label:"Subject",error:w,helperText:w?y:"",placeholder:"Enter subject of email or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(Dn,{label:"Reply to",error:T,helperText:T?O:"",placeholder:"Enter an automated reply to",variant:"filled"})}),u.jsxs("div",{className:Xt["mail-field-container"],children:[u.jsxs("div",{className:Xt["body-header"],children:[u.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:Xt["input-text-field--label-text"],children:"Body"}),u.jsx("div",{className:Xt["html-toggle"],children:u.jsx(mf,{label:"HTML",labelPosition:"end",small:!0,checked:n,onCheckedChanged:r})})]}),u.jsx(Dr,{...I,placeholder:"Email body",error:M,helperText:M?R:"",rows:4,variant:"filled"})]}),u.jsx(Yr,{color:"sand-300",horizontalMargin:!1,verticalMargin:"xs"}),u.jsxs("div",{className:Xt["mail-selectors"],children:[u.jsxs("div",{className:Xt["mail-selector"],children:[u.jsx(Ce,{color:"gray-1000",size:"sm",children:"Success case"}),u.jsx(bs,{label:"Choose destination",...o})]}),u.jsxs("div",{className:Xt["mail-selector"],children:[u.jsx(Ce,{color:"gray-1000",size:"sm",children:"Error case"}),u.jsx(bs,{label:"Choose destination",...s})]})]})]})})});Gv.displayName="MailBlock";const _r={"multiple-values--container":"_multiple-values--container_gd40l_1","multiple-values--content":"_multiple-values--content_gd40l_7","multiple-values--outlined":"_multiple-values--outlined_gd40l_16","multiple-values--filled":"_multiple-values--filled_gd40l_22","multiple-values--error":"_multiple-values--error_gd40l_28","multiple-values--helper-text":"_multiple-values--helper-text_gd40l_32","multiple-values--label-text":"_multiple-values--label-text_gd40l_36","multiple-values--size-lg":"_multiple-values--size-lg_gd40l_46","multiple-values--size-md":"_multiple-values--size-md_gd40l_50","multiple-values--size-sm":"_multiple-values--size-sm_gd40l_54",EmptyTags:"_EmptyTags_gd40l_60",InputDisabled:"_InputDisabled_gd40l_64"};var vf={exports:{}},Ml={exports:{}},Ze={};/** @license React v16.13.1
|
|
145
|
+
</svg>`;i(de)},l.readAsText(e)}),WI=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},qI=()=>{const e={resize:m,filter:p},t=(g,v)=>(g.forEach(b=>{v=e[b.type](v,b.data)}),v),n=(g,v)=>{let b=g.transforms,E=null;if(b.forEach(_=>{_.type==="filter"&&(E=_)}),E){let _=null;b.forEach(w=>{w.type==="resize"&&(_=w)}),_&&(_.data.matrix=E.data,b=b.filter(w=>w.type!=="filter"))}v(t(b,g.imageData))};self.onmessage=g=>{n(g.data.message,v=>{self.postMessage({id:g.data.id,message:v},[v.data.buffer])})};const r=1,i=1,s=1;function l(g,v,b){const E=v[g]/255,_=v[g+1]/255,w=v[g+2]/255,y=v[g+3]/255,S=E*b[0]+_*b[1]+w*b[2]+y*b[3]+b[4],T=E*b[5]+_*b[6]+w*b[7]+y*b[8]+b[9],A=E*b[10]+_*b[11]+w*b[12]+y*b[13]+b[14],I=E*b[15]+_*b[16]+w*b[17]+y*b[18]+b[19],M=Math.max(0,S*I)+r*(1-I),R=Math.max(0,T*I)+i*(1-I),D=Math.max(0,A*I)+s*(1-I);v[g]=Math.max(0,Math.min(1,M))*255,v[g+1]=Math.max(0,Math.min(1,R))*255,v[g+2]=Math.max(0,Math.min(1,D))*255}const c=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function u(g){return self.JSON.stringify(g||[])===c}function p(g,v){if(!v||u(v))return g;const b=g.data,E=b.length,_=v[0],w=v[1],y=v[2],S=v[3],T=v[4],A=v[5],I=v[6],M=v[7],R=v[8],D=v[9],k=v[10],Y=v[11],L=v[12],G=v[13],X=v[14],N=v[15],K=v[16],B=v[17],W=v[18],J=v[19];let q=0,U=0,V=0,ce=0,de=0,fe=0,we=0,ne=0,le=0,ge=0,be=0,pe=0;for(;q<E;q+=4)U=b[q]/255,V=b[q+1]/255,ce=b[q+2]/255,de=b[q+3]/255,fe=U*_+V*w+ce*y+de*S+T,we=U*A+V*I+ce*M+de*R+D,ne=U*k+V*Y+ce*L+de*G+X,le=U*N+V*K+ce*B+de*W+J,ge=Math.max(0,fe*le)+r*(1-le),be=Math.max(0,we*le)+i*(1-le),pe=Math.max(0,ne*le)+s*(1-le),b[q]=Math.max(0,Math.min(1,ge))*255,b[q+1]=Math.max(0,Math.min(1,be))*255,b[q+2]=Math.max(0,Math.min(1,pe))*255;return g}function m(g,v){let{mode:b="contain",upscale:E=!1,width:_,height:w,matrix:y}=v;if(y=!y||u(y)?null:y,!_&&!w)return p(g,y);if(_===null?_=w:w===null&&(w=_),b!=="force"){let G=_/g.width,X=w/g.height,N=1;if(b==="cover"?N=Math.max(G,X):b==="contain"&&(N=Math.min(G,X)),N>1&&E===!1)return p(g,y);_=g.width*N,w=g.height*N}const S=g.width,T=g.height,A=Math.round(_),I=Math.round(w),M=g.data,R=new Uint8ClampedArray(A*I*4),D=S/A,k=T/I,Y=Math.ceil(D*.5),L=Math.ceil(k*.5);for(let G=0;G<I;G++)for(let X=0;X<A;X++){let N=(X+G*A)*4,K=0,B=0,W=0,J=0,q=0,U=0,V=0,ce=(G+.5)*k;for(let de=Math.floor(G*k);de<(G+1)*k;de++){let fe=Math.abs(ce-(de+.5))/L,we=(X+.5)*D,ne=fe*fe;for(let le=Math.floor(X*D);le<(X+1)*D;le++){let ge=Math.abs(we-(le+.5))/Y,be=Math.sqrt(ne+ge*ge);if(be>=-1&&be<=1&&(K=2*be*be*be-3*be*be+1,K>0)){ge=4*(le+de*S);let pe=M[ge+3];V+=K*pe,W+=K,pe<255&&(K=K*pe/250),J+=K*M[ge],q+=K*M[ge+1],U+=K*M[ge+2],B+=K}}}R[N]=J/B,R[N+1]=q/B,R[N+2]=U/B,R[N+3]=V/W,y&&l(N,R,y)}return{data:R,width:A,height:I}}},YI=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;const n=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,n);const r=e.getUint16(t,n);t+=2;for(let i=0;i<r;i++)if(e.getUint16(t+i*12,n)===274)return e.setUint16(t+i*12+8,1,n),!0;return!1},ZI=e=>{const t=new DataView(e);if(t.getUint16(0)!==65496)return null;let n=2,r,i,s=!1;for(;n<t.byteLength&&(r=t.getUint16(n,!1),i=t.getUint16(n+2,!1)+2,!(!(r>=65504&&r<=65519||r===65534)||(s||(s=YI(t,n)),n+i>t.byteLength)));)n+=i;return e.slice(0,n)},XI=e=>new Promise(t=>{const n=new FileReader;n.onload=()=>t(ZI(n.result)||null),n.readAsArrayBuffer(e.slice(0,256*1024))}),KI=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,QI=(e,t)=>{const n=KI();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},JI=()=>Math.random().toString(36).substr(2,9),eO=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n),i=[];return{transfer:()=>{},post:(s,l,c)=>{const u=JI();i[u]=l,r.onmessage=p=>{const m=i[p.data.id];m&&(m(p.data.message),delete i[p.data.id])},r.postMessage({id:u,message:s},c)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},tO=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=i=>{n(i)},r.src=e}),nO=e=>e.reduce((t,n)=>t.then(r=>n().then(Array.prototype.concat.bind(r))),Promise.resolve([])),rO=(e,t)=>new Promise(n=>{const r={width:e.width,height:e.height},i=e.getContext("2d"),s=t.sort(wv).map(l=>()=>new Promise(c=>{iO[l[0]](i,r,l[1],c)&&c()}));nO(s).then(()=>n(e))}),No=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},Lo=e=>{e.fill(),e.stroke(),e.globalAlpha=1},iO={rect:(e,t,n)=>{const r=Po(n,t),i=qi(n,t);return No(e,i),e.rect(r.x,r.y,r.width,r.height),Lo(e),!0},ellipse:(e,t,n)=>{const r=Po(n,t),i=qi(n,t);No(e,i);const s=r.x,l=r.y,c=r.width,u=r.height,p=.5522848,m=c/2*p,g=u/2*p,v=s+c,b=l+u,E=s+c/2,_=l+u/2;return e.moveTo(s,_),e.bezierCurveTo(s,_-g,E-m,l,E,l),e.bezierCurveTo(E+m,l,v,_-g,v,_),e.bezierCurveTo(v,_+g,E+m,b,E,b),e.bezierCurveTo(E-m,b,s,_+g,s,_),Lo(e),!0},image:(e,t,n,r)=>{const i=Po(n,t),s=qi(n,t);No(e,s);const l=new Image;new URL(n.src,window.location.href).origin!==window.location.origin&&(l.crossOrigin=""),l.onload=()=>{if(n.fit==="cover"){const u=i.width/i.height,p=u>1?l.width:l.height*u,m=u>1?l.width/u:l.height,g=l.width*.5-p*.5,v=l.height*.5-m*.5;e.drawImage(l,g,v,p,m,i.x,i.y,i.width,i.height)}else if(n.fit==="contain"){const u=Math.min(i.width/l.width,i.height/l.height),p=u*l.width,m=u*l.height,g=i.x+i.width*.5-p*.5,v=i.y+i.height*.5-m*.5;e.drawImage(l,0,0,l.width,l.height,g,v,p,m)}else e.drawImage(l,0,0,l.width,l.height,i.x,i.y,i.width,i.height);Lo(e),r()},l.src=n.src},text:(e,t,n)=>{const r=Po(n,t),i=qi(n,t);No(e,i);const s=Pt(n.fontSize,t),l=n.fontFamily||"sans-serif",c=n.fontWeight||"normal",u=n.textAlign||"left";return e.font=`${c} ${s}px ${l}`,e.textAlign=u,e.fillText(n.text,r.x,r.y),Lo(e),!0},line:(e,t,n)=>{const r=Po(n,t),i=qi(n,t);No(e,i),e.beginPath();const s={x:r.x,y:r.y},l={x:r.x+r.width,y:r.y+r.height};e.moveTo(s.x,s.y),e.lineTo(l.x,l.y);const c=Ev({x:l.x-s.x,y:l.y-s.y}),u=.04*Math.min(t.width,t.height);if(n.lineDecoration.indexOf("arrow-begin")!==-1){const p=Il(c,u),m=Ol(s,p),g=di(s,2,m),v=di(s,-2,m);e.moveTo(g.x,g.y),e.lineTo(s.x,s.y),e.lineTo(v.x,v.y)}if(n.lineDecoration.indexOf("arrow-end")!==-1){const p=Il(c,-u),m=Ol(l,p),g=di(l,2,m),v=di(l,-2,m);e.moveTo(g.x,g.y),e.lineTo(l.x,l.y),e.lineTo(v.x,v.y)}return Lo(e),!0},path:(e,t,n)=>{const r=qi(n,t);No(e,r),e.beginPath();const i=n.points.map(l=>({x:Pt(l.x,t,1,"width"),y:Pt(l.y,t,1,"height")}));e.moveTo(i[0].x,i[0].y);const s=i.length;for(let l=1;l<s;l++)e.lineTo(i[l].x,i[l].y);return Lo(e),!0}},oO=e=>{const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t},sO=(e,t,n={})=>new Promise((r,i)=>{if(!e||!xI(e))return i({status:"not an image file",file:e});const{stripImageHead:s,beforeCreateBlob:l,afterCreateBlob:c,canvasMemoryLimit:u}=n,{crop:p,size:m,filter:g,markup:v,output:b}=t,E=t.image&&t.image.orientation?Math.max(1,Math.min(8,t.image.orientation)):null,_=b&&b.quality,w=_===null?null:_/100,y=b&&b.type||null,S=b&&b.background||null,T=[];m&&(typeof m.width=="number"||typeof m.height=="number")&&T.push({type:"resize",data:m}),g&&g.length===20&&T.push({type:"filter",data:g});const A=R=>{const D=c?c(R):R;Promise.resolve(D).then(r)},I=(R,D)=>{const k=oO(R),Y=v.length?rO(k,v):k;Promise.resolve(Y).then(L=>{OI(L,D,l).then(G=>{if(_v(L),s)return A(G);XI(e).then(X=>{X!==null&&(G=new Blob([X,G.slice(20)],{type:G.type})),A(G)})}).catch(i)})};if(/svg/.test(e.type)&&y===null)return VI(e,p,v,{background:S}).then(R=>{r(QI(R,"image/svg+xml"))});const M=URL.createObjectURL(e);tO(M).then(R=>{URL.revokeObjectURL(M);const D=II(R,E,p,{canvasMemoryLimit:u,background:S}),k={quality:w,type:y||e.type};if(!T.length)return I(D,k);const Y=eO(qI);Y.post({transforms:T,imageData:D},L=>{I(WI(L),k),Y.terminate()},[D.data.buffer])}).catch(i)}),aO=["x","y","left","top","right","bottom","width","height"],lO=e=>typeof e=="string"&&/%/.test(e)?parseFloat(e)/100:e,cO=e=>{const[t,n]=e,r=n.points?{}:aO.reduce((i,s)=>(i[s]=lO(n[s]),i),{});return[t,{zIndex:0,...n,...r}]},uO=e=>new Promise((t,n)=>{const r=new Image;r.src=URL.createObjectURL(e);const i=()=>{const l=r.naturalWidth,c=r.naturalHeight;l&&c&&(URL.revokeObjectURL(r.src),clearInterval(s),t({width:l,height:c}))};r.onerror=l=>{URL.revokeObjectURL(r.src),clearInterval(s),n(l)};const s=setInterval(i,1);i()});typeof window<"u"&&typeof window.document<"u"&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){const r=this;setTimeout(()=>{const i=r.toDataURL(t,n).split(",")[1],s=atob(i);let l=s.length;const c=new Uint8Array(l);for(;l--;)c[l]=s.charCodeAt(l);e(new Blob([c],{type:t||"image/png"}))})}}));const ff=typeof window<"u"&&typeof window.document<"u",dO=ff&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,yv=({addFilter:e,utils:t})=>{const{Type:n,forin:r,getFileFromBlob:i,isFile:s}=t,l=["crop","resize","filter","markup","output"],c=m=>(g,v,b)=>g(v,m?m(b):b),u=m=>m.aspectRatio===null&&m.rotation===0&&m.zoom===1&&m.center&&m.center.x===.5&&m.center.y===.5&&m.flip&&m.flip.horizontal===!1&&m.flip.vertical===!1;e("SHOULD_PREPARE_OUTPUT",(m,{query:g})=>new Promise(v=>{v(!g("IS_ASYNC"))}));const p=(m,g,v)=>new Promise(b=>{if(!m("GET_ALLOW_IMAGE_TRANSFORM")||v.archived||!s(g)||!gI(g))return b(!1);uO(g).then(()=>{const E=m("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(E){const _=E(g);if(_==null)return handleRevert(!0);if(typeof _=="boolean")return b(_);if(typeof _.then=="function")return _.then(b)}b(!0)}).catch(E=>{b(!1)})});return e("DID_CREATE_ITEM",(m,{query:g,dispatch:v})=>{g("GET_ALLOW_IMAGE_TRANSFORM")&&m.extend("requestPrepare",()=>new Promise((b,E)=>{v("REQUEST_PREPARE_OUTPUT",{query:m.id,item:m,success:b,failure:E},!0)}))}),e("PREPARE_OUTPUT",(m,{query:g,item:v})=>new Promise(b=>{p(g,m,v).then(E=>{if(!E)return b(m);const _=[];g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL")&&_.push(()=>new Promise(D=>{D({name:g("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:m})})),g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT")&&_.push((D,k,Y)=>new Promise(L=>{D(k,Y).then(G=>L({name:g("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:G}))}));const w=g("GET_IMAGE_TRANSFORM_VARIANTS")||{};r(w,(D,k)=>{const Y=c(k);_.push((L,G,X)=>new Promise(N=>{Y(L,G,X).then(K=>N({name:D,file:K}))}))});const y=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),S=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),T=y===null?null:y/100,A=g("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),I=g("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||l;v.setMetadata("output",{type:A,quality:T,client:I},!0);const M=(D,k)=>new Promise((Y,L)=>{const G={...k};Object.keys(G).filter(V=>V!=="exif").forEach(V=>{I.indexOf(V)===-1&&delete G[V]});const{resize:X,exif:N,output:K,crop:B,filter:W,markup:J}=G,q={image:{orientation:N?N.orientation:null},output:K&&(K.type||typeof K.quality=="number"||K.background)?{type:K.type,quality:typeof K.quality=="number"?K.quality*100:null,background:K.background||g("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:X&&(X.size.width||X.size.height)?{mode:X.mode,upscale:X.upscale,...X.size}:void 0,crop:B&&!u(B)?{...B}:void 0,markup:J&&J.length?J.map(cO):[],filter:W};if(q.output){const V=K.type?K.type!==D.type:!1,ce=/\/jpe?g$/.test(D.type),de=K.quality!==null?ce&&S==="always":!1;if(!!!(q.size||q.crop||q.filter||V||de))return Y(D)}const U={beforeCreateBlob:g("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:g("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:g("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:g("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};sO(D,q,U).then(V=>{const ce=i(V,bI(D.name,_I(V.type)));Y(ce)}).catch(L)}),R=_.map(D=>D(M,m,v.getMetadata()));Promise.all(R).then(D=>{b(D.length===1&&D[0].name===null?D[0].file:D)})})})),{options:{allowImageTransform:[!0,n.BOOLEAN],imageTransformImageFilter:[null,n.FUNCTION],imageTransformOutputMimeType:[null,n.STRING],imageTransformOutputQuality:[null,n.INT],imageTransformOutputStripImageHead:[!0,n.BOOLEAN],imageTransformClientTransforms:[null,n.ARRAY],imageTransformOutputQualityMode:["always",n.STRING],imageTransformVariants:[null,n.OBJECT],imageTransformVariantsIncludeDefault:[!0,n.BOOLEAN],imageTransformVariantsDefaultName:[null,n.STRING],imageTransformVariantsIncludeOriginal:[!1,n.BOOLEAN],imageTransformVariantsOriginalName:["original_",n.STRING],imageTransformBeforeCreateBlob:[null,n.FUNCTION],imageTransformAfterCreateBlob:[null,n.FUNCTION],imageTransformCanvasMemoryLimit:[ff&&dO?4096*4096:null,n.INT],imageTransformCanvasBackgroundColor:[null,n.STRING]}}};ff&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:yv})),df(dv,fv,yv);const Cv=h.forwardRef(({onAddFile:e,onError:t,acceptedFormats:n,maxFileSize:r},i)=>{const s=h.useRef(null);h.useImperativeHandle(i,()=>({browse:()=>{var c;(c=s.current)==null||c.browse()}}));const l=(c,u)=>{var v,b;const{file:p,fileExtension:m,fileSize:g}=u;if(g>r){(v=s.current)==null||v.removeFiles(),t("The file is too big. Please make sure the file is below 5 MB.");return}if(!n.includes(m.toLowerCase())){(b=s.current)==null||b.removeFiles(),t("Looks like this is one of the very few formats we don’t support. Please try .png, .jpg, .gif.");return}e(p)};return d.jsx(sI,{ref:s,credits:!1,allowMultiple:!1,maxFiles:1,server:"/api",instantUpload:!1,allowProcess:!1,onaddfile:l})}),vt={"input-text-field--container":"_input-text-field--container_gu1u8_1","input-text-field--input":"_input-text-field--input_gu1u8_9",resizer:"_resizer_gu1u8_10","input-text-field--size-lg":"_input-text-field--size-lg_gu1u8_21","input-text-field--size-md":"_input-text-field--size-md_gu1u8_26","input-text-field--size-sm":"_input-text-field--size-sm_gu1u8_31","input-text-field--input-error":"_input-text-field--input-error_gu1u8_47","input-text-field--content":"_input-text-field--content_gu1u8_64","input-text-field--outlined":"_input-text-field--outlined_gu1u8_78","input-text-field--filled":"_input-text-field--filled_gu1u8_84","input-text-field--helper-text":"_input-text-field--helper-text_gu1u8_90","input-text-field--label-text":"_input-text-field--label-text_gu1u8_94","input-text-field--disabled":"_input-text-field--disabled_gu1u8_98","input-text-field--no-resize":"_input-text-field--no-resize_gu1u8_103","input-text-field--icon-container":"_input-text-field--icon-container_gu1u8_107","input-text-field--icon":"_input-text-field--icon_gu1u8_107","input-text-field--left-icon":"_input-text-field--left-icon_gu1u8_122","input-text-field--right-icon":"_input-text-field--right-icon_gu1u8_126"},fO=({autoResize:e,value:t,children:n})=>e?d.jsx("div",{className:vt.resizer,"data-replicated-value":t,children:n}):d.jsx(d.Fragment,{children:n}),Dr=h.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:s="outlined",label:l,placeholder:c,helperText:u,leftIcon:p,leftIconTwo:m,rightIcon:g,rightIconTwo:v,rows:b=1,resize:E=!1,autoResize:_=!0,value:w,defaultValue:y,onChange:S,className:T,inputClassName:A,contentClassName:I,...M}=e,R=(L,G)=>{switch(G){case"lg":return d.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:vt["input-text-field--label-text"],children:L});default:case"md":return d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:vt["input-text-field--label-text"],children:L});case"sm":return d.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:vt["input-text-field--label-text"],children:L})}},[D,k]=h.useState(w??y??""),Y=h.useCallback(L=>{S==null||S(L),k(L.target.value)},[S]);return h.useEffect(()=>{k(w??"")},[w]),d.jsxs("div",{className:ae(vt["input-text-field--container"],i&&vt["input-text-field--disabled"],T),children:[l?R(l,n):null,d.jsxs("div",{className:ae(vt["input-text-field--content"],vt[`input-text-field--size-${n}`],vt[`input-text-field--${s}`],r&&vt["input-text-field--input-error"],I),children:[p||m?d.jsxs("div",{className:ae(vt["input-text-field--icon-container"],vt["input-text-field--left-icon"]),children:[p?d.jsx("span",{className:vt["input-text-field--icon"],children:p}):null,m?d.jsx("span",{className:ae(vt["input-text-field--icon"]),children:m}):null]}):null,d.jsx(fO,{autoResize:_,value:D||(c??""),children:d.jsx("textarea",{ref:t,className:ae(vt["input-text-field--input"],s==="filled"&&"bg--sand-200",i&&"cursor-not-allowed",!E&&vt["input-text-field--no-resize"],A),placeholder:c,disabled:i,rows:b,value:D,onChange:Y,...M})}),g||v?d.jsxs("div",{className:ae(vt["input-text-field--icon-container"],vt["input-text-field--right-icon"]),children:[g?d.jsx("span",{className:vt["input-text-field--icon"],children:g}):null,v?d.jsx("span",{className:ae(vt["input-text-field--icon"]),children:v}):null]}):null]}),u?d.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:vt["input-text-field--helper-text"],children:u}):null]})});Dr.displayName="TextFieldMultiline";const Yi={"empty-state":"_empty-state_5pkj5_1","empty-state-input-container":"_empty-state-input-container_5pkj5_12",illustration:"_illustration_5pkj5_18"},Tv=h.forwardRef(({isCard:e,onConnect:t,onUploadImage:n,...r},i)=>{const s=h.useRef(null),[l,c]=h.useState(""),u=["jpeg","svg","png","jpg","gif"],p=5*1024*1024,m=h.useCallback(b=>{c(""),n&&n(b)},[n]),g=h.useCallback(b=>{c(b)},[]),v=h.useCallback(()=>{var b;(b=s.current)==null||b.browse()},[]);return d.jsxs("div",{ref:i,className:Yi["empty-state"],...r,children:[d.jsx("div",{className:Yi.illustration,children:d.jsx(Gx,{})}),d.jsx("div",{style:{display:"none"},children:d.jsx(Cv,{ref:s,onAddFile:m,onError:g,acceptedFormats:u,maxFileSize:p})}),l&&d.jsx(Ce,{color:"red-500",children:l}),e?d.jsx(Ot,{variant:"text",size:"md",endIcon:d.jsx(rE,{}),onClick:v,children:"Upload Image"}):d.jsxs(d.Fragment,{children:[d.jsx(Ot,{size:"md",endIcon:d.jsx(Ux,{}),onClick:v,children:"Upload Image"}),d.jsx(Ce,{color:"gray-700",size:"xs",children:"or connect URL"}),d.jsxs("div",{className:Yi["empty-state-input-container"],children:[d.jsx(Dr,{placeholder:"Insert image from URL",size:"md",rows:1,leftIcon:d.jsx(K0,{}),variant:"outlined",helperText:"Max. file size. 5 Mb",value:"image"}),d.jsx(Ot,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},children:"Connect"})]})]})]})});Tv.displayName="EmptyStateImage";const pO=()=>d.jsx("div",{className:Yi["empty-state"],children:d.jsx(Lx,{})}),hO=()=>d.jsxs("div",{className:Yi["empty-state"],children:[d.jsx(Bx,{}),d.jsx(Ce,{fontWeight:"bold",color:"gray-700",size:"xs",children:"Drop it like it’s hot!"})]}),gO=()=>d.jsxs(d.Fragment,{children:["Embed any video hosted on YouTube or Vimeo ",d.jsx("br",{}),"or Google Drive"]}),mO=({onConnect:e})=>{const[t,n]=h.useState(""),r=()=>{e&&e(t)};return d.jsxs("div",{className:Yi["empty-state"],children:[d.jsx(kx,{}),d.jsxs("div",{className:Yi["empty-state-input-container"],children:[d.jsx(Dr,{placeholder:"Insert video from URL",size:"md",rows:1,autoResize:!0,leftIcon:d.jsx(K0,{}),helperText:d.jsx(gO,{}),variant:"outlined",value:t,onChange:i=>n(i.target.value)}),d.jsx(Ot,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},onClick:r,children:"Connect"})]})]})},vO=h.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:i,isCard:s}=e;let l;switch(n){case"text":l=d.jsx(pO,{});break;case"image":l=d.jsx(Tv,{onConnect:r,onUploadImage:i,isCard:s});break;case"video":l=d.jsx(mO,{onConnect:r});break;default:l=d.jsx(hO,{});break}return d.jsx("div",{ref:t,children:d.jsx("div",{children:l})})}),$l=h.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:i,isCard:s}=e;return d.jsx(vO,{status:n,onConnect:r,onUploadImage:i,isCard:s,ref:t})});$l.displayName="EmptyState";const Sv={heading:"_heading_k87kj_1","heading--hero":"_heading--hero_k87kj_7","heading--h1":"_heading--h1_k87kj_11","heading--h2":"_heading--h2_k87kj_16","heading--h3":"_heading--h3_k87kj_21","heading--h4":"_heading--h4_k87kj_26","heading--h5":"_heading--h5_k87kj_31","heading--h6":"_heading--h6_k87kj_36","heading--weight-bold":"_heading--weight-bold_k87kj_41","heading--weight-semibold":"_heading--weight-semibold_k87kj_45","heading--weight-regular":"_heading--weight-regular_k87kj_49"},bO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",hero:"h1"},pf=h.forwardRef((e,t)=>{const{variant:n="h1",fontWeight:r="bold",color:i="gray-1000",...s}=e,l=bO[n];return s.className=ae(Sv.heading,Sv[`heading--${n}`],`text--weight-${r}`,`text--${i}`,s.className),d.jsx(l,{ref:t,...s})});pf.displayName="Heading";const jo={"image-container":"_image-container_1yfej_6",image:"_image_1yfej_1","image-description":"_image-description_1yfej_20","image-block-input-container":"_image-block-input-container_1yfej_27","image-block-instance-slot-container":"_image-block-instance-slot-container_1yfej_35","image-block-spinner":"_image-block-spinner_1yfej_42"},Iv=h.forwardRef((e,t)=>{const{image:n,altProps:r,urlWithVariables:i,fileName:s,isUploading:l,saveTitle:c,onDeleteImage:u,connectImage:p,uploadImage:m,onUrlChange:g,...v}=e,[b,E]=h.useState(n),[_,w]=h.useState(s);h.useEffect(()=>{E(n)},[n]),h.useEffect(()=>{w(s)},[s]);const y=()=>{u&&u(),E("")},S=()=>d.jsxs(d.Fragment,{children:["Describe the purpose of the image. Leave empty if it’s purely decorative. ",d.jsx("br",{}),"Max. 100 characters"]});return d.jsx(oi,{...v,block:"image",ref:t,children:d.jsxs("div",{children:[d.jsxs("div",{className:jo["image-block-instance-slot-container"],children:[d.jsx(za,{initialLabel:"Image",onSave:c}),i?d.jsxs("div",{children:[" ",d.jsx(Ce,{children:" The image to display will be determined based on the value of the "})," "]}):b?d.jsxs("div",{className:jo["image-container"],children:[d.jsx("img",{src:b,alt:"",className:jo.image,"data-testid":"block-image","aria-label":"Image"}),d.jsxs("div",{className:jo["image-description"],children:[d.jsx(Ce,{color:"gray-1000",size:"xs",children:_||"Image file name"}),d.jsx(st,{size:"sm",onClick:y,variant:"ghost",children:d.jsx(Ru,{})})]})]}):l?d.jsx("div",{className:jo["image-block-spinner"],children:d.jsx("span",{children:d.jsx(sa,{})})}):d.jsx($l,{status:"image",onConnect:p,onUploadImage:m})]}),d.jsx("div",{className:jo["image-block-input-container"],children:d.jsx(Dr,{label:"Label",helperText:d.jsx(S,{}),placeholder:"Describe the image",rows:1,autoResize:!0,size:"md",variant:"filled",...r})})]})})});Iv.displayName="ImageBlock";const _O=30,xO=106,EO=h.forwardRef(({color:e="white",...t},n)=>d.jsxs("svg",{ref:n,width:xO,height:_O,role:"img",viewBox:"0 0 385 95",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.16684H12.5898V14.8949H0V2.16684Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.29525 2.16684C2.6965 2.16684 0 4.97167 0 8.48284C0 12.09 2.6965 14.8949 6.29525 14.8949C9.894 14.8949 12.5905 12.09 12.5905 8.48284C12.5905 4.97167 9.894 2.16684 6.29525 2.16684Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.29 64.9361C96.1503 64.9361 89.1925 57.4078 89.1925 47.2361C89.1925 37.0644 96.1503 29.4357 105.29 29.4357C114.436 29.4357 121.393 37.0644 121.393 47.2361C121.393 57.4078 114.436 64.9361 105.29 64.9361ZM131.419 3.05176e-05H121.369V30.6154C117.265 24.76 110.677 21.1129 102.815 21.1129C88.8658 21.1129 78.745 32.2884 78.745 47.2447C78.745 61.2642 87.6557 71.9712 100.092 73.2427C100.966 73.3096 101.837 73.3765 102.711 73.3765H102.815C103.383 73.3765 103.954 73.3431 104.529 73.3096C104.832 73.2761 105.134 73.2427 105.403 73.2092H105.47C106.072 73.1423 106.68 73.0419 107.285 72.9081C108.022 72.7742 108.731 72.5735 109.433 72.3727C110.143 72.1385 110.845 71.9043 111.517 71.6032C112.126 71.3355 112.731 71.0678 113.332 70.7667C113.403 70.7332 113.437 70.6998 113.504 70.6663C114.778 69.9637 115.988 69.1606 117.1 68.2238C117.668 67.7553 118.21 67.2534 118.747 66.7516C119.215 66.2831 119.688 65.7812 120.088 65.2459C120.562 64.7105 120.999 64.1417 121.369 63.5729C122.441 62.0338 123.319 60.3608 123.957 58.554L124.653 60.5683L124.65 60.5749L128.727 72.3861H138.754L131.419 52.2402V3.05176e-05Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M150.04 73.3943H159.417V22.5952H150.04V73.3943Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M154.723 1.87726C150.975 1.87726 148.161 4.77952 148.161 8.41266C148.161 12.1452 150.975 15.0474 154.723 15.0474C158.474 15.0474 161.288 12.1452 161.288 8.41266C161.288 4.77952 158.474 1.87726 154.723 1.87726Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M260.652 66.787C251.609 66.787 244.708 59.1913 244.708 48.9298C244.708 38.6718 251.609 30.9749 260.652 30.9749C269.695 30.9749 276.599 38.6718 276.599 48.9298C276.599 59.1913 269.695 66.787 260.652 66.787ZM260.655 22.5952C245.586 22.5952 234.402 33.842 234.402 48.9355C234.402 64.029 245.586 75.2758 260.655 75.2758C275.728 75.2758 286.909 64.029 286.909 48.9355C286.909 33.842 275.728 22.5952 260.655 22.5952Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M300.98 60.1891C297.284 60.1891 294.417 62.9912 294.417 66.7263C294.417 70.4645 297.284 73.3593 300.98 73.3593C304.676 73.3593 307.544 70.4645 307.544 66.7263C307.544 62.9912 304.676 60.1891 300.98 60.1891Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M336.085 67.4672C330.765 67.4672 326.987 65.3953 326.987 60.2663C326.987 55.6299 330.665 52.2758 340.247 52.2758C344.021 52.2758 348.282 52.7685 352.056 53.4602C351.186 60.0672 345.087 67.4672 336.085 67.4672ZM340.353 22.5952C326.414 22.5952 319.157 29.9952 318.67 40.3511H328.546C328.934 34.0377 333.287 30.5857 340.353 30.5857C347.517 30.5857 352.066 35.023 352.066 41.8325V45.9728C347.421 45.2844 343.352 44.8896 340.061 44.8896C325.352 44.8896 316.932 50.7104 316.932 60.8706C316.932 70.6394 324.385 75.2758 333.387 75.2758C341.419 75.2758 347.901 71.7226 352.066 66.003V74.2871H361.939V42.423C361.939 29.9952 353.811 22.5952 340.353 22.5952Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M377.862 15.0474C381.614 15.0474 384.425 12.1452 384.425 8.40912C384.425 4.77952 381.614 1.87726 377.862 1.87726C374.11 1.87726 371.298 4.77952 371.298 8.40912C371.298 12.1452 374.11 15.0474 377.862 15.0474Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M373.183 73.3943H382.56V22.5952H373.183V73.3943Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.4961 22.5952V73.3943H32.3938V32.6759H59.4802V73.3943H69.3778V22.5952H22.4961Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M211.41 47.6021C211.41 57.1636 204.45 64.2598 195.305 64.2598C186.159 64.2598 179.165 57.1636 179.165 47.6021C179.165 38.0738 186.159 30.8777 195.305 30.8777C204.45 30.8777 211.41 38.0738 211.41 47.6021ZM228.793 23.5714H221.474L228.793 23.5614L221.467 23.5714H218.77L214.211 36.6943V36.6877C213.538 34.9219 212.597 33.2562 211.487 31.757C211.386 31.5904 211.285 31.4571 211.185 31.3572C210.882 30.9574 210.579 30.5909 210.21 30.2245C209.974 29.8913 209.668 29.6248 209.369 29.3249C209.234 29.1251 209.029 28.9252 208.828 28.7919C208.458 28.4254 208.058 28.059 207.654 27.7258C207.553 27.6592 207.486 27.5925 207.385 27.5259C206.877 27.0928 206.343 26.693 205.805 26.3599C205.196 25.9601 204.594 25.5936 203.922 25.2605C203.35 24.9273 202.745 24.6608 202.14 24.3943C201.464 24.1277 200.795 23.8612 200.089 23.6613C199.581 23.4947 199.046 23.3615 198.508 23.2282C198.441 23.2282 198.337 23.1949 198.239 23.1616C198.004 23.1283 197.765 23.0616 197.53 23.0283C196.958 22.9284 196.323 22.8284 195.718 22.7618C194.776 22.6618 193.835 22.5952 192.856 22.5952C178.906 22.5952 168.785 33.3228 168.785 47.6152C168.785 61.9408 178.906 72.6684 192.658 72.6684C200.422 72.6684 207.116 69.1703 211.42 63.3067V70.7028C211.42 79.8645 204.762 85.8946 195.109 85.8946C187.043 85.8946 181.058 81.1305 180.083 74.6007H169.962C171.34 85.9946 181.828 94.0902 195.109 94.0902C210.24 94.0902 221.474 84.1622 221.474 69.2369V43.5906L228.793 23.5714Z",fill:e}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.86945 73.3943H11.2458V22.5952H1.86945V73.3943Z",fill:e})]})),Ov="Dialog",[Av,dF]=Bt(Ov),[wO,sr]=Av(Ov),yO=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=h.useRef(null),u=h.useRef(null),[p=!1,m]=hn({prop:r,defaultProp:i,onChange:s});return h.createElement(wO,{scope:t,triggerRef:c,contentRef:u,contentId:Zn(),titleId:Zn(),descriptionId:Zn(),open:p,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(g=>!g),[m]),modal:l},n)},CO="DialogTrigger",TO=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=sr(CO,n),s=et(t,i.triggerRef);return h.createElement(Ne.button,se({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":mf(i.open)},r,{ref:s,onClick:Ee(e.onClick,i.onOpenToggle)}))}),$v="DialogPortal",[SO,Dv]=Av($v,{forceMount:void 0}),IO=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=sr($v,t);return h.createElement(SO,{scope:t,forceMount:n},h.Children.map(r,l=>h.createElement(on,{present:n||s.open},h.createElement(_a,{asChild:!0,container:i},l))))},hf="DialogOverlay",OO=h.forwardRef((e,t)=>{const n=Dv(hf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=sr(hf,e.__scopeDialog);return s.modal?h.createElement(on,{present:r||s.open},h.createElement(AO,se({},i,{ref:t}))):null}),AO=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=sr(hf,n);return h.createElement(Ia,{as:Si,allowPinchZoom:!0,shards:[i.contentRef]},h.createElement(Ne.div,se({"data-state":mf(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Zi="DialogContent",Mv=h.forwardRef((e,t)=>{const n=Dv(Zi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=sr(Zi,e.__scopeDialog);return h.createElement(on,{present:r||s.open},s.modal?h.createElement($O,se({},i,{ref:t})):h.createElement(DO,se({},i,{ref:t})))}),$O=h.forwardRef((e,t)=>{const n=sr(Zi,e.__scopeDialog),r=h.useRef(null),i=et(t,n.contentRef,r);return h.useEffect(()=>{const s=r.current;if(s)return _u(s)},[]),h.createElement(Pv,se({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())}))}),DO=h.forwardRef((e,t)=>{const n=sr(Zi,e.__scopeDialog),r=h.useRef(!1),i=h.useRef(!1);return h.createElement(Pv,se({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(u))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),Pv=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=sr(Zi,n),u=h.useRef(null),p=et(t,u);return eu(),h.createElement(h.Fragment,null,h.createElement(ru,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},h.createElement(rs,se({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":mf(c.open)},l,{ref:p,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),gf="DialogTitle",MO=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=sr(gf,n);return h.createElement(Ne.h2,se({id:i.titleId},r,{ref:t}))}),Rv="DialogDescription",PO=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=sr(Rv,n);return h.createElement(Ne.p,se({id:i.descriptionId},r,{ref:t}))}),Nv="DialogClose",Lv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=sr(Nv,n);return h.createElement(Ne.button,se({type:"button"},r,{ref:t,onClick:Ee(e.onClick,()=>i.onOpenChange(!1))}))});function mf(e){return e?"open":"closed"}C7("DialogTitleWarning",{contentName:Zi,titleName:gf,docsSlug:"dialog"});const RO=yO,NO=TO,LO=IO,jO=OO,kO=Mv,jv=Lv,Mr={"modal--trigger":"_modal--trigger_1u07z_1","modal--content":"_modal--content_1u07z_2","modal--children":"_modal--children_1u07z_23","modal--overlay":"_modal--overlay_1u07z_27","modal--description":"_modal--description_1u07z_34","modal--close-icon":"_modal--close-icon_1u07z_40","modal--footer":"_modal--footer_1u07z_49","modal--buttons":"_modal--buttons_1u07z_56","modal--buttons-right":"_modal--buttons-right_1u07z_61"},FO=RO,BO=h.forwardRef(({className:e,...t},n)=>d.jsx(NO,{ref:n,className:ae(Mr["modal--trigger"],e),...t})),kv=h.forwardRef((e,t)=>{const{title:n,description:r,closeIcon:i=!0,checkboxProps:s,leftButton:l,rightButton:c,className:u,children:p,...m}=e;return d.jsxs(LO,{children:[d.jsx(jO,{className:Mr["modal--overlay"]}),d.jsxs(kO,{ref:t,className:Mr["modal--content"],...m,children:[i&&d.jsx(jv,{asChild:!0,children:d.jsx(st,{className:Mr["modal--close-icon"],variant:"ghost",color:"primary",size:"xs",children:d.jsx(v8,{})})}),d.jsxs("div",{className:Mr["modal--description"],children:[n&&(typeof n=="string"?d.jsx(pf,{variant:"h5",fontWeight:"bold",color:"gray-1000",children:n}):n),r&&(typeof r=="string"?d.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-1000",children:r}):r)]}),p&&d.jsx("div",{className:ae(Mr["modal--children"],u),children:p}),d.jsxs("div",{className:Mr["modal--footer"],children:[s&&d.jsx(Os,{...s}),d.jsxs("div",{className:`${Mr["modal--buttons"]} ${s?"":Mr["modal--buttons-right"]}`,children:[l&&(i?d.jsx(Ot,{...l}):d.jsx(jv,{asChild:!0,children:d.jsx(Ot,{...l})})),c&&d.jsx(Ot,{...c})]})]})]})]})});kv.displayName="ModalContent";const Fv="Switch",[zO,pF]=Bt(Fv),[GO,HO]=zO(Fv),UO=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:l,disabled:c,value:u="on",onCheckedChange:p,...m}=e,[g,v]=h.useState(null),b=et(t,S=>v(S)),E=h.useRef(!1),_=g?!!g.closest("form"):!0,[w=!1,y]=hn({prop:i,defaultProp:s,onChange:p});return h.createElement(GO,{scope:n,checked:w,disabled:c},h.createElement(Ne.button,se({type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":Bv(w),"data-disabled":c?"":void 0,disabled:c,value:u},m,{ref:b,onClick:Ee(e.onClick,S=>{y(T=>!T),_&&(E.current=S.isPropagationStopped(),E.current||S.stopPropagation())})})),_&&h.createElement(qO,{control:g,bubbles:!E.current,name:r,value:u,checked:w,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),VO="SwitchThumb",WO=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=HO(VO,n);return h.createElement(Ne.span,se({"data-state":Bv(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),qO=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=h.useRef(null),l=Rd(n),c=ba(t);return h.useEffect(()=>{const u=s.current,p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(u,n),u.dispatchEvent(v)}},[l,n,r]),h.createElement("input",se({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Bv(e){return e?"checked":"unchecked"}const YO=UO,ZO=WO,Ls={"toggle--container":"_toggle--container_kp2m5_1",toggle:"_toggle_kp2m5_1","toggle--disabled":"_toggle--disabled_kp2m5_26","toggle--content":"_toggle--content_kp2m5_30","toggle--label":"_toggle--label_kp2m5_45"},zv=e=>{const{id:t,small:n,label:r}=e;return d.jsx("label",{htmlFor:t,className:Ls["toggle--label"],children:n?d.jsx(He,{size:"md",children:r}):d.jsx(Ce,{size:"sm",children:r})})},vf=h.forwardRef((e,t)=>{const{id:n,checked:r=!1,label:i,labelPosition:s="start",small:l=!1,required:c=!1,disabled:u,className:p,onCheckedChanged:m,...g}=e;return d.jsxs("div",{className:ae(u?"cursor-not-allowed":"cursor-pointer",Ls["toggle--container"],p),children:[i&&s==="end"?d.jsx(zv,{id:n,small:l,label:i}):null,d.jsx(YO,{ref:t,id:n,className:ae(Ls.toggle,u&&Ls["toggle--disabled"]),required:c,checked:r,disabled:u,onCheckedChange:m,...g,children:d.jsx(ZO,{className:Ls["toggle--content"]})}),i&&s==="start"?d.jsx(zv,{id:n,small:l,label:i}):null]})});vf.displayName="Toggle";const Zt={"mail-block":"_mail-block_vqhat_1","mail-field-container":"_mail-field-container_vqhat_8","mail-field-container1":"_mail-field-container1_vqhat_9","input-wrapper":"_input-wrapper_vqhat_22","button-container":"_button-container_vqhat_26","mail-selectors":"_mail-selectors_vqhat_39","mail-selector":"_mail-selector_vqhat_39","body-header":"_body-header_vqhat_48"},Gv=h.forwardRef((e,t)=>{const{isHtmlMode:n,successSelectorProps:r,errorSelectorProps:i,destinationConfig:s,destinationError:l,destinationErrorText:c,ccConfig:u,ccError:p,ccErrorText:m,senderConfig:g,senderError:v,senderErrorText:b,subjectConfig:E,subjectError:_,subjectErrorText:w,replyToConfig:y,replyToError:S,replyToErrorText:T,bodyConfig:A,bodyError:I,bodyErrorText:M,setIsHtmlMode:R,setShowCC:D,showCC:k,onDeleteBlock:Y,...L}=e;return d.jsx(oi,{block:"mail",onDeleteBlock:Y,...L,ref:t,children:d.jsxs("div",{className:Zt["mail-block"],children:[d.jsxs("div",{className:Zt["mail-field-container1"],children:[d.jsx("div",{className:Zt["input-wrapper"],children:d.jsx($n,{...s,label:"Destination",error:l,helperText:l?c:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),d.jsx("div",{className:Zt["button-container"],children:d.jsx(Ot,{variant:"outlined",onClick:D,size:"md",children:k?"- Remove CC":"+ Add CC"})})]}),k&&d.jsx("div",{className:Zt["mail-field-container"],children:d.jsx($n,{...u,label:"CC",error:p,helperText:p?m:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),d.jsx("div",{className:Zt["mail-field-container"],children:d.jsx($n,{...g,label:"Sender name",error:v,helperText:v?b:"",placeholder:"Enter the name of sender",variant:"filled"})}),d.jsx("div",{className:Zt["mail-field-container"],children:d.jsx($n,{...E,label:"Subject",error:_,helperText:_?w:"",placeholder:"Enter subject of email or {{variable}}",variant:"filled"})}),d.jsx("div",{className:Zt["mail-field-container"],children:d.jsx($n,{...y,label:"Reply to",error:S,helperText:S?T:"",placeholder:"Enter an automated reply to",variant:"filled"})}),d.jsxs("div",{className:Zt["mail-field-container"],children:[d.jsxs("div",{className:Zt["body-header"],children:[d.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:Zt["input-text-field--label-text"],children:"Body"}),d.jsx("div",{className:Zt["html-toggle"],children:d.jsx(vf,{label:"HTML",labelPosition:"end",small:!0,checked:n,onCheckedChanged:R})})]}),d.jsx(Dr,{...A,placeholder:"Email body",error:I,helperText:I?M:"",rows:4,variant:"filled"})]}),d.jsx(Zr,{color:"sand-300",horizontalMargin:!1,verticalMargin:"xs"}),d.jsxs("div",{className:Zt["mail-selectors"],children:[d.jsxs("div",{className:Zt["mail-selector"],children:[d.jsx(Ce,{color:"gray-1000",size:"sm",children:"Success case"}),d.jsx(vs,{label:"Choose destination",...r})]}),d.jsxs("div",{className:Zt["mail-selector"],children:[d.jsx(Ce,{color:"gray-1000",size:"sm",children:"Error case"}),d.jsx(vs,{label:"Choose destination",...i})]})]})]})})});Gv.displayName="MailBlock";const br={"multiple-values--container":"_multiple-values--container_gd40l_1","multiple-values--content":"_multiple-values--content_gd40l_7","multiple-values--outlined":"_multiple-values--outlined_gd40l_16","multiple-values--filled":"_multiple-values--filled_gd40l_22","multiple-values--error":"_multiple-values--error_gd40l_28","multiple-values--helper-text":"_multiple-values--helper-text_gd40l_32","multiple-values--label-text":"_multiple-values--label-text_gd40l_36","multiple-values--size-lg":"_multiple-values--size-lg_gd40l_46","multiple-values--size-md":"_multiple-values--size-md_gd40l_50","multiple-values--size-sm":"_multiple-values--size-sm_gd40l_54",EmptyTags:"_EmptyTags_gd40l_60",InputDisabled:"_InputDisabled_gd40l_64"};var bf={exports:{}},Dl={exports:{}},Ze={};/** @license React v16.13.1
|
|
142
146
|
* react-is.production.min.js
|
|
143
147
|
*
|
|
144
148
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145
149
|
*
|
|
146
150
|
* This source code is licensed under the MIT license found in the
|
|
147
151
|
* LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/var
|
|
152
|
+
*/var Hv;function XO(){if(Hv)return Ze;Hv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,u=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(I){if(typeof I=="object"&&I!==null){var M=I.$$typeof;switch(M){case t:switch(I=I.type,I){case u:case p:case r:case s:case i:case g:return I;default:switch(I=I&&I.$$typeof,I){case c:case m:case E:case b:case l:return I;default:return M}}case n:return M}}}function A(I){return T(I)===p}return Ze.AsyncMode=u,Ze.ConcurrentMode=p,Ze.ContextConsumer=c,Ze.ContextProvider=l,Ze.Element=t,Ze.ForwardRef=m,Ze.Fragment=r,Ze.Lazy=E,Ze.Memo=b,Ze.Portal=n,Ze.Profiler=s,Ze.StrictMode=i,Ze.Suspense=g,Ze.isAsyncMode=function(I){return A(I)||T(I)===u},Ze.isConcurrentMode=A,Ze.isContextConsumer=function(I){return T(I)===c},Ze.isContextProvider=function(I){return T(I)===l},Ze.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},Ze.isForwardRef=function(I){return T(I)===m},Ze.isFragment=function(I){return T(I)===r},Ze.isLazy=function(I){return T(I)===E},Ze.isMemo=function(I){return T(I)===b},Ze.isPortal=function(I){return T(I)===n},Ze.isProfiler=function(I){return T(I)===s},Ze.isStrictMode=function(I){return T(I)===i},Ze.isSuspense=function(I){return T(I)===g},Ze.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===p||I===s||I===i||I===g||I===v||typeof I=="object"&&I!==null&&(I.$$typeof===E||I.$$typeof===b||I.$$typeof===l||I.$$typeof===c||I.$$typeof===m||I.$$typeof===w||I.$$typeof===y||I.$$typeof===S||I.$$typeof===_)},Ze.typeOf=T,Ze}var Xe={};/** @license React v16.13.1
|
|
149
153
|
* react-is.development.js
|
|
150
154
|
*
|
|
151
155
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
152
156
|
*
|
|
153
157
|
* This source code is licensed under the MIT license found in the
|
|
154
158
|
* LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/var Hv;function VA(){return Hv||(Hv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,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,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(ce){return typeof ce=="string"||typeof ce=="function"||ce===r||ce===p||ce===s||ce===o||ce===g||ce===v||typeof ce=="object"&&ce!==null&&(ce.$$typeof===E||ce.$$typeof===b||ce.$$typeof===l||ce.$$typeof===c||ce.$$typeof===m||ce.$$typeof===w||ce.$$typeof===y||ce.$$typeof===S||ce.$$typeof===_)}function O(ce){if(typeof ce=="object"&&ce!==null){var bt=ce.$$typeof;switch(bt){case t:var Ke=ce.type;switch(Ke){case d:case p:case r:case s:case o:case g:return Ke;default:var wt=Ke&&Ke.$$typeof;switch(wt){case c:case m:case E:case b:case l:return wt;default:return bt}}case n:return bt}}}var I=d,M=p,R=c,D=l,k=t,q=m,L=r,U=E,X=b,N=n,K=s,B=o,V=g,Q=!1;function W(ce){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(ce)||O(ce)===d}function G(ce){return O(ce)===p}function Y(ce){return O(ce)===c}function de(ce){return O(ce)===l}function ue(ce){return typeof ce=="object"&&ce!==null&&ce.$$typeof===t}function fe(ce){return O(ce)===m}function we(ce){return O(ce)===r}function ne(ce){return O(ce)===E}function le(ce){return O(ce)===b}function me(ce){return O(ce)===n}function _e(ce){return O(ce)===s}function pe(ce){return O(ce)===o}function qe(ce){return O(ce)===g}Xe.AsyncMode=I,Xe.ConcurrentMode=M,Xe.ContextConsumer=R,Xe.ContextProvider=D,Xe.Element=k,Xe.ForwardRef=q,Xe.Fragment=L,Xe.Lazy=U,Xe.Memo=X,Xe.Portal=N,Xe.Profiler=K,Xe.StrictMode=B,Xe.Suspense=V,Xe.isAsyncMode=W,Xe.isConcurrentMode=G,Xe.isContextConsumer=Y,Xe.isContextProvider=de,Xe.isElement=ue,Xe.isForwardRef=fe,Xe.isFragment=we,Xe.isLazy=ne,Xe.isMemo=le,Xe.isPortal=me,Xe.isProfiler=_e,Xe.isStrictMode=pe,Xe.isSuspense=qe,Xe.isValidElementType=T,Xe.typeOf=O}()),Xe}var Vv;function Wv(){return Vv||(Vv=1,process.env.NODE_ENV==="production"?Ml.exports=HA():Ml.exports=VA()),Ml.exports}var bf,qv;function _f(){if(qv)return bf;qv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bf=e,bf}var xf,Yv;function Zv(){return Yv||(Yv=1,xf=Function.call.bind(Object.prototype.hasOwnProperty)),xf}var Ef,Xv;function WA(){if(Xv)return Ef;Xv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=_f(),n={},r=Zv();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(s,l,c,d,p){if(process.env.NODE_ENV!=="production"){for(var m in s)if(r(s,m)){var g;try{if(typeof s[m]!="function"){var v=Error((d||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=s[m](l,m,d,c,null,t)}catch(E){g=E}if(g&&!(g instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var b=p?p():"";e("Failed "+c+" type: "+g.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ef=o,Ef}var wf,Kv;function qA(){if(Kv)return wf;Kv=1;var e=Wv(),t=Dc(),n=_f(),r=Zv(),o=WA(),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 wf=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(G){var Y=G&&(p&&G[p]||G[m]);if(typeof Y=="function")return Y}var v="<<anonymous>>",b={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:S(),arrayOf:T,element:O(),elementType:I(),instanceOf:M,node:q(),objectOf:D,oneOf:R,oneOfType:k,shape:U,exact:X};function E(G,Y){return G===Y?G!==0||1/G===1/Y:G!==G&&Y!==Y}function _(G,Y){this.message=G,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}_.prototype=Error.prototype;function w(G){if(process.env.NODE_ENV!=="production")var Y={},de=0;function ue(we,ne,le,me,_e,pe,qe){if(me=me||v,pe=pe||le,qe!==n){if(d){var ce=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 ce.name="Invariant Violation",ce}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var bt=me+":"+le;!Y[bt]&&de<3&&(s("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+me+"`. 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[bt]=!0,de++)}}return ne[le]==null?we?ne[le]===null?new _("The "+_e+" `"+pe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new _("The "+_e+" `"+pe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:G(ne,le,me,_e,pe)}var fe=ue.bind(null,!1);return fe.isRequired=ue.bind(null,!0),fe}function y(G){function Y(de,ue,fe,we,ne,le){var me=de[ue],_e=B(me);if(_e!==G){var pe=V(me);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+pe+"` supplied to `"+fe+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return w(Y)}function S(){return w(l)}function T(G){function Y(de,ue,fe,we,ne){if(typeof G!="function")return new _("Property `"+ne+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var le=de[ue];if(!Array.isArray(le)){var me=B(le);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+me+"` supplied to `"+fe+"`, expected an array."))}for(var _e=0;_e<le.length;_e++){var pe=G(le,_e,fe,we,ne+"["+_e+"]",n);if(pe instanceof Error)return pe}return null}return w(Y)}function O(){function G(Y,de,ue,fe,we){var ne=Y[de];if(!c(ne)){var le=B(ne);return new _("Invalid "+fe+" `"+we+"` of type "+("`"+le+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(G)}function I(){function G(Y,de,ue,fe,we){var ne=Y[de];if(!e.isValidElementType(ne)){var le=B(ne);return new _("Invalid "+fe+" `"+we+"` of type "+("`"+le+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(G)}function M(G){function Y(de,ue,fe,we,ne){if(!(de[ue]instanceof G)){var le=G.name||v,me=W(de[ue]);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+me+"` supplied to `"+fe+"`, expected ")+("instance of `"+le+"`."))}return null}return w(Y)}function R(G){if(!Array.isArray(G))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(de,ue,fe,we,ne){for(var le=de[ue],me=0;me<G.length;me++)if(E(le,G[me]))return null;var _e=JSON.stringify(G,function(qe,ce){var bt=V(ce);return bt==="symbol"?String(ce):ce});return new _("Invalid "+we+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+fe+"`, expected one of "+_e+"."))}return w(Y)}function D(G){function Y(de,ue,fe,we,ne){if(typeof G!="function")return new _("Property `"+ne+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var le=de[ue],me=B(le);if(me!=="object")return new _("Invalid "+we+" `"+ne+"` of type "+("`"+me+"` supplied to `"+fe+"`, expected an object."));for(var _e in le)if(r(le,_e)){var pe=G(le,_e,fe,we,ne+"."+_e,n);if(pe instanceof Error)return pe}return null}return w(Y)}function k(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Y=0;Y<G.length;Y++){var de=G[Y];if(typeof de!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(de)+" at index "+Y+"."),l}function ue(fe,we,ne,le,me){for(var _e=[],pe=0;pe<G.length;pe++){var qe=G[pe],ce=qe(fe,we,ne,le,me,n);if(ce==null)return null;ce.data&&r(ce.data,"expectedType")&&_e.push(ce.data.expectedType)}var bt=_e.length>0?", expected one of type ["+_e.join(", ")+"]":"";return new _("Invalid "+le+" `"+me+"` supplied to "+("`"+ne+"`"+bt+"."))}return w(ue)}function q(){function G(Y,de,ue,fe,we){return N(Y[de])?null:new _("Invalid "+fe+" `"+we+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(G)}function L(G,Y,de,ue,fe){return new _((G||"React class")+": "+Y+" type `"+de+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function U(G){function Y(de,ue,fe,we,ne){var le=de[ue],me=B(le);if(me!=="object")return new _("Invalid "+we+" `"+ne+"` of type `"+me+"` "+("supplied to `"+fe+"`, expected `object`."));for(var _e in G){var pe=G[_e];if(typeof pe!="function")return L(fe,we,ne,_e,V(pe));var qe=pe(le,_e,fe,we,ne+"."+_e,n);if(qe)return qe}return null}return w(Y)}function X(G){function Y(de,ue,fe,we,ne){var le=de[ue],me=B(le);if(me!=="object")return new _("Invalid "+we+" `"+ne+"` of type `"+me+"` "+("supplied to `"+fe+"`, expected `object`."));var _e=t({},de[ue],G);for(var pe in _e){var qe=G[pe];if(r(G,pe)&&typeof qe!="function")return L(fe,we,ne,pe,V(qe));if(!qe)return new _("Invalid "+we+" `"+ne+"` key `"+pe+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(de[ue],null," ")+`
|
|
156
|
-
Valid keys: `+JSON.stringify(Object.keys(G),null," "));var ce=qe(le,pe,fe,we,ne+"."+pe,n);if(ce)return ce}return null}return w(Y)}function N(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(N);if(G===null||c(G))return!0;var Y=g(G);if(Y){var de=Y.call(G),ue;if(Y!==G.entries){for(;!(ue=de.next()).done;)if(!N(ue.value))return!1}else for(;!(ue=de.next()).done;){var fe=ue.value;if(fe&&!N(fe[1]))return!1}}else return!1;return!0;default:return!1}}function K(G,Y){return G==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function B(G){var Y=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":K(Y,G)?"symbol":Y}function V(G){if(typeof G>"u"||G===null)return""+G;var Y=B(G);if(Y==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return Y}function Q(G){var Y=V(G);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function W(G){return!G.constructor||!G.constructor.name?v:G.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},wf}var yf,Qv;function YA(){if(Qv)return yf;Qv=1;var e=_f();function t(){}function n(){}return n.resetWarningCache=t,yf=function(){function r(l,c,d,p,m,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},yf}if(process.env.NODE_ENV!=="production"){var ZA=Wv(),XA=!0;vf.exports=qA()(ZA.isElement,XA)}else vf.exports=YA()();var KA=vf.exports;const Ge=Y1(KA);function QA(e){return h.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},h.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const JA={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},eO=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class tO extends h.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=h.createRef(),this.sizer=h.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);eO.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:o,expanded:s,classNames:l,inputAttributes:c,inputEventHandlers:d,index:p}=this.props;return h.createElement("div",{className:l.searchWrapper},h.createElement("input",Object.assign({},c,d,{ref:this.input,value:n,placeholder:o,className:l.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||o,"aria-owns":t,"aria-activedescendant":p>-1?`${t}-${p}`:null,"aria-expanded":s,style:{width:this.state.inputWidth}})),h.createElement("div",{ref:this.sizer,style:JA},n||o))}}function Cf(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function nO(e){return new RegExp(Cf(e),"gi")}function rO(e){return new RegExp(`(?:^|\\s)${Cf(e)}`,"i")}function iO(e){return new RegExp(`^${Cf(e)}$`,"i")}function oO(e,t){const n=nO(t);return e.replace(n,"<mark>$&</mark>")}function sO({item:e,query:t}){return h.createElement("span",{dangerouslySetInnerHTML:{__html:oO(e.name,t)}})}function aO(e){const t=e.suggestionComponent||sO,n=e.options.map((r,o)=>{const s=`${e.id}-${o}`,l=[];return e.index===o&&l.push(e.classNames.suggestionActive),r.disabled&&l.push(e.classNames.suggestionDisabled),h.createElement("li",{id:s,key:s,role:"option",className:l.join(" "),"aria-disabled":!!r.disabled,onMouseDown:c=>c.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?h.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:h.createElement(t,{item:r,query:e.query}))});return h.createElement("div",{className:e.classNames.suggestions},h.createElement("ul",{role:"listbox",id:e.id},n))}function lO(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,s=>s===t),o=n[r-1]||n[r+1];o&&o.focus()}const Xi={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},Jv={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function e2(e,t){return e.findIndex(n=>iO(t).test(n.name))}function Tf(){if(this.state.query.length>=this.props.minQueryLength){const e=e2(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function cO(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function dO(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function uO(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function fO(e,t){return rO(t).test(e.name)}function pO(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&e2(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class Sf extends h.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=h.createRef(),this.input=h.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?Tf.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),Tf.call(this)),t.key===Xi.BACKSPACE&&this.props.allowBackspace&&uO.call(this,t),(t.key===Xi.UP_ARROW||t.key===Xi.UP_ARROW_COMPAT)&&cO.call(this,t),(t.key===Xi.DOWN_ARROW||t.key===Xi.DOWN_ARROW_COMPAT)&&dO.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&Tf.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&lO(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||QA,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},Jv,this.props.classNames),o=[r.root];return this.state.focused&&o.push(r.rootFocused),h.createElement("div",{ref:this.container,className:o.join(" "),onClick:this.onClick.bind(this)},h.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((s,l)=>h.createElement(t,{key:l,tag:s,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,l)}))),h.createElement("div",{className:r.search},h.createElement(tO,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?h.createElement(aO,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:pO(t,n)}:null}}Sf.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:fO,suggestionsTransform:null,autoresize:!0,classNames:Jv,delimiters:[Xi.TAB,Xi.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}},Sf.propTypes={id:Ge.string,tags:Ge.arrayOf(Ge.object),placeholderText:Ge.string,ariaLabelText:Ge.string,removeButtonText:Ge.string,noSuggestionsText:Ge.string,newTagText:Ge.string,suggestions:Ge.arrayOf(Ge.object),suggestionsFilter:Ge.func,suggestionsTransform:Ge.func,autoresize:Ge.bool,delimiters:Ge.arrayOf(Ge.string),onDelete:Ge.func.isRequired,onAddition:Ge.func.isRequired,onInput:Ge.func,onFocus:Ge.func,onBlur:Ge.func,onValidate:Ge.func,minQueryLength:Ge.number,maxSuggestionsLength:Ge.number,classNames:Ge.object,allowNew:Ge.bool,allowBackspace:Ge.bool,addOnBlur:Ge.bool,tagComponent:Ge.oneOfType([Ge.func,Ge.element]),suggestionComponent:Ge.oneOfType([Ge.func,Ge.element]),inputAttributes:Ge.object};const hO=[",","Enter","Tab"],gO=e=>{const{tag:t,onDelete:n}=e;return u.jsx(Jn,{label:(t==null?void 0:t.name)??"",variant:"filled",color:"purple",onCloseIconClicked:n})},mO=e=>{const{label:t,size:n="md",variant:r="outlined",disabled:o,className:s,inputClassNames:l,contentClassName:c,helperText:d,error:p,placeholder:m,values:g,onAddition:v,onDelete:b,onInput:E,allowNew:_=!0,addOnBlur:w=!1,onBlur:y,inputAttributes:S,inputRef:T,delimiters:O=hO,minQueryLength:I=2}=e,M=(D,k)=>{switch(k){case"lg":return u.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:_r["multiple-values--label-text"],children:D});default:case"md":return u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:_r["multiple-values--label-text"],children:D});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:_r["multiple-values--label-text"],children:D})}},R=h.useMemo(()=>({disabled:o,...S}),[o,S]);return u.jsxs("div",{className:se(_r["multiple-values--container"],o&&_r["input-text-field--disabled"],s),children:[t&&M(t,n),u.jsx("div",{className:se(_r["multiple-values--content"],_r[`multiple-values--size-${n}`],_r[`multiple-values--${r}`],p&&_r["multiple-values--error"],c),children:u.jsx(Sf,{ref:T,classNames:l,tags:g,placeholderText:m,tagComponent:gO,delimiters:O,inputAttributes:R,allowNew:_,onAddition:v,onDelete:b,onBlur:y,addOnBlur:w,onInput:E,minQueryLength:I})}),d&&u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:p?"red-500":"gray-700",className:_r["multiple-values--helper-text"],children:d})]})},t2={"notes-block":"_notes-block_czx86_1","notes-block-editor":"_notes-block-editor_czx86_8"},n2=h.forwardRef((e,t)=>{const{defaultNote:n,note:r,onNoteChange:o,...s}=e;return u.jsx("div",{ref:t,children:u.jsx(ii,{...s,block:"notes",children:u.jsxs("div",{className:t2["notes-block"],children:[u.jsx(Ce,{color:"gray-900",fontWeight:"regular",size:"sm",children:"This note will be not visible in chats"}),u.jsx("div",{className:t2["notes-block-editor"],children:u.jsx(Dr,{autoResize:!0,placeholder:"Write here notes for this answer",rows:1,size:"md",variant:"filled",value:r,defaultValue:n,onChange:o})})]})})})});n2.displayName="NotesBlock";const ui={"radio--group-container":"_radio--group-container_zpvsw_2",radio:"_radio_zpvsw_2","radio--item":"_radio--item_zpvsw_22","radio--item-size-sm":"_radio--item-size-sm_zpvsw_51","radio--indicator":"_radio--indicator_zpvsw_75","radio--indicator-size-sm":"_radio--indicator-size-sm_zpvsw_76","radio--label":"_radio--label_zpvsw_111","radio--label-size-sm":"_radio--label-size-sm_zpvsw_123"},r2="Radio",[vO,i2]=Ft(r2),[bO,_O]=vO(r2),xO=h.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:l,value:c="on",onCheck:d,...p}=e,[m,g]=h.useState(null),v=et(t,_=>g(_)),b=h.useRef(!1),E=m?!!m.closest("form"):!0;return h.createElement(bO,{scope:n,checked:o,disabled:l},h.createElement(Pe.button,oe({type:"button",role:"radio","aria-checked":o,"data-state":o2(o),"data-disabled":l?"":void 0,disabled:l,value:c},p,{ref:v,onClick:Ee(e.onClick,_=>{o||d==null||d(),E&&(b.current=_.isPropagationStopped(),b.current||_.stopPropagation())})})),E&&h.createElement(yO,{control:m,bubbles:!b.current,name:r,value:c,checked:o,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),EO="RadioIndicator",wO=h.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=_O(EO,n);return h.createElement(on,{present:r||s.checked},h.createElement(Pe.span,oe({"data-state":o2(s.checked),"data-disabled":s.disabled?"":void 0},o,{ref:t})))}),yO=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,s=h.useRef(null),l=Ru(n),c=ba(t);return h.useEffect(()=>{const d=s.current,p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(d,n),d.dispatchEvent(v)}},[l,n,r]),h.createElement("input",oe({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function o2(e){return e?"checked":"unchecked"}const CO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],s2="RadioGroup",[TO,_F]=Ft(s2,[ho,i2]),a2=ho(),l2=i2(),[SO,IO]=TO(s2),AO=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:l=!1,disabled:c=!1,orientation:d,dir:p,loop:m=!0,onValueChange:g,...v}=e,b=a2(n),E=rs(p),[_,w]=hn({prop:s,defaultProp:o,onChange:g});return h.createElement(SO,{scope:n,name:r,required:l,disabled:c,value:_,onValueChange:w},h.createElement(md,oe({asChild:!0},b,{orientation:d,dir:E,loop:m}),h.createElement(Pe.div,oe({role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":c?"":void 0,dir:E},v,{ref:t}))))}),OO="RadioGroupItem",$O=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=IO(OO,n),l=s.disabled||r,c=a2(n),d=l2(n),p=h.useRef(null),m=et(t,p),g=s.value===o.value,v=h.useRef(!1);return h.useEffect(()=>{const b=_=>{CO.includes(_.key)&&(v.current=!0)},E=()=>v.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",E)}},[]),h.createElement(vd,oe({asChild:!0},c,{focusable:!l,active:g}),h.createElement(xO,oe({disabled:l,required:s.required,checked:g},d,o,{name:s.name,ref:m,onCheck:()=>s.onValueChange(o.value),onKeyDown:Ee(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:Ee(o.onFocus,()=>{var b;v.current&&((b=p.current)===null||b===void 0||b.click())})})))}),DO=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=l2(n);return h.createElement(wO,oe({},o,r,{ref:t}))}),MO=AO,PO=$O,RO=DO,If=h.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,value:r,small:o,disabled:s,className:l,children:c,...d}=e,p=h.useMemo(()=>o?u.jsx(He,{size:"md",children:c}):u.jsx(Ce,{size:"sm",children:c}),[c,o]);return u.jsxs("div",{className:se(ui.radio,l),children:[u.jsx(PO,{ref:t,id:n,className:se(o?ui["radio--item-size-sm"]:ui["radio--item"]),value:r,disabled:s,...d,children:u.jsx(RO,{className:o?ui["radio--indicator-size-sm"]:ui["radio--indicator"]})}),u.jsx("label",{className:o?ui["radio--label-size-sm"]:ui["radio--label"],htmlFor:n,children:typeof c=="string"?p:c})]})});If.displayName="Radio";const c2=h.forwardRef((e,t)=>{const{value:n,defaultValue:r,small:o,onValueChange:s,children:l,...c}=e,d=h.Children.map(l,p=>h.cloneElement(p,{small:o}));return u.jsx(MO,{ref:t,className:ui["radio--group-container"],defaultValue:r,value:n,onValueChange:s,...c,children:d})}),Ve={"input-select":"_input-select_4r597_1","input-select--outlined":"_input-select--outlined_4r597_17","input-select--filled":"_input-select--filled_4r597_22","input-select--ghost":"_input-select--ghost_4r597_23","input-select--lg":"_input-select--lg_4r597_38","input-select--md":"_input-select--md_4r597_42","input-select--sm":"_input-select--sm_4r597_46","input-select--error":"_input-select--error_4r597_50","input-select--label":"_input-select--label_4r597_55","input-select--item-label-container":"_input-select--item-label-container_4r597_59","input-select--item-label":"_input-select--item-label_4r597_59","input-select--helper":"_input-select--helper_4r597_74","input-select--trigger-icon":"_input-select--trigger-icon_4r597_78","input-select--placeholder-container":"_input-select--placeholder-container_4r597_87","input-select--placeholder":"_input-select--placeholder_4r597_87","input-select--disabled":"_input-select--disabled_4r597_102","input-select--content":"_input-select--content_4r597_107",slideDownAndFade:"_slideDownAndFade_4r597_1",slideLeftAndFade:"_slideLeftAndFade_4r597_1",slideUpAndFade:"_slideUpAndFade_4r597_1",slideRightAndFade:"_slideRightAndFade_4r597_1",content:"_content_4r597_147","input-select--item":"_input-select--item_4r597_59","input-select--radio-group":"_input-select--radio-group_4r597_166","input-select--icon":"_input-select--icon_4r597_170","input-select--primitive-item":"_input-select--primitive-item_4r597_178","input-select--primitive-item-selected":"_input-select--primitive-item-selected_4r597_191","input-select--checkbox":"_input-select--checkbox_4r597_195","input-select--divider":"_input-select--divider_4r597_199"},Af=({option:e})=>{const{leftIcon:t,label:n,avatarProps:r,description:o,rightIcon:s}=e;return u.jsxs("div",{className:Ve["input-select--item"],children:[t&&u.jsx("span",{className:Ve["input-select--icon"],children:t}),r&&u.jsx(wo,{...r}),u.jsxs("div",{className:Ve["input-select--item-label-container"],children:[n&&u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-1000",className:Ve["input-select--item-label"],children:n}),o&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["input-select--item-label"],children:o})]}),s&&u.jsx("span",{className:Ve["input-select--icon"],children:s})]})},d2=h.forwardRef((e,t)=>{var X;const{label:n,helper:r,placeholder:o,initialValue:s,size:l="md",type:c="default",triggerProps:d,variant:p,error:m,disabled:g,onChange:v,options:b,className:E,contentClassName:_}=e,[w,y]=h.useState(!1),[S,T]=h.useState(s??[]);h.useEffect(()=>{w||s!==void 0&&T(s)},[w,s]);const O=h.useCallback((N,K)=>{(c==="checkbox"||c==="radio")&&K.preventDefault(),y(!0),c==="radio"||c==="default"?T(()=>{const B=[N];return v==null||v(B),B}):S.includes(N)?T(B=>{const V=B.filter(Q=>Q!==N);return v==null||v(V),V}):T(B=>{const V=[...B,N];return v==null||v(V),V})},[S,c,v]),I=h.useCallback((N,K)=>{const B=S.includes(N.value);let V=null;switch(c){case"radio":V=u.jsx(Ad,{onSelect:Q=>O(N.value,Q),className:se(Ve["input-select--primitive-item"],B&&Ve["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(If,{value:N.value,children:u.jsx(Af,{option:N})})});break;case"checkbox":V=u.jsx(Ad,{onSelect:Q=>O(N.value,Q),className:se(Ve["input-select--primitive-item"],B&&Ve["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(Os,{className:Ve["input-select--checkbox"],checked:B,children:u.jsx(Af,{option:N})})});break;default:case"default":V=u.jsx(Ad,{onSelect:Q=>O(N.value,Q),className:se(Ve["input-select--primitive-item"],B&&Ve["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(Af,{option:N})});break}return u.jsxs(h.Fragment,{children:[V,N.hasBottomSeparator&&u.jsx(Yr,{color:"gray-300",className:Ve["input-select--divider"]})]},K)},[O,S,c]),M=N=>b.find(K=>K.value===N),R=S.map(N=>{var K;return(K=M(N))==null?void 0:K.label}),D=S.map(N=>M(N)),k=R.length>0?R.join(", "):o,q=D.length===1?(X=D[0])==null?void 0:X.leftIcon:null,L=h.useRef(null),U=h.useCallback(N=>{N&&setTimeout(()=>{var K,B,V;try{(V=(B=Array.from(((K=L.current)==null?void 0:K.querySelectorAll('[data-selected="true"]'))??[]))==null?void 0:B[0])==null||V.scrollIntoView({block:"center"})}catch{}},50)},[]);return u.jsx("div",{className:se(g&&Ve["input-select--disabled"]),children:u.jsxs(D0,{onOpenChange:U,children:[n&&NO(n,l),u.jsxs(M0,{ref:t,className:se(Ve["input-select"],Ve[`input-select--${p}`],Ve[`input-select--${l}`],m&&Ve["input-select--error"],g&&Ve["input-select--disabled"],E),disabled:g,...d,children:[u.jsxs("div",{className:Ve["input-select--placeholder-container"],children:[q&&u.jsx("span",{className:Ve["input-select--trigger-icon"],children:q}),LO(k,l,!!m)]}),u.jsx("span",{className:Ve["input-select--trigger-icon"],children:u.jsx(c8,{})})]}),r&&(typeof r=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:m?"red-500":"gray-700",className:Ve["input-select--helper"],children:r}):r),u.jsx(A6,{children:u.jsx(P0,{ref:L,className:se(Ve["input-select--content"],_),align:"start",sideOffset:8,children:u.jsx(Dd,{children:u.jsx("div",{className:Ve.content,children:jO(c,b.map(I),S)})})})})]})})});d2.displayName="Select";const NO=(e,t)=>{switch(t){case"lg":return u.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:Ve["input-select--label"],children:e});default:case"md":return u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:Ve["input-select--label"],children:e});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:Ve["input-select--label"],children:e})}},LO=(e,t,n)=>{switch(t){case"lg":return u.jsx(Ce,{size:"sm",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ve["input-select--placeholder"],children:e});default:case"md":return u.jsx(Ce,{size:"xs",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ve["input-select--placeholder"],children:e});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ve["input-select--placeholder"],children:e})}},jO=(e,t,n)=>e==="radio"?u.jsx(c2,{className:Ve["input-select--radio-group"],value:n[0],children:t},n[0]):t,Pr={pagination:"_pagination_46n68_1","pagination--disabled":"_pagination--disabled_46n68_7","pagination--content":"_pagination--content_46n68_11","pagination-button":"_pagination-button_46n68_22","pagination-button--active":"_pagination-button--active_46n68_50","pagination-button--size-sm":"_pagination-button--size-sm_46n68_55","pagination-button--size-md":"_pagination-button--size-md_46n68_61","pagination-button--disabled":"_pagination-button--disabled_46n68_67","pagination-button--text":"_pagination-button--text_46n68_73"};function kO({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=be.useRef(e!==void 0),[s,l]=be.useState(t),c=o?e:s,d=be.useCallback(p=>{o||l(p)},[]);return[c,d]}function FO(e){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:d,page:p,showFirstButton:m=!1,showLastButton:g=!1,siblingCount:v=1,...b}=e,[E,_]=kO({controlled:p,default:o,name:n,state:"page"}),w=(k,q)=>{p||_(q),d&&d(k,q)},y=(k,q)=>{const L=q-k+1;return Array.from({length:L},(U,X)=>k+X)},S=y(1,Math.min(t,r)),T=y(Math.max(r-t+1,t+1),r),O=Math.max(Math.min(E-v,r-t-v*2-1),t+2),I=Math.min(Math.max(E+v,t+v*2+2),T.length>0?T[0]-2:r-1),M=[...m?["first"]:[],...c?[]:["previous"],...S,...O>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(O,I),...I<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...T,...l?[]:["next"],...g?["last"]:[]],R=k=>{switch(k){case"first":return 1;case"previous":return E-1;case"next":return E+1;case"last":return r;default:return null}};return{items:M.map(k=>typeof k=="number"?{onClick:q=>{w(q,k)},type:"page",page:k,selected:k===E,disabled:s,"aria-current":k===E?"true":void 0}:{onClick:q=>{w(q,R(k))},type:k,page:R(k),selected:!1,disabled:s||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?E>=r:E<=1)}),...b}}const u2=h.forwardRef((e,t)=>{const{numberOfPages:n,currentPage:r,className:o,onChangePage:s,size:l="md",disabled:c}=e,{items:d}=FO({count:n,onChange:s,page:r}),p=m=>m.map(({page:g,type:v,selected:b,disabled:E,onClick:_},w)=>{let y=null;switch(v){case"end-ellipsis":case"start-ellipsis":y=u.jsx(Pl,{size:l,disabled:c,style:{pointerEvents:"none"},children:"..."});break;case"page":y=u.jsx(Pl,{size:l,active:b,disabled:E||c,onClick:S=>_(S),children:g});break;case"previous":y=u.jsx(at,{variant:"outlined",color:"primary",size:l,disabled:E||c,onClick:S=>_(S),"aria-label":"Previous Page",children:u.jsx(k_,{})});break;case"next":y=u.jsx(at,{variant:"outlined",color:"primary",size:l,disabled:E||c,onClick:S=>_(S),"aria-label":"Next Page",children:u.jsx(Nc,{})});break}return u.jsx("li",{children:y},w)});return u.jsx("div",{ref:t,className:se(Pr.pagination,c&&Pr["pagination--disabled"],o),children:u.jsx("ul",{className:Pr["pagination--content"],children:p(d)})})});u2.displayName="Pagination";const Pl=h.forwardRef((e,t)=>{const{size:n="md",disabled:r,children:o,active:s,className:l,...c}=e;return u.jsx("button",{ref:t,className:se(Pr["pagination-button"],Pr[`pagination-button--size-${n}`],r&&Pr["pagination-button--disabled"],s&&Pr["pagination-button--active"],l),...c,children:n==="md"?u.jsx(Ce,{size:"sm",fontWeight:"regular",className:Pr["pagination-button--text"],children:o}):u.jsx(He,{size:"md",fontWeight:"regular",className:Pr["pagination-button--text"],children:o})})});Pl.displayName="PaginationButton";const ko={"progress-bar":"_progress-bar_1oktj_1","progress-bar--container":"_progress-bar--container_1oktj_7","progress-bar--inner":"_progress-bar--inner_1oktj_15","progress-bar--size-sm":"_progress-bar--size-sm_1oktj_24","progress-bar--size-lg":"_progress-bar--size-lg_1oktj_28","progress-bar--details":"_progress-bar--details_1oktj_32","progress-bar--percentage":"_progress-bar--percentage_1oktj_39"},f2=h.forwardRef((e,t)=>{const{size:n="lg",value:r,description:o,showPercentage:s,numericValue:l,className:c,...d}=e;return u.jsxs("div",{ref:t,className:se(ko["progress-bar"],c),...d,children:[u.jsx("div",{className:se(ko["progress-bar--container"],ko[`progress-bar--size-${n}`]),children:u.jsx("div",{className:ko["progress-bar--inner"],style:{width:`${r}%`}})}),u.jsxs("div",{className:ko["progress-bar--details"],children:[u.jsx(Ce,{size:"xs",fontWeight:"bold",className:ko["progress-bar--percentage"],children:s?Number.isInteger(r)&&r>=0?`${r}%`:"-":l??"-"}),o&&u.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-700",children:o})]})]})});f2.displayName="ProgressBar";const p2={"reroute-block":"_reroute-block_1f5ri_1","reroute-block-button":"_reroute-block-button_1f5ri_8"},h2=h.forwardRef((e,t)=>{const{selectorProps:n,...r}=e;return u.jsx("div",{ref:t,children:u.jsx(ii,{...r,block:"reroute",children:u.jsxs("div",{className:p2["reroute-block"],children:[u.jsx("div",{className:p2["reroute-block-text"],children:u.jsx(Ce,{color:"gray-1000",size:"sm",children:"Here you can set the destination answer"})}),u.jsx("div",{children:u.jsx(bs,{...n})})]})})})});h2.displayName="RerouteBlock";const g2={tag:"_tag_1wrac_1","quality-metric-icon--size":"_quality-metric-icon--size_1wrac_19"},m2=h.forwardRef((e,t)=>{const{label:n,startIcon:r=!0,endIcon:o=!0,qualityMetricIcon:s,onClick:l,onEndIconClicked:c,className:d,...p}=e,m=g=>{c==null||c(),g.stopPropagation()};return u.jsxs("div",{ref:t,className:se(g2.tag,d),onClick:l,...p,children:[!!s&&u.jsx(Ha,{...s,className:g2["quality-metric-icon--size"]}),r&&u.jsx(oa,{width:12,height:12}),u.jsx(xo,{variant:"tag",color:"gray-1000",children:n}),o&&u.jsx(Pd,{width:12,height:12,className:"cursor-pointer",onClick:m})]})});m2.displayName="TagQualityMetric";const v2="Tabs",[BO,IF]=Ft(v2,[ho]),b2=ho(),[zO,Of]=BO(v2),GO=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:c,activationMode:d="automatic",...p}=e,m=rs(c),[g,v]=hn({prop:r,onChange:o,defaultProp:s});return h.createElement(zO,{scope:n,baseId:Xn(),value:g,onValueChange:v,orientation:l,dir:m,activationMode:d},h.createElement(Pe.div,oe({dir:m,"data-orientation":l},p,{ref:t})))}),UO="TabsList",HO=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Of(UO,n),l=b2(n);return h.createElement(md,oe({asChild:!0},l,{orientation:s.orientation,dir:s.dir,loop:r}),h.createElement(Pe.div,oe({role:"tablist","aria-orientation":s.orientation},o,{ref:t})))}),VO="TabsTrigger",WO=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,l=Of(VO,n),c=b2(n),d=_2(l.baseId,r),p=x2(l.baseId,r),m=r===l.value;return h.createElement(vd,oe({asChild:!0},c,{focusable:!o,active:m}),h.createElement(Pe.button,oe({type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d},s,{ref:t,onMouseDown:Ee(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:Ee(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:Ee(e.onFocus,()=>{const g=l.activationMode!=="manual";!m&&!o&&g&&l.onValueChange(r)})})))}),qO="TabsContent",YO=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...l}=e,c=Of(qO,n),d=_2(c.baseId,r),p=x2(c.baseId,r),m=r===c.value,g=h.useRef(m);return h.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),h.createElement(on,{present:o||m},({present:v})=>h.createElement(Pe.div,oe({"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:p,tabIndex:0},l,{ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0}}),v&&s))});function _2(e,t){return`${e}-trigger-${t}`}function x2(e,t){return`${e}-content-${t}`}const E2=GO,w2=HO,Rl=WO,y2=YO,fi={"tabs--list":"_tabs--list_no35f_1","tabs--trigger":"_tabs--trigger_no35f_9","tabs--trigger-disabled":"_tabs--trigger-disabled_no35f_24","tabs--trigger-content":"_tabs--trigger-content_no35f_35","tabs--icon":"_tabs--icon_no35f_44","tabs--trigger-content-disabled":"_tabs--trigger-content-disabled_no35f_49"},ZO=E2,C2=h.forwardRef(({className:e,...t},n)=>u.jsx(w2,{ref:n,className:se(fi["tabs--list"],e),...t}));C2.displayName="TabsList";const T2=h.forwardRef((e,t)=>{const{value:n,className:r,hasIcon:o=!1,label:s,disabled:l=!1,...c}=e;return u.jsxs(Rl,{ref:t,value:n,className:se(fi["tabs--trigger"],l&&fi["tabs--trigger-disabled"],r),disabled:l,...c,children:[typeof s=="string"?u.jsx(Ce,{size:"sm",className:se(l?fi["tabs--trigger-content-disabled"]:fi["tabs--trigger-content"]),children:s}):s,o&&u.jsx("span",{className:fi["tabs--icon"],children:u.jsx(vx,{className:se(l?fi["tabs--trigger-content-disabled"]:fi["tabs--trigger-content"])})})]})});T2.displayName=Rl.displayName;const S2=h.forwardRef(({className:e,...t},n)=>u.jsx(y2,{ref:n,className:e,...t}));S2.displayName="TabsContent";const $f={"text-block":"_text-block_1vggm_1","text-block-editor":"_text-block-editor_1vggm_6","text-block-checkbox":"_text-block-checkbox_1vggm_14"};function I2(e){return e?[...e].length??0:0}const A2=h.forwardRef((e,t)=>{const{inputRef:n,inputProps:r,...o}=e,[s,l]=h.useState(!1),[c,d]=h.useState(I2((r==null?void 0:r.value)??(r==null?void 0:r.defaultValue))),p=h.useCallback(v=>{var b;d(I2(v.target.value)),(b=r==null?void 0:r.onChange)==null||b.call(r,v)},[r]),m=h.useCallback(()=>{l(v=>!v)},[]),g=s?1200:300;return u.jsx("div",{ref:t,children:u.jsx(ii,{...o,block:"text",children:u.jsxs("div",{className:$f["text-block"],children:[u.jsx("div",{className:$f["text-block-editor"],children:u.jsx(Dr,{helperText:c+`/${g} characters`,placeholder:"Write your answer here...",rows:3,size:"md",variant:"filled",ref:n,maxLength:g,...r,onChange:p})}),u.jsx("div",{className:$f["text-block-checkbox"],children:u.jsx(Os,{small:!0,checked:s,onCheckedChange:m,label:"Caption"})})]})})})});A2.displayName="TextBlock";const O2="ToastProvider",[Df,XO,KO]=aa("Toast"),[$2,AF]=Ft("Toast",[KO]),[QO,Nl]=$2(O2),D2=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:l}=e,[c,d]=h.useState(null),[p,m]=h.useState(0),g=h.useRef(!1),v=h.useRef(!1);return h.createElement(Df.Provider,{scope:t},h.createElement(QO,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:p,viewport:c,onViewportChange:d,onToastAdd:h.useCallback(()=>m(b=>b+1),[]),onToastRemove:h.useCallback(()=>m(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:v},l))};D2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${O2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const JO="ToastViewport",e$=["F8"],Mf="toast.viewportPause",Pf="toast.viewportResume",t$=h.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=e$,label:o="Notifications ({hotkey})",...s}=e,l=Nl(JO,n),c=XO(n),d=h.useRef(null),p=h.useRef(null),m=h.useRef(null),g=h.useRef(null),v=et(t,g,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;h.useEffect(()=>{const w=y=>{var S;r.every(O=>y[O]||y.code===O)&&((S=g.current)===null||S===void 0||S.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),h.useEffect(()=>{const w=d.current,y=g.current;if(E&&w&&y){const S=()=>{if(!l.isClosePausedRef.current){const M=new CustomEvent(Mf);y.dispatchEvent(M),l.isClosePausedRef.current=!0}},T=()=>{if(l.isClosePausedRef.current){const M=new CustomEvent(Pf);y.dispatchEvent(M),l.isClosePausedRef.current=!1}},O=M=>{!w.contains(M.relatedTarget)&&T()},I=()=>{w.contains(document.activeElement)||T()};return w.addEventListener("focusin",S),w.addEventListener("focusout",O),w.addEventListener("pointermove",S),w.addEventListener("pointerleave",I),window.addEventListener("blur",S),window.addEventListener("focus",T),()=>{w.removeEventListener("focusin",S),w.removeEventListener("focusout",O),w.removeEventListener("pointermove",S),w.removeEventListener("pointerleave",I),window.removeEventListener("blur",S),window.removeEventListener("focus",T)}}},[E,l.isClosePausedRef]);const _=h.useCallback(({tabbingDirection:w})=>{const S=c().map(T=>{const O=T.ref.current,I=[O,...v$(O)];return w==="forwards"?I:I.reverse()});return(w==="forwards"?S.reverse():S).flat()},[c]);return h.useEffect(()=>{const w=g.current;if(w){const y=S=>{const T=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!T){const D=document.activeElement,k=S.shiftKey;if(S.target===w&&k){var I;(I=p.current)===null||I===void 0||I.focus();return}const U=_({tabbingDirection:k?"backwards":"forwards"}),X=U.findIndex(N=>N===D);if(Rf(U.slice(X+1)))S.preventDefault();else{var M,R;k?(M=p.current)===null||M===void 0||M.focus():(R=m.current)===null||R===void 0||R.focus()}}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[c,_]),h.createElement(f3,{ref:d,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&h.createElement(M2,{ref:p,onFocusFromOutsideViewport:()=>{const w=_({tabbingDirection:"forwards"});Rf(w)}}),h.createElement(Df.Slot,{scope:n},h.createElement(Pe.ol,oe({tabIndex:-1},s,{ref:v}))),E&&h.createElement(M2,{ref:m,onFocusFromOutsideViewport:()=>{const w=_({tabbingDirection:"backwards"});Rf(w)}}))}),n$="ToastFocusProxy",M2=h.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Nl(n$,n);return h.createElement(Nd,oe({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:l=>{var c;const d=l.relatedTarget;!((c=s.viewport)!==null&&c!==void 0&&c.contains(d))&&r()}}))}),Ll="Toast",r$="toast.swipeStart",i$="toast.swipeMove",o$="toast.swipeCancel",s$="toast.swipeEnd",a$=h.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...l}=e,[c=!0,d]=hn({prop:r,defaultProp:o,onChange:s});return h.createElement(on,{present:n||c},h.createElement(P2,oe({open:c},l,{ref:t,onClose:()=>d(!1),onPause:rn(e.onPause),onResume:rn(e.onResume),onSwipeStart:Ee(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Ee(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(e.onSwipeEnd,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),d(!1)})})))}),[l$,c$]=$2(Ll,{onClose(){}}),P2=h.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:l,onEscapeKeyDown:c,onPause:d,onResume:p,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:v,onSwipeEnd:b,...E}=e,_=Nl(Ll,n),[w,y]=h.useState(null),S=et(t,N=>y(N)),T=h.useRef(null),O=h.useRef(null),I=o||_.duration,M=h.useRef(0),R=h.useRef(I),D=h.useRef(0),{onToastAdd:k,onToastRemove:q}=_,L=rn(()=>{var N;(w==null?void 0:w.contains(document.activeElement))&&((N=_.viewport)===null||N===void 0||N.focus()),l()}),U=h.useCallback(N=>{!N||N===1/0||(window.clearTimeout(D.current),M.current=new Date().getTime(),D.current=window.setTimeout(L,N))},[L]);h.useEffect(()=>{const N=_.viewport;if(N){const K=()=>{U(R.current),p==null||p()},B=()=>{const V=new Date().getTime()-M.current;R.current=R.current-V,window.clearTimeout(D.current),d==null||d()};return N.addEventListener(Mf,B),N.addEventListener(Pf,K),()=>{N.removeEventListener(Mf,B),N.removeEventListener(Pf,K)}}},[_.viewport,I,d,p,U]),h.useEffect(()=>{s&&!_.isClosePausedRef.current&&U(I)},[s,I,_.isClosePausedRef,U]),h.useEffect(()=>(k(),()=>q()),[k,q]);const X=h.useMemo(()=>w?N2(w):null,[w]);return _.viewport?h.createElement(h.Fragment,null,X&&h.createElement(d$,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},X),h.createElement(l$,{scope:n,onClose:L},On.createPortal(h.createElement(Df.ItemSlot,{scope:n},h.createElement(u3,{asChild:!0,onEscapeKeyDown:Ee(c,()=>{_.isFocusedToastEscapeKeyDownRef.current||L(),_.isFocusedToastEscapeKeyDownRef.current=!1})},h.createElement(Pe.li,oe({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":_.swipeDirection},E,{ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,N=>{N.key==="Escape"&&(c==null||c(N.nativeEvent),N.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Ee(e.onPointerDown,N=>{N.button===0&&(T.current={x:N.clientX,y:N.clientY})}),onPointerMove:Ee(e.onPointerMove,N=>{if(!T.current)return;const K=N.clientX-T.current.x,B=N.clientY-T.current.y,V=!!O.current,Q=["left","right"].includes(_.swipeDirection),W=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,G=Q?W(0,K):0,Y=Q?0:W(0,B),de=N.pointerType==="touch"?10:2,ue={x:G,y:Y},fe={originalEvent:N,delta:ue};V?(O.current=ue,jl(i$,g,fe,{discrete:!1})):L2(ue,_.swipeDirection,de)?(O.current=ue,jl(r$,m,fe,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(K)>de||Math.abs(B)>de)&&(T.current=null)}),onPointerUp:Ee(e.onPointerUp,N=>{const K=O.current,B=N.target;if(B.hasPointerCapture(N.pointerId)&&B.releasePointerCapture(N.pointerId),O.current=null,T.current=null,K){const V=N.currentTarget,Q={originalEvent:N,delta:K};L2(K,_.swipeDirection,_.swipeThreshold)?jl(s$,b,Q,{discrete:!0}):jl(o$,v,Q,{discrete:!0}),V.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})))),_.viewport))):null});P2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Ll}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const d$=e=>{const{__scopeToast:t,children:n,...r}=e,o=Nl(Ll,t),[s,l]=h.useState(!1),[c,d]=h.useState(!1);return g$(()=>l(!0)),h.useEffect(()=>{const p=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(p)},[]),c?null:h.createElement(_a,{asChild:!0},h.createElement(Nd,r,s&&h.createElement(h.Fragment,null,o.label," ",n)))},u$="ToastAction",f$=h.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?h.createElement(R2,{altText:n,asChild:!0},h.createElement(h$,oe({},r,{ref:t}))):null});f$.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${u$}\``)}};const p$="ToastClose",h$=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=c$(p$,n);return h.createElement(R2,{asChild:!0},h.createElement(Pe.button,oe({type:"button"},r,{ref:t,onClick:Ee(e.onClick,o.onClose)})))}),R2=h.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return h.createElement(Pe.div,oe({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))});function N2(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),m$(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...N2(r))}}),t}function jl(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bc(o,s):o.dispatchEvent(s)}const L2=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function g$(e=()=>{}){const t=rn(e);Zr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function m$(e){return e.nodeType===e.ELEMENT_NODE}function v$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const b$=D2,j2=t$,k2=a$,Ki={"toast--toaster-container":"_toast--toaster-container_172io_1","toast--viewport":"_toast--viewport_172io_9","toast--left-icon":"_toast--left-icon_172io_47","toast--close-icon":"_toast--close-icon_172io_51","toast--text-container":"_toast--text-container_172io_59","toast--root":"_toast--root_172io_67",slideIn:"_slideIn_172io_1",hide:"_hide_172io_1",swipeOut:"_swipeOut_172io_1","toast--root-gray-outlined":"_toast--root-gray-outlined_172io_117","toast--root-gray-soft":"_toast--root-gray-soft_172io_122","toast--root-gray-dark":"_toast--root-gray-dark_172io_127","toast--root-red-outlined":"_toast--root-red-outlined_172io_132","toast--root-red-soft":"_toast--root-red-soft_172io_137","toast--root-red-dark":"_toast--root-red-dark_172io_142","toast--root-green-outlined":"_toast--root-green-outlined_172io_147","toast--root-green-soft":"_toast--root-green-soft_172io_152","toast--root-green-dark":"_toast--root-green-dark_172io_157"},_$=b$,F2=h.forwardRef(({className:e,...t},n)=>u.jsx(j2,{ref:n,className:se(Ki["toast--viewport"],e),...t}));F2.displayName=j2.displayName;const B2=h.forwardRef(({className:e,...t},n)=>u.jsx(k2,{ref:n,className:e,...t}));B2.displayName=k2.displayName;const x$=({color:e,variant:t})=>({gray:{outlined:"gray-1000",soft:"gray-1000",dark:"white"},red:{outlined:"red-600",soft:"red-800",dark:"red-100"},green:{outlined:"green-700",soft:"green-800",dark:"green-100"}})[e][t],E$=()=>{const{toasts:e,dismiss:t}=G2();return u.jsxs(_$,{children:[e.map(n=>{const{id:r,title:o,description:s,leftIcon:l,hasCloseIcon:c,action:d,variant:p="outlined",color:m="gray",...g}=n,v=x$({color:m,variant:p});return u.jsx(B2,{id:r,className:se(Ki["toast--root"],Ki[`toast--root-${m}-${p}`]),...g,children:u.jsxs("div",{className:Ki["toast--toaster-container"],children:[l&&u.jsx("span",{className:se(Ki["toast--left-icon"],`text--${v}`),children:l}),u.jsxs("div",{className:Ki["toast--text-container"],children:[o&&u.jsx(Ce,{size:"sm",fontWeight:"bold",color:v,children:o}),s&&u.jsx(Ce,{size:"xs",fontWeight:"regular",color:v,children:s})]}),c?u.jsx("span",{className:se(Ki["toast--close-icon"],`text--${v}`),children:u.jsx(Vx,{onClick:()=>t()})}):d]})},r)}),u.jsx(F2,{})]})},w$=1,y$=1e6;let Nf=0;function C$(){return Nf=(Nf+1)%Number.MAX_VALUE,Nf.toString()}const Lf=new Map,z2=e=>{if(Lf.has(e))return;const t=setTimeout(()=>{Lf.delete(e),ks({type:"REMOVE_TOAST",toastId:e})},y$);Lf.set(e,t)},T$=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,w$)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?z2(n):e.toasts.forEach(r=>{z2(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},kl=[];let Fl={toasts:[]};function ks(e){Fl=T$(Fl,e),kl.forEach(t=>{t(Fl)})}function S$({...e}){const t=C$(),n=o=>ks({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>ks({type:"DISMISS_TOAST",toastId:t});return ks({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function G2(){const[e,t]=h.useState(Fl);return h.useEffect(()=>(kl.push(t),()=>{const n=kl.indexOf(t);n>-1&&kl.splice(n,1)}),[e]),{...e,toast:S$,dismiss:n=>ks({type:"DISMISS_TOAST",toastId:n})}}const Fs={"tooltip-quality-metric":"_tooltip-quality-metric_zpfvr_1",slideUpAndFade:"_slideUpAndFade_zpfvr_1",slideDownAndFade:"_slideDownAndFade_zpfvr_1","tooltip-quality-metric--topbar":"_tooltip-quality-metric--topbar_zpfvr_23","tooltip-quality-metric--tag":"_tooltip-quality-metric--tag_zpfvr_32","tooltip-quality-metric--answer-content":"_tooltip-quality-metric--answer-content_zpfvr_40","tooltip-quality-metric--divider":"_tooltip-quality-metric--divider_zpfvr_72"},U2=h.forwardRef((e,t)=>{const{title:n,qualityMetricTitle:r,leftTagProps:o,rightTagProps:s,answerContentText:l,description:c,buttonProps:d,sideOffset:p=8,className:m,...g}=e;return u.jsxs(Bd,{ref:t,sideOffset:p,className:se(Fs["tooltip-quality-metric"],m),...g,children:[u.jsxs("div",{className:Fs["tooltip-quality-metric--topbar"],children:[u.jsx(He,{size:"md",fontWeight:"bold",isUppercase:!0,children:n}),u.jsx(At,{...d,children:d.label})]}),typeof r=="string"?u.jsx(He,{size:"md",fontWeight:"bold",children:r}):r,u.jsxs("div",{className:Fs["tooltip-quality-metric--tag"],children:[o&&u.jsx(Jn,{...o}),s&&u.jsx(Jn,{...s})]}),u.jsx("div",{className:Fs["tooltip-quality-metric--answer-content"],children:typeof l=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",children:l}):l}),u.jsx(Yr,{color:"gray-300",className:Fs["tooltip-quality-metric--divider"]}),typeof c=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",children:c}):c]})});U2.displayName="TooltipQualityMetric";const Fo={"vertical-tabs--root":"_vertical-tabs--root_ksiqw_1","vertical-tabs--list":"_vertical-tabs--list_ksiqw_6","vertical-tabs--trigger":"_vertical-tabs--trigger_ksiqw_13","vertical-tabs--trigger-disabled":"_vertical-tabs--trigger-disabled_ksiqw_27","vertical-tabs--trigger-content":"_vertical-tabs--trigger-content_ksiqw_36","vertical-tabs--trigger-content-disabled":"_vertical-tabs--trigger-content-disabled_ksiqw_45","vertical-tabs--chat-title-container":"_vertical-tabs--chat-title-container_ksiqw_50","vertical-tabs--chat-preview-container":"_vertical-tabs--chat-preview-container_ksiqw_58"},H2=h.forwardRef(({className:e,...t},n)=>u.jsx(E2,{ref:n,className:se(Fo["vertical-tabs--root"],e),orientation:"vertical",...t}));H2.displayName="VerticalTabs";const V2=h.forwardRef(({className:e,...t},n)=>u.jsx(w2,{ref:n,className:se(Fo["vertical-tabs--list"],e),...t}));V2.displayName="TabChatList";const W2=h.forwardRef((e,t)=>{const{value:n,title:r,preview:o,time:s,timeUnit:l="MIN",className:c,disabled:d=!1,avatarProps:p,needSupportLabel:m="Needs your support",needSupportIcon:g,isTyping:v,isTypingLabel:b="Is typing...",onNeedSupportClicked:E,..._}=e;return u.jsxs(Rl,{ref:t,value:n,className:se(Fo["vertical-tabs--trigger"],d&&Fo["vertical-tabs--trigger-disabled"],c),disabled:d,..._,children:[u.jsx(wo,{...p}),u.jsxs("div",{children:[u.jsxs("div",{className:Fo["vertical-tabs--chat-title-container"],children:[r&&u.jsx(Ce,{size:"sm",fontWeight:"bold",children:r}),s&&u.jsx(He,{size:"md",isUppercase:!0,children:`${s} ${l}`})]}),u.jsx("div",{className:Fo["vertical-tabs--chat-preview-container"],children:v?u.jsx(He,{size:"md",fontWeight:"bold",color:"green-600",children:b}):u.jsxs(u.Fragment,{children:[o&&u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:o}),u.jsx(At,{variant:"text",startIcon:g||u.jsx(S_,{}),size:"xs",onClick:E,children:m})]})})]})]})});W2.displayName=Rl.displayName;const q2=h.forwardRef(({className:e,...t},n)=>u.jsx(y2,{ref:n,className:e,...t}));q2.displayName="TabsContent";const pi={"video-block":"_video-block_1s3ee_1","video-container":"_video-container_1s3ee_6",video:"_video_1s3ee_1","video-description":"_video-description_1s3ee_24","video-block-input-container":"_video-block-input-container_1s3ee_31","video-block-instance-slot-container":"_video-block-instance-slot-container_1s3ee_39","video-block-spinner":"_video-block-spinner_1s3ee_46",rotation:"_rotation_1s3ee_1","is-dragging":"_is-dragging_1s3ee_69"},Y2=h.forwardRef((e,t)=>{const{video:n,originalUrl:r,urlWithVariables:o,fileName:s,title:l,isUploading:c,altText:d,onDeleteBlock:p,onDeleteVideo:m,connectVideo:g,onSaveTitle:v,onSaveAltText:b,...E}=e,[_,w]=h.useState(d||""),y=l||"Video",S=I=>{b&&b(_)},T=I=>{g&&g(I)},O=()=>{m&&m()};return u.jsx(ii,{block:"video",onDeleteBlock:p,...E,ref:t,className:pi["video-block"],children:u.jsxs("div",{children:[u.jsxs("div",{className:pi["video-block-instance-slot-container"],children:[u.jsx(za,{initialLabel:y,onSaveLabel:v}),o?u.jsxs("div",{children:[" ",u.jsx(Ce,{children:" The video to display will be determined based on the value of the variables "})," "]}):n?u.jsxs("div",{className:pi["video-container"],children:[n.match(".mp4$")?u.jsx("video",{controls:!0,className:pi.video,"data-testid":"block-video",children:u.jsx("source",{src:n,type:"video/mp4"})}):u.jsx("iframe",{title:"video-block",className:pi.video,src:n,"data-testid":"block-iframe","aria-label":"Video Player"}),u.jsxs("div",{className:pi["video-description"],children:[u.jsx(Ce,{color:"gray-1000",size:"xs",fontWeight:"bold",children:s?`${s} - `:""}),u.jsx(Ce,{color:"gray-1000",size:"xs",children:r||n}),u.jsx(at,{size:"sm",onClick:O,variant:"ghost",children:u.jsx(Rd,{})})]})]}):c?u.jsx("div",{className:pi["video-block-spinner"],children:u.jsx("span",{children:u.jsx(sa,{})})}):u.jsx(Dl,{status:"video",onConnect:T})]}),u.jsx("div",{className:pi["video-block-input-container"],children:u.jsx(Dr,{label:"Label",helperText:"Add a brief description of video content, eg. Tutorial about XYZ",placeholder:"Describe video",rows:1,autoResize:!0,size:"md",variant:"filled",value:_,onChange:I=>w(I.target.value),onBlur:S})})]})})});Y2.displayName="VideoBlock",ge.Accordion=Ep,ge.AccordionPanel=wp,ge.AiDropdown=bs,ge.AiDropdownContent=hh,ge.AtomNameDivBlockModule=za,ge.AtomTopModulo=Jd,ge.Avatar=wo,ge.AvatarBot=Vd,ge.AvatarWorkspace=mh,ge.Badge=qd,ge.Block=ii,ge.Breadcrumb=xh,ge.BuilderBlockToolbar=Jh,ge.BuilderBlockToolbarContext=Qh,ge.Button=At,ge.Caption=He,ge.ChatContainer=rg,ge.ChatContent=Xy,ge.ChatHeader=m9,ge.ChatRoot=tg,ge.ChatTrigger=ng,ge.Checkbox=Os,ge.Divider=Yr,ge.EmptyState=Dl,ge.Heading=pf,ge.IconButton=at,ge.ImageBlock=Sv,ge.ImageUploader=yv,ge.Label=xo,ge.Logo=gA,ge.MailBlock=Gv,ge.Modal=PA,ge.ModalContent=kv,ge.ModalTrigger=RA,ge.MultipleValues=mO,ge.NotesBlock=n2,ge.Pagination=u2,ge.PaginationButton=Pl,ge.ProgressBar=f2,ge.QualityMetricIcon=Ha,ge.Radio=If,ge.RadioGroup=c2,ge.RerouteBlock=h2,ge.Select=d2,ge.TabChat=W2,ge.TabChatContent=q2,ge.TabChatList=V2,ge.Tabs=ZO,ge.TabsContent=S2,ge.TabsList=C2,ge.TabsTrigger=T2,ge.Tag=Jn,ge.TagQualityMetric=m2,ge.Text=Ce,ge.TextBlock=A2,ge.TextField=Dn,ge.TextFieldMultiline=Dr,ge.TitleBlockModule=Kd,ge.Toaster=E$,ge.Toggle=mf,ge.ToolbarIcon=_h,ge.Tooltip=La,ge.TooltipContent=hs,ge.TooltipQualityMetric=U2,ge.TooltipTrigger=gs,ge.VerticalTabs=H2,ge.VideoBlock=Y2,ge.useToast=G2,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
|
|
159
|
+
*/var Uv;function KO(){return Uv||(Uv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=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,u=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(ue){return typeof ue=="string"||typeof ue=="function"||ue===r||ue===p||ue===s||ue===i||ue===g||ue===v||typeof ue=="object"&&ue!==null&&(ue.$$typeof===E||ue.$$typeof===b||ue.$$typeof===l||ue.$$typeof===c||ue.$$typeof===m||ue.$$typeof===w||ue.$$typeof===y||ue.$$typeof===S||ue.$$typeof===_)}function A(ue){if(typeof ue=="object"&&ue!==null){var bt=ue.$$typeof;switch(bt){case t:var Ke=ue.type;switch(Ke){case u:case p:case r:case s:case i:case g:return Ke;default:var wt=Ke&&Ke.$$typeof;switch(wt){case c:case m:case E:case b:case l:return wt;default:return bt}}case n:return bt}}}var I=u,M=p,R=c,D=l,k=t,Y=m,L=r,G=E,X=b,N=n,K=s,B=i,W=g,J=!1;function q(ue){return J||(J=!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.")),U(ue)||A(ue)===u}function U(ue){return A(ue)===p}function V(ue){return A(ue)===c}function ce(ue){return A(ue)===l}function de(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===t}function fe(ue){return A(ue)===m}function we(ue){return A(ue)===r}function ne(ue){return A(ue)===E}function le(ue){return A(ue)===b}function ge(ue){return A(ue)===n}function be(ue){return A(ue)===s}function pe(ue){return A(ue)===i}function We(ue){return A(ue)===g}Xe.AsyncMode=I,Xe.ConcurrentMode=M,Xe.ContextConsumer=R,Xe.ContextProvider=D,Xe.Element=k,Xe.ForwardRef=Y,Xe.Fragment=L,Xe.Lazy=G,Xe.Memo=X,Xe.Portal=N,Xe.Profiler=K,Xe.StrictMode=B,Xe.Suspense=W,Xe.isAsyncMode=q,Xe.isConcurrentMode=U,Xe.isContextConsumer=V,Xe.isContextProvider=ce,Xe.isElement=de,Xe.isForwardRef=fe,Xe.isFragment=we,Xe.isLazy=ne,Xe.isMemo=le,Xe.isPortal=ge,Xe.isProfiler=be,Xe.isStrictMode=pe,Xe.isSuspense=We,Xe.isValidElementType=T,Xe.typeOf=A}()),Xe}var Vv;function Wv(){return Vv||(Vv=1,process.env.NODE_ENV==="production"?Dl.exports=XO():Dl.exports=KO()),Dl.exports}var _f,qv;function xf(){if(qv)return _f;qv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _f=e,_f}var Ef,Yv;function Zv(){return Yv||(Yv=1,Ef=Function.call.bind(Object.prototype.hasOwnProperty)),Ef}var wf,Xv;function QO(){if(Xv)return wf;Xv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xf(),n={},r=Zv();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,p){if(process.env.NODE_ENV!=="production"){for(var m in s)if(r(s,m)){var g;try{if(typeof s[m]!="function"){var v=Error((u||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=s[m](l,m,u,c,null,t)}catch(E){g=E}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var b=p?p():"";e("Failed "+c+" type: "+g.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wf=i,wf}var yf,Kv;function JO(){if(Kv)return yf;Kv=1;var e=Wv(),t=Dc(),n=xf(),r=Zv(),i=QO(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return yf=function(c,u){var p=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(U){var V=U&&(p&&U[p]||U[m]);if(typeof V=="function")return V}var v="<<anonymous>>",b={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:S(),arrayOf:T,element:A(),elementType:I(),instanceOf:M,node:Y(),objectOf:D,oneOf:R,oneOfType:k,shape:G,exact:X};function E(U,V){return U===V?U!==0||1/U===1/V:U!==U&&V!==V}function _(U,V){this.message=U,this.data=V&&typeof V=="object"?V:{},this.stack=""}_.prototype=Error.prototype;function w(U){if(process.env.NODE_ENV!=="production")var V={},ce=0;function de(we,ne,le,ge,be,pe,We){if(ge=ge||v,pe=pe||le,We!==n){if(u){var ue=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 ue.name="Invariant Violation",ue}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var bt=ge+":"+le;!V[bt]&&ce<3&&(s("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+ge+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[bt]=!0,ce++)}}return ne[le]==null?we?ne[le]===null?new _("The "+be+" `"+pe+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new _("The "+be+" `"+pe+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:U(ne,le,ge,be,pe)}var fe=de.bind(null,!1);return fe.isRequired=de.bind(null,!0),fe}function y(U){function V(ce,de,fe,we,ne,le){var ge=ce[de],be=B(ge);if(be!==U){var pe=W(ge);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+pe+"` supplied to `"+fe+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return w(V)}function S(){return w(l)}function T(U){function V(ce,de,fe,we,ne){if(typeof U!="function")return new _("Property `"+ne+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var le=ce[de];if(!Array.isArray(le)){var ge=B(le);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+fe+"`, expected an array."))}for(var be=0;be<le.length;be++){var pe=U(le,be,fe,we,ne+"["+be+"]",n);if(pe instanceof Error)return pe}return null}return w(V)}function A(){function U(V,ce,de,fe,we){var ne=V[ce];if(!c(ne)){var le=B(ne);return new _("Invalid "+fe+" `"+we+"` of type "+("`"+le+"` supplied to `"+de+"`, expected a single ReactElement."))}return null}return w(U)}function I(){function U(V,ce,de,fe,we){var ne=V[ce];if(!e.isValidElementType(ne)){var le=B(ne);return new _("Invalid "+fe+" `"+we+"` of type "+("`"+le+"` supplied to `"+de+"`, expected a single ReactElement type."))}return null}return w(U)}function M(U){function V(ce,de,fe,we,ne){if(!(ce[de]instanceof U)){var le=U.name||v,ge=q(ce[de]);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+fe+"`, expected ")+("instance of `"+le+"`."))}return null}return w(V)}function R(U){if(!Array.isArray(U))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 V(ce,de,fe,we,ne){for(var le=ce[de],ge=0;ge<U.length;ge++)if(E(le,U[ge]))return null;var be=JSON.stringify(U,function(We,ue){var bt=W(ue);return bt==="symbol"?String(ue):ue});return new _("Invalid "+we+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+fe+"`, expected one of "+be+"."))}return w(V)}function D(U){function V(ce,de,fe,we,ne){if(typeof U!="function")return new _("Property `"+ne+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var le=ce[de],ge=B(le);if(ge!=="object")return new _("Invalid "+we+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+fe+"`, expected an object."));for(var be in le)if(r(le,be)){var pe=U(le,be,fe,we,ne+"."+be,n);if(pe instanceof Error)return pe}return null}return w(V)}function k(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var V=0;V<U.length;V++){var ce=U[V];if(typeof ce!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(ce)+" at index "+V+"."),l}function de(fe,we,ne,le,ge){for(var be=[],pe=0;pe<U.length;pe++){var We=U[pe],ue=We(fe,we,ne,le,ge,n);if(ue==null)return null;ue.data&&r(ue.data,"expectedType")&&be.push(ue.data.expectedType)}var bt=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new _("Invalid "+le+" `"+ge+"` supplied to "+("`"+ne+"`"+bt+"."))}return w(de)}function Y(){function U(V,ce,de,fe,we){return N(V[ce])?null:new _("Invalid "+fe+" `"+we+"` supplied to "+("`"+de+"`, expected a ReactNode."))}return w(U)}function L(U,V,ce,de,fe){return new _((U||"React class")+": "+V+" type `"+ce+"."+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function G(U){function V(ce,de,fe,we,ne){var le=ce[de],ge=B(le);if(ge!=="object")return new _("Invalid "+we+" `"+ne+"` of type `"+ge+"` "+("supplied to `"+fe+"`, expected `object`."));for(var be in U){var pe=U[be];if(typeof pe!="function")return L(fe,we,ne,be,W(pe));var We=pe(le,be,fe,we,ne+"."+be,n);if(We)return We}return null}return w(V)}function X(U){function V(ce,de,fe,we,ne){var le=ce[de],ge=B(le);if(ge!=="object")return new _("Invalid "+we+" `"+ne+"` of type `"+ge+"` "+("supplied to `"+fe+"`, expected `object`."));var be=t({},ce[de],U);for(var pe in be){var We=U[pe];if(r(U,pe)&&typeof We!="function")return L(fe,we,ne,pe,W(We));if(!We)return new _("Invalid "+we+" `"+ne+"` key `"+pe+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(ce[de],null," ")+`
|
|
160
|
+
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var ue=We(le,pe,fe,we,ne+"."+pe,n);if(ue)return ue}return null}return w(V)}function N(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(N);if(U===null||c(U))return!0;var V=g(U);if(V){var ce=V.call(U),de;if(V!==U.entries){for(;!(de=ce.next()).done;)if(!N(de.value))return!1}else for(;!(de=ce.next()).done;){var fe=de.value;if(fe&&!N(fe[1]))return!1}}else return!1;return!0;default:return!1}}function K(U,V){return U==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function B(U){var V=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":K(V,U)?"symbol":V}function W(U){if(typeof U>"u"||U===null)return""+U;var V=B(U);if(V==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return V}function J(U){var V=W(U);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function q(U){return!U.constructor||!U.constructor.name?v:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},yf}var Cf,Qv;function eA(){if(Qv)return Cf;Qv=1;var e=xf();function t(){}function n(){}return n.resetWarningCache=t,Cf=function(){function r(l,c,u,p,m,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Cf}if(process.env.NODE_ENV!=="production"){var tA=Wv(),nA=!0;bf.exports=JO()(tA.isElement,nA)}else bf.exports=eA()();var rA=bf.exports;const Ge=Oc(rA);function iA(e){return h.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},h.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const oA={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},sA=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class aA extends h.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=h.createRef(),this.sizer=h.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);sA.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:s,classNames:l,inputAttributes:c,inputEventHandlers:u,index:p}=this.props;return h.createElement("div",{className:l.searchWrapper},h.createElement("input",Object.assign({},c,u,{ref:this.input,value:n,placeholder:i,className:l.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":p>-1?`${t}-${p}`:null,"aria-expanded":s,style:{width:this.state.inputWidth}})),h.createElement("div",{ref:this.sizer,style:oA},n||i))}}function Tf(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function lA(e){return new RegExp(Tf(e),"gi")}function cA(e){return new RegExp(`(?:^|\\s)${Tf(e)}`,"i")}function uA(e){return new RegExp(`^${Tf(e)}$`,"i")}function dA(e,t){const n=lA(t);return e.replace(n,"<mark>$&</mark>")}function fA({item:e,query:t}){return h.createElement("span",{dangerouslySetInnerHTML:{__html:dA(e.name,t)}})}function pA(e){const t=e.suggestionComponent||fA,n=e.options.map((r,i)=>{const s=`${e.id}-${i}`,l=[];return e.index===i&&l.push(e.classNames.suggestionActive),r.disabled&&l.push(e.classNames.suggestionDisabled),h.createElement("li",{id:s,key:s,role:"option",className:l.join(" "),"aria-disabled":!!r.disabled,onMouseDown:c=>c.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?h.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:h.createElement(t,{item:r,query:e.query}))});return h.createElement("div",{className:e.classNames.suggestions},h.createElement("ul",{role:"listbox",id:e.id},n))}function hA(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,s=>s===t),i=n[r-1]||n[r+1];i&&i.focus()}const Xi={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},Jv={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function e2(e,t){return e.findIndex(n=>uA(t).test(n.name))}function Sf(){if(this.state.query.length>=this.props.minQueryLength){const e=e2(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function gA(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function mA(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function vA(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function bA(e,t){return cA(t).test(e.name)}function _A(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&e2(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class If extends h.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=h.createRef(),this.input=h.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?Sf.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),Sf.call(this)),t.key===Xi.BACKSPACE&&this.props.allowBackspace&&vA.call(this,t),(t.key===Xi.UP_ARROW||t.key===Xi.UP_ARROW_COMPAT)&&gA.call(this,t),(t.key===Xi.DOWN_ARROW||t.key===Xi.DOWN_ARROW_COMPAT)&&mA.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&Sf.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&hA(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||iA,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},Jv,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),h.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},h.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((s,l)=>h.createElement(t,{key:l,tag:s,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,l)}))),h.createElement("div",{className:r.search},h.createElement(aA,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?h.createElement(pA,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:_A(t,n)}:null}}If.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:bA,suggestionsTransform:null,autoresize:!0,classNames:Jv,delimiters:[Xi.TAB,Xi.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}},If.propTypes={id:Ge.string,tags:Ge.arrayOf(Ge.object),placeholderText:Ge.string,ariaLabelText:Ge.string,removeButtonText:Ge.string,noSuggestionsText:Ge.string,newTagText:Ge.string,suggestions:Ge.arrayOf(Ge.object),suggestionsFilter:Ge.func,suggestionsTransform:Ge.func,autoresize:Ge.bool,delimiters:Ge.arrayOf(Ge.string),onDelete:Ge.func.isRequired,onAddition:Ge.func.isRequired,onInput:Ge.func,onFocus:Ge.func,onBlur:Ge.func,onValidate:Ge.func,minQueryLength:Ge.number,maxSuggestionsLength:Ge.number,classNames:Ge.object,allowNew:Ge.bool,allowBackspace:Ge.bool,addOnBlur:Ge.bool,tagComponent:Ge.oneOfType([Ge.func,Ge.element]),suggestionComponent:Ge.oneOfType([Ge.func,Ge.element]),inputAttributes:Ge.object};const xA=[",","Enter","Tab"],EA=e=>{const{tag:t,onDelete:n}=e;return d.jsx(Qn,{label:(t==null?void 0:t.name)??"",variant:"filled",color:"purple",onCloseIconClicked:n})},wA=e=>{const{label:t,size:n="md",variant:r="outlined",disabled:i,className:s,inputClassNames:l,contentClassName:c,helperText:u,error:p,placeholder:m,values:g,onAddition:v,onDelete:b,onInput:E,allowNew:_=!0,addOnBlur:w=!1,onBlur:y,inputAttributes:S,inputRef:T,delimiters:A=xA,minQueryLength:I=2}=e,M=(D,k)=>{switch(k){case"lg":return d.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:br["multiple-values--label-text"],children:D});default:case"md":return d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:br["multiple-values--label-text"],children:D});case"sm":return d.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:br["multiple-values--label-text"],children:D})}},R=h.useMemo(()=>({disabled:i,...S}),[i,S]);return d.jsxs("div",{className:ae(br["multiple-values--container"],i&&br["input-text-field--disabled"],s),children:[t&&M(t,n),d.jsx("div",{className:ae(br["multiple-values--content"],br[`multiple-values--size-${n}`],br[`multiple-values--${r}`],p&&br["multiple-values--error"],c),children:d.jsx(If,{ref:T,classNames:l,tags:g,placeholderText:m,tagComponent:EA,delimiters:A,inputAttributes:R,allowNew:_,onAddition:v,onDelete:b,onBlur:y,addOnBlur:w,onInput:E,minQueryLength:I})}),u&&d.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:p?"red-500":"gray-700",className:br["multiple-values--helper-text"],children:u})]})},t2={"notes-block":"_notes-block_czx86_1","notes-block-editor":"_notes-block-editor_czx86_8"},n2=h.forwardRef((e,t)=>{const{defaultNote:n,note:r,onNoteChange:i,...s}=e;return d.jsx("div",{ref:t,children:d.jsx(oi,{...s,block:"notes",children:d.jsxs("div",{className:t2["notes-block"],children:[d.jsx(Ce,{color:"gray-900",fontWeight:"regular",size:"sm",children:"This note will be not visible in chats"}),d.jsx("div",{className:t2["notes-block-editor"],children:d.jsx(Dr,{autoResize:!0,placeholder:"Write here notes for this answer",rows:1,size:"md",variant:"filled",value:r,defaultValue:n,onChange:i})})]})})})});n2.displayName="NotesBlock";const fi={"radio--group-container":"_radio--group-container_zpvsw_2",radio:"_radio_zpvsw_2","radio--item":"_radio--item_zpvsw_22","radio--item-size-sm":"_radio--item-size-sm_zpvsw_51","radio--indicator":"_radio--indicator_zpvsw_75","radio--indicator-size-sm":"_radio--indicator-size-sm_zpvsw_76","radio--label":"_radio--label_zpvsw_111","radio--label-size-sm":"_radio--label-size-sm_zpvsw_123"},r2="Radio",[yA,i2]=Bt(r2),[CA,TA]=yA(r2),SA=h.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:l,value:c="on",onCheck:u,...p}=e,[m,g]=h.useState(null),v=et(t,_=>g(_)),b=h.useRef(!1),E=m?!!m.closest("form"):!0;return h.createElement(CA,{scope:n,checked:i,disabled:l},h.createElement(Ne.button,se({type:"button",role:"radio","aria-checked":i,"data-state":o2(i),"data-disabled":l?"":void 0,disabled:l,value:c},p,{ref:v,onClick:Ee(e.onClick,_=>{i||u==null||u(),E&&(b.current=_.isPropagationStopped(),b.current||_.stopPropagation())})})),E&&h.createElement(AA,{control:m,bubbles:!b.current,name:r,value:c,checked:i,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),IA="RadioIndicator",OA=h.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=TA(IA,n);return h.createElement(on,{present:r||s.checked},h.createElement(Ne.span,se({"data-state":o2(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:t})))}),AA=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=h.useRef(null),l=Rd(n),c=ba(t);return h.useEffect(()=>{const u=s.current,p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(u,n),u.dispatchEvent(v)}},[l,n,r]),h.createElement("input",se({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function o2(e){return e?"checked":"unchecked"}const $A=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],s2="RadioGroup",[DA,bF]=Bt(s2,[ho,i2]),a2=ho(),l2=i2(),[MA,PA]=DA(s2),RA=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:l=!1,disabled:c=!1,orientation:u,dir:p,loop:m=!0,onValueChange:g,...v}=e,b=a2(n),E=ns(p),[_,w]=hn({prop:s,defaultProp:i,onChange:g});return h.createElement(MA,{scope:n,name:r,required:l,disabled:c,value:_,onValueChange:w},h.createElement(mu,se({asChild:!0},b,{orientation:u,dir:E,loop:m}),h.createElement(Ne.div,se({role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":c?"":void 0,dir:E},v,{ref:t}))))}),NA="RadioGroupItem",LA=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=PA(NA,n),l=s.disabled||r,c=a2(n),u=l2(n),p=h.useRef(null),m=et(t,p),g=s.value===i.value,v=h.useRef(!1);return h.useEffect(()=>{const b=_=>{$A.includes(_.key)&&(v.current=!0)},E=()=>v.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",E)}},[]),h.createElement(vu,se({asChild:!0},c,{focusable:!l,active:g}),h.createElement(SA,se({disabled:l,required:s.required,checked:g},u,i,{name:s.name,ref:m,onCheck:()=>s.onValueChange(i.value),onKeyDown:Ee(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:Ee(i.onFocus,()=>{var b;v.current&&((b=p.current)===null||b===void 0||b.click())})})))}),jA=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=l2(n);return h.createElement(OA,se({},i,r,{ref:t}))}),kA=RA,FA=LA,BA=jA,Of=h.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,value:r,small:i,disabled:s,className:l,children:c,...u}=e,p=h.useMemo(()=>i?d.jsx(He,{size:"md",children:c}):d.jsx(Ce,{size:"sm",children:c}),[c,i]);return d.jsxs("div",{className:ae(fi.radio,l),children:[d.jsx(FA,{ref:t,id:n,className:ae(i?fi["radio--item-size-sm"]:fi["radio--item"]),value:r,disabled:s,...u,children:d.jsx(BA,{className:i?fi["radio--indicator-size-sm"]:fi["radio--indicator"]})}),d.jsx("label",{className:i?fi["radio--label-size-sm"]:fi["radio--label"],htmlFor:n,children:typeof c=="string"?p:c})]})});Of.displayName="Radio";const c2=h.forwardRef((e,t)=>{const{value:n,defaultValue:r,small:i,onValueChange:s,children:l,...c}=e,u=h.Children.map(l,p=>h.cloneElement(p,{small:i}));return d.jsx(kA,{ref:t,className:fi["radio--group-container"],defaultValue:r,value:n,onValueChange:s,...c,children:u})}),Ue={"input-select":"_input-select_4r597_1","input-select--outlined":"_input-select--outlined_4r597_17","input-select--filled":"_input-select--filled_4r597_22","input-select--ghost":"_input-select--ghost_4r597_23","input-select--lg":"_input-select--lg_4r597_38","input-select--md":"_input-select--md_4r597_42","input-select--sm":"_input-select--sm_4r597_46","input-select--error":"_input-select--error_4r597_50","input-select--label":"_input-select--label_4r597_55","input-select--item-label-container":"_input-select--item-label-container_4r597_59","input-select--item-label":"_input-select--item-label_4r597_59","input-select--helper":"_input-select--helper_4r597_74","input-select--trigger-icon":"_input-select--trigger-icon_4r597_78","input-select--placeholder-container":"_input-select--placeholder-container_4r597_87","input-select--placeholder":"_input-select--placeholder_4r597_87","input-select--disabled":"_input-select--disabled_4r597_102","input-select--content":"_input-select--content_4r597_107",slideDownAndFade:"_slideDownAndFade_4r597_1",slideLeftAndFade:"_slideLeftAndFade_4r597_1",slideUpAndFade:"_slideUpAndFade_4r597_1",slideRightAndFade:"_slideRightAndFade_4r597_1",content:"_content_4r597_147","input-select--item":"_input-select--item_4r597_59","input-select--radio-group":"_input-select--radio-group_4r597_166","input-select--icon":"_input-select--icon_4r597_170","input-select--primitive-item":"_input-select--primitive-item_4r597_178","input-select--primitive-item-selected":"_input-select--primitive-item-selected_4r597_191","input-select--checkbox":"_input-select--checkbox_4r597_195","input-select--divider":"_input-select--divider_4r597_199"},Af=({option:e})=>{const{leftIcon:t,label:n,avatarProps:r,description:i,rightIcon:s}=e;return d.jsxs("div",{className:Ue["input-select--item"],children:[t&&d.jsx("span",{className:Ue["input-select--icon"],children:t}),r&&d.jsx(wo,{...r}),d.jsxs("div",{className:Ue["input-select--item-label-container"],children:[n&&d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-1000",className:Ue["input-select--item-label"],children:n}),i&&d.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ue["input-select--item-label"],children:i})]}),s&&d.jsx("span",{className:Ue["input-select--icon"],children:s})]})},u2=h.forwardRef((e,t)=>{var X;const{label:n,helper:r,placeholder:i,initialValue:s,size:l="md",type:c="default",triggerProps:u,variant:p,error:m,disabled:g,onChange:v,options:b,className:E,contentClassName:_}=e,[w,y]=h.useState(!1),[S,T]=h.useState(s??[]);h.useEffect(()=>{w||s!==void 0&&T(s)},[w,s]);const A=h.useCallback((N,K)=>{(c==="checkbox"||c==="radio")&&K.preventDefault(),y(!0),c==="radio"||c==="default"?T(()=>{const B=[N];return v==null||v(B),B}):S.includes(N)?T(B=>{const W=B.filter(J=>J!==N);return v==null||v(W),W}):T(B=>{const W=[...B,N];return v==null||v(W),W})},[S,c,v]),I=h.useCallback((N,K)=>{const B=S.includes(N.value);let W=null;switch(c){case"radio":W=d.jsx(Ou,{onSelect:J=>A(N.value,J),className:ae(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:d.jsx(Of,{value:N.value,children:d.jsx(Af,{option:N})})});break;case"checkbox":W=d.jsx(Ou,{onSelect:J=>A(N.value,J),className:ae(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:d.jsx(Os,{className:Ue["input-select--checkbox"],checked:B,children:d.jsx(Af,{option:N})})});break;default:case"default":W=d.jsx(Ou,{onSelect:J=>A(N.value,J),className:ae(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:d.jsx(Af,{option:N})});break}return d.jsxs(h.Fragment,{children:[W,N.hasBottomSeparator&&d.jsx(Zr,{color:"gray-300",className:Ue["input-select--divider"]})]},K)},[A,S,c]),M=N=>b.find(K=>K.value===N),R=S.map(N=>{var K;return(K=M(N))==null?void 0:K.label}),D=S.map(N=>M(N)),k=R.length>0?R.join(", "):i,Y=D.length===1?(X=D[0])==null?void 0:X.leftIcon:null,L=h.useRef(null),G=h.useCallback(N=>{N&&setTimeout(()=>{var K,B,W;try{(W=(B=Array.from(((K=L.current)==null?void 0:K.querySelectorAll('[data-selected="true"]'))??[]))==null?void 0:B[0])==null||W.scrollIntoView({block:"center"})}catch{}},50)},[]);return d.jsx("div",{className:ae(g&&Ue["input-select--disabled"]),children:d.jsxs(D0,{onOpenChange:G,children:[n&&zA(n,l),d.jsxs(M0,{ref:t,className:ae(Ue["input-select"],Ue[`input-select--${p}`],Ue[`input-select--${l}`],m&&Ue["input-select--error"],g&&Ue["input-select--disabled"],E),disabled:g,...u,children:[d.jsxs("div",{className:Ue["input-select--placeholder-container"],children:[Y&&d.jsx("span",{className:Ue["input-select--trigger-icon"],children:Y}),GA(k,l,!!m)]}),d.jsx("span",{className:Ue["input-select--trigger-icon"],children:d.jsx(g8,{})})]}),r&&(typeof r=="string"?d.jsx(He,{size:"sm",fontWeight:"regular",color:m?"red-500":"gray-700",className:Ue["input-select--helper"],children:r}):r),d.jsx(M6,{children:d.jsx(P0,{ref:L,className:ae(Ue["input-select--content"],_),align:"start",sideOffset:8,children:d.jsx(Du,{children:d.jsx("div",{className:Ue.content,children:HA(c,b.map(I),S)})})})})]})})});u2.displayName="Select";const zA=(e,t)=>{switch(t){case"lg":return d.jsx(Ce,{size:"sm",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e});default:case"md":return d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e});case"sm":return d.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e})}},GA=(e,t,n)=>{switch(t){case"lg":return d.jsx(Ce,{size:"sm",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e});default:case"md":return d.jsx(Ce,{size:"xs",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e});case"sm":return d.jsx(He,{size:"md",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e})}},HA=(e,t,n)=>e==="radio"?d.jsx(c2,{className:Ue["input-select--radio-group"],value:n[0],children:t},n[0]):t,Pr={pagination:"_pagination_46n68_1","pagination--disabled":"_pagination--disabled_46n68_7","pagination--content":"_pagination--content_46n68_11","pagination-button":"_pagination-button_46n68_22","pagination-button--active":"_pagination-button--active_46n68_50","pagination-button--size-sm":"_pagination-button--size-sm_46n68_55","pagination-button--size-md":"_pagination-button--size-md_46n68_61","pagination-button--disabled":"_pagination-button--disabled_46n68_67","pagination-button--text":"_pagination-button--text_46n68_73"};function UA({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=ve.useRef(e!==void 0),[s,l]=ve.useState(t),c=i?e:s,u=ve.useCallback(p=>{i||l(p)},[]);return[c,u]}function VA(e){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:u,page:p,showFirstButton:m=!1,showLastButton:g=!1,siblingCount:v=1,...b}=e,[E,_]=UA({controlled:p,default:i,name:n,state:"page"}),w=(k,Y)=>{p||_(Y),u&&u(k,Y)},y=(k,Y)=>{const L=Y-k+1;return Array.from({length:L},(G,X)=>k+X)},S=y(1,Math.min(t,r)),T=y(Math.max(r-t+1,t+1),r),A=Math.max(Math.min(E-v,r-t-v*2-1),t+2),I=Math.min(Math.max(E+v,t+v*2+2),T.length>0?T[0]-2:r-1),M=[...m?["first"]:[],...c?[]:["previous"],...S,...A>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(A,I),...I<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...T,...l?[]:["next"],...g?["last"]:[]],R=k=>{switch(k){case"first":return 1;case"previous":return E-1;case"next":return E+1;case"last":return r;default:return null}};return{items:M.map(k=>typeof k=="number"?{onClick:Y=>{w(Y,k)},type:"page",page:k,selected:k===E,disabled:s,"aria-current":k===E?"true":void 0}:{onClick:Y=>{w(Y,R(k))},type:k,page:R(k),selected:!1,disabled:s||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?E>=r:E<=1)}),...b}}const d2=h.forwardRef((e,t)=>{const{numberOfPages:n,currentPage:r,className:i,onChangePage:s,size:l="md",disabled:c}=e,{items:u}=VA({count:n,onChange:s,page:r}),p=m=>m.map(({page:g,type:v,selected:b,disabled:E,onClick:_},w)=>{let y=null;switch(v){case"end-ellipsis":case"start-ellipsis":y=d.jsx(Ml,{size:l,disabled:c,style:{pointerEvents:"none"},children:"..."});break;case"page":y=d.jsx(Ml,{size:l,active:b,disabled:E||c,onClick:S=>_(S),children:g});break;case"previous":y=d.jsx(st,{variant:"outlined",color:"primary",size:l,disabled:E||c,onClick:S=>_(S),"aria-label":"Previous Page",children:d.jsx(k_,{})});break;case"next":y=d.jsx(st,{variant:"outlined",color:"primary",size:l,disabled:E||c,onClick:S=>_(S),"aria-label":"Next Page",children:d.jsx(Nc,{})});break}return d.jsx("li",{children:y},w)});return d.jsx("div",{ref:t,className:ae(Pr.pagination,c&&Pr["pagination--disabled"],i),children:d.jsx("ul",{className:Pr["pagination--content"],children:p(u)})})});d2.displayName="Pagination";const Ml=h.forwardRef((e,t)=>{const{size:n="md",disabled:r,children:i,active:s,className:l,...c}=e;return d.jsx("button",{ref:t,className:ae(Pr["pagination-button"],Pr[`pagination-button--size-${n}`],r&&Pr["pagination-button--disabled"],s&&Pr["pagination-button--active"],l),...c,children:n==="md"?d.jsx(Ce,{size:"sm",fontWeight:"regular",className:Pr["pagination-button--text"],children:i}):d.jsx(He,{size:"md",fontWeight:"regular",className:Pr["pagination-button--text"],children:i})})});Ml.displayName="PaginationButton";const ko={"progress-bar":"_progress-bar_1oktj_1","progress-bar--container":"_progress-bar--container_1oktj_7","progress-bar--inner":"_progress-bar--inner_1oktj_15","progress-bar--size-sm":"_progress-bar--size-sm_1oktj_24","progress-bar--size-lg":"_progress-bar--size-lg_1oktj_28","progress-bar--details":"_progress-bar--details_1oktj_32","progress-bar--percentage":"_progress-bar--percentage_1oktj_39"},f2=h.forwardRef((e,t)=>{const{size:n="lg",value:r,description:i,showPercentage:s,numericValue:l,className:c,...u}=e;return d.jsxs("div",{ref:t,className:ae(ko["progress-bar"],c),...u,children:[d.jsx("div",{className:ae(ko["progress-bar--container"],ko[`progress-bar--size-${n}`]),children:d.jsx("div",{className:ko["progress-bar--inner"],style:{width:`${r}%`}})}),d.jsxs("div",{className:ko["progress-bar--details"],children:[d.jsx(Ce,{size:"xs",fontWeight:"bold",className:ko["progress-bar--percentage"],children:s?Number.isInteger(r)&&r>=0?`${r}%`:"-":l??"-"}),i&&d.jsx(Ce,{size:"xs",fontWeight:"regular",color:"gray-700",children:i})]})]})});f2.displayName="ProgressBar";const p2={"reroute-block":"_reroute-block_1f5ri_1"},h2=h.forwardRef((e,t)=>{const{selectorProps:n,...r}=e;return d.jsx("div",{ref:t,children:d.jsx(oi,{...r,block:"reroute",children:d.jsxs("div",{className:p2["reroute-block"],children:[d.jsx("div",{className:p2["reroute-block-text"],children:d.jsx(Ce,{color:"gray-1000",size:"sm",children:"Here you can set the destination answer"})}),d.jsx("div",{children:d.jsx(vs,{...n})})]})})})});h2.displayName="RerouteBlock";const g2={tag:"_tag_1wrac_1","quality-metric-icon--size":"_quality-metric-icon--size_1wrac_19"},m2=h.forwardRef((e,t)=>{const{label:n,startIcon:r=!0,endIcon:i=!0,qualityMetricIcon:s,onClick:l,onEndIconClicked:c,className:u,...p}=e,m=g=>{c==null||c(),g.stopPropagation()};return d.jsxs("div",{ref:t,className:ae(g2.tag,u),onClick:l,...p,children:[!!s&&d.jsx(Ha,{...s,className:g2["quality-metric-icon--size"]}),r&&d.jsx(oa,{width:12,height:12}),d.jsx(xo,{variant:"tag",color:"gray-1000",children:n}),i&&d.jsx(Pu,{width:12,height:12,className:"cursor-pointer",onClick:m})]})});m2.displayName="TagQualityMetric";const v2="Tabs",[WA,SF]=Bt(v2,[ho]),b2=ho(),[qA,$f]=WA(v2),YA=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:l="horizontal",dir:c,activationMode:u="automatic",...p}=e,m=ns(c),[g,v]=hn({prop:r,onChange:i,defaultProp:s});return h.createElement(qA,{scope:n,baseId:Zn(),value:g,onValueChange:v,orientation:l,dir:m,activationMode:u},h.createElement(Ne.div,se({dir:m,"data-orientation":l},p,{ref:t})))}),ZA="TabsList",XA=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=$f(ZA,n),l=b2(n);return h.createElement(mu,se({asChild:!0},l,{orientation:s.orientation,dir:s.dir,loop:r}),h.createElement(Ne.div,se({role:"tablist","aria-orientation":s.orientation},i,{ref:t})))}),KA="TabsTrigger",QA=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,l=$f(KA,n),c=b2(n),u=_2(l.baseId,r),p=x2(l.baseId,r),m=r===l.value;return h.createElement(vu,se({asChild:!0},c,{focusable:!i,active:m}),h.createElement(Ne.button,se({type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u},s,{ref:t,onMouseDown:Ee(e.onMouseDown,g=>{!i&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:Ee(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:Ee(e.onFocus,()=>{const g=l.activationMode!=="manual";!m&&!i&&g&&l.onValueChange(r)})})))}),JA="TabsContent",e$=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...l}=e,c=$f(JA,n),u=_2(c.baseId,r),p=x2(c.baseId,r),m=r===c.value,g=h.useRef(m);return h.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),h.createElement(on,{present:i||m},({present:v})=>h.createElement(Ne.div,se({"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!v,id:p,tabIndex:0},l,{ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0}}),v&&s))});function _2(e,t){return`${e}-trigger-${t}`}function x2(e,t){return`${e}-content-${t}`}const E2=YA,w2=XA,Pl=QA,y2=e$,pi={"tabs--list":"_tabs--list_no35f_1","tabs--trigger":"_tabs--trigger_no35f_9","tabs--trigger-disabled":"_tabs--trigger-disabled_no35f_24","tabs--trigger-content":"_tabs--trigger-content_no35f_35","tabs--icon":"_tabs--icon_no35f_44","tabs--trigger-content-disabled":"_tabs--trigger-content-disabled_no35f_49"},t$=E2,C2=h.forwardRef(({className:e,...t},n)=>d.jsx(w2,{ref:n,className:ae(pi["tabs--list"],e),...t}));C2.displayName="TabsList";const T2=h.forwardRef((e,t)=>{const{value:n,className:r,hasIcon:i=!1,label:s,disabled:l=!1,...c}=e;return d.jsxs(Pl,{ref:t,value:n,className:ae(pi["tabs--trigger"],l&&pi["tabs--trigger-disabled"],r),disabled:l,...c,children:[typeof s=="string"?d.jsx(Ce,{size:"sm",className:ae(l?pi["tabs--trigger-content-disabled"]:pi["tabs--trigger-content"]),children:s}):s,i&&d.jsx("span",{className:pi["tabs--icon"],children:d.jsx(Ex,{className:ae(l?pi["tabs--trigger-content-disabled"]:pi["tabs--trigger-content"])})})]})});T2.displayName=Pl.displayName;const S2=h.forwardRef(({className:e,...t},n)=>d.jsx(y2,{ref:n,className:e,...t}));S2.displayName="TabsContent";const Df={"text-block":"_text-block_1vggm_1","text-block-editor":"_text-block-editor_1vggm_6","text-block-checkbox":"_text-block-checkbox_1vggm_14"};function I2(e){return e?[...e].length??0:0}const O2=h.forwardRef((e,t)=>{const{inputRef:n,inputProps:r,...i}=e,[s,l]=h.useState(!1),[c,u]=h.useState(I2((r==null?void 0:r.value)??(r==null?void 0:r.defaultValue))),p=h.useCallback(v=>{var b;u(I2(v.target.value)),(b=r==null?void 0:r.onChange)==null||b.call(r,v)},[r]),m=h.useCallback(()=>{l(v=>!v)},[]),g=s?1200:300;return d.jsx("div",{ref:t,children:d.jsx(oi,{...i,block:"text",children:d.jsxs("div",{className:Df["text-block"],children:[d.jsx("div",{className:Df["text-block-editor"],children:d.jsx(Dr,{helperText:c+`/${g} characters`,placeholder:"Write your answer here...",rows:3,size:"md",variant:"filled",ref:n,maxLength:g,...r,onChange:p})}),d.jsx("div",{className:Df["text-block-checkbox"],children:d.jsx(Os,{small:!0,checked:s,onCheckedChange:m,label:"Caption"})})]})})})});O2.displayName="TextBlock";const A2="ToastProvider",[Mf,n$,r$]=aa("Toast"),[$2,IF]=Bt("Toast",[r$]),[i$,Rl]=$2(A2),D2=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:l}=e,[c,u]=h.useState(null),[p,m]=h.useState(0),g=h.useRef(!1),v=h.useRef(!1);return h.createElement(Mf.Provider,{scope:t},h.createElement(i$,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:p,viewport:c,onViewportChange:u,onToastAdd:h.useCallback(()=>m(b=>b+1),[]),onToastRemove:h.useCallback(()=>m(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:v},l))};D2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${A2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const o$="ToastViewport",s$=["F8"],Pf="toast.viewportPause",Rf="toast.viewportResume",a$=h.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=s$,label:i="Notifications ({hotkey})",...s}=e,l=Rl(o$,n),c=n$(n),u=h.useRef(null),p=h.useRef(null),m=h.useRef(null),g=h.useRef(null),v=et(t,g,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;h.useEffect(()=>{const w=y=>{var S;r.every(A=>y[A]||y.code===A)&&((S=g.current)===null||S===void 0||S.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),h.useEffect(()=>{const w=u.current,y=g.current;if(E&&w&&y){const S=()=>{if(!l.isClosePausedRef.current){const M=new CustomEvent(Pf);y.dispatchEvent(M),l.isClosePausedRef.current=!0}},T=()=>{if(l.isClosePausedRef.current){const M=new CustomEvent(Rf);y.dispatchEvent(M),l.isClosePausedRef.current=!1}},A=M=>{!w.contains(M.relatedTarget)&&T()},I=()=>{w.contains(document.activeElement)||T()};return w.addEventListener("focusin",S),w.addEventListener("focusout",A),w.addEventListener("pointermove",S),w.addEventListener("pointerleave",I),window.addEventListener("blur",S),window.addEventListener("focus",T),()=>{w.removeEventListener("focusin",S),w.removeEventListener("focusout",A),w.removeEventListener("pointermove",S),w.removeEventListener("pointerleave",I),window.removeEventListener("blur",S),window.removeEventListener("focus",T)}}},[E,l.isClosePausedRef]);const _=h.useCallback(({tabbingDirection:w})=>{const S=c().map(T=>{const A=T.ref.current,I=[A,...y$(A)];return w==="forwards"?I:I.reverse()});return(w==="forwards"?S.reverse():S).flat()},[c]);return h.useEffect(()=>{const w=g.current;if(w){const y=S=>{const T=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!T){const D=document.activeElement,k=S.shiftKey;if(S.target===w&&k){var I;(I=p.current)===null||I===void 0||I.focus();return}const G=_({tabbingDirection:k?"backwards":"forwards"}),X=G.findIndex(N=>N===D);if(Nf(G.slice(X+1)))S.preventDefault();else{var M,R;k?(M=p.current)===null||M===void 0||M.focus():(R=m.current)===null||R===void 0||R.focus()}}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[c,_]),h.createElement(p3,{ref:u,role:"region","aria-label":i.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&h.createElement(M2,{ref:p,onFocusFromOutsideViewport:()=>{const w=_({tabbingDirection:"forwards"});Nf(w)}}),h.createElement(Mf.Slot,{scope:n},h.createElement(Ne.ol,se({tabIndex:-1},s,{ref:v}))),E&&h.createElement(M2,{ref:m,onFocusFromOutsideViewport:()=>{const w=_({tabbingDirection:"backwards"});Nf(w)}}))}),l$="ToastFocusProxy",M2=h.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Rl(l$,n);return h.createElement(Nu,se({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:l=>{var c;const u=l.relatedTarget;!((c=s.viewport)!==null&&c!==void 0&&c.contains(u))&&r()}}))}),Nl="Toast",c$="toast.swipeStart",u$="toast.swipeMove",d$="toast.swipeCancel",f$="toast.swipeEnd",p$=h.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...l}=e,[c=!0,u]=hn({prop:r,defaultProp:i,onChange:s});return h.createElement(on,{present:n||c},h.createElement(P2,se({open:c},l,{ref:t,onClose:()=>u(!1),onPause:rn(e.onPause),onResume:rn(e.onResume),onSwipeStart:Ee(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Ee(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(e.onSwipeEnd,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),u(!1)})})))}),[h$,g$]=$2(Nl,{onClose(){}}),P2=h.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:l,onEscapeKeyDown:c,onPause:u,onResume:p,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:v,onSwipeEnd:b,...E}=e,_=Rl(Nl,n),[w,y]=h.useState(null),S=et(t,N=>y(N)),T=h.useRef(null),A=h.useRef(null),I=i||_.duration,M=h.useRef(0),R=h.useRef(I),D=h.useRef(0),{onToastAdd:k,onToastRemove:Y}=_,L=rn(()=>{var N;(w==null?void 0:w.contains(document.activeElement))&&((N=_.viewport)===null||N===void 0||N.focus()),l()}),G=h.useCallback(N=>{!N||N===1/0||(window.clearTimeout(D.current),M.current=new Date().getTime(),D.current=window.setTimeout(L,N))},[L]);h.useEffect(()=>{const N=_.viewport;if(N){const K=()=>{G(R.current),p==null||p()},B=()=>{const W=new Date().getTime()-M.current;R.current=R.current-W,window.clearTimeout(D.current),u==null||u()};return N.addEventListener(Pf,B),N.addEventListener(Rf,K),()=>{N.removeEventListener(Pf,B),N.removeEventListener(Rf,K)}}},[_.viewport,I,u,p,G]),h.useEffect(()=>{s&&!_.isClosePausedRef.current&&G(I)},[s,I,_.isClosePausedRef,G]),h.useEffect(()=>(k(),()=>Y()),[k,Y]);const X=h.useMemo(()=>w?N2(w):null,[w]);return _.viewport?h.createElement(h.Fragment,null,X&&h.createElement(m$,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},X),h.createElement(h$,{scope:n,onClose:L},On.createPortal(h.createElement(Mf.ItemSlot,{scope:n},h.createElement(f3,{asChild:!0,onEscapeKeyDown:Ee(c,()=>{_.isFocusedToastEscapeKeyDownRef.current||L(),_.isFocusedToastEscapeKeyDownRef.current=!1})},h.createElement(Ne.li,se({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":_.swipeDirection},E,{ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,N=>{N.key==="Escape"&&(c==null||c(N.nativeEvent),N.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Ee(e.onPointerDown,N=>{N.button===0&&(T.current={x:N.clientX,y:N.clientY})}),onPointerMove:Ee(e.onPointerMove,N=>{if(!T.current)return;const K=N.clientX-T.current.x,B=N.clientY-T.current.y,W=!!A.current,J=["left","right"].includes(_.swipeDirection),q=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,U=J?q(0,K):0,V=J?0:q(0,B),ce=N.pointerType==="touch"?10:2,de={x:U,y:V},fe={originalEvent:N,delta:de};W?(A.current=de,Ll(u$,g,fe,{discrete:!1})):L2(de,_.swipeDirection,ce)?(A.current=de,Ll(c$,m,fe,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(K)>ce||Math.abs(B)>ce)&&(T.current=null)}),onPointerUp:Ee(e.onPointerUp,N=>{const K=A.current,B=N.target;if(B.hasPointerCapture(N.pointerId)&&B.releasePointerCapture(N.pointerId),A.current=null,T.current=null,K){const W=N.currentTarget,J={originalEvent:N,delta:K};L2(K,_.swipeDirection,_.swipeThreshold)?Ll(f$,b,J,{discrete:!0}):Ll(d$,v,J,{discrete:!0}),W.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})))),_.viewport))):null});P2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Nl}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const m$=e=>{const{__scopeToast:t,children:n,...r}=e,i=Rl(Nl,t),[s,l]=h.useState(!1),[c,u]=h.useState(!1);return E$(()=>l(!0)),h.useEffect(()=>{const p=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(p)},[]),c?null:h.createElement(_a,{asChild:!0},h.createElement(Nu,r,s&&h.createElement(h.Fragment,null,i.label," ",n)))},v$="ToastAction",b$=h.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?h.createElement(R2,{altText:n,asChild:!0},h.createElement(x$,se({},r,{ref:t}))):null});b$.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${v$}\``)}};const _$="ToastClose",x$=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=g$(_$,n);return h.createElement(R2,{asChild:!0},h.createElement(Ne.button,se({type:"button"},r,{ref:t,onClick:Ee(e.onClick,i.onClose)})))}),R2=h.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return h.createElement(Ne.div,se({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},i,{ref:t}))});function N2(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),w$(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...N2(r))}}),t}function Ll(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Bc(i,s):i.dispatchEvent(s)}const L2=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function E$(e=()=>{}){const t=rn(e);Xr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function w$(e){return e.nodeType===e.ELEMENT_NODE}function y$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Nf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const C$=D2,j2=a$,k2=p$,Ki={"toast--toaster-container":"_toast--toaster-container_172io_1","toast--viewport":"_toast--viewport_172io_9","toast--left-icon":"_toast--left-icon_172io_47","toast--close-icon":"_toast--close-icon_172io_51","toast--text-container":"_toast--text-container_172io_59","toast--root":"_toast--root_172io_67",slideIn:"_slideIn_172io_1",hide:"_hide_172io_1",swipeOut:"_swipeOut_172io_1","toast--root-gray-outlined":"_toast--root-gray-outlined_172io_117","toast--root-gray-soft":"_toast--root-gray-soft_172io_122","toast--root-gray-dark":"_toast--root-gray-dark_172io_127","toast--root-red-outlined":"_toast--root-red-outlined_172io_132","toast--root-red-soft":"_toast--root-red-soft_172io_137","toast--root-red-dark":"_toast--root-red-dark_172io_142","toast--root-green-outlined":"_toast--root-green-outlined_172io_147","toast--root-green-soft":"_toast--root-green-soft_172io_152","toast--root-green-dark":"_toast--root-green-dark_172io_157"},T$=C$,F2=h.forwardRef(({className:e,...t},n)=>d.jsx(j2,{ref:n,className:ae(Ki["toast--viewport"],e),...t}));F2.displayName=j2.displayName;const B2=h.forwardRef(({className:e,...t},n)=>d.jsx(k2,{ref:n,className:e,...t}));B2.displayName=k2.displayName;const S$=({color:e,variant:t})=>({gray:{outlined:"gray-1000",soft:"gray-1000",dark:"white"},red:{outlined:"red-600",soft:"red-800",dark:"red-100"},green:{outlined:"green-700",soft:"green-800",dark:"green-100"}})[e][t],I$=()=>{const{toasts:e,dismiss:t}=G2();return d.jsxs(T$,{children:[e.map(n=>{const{id:r,title:i,description:s,leftIcon:l,hasCloseIcon:c,action:u,variant:p="outlined",color:m="gray",...g}=n,v=S$({color:m,variant:p});return d.jsx(B2,{id:r,className:ae(Ki["toast--root"],Ki[`toast--root-${m}-${p}`]),...g,children:d.jsxs("div",{className:Ki["toast--toaster-container"],children:[l&&d.jsx("span",{className:ae(Ki["toast--left-icon"],`text--${v}`),children:l}),d.jsxs("div",{className:Ki["toast--text-container"],children:[i&&d.jsx(Ce,{size:"sm",fontWeight:"bold",color:v,children:i}),s&&d.jsx(Ce,{size:"xs",fontWeight:"regular",color:v,children:s})]}),c?d.jsx("span",{className:ae(Ki["toast--close-icon"],`text--${v}`),children:d.jsx(Zx,{onClick:()=>t()})}):u]})},r)}),d.jsx(F2,{})]})},O$=1,A$=1e6;let Lf=0;function $$(){return Lf=(Lf+1)%Number.MAX_VALUE,Lf.toString()}const jf=new Map,z2=e=>{if(jf.has(e))return;const t=setTimeout(()=>{jf.delete(e),js({type:"REMOVE_TOAST",toastId:e})},A$);jf.set(e,t)},D$=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,O$)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?z2(n):e.toasts.forEach(r=>{z2(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},jl=[];let kl={toasts:[]};function js(e){kl=D$(kl,e),jl.forEach(t=>{t(kl)})}function M$({...e}){const t=$$(),n=i=>js({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>js({type:"DISMISS_TOAST",toastId:t});return js({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function G2(){const[e,t]=h.useState(kl);return h.useEffect(()=>(jl.push(t),()=>{const n=jl.indexOf(t);n>-1&&jl.splice(n,1)}),[e]),{...e,toast:M$,dismiss:n=>js({type:"DISMISS_TOAST",toastId:n})}}const ks={"tooltip-quality-metric":"_tooltip-quality-metric_zpfvr_1","tooltip-quality-metric--topbar":"_tooltip-quality-metric--topbar_zpfvr_23","tooltip-quality-metric--tag":"_tooltip-quality-metric--tag_zpfvr_32","tooltip-quality-metric--answer-content":"_tooltip-quality-metric--answer-content_zpfvr_40","tooltip-quality-metric--divider":"_tooltip-quality-metric--divider_zpfvr_72"},H2=h.forwardRef((e,t)=>{const{title:n,qualityMetricTitle:r,leftTagProps:i,rightTagProps:s,answerContentText:l,description:c,buttonProps:u,sideOffset:p=8,className:m,...g}=e;return d.jsxs(Bu,{ref:t,sideOffset:p,className:ae(ks["tooltip-quality-metric"],m),...g,children:[d.jsxs("div",{className:ks["tooltip-quality-metric--topbar"],children:[d.jsx(He,{size:"md",fontWeight:"bold",isUppercase:!0,children:n}),d.jsx(Ot,{...u,children:u.label})]}),typeof r=="string"?d.jsx(He,{size:"md",fontWeight:"bold",children:r}):r,d.jsxs("div",{className:ks["tooltip-quality-metric--tag"],children:[i&&d.jsx(Qn,{...i}),s&&d.jsx(Qn,{...s})]}),d.jsx("div",{className:ks["tooltip-quality-metric--answer-content"],children:typeof l=="string"?d.jsx(He,{size:"sm",fontWeight:"regular",children:l}):l}),d.jsx(Zr,{color:"gray-300",className:ks["tooltip-quality-metric--divider"]}),typeof c=="string"?d.jsx(He,{size:"sm",fontWeight:"regular",children:c}):c]})});H2.displayName="TooltipQualityMetric";const Fo={"vertical-tabs--root":"_vertical-tabs--root_ksiqw_1","vertical-tabs--list":"_vertical-tabs--list_ksiqw_6","vertical-tabs--trigger":"_vertical-tabs--trigger_ksiqw_13","vertical-tabs--trigger-disabled":"_vertical-tabs--trigger-disabled_ksiqw_27","vertical-tabs--chat-title-container":"_vertical-tabs--chat-title-container_ksiqw_50","vertical-tabs--chat-preview-container":"_vertical-tabs--chat-preview-container_ksiqw_58"},U2=h.forwardRef(({className:e,...t},n)=>d.jsx(E2,{ref:n,className:ae(Fo["vertical-tabs--root"],e),orientation:"vertical",...t}));U2.displayName="VerticalTabs";const V2=h.forwardRef(({className:e,...t},n)=>d.jsx(w2,{ref:n,className:ae(Fo["vertical-tabs--list"],e),...t}));V2.displayName="TabChatList";const W2=h.forwardRef((e,t)=>{const{value:n,title:r,preview:i,time:s,timeUnit:l="MIN",className:c,disabled:u=!1,avatarProps:p,needSupportLabel:m="Needs your support",needSupportIcon:g,isTyping:v,isTypingLabel:b="Is typing...",onNeedSupportClicked:E,..._}=e;return d.jsxs(Pl,{ref:t,value:n,className:ae(Fo["vertical-tabs--trigger"],u&&Fo["vertical-tabs--trigger-disabled"],c),disabled:u,..._,children:[d.jsx(wo,{...p}),d.jsxs("div",{children:[d.jsxs("div",{className:Fo["vertical-tabs--chat-title-container"],children:[r&&d.jsx(Ce,{size:"sm",fontWeight:"bold",children:r}),s&&d.jsx(He,{size:"md",isUppercase:!0,children:`${s} ${l}`})]}),d.jsx("div",{className:Fo["vertical-tabs--chat-preview-container"],children:v?d.jsx(He,{size:"md",fontWeight:"bold",color:"green-600",children:b}):d.jsxs(d.Fragment,{children:[i&&d.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:i}),d.jsx(Ot,{variant:"text",startIcon:g||d.jsx(S_,{}),size:"xs",onClick:E,children:m})]})})]})]})});W2.displayName=Pl.displayName;const q2=h.forwardRef(({className:e,...t},n)=>d.jsx(y2,{ref:n,className:e,...t}));q2.displayName="TabsContent";const hi={"video-block":"_video-block_1s3ee_1","video-container":"_video-container_1s3ee_6",video:"_video_1s3ee_1","video-description":"_video-description_1s3ee_24","video-block-input-container":"_video-block-input-container_1s3ee_31","video-block-instance-slot-container":"_video-block-instance-slot-container_1s3ee_39","video-block-spinner":"_video-block-spinner_1s3ee_46"},Y2=h.forwardRef((e,t)=>{const{video:n,originalUrl:r,urlWithVariables:i,fileName:s,title:l,isUploading:c,altText:u,onDeleteBlock:p,onDeleteVideo:m,connectVideo:g,onSaveTitle:v,onSaveAltText:b,...E}=e,[_,w]=h.useState(u||""),y=l||"Video",S=I=>{b&&b(_)},T=I=>{g&&g(I)},A=()=>{m&&m()};return d.jsx(oi,{block:"video",onDeleteBlock:p,...E,ref:t,className:hi["video-block"],children:d.jsxs("div",{children:[d.jsxs("div",{className:hi["video-block-instance-slot-container"],children:[d.jsx(za,{initialLabel:y,onSaveLabel:v}),i?d.jsxs("div",{children:[" ",d.jsx(Ce,{children:" The video to display will be determined based on the value of the variables "})," "]}):n?d.jsxs("div",{className:hi["video-container"],children:[n.match(".mp4$")?d.jsx("video",{controls:!0,className:hi.video,"data-testid":"block-video",children:d.jsx("source",{src:n,type:"video/mp4"})}):d.jsx("iframe",{title:"video-block",className:hi.video,src:n,"data-testid":"block-iframe","aria-label":"Video Player"}),d.jsxs("div",{className:hi["video-description"],children:[d.jsx(Ce,{color:"gray-1000",size:"xs",fontWeight:"bold",children:s?`${s} - `:""}),d.jsx(Ce,{color:"gray-1000",size:"xs",children:r||n}),d.jsx(st,{size:"sm",onClick:A,variant:"ghost",children:d.jsx(Ru,{})})]})]}):c?d.jsx("div",{className:hi["video-block-spinner"],children:d.jsx("span",{children:d.jsx(sa,{})})}):d.jsx($l,{status:"video",onConnect:T})]}),d.jsx("div",{className:hi["video-block-input-container"],children:d.jsx(Dr,{label:"Label",helperText:"Add a brief description of video content, eg. Tutorial about XYZ",placeholder:"Describe video",rows:1,autoResize:!0,size:"md",variant:"filled",value:_,onChange:I=>w(I.target.value),onBlur:S})})]})})});Y2.displayName="VideoBlock",he.Accordion=Ep,he.AccordionPanel=wp,he.AiDropdown=vs,he.AiDropdownContent=hh,he.AtomNameDivBlockModule=za,he.AtomTopModulo=Ju,he.Avatar=wo,he.AvatarBot=Vu,he.AvatarWorkspace=mh,he.Badge=qu,he.Block=oi,he.Breadcrumb=Eh,he.BuilderBlockToolbar=eg,he.BuilderBlockToolbarContext=Jh,he.Button=Ot,he.Caption=He,he.ChatContainer=ig,he.ChatContent=n8,he.ChatHeader=w9,he.ChatRoot=ng,he.ChatTrigger=rg,he.Checkbox=Os,he.Divider=Zr,he.EmptyState=$l,he.Heading=pf,he.IconButton=st,he.ImageBlock=Iv,he.ImageUploader=Cv,he.Label=xo,he.Logo=EO,he.MailBlock=Gv,he.Modal=FO,he.ModalContent=kv,he.ModalTrigger=BO,he.MultipleValues=wA,he.NotesBlock=n2,he.Pagination=d2,he.PaginationButton=Ml,he.ProgressBar=f2,he.QualityMetricIcon=Ha,he.Radio=Of,he.RadioGroup=c2,he.RerouteBlock=h2,he.Select=u2,he.TabChat=W2,he.TabChatContent=q2,he.TabChatList=V2,he.Tabs=t$,he.TabsContent=S2,he.TabsList=C2,he.TabsTrigger=T2,he.Tag=Qn,he.TagQualityMetric=m2,he.Text=Ce,he.TextBlock=O2,he.TextField=$n,he.TextFieldMultiline=Dr,he.TitleBlockModule=Ku,he.Toaster=I$,he.Toggle=vf,he.ToolbarIcon=_h,he.Tooltip=La,he.TooltipContent=ps,he.TooltipQualityMetric=H2,he.TooltipTrigger=hs,he.VerticalTabs=U2,he.VideoBlock=Y2,he.useToast=G2,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})});
|
|
157
161
|
//# sourceMappingURL=indigo-design-system.umd.cjs.map
|