HEX
Server: Apache/2.4.37 (CentOS Stream) OpenSSL/1.1.1k
System: Linux ysnet.com.tw 4.18.0-553.5.1.el8.x86_64 #1 SMP Tue May 21 05:46:01 UTC 2024 x86_64
User: test (521)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/test/wp-content/plugins/bit-assist/assets/index.js
var e,t,n,r,o,i,a,s,l,c,u,d,f,_n,h,p,g,m,v,b,y,x,w,_x,k=Object.defineProperty,_=(e,t,n)=>(((e,t,n)=>{t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function S(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function C(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function E(e){return!(!e.parentElement||!E(e.parentElement))||e.hidden}function A(e){return C(e)?e.ownerDocument:document}function O(e){const t=function(e){var t;return null!=(t=e.view)?t:window}(e);return void 0!==t.PointerEvent&&e instanceof t.PointerEvent?!("mouse"!==e.pointerType):e instanceof t.MouseEvent}function T(e){return!!e.touches}function N(e,t="page"){return T(e)?function(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}(e,t):function(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}(e,t)}function R(e,t=!1){function n(t){e(t,{point:N(t)})}const r=t?function(e){return t=>{const n=O(t);(!n||n&&0===t.button)&&e(t)}}(n):n;return r}function P(e,t,n,r){return function(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}(e,t,R(n,"pointerdown"===t),r)}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const M=e=>e?"":void 0,L=e=>!!e||void 0;function D(e){return Array.isArray(e)}function I(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!D(e)}function j(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function z(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}const B=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,F=e=>Object.fromEntries(Object.entries(e).sort(B));function q(e){const t=F(e);return Object.assign(Object.values(t),t)}function U(e){var t;if(!e)return e;e=null!=(t=z(e))?t:e;return"number"==typeof e?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`)}function W(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${z(e)})`),t&&n.push("and",`(max-width: ${z(t)})`),n.join(" ")}function $(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const n=q(e),r=Object.entries(e).sort(B).map(([e,t],n,r)=>{var o;let[,i]=null!=(o=r[n+1])?o:[];return i=parseFloat(i)>0?U(i):void 0,{_minW:U(t),breakpoint:e,minW:t,maxW:i,maxWQuery:W(null,i),minWQuery:W(t),minMaxQuery:W(t,i)}}),o=function(e){const t=Object.keys(F(e));return new Set(t)}(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:F(e),asArray:q(e),details:r,get:e=>r.find(t=>t.breakpoint===e),media:[null,...n.map(e=>W(e)).slice(1)],toArrayValue(e){if(!I(e))throw new Error("toArrayValue: value must be an object");const t=i.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===j(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{const r=i[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}function V(...e){return function(...t){e.forEach(e=>null==e?void 0:e(...t))}}function H(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K={exports:{}},Q={},Z=Symbol.for("react.element"),X=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),re=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),ae=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),le=Symbol.iterator;var ce={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ue=Object.assign,de={};function fe(e,t,n){this.props=e,this.context=t,this.refs=de,this.updater=n||ce}function he(){}function pe(e,t,n){this.props=e,this.context=t,this.refs=de,this.updater=n||ce}fe.prototype.isReactComponent={},fe.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},fe.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},he.prototype=fe.prototype;var ge=pe.prototype=new he;ge.constructor=pe,ue(ge,fe.prototype),ge.isPureReactComponent=!0;var me=Array.isArray,ve=Object.prototype.hasOwnProperty,be={current:null},ye={key:!0,ref:!0,__self:!0,__source:!0};function xe(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)ve.call(t,r)&&!ye.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:Z,type:e,key:i,ref:a,props:o,_owner:be.current}}function we(e){return"object"==typeof e&&null!==e&&e.$$typeof===Z}var ke=/\/+/g;function _e(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function Se(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Z:case X:a=!0}}if(a)return o=o(a=e),e=""===r?"."+_e(a,0):r,me(o)?(n="",null!=e&&(n=e.replace(ke,"$&/")+"/"),Se(o,t,n,"",function(e){return e})):null!=o&&(we(o)&&(o=function(e,t){return{$$typeof:Z,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(ke,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",me(e))for(var s=0;s<e.length;s++){var l=r+_e(i=e[s],s);a+=Se(i,t,n,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=le&&e[le]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(i=e.next()).done;)a+=Se(i=i.value,t,n,l=r+_e(i,s++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ce(e,t,n){if(null==e)return e;var r=[],o=0;return Se(e,r,"","",function(e){return t.call(n,e,o++)}),r}function Ee(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var Ae={current:null},Oe={transition:null},Te={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:Oe,ReactCurrentOwner:be};function Ne(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:Ce,forEach:function(e,t,n){Ce(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ce(e,function(){t++}),t},toArray:function(e){return Ce(e,function(e){return e})||[]},only:function(e){if(!we(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Q.Component=fe,Q.Fragment=J,Q.Profiler=te,Q.PureComponent=pe,Q.StrictMode=ee,Q.Suspense=ie,Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Te,Q.act=Ne,Q.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ue({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=be.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)ve.call(t,l)&&!ye.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Z,type:e.type,key:o,ref:i,props:r,_owner:a}},Q.createContext=function(e){return(e={$$typeof:re,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:ne,_context:e},e.Consumer=e},Q.createElement=xe,Q.createFactory=function(e){var t=xe.bind(null,e);return t.type=e,t},Q.createRef=function(){return{current:null}},Q.forwardRef=function(e){return{$$typeof:oe,render:e}},Q.isValidElement=we,Q.lazy=function(e){return{$$typeof:se,_payload:{_status:-1,_result:e},_init:Ee}},Q.memo=function(e,t){return{$$typeof:ae,type:e,compare:void 0===t?null:t}},Q.startTransition=function(e){var t=Oe.transition;Oe.transition={};try{e()}finally{Oe.transition=t}},Q.unstable_act=Ne,Q.useCallback=function(e,t){return Ae.current.useCallback(e,t)},Q.useContext=function(e){return Ae.current.useContext(e)},Q.useDebugValue=function(){},Q.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)},Q.useEffect=function(e,t){return Ae.current.useEffect(e,t)},Q.useId=function(){return Ae.current.useId()},Q.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)},Q.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)},Q.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)},Q.useMemo=function(e,t){return Ae.current.useMemo(e,t)},Q.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)},Q.useRef=function(e){return Ae.current.useRef(e)},Q.useState=function(e){return Ae.current.useState(e)},Q.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)},Q.useTransition=function(){return Ae.current.useTransition()},Q.version="18.3.1",K.exports=Q;const Re=G(K.exports),Pe=S({__proto__:null,default:Re},[K.exports]);function Me(e){return K.exports.Children.toArray(e).filter(e=>K.exports.isValidElement(e))}function Le(e){const t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function De(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=K.exports.createContext(a);return s.displayName=t,[s.Provider,function e(){var t;const a=K.exports.useContext(s);if(!a&&n){const n=new Error(null!=i?i:`${r} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return a},s]}const Ie=(...e)=>e.filter(Boolean).join(" "),je=e=>e.hasAttribute("tabindex");function ze(e){if(!C(e)||E(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||je(e)}function Be(e){return!!e&&(C(e)&&ze(e)&&!(e=>je(e)&&-1===e.tabIndex)(e))}const Fe=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function qe(e){const t=Array.from(e.querySelectorAll(Fe));return t.unshift(e),t.filter(e=>ze(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e))}const Ue=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e});function We(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!n||(!!r||!("keepMounted"!==o||!t))}function $e(e,t){let n=function(e){const t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e);const r=10**(null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function Ve(e,t,n){return 100*(e-t)/(n-t)}function He(e,t,n){const r=Math.round((e-t)/n)*n+t,o=function(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(n);return $e(r,o)}function Ye(e,t,n){return null==e?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function Ge(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Ke(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Qe(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):I(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ze(e,...t){return"function"==typeof e?e(...t):e}function Xe(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:C(e)&&function(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}(e)?e:Xe(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}function Je(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}function et(e,t,n={}){const{stop:r,getKey:o}=n;return function e(n,i=[]){var a;if(I(n)||Array.isArray(n)){const s={};for(const[l,c]of Object.entries(n)){const u=null!=(a=null==o?void 0:o(l))?a:l,d=[...i,u];if(null==r?void 0:r(n,d))return t(n,i);s[u]=e(c,d)}return s}return t(n,i)}(e)}var tt={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Function]",a="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[i]=c["[object Map]"]=c["[object Number]"]=c[a]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof Y&&Y&&Y.Object===Object&&Y,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),h=t&&!t.nodeType&&t,p=h&&e&&!e.nodeType&&e,g=p&&p.exports===h,m=g&&u.process,v=function(){try{var e=p&&p.require&&p.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(OV){}}(),b=v&&v.isTypedArray;var y,x,w,k=Array.prototype,_=Function.prototype,S=Object.prototype,C=f["__core-js_shared__"],E=_.toString,A=S.hasOwnProperty,O=(y=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",T=S.toString,N=E.call(Object),R=RegExp("^"+E.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g?f.Buffer:void 0,M=f.Symbol,L=f.Uint8Array,D=P?P.allocUnsafe:void 0,I=(x=Object.getPrototypeOf,w=Object,function(e){return x(w(e))}),j=Object.create,z=S.propertyIsEnumerable,B=k.splice,F=M?M.toStringTag:void 0,q=function(){try{var e=pe(Object,"defineProperty");return e({},"",{}),e}catch(OV){}}(),U=P?P.isBuffer:void 0,W=Math.max,$=Date.now,V=pe(f,"Map"),H=pe(Object,"create"),G=function(){function e(){}return function(t){if(!Ee(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=this.__data__=new Q(e);this.size=t.size}function J(e,t){var n=we(e),r=!n&&xe(e),o=!n&&!r&&_e(e),i=!n&&!r&&!o&&Oe(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!A.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ge(c,l))||s.push(c);return s}function ee(e,t,n){(void 0!==n&&!ye(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];A.call(e,t)&&ye(r,n)&&(void 0!==n||t in e)||re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(ye(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}K.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},K.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},K.prototype.get=function(e){var t=this.__data__;if(H){var r=t[e];return r===n?void 0:r}return A.call(t,e)?t[e]:void 0},K.prototype.has=function(e){var t=this.__data__;return H?void 0!==t[e]:A.call(t,e)},K.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=H&&void 0===t?n:t,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():B.call(t,n,1),--this.size,!0)},Q.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},Q.prototype.has=function(e){return ne(this.__data__,e)>-1},Q.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Z.prototype.clear=function(){this.size=0,this.__data__={hash:new K,map:new(V||Q),string:new K}},Z.prototype.delete=function(e){var t=he(this,e).delete(e);return this.size-=t?1:0,t},Z.prototype.get=function(e){return he(this,e).get(e)},Z.prototype.has=function(e){return he(this,e).has(e)},Z.prototype.set=function(e,t){var n=he(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},X.prototype.clear=function(){this.__data__=new Q,this.size=0},X.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},X.prototype.get=function(e){return this.__data__.get(e)},X.prototype.has=function(e){return this.__data__.has(e)},X.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Q){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z(r)}return n.set(e,t),this.size=n.size,this};var oe,ie=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[oe?a:++r];if(!1===t(o[s],s,o))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=A.call(e,F),n=e[F];try{e[F]=void 0;var r=!0}catch(OV){}var o=T.call(e);r&&(t?e[F]=n:delete e[F]);return o}(e):function(e){return T.call(e)}(e)}function se(e){return Ae(e)&&ae(e)==o}function le(e){return!(!Ee(e)||function(e){return!!O&&O in e}(e))&&(Se(e)?R:s).test(function(e){if(null!=e){try{return E.call(e)}catch(OV){}try{return e+""}catch(OV){}}return""}(e))}function ce(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=me(e),n=[];for(var r in e)("constructor"!=r||!t&&A.call(e,r))&&n.push(r);return n}function ue(e,t,n,r,o){e!==t&&ie(t,function(i,s){if(o||(o=new X),Ee(i))!function(e,t,n,r,o,i,s){var l=ve(e,n),c=ve(t,n),u=s.get(c);if(u)return void ee(e,n,u);var d=i?i(l,c,n+"",e,t,s):void 0,f=void 0===d;if(f){var h=we(c),p=!h&&_e(c),g=!h&&!p&&Oe(c);d=c,h||p||g?we(l)?d=l:Ae(x=l)&&ke(x)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(l):p?(f=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=D?D(n):new e.constructor(n);return e.copy(r),r}(c,!0)):g?(f=!1,m=c,v=!0?(b=m.buffer,y=new b.constructor(b.byteLength),new L(y).set(new L(b)),y):m.buffer,d=new m.constructor(v,m.byteOffset,m.length)):d=[]:function(e){if(!Ae(e)||ae(e)!=a)return!1;var t=I(e);if(null===t)return!0;var n=A.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&E.call(n)==N}(c)||xe(c)?(d=l,xe(l)?d=function(e){return function(e,t,n,r){var o=!n;n||(n={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?re(n,s,l):te(n,s,l)}return n}(e,Te(e))}(l):Ee(l)&&!Se(l)||(d=function(e){return"function"!=typeof e.constructor||me(e)?{}:G(I(e))}(c))):f=!1}var m,v,b,y;var x;f&&(s.set(c,d),o(d,c,r,i,s),s.delete(c));ee(e,n,d)}(e,t,s,n,ue,r,o);else{var l=r?r(ve(e,s),i,s+"",e,t,o):void 0;void 0===l&&(l=i),ee(e,s,l)}},Te)}function de(e,t){return be(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Pe),e+"")}var fe=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Pe;function he(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function ge(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||S)}function ve(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var be=function(e){var t=0,n=0;return function(){var r=$(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function ye(e,t){return e===t||e!=e&&t!=t}var xe=se(function(){return arguments}())?se:function(e){return Ae(e)&&A.call(e,"callee")&&!z.call(e,"callee")},we=Array.isArray;function ke(e){return null!=e&&Ce(e.length)&&!Se(e)}var _e=U||function(){return!1};function Se(e){if(!Ee(e))return!1;var t=ae(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ae(e){return null!=e&&"object"==typeof e}var Oe=b?function(e){return function(t){return e(t)}}(b):function(e){return Ae(e)&&Ce(e.length)&&!!c[ae(e)]};function Te(e){return ke(e)?J(e,!0):ce(e)}var Ne,Re=(Ne=function(e,t,n,r){ue(e,t,n,r)},de(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ne.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!Ee(n))return!1;var r=typeof t;return!!("number"==r?ke(n)&&ge(t,n.length):"string"==r&&t in n)&&ye(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Ne(e,a,n,o)}return e}));function Pe(e){return e}e.exports=Re}(tt,tt.exports);const nt=tt.exports;function rt(e,t=[]){const n=K.exports.useRef(e);return K.exports.useEffect(()=>{n.current=e}),K.exports.useCallback((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}function ot(e,t,n,r){const o=rt(n);return K.exports.useEffect(()=>{const i="function"==typeof e?e():null!=e?e:document;if(n&&i)return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,o,r)}}function it(e){const{isOpen:t,ref:n}=e,[r,o]=K.exports.useState(t),[i,a]=K.exports.useState(!1);K.exports.useEffect(()=>{i||(o(t),a(!0))},[t,i,r]),ot(()=>n.current,"animationend",()=>{o(t)});return{present:!(!t&&!r),onComplete(){var e;const t=function(e){var t,n;return null!=(n=null==(t=A(e))?void 0:t.defaultView)?n:window}(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}function at(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(e,t)=>e!==t}=e,i=rt(r),a=rt(o),[s,l]=K.exports.useState(n),c=void 0!==t,u=c?t:s,d=rt(e=>{const t="function"==typeof e?e(u):e;a(u,t)&&(c||l(t),i(t))},[c,i,u,a]);return[u,d]}function st(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=rt(n),a=rt(t),[s,l]=K.exports.useState(e.defaultIsOpen||!1),c=void 0!==r?r:s,u=void 0!==r,d=K.exports.useId(),f=null!=o?o:`disclosure-${d}`,h=K.exports.useCallback(()=>{u||l(!1),null==a||a()},[u,a]),p=K.exports.useCallback(()=>{u||l(!0),null==i||i()},[u,i]),g=K.exports.useCallback(()=>{c?h():p()},[c,p,h]);return{isOpen:c,onOpen:p,onClose:h,onToggle:g,isControlled:u,getButtonProps:function(e={}){return{...e,"aria-expanded":c,"aria-controls":f,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!c,id:f}}}}const lt=Boolean(null==globalThis?void 0:globalThis.document)?K.exports.useLayoutEffect:K.exports.useEffect,ct=(e,t)=>{const n=K.exports.useRef(!1),r=K.exports.useRef(!1);K.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),K.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function ut(e){const t=e.current;if(!t)return!1;const n=A(t).activeElement;return!!n&&(!t.contains(n)&&!!Be(n))}function dt(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;ct(()=>{if(!i)return;if(ut(e))return;const t=(null==o?void 0:o.current)||e.current;let n;return t?(n=requestAnimationFrame(()=>{t.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(n)}):void 0},[i,e,o])}const ft={preventScroll:!0,shouldFocus:!1};const ht=()=>"undefined"!=typeof window;const pt=e=>ht()&&e.test(function(){var e;const t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),gt=()=>{return pt(/mac|iphone|ipad|ipod/i)&&(e=/apple/i,ht()&&e.test(navigator.vendor));var e};function mt(e,...t){const n=function(e,t){const n=K.exports.useId();return K.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}(e);return K.exports.useMemo(()=>t.map(e=>`${e}-${n}`),[n,t])}function vt(e){const t=K.exports.useRef(null);return t.current=e,t}function bt(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function yt(...e){return K.exports.useMemo(()=>bt(...e),e)}function xt(e){const{ref:t,handler:n,enabled:r=!0}=e,o=rt(n),i=K.exports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;K.exports.useEffect(()=>{if(!r)return;const e=e=>{wt(e,t)&&(i.isPointerDown=!0)},a=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&n&&wt(e,t)&&(i.isPointerDown=!1,o(e))},s=e=>{i.ignoreEmulatedMouseEvents=!0,n&&i.isPointerDown&&wt(e,t)&&(i.isPointerDown=!1,o(e))},l=kt(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",a,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",a,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[n,t,o,i,r])}function wt(e,t){var n,r,o;const i=null!=(r=null==(n=e.composedPath)?void 0:n.call(e)[0])?r:e.target;if(i){if(!kt(i).contains(i))return!1}return!(null==(o=t.current)?void 0:o.contains(i))}function kt(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}const _t=1/60*1e3,St="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Ct="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(St()),_t);let Et=!0,At=!1,Ot=!1;const Tt={delta:0,timestamp:0},Nt=["read","update","preRender","render","postRender"],Rt=Nt.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}(()=>At=!0),e),{}),Pt=Nt.reduce((e,t)=>{const n=Rt[t];return e[t]=(e,t=!1,r=!1)=>(At||It(),n.schedule(e,t,r)),e},{}),Mt=Nt.reduce((e,t)=>(e[t]=Rt[t].cancel,e),{});Nt.reduce((e,t)=>(e[t]=()=>Rt[t].process(Tt),e),{});const Lt=e=>Rt[e].process(Tt),Dt=e=>{At=!1,Tt.delta=Et?_t:Math.max(Math.min(e-Tt.timestamp,40),1),Tt.timestamp=e,Ot=!0,Nt.forEach(Lt),Ot=!1,At&&(Et=!1,Ct(Dt))},It=()=>{At=!0,Et=!0,Ot||Ct(Dt)},jt=()=>Tt;var zt=Object.defineProperty,Bt=(e,t,n)=>(((e,t,n)=>{t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Ft{constructor(e,t,n){var r;if(Bt(this,"history",[]),Bt(this,"startEvent",null),Bt(this,"lastEvent",null),Bt(this,"lastEventInfo",null),Bt(this,"handlers",{}),Bt(this,"removeListeners",()=>{}),Bt(this,"threshold",3),Bt(this,"win"),Bt(this,"updatePoint",()=>{if(!this.lastEvent||!this.lastEventInfo)return;const e=Ut(this.lastEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){if("number"==typeof e&&"number"==typeof t)return Vt(e,t);if(Ht(e)&&Ht(t)){const n=Vt(e.x,t.x),r=Vt(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}(e.offset,{x:0,y:0})>=this.threshold;if(!t&&!n)return;const{timestamp:r}=jt();this.history.push({...e.point,timestamp:r});const{onStart:o,onMove:i}=this.handlers;t||(null==o||o(this.lastEvent,e),this.startEvent=this.lastEvent),null==i||i(this.lastEvent,e)}),Bt(this,"onPointerMove",(e,t)=>{this.lastEvent=e,this.lastEventInfo=t,Pt.update(this.updatePoint,!0)}),Bt(this,"onPointerUp",(e,t)=>{const n=Ut(t,this.history),{onEnd:r,onSessionEnd:o}=this.handlers;null==o||o(e,n),this.end(),r&&this.startEvent&&(null==r||r(e,n))}),this.win=null!=(r=e.view)?r:window,function(e){return T(e)&&e.touches.length>1}(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const o={point:N(e)},{timestamp:i}=jt();this.history=[{...o.point,timestamp:i}];const{onSessionStart:a}=t;null==a||a(e,Ut(o,this.history)),this.removeListeners=function(...e){return t=>e.reduce((e,t)=>t(e),t)}(P(this.win,"pointermove",this.onPointerMove),P(this.win,"pointerup",this.onPointerUp),P(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),Mt.update(this.updatePoint)}}function qt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ut(e,t){return{point:e.point,delta:qt(e.point,t[t.length-1]),offset:qt(e.point,t[0]),velocity:$t(t,.1)}}const Wt=e=>1e3*e;function $t(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=e[e.length-1];for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Wt(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Vt(e,t){return Math.abs(e-t)}function Ht(e){return"x"in e&&"y"in e}const Yt=(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,Gt=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Kt=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,Qt=(e,t)=>`${e}:focus-visible ${t}`,Zt=(e,t)=>`${e}:focus-within ${t}`,Xt=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,Jt=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,en=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,tn=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,nn=(e,t)=>`${e}:placeholder-shown ${t}`,rn=e=>an(t=>e(t,"&"),"[role=group]","[data-group]",".group"),on=e=>an(t=>e(t,"~ &"),"[data-peer]",".peer"),an=(e,...t)=>t.map(e).join(", "),sn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:rn((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`),_groupClosed:rn(Yt),_groupHover:rn(Gt),_peerHover:on(Gt),_groupFocus:rn(Kt),_peerFocus:on(Kt),_groupFocusVisible:rn(Qt),_peerFocusVisible:on(Qt),_groupActive:rn(Xt),_peerActive:on(Xt),_groupDisabled:rn(Jt),_peerDisabled:on(Jt),_groupInvalid:rn(en),_peerInvalid:on(en),_groupChecked:rn(tn),_peerChecked:on(tn),_groupFocusWithin:rn(Zt),_peerFocusWithin:on(Zt),_peerPlaceholderShown:on(nn),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},ln=Object.keys(sn),cn=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function un(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{var i;const a=((e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),i=cn(r),a=e?`${e}.${i}`:i;let s=I(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=cn(s),o?`${s} !important`:s})(t,e)(o);let s=null!=(i=null==n?void 0:n(a,o))?i:a;return r&&(s=r(s,o)),s}}const dn=(...e)=>t=>e.reduce((e,t)=>t(e),t);function fn(e,t){return n=>{const r={property:n,scale:e};return r.transform=un({scale:e,transform:t}),r}}const hn=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t;const pn=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];const gn={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},mn={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};const vn={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},bn={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},yn=new Set(Object.values(bn)),xn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),wn=e=>e.trim();const kn=e=>"string"==typeof e&&e.includes("(")&&e.includes(")");const Sn=e=>t=>`${e}(${t})`,Cn={filter:e=>"auto"!==e?e:gn,backdropFilter:e=>"auto"!==e?e:mn,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(Cn.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...pn].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...pn].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||xn.has(e))return e;if(!kn(e)&&!xn.has(e))return`url('${e}')`;const n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!r||!o)return e;const i=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=o.split(",").map(wn).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=a in bn?bn[a]:a;return s.unshift(l),`${i}(${s.map(e=>{if(yn.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],i=kn(o)?o:o&&o.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s}).join(", ")})`}(e,null!=t?t:{}),blur:Sn("blur"),opacity:Sn("opacity"),brightness:Sn("brightness"),contrast:Sn("contrast"),dropShadow:Sn("drop-shadow"),grayscale:Sn("grayscale"),hueRotate:e=>Sn("hue-rotate")(Cn.degree(e)),invert:Sn("invert"),saturate:Sn("saturate"),sepia:Sn("sepia"),bgImage(e){if(null==e)return e;return kn(e)||xn.has(e)?e:`url(${e})`},outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=null!=(t=vn[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},En={borderWidths:fn("borderWidths"),borderStyles:fn("borderStyles"),colors:fn("colors"),borders:fn("borders"),gradients:fn("gradients",Cn.gradient),radii:fn("radii",Cn.px),space:fn("space",dn(Cn.vh,Cn.px)),spaceT:fn("space",dn(Cn.vh,Cn.px)),degreeT:e=>({property:e,transform:Cn.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:un({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:fn("sizes",dn(Cn.vh,Cn.px)),sizesT:fn("sizes",dn(Cn.vh,Cn.fraction)),shadows:fn("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:hn(t),transform:n?un({scale:n,compose:r}):r}},blur:fn("blur",Cn.blur)},An={background:En.colors("background"),backgroundColor:En.colors("backgroundColor"),backgroundImage:En.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Cn.bgClip},bgSize:En.prop("backgroundSize"),bgPosition:En.prop("backgroundPosition"),bg:En.colors("background"),bgColor:En.colors("backgroundColor"),bgPos:En.prop("backgroundPosition"),bgRepeat:En.prop("backgroundRepeat"),bgAttachment:En.prop("backgroundAttachment"),bgGradient:En.gradients("backgroundImage"),bgClip:{transform:Cn.bgClip}};Object.assign(An,{bgImage:An.backgroundImage,bgImg:An.backgroundImage});const On={border:En.borders("border"),borderWidth:En.borderWidths("borderWidth"),borderStyle:En.borderStyles("borderStyle"),borderColor:En.colors("borderColor"),borderRadius:En.radii("borderRadius"),borderTop:En.borders("borderTop"),borderBlockStart:En.borders("borderBlockStart"),borderTopLeftRadius:En.radii("borderTopLeftRadius"),borderStartStartRadius:En.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:En.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:En.radii("borderTopRightRadius"),borderStartEndRadius:En.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:En.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:En.borders("borderRight"),borderInlineEnd:En.borders("borderInlineEnd"),borderBottom:En.borders("borderBottom"),borderBlockEnd:En.borders("borderBlockEnd"),borderBottomLeftRadius:En.radii("borderBottomLeftRadius"),borderBottomRightRadius:En.radii("borderBottomRightRadius"),borderLeft:En.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:En.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:En.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:En.borders(["borderLeft","borderRight"]),borderInline:En.borders("borderInline"),borderY:En.borders(["borderTop","borderBottom"]),borderBlock:En.borders("borderBlock"),borderTopWidth:En.borderWidths("borderTopWidth"),borderBlockStartWidth:En.borderWidths("borderBlockStartWidth"),borderTopColor:En.colors("borderTopColor"),borderBlockStartColor:En.colors("borderBlockStartColor"),borderTopStyle:En.borderStyles("borderTopStyle"),borderBlockStartStyle:En.borderStyles("borderBlockStartStyle"),borderBottomWidth:En.borderWidths("borderBottomWidth"),borderBlockEndWidth:En.borderWidths("borderBlockEndWidth"),borderBottomColor:En.colors("borderBottomColor"),borderBlockEndColor:En.colors("borderBlockEndColor"),borderBottomStyle:En.borderStyles("borderBottomStyle"),borderBlockEndStyle:En.borderStyles("borderBlockEndStyle"),borderLeftWidth:En.borderWidths("borderLeftWidth"),borderInlineStartWidth:En.borderWidths("borderInlineStartWidth"),borderLeftColor:En.colors("borderLeftColor"),borderInlineStartColor:En.colors("borderInlineStartColor"),borderLeftStyle:En.borderStyles("borderLeftStyle"),borderInlineStartStyle:En.borderStyles("borderInlineStartStyle"),borderRightWidth:En.borderWidths("borderRightWidth"),borderInlineEndWidth:En.borderWidths("borderInlineEndWidth"),borderRightColor:En.colors("borderRightColor"),borderInlineEndColor:En.colors("borderInlineEndColor"),borderRightStyle:En.borderStyles("borderRightStyle"),borderInlineEndStyle:En.borderStyles("borderInlineEndStyle"),borderTopRadius:En.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:En.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:En.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:En.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(On,{rounded:On.borderRadius,roundedTop:On.borderTopRadius,roundedTopLeft:On.borderTopLeftRadius,roundedTopRight:On.borderTopRightRadius,roundedTopStart:On.borderStartStartRadius,roundedTopEnd:On.borderStartEndRadius,roundedBottom:On.borderBottomRadius,roundedBottomLeft:On.borderBottomLeftRadius,roundedBottomRight:On.borderBottomRightRadius,roundedBottomStart:On.borderEndStartRadius,roundedBottomEnd:On.borderEndEndRadius,roundedLeft:On.borderLeftRadius,roundedRight:On.borderRightRadius,roundedStart:On.borderInlineStartRadius,roundedEnd:On.borderInlineEndRadius,borderStart:On.borderInlineStart,borderEnd:On.borderInlineEnd,borderTopStartRadius:On.borderStartStartRadius,borderTopEndRadius:On.borderStartEndRadius,borderBottomStartRadius:On.borderEndStartRadius,borderBottomEndRadius:On.borderEndEndRadius,borderStartRadius:On.borderInlineStartRadius,borderEndRadius:On.borderInlineEndRadius,borderStartWidth:On.borderInlineStartWidth,borderEndWidth:On.borderInlineEndWidth,borderStartColor:On.borderInlineStartColor,borderEndColor:On.borderInlineEndColor,borderStartStyle:On.borderInlineStartStyle,borderEndStyle:On.borderInlineEndStyle});const Tn={color:En.colors("color"),textColor:En.colors("color"),fill:En.colors("fill"),stroke:En.colors("stroke"),accentColor:En.colors("accentColor"),textFillColor:En.colors("textFillColor")},Nn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Cn.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:En.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:En.space("gap"),rowGap:En.space("rowGap"),columnGap:En.space("columnGap")};Object.assign(Nn,{flexDir:Nn.flexDirection});const Rn={width:En.sizesT("width"),inlineSize:En.sizesT("inlineSize"),height:En.sizes("height"),blockSize:En.sizes("blockSize"),boxSize:En.sizes(["width","height"]),minWidth:En.sizes("minWidth"),minInlineSize:En.sizes("minInlineSize"),minHeight:En.sizes("minHeight"),minBlockSize:En.sizes("minBlockSize"),maxWidth:En.sizes("maxWidth"),maxInlineSize:En.sizes("maxInlineSize"),maxHeight:En.sizes("maxHeight"),maxBlockSize:En.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (min-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?o:e})`;return{[i]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (max-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?o:e})`;return{[i]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:En.propT("float",Cn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Rn,{w:Rn.width,h:Rn.height,minW:Rn.minWidth,maxW:Rn.maxWidth,minH:Rn.minHeight,maxH:Rn.maxHeight,overscroll:Rn.overscrollBehavior,overscrollX:Rn.overscrollBehaviorX,overscrollY:Rn.overscrollBehaviorY});const Pn={filter:{transform:Cn.filter},blur:En.blur("--chakra-blur"),brightness:En.propT("--chakra-brightness",Cn.brightness),contrast:En.propT("--chakra-contrast",Cn.contrast),hueRotate:En.propT("--chakra-hue-rotate",Cn.hueRotate),invert:En.propT("--chakra-invert",Cn.invert),saturate:En.propT("--chakra-saturate",Cn.saturate),dropShadow:En.propT("--chakra-drop-shadow",Cn.dropShadow),backdropFilter:{transform:Cn.backdropFilter},backdropBlur:En.blur("--chakra-backdrop-blur"),backdropBrightness:En.propT("--chakra-backdrop-brightness",Cn.brightness),backdropContrast:En.propT("--chakra-backdrop-contrast",Cn.contrast),backdropHueRotate:En.propT("--chakra-backdrop-hue-rotate",Cn.hueRotate),backdropInvert:En.propT("--chakra-backdrop-invert",Cn.invert),backdropSaturate:En.propT("--chakra-backdrop-saturate",Cn.saturate)},Mn={ring:{transform:Cn.ring},ringColor:En.colors("--chakra-ring-color"),ringOffset:En.prop("--chakra-ring-offset-width"),ringOffsetColor:En.colors("--chakra-ring-offset-color"),ringInset:En.prop("--chakra-ring-inset")},Ln={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Cn.outline},outlineOffset:!0,outlineColor:En.colors("outlineColor")},Dn={gridGap:En.space("gridGap"),gridColumnGap:En.space("gridColumnGap"),gridRowGap:En.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};const In=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}),jn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},zn={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Bn=(e,t,n)=>{const r={},o=In(e,t,{});for(const i in o){i in n&&null!=n[i]||(r[i]=o[i])}return r},Fn={srOnly:{transform:e=>!0===e?jn:"focusable"===e?zn:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>Bn(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Bn(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Bn(t,e,n)}},qn={position:!0,pos:En.prop("position"),zIndex:En.prop("zIndex","zIndices"),inset:En.spaceT("inset"),insetX:En.spaceT(["left","right"]),insetInline:En.spaceT("insetInline"),insetY:En.spaceT(["top","bottom"]),insetBlock:En.spaceT("insetBlock"),top:En.spaceT("top"),insetBlockStart:En.spaceT("insetBlockStart"),bottom:En.spaceT("bottom"),insetBlockEnd:En.spaceT("insetBlockEnd"),left:En.spaceT("left"),insetInlineStart:En.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:En.spaceT("right"),insetInlineEnd:En.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(qn,{insetStart:qn.insetInlineStart,insetEnd:qn.insetInlineEnd});const Un={boxShadow:En.shadows("boxShadow"),mixBlendMode:!0,blendMode:En.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:En.prop("backgroundBlendMode"),opacity:!0};Object.assign(Un,{shadow:Un.boxShadow});const Wn={margin:En.spaceT("margin"),marginTop:En.spaceT("marginTop"),marginBlockStart:En.spaceT("marginBlockStart"),marginRight:En.spaceT("marginRight"),marginInlineEnd:En.spaceT("marginInlineEnd"),marginBottom:En.spaceT("marginBottom"),marginBlockEnd:En.spaceT("marginBlockEnd"),marginLeft:En.spaceT("marginLeft"),marginInlineStart:En.spaceT("marginInlineStart"),marginX:En.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:En.spaceT("marginInline"),marginY:En.spaceT(["marginTop","marginBottom"]),marginBlock:En.spaceT("marginBlock"),padding:En.space("padding"),paddingTop:En.space("paddingTop"),paddingBlockStart:En.space("paddingBlockStart"),paddingRight:En.space("paddingRight"),paddingBottom:En.space("paddingBottom"),paddingBlockEnd:En.space("paddingBlockEnd"),paddingLeft:En.space("paddingLeft"),paddingInlineStart:En.space("paddingInlineStart"),paddingInlineEnd:En.space("paddingInlineEnd"),paddingX:En.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:En.space("paddingInline"),paddingY:En.space(["paddingTop","paddingBottom"]),paddingBlock:En.space("paddingBlock")};Object.assign(Wn,{m:Wn.margin,mt:Wn.marginTop,mr:Wn.marginRight,me:Wn.marginInlineEnd,marginEnd:Wn.marginInlineEnd,mb:Wn.marginBottom,ml:Wn.marginLeft,ms:Wn.marginInlineStart,marginStart:Wn.marginInlineStart,mx:Wn.marginX,my:Wn.marginY,p:Wn.padding,pt:Wn.paddingTop,py:Wn.paddingY,px:Wn.paddingX,pb:Wn.paddingBottom,pl:Wn.paddingLeft,ps:Wn.paddingInlineStart,paddingStart:Wn.paddingInlineStart,pr:Wn.paddingRight,pe:Wn.paddingInlineEnd,paddingEnd:Wn.paddingInlineEnd});const $n={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:En.spaceT("scrollMargin"),scrollMarginTop:En.spaceT("scrollMarginTop"),scrollMarginBottom:En.spaceT("scrollMarginBottom"),scrollMarginLeft:En.spaceT("scrollMarginLeft"),scrollMarginRight:En.spaceT("scrollMarginRight"),scrollMarginX:En.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:En.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:En.spaceT("scrollPadding"),scrollPaddingTop:En.spaceT("scrollPaddingTop"),scrollPaddingBottom:En.spaceT("scrollPaddingBottom"),scrollPaddingLeft:En.spaceT("scrollPaddingLeft"),scrollPaddingRight:En.spaceT("scrollPaddingRight"),scrollPaddingX:En.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:En.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},Vn={fontFamily:En.prop("fontFamily","fonts"),fontSize:En.prop("fontSize","fontSizes",Cn.px),fontWeight:En.prop("fontWeight","fontWeights"),lineHeight:En.prop("lineHeight","lineHeights"),letterSpacing:En.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Hn={textDecorationColor:En.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:En.shadows("textShadow")},Yn={clipPath:!0,transform:En.propT("transform",Cn.transform),transformOrigin:!0,translateX:En.spaceT("--chakra-translate-x"),translateY:En.spaceT("--chakra-translate-y"),skewX:En.degreeT("--chakra-skew-x"),skewY:En.degreeT("--chakra-skew-y"),scaleX:En.prop("--chakra-scale-x"),scaleY:En.prop("--chakra-scale-y"),scale:En.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:En.degreeT("--chakra-rotate")},Gn={listStyleType:!0,listStylePosition:!0,listStylePos:En.prop("listStylePosition"),listStyleImage:!0,listStyleImg:En.prop("listStyleImage")},Kn={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:En.prop("transitionDuration","transition.duration"),transitionProperty:En.prop("transitionProperty","transition.property"),transitionTimingFunction:En.prop("transitionTimingFunction","transition.easing")},Qn=nt({},An,On,Tn,Nn,Rn,Pn,Mn,Ln,Dn,Fn,qn,Un,Wn,$n,Vn,Hn,Yn,Gn,Kn),Zn=Object.assign({},Wn,Rn,Nn,Dn,qn),Xn=Object.keys(Zn),Jn=[...Object.keys(Qn),...ln],er={...Qn,...sn},tr=e=>e in er;const nr=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),rr=(e,t)=>{var n,r;if(null==t)return t;const o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,s]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(r=!0,n+=i):")"===i?(r=!1,n+=i):","!==i||r?n+=i:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return t=null!=(r=null!=(n=o(a))?n:i(s))?r:i(t)};function or(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,i=!1)=>{var a,s,l;const c=Ze(e,r),u=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=Ze(e[a],t);if(null==s)continue;if(s=I(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(i[t]=i[t]||{},null!=s[e]&&(i[t][a]=s[e])):i[a]=s[e]}}return i})(c)(r);let d={};for(let f in u){let e=Ze(u[f],r);f in n&&(f=n[f]),nr(f,e)&&(e=rr(r,e));let h=t[f];if(!0===h&&(h={property:f}),I(e)){d[f]=null!=(a=d[f])?a:{},d[f]=nt({},d[f],o(e,!0));continue}let p=null!=(l=null==(s=null==h?void 0:h.transform)?void 0:s.call(h,e,r,c))?l:e;p=(null==h?void 0:h.processResult)?o(p,!0):p;const g=Ze(null==h?void 0:h.property,r);if(!i&&(null==h?void 0:h.static)){const e=Ze(h.static,r);d=nt({},d,e)}if(g&&Array.isArray(g))for(const t of g)d[t]=p;else g?"&"===g&&I(p)?d=nt({},d,p):d[g]=p:I(p)?d=nt({},d,p):d[f]=p}return d};return o}const ir=e=>t=>or({theme:t,pseudos:sn,configs:Qn})(e);function ar(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function sr(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function lr(e){const t=e.__breakpoints;return function(e,n,r,o){var i,a;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:I(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const c=l.length,u=1===c,d=!!e.parts;for(let f=0;f<c;f++){const r=t.details[f],c=t.details[sr(l,f)],h=W(r.minW,null==c?void 0:c._minW),p=Ze(null==(i=e[n])?void 0:i[l[f]],o);p&&(d?null==(a=e.parts)||a.forEach(e=>{nt(s,{[e]:u?p[e]:{[h]:p[e]}})}):d?s[h]=p:u?nt(s,p):s[h]=p)}return s}}function cr(e){return Ge(e,["styleConfig","size","variant","colorScheme"])}function ur(e){return I(e)&&e.reference?e.reference:String(e)}const dr=(e,...t)=>t.map(ur).join(` ${e} `).replace(/calc/g,""),fr=(...e)=>`calc(${dr("+",...e)})`,hr=(...e)=>`calc(${dr("-",...e)})`,pr=(...e)=>`calc(${dr("*",...e)})`,gr=(...e)=>`calc(${dr("/",...e)})`,mr=e=>{const t=ur(e);return null==t||Number.isNaN(parseFloat(t))?pr(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},vr=Object.assign(e=>({add:(...t)=>vr(fr(e,...t)),subtract:(...t)=>vr(hr(e,...t)),multiply:(...t)=>vr(pr(e,...t)),divide:(...t)=>vr(gr(e,...t)),negate:()=>vr(mr(e)),toString:()=>e.toString()}),{add:fr,subtract:hr,multiply:pr,divide:gr,negate:mr});function br(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){if(e.includes("\\."))return e;const t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}function yr(e,t){return`var(${e}${t?`, ${t}`:""})`}function xr(e,t=""){return br(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function wr(e,t,n){const r=xr(e,n);return{variable:r,reference:yr(r,t)}}const kr=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function _r(e){const t=function(e){return Ke(e,kr)}(e),n=function(e){return e.semanticTokens}(e),r=e=>ln.includes(e)||"default"===e,o={};return et(t,(e,t)=>{null!=e&&(o[t.join(".")]={isSemantic:!1,value:e})}),et(n,(e,t)=>{null!=e&&(o[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(r)}),o}function Sr(e,t){return wr(String(e).replace(/\./g,"-"),void 0,t)}function Cr(e){const t=function(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}(e),{cssMap:n,cssVars:r}=function(e){var t;const n=_r(e),r=null==(t=e.config)?void 0:t.cssVarPrefix;let o={};const i={};function a(e,t){const o=[String(e).split(".")[0],t].join(".");if(!n[o])return t;const{reference:i}=Sr(o,r);return i}for(const[s,l]of Object.entries(n)){const{isSemantic:e,value:t}=l,{variable:n,reference:c}=Sr(s,r);if(!e){if(s.startsWith("space")){const e=s.split("."),[r,...o]=e,a=`${r}.-${o.join(".")}`,l=vr.negate(t),u=vr.negate(c);i[a]={value:l,var:n,varRef:u}}o[n]=t,i[s]={value:t,var:n,varRef:c};continue}const u=I(t)?t:{default:t};o=nt(o,Object.entries(u).reduce((e,[t,r])=>{var o;if(!r)return e;const i=a(s,`${r}`);return"default"===t?(e[n]=i,e):(e[null!=(o=null==sn?void 0:sn[t])?o:t]={[n]:i},e)},{})),i[s]={value:c,var:n,varRef:c}}return{cssVars:o,cssMap:i}}(t);return Object.assign(t,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...r},__cssMap:n,__breakpoints:$(t.breakpoints)}),t}function Er(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const e of o)t[e]=r(e);return Er(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return Er(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}const Ar=Er("accordion").parts("root","container","button","panel","icon"),Or=Er("alert").parts("title","description","container","icon","spinner"),Tr=Er("avatar").parts("label","badge","container","excessLabel","group"),Nr=Er("breadcrumb").parts("link","item","container","separator");Er("button").parts();const Rr=Er("checkbox").parts("control","icon","container","label");Er("progress").parts("track","filledTrack","label");const Pr=Er("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),Mr=Er("editable").parts("preview","input","textarea"),Lr=Er("form").parts("container","requiredIndicator","helperText"),Dr=Er("formError").parts("text","icon"),Ir=Er("input").parts("addon","field","element","group"),jr=Er("list").parts("container","item","icon"),zr=Er("menu").parts("button","list","item","groupTitle","icon","command","divider"),Br=Er("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),Fr=Er("numberinput").parts("root","field","stepperGroup","stepper");Er("pininput").parts("field");const qr=Er("popover").parts("content","header","body","footer","popper","arrow","closeButton"),Ur=Er("progress").parts("label","filledTrack","track"),Wr=Er("radio").parts("container","control","label"),$r=Er("select").parts("field","icon"),Vr=Er("slider").parts("container","track","thumb","filledTrack","mark"),Hr=Er("stat").parts("container","label","helpText","number","icon"),Yr=Er("switch").parts("container","track","thumb","label"),Gr=Er("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Kr=Er("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Qr=Er("tag").parts("container","label","closeButton"),Zr=Er("card").parts("container","header","body","footer");Er("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Xr,defineMultiStyleConfig:Jr}=ar(Ar.keys),eo=Jr({baseStyle:Xr({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})});function to(e,t,n){return Math.min(Math.max(e,n),t)}class no extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ro=no;function oo(e){if("string"!=typeof e)throw new ro(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=ho.test(e)?function(e){const t=e.toLowerCase().trim(),n=ao[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new ro(e);return`#${n}`}(e):e;const n=lo.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(so(e,2),16)),parseInt(so(e[3]||"f",2),16)/255]}const r=co.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}const o=uo.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}const i=fo.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(to(0,100,n)!==n)throw new ro(e);if(to(0,100,r)!==r)throw new ro(e);return[...go(t,n,r),Number.isNaN(o)?1:o]}throw new ro(e)}const io=e=>parseInt(e.replace(/_/g,""),36),ao="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=io(t.substring(0,3)),r=io(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});const so=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),lo=new RegExp(`^#${so("([a-f0-9])",3)}([a-f0-9])?$`,"i"),co=new RegExp(`^#${so("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),uo=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${so(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),fo=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ho=/^[a-z]+$/i,po=e=>Math.round(255*e),go=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(po);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const u=r-i/2;return[s+u,l+u,c+u].map(po)};function mo(e,t){const[n,r,o,i]=oo(e);return a=r,s=o,l=i-t,`rgba(${to(0,255,n).toFixed()}, ${to(0,255,a).toFixed()}, ${to(0,255,s).toFixed()}, ${parseFloat(to(0,1,l).toFixed(3))})`;var a,s,l}const vo=(e,t,n)=>{const r=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}(e,`colors.${t}`,t);try{return function(e){const[t,n,r,o]=oo(e);let i=e=>{const t=to(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(n),i(r),o<1&&i(Math.round(255*o))}(r),r}catch{return null!=n?n:"#000000"}},bo=e=>t=>{const n=(e=>{const[t,n,r]=oo(e);return(299*t+587*n+114*r)/1e3})(vo(t,e));return n<128?"dark":"light"},yo=(e,t)=>n=>mo(vo(n,e),1-t);function xo(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n    45deg,\n    ${t} 25%,\n    transparent 25%,\n    transparent 50%,\n    ${t} 50%,\n    ${t} 75%,\n    transparent 75%,\n    transparent\n  )`,backgroundSize:`${e} ${e}`}}function wo(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(n=e,0!==Object.keys(n).length)?e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n&=n;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let n="#";for(let r=0;r<3;r+=1){n+=`00${(t>>8*r&255).toString(16)}`.substr(-2)}return n}(e.string):e.colors&&!e.string?(r=e.colors)[Math.floor(Math.random()*r.length)]:t:t;var n,r}function ko(e,t){return n=>"dark"===n.colorMode?t:e}function _o(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}function So(e){return I(e)&&e.reference?e.reference:String(e)}const Co=(e,...t)=>t.map(So).join(` ${e} `).replace(/calc/g,""),Eo=(...e)=>`calc(${Co("+",...e)})`,Ao=(...e)=>`calc(${Co("-",...e)})`,Oo=(...e)=>`calc(${Co("*",...e)})`,To=(...e)=>`calc(${Co("/",...e)})`,No=e=>{const t=So(e);return null==t||Number.isNaN(parseFloat(t))?Oo(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Ro=Object.assign(e=>({add:(...t)=>Ro(Eo(e,...t)),subtract:(...t)=>Ro(Ao(e,...t)),multiply:(...t)=>Ro(Oo(e,...t)),divide:(...t)=>Ro(To(e,...t)),negate:()=>Ro(No(e)),toString:()=>e.toString()}),{add:Eo,subtract:Ao,multiply:Oo,divide:To,negate:No});function Po(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Mo(e,t){return`var(${Po(e)}${t?`, ${t}`:""})`}function Lo(e,t=""){return`--${function(e,t=""){return[t,Po(e)].filter(Boolean).join("-")}(e,t)}`}function Do(e,t){const n=Lo(e,null==t?void 0:t.prefix);return{variable:n,reference:Mo(n,Io(null==t?void 0:t.fallback))}}function Io(e){return"string"==typeof e?e:null==e?void 0:e.reference}const{definePartsStyle:jo,defineMultiStyleConfig:zo}=ar(Or.keys),Bo=wr("alert-fg"),Fo=wr("alert-bg");function qo(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:yo(`${n}.200`,.16)(t)}}const Uo=zo({baseStyle:jo({container:{bg:Fo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Bo.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Bo.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:jo(e=>{const{colorScheme:t}=e,n=qo(e);return{container:{[Bo.variable]:`colors.${t}.600`,[Fo.variable]:n.light,_dark:{[Bo.variable]:`colors.${t}.200`,[Fo.variable]:n.dark}}}}),"left-accent":jo(e=>{const{colorScheme:t}=e,n=qo(e);return{container:{[Bo.variable]:`colors.${t}.600`,[Fo.variable]:n.light,_dark:{[Bo.variable]:`colors.${t}.200`,[Fo.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Bo.reference}}}),"top-accent":jo(e=>{const{colorScheme:t}=e,n=qo(e);return{container:{[Bo.variable]:`colors.${t}.600`,[Fo.variable]:n.light,_dark:{[Bo.variable]:`colors.${t}.200`,[Fo.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Bo.reference}}}),solid:jo(e=>{const{colorScheme:t}=e;return{container:{[Bo.variable]:"colors.white",[Fo.variable]:`colors.${t}.600`,_dark:{[Bo.variable]:"colors.gray.900",[Fo.variable]:`colors.${t}.200`},color:Bo.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),Wo={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},$o={...Wo,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}};function Vo(e,...t){return"function"==typeof e?e(...t):e}const{definePartsStyle:Ho,defineMultiStyleConfig:Yo}=ar(Tr.keys),Go=wr("avatar-border-color"),Ko=wr("avatar-bg"),Qo=wr("avatar-font-size"),Zo=wr("avatar-size"),Xo={borderRadius:"full",border:"0.2em solid",borderColor:Go.reference,[Go.variable]:"white",_dark:{[Go.variable]:"colors.gray.800"}},Jo={bg:Ko.reference,fontSize:Qo.reference,width:Zo.reference,height:Zo.reference,lineHeight:"1",[Ko.variable]:"colors.gray.200",_dark:{[Ko.variable]:"colors.whiteAlpha.400"}},ei=e=>{const{name:t,theme:n}=e,r=t?wo({string:t}):"colors.gray.400",o=(e=>t=>"dark"===bo(e)(t))(r)(n);let i="white";return o||(i="gray.800"),{bg:Ko.reference,fontSize:Qo.reference,color:i,borderColor:Go.reference,verticalAlign:"top",width:Zo.reference,height:Zo.reference,"&:not([data-loaded])":{[Ko.variable]:r},[Go.variable]:"colors.white",_dark:{[Go.variable]:"colors.gray.800"}}},ti={fontSize:Qo.reference,lineHeight:"1"};function ni(e){const t="100%"!==e?$o[e]:void 0;return Ho({container:{[Zo.variable]:null!=t?t:e,[Qo.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Zo.variable]:null!=t?t:e,[Qo.variable]:`calc(${null!=t?t:e} / 2.5)`}})}const ri=Yo({baseStyle:Ho(e=>({badge:Vo(Xo,e),excessLabel:Vo(Jo,e),container:Vo(ei,e),label:ti})),sizes:{"2xs":ni(4),xs:ni(6),sm:ni(8),md:ni(12),lg:ni(16),xl:ni(24),"2xl":ni(32),full:ni("100%")},defaultProps:{size:"md"}}),oi=function(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[t,o]=r;n[t]=wr(`${e}-${t}`,o);continue}n[r]=wr(`${e}-${r}`)}return n}("badge",["bg","color","shadow"]),ii={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:oi.bg.reference,color:oi.color.reference,boxShadow:oi.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=yo(`${t}.500`,.6)(n);return{[oi.bg.variable]:`colors.${t}.500`,[oi.color.variable]:"colors.white",_dark:{[oi.bg.variable]:r,[oi.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=yo(`${t}.200`,.16)(n);return{[oi.bg.variable]:`colors.${t}.100`,[oi.color.variable]:`colors.${t}.800`,_dark:{[oi.bg.variable]:r,[oi.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=yo(`${t}.200`,.8)(n);return{[oi.color.variable]:`colors.${t}.500`,_dark:{[oi.color.variable]:r},[oi.shadow.variable]:`inset 0 0 0px 1px ${oi.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:ai,definePartsStyle:si}=ar(Nr.keys),li=wr("breadcrumb-link-decor"),ci=ai({baseStyle:si({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:li.reference,[li.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[li.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),ui=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:ko("gray.800","whiteAlpha.900")(e),_hover:{bg:ko("gray.100","whiteAlpha.200")(e)},_active:{bg:ko("gray.200","whiteAlpha.300")(e)}};const r=yo(`${t}.200`,.12)(n),o=yo(`${t}.200`,.24)(n);return{color:ko(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ko(`${t}.50`,r)(e)},_active:{bg:ko(`${t}.100`,o)(e)}}},di={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},fi={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:ui,outline:e=>{const{colorScheme:t}=e,n=ko("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Vo(ui,e)}},solid:e=>{var t;const{colorScheme:n}=e;if("gray"===n){const t=ko("gray.100","whiteAlpha.200")(e);return{bg:t,color:ko("gray.800","whiteAlpha.900")(e),_hover:{bg:ko("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:ko("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:a=`${n}.700`}=null!=(t=di[n])?t:{},s=ko(r,`${n}.200`)(e);return{bg:s,color:ko(o,"gray.800")(e),_hover:{bg:ko(i,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:ko(a,`${n}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ko(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ko(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:hi,defineMultiStyleConfig:pi}=ar(Zr.keys),gi=wr("card-bg"),mi=wr("card-padding"),vi=wr("card-shadow"),bi=wr("card-radius"),yi=wr("card-border-width","0"),xi=wr("card-border-color"),wi=hi({container:{[gi.variable]:"colors.chakra-body-bg",backgroundColor:gi.reference,boxShadow:vi.reference,borderRadius:bi.reference,color:"chakra-body-text",borderWidth:yi.reference,borderColor:xi.reference},body:{padding:mi.reference,flex:"1 1 0%"},header:{padding:mi.reference},footer:{padding:mi.reference}}),ki={sm:hi({container:{[bi.variable]:"radii.base",[mi.variable]:"space.3"}}),md:hi({container:{[bi.variable]:"radii.md",[mi.variable]:"space.5"}}),lg:hi({container:{[bi.variable]:"radii.xl",[mi.variable]:"space.7"}})},_i=pi({baseStyle:wi,variants:{elevated:hi({container:{[vi.variable]:"shadows.base",_dark:{[gi.variable]:"colors.gray.700"}}}),outline:hi({container:{[yi.variable]:"1px",[xi.variable]:"colors.chakra-border-color"}}),filled:hi({container:{[gi.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[mi.variable]:0},header:{[mi.variable]:0},footer:{[mi.variable]:0}}},sizes:ki,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Si,defineMultiStyleConfig:Ci}=ar(Rr.keys),Ei=wr("checkbox-size"),Ai=e=>{const{colorScheme:t}=e;return{w:Ei.reference,h:Ei.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ko(`${t}.500`,`${t}.200`)(e),borderColor:ko(`${t}.500`,`${t}.200`)(e),color:ko("white","gray.900")(e),_hover:{bg:ko(`${t}.600`,`${t}.300`)(e),borderColor:ko(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ko("gray.200","transparent")(e),bg:ko("gray.200","whiteAlpha.300")(e),color:ko("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ko(`${t}.500`,`${t}.200`)(e),borderColor:ko(`${t}.500`,`${t}.200`)(e),color:ko("white","gray.900")(e)},_disabled:{bg:ko("gray.100","whiteAlpha.100")(e),borderColor:ko("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ko("red.500","red.300")(e)}}},Oi={_disabled:{cursor:"not-allowed"}},Ti={userSelect:"none",_disabled:{opacity:.4}},Ni={transitionProperty:"transform",transitionDuration:"normal"},Ri=Ci({baseStyle:Si(e=>({icon:Ni,container:Oi,control:Vo(Ai,e),label:Ti})),sizes:{sm:Si({control:{[Ei.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Si({control:{[Ei.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Si({control:{[Ei.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Pi=Do("close-button-size"),Mi=Do("close-button-bg"),Li={baseStyle:{w:[Pi.reference],h:[Pi.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Mi.variable]:"colors.blackAlpha.100",_dark:{[Mi.variable]:"colors.whiteAlpha.100"}},_active:{[Mi.variable]:"colors.blackAlpha.200",_dark:{[Mi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Mi.reference},sizes:{lg:{[Pi.variable]:"sizes.10",fontSize:"md"},md:{[Pi.variable]:"sizes.8",fontSize:"xs"},sm:{[Pi.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:Di,defaultProps:Ii}=ii,ji={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:oi.bg.reference,color:oi.color.reference,boxShadow:oi.shadow.reference},variants:Di,defaultProps:Ii},zi={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Bi={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},{definePartsStyle:Fi,defineMultiStyleConfig:qi}=ar(Pr.keys),Ui=wr("drawer-bg"),Wi=wr("drawer-box-shadow");function $i(e){return Fi("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const Vi={bg:"blackAlpha.600",zIndex:"modal"},Hi={display:"flex",zIndex:"modal",justifyContent:"center"},Yi=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Ui.variable]:"colors.white",[Wi.variable]:"shadows.lg",_dark:{[Ui.variable]:"colors.gray.700",[Wi.variable]:"shadows.dark-lg"},bg:Ui.reference,boxShadow:Wi.reference}},Gi={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Ki={position:"absolute",top:"2",insetEnd:"3"},Qi={px:"6",py:"2",flex:"1",overflow:"auto"},Zi={px:"6",py:"4"},Xi=qi({baseStyle:Fi(e=>({overlay:Vi,dialogContainer:Hi,dialog:Vo(Yi,e),header:Gi,closeButton:Ki,body:Qi,footer:Zi})),sizes:{xs:$i("xs"),sm:$i("md"),md:$i("lg"),lg:$i("2xl"),xl:$i("4xl"),full:$i("full")},defaultProps:{size:"xs"}}),{definePartsStyle:Ji,defineMultiStyleConfig:ea}=ar(Mr.keys),ta=ea({baseStyle:Ji({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:na,defineMultiStyleConfig:ra}=ar(Lr.keys),oa=wr("form-control-color"),ia=ra({baseStyle:na({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[oa.variable]:"colors.red.500",_dark:{[oa.variable]:"colors.red.300"},color:oa.reference},helperText:{mt:"2",[oa.variable]:"colors.gray.600",_dark:{[oa.variable]:"colors.whiteAlpha.600"},color:oa.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:aa,defineMultiStyleConfig:sa}=ar(Dr.keys),la=wr("form-error-color"),ca=sa({baseStyle:aa({text:{[la.variable]:"colors.red.500",_dark:{[la.variable]:"colors.red.300"},color:la.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[la.variable]:"colors.red.500",_dark:{[la.variable]:"colors.red.300"},color:la.reference}})}),ua={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},da={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},{definePartsStyle:fa,defineMultiStyleConfig:ha}=ar(Ir.keys),pa=wr("input-height"),ga=wr("input-font-size"),ma=wr("input-padding"),va=wr("input-border-radius"),ba=fa({addon:{height:pa.reference,fontSize:ga.reference,px:ma.reference,borderRadius:va.reference},field:{width:"100%",height:pa.reference,fontSize:ga.reference,px:ma.reference,borderRadius:va.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ya={lg:{[ga.variable]:"fontSizes.lg",[ma.variable]:"space.4",[va.variable]:"radii.md",[pa.variable]:"sizes.12"},md:{[ga.variable]:"fontSizes.md",[ma.variable]:"space.4",[va.variable]:"radii.md",[pa.variable]:"sizes.10"},sm:{[ga.variable]:"fontSizes.sm",[ma.variable]:"space.3",[va.variable]:"radii.sm",[pa.variable]:"sizes.8"},xs:{[ga.variable]:"fontSizes.xs",[ma.variable]:"space.2",[va.variable]:"radii.sm",[pa.variable]:"sizes.6"}};function xa(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||ko("blue.500","blue.300")(e),errorBorderColor:n||ko("red.500","red.300")(e)}}const wa=ha({baseStyle:ba,sizes:{lg:fa({field:ya.lg,group:ya.lg}),md:fa({field:ya.md,group:ya.md}),sm:fa({field:ya.sm,group:ya.sm}),xs:fa({field:ya.xs,group:ya.xs})},variants:{outline:fa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xa(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ko("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:vo(t,r),boxShadow:`0 0 0 1px ${vo(t,r)}`},_focusVisible:{zIndex:1,borderColor:vo(t,n),boxShadow:`0 0 0 1px ${vo(t,n)}`}},addon:{border:"1px solid",borderColor:ko("inherit","whiteAlpha.50")(e),bg:ko("gray.100","whiteAlpha.300")(e)}}}),filled:fa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xa(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ko("gray.100","whiteAlpha.50")(e),_hover:{bg:ko("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:vo(t,r)},_focusVisible:{bg:"transparent",borderColor:vo(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:ko("gray.100","whiteAlpha.50")(e)}}}),flushed:fa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xa(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:vo(t,r),boxShadow:`0px 1px 0px 0px ${vo(t,r)}`},_focusVisible:{borderColor:vo(t,n),boxShadow:`0px 1px 0px 0px ${vo(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:fa({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),ka=wr("kbd-bg"),_a={baseStyle:{[ka.variable]:"colors.gray.100",_dark:{[ka.variable]:"colors.whiteAlpha.100"},bg:ka.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},Sa={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},{defineMultiStyleConfig:Ca,definePartsStyle:Ea}=ar(jr.keys),Aa=Ca({baseStyle:Ea({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:Oa,definePartsStyle:Ta}=ar(zr.keys),Na=wr("menu-bg"),Ra=wr("menu-shadow"),Pa=Oa({baseStyle:Ta({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[Na.variable]:"#fff",[Ra.variable]:"shadows.sm",_dark:{[Na.variable]:"colors.gray.700",[Ra.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Na.reference,boxShadow:Ra.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Na.variable]:"colors.gray.100",_dark:{[Na.variable]:"colors.whiteAlpha.100"}},_active:{[Na.variable]:"colors.gray.200",_dark:{[Na.variable]:"colors.whiteAlpha.200"}},_expanded:{[Na.variable]:"colors.gray.100",_dark:{[Na.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Na.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:Ma,definePartsStyle:La}=ar(Br.keys),Da=wr("modal-bg"),Ia=wr("modal-shadow"),ja={bg:"blackAlpha.600",zIndex:"modal"},za=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}},Ba=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[Da.variable]:"colors.white",[Ia.variable]:"shadows.lg",_dark:{[Da.variable]:"colors.gray.700",[Ia.variable]:"shadows.dark-lg"},bg:Da.reference,boxShadow:Ia.reference}},Fa={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},qa={position:"absolute",top:"2",insetEnd:"3"},Ua=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},Wa={px:"6",py:"4"};function $a(e){return La("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const Va=Ma({baseStyle:La(e=>({overlay:ja,dialogContainer:Vo(za,e),dialog:Vo(Ba,e),header:Fa,closeButton:qa,body:Vo(Ua,e),footer:Wa})),sizes:{xs:$a("xs"),sm:$a("sm"),md:$a("md"),lg:$a("lg"),xl:$a("xl"),"2xl":$a("2xl"),"3xl":$a("3xl"),"4xl":$a("4xl"),"5xl":$a("5xl"),"6xl":$a("6xl"),full:$a("full")},defaultProps:{size:"md"}}),Ha={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:Ya,definePartsStyle:Ga}=ar(Fr.keys),Ka=Do("number-input-stepper-width"),Qa=Do("number-input-input-padding"),Za=Ro(Ka).add("0.5rem").toString(),Xa=Do("number-input-bg"),Ja=Do("number-input-color"),es=Do("number-input-border-color"),ts={[Ka.variable]:"sizes.6",[Qa.variable]:Za},ns=e=>{var t,n;return null!=(n=null==(t=Vo(wa.baseStyle,e))?void 0:t.field)?n:{}},rs={width:Ka.reference},os={borderStart:"1px solid",borderStartColor:es.reference,color:Ja.reference,bg:Xa.reference,[Ja.variable]:"colors.chakra-body-text",[es.variable]:"colors.chakra-border-color",_dark:{[Ja.variable]:"colors.whiteAlpha.800",[es.variable]:"colors.whiteAlpha.300"},_active:{[Xa.variable]:"colors.gray.200",_dark:{[Xa.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}};function is(e){var t,n,r;const o=null==(t=wa.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",s=Ha.fontSizes[a];return Ga({field:{...o.field,paddingInlineEnd:Qa.reference,verticalAlign:"top"},stepper:{fontSize:Ro(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}const as=Ya({baseStyle:Ga(e=>{var t;return{root:ts,field:null!=(t=Vo(ns,e))?t:{},stepperGroup:rs,stepper:os}}),sizes:{xs:is("xs"),sm:is("sm"),md:is("md"),lg:is("lg")},variants:wa.variants,defaultProps:wa.defaultProps}),ss={baseStyle:{...null==(e=wa.baseStyle)?void 0:e.field,textAlign:"center"},sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:e=>{var t,n,r;return null!=(r=null==(n=Vo(null==(t=wa.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:e=>{var t,n,r;return null!=(r=null==(n=Vo(null==(t=wa.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:e=>{var t,n,r;return null!=(r=null==(n=Vo(null==(t=wa.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(n=null==(t=wa.variants)?void 0:t.unstyled.field)?n:{}},defaultProps:wa.defaultProps},{defineMultiStyleConfig:ls,definePartsStyle:cs}=ar(qr.keys),us=Do("popper-bg"),ds=Do("popper-arrow-bg"),fs=Do("popper-arrow-shadow-color"),hs=ls({baseStyle:cs({popper:{zIndex:"popover"},content:{[us.variable]:"colors.white",bg:us.reference,[ds.variable]:us.reference,[fs.variable]:"colors.gray.200",_dark:{[us.variable]:"colors.gray.700",[fs.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{defineMultiStyleConfig:ps,definePartsStyle:gs}=ar(Ur.keys),ms=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=ko(xo(),xo("1rem","rgba(0,0,0,0.1)"))(e),a=ko(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n    to right,\n    transparent 0%,\n    ${vo(n,a)} 50%,\n    transparent 100%\n  )`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},vs={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},bs=e=>({bg:ko("gray.100","whiteAlpha.300")(e)}),ys=e=>({transitionProperty:"common",transitionDuration:"slow",...ms(e)}),xs=gs(e=>({label:vs,filledTrack:ys(e),track:bs(e)})),ws=ps({sizes:{xs:gs({track:{h:"1"}}),sm:gs({track:{h:"2"}}),md:gs({track:{h:"3"}}),lg:gs({track:{h:"4"}})},baseStyle:xs,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ks,definePartsStyle:_s}=ar(Wr.keys),Ss=e=>{var t;const n=null==(t=Vo(Ri.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Cs=ks({baseStyle:_s(e=>{var t,n;return{label:null==(t=Ri.baseStyle)?void 0:t.call(Ri,e).label,container:null==(n=Ri.baseStyle)?void 0:n.call(Ri,e).container,control:Ss(e)}}),sizes:{md:_s({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:_s({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:_s({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Es,definePartsStyle:As}=ar($r.keys),Os=wr("select-bg"),Ts={paddingInlineEnd:"8"},Ns=Es({baseStyle:As({field:{...null==(r=wa.baseStyle)?void 0:r.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Os.reference,[Os.variable]:"colors.white",_dark:{[Os.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Os.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(o=wa.sizes)?void 0:o.lg,field:{...null==(i=wa.sizes)?void 0:i.lg.field,...Ts}},md:{...null==(a=wa.sizes)?void 0:a.md,field:{...null==(s=wa.sizes)?void 0:s.md.field,...Ts}},sm:{...null==(l=wa.sizes)?void 0:l.sm,field:{...null==(c=wa.sizes)?void 0:c.sm.field,...Ts}},xs:{...null==(u=wa.sizes)?void 0:u.xs,field:{...null==(d=wa.sizes)?void 0:d.xs.field,...Ts},icon:{insetEnd:"1"}}},variants:wa.variants,defaultProps:wa.defaultProps}),Rs=wr("skeleton-start-color"),Ps=wr("skeleton-end-color"),Ms={baseStyle:{[Rs.variable]:"colors.gray.100",[Ps.variable]:"colors.gray.400",_dark:{[Rs.variable]:"colors.gray.800",[Ps.variable]:"colors.gray.600"},background:Rs.reference,borderColor:Ps.reference,opacity:.7,borderRadius:"sm"}},Ls=wr("skip-link-bg"),Ds={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Ls.variable]:"colors.white",_dark:{[Ls.variable]:"colors.gray.700"},bg:Ls.reference}}},{defineMultiStyleConfig:Is,definePartsStyle:js}=ar(Vr.keys),zs=wr("slider-thumb-size"),Bs=wr("slider-track-size"),Fs=wr("slider-bg"),qs=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},..._o({orientation:t,vertical:{h:"100%",px:vr(zs.reference).divide(2).toString()},horizontal:{w:"100%",py:vr(zs.reference).divide(2).toString()}})}},Us=e=>({..._o({orientation:e.orientation,horizontal:{h:Bs.reference},vertical:{w:Bs.reference}}),overflow:"hidden",borderRadius:"sm",[Fs.variable]:"colors.gray.200",_dark:{[Fs.variable]:"colors.whiteAlpha.200"},_disabled:{[Fs.variable]:"colors.gray.300",_dark:{[Fs.variable]:"colors.whiteAlpha.300"}},bg:Fs.reference}),Ws=e=>{const{orientation:t}=e;return{..._o({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:zs.reference,h:zs.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},$s=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Fs.variable]:`colors.${t}.500`,_dark:{[Fs.variable]:`colors.${t}.200`},bg:Fs.reference}},Vs=Is({baseStyle:js(e=>({container:qs(e),track:Us(e),thumb:Ws(e),filledTrack:$s(e)})),sizes:{lg:js({container:{[zs.variable]:"sizes.4",[Bs.variable]:"sizes.1"}}),md:js({container:{[zs.variable]:"sizes.3.5",[Bs.variable]:"sizes.1"}}),sm:js({container:{[zs.variable]:"sizes.2.5",[Bs.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Hs=Do("spinner-size"),Ys={baseStyle:{width:[Hs.reference],height:[Hs.reference]},sizes:{xs:{[Hs.variable]:"sizes.3"},sm:{[Hs.variable]:"sizes.4"},md:{[Hs.variable]:"sizes.6"},lg:{[Hs.variable]:"sizes.8"},xl:{[Hs.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Gs,definePartsStyle:Ks}=ar(Hr.keys),Qs=Gs({baseStyle:Ks({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Ks({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:Zs,definePartsStyle:Xs}=ar(["stepper","step","title","description","indicator","separator","icon","number"]),Js=wr("stepper-indicator-size"),el=wr("stepper-icon-size"),tl=wr("stepper-title-font-size"),nl=wr("stepper-description-font-size"),rl=wr("stepper-accent-color"),ol=Zs({baseStyle:Xs(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[rl.variable]:`colors.${e}.500`,_dark:{[rl.variable]:`colors.${e}.200`}},title:{fontSize:tl.reference,fontWeight:"medium"},description:{fontSize:nl.reference,color:"chakra-subtle-text"},number:{fontSize:tl.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:el.reference,height:el.reference},indicator:{flexShrink:0,borderRadius:"full",width:Js.reference,height:Js.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:rl.reference},"&[data-status=complete]":{bg:rl.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:rl.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Js.reference} - 8px)`,top:`calc(${Js.reference} + 4px)`,insetStart:`calc(${Js.reference} / 2 - 1px)`}}})),sizes:{xs:Xs({stepper:{[Js.variable]:"sizes.4",[el.variable]:"sizes.3",[tl.variable]:"fontSizes.xs",[nl.variable]:"fontSizes.xs"}}),sm:Xs({stepper:{[Js.variable]:"sizes.6",[el.variable]:"sizes.4",[tl.variable]:"fontSizes.sm",[nl.variable]:"fontSizes.xs"}}),md:Xs({stepper:{[Js.variable]:"sizes.8",[el.variable]:"sizes.5",[tl.variable]:"fontSizes.md",[nl.variable]:"fontSizes.sm"}}),lg:Xs({stepper:{[Js.variable]:"sizes.10",[el.variable]:"sizes.6",[tl.variable]:"fontSizes.lg",[nl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:il,definePartsStyle:al}=ar(Yr.keys),sl=Do("switch-track-width"),ll=Do("switch-track-height"),cl=Do("switch-track-diff"),ul=Ro.subtract(sl,ll),dl=Do("switch-thumb-x"),fl=Do("switch-bg"),hl=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[sl.reference],height:[ll.reference],transitionProperty:"common",transitionDuration:"fast",[fl.variable]:"colors.gray.300",_dark:{[fl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[fl.variable]:`colors.${t}.500`,_dark:{[fl.variable]:`colors.${t}.200`}},bg:fl.reference}},pl={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ll.reference],height:[ll.reference],_checked:{transform:`translateX(${dl.reference})`}},gl=il({baseStyle:al(e=>({container:{[cl.variable]:ul,[dl.variable]:cl.reference,_rtl:{[dl.variable]:Ro(cl).negate().toString()}},track:hl(e),thumb:pl})),sizes:{sm:al({container:{[sl.variable]:"1.375rem",[ll.variable]:"sizes.3"}}),md:al({container:{[sl.variable]:"1.875rem",[ll.variable]:"sizes.4"}}),lg:al({container:{[sl.variable]:"2.875rem",[ll.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ml,definePartsStyle:vl}=ar(Gr.keys),bl=vl({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),yl={"&[data-is-numeric=true]":{textAlign:"end"}},xl=ml({baseStyle:bl,variants:{simple:vl(e=>{const{colorScheme:t}=e;return{th:{color:ko("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ko(`${t}.100`,`${t}.700`)(e),...yl},td:{borderBottom:"1px",borderColor:ko(`${t}.100`,`${t}.700`)(e),...yl},caption:{color:ko("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:vl(e=>{const{colorScheme:t}=e;return{th:{color:ko("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ko(`${t}.100`,`${t}.700`)(e),...yl},td:{borderBottom:"1px",borderColor:ko(`${t}.100`,`${t}.700`)(e),...yl},caption:{color:ko("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ko(`${t}.100`,`${t}.700`)(e)},td:{background:ko(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:{}},sizes:{sm:vl({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:vl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:vl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),wl=wr("tabs-color"),kl=wr("tabs-bg"),_l=wr("tabs-border-color"),{defineMultiStyleConfig:Sl,definePartsStyle:Cl}=ar(Kr.keys),El=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Al=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Ol=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},Tl={p:4},Nl=Sl({baseStyle:Cl(e=>({root:El(e),tab:Al(e),tablist:Ol(e),tabpanel:Tl})),sizes:{sm:Cl({tab:{py:1,px:4,fontSize:"sm"}}),md:Cl({tab:{fontSize:"md",py:2,px:4}}),lg:Cl({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:Cl(e=>{const{colorScheme:t,orientation:n}=e,r="vertical"===n,o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[wl.variable]:`colors.${t}.600`,_dark:{[wl.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[kl.variable]:"colors.gray.200",_dark:{[kl.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:wl.reference,bg:kl.reference}}}),enclosed:Cl(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[_l.variable]:"transparent",_selected:{[wl.variable]:`colors.${t}.600`,[_l.variable]:"colors.white",_dark:{[wl.variable]:`colors.${t}.300`,[_l.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:_l.reference},color:wl.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":Cl(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[kl.variable]:"colors.gray.50",_dark:{[kl.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[kl.variable]:"colors.white",[wl.variable]:`colors.${t}.600`,_dark:{[kl.variable]:"colors.gray.800",[wl.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:wl.reference,bg:kl.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":Cl(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:vo(n,`${t}.700`),bg:vo(n,`${t}.100`)}}}}),"solid-rounded":Cl(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[wl.variable]:"colors.gray.600",_dark:{[wl.variable]:"inherit"},_selected:{[wl.variable]:"colors.white",[kl.variable]:`colors.${t}.600`,_dark:{[wl.variable]:"colors.gray.800",[kl.variable]:`colors.${t}.300`}},color:wl.reference,bg:kl.reference}}}),unstyled:Cl({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Rl,definePartsStyle:Pl}=ar(Qr.keys),Ml=wr("tag-bg"),Ll=wr("tag-color"),Dl=wr("tag-shadow"),Il=wr("tag-min-height"),jl=wr("tag-min-width"),zl=wr("tag-font-size"),Bl=wr("tag-padding-inline"),Fl=Pl({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[Ll.variable]:oi.color.reference,[Ml.variable]:oi.bg.reference,[Dl.variable]:oi.shadow.reference,color:Ll.reference,bg:Ml.reference,boxShadow:Dl.reference,borderRadius:"md",minH:Il.reference,minW:jl.reference,fontSize:zl.reference,px:Bl.reference,_focusVisible:{[Dl.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),ql={sm:Pl({container:{[Il.variable]:"sizes.5",[jl.variable]:"sizes.5",[zl.variable]:"fontSizes.xs",[Bl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Pl({container:{[Il.variable]:"sizes.6",[jl.variable]:"sizes.6",[zl.variable]:"fontSizes.sm",[Bl.variable]:"space.2"}}),lg:Pl({container:{[Il.variable]:"sizes.8",[jl.variable]:"sizes.8",[zl.variable]:"fontSizes.md",[Bl.variable]:"space.3"}})},Ul=Rl({variants:{subtle:Pl(e=>{var t;return{container:null==(t=ii.variants)?void 0:t.subtle(e)}}),solid:Pl(e=>{var t;return{container:null==(t=ii.variants)?void 0:t.solid(e)}}),outline:Pl(e=>{var t;return{container:null==(t=ii.variants)?void 0:t.outline(e)}})},baseStyle:Fl,sizes:ql,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),Wl={...null==(f=wa.baseStyle)?void 0:f.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},$l={outline:e=>{var t,n;return null!=(n=null==(t=wa.variants)?void 0:t.outline(e).field)?n:{}},flushed:e=>{var t,n;return null!=(n=null==(t=wa.variants)?void 0:t.flushed(e).field)?n:{}},filled:e=>{var t,n;return null!=(n=null==(t=wa.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(h=null==(_n=wa.variants)?void 0:_n.unstyled.field)?h:{}},Vl={baseStyle:Wl,sizes:{xs:null!=(g=null==(p=wa.sizes)?void 0:p.xs.field)?g:{},sm:null!=(v=null==(m=wa.sizes)?void 0:m.sm.field)?v:{},md:null!=(y=null==(b=wa.sizes)?void 0:b.md.field)?y:{},lg:null!=(w=null==(x=wa.sizes)?void 0:x.lg.field)?w:{}},variants:$l,defaultProps:{size:"md",variant:"outline"}},Hl=Do("tooltip-bg"),Yl=Do("tooltip-fg"),Gl=Do("popper-arrow-bg"),Kl={bg:Hl.reference,color:Yl.reference,[Hl.variable]:"colors.gray.700",[Yl.variable]:"colors.whiteAlpha.900",_dark:{[Hl.variable]:"colors.gray.300",[Yl.variable]:"colors.gray.900"},[Gl.variable]:Hl.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Ql={Accordion:eo,Alert:Uo,Avatar:ri,Badge:ii,Breadcrumb:ci,Button:fi,Checkbox:Ri,CloseButton:Li,Code:ji,Container:zi,Divider:Bi,Drawer:Xi,Editable:ta,Form:ia,FormError:ca,FormLabel:ua,Heading:da,Input:wa,Kbd:_a,Link:Sa,List:Aa,Menu:Pa,Modal:Va,NumberInput:as,PinInput:ss,Popover:hs,Progress:ws,Radio:Cs,Select:Ns,Skeleton:Ms,SkipLink:Ds,Slider:Vs,Spinner:Ys,Stat:Qs,Switch:gl,Table:xl,Tabs:Nl,Tag:Ul,Textarea:Vl,Tooltip:{baseStyle:Kl},Card:_i,Stepper:ol},Zl={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},Xl={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},...Ha,sizes:$o,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:Wo,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:Zl},Jl={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},ec={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},tc=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];const nc={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},rc={semanticTokens:Jl,direction:"ltr",...Xl,components:Ql,styles:ec,config:nc},oc={semanticTokens:Jl,direction:"ltr",components:{},...Xl,styles:ec,config:nc};var ic={exports:{}},ac={},sc=K.exports,lc=Symbol.for("react.element"),cc=Symbol.for("react.fragment"),uc=Object.prototype.hasOwnProperty,dc=sc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fc={key:!0,ref:!0,__self:!0,__source:!0};function hc(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)uc.call(t,r)&&!fc.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:lc,type:e,key:i,ref:a,props:o,_owner:dc.current}}ac.Fragment=cc,ac.jsx=hc,ac.jsxs=hc;const pc=(ic.exports=ac).Fragment,gc=ic.exports.jsx,mc=ic.exports.jsxs;var vc=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(OV){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),bc="-ms-",yc="-moz-",xc="-webkit-",wc="comm",kc="rule",_c="decl",Sc="@keyframes",Cc=Math.abs,Ec=String.fromCharCode,Ac=Object.assign;function Oc(e){return e.trim()}function Tc(e,t,n){return e.replace(t,n)}function Nc(e,t){return e.indexOf(t)}function Rc(e,t){return 0|e.charCodeAt(t)}function Pc(e,t,n){return e.slice(t,n)}function Mc(e){return e.length}function Lc(e){return e.length}function Dc(e,t){return t.push(e),e}var Ic=1,jc=1,zc=0,Bc=0,Fc=0,qc="";function Uc(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ic,column:jc,length:a,return:""}}function Wc(e,t){return Ac(Uc("",null,null,"",null,null,0),e,{length:-e.length},t)}function $c(){return Fc=Bc>0?Rc(qc,--Bc):0,jc--,10===Fc&&(jc=1,Ic--),Fc}function Vc(){return Fc=Bc<zc?Rc(qc,Bc++):0,jc++,10===Fc&&(jc=1,Ic++),Fc}function Hc(){return Rc(qc,Bc)}function Yc(){return Bc}function Gc(e,t){return Pc(qc,e,t)}function Kc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qc(e){return Ic=jc=1,zc=Mc(qc=e),Bc=0,[]}function Zc(e){return qc="",e}function Xc(e){return Oc(Gc(Bc-1,tu(91===e?e+2:40===e?e+1:e)))}function Jc(e){for(;(Fc=Hc())&&Fc<33;)Vc();return Kc(e)>2||Kc(Fc)>3?"":" "}function eu(e,t){for(;--t&&Vc()&&!(Fc<48||Fc>102||Fc>57&&Fc<65||Fc>70&&Fc<97););return Gc(e,Yc()+(t<6&&32==Hc()&&32==Vc()))}function tu(e){for(;Vc();)switch(Fc){case e:return Bc;case 34:case 39:34!==e&&39!==e&&tu(Fc);break;case 40:41===e&&tu(e);break;case 92:Vc()}return Bc}function nu(e,t){for(;Vc()&&e+Fc!==57&&(e+Fc!==84||47!==Hc()););return"/*"+Gc(t,Bc-1)+"*"+Ec(47===e?e:Vc())}function ru(e){for(;!Kc(Hc());)Vc();return Gc(e,Bc)}function ou(e){return Zc(iu("",null,null,null,[""],e=Qc(e),0,[0],e))}function iu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,g=1,m=1,v=1,b=0,y="",x=o,w=i,k=r,_=y;m;)switch(p=b,b=Vc()){case 40:if(108!=p&&58==Rc(_,d-1)){-1!=Nc(_+=Tc(Xc(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Xc(b);break;case 9:case 10:case 13:case 32:_+=Jc(p);break;case 92:_+=eu(Yc()-1,7);continue;case 47:switch(Hc()){case 42:case 47:Dc(su(nu(Vc(),Yc()),t,n),l);break;default:_+="/"}break;case 123*g:s[c++]=Mc(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(_=Tc(_,/\f/g,"")),h>0&&Mc(_)-d&&Dc(h>32?lu(_+";",r,n,d-1):lu(Tc(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Dc(k=au(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)iu(_,t,k,k,x,i,d,s,w);else switch(99===f&&110===Rc(_,3)?100:f){case 100:case 108:case 109:case 115:iu(e,k,k,r&&Dc(au(e,k,k,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:iu(_,k,k,k,[""],w,0,s,w)}}c=u=h=0,g=v=1,y=_="",d=a;break;case 58:d=1+Mc(_),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==$c())continue;switch(_+=Ec(b),b*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Mc(_)-1)*v,v=1;break;case 64:45===Hc()&&(_+=Xc(Vc())),f=Hc(),u=d=Mc(y=_+=ru(Yc())),b++;break;case 45:45===p&&2==Mc(_)&&(g=0)}}return i}function au(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],h=Lc(f),p=0,g=0,m=0;p<r;++p)for(var v=0,b=Pc(e,d+1,d=Cc(g=a[p])),y=e;v<h;++v)(y=Oc(g>0?f[v]+" "+b:Tc(b,/&\f/g,f[v])))&&(l[m++]=y);return Uc(e,t,n,0===o?kc:s,l,c,u)}function su(e,t,n){return Uc(e,t,n,wc,Ec(Fc),Pc(e,2,-2),0)}function lu(e,t,n,r){return Uc(e,t,n,_c,Pc(e,0,r),Pc(e,r+1,-1),r)}function cu(e,t){for(var n="",r=Lc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function uu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _c:return e.return=e.return||e.value;case wc:return"";case Sc:return e.return=e.value+"{"+cu(e.children,r)+"}";case kc:e.value=e.props.join(",")}return Mc(n=cu(e.children,r))?e.return=e.value+"{"+n+"}":""}var du=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function fu(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hu=function(e,t,n){for(var r=0,o=0;r=o,o=Hc(),38===r&&12===o&&(t[n]=1),!Kc(o);)Vc();return Gc(e,Bc)},pu=function(e,t){return Zc(function(e,t){var n=-1,r=44;do{switch(Kc(r)){case 0:38===r&&12===Hc()&&(t[n]=1),e[n]+=hu(Bc-1,t,n);break;case 2:e[n]+=Xc(r);break;case 4:if(44===r){e[++n]=58===Hc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ec(r)}}while(r=Vc());return e}(Qc(e),t))},gu=new WeakMap,mu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||gu.get(n))&&!r){gu.set(e,!0);for(var o=[],i=pu(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},vu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function bu(e,t){switch(function(e,t){return 45^Rc(e,0)?(((t<<2^Rc(e,0))<<2^Rc(e,1))<<2^Rc(e,2))<<2^Rc(e,3):0}(e,t)){case 5103:return xc+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xc+e+yc+e+bc+e+e;case 6828:case 4268:return xc+e+bc+e+e;case 6165:return xc+e+bc+"flex-"+e+e;case 5187:return xc+e+Tc(e,/(\w+).+(:[^]+)/,xc+"box-$1$2"+bc+"flex-$1$2")+e;case 5443:return xc+e+bc+"flex-item-"+Tc(e,/flex-|-self/,"")+e;case 4675:return xc+e+bc+"flex-line-pack"+Tc(e,/align-content|flex-|-self/,"")+e;case 5548:return xc+e+bc+Tc(e,"shrink","negative")+e;case 5292:return xc+e+bc+Tc(e,"basis","preferred-size")+e;case 6060:return xc+"box-"+Tc(e,"-grow","")+xc+e+bc+Tc(e,"grow","positive")+e;case 4554:return xc+Tc(e,/([^-])(transform)/g,"$1"+xc+"$2")+e;case 6187:return Tc(Tc(Tc(e,/(zoom-|grab)/,xc+"$1"),/(image-set)/,xc+"$1"),e,"")+e;case 5495:case 3959:return Tc(e,/(image-set\([^]*)/,xc+"$1$`$1");case 4968:return Tc(Tc(e,/(.+:)(flex-)?(.*)/,xc+"box-pack:$3"+bc+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xc+e+e;case 4095:case 3583:case 4068:case 2532:return Tc(e,/(.+)-inline(.+)/,xc+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mc(e)-1-t>6)switch(Rc(e,t+1)){case 109:if(45!==Rc(e,t+4))break;case 102:return Tc(e,/(.+:)(.+)-([^]+)/,"$1"+xc+"$2-$3$1"+yc+(108==Rc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nc(e,"stretch")?bu(Tc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rc(e,t+1))break;case 6444:switch(Rc(e,Mc(e)-3-(~Nc(e,"!important")&&10))){case 107:return Tc(e,":",":"+xc)+e;case 101:return Tc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xc+(45===Rc(e,14)?"inline-":"")+"box$3$1"+xc+"$2$3$1"+bc+"$2box$3")+e}break;case 5936:switch(Rc(e,t+11)){case 114:return xc+e+bc+Tc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xc+e+bc+Tc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xc+e+bc+Tc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xc+e+bc+e+e}return e}var yu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _c:e.return=bu(e.value,e.length);break;case Sc:return cu([Wc(e,{value:Tc(e.value,"@","@"+xc)})],r);case kc:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Wc(e,{props:[Tc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cu([Wc(e,{props:[Tc(t,/:(plac\w+)/,":"+xc+"input-$1")]}),Wc(e,{props:[Tc(t,/:(plac\w+)/,":-moz-$1")]}),Wc(e,{props:[Tc(t,/:(plac\w+)/,bc+"input-$1")]})],r)}return""})}}],xu=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||yu,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[uu,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[mu,vu].concat(i,f),u=Lc(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,cu(ou(e?e+"{"+t.styles+"}":t.styles),h),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new vc({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wu.apply(null,arguments)}var ku={exports:{}},_u={},Su="function"==typeof Symbol&&Symbol.for,Cu=Su?Symbol.for("react.element"):60103,Eu=Su?Symbol.for("react.portal"):60106,Au=Su?Symbol.for("react.fragment"):60107,Ou=Su?Symbol.for("react.strict_mode"):60108,Tu=Su?Symbol.for("react.profiler"):60114,Nu=Su?Symbol.for("react.provider"):60109,Ru=Su?Symbol.for("react.context"):60110,Pu=Su?Symbol.for("react.async_mode"):60111,Mu=Su?Symbol.for("react.concurrent_mode"):60111,Lu=Su?Symbol.for("react.forward_ref"):60112,Du=Su?Symbol.for("react.suspense"):60113,Iu=Su?Symbol.for("react.suspense_list"):60120,ju=Su?Symbol.for("react.memo"):60115,zu=Su?Symbol.for("react.lazy"):60116,Bu=Su?Symbol.for("react.block"):60121,Fu=Su?Symbol.for("react.fundamental"):60117,qu=Su?Symbol.for("react.responder"):60118,Uu=Su?Symbol.for("react.scope"):60119;function Wu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cu:switch(e=e.type){case Pu:case Mu:case Au:case Tu:case Ou:case Du:return e;default:switch(e=e&&e.$$typeof){case Ru:case Lu:case zu:case ju:case Nu:return e;default:return t}}case Eu:return t}}}function $u(e){return Wu(e)===Mu}_u.AsyncMode=Pu,_u.ConcurrentMode=Mu,_u.ContextConsumer=Ru,_u.ContextProvider=Nu,_u.Element=Cu,_u.ForwardRef=Lu,_u.Fragment=Au,_u.Lazy=zu,_u.Memo=ju,_u.Portal=Eu,_u.Profiler=Tu,_u.StrictMode=Ou,_u.Suspense=Du,_u.isAsyncMode=function(e){return $u(e)||Wu(e)===Pu},_u.isConcurrentMode=$u,_u.isContextConsumer=function(e){return Wu(e)===Ru},_u.isContextProvider=function(e){return Wu(e)===Nu},_u.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cu},_u.isForwardRef=function(e){return Wu(e)===Lu},_u.isFragment=function(e){return Wu(e)===Au},_u.isLazy=function(e){return Wu(e)===zu},_u.isMemo=function(e){return Wu(e)===ju},_u.isPortal=function(e){return Wu(e)===Eu},_u.isProfiler=function(e){return Wu(e)===Tu},_u.isStrictMode=function(e){return Wu(e)===Ou},_u.isSuspense=function(e){return Wu(e)===Du},_u.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Au||e===Mu||e===Tu||e===Ou||e===Du||e===Iu||"object"==typeof e&&null!==e&&(e.$$typeof===zu||e.$$typeof===ju||e.$$typeof===Nu||e.$$typeof===Ru||e.$$typeof===Lu||e.$$typeof===Fu||e.$$typeof===qu||e.$$typeof===Uu||e.$$typeof===Bu)},_u.typeOf=Wu;var Vu=ku.exports=_u,Hu={};Hu[Vu.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Hu[Vu.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Yu(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Gu=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ku=function(e,t,n){Gu(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Qu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zu=/[A-Z]|^ms/g,Xu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ju=function(e){return 45===e.charCodeAt(1)},ed=function(e){return null!=e&&"boolean"!=typeof e},td=fu(function(e){return Ju(e)?e:e.replace(Zu,"-$&").toLowerCase()}),nd=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Xu,function(e,t,n){return od={name:t,styles:n,next:od},t})}return 1===Qu[e]||Ju(e)||"number"!=typeof t||0===t?t:t+"px"};function rd(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return od={name:o.name,styles:o.styles,next:od},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)od={name:a.name,styles:a.styles,next:od},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rd(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ed(s)&&(r+=td(i)+":"+nd(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=rd(e,t,a);switch(i){case"animation":case"animationName":r+=td(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ed(a[c])&&(r+=td(i)+":"+nd(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=od,l=n(e);return od=s,rd(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var od,id=/label:\s*([^\s;{]+)\s*(;|$)/g;function ad(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";od=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=rd(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=rd(n,t,e[a]),r)o+=i[a]}id.lastIndex=0;for(var s,l="";null!==(s=id.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:od}}var sd=!!Pe.useInsertionEffect&&Pe.useInsertionEffect,ld=sd||function(e){return e()},cd=sd||K.exports.useLayoutEffect,ud=K.exports.createContext("undefined"!=typeof HTMLElement?xu({key:"css"}):null);ud.Provider;var dd,fd,hd=function(e){return K.exports.forwardRef(function(t,n){var r=K.exports.useContext(ud);return e(t,r,n)})},pd=K.exports.createContext({}),gd=du(function(e){return du(function(t){return function(e,t){return"function"==typeof t?t(e):wu({},e,t)}(e,t)})}),md=function(e){var t=K.exports.useContext(pd);return e.theme!==t&&(t=gd(t)(e.theme)),gc(pd.Provider,{value:t,children:e.children})},vd={}.hasOwnProperty,bd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Gu(t,n,r),ld(function(){return Ku(t,n,r)}),null},xd=hd(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[bd],i=[r],a="";"string"==typeof e.className?a=Yu(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=ad(i,void 0,K.exports.useContext(pd));a+=t.key+"-"+s.name;var l={};for(var c in e)vd.call(e,c)&&"css"!==c&&c!==bd&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),mc(pc,{children:[gc(yd,{cache:t,serialized:s,isStringTag:"string"==typeof o}),gc(o,{...l})]})}),wd=function(e,t){var n=arguments;if(null==t||!vd.call(t,"css"))return K.exports.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=xd,o[1]=function(e,t){var n={};for(var r in t)vd.call(t,r)&&(n[r]=t[r]);return n[bd]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return K.exports.createElement.apply(null,o)};dd=wd||(wd={}),fd||(fd=dd.JSX||(dd.JSX={}));var kd=hd(function(e,t){var n=ad([e.styles],void 0,K.exports.useContext(pd)),r=K.exports.useRef();return cd(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),cd(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ku(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function _d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ad(t)}function Sd(){var e=_d.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const Cd=K.exports.createContext({});function Ed(){const e=K.exports.useContext(Cd);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Ad(e,t){const{colorMode:n}=Ed();return"dark"===n?t:e}Cd.displayName="ColorModeContext";const Od="chakra-ui-light",Td="chakra-ui-dark";const Nd=(Rd="chakra-ui-color-mode",{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(Rd)||e}catch(OV){}return t||e},set(e){try{localStorage.setItem(Rd,e)}catch(OV){}}});var Rd;const Pd=()=>{},Md=Boolean(null==globalThis?void 0:globalThis.document)?K.exports.useLayoutEffect:K.exports.useEffect;function Ld(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}const Dd=function(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=Nd}=e,s=K.exports.useContext(ud),l="dark"===o?"dark":"light",[c,u]=K.exports.useState(()=>Ld(a,l)),[d,f]=K.exports.useState(()=>Ld(a)),{getSystemTheme:h,setClassName:p,setDataset:g,addListener:m}=K.exports.useMemo(()=>function(e={}){const{preventTransition:t=!0,nonce:n}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?Td:Od),document.body.classList.remove(e?Od:Td)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),void 0!==n&&(e.nonce=n),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r}({preventTransition:i,nonce:null==s?void 0:s.nonce}),[i,null==s?void 0:s.nonce]),v="system"!==o||c?c:d,b=K.exports.useCallback(e=>{const t="system"===e?h():e;u(t),p("dark"===t),g(t),a.set(t)},[a,h,p,g]);Md(()=>{"system"===o&&f(h())},[]),K.exports.useEffect(()=>{const e=a.get();b(e||("system"!==o?l:"system"))},[a,l,o,b]);const y=K.exports.useCallback(()=>{b("dark"===v?"light":"dark")},[v,b]);K.exports.useEffect(()=>{if(r)return m(b)},[r,m,b]);const x=K.exports.useMemo(()=>({colorMode:null!=t?t:v,toggleColorMode:t?Pd:y,setColorMode:t?Pd:b,forced:void 0!==t}),[v,y,b,t]);return gc(Cd.Provider,{value:x,children:n})};Dd.displayName="ColorModeProvider";const Id=String.raw,jd=Id`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,zd=()=>gc(kd,{styles:jd}),Bd=({scope:e=""})=>gc(kd,{styles:Id`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${jd}
    `});function Fd(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=K.exports.useMemo(()=>Cr(n),[n]);return mc(md,{theme:o,children:[gc(qd,{root:t}),r]})}function qd({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return gc(kd,{styles:e=>({[t]:e.__cssVars})})}function Ud(){const{colorMode:e}=Ed();return gc(kd,{styles:t=>{const n=Ze(Ue(t,"styles.global"),{theme:t,colorMode:e});if(!n)return;return ir(n)(t)}})}De({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});const[Wd,$d]=De({strict:!1,name:"PortalManagerContext"});function Vd(e){const{children:t,zIndex:n}=e;return gc(Wd,{value:{zIndex:n},children:t})}Vd.displayName="PortalManager";const Hd=K.exports.createContext({getDocument:()=>document,getWindow:()=>window});function Yd(e){const{children:t,environment:n,disabled:r}=e,o=K.exports.useRef(null),i=K.exports.useMemo(()=>n||{getDocument:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument.defaultView)?t:window}},[n]),a=!r||!n;return mc(Hd.Provider,{value:i,children:[t,a&&gc("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Hd.displayName="EnvironmentContext",Yd.displayName="EnvironmentProvider";const Gd=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=gc(Yd,{environment:s,disabled:c,children:t});return gc(Fd,{theme:a,cssVarsRoot:l,children:mc(Dd,{colorModeManager:n,options:a.config,children:[i?gc(Bd,{scope:o}):gc(zd,{}),!u&&gc(Ud,{}),r?gc(Vd,{zIndex:r,children:d}):d]})})},Kd=K.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Qd=K.exports.createContext({});const Zd=K.exports.createContext(null),Xd="undefined"!=typeof document,Jd=Xd?K.exports.useLayoutEffect:K.exports.useEffect,ef=K.exports.createContext({strict:!1});function tf(e,t,n,r){const o=K.exports.useContext(Qd).visualElement,i=K.exports.useContext(ef),a=K.exports.useContext(Zd),s=K.exports.useContext(Kd).reducedMotion,l=K.exports.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return Jd(()=>{c&&c.render()}),Jd(()=>{c&&c.animationState&&c.animationState.animateChanges()}),Jd(()=>()=>c&&c.notify("Unmount"),[]),c}function nf(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rf(e,t,n){return K.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):nf(n)&&(n.current=r))},[t])}function of(e){return"string"==typeof e||Array.isArray(e)}function af(e){return"object"==typeof e&&"function"==typeof e.start}const sf=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function lf(e){return af(e.animate)||sf.some(t=>of(e[t]))}function cf(e){return Boolean(lf(e)||e.variants)}function uf(e){const{initial:t,animate:n}=function(e,t){if(lf(e)){const{initial:t,animate:n}=e;return{initial:!1===t||of(t)?t:void 0,animate:of(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,K.exports.useContext(Qd));return K.exports.useMemo(()=>({initial:t,animate:n}),[df(t),df(n)])}function df(e){return Array.isArray(e)?e.join(" "):e}const ff=e=>({isEnabled:t=>e.some(e=>!!t[e])}),hf={measureLayout:ff(["layout","layoutId","drag"]),animation:ff(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ff(["exit"]),drag:ff(["drag","dragControls"]),focus:ff(["whileFocus"]),hover:ff(["whileHover","onHoverStart","onHoverEnd"]),tap:ff(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ff(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ff(["whileInView","onViewportEnter","onViewportLeave"])};function pf(e){const t=K.exports.useRef(null);return null===t.current&&(t.current=e()),t.current}const gf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let mf=1;const vf=K.exports.createContext({});class bf extends Re.Component{getSnapshotBeforeUpdate(){const{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}const yf=K.exports.createContext({}),xf=Symbol.for("motionComponentSymbol");function wf({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)"projectionNodeConstructor"===t?hf.projectionNodeConstructor=e[t]:hf[t].Component=e[t]}(e);const a=K.exports.forwardRef(function(a,s){const l={...K.exports.useContext(Kd),...a,layoutId:kf(a)},{isStatic:c}=l;let u=null;const d=uf(a),f=c?void 0:pf(()=>{if(gf.hasEverUpdated)return mf++}),h=o(a,c);if(!c&&Xd){d.visualElement=tf(i,h,l,t);const r=K.exports.useContext(ef).strict,o=K.exports.useContext(yf);d.visualElement&&(u=d.visualElement.loadFeatures(l,r,e,f,n||hf.projectionNodeConstructor,o))}return mc(bf,{visualElement:d.visualElement,props:l,children:[u,gc(Qd.Provider,{value:d,children:r(i,a,f,rf(h,d.visualElement,s),h,c,d.visualElement)})]})});return a[xf]=i,a}function kf({layoutId:e}){const t=K.exports.useContext(vf).id;return t&&void 0!==e?t+"-"+e:e}function _f(e){function t(t,n={}){return wf(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Sf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cf(e){return"string"==typeof e&&!e.includes("-")&&!!(Sf.indexOf(e)>-1||/[A-Z]/.test(e))}const Ef={};const Af=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Of=new Set(Af);function Tf(e,{layout:t,layoutId:n}){return Of.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Ef[e]||"opacity"===e)}const Nf=e=>!!(null==e?void 0:e.getVelocity),Rf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pf=(e,t)=>Af.indexOf(e)-Af.indexOf(t);function Mf(e){return e.startsWith("--")}const Lf=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Df=(e,t,n)=>Math.min(Math.max(n,e),t),If={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},jf={...If,transform:e=>Df(0,1,e)},zf={...If,default:1},Bf=e=>Math.round(1e5*e)/1e5,Ff=/(-)?([\d]*\.?[\d])+/g,qf=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Uf=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Wf(e){return"string"==typeof e}const $f=e=>({test:t=>Wf(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Vf=$f("deg"),Hf=$f("%"),Yf=$f("px"),Gf=$f("vh"),Kf=$f("vw"),Qf={...Hf,parse:e=>Hf.parse(e)/100,transform:e=>Hf.transform(100*e)},Zf={...If,transform:Math.round},Xf={borderWidth:Yf,borderTopWidth:Yf,borderRightWidth:Yf,borderBottomWidth:Yf,borderLeftWidth:Yf,borderRadius:Yf,radius:Yf,borderTopLeftRadius:Yf,borderTopRightRadius:Yf,borderBottomRightRadius:Yf,borderBottomLeftRadius:Yf,width:Yf,maxWidth:Yf,height:Yf,maxHeight:Yf,size:Yf,top:Yf,right:Yf,bottom:Yf,left:Yf,padding:Yf,paddingTop:Yf,paddingRight:Yf,paddingBottom:Yf,paddingLeft:Yf,margin:Yf,marginTop:Yf,marginRight:Yf,marginBottom:Yf,marginLeft:Yf,rotate:Vf,rotateX:Vf,rotateY:Vf,rotateZ:Vf,scale:zf,scaleX:zf,scaleY:zf,scaleZ:zf,skew:Vf,skewX:Vf,skewY:Vf,distance:Yf,translateX:Yf,translateY:Yf,translateZ:Yf,x:Yf,y:Yf,z:Yf,perspective:Yf,transformPerspective:Yf,opacity:jf,originX:Qf,originY:Qf,originZ:Yf,zIndex:Zf,fillOpacity:jf,strokeOpacity:jf,numOctaves:Zf};function Jf(e,t,n,r){const{style:o,vars:i,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let c=!1,u=!1,d=!0;for(const f in t){const e=t[f];if(Mf(f)){i[f]=e;continue}const n=Xf[f],r=Lf(e,n);if(Of.has(f)){if(c=!0,a[f]=r,s.push(f),!d)continue;e!==(n.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,l[f]=r):o[f]=r}if(t.transform||(c||r?o.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let a="";t.sort(Pf);for(const s of t)a+=`${Rf[s]||s}(${e[s]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,o?"":a):r&&o&&(a="none"),a}(e,n,d,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=l;o.transformOrigin=`${e} ${t} ${n}`}}const eh=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function th(e,t,n){for(const r in t)Nf(t[r])||Tf(r,n)||(e[r]=t[r])}function nh(e,t,n){const r={};return th(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return K.exports.useMemo(()=>{const r={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return Jf(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function rh(e,t,n){const r={},o=nh(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=o,r}const oh=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function ih(e){return oh.has(e)}let ah=e=>!ih(e);try{(sh=require("@emotion/is-prop-valid").default)&&(ah=e=>e.startsWith("on")?!ih(e):sh(e))}catch(s8){}var sh;function lh(e,t,n){return"string"==typeof e?e:Yf.transform(t+n*e)}const ch={offset:"stroke-dashoffset",array:"stroke-dasharray"},uh={offset:"strokeDashoffset",array:"strokeDasharray"};function dh(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(Jf(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:p}=e;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(void 0!==r||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,n){return`${lh(t,e.x,e.width)} ${lh(n,e.y,e.height)}`}(p,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?ch:uh;e[i.offset]=Yf.transform(-r);const a=Yf.transform(t),s=Yf.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const fh=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),hh=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ph(e,t,n,r){const o=K.exports.useMemo(()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return dh(n,t,{enableHardwareAcceleration:!1},hh(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};th(t,e.style,e),o.style={...t,...o.style}}return o}function gh(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(Cf(t)?ph:rh)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)(ah(o)||!0===n&&ih(o)||!t&&!ih(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o};return r&&(c["data-projection-id"]=r),K.exports.createElement(t,c)}}const mh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function vh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const bh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yh(e,t,n,r){vh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(bh.has(o)?o:mh(o),t.attrs[o])}function xh(e){const{style:t}=e,n={};for(const r in t)(Nf(t[r])||Tf(r,e))&&(n[r]=t[r]);return n}function wh(e){const t=xh(e);for(const n in e)if(Nf(e[n])){t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function kh(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const _h=e=>Array.isArray(e),Sh=e=>_h(e)?e[e.length-1]||0:e;function Ch(e){const t=Nf(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Eh=e=>(t,n)=>{const r=K.exports.useContext(Qd),o=K.exports.useContext(Zd),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Ah(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():pf(i)};function Ah(e,t,n,r){const o={},i=r(e);for(const f in i)o[f]=Ch(i[f]);let{initial:a,animate:s}=e;const l=lf(e),c=cf(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!af(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=kh(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const Oh={useVisualState:Eh({scrapeMotionValuesFromProps:wh,createRenderState:fh,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(OV){n.dimensions={x:0,y:0,width:0,height:0}}dh(n,r,{enableHardwareAcceleration:!1},hh(t.tagName),e.transformTemplate),yh(t,n)}})},Th={useVisualState:Eh({scrapeMotionValuesFromProps:xh,createRenderState:eh})};var Nh,Rh;function Ph(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Mh(e,t,n,r){K.exports.useEffect(()=>{const o=e.current;if(n&&o)return Ph(o,t,n,r)},[e,t,n,r])}function Lh(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Dh(e){return!!e.touches}(Rh=Nh||(Nh={})).Animate="animate",Rh.Hover="whileHover",Rh.Tap="whileTap",Rh.Drag="whileDrag",Rh.Focus="whileFocus",Rh.InView="whileInView",Rh.Exit="exit";const Ih={pageX:0,pageY:0};function jh(e,t="page"){const n=e.touches[0]||e.changedTouches[0]||Ih;return{x:n[t+"X"],y:n[t+"Y"]}}function zh(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Bh(e,t="page"){return{point:Dh(e)?jh(e,t):zh(e,t)}}const Fh=(e,t=!1)=>{const n=t=>e(t,Bh(t));return t?(r=n,e=>{const t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n;var r},qh={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Uh={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Wh(e){return Xd&&null===window.onpointerdown?e:Xd&&null===window.ontouchstart?Uh[e]:Xd&&null===window.onmousedown?qh[e]:e}function $h(e,t,n,r){return Ph(e,Wh(t),Fh(n,"pointerdown"===t),r)}function Vh(e,t,n,r){return Mh(e,Wh(t),n&&Fh(n,"pointerdown"===t),r)}function Hh(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Yh=Hh("dragHorizontal"),Gh=Hh("dragVertical");function Kh(e){let t=!1;if("y"===e)t=Gh();else if("x"===e)t=Yh();else{const e=Yh(),n=Gh();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Qh(){const e=Kh(!0);return!e||(e(),!1)}function Zh(e,t,n){return(r,o)=>{Lh(r)&&!Qh()&&(e.animationState&&e.animationState.setActive(Nh.Hover,t),n&&n(r,o))}}const Xh=(e,t)=>!!t&&(e===t||Xh(e,t.parentElement));function Jh(e){return K.exports.useEffect(()=>()=>e(),[])}const ep=(e,t)=>n=>t(e(n)),tp=(...e)=>e.reduce(ep);const np=("undefined"==typeof process||process.env,"production"),rp=new Set;function op(e,t,n){e||rp.has(t)||(console.warn(t),n&&console.warn(n),rp.add(t))}const ip=new WeakMap,ap=new WeakMap,sp=e=>{const t=ip.get(e.target);t&&t(e)},lp=e=>{e.forEach(sp)};function cp(e,t,n){const r=function({root:e,...t}){const n=e||document;ap.has(n)||ap.set(n,{});const r=ap.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(lp,{root:e,...t})),r[o]}(t);return ip.set(e,n),r.observe(e),()=>{ip.delete(e),r.unobserve(e)}}const up={some:0,all:1};function dp(e,t,n,{root:r,margin:o,amount:i="some",once:a}){K.exports.useEffect(()=>{if(!e||!n.current)return;const s={root:null==r?void 0:r.current,rootMargin:o,threshold:"number"==typeof i?i:up[i]};return cp(n.current,s,e=>{const{isIntersecting:r}=e;if(t.isInView===r)return;if(t.isInView=r,a&&!r&&t.hasEnteredView)return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Nh.InView,r);const o=n.getProps(),i=r?o.onViewportEnter:o.onViewportLeave;i&&i(e)})},[e,r,o,i])}function fp(e,t,n,{fallback:r=!0}){K.exports.useEffect(()=>{e&&r&&("production"!==np&&op(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(Nh.InView,!0)}))},[e])}const hp=e=>t=>(e(t),null),pp={inView:hp(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=K.exports.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?fp:dp)(a,i.current,e,o)}),tap:hp(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,a=K.exports.useRef(!1),s=K.exports.useRef(null),l={passive:!(t||e||n||h)};function c(){s.current&&s.current(),s.current=null}function u(){return c(),a.current=!1,o.animationState&&o.animationState.setActive(Nh.Tap,!1),!Qh()}function d(t,r){u()&&(Xh(o.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){u()&&n&&n(e,t)}function h(e,n){c(),a.current||(a.current=!0,s.current=tp($h(window,"pointerup",d,l),$h(window,"pointercancel",f,l)),o.animationState&&o.animationState.setActive(Nh.Tap,!0),t&&t(e,n))}Vh(o,"pointerdown",i?h:void 0,l),Jh(c)}),focus:hp(function({whileFocus:e,visualElement:t}){const{animationState:n}=t;Mh(t,"focus",e?()=>{n&&n.setActive(Nh.Focus,!0)}:void 0),Mh(t,"blur",e?()=>{n&&n.setActive(Nh.Focus,!1)}:void 0)}),hover:hp(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){Vh(r,"pointerenter",e||n?Zh(r,!0,e):void 0,{passive:!e}),Vh(r,"pointerleave",t||n?Zh(r,!1,t):void 0,{passive:!t})})};function gp(){const e=K.exports.useContext(Zd);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=K.exports.useId();K.exports.useEffect(()=>r(o),[]);return!t&&n?[!1,()=>n&&n(o)]:[!0]}function mp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const vp=e=>/^\-?\d*\.?\d+$/.test(e),bp=e=>/^0[^.\s]+$/.test(e),yp={delta:0,timestamp:0},xp=1/60*1e3,kp="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),_p="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(kp()),xp);let Sp=!0,Cp=!1,Ep=!1;const Ap=["read","update","preRender","render","postRender"],Op=Ap.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}(()=>Cp=!0),e),{}),Tp=Ap.reduce((e,t)=>{const n=Op[t];return e[t]=(e,t=!1,r=!1)=>(Cp||Lp(),n.schedule(e,t,r)),e},{}),Np=Ap.reduce((e,t)=>(e[t]=Op[t].cancel,e),{}),Rp=Ap.reduce((e,t)=>(e[t]=()=>Op[t].process(yp),e),{}),Pp=e=>Op[e].process(yp),Mp=e=>{Cp=!1,yp.delta=Sp?xp:Math.max(Math.min(e-yp.timestamp,40),1),yp.timestamp=e,Ep=!0,Ap.forEach(Pp),Ep=!1,Cp&&(Sp=!1,_p(Mp))},Lp=()=>{Cp=!0,Sp=!0,Ep||_p(Mp)};function Dp(e,t){-1===e.indexOf(t)&&e.push(t)}function Ip(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class jp{constructor(){this.subscriptions=[]}add(e){return Dp(this.subscriptions,e),()=>Ip(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function zp(e,t){return t?e*(1e3/t):0}class Bp{constructor(e,t={}){var n;this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=yp;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Tp.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Tp.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){return this.events[e]||(this.events[e]=new jp),this.events[e].add(t)}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?zp(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function Fp(e,t){return new Bp(e,t)}const qp=(e,t)=>n=>Boolean(Wf(n)&&Uf.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Up=(e,t,n)=>r=>{if(!Wf(r))return r;const[o,i,a,s]=r.match(Ff);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Wp={...If,transform:e=>Math.round((e=>Df(0,255,e))(e))},$p={test:qp("rgb","red"),parse:Up("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wp.transform(e)+", "+Wp.transform(t)+", "+Wp.transform(n)+", "+Bf(jf.transform(r))+")"};const Vp={test:qp("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:$p.transform},Hp={test:qp("hsl","hue"),parse:Up("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Hf.transform(Bf(t))+", "+Hf.transform(Bf(n))+", "+Bf(jf.transform(r))+")"},Yp={test:e=>$p.test(e)||Vp.test(e)||Hp.test(e),parse:e=>$p.test(e)?$p.parse(e):Hp.test(e)?Hp.parse(e):Vp.parse(e),transform:e=>Wf(e)?e:e.hasOwnProperty("red")?$p.transform(e):Hp.transform(e)},Gp="${c}",Kp="${n}";function Qp(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(qf);o&&(n=o.length,e=e.replace(qf,Gp),t.push(...o.map(Yp.parse)));const i=e.match(Ff);return i&&(r=i.length,e=e.replace(Ff,Kp),t.push(...i.map(If.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function Zp(e){return Qp(e).values}function Xp(e){const{values:t,numColors:n,tokenised:r}=Qp(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Gp:Kp,r<n?Yp.transform(e[r]):Bf(e[r]));return t}}const Jp=e=>"number"==typeof e?0:e;const eg={test:function(e){var t,n;return isNaN(e)&&Wf(e)&&((null===(t=e.match(Ff))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(qf))||void 0===n?void 0:n.length)||0)>0},parse:Zp,createTransformer:Xp,getAnimatableNone:function(e){const t=Zp(e);return Xp(e)(t.map(Jp))}},tg=new Set(["brightness","contrast","saturate","opacity"]);function ng(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ff)||[];if(!r)return e;const o=n.replace(r,"");let i=tg.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const rg=/([a-z-]*)\(.*?\)/g,og={...eg,getAnimatableNone:e=>{const t=e.match(rg);return t?t.map(ng).join(" "):e}},ig={...Xf,color:Yp,backgroundColor:Yp,outlineColor:Yp,fill:Yp,stroke:Yp,borderColor:Yp,borderTopColor:Yp,borderRightColor:Yp,borderBottomColor:Yp,borderLeftColor:Yp,filter:og,WebkitFilter:og},ag=e=>ig[e];function sg(e,t){var n;let r=ag(e);return r!==og&&(r=eg),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}const lg=e=>t=>t.test(e),cg=[If,Yf,Hf,Vf,Kf,Gf,{test:e=>"auto"===e,parse:e=>e}],ug=e=>cg.find(lg(e)),dg=[...cg,Yp,eg],fg=e=>dg.find(lg(e));function hg(e,t,n){const r=e.getProps();return kh(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function pg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fp(n))}function gg(e,t){if(!t)return;return(t[e]||t.default||t).from}function mg(e){return Boolean(Nf(e)&&e.add)}function vg(e,t){const{MotionAppearAnimations:n}=window,r=((e,t)=>`${e}: ${t}`)(e,Of.has(t)?"transform":t),o=n&&n.get(r);return o?(Tp.render(()=>{try{o.cancel(),n.delete(r)}catch(OV){}}),o.currentTime||0):0}const bg="data-"+mh("framerAppearId");var yg=function(){};const xg=e=>1e3*e,wg=!1,kg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_g=e=>t=>1-e(1-t),Sg=e=>e*e,Cg=_g(Sg),Eg=kg(Sg),Ag=(e,t,n)=>-n*e+n*t+e;function Og(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Tg=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Ng=[Vp,$p,Hp];function Rg(e){const t=(n=e,Ng.find(e=>e.test(n)));var n;let r=t.parse(e);return t===Hp&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Og(s,r,e+1/3),i=Og(s,r,e),a=Og(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Pg=(e,t)=>{const n=Rg(e),r=Rg(t),o={...n};return e=>(o.red=Tg(n.red,r.red,e),o.green=Tg(n.green,r.green,e),o.blue=Tg(n.blue,r.blue,e),o.alpha=Ag(n.alpha,r.alpha,e),$p.transform(o))};function Mg(e,t){return"number"==typeof e?n=>Ag(e,t,n):Yp.test(e)?Pg(e,t):Ig(e,t)}const Lg=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Mg(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Dg=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Mg(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Ig=(e,t)=>{const n=eg.createTransformer(t),r=Qp(e),o=Qp(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?tp(Lg(r.values,o.values),n):n=>`${n>0?t:e}`},jg=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},zg=(e,t)=>n=>Ag(e,t,n);function Bg(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?zg:"string"==typeof i?Yp.test(i)?Pg:Ig:Array.isArray(i)?Lg:"object"==typeof i?Dg:zg);var i;const a=e.length-1;for(let s=0;s<a;s++){let n=o(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]:t;n=tp(e,n)}r.push(n)}return r}function Fg(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Bg(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=jg(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Df(e[0],e[i-1],t)):l}const qg=e=>e,Ug=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Wg(e,t,n,r){if(e===t&&n===r)return qg;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Ug(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Ug(o(e),t,r)}const $g=e=>1-Math.sin(Math.acos(e)),Vg=_g($g),Hg=kg(Vg),Yg=Wg(.33,1.53,.69,.99),Gg=_g(Yg),Kg=kg(Gg),Qg={linear:qg,easeIn:Sg,easeInOut:Eg,easeOut:Cg,circIn:$g,circInOut:Hg,circOut:Vg,backIn:Gg,backInOut:Kg,backOut:Yg,anticipate:e=>(e*=2)<1?.5*Gg(e):.5*(2-Math.pow(2,-10*(e-1)))},Zg=e=>{if(Array.isArray(e)){e.length;const[t,n,r,o]=e;return Wg(t,n,r,o)}return"string"==typeof e?Qg[e]:e};function Xg({keyframes:e,ease:t=Eg,times:n,duration:r=300}){e=[...e];const o=Xg[0],i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(t)?t.map(Zg):Zg(t),a={done:!1,value:o},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===Xg.length?n:function(e){const t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(e),r);function l(){return Fg(s,e,{ease:Array.isArray(i)?i:(t=e,n=i,t.map(()=>n||Eg).splice(0,t.length-1))});var t,n}let c=l();return{next:e=>(a.value=c(e),a.done=e>=r,a),flipTarget:()=>{e.reverse(),c=l()}}}const Jg=.001;function em({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Df(.05,1,a),e=Df(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=nm(t,a),l=Math.exp(-o);return Jg-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=nm(Math.pow(t,2),a);return(-o(t)+Jg>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let o=1;o<tm;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const tm=12;function nm(e,t){return e*Math.sqrt(1-t*t)}const rm=["duration","bounce"],om=["stiffness","damping","mass"];function im(e,t){return t.some(t=>void 0!==e[t])}function am({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let o=e[0],i=e[e.length-1];const a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!im(e,om)&&im(e,rm)){const n=em(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r);let h=sm,p=u?-u/1e3:0;const g=l/(2*Math.sqrt(s*c));function m(){const e=i-o,t=Math.sqrt(s/c)/1e3;if(void 0===n&&(n=Math.min(Math.abs(i-o)/100,.4)),g<1){const n=nm(t,g);h=r=>{const o=Math.exp(-g*t*r);return i-o*((p+g*t*e)/n*Math.sin(n*r)+e*Math.cos(n*r))}}else if(1===g)h=n=>i-Math.exp(-t*n)*(e+(p+t*e)*n);else{const n=t*Math.sqrt(g*g-1);h=r=>{const o=Math.exp(-g*t*r),a=Math.min(n*r,300);return i-o*((p+g*t*e)*Math.sinh(a)+n*e*Math.cosh(a))/n}}}return m(),{next:e=>{const r=h(e);if(f)a.done=e>=d;else{let o=p;if(0!==e)if(g<1){const t=Math.max(0,e-5);o=zp(r-h(t),e-t)}else o=0;const s=Math.abs(o)<=t,l=Math.abs(i-r)<=n;a.done=s&&l}return a.value=a.done?i:r,a},flipTarget:()=>{p=-p,[o,i]=[i,o],m()}}}am.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const sm=e=>0;const lm={decay:function({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a=e[0],s={done:!1,value:a};let l=n*t;const c=a+l,u=void 0===i?c:i(c);return u!==c&&(l=u-a),{next:e=>{const t=-l*Math.exp(-e/r);return s.done=!(t>o||t<-o),s.value=s.done?u:u+t,s},flipTarget:()=>{}}},keyframes:Xg,tween:Xg,spring:am};function cm(e,t,n=0){return e-t-n}const um=e=>{const t=({delta:t})=>e(t);return{start:()=>Tp.update(t,!0),stop:()=>Np.update(t)}};function dm({duration:e,driver:t=um,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:i=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:c,onComplete:u,onRepeat:d,onUpdate:f,type:h="keyframes",...p}){var g,m;let v,b,y,x=0,w=e,k=!1,_=!0;const S=lm[a.length>2?"keyframes":h],C=a[0],E=a[a.length-1];(null===(m=(g=S).needsInterpolation)||void 0===m?void 0:m.call(g,C,E))&&(y=Fg([0,100],[C,E],{clamp:!1}),a=[0,100]);const A=S({...p,duration:e,keyframes:a});function O(){x++,"reverse"===o?(_=x%2==0,n=function(e,t=0,n=0,r=!0){return r?cm(t+-e,t,n):t-(e-t)+n}(n,w,i,_)):(n=cm(n,w,i),"mirror"===o&&A.flipTarget()),k=!1,d&&d()}function T(e){if(_||(e=-e),n+=e,!k){const e=A.next(Math.max(0,n));b=e.value,y&&(b=y(b)),k=_?e.done:n<=0}f&&f(b),k&&(0===x&&(w=void 0!==w?w:n),x<r?function(e,t,n,r){return r?e>=t+n:e<=-n}(n,w,i,_)&&O():(v.stop(),u&&u()))}return s&&(l&&l(),v=t(T),v.start()),{stop:()=>{c&&c(),v.stop()},sample:e=>A.next(Math.max(0,e))}}const fm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fm([0,.65,.55,1]),circOut:fm([.55,0,1,.45]),backIn:fm([.31,.01,.66,-.59]),backOut:fm([.33,1.53,.69,.99])};function pm(e){if(e)return Array.isArray(e)?fm(e):hm[e]}function gm(e,t,{onUpdate:n,onComplete:r,...o}){let{keyframes:i,duration:a=.3,elapsed:s=0,ease:l}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&hm[c])){const e=dm(o);let t={done:!1,value:i[0]};const n=[];let r=0;for(;!t.done;)t=e.sample(r),n.push(t.value),r+=10;i=n,a=r-10,l="linear"}var c;const u=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:o,easing:pm(s),fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,i,{...o,delay:-s,duration:a,ease:l});return u.onfinish=()=>{e.set(i[i.length-1]),r&&r()},()=>{const{currentTime:t}=u;if(t){const n=dm(o);e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}Tp.update(()=>u.cancel())}}function mm(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Np.read(r),e(i-t))};return Tp.read(r,!0),()=>Np.read(r)}const vm=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),bm=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ym=()=>({type:"keyframes",ease:"linear",duration:.3}),xm={type:"keyframes",duration:.8},wm={x:vm,y:vm,z:vm,rotate:vm,rotateX:vm,rotateY:vm,rotateZ:vm,scaleX:bm,scaleY:bm,scale:bm,opacity:ym,backgroundColor:ym,color:ym,default:bm},km=(e,{keyframes:t})=>{if(t.length>2)return xm;return(wm[e]||wm.default)(t[1])},_m=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!eg.test(t)||t.startsWith("url(")));function Sm(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Cm(e){return"number"==typeof e?0:sg("",e)}function Em(e,t){return e[t]||e.default||e}const Am={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Om={},Tm={};for(const wp in Am)Tm[wp]=()=>(void 0===Om[wp]&&(Om[wp]=Am[wp]()),Om[wp]);const Nm=new Set(["opacity"]),Rm=(e,t,n,r={})=>o=>{const i=Em(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=xg(a);const l=function(e,t,n,r){const o=_m(t,n);let i=void 0!==r.from?r.from:e.get();return"none"===i&&o&&"string"==typeof n?i=sg(t,n):Sm(i)&&"string"==typeof n?i=Cm(n):!Array.isArray(n)&&Sm(n)&&"string"==typeof i&&(n=Cm(i)),Array.isArray(n)?(null===n[0]&&(n[0]=i),n):[i,n]}(t,e,n,i),c=l[0],u=l[l.length-1],d=_m(e,c),f=_m(e,u);let h={keyframes:l,velocity:t.getVelocity(),...i,elapsed:s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(!d||!f||wg||!1===i.type)return function({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),()=>{});return t?mm(o,-t):o()}(h);if("inertia"===i.type){const e=function({keyframes:e,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:h}){const p=e[0];let g;function m(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function b(e){null==g||g.stop(),g=dm({keyframes:[0,1],velocity:0,...e,driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h})}function y(e){b({type:"spring",stiffness:a,damping:s,restDelta:l,...e})}if(m(p))y({velocity:t,keyframes:[p,v(p)]});else{let e=o*t+p;void 0!==c&&(e=c(e));const r=v(e),a=r===n?-1:1;let s,u;const d=e=>{s=u,u=e,t=zp(e-s,yp.delta),(1===a&&e>r||-1===a&&e<r)&&y({keyframes:[e,r],velocity:t})};b({type:"decay",keyframes:[p,0],velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:m(e)?d:void 0})}return{stop:()=>null==g?void 0:g.stop()}}(h);return()=>e.stop()}(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,...c}){return!!Object.keys(c).length})(i)||(h={...h,...km(e,h)}),h.duration&&(h.duration=xg(h.duration)),h.repeatDelay&&(h.repeatDelay=xg(h.repeatDelay));const p=t.owner,g=p&&p.current;if(Tm.waapi()&&Nm.has(e)&&!h.repeatDelay&&"mirror"!==h.repeatType&&0!==h.damping&&p&&g instanceof HTMLElement&&!p.getProps().onUpdate)return gm(t,e,h);{const e=dm(h);return()=>e.stop()}};function Pm(e,t,n={}){var r;const o=hg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Mm(e,o,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Lm).forEach((e,r)=>{a.push(Pm(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}return Promise.all([a(),s(n.delay)])}function Mm(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(a=r);const u=[],d=o&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[o]);for(const f in l){const t=e.getValue(f),r=l[f];if(!t||void 0===r||d&&Dm(d,f))continue;let o={delay:n,elapsed:0,...a};if(e.shouldReduceMotion&&Of.has(f)&&(o={...o,type:!1,delay:0}),!t.hasAnimated){const t=e.getProps()[bg];t&&(o.elapsed=vg(t,f))}let i=t.start(Rm(f,t,r,o));mg(c)&&(c.add(f),i=i.then(()=>c.remove(f))),u.push(i)}return Promise.all(u).then(()=>{s&&function(e,t){const n=hg(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i)pg(e,a,Sh(i[a]))}(e,s)})}function Lm(e,t){return e.sortNodePosition(t)}function Dm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}const Im=[Nh.Animate,Nh.InView,Nh.Focus,Nh.Hover,Nh.Tap,Nh.Drag,Nh.Exit],jm=[...Im].reverse(),zm=Im.length;function Bm(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Pm(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Pm(e,t,n);else{const o="function"==typeof t?hg(e,t,n.custom):t;r=Mm(e,o,n)}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Fm(e){let t=Bm(e);const n={[Nh.Animate]:Um(!0),[Nh.InView]:Um(),[Nh.Hover]:Um(),[Nh.Tap]:Um(),[Nh.Drag]:Um(),[Nh.Focus]:Um(),[Nh.Exit]:Um()};let r=!0;const o=(t,n)=>{const r=hg(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<zm;t++){const h=jm[t],p=n[h],g=void 0!==s[h]?s[h]:l[h],m=of(g),v=h===a?p.isActive:null;!1===v&&(f=t);let b=g===l[h]&&g!==s[h]&&m;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),p.protectedKeys={...d},!p.isActive&&null===v||!g&&!p.prevProp||af(g)||"boolean"==typeof g)continue;const y=qm(p.prevProp,g);let x=y||h===a&&p.isActive&&!b&&m||t>f&&m;const w=Array.isArray(g)?g:[g];let k=w.reduce(o,{});!1===v&&(k={});const{prevResolvedValues:_={}}=p,S={..._,...k},C=e=>{x=!0,u.delete(e),p.needsAnimating[e]=!0};for(const e in S){const t=k[e],n=_[e];d.hasOwnProperty(e)||(t!==n?_h(t)&&_h(n)?!mp(t,n)||y?C(e):p.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0)}p.prevProp=g,p.prevResolvedValues=k,p.isActive&&(d={...d,...k}),r&&e.blockInitialAnimation&&(x=!1),x&&!b&&c.push(...w.map(e=>({animation:e,options:{type:h,...i}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let h=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function qm(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!mp(t,e)}function Um(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const Wm={animation:hp(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=Fm(e)),af(t)&&K.exports.useEffect(()=>t.subscribe(e),[t])}),exit:hp(e=>{const{custom:t,visualElement:n}=e,[r,o]=gp(),i=K.exports.useContext(Zd);K.exports.useEffect(()=>{n.isPresent=r;const e=n.animationState&&n.animationState.setActive(Nh.Exit,!r,{custom:i&&i.custom||t});e&&!r&&e.then(o)},[r])})},$m=(e,t)=>Math.abs(e-t);class Vm{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Gm(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=$m(e.x,t.x),r=$m(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=yp;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Hm(t,this.transformPagePoint),Lh(e)&&0===e.buttons?this.handlePointerUp(e,t):Tp.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r}=this.handlers,o=Gm(Hm(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},Dh(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;const r=Hm(Bh(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=yp;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Gm(r,this.history)),this.removeListeners=tp($h(window,"pointermove",this.handlePointerMove),$h(window,"pointerup",this.handlePointerUp),$h(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Np.update(this.updatePoint)}}function Hm(e,t){return t?{point:t(e.point)}:e}function Ym(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gm({point:e},t){return{point:e,delta:Ym(e,Qm(t)),offset:Ym(e,Km(t)),velocity:Zm(t,.1)}}function Km(e){return e[0]}function Qm(e){return e[e.length-1]}function Zm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Qm(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xg(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Xm(e){return e.max-e.min}function Jm(e,t=0,n=.01){return Math.abs(e-t)<=n}function ev(e,t,n,r=.5){e.origin=r,e.originPoint=Ag(t.min,t.max,e.origin),e.scale=Xm(n)/Xm(t),(Jm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ag(n.min,n.max,e.origin)-e.originPoint,(Jm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function tv(e,t,n,r){ev(e.x,t.x,n.x,null==r?void 0:r.originX),ev(e.y,t.y,n.y,null==r?void 0:r.originY)}function nv(e,t,n){e.min=n.min+t.min,e.max=e.min+Xm(t)}function rv(e,t,n){e.min=t.min-n.min,e.max=e.min+Xm(t)}function ov(e,t,n){rv(e.x,t.x,n.x),rv(e.y,t.y,n.y)}function iv(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function av(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const sv=.35;function lv(e,t,n){return{min:cv(e,t),max:cv(e,n)}}function cv(e,t){return"number"==typeof e?e:e[t]||0}const uv=()=>({x:{min:0,max:0},y:{min:0,max:0}});function dv(e){return[e("x"),e("y")]}function fv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hv(e){return void 0===e||1===e}function pv({scale:e,scaleX:t,scaleY:n}){return!hv(e)||!hv(t)||!hv(n)}function gv(e){return pv(e)||mv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function mv(e){return vv(e.x)||vv(e.y)}function vv(e){return e&&"0%"!==e}function bv(e,t,n){return n+t*(e-n)}function yv(e,t,n,r,o){return void 0!==o&&(e=bv(e,o,r)),bv(e,n,r)+t}function xv(e,t=0,n=1,r,o){e.min=yv(e.min,t,n,r,o),e.max=yv(e.max,t,n,r,o)}function wv(e,{x:t,y:n}){xv(e.x,t.translate,t.scale,t.originPoint),xv(e.y,n.translate,n.scale,n.originPoint)}function kv(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function _v(e,t){e.min=e.min+t,e.max=e.max+t}function Sv(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=Ag(e.min,e.max,i);xv(e,t[n],t[r],a,t.scale)}const Cv=["x","scaleX","originX"],Ev=["y","scaleY","originY"];function Av(e,t){Sv(e.x,t,Cv),Sv(e.y,t,Ev)}function Ov(e,t){return fv(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Tv=new WeakMap;class Nv{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new Vm(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Bh(e,"page").point)},onStart:(e,t)=>{var n;const{drag:r,dragPropagation:o,onDragStart:i}=this.getProps();(!r||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Kh(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dv(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(Hf.test(r)){const o=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.layoutBox[e];if(o){r=Xm(o)*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==i||i(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Nh.Drag,!0))},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&(null==o||o(this.currentDirection)));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==i||i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();null==o||o(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Nh.Drag,!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Rv(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Ag(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Ag(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nf(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:iv(e.x,n,o),y:iv(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=sv){return!1===e?e=0:!0===e&&(e=sv),{x:lv(e,"left","right"),y:lv(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&dv(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!nf(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ov(e,n),{scroll:o}=t;return o&&(_v(r.x,o.offset.x),_v(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:av(e.x,t.x),y:av(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=fv(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=dv(a=>{if(!Rv(a,t,this.currentDirection))return;let l=(null==s?void 0:s[a])||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Rm(e,n,0,t))}stopAnimation(){dv(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t;const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps()[n];return r||this.visualElement.getValue(e,(null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])||0)}snapToCursor(e){dv(t=>{const{drag:n}=this.getProps();if(!Rv(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Ag(n,i,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nf(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};dv(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();o[e]=function(e,t){let n=.5;const r=Xm(e),o=Xm(t);return o>r?n=jg(t.min,t.max-r,e.min):r>o&&(n=jg(e.min,e.max-o,t.min)),Df(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),dv(e=>{if(!Rv(e,t,null))return;const n=this.getAxisMotionValue(e),{min:r,max:i}=this.constraints[e];n.set(Ag(r,i,o[e]))})}addListeners(){var e;if(!this.visualElement.current)return;Tv.set(this.visualElement,this);const t=$h(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{const{dragConstraints:e}=this.getProps();nf(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();const i=Ph(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(dv(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),t(),o(),null==a||a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=sv,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Rv(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Pv={pan:hp(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,a=K.exports.useRef(null),{transformPagePoint:s}=K.exports.useContext(Kd),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};K.exports.useEffect(()=>{null!==a.current&&a.current.updateHandlers(l)}),Vh(o,"pointerdown",i&&function(e){a.current=new Vm(e,l,{transformPagePoint:s})}),Jh(()=>a.current&&a.current.end())}),drag:hp(function(e){const{dragControls:t,visualElement:n}=e,r=pf(()=>new Nv(n));K.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),K.exports.useEffect(()=>r.addListeners(),[r])})};function Mv(e){return"string"==typeof e&&e.startsWith("var(--")}const Lv=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Dv(e,t,n=1){const[r,o]=function(e){const t=Lv.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Mv(o)?Dv(o,t,n+1):o}const Iv=new Set(["width","height","top","left","right","bottom","x","y"]),jv=e=>Iv.has(e),zv=(e,t)=>{e.set(t,!1),e.set(t)},Bv=e=>e===If||e===Yf;var Fv,qv;(qv=Fv||(Fv={})).width="width",qv.height="height",qv.left="left",qv.right="right",qv.top="top",qv.bottom="bottom";const Uv=(e,t)=>parseFloat(e.split(", ")[t]),Wv=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Uv(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Uv(t[1],e):0}},$v=new Set(["x","y","z"]),Vv=Af.filter(e=>!$v.has(e));const Hv={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Wv(4,13),y:Wv(5,14)},Yv=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(jv);let i=[],a=!1;const s=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=ug(c);const d=t[o];let f;if(_h(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=ug(c);for(let n=t;n<e;n++)f?yg(ug(d[n])):f=ug(d[n])}else f=ug(d);if(u!==f)if(Bv(u)&&Bv(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Yf&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return Vv.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],zv(l,d))}),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=Hv[e](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);zv(r,s[n]),e[n]=Hv[n](l,i)}),e})(t,e,s);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),Xd&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Gv(e,t,n,r){return(e=>Object.keys(e).some(jv))(t)?Yv(e,t,n,r):{target:t,transitionEnd:r}}const Kv=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Mv(t))return;const n=Dv(t,r);n&&e.set(n)});for(const o in t){const e=t[o];if(!Mv(e))continue;const i=Dv(e,r);i&&(t[o]=i,n&&void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return Gv(e,t=o.target,n,r=o.transitionEnd)},Qv={current:null},Zv={current:!1};const Xv=Object.keys(hf),Jv=Xv.length,eb=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tb{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Tp.render(this.render,!1,!0);const{latestValues:i,renderState:a}=r;this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=lf(t),this.isVariantNode=cf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(const c in l){const e=l[c];void 0!==i[c]&&Nf(e)&&(e.set(i[c],!1),mg(s)&&s.add(c))}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Zv.current||function(){if(Zv.current=!0,Xd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qv.current=e.matches;e.addListener(t),t()}else Qv.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Qv.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;null===(e=this.projection)||void 0===e||e.unmount(),Np.update(this.notifyUpdate),Np.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const r in this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){const n=Of.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Tp.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,o,i){const a=[];for(let s=0;s<Jv;s++){const t=Xv[s],{isEnabled:n,Component:r}=hf[t];n(e)&&r&&a.push(K.exports.createElement(r,{key:t,...e,visualElement:this}))}if(!this.projection&&o){this.projection=new o(r,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:a,dragConstraints:s,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(a)||s&&nf(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;t<eb.length;t++){const n=eb[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Nf(i))e.addValue(o,i),mg(r)&&r.add(o);else if(Nf(a))e.addValue(o,Fp(i,{owner:e})),mg(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Fp(void 0!==t?t:i))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e),this.prevMotionValues)}getProps(){return this.props}getVariant(e){var t;return null===(t=this.props.variants)||void 0===t?void 0:t[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var e;return this.isVariantNode?this:null===(e=this.parent)||void 0===e?void 0:e.getClosestVariantNode()}getVariantContext(e=!1){var t,n;if(e)return null===(t=this.parent)||void 0===t?void 0:t.getVariantContext();if(!this.isControllingVariants){const e=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const r={};for(let o=0;o<rb;o++){const e=nb[o],t=this.props[e];(of(t)||!1===t)&&(r[e]=t)}return r}addVariantChild(e){var t;const n=this.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),()=>n.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Fp(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=kh(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Nf(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new jp),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}const nb=["initial",...Im],rb=nb.length;class ob extends tb{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){var r;const o={};for(const i in e){const e=gg(i,t);o[i]=void 0!==e?e:null===(r=n.getValue(i))||void 0===r?void 0:r.get()}return o}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(vp(c)||bp(c))?c=parseFloat(c):!fg(c)&&eg.test(l)&&(c=sg(a,l)),e.addValue(a,Fp(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Kv(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class ib extends ob{readValueFromInstance(e,t){if(Of.has(t)){const e=ag(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Mf(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ov(e,t)}build(e,t,n,r){Jf(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e){return xh(e)}renderInstance(e,t,n,r){vh(e,t,n,r)}}class ab extends ob{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){var n;return Of.has(t)?(null===(n=ag(t))||void 0===n?void 0:n.default)||0:(t=bh.has(t)?t:mh(t),e.getAttribute(t))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e){return wh(e)}build(e,t,n,r){dh(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){yh(e,t,0,r)}mount(e){this.isSVGTag=hh(e.tagName),super.mount(e)}}const sb=(e,t)=>Cf(e)?new ab(t,{enableHardwareAcceleration:!1}):new ib(t,{enableHardwareAcceleration:!0});function lb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cb={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Yf.test(e))return e;e=parseFloat(e)}return`${lb(e,t.target.x)}% ${lb(e,t.target.y)}%`}},ub="_$css",db={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(Lv,e=>(i.push(e),ub)));const a=eg.parse(e);if(a.length>5)return r;const s=eg.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=Ag(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(ub,()=>{const t=i[e];return e++,t})}return f}};class fb extends Re.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=hb,Object.assign(Ef,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),gf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Tp.postRender(()=>{var e;(null===(e=i.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;null==e||e()}render(){return null}}const hb={borderRadius:{...cb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cb,borderTopRightRadius:cb,borderBottomLeftRadius:cb,borderBottomRightRadius:cb,boxShadow:db},pb={measureLayout:function(e){const[t,n]=gp(),r=K.exports.useContext(vf);return gc(fb,{...e,layoutGroup:r,switchLayoutGroup:K.exports.useContext(yf),isPresent:t,safeToRemove:n})}};const gb=["TopLeft","TopRight","BottomLeft","BottomRight"],mb=gb.length,vb=e=>"string"==typeof e?parseFloat(e):e,bb=e=>"number"==typeof e||Yf.test(e);function yb(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const xb=kb(0,.5,Vg),wb=kb(.5,.95,qg);function kb(e,t,n){return r=>r<e?0:r>t?1:n(jg(e,t,r))}function _b(e,t){e.min=t.min,e.max=t.max}function Sb(e,t){_b(e.x,t.x),_b(e.y,t.y)}function Cb(e,t,n,r,o){return e=bv(e-=t,1/n,r),void 0!==o&&(e=bv(e,1/o,r)),e}function Eb(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Hf.test(t)&&(t=parseFloat(t),t=Ag(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ag(i.min,i.max,r);e===i&&(s-=t),e.min=Cb(e.min,t,n,s,o),e.max=Cb(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Ab=["x","scaleX","originX"],Ob=["y","scaleY","originY"];function Tb(e,t,n,r){Eb(e.x,t,Ab,null==n?void 0:n.x,null==r?void 0:r.x),Eb(e.y,t,Ob,null==n?void 0:n.y,null==r?void 0:r.y)}function Nb(e){return 0===e.translate&&1===e.scale}function Rb(e){return Nb(e.x)&&Nb(e.y)}function Pb(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Mb(e){return Xm(e.x)/Xm(e.y)}class Lb{constructor(){this.members=[]}add(e){Dp(this.members,e),e.scheduleRender()}remove(e){if(Ip(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){var n;const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Db(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Ib=(e,t)=>e.depth-t.depth;class jb{constructor(){this.children=[],this.isDirty=!1}add(e){Dp(this.children,e),this.isDirty=!0}remove(e){Ip(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ib),this.isDirty=!1,this.children.forEach(e)}}const zb=["","X","Y","Z"];let Bb=0;function Fb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=Bb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Wb),this.nodes.forEach(Gb),this.nodes.forEach(Kb)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new jb)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new jp),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);null==n||n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){var r;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=mm(r,250),gf.hasAnimatedSinceResize&&(gf.hasAnimatedSinceResize=!1,this.nodes.forEach(Yb))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var o,i,s,l,c;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const u=null!==(i=null!==(o=this.options.transition)&&void 0!==o?o:a.getDefaultTransition())&&void 0!==i?i:ty,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!Pb(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);const t={...Em(u,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||Yb(this),this.isLead()&&(null===(c=(l=this.options).onExitComplete)||void 0===c||c.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Np.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Qb),this.animationId++)}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked())return void(null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const e=this.path[s];e.shouldResetTransform=!0,e.updateScroll("snapshot")}const{layoutId:o,layout:i}=this.options;if(void 0===o&&!i)return;const a=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==a?void 0:a(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Vb);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ny),this.potentialNodes.clear()),this.nodes.forEach(Hb),this.nodes.forEach(qb),this.nodes.forEach(Ub),this.clearAllSnapshots(),Rp.update(),Rp.preRender(),Rp.render())}clearAllSnapshots(){this.nodes.forEach($b),this.sharedNodes.forEach(Zb)}scheduleUpdateProjection(){Tp.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Tp.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var e;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(e=this.options.visualElement)||void 0===e||e.notify("LayoutMeasure",this.layout.layoutBox,null==t?void 0:t.layoutBox)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){var e;if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Rb(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||gv(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),ry((r=n).x),ry(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(_v(t.x,n.offset.x),_v(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Sb(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Sb(t,e);const{scroll:n}=this.root;n&&(_v(t.x,-n.offset.x),_v(t.y,-n.offset.y))}_v(t.x,o.offset.x),_v(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Sb(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Av(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),gv(e.latestValues)&&Av(n,e.latestValues)}return gv(this.latestValues)&&Av(n,this.latestValues),n}removeTransform(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};Sb(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];if(!e.instance)continue;if(!gv(e.latestValues))continue;pv(e.latestValues)&&e.updateSnapshot();const o=uv();Sb(o,e.measurePageBox()),Tb(n,e.latestValues,null===(t=e.snapshot)||void 0===t?void 0:t.layoutBox,o)}return gv(this.latestValues)&&Tb(n,this.latestValues),n}setTargetDelta(e){this.targetDelta=e,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var e;const t=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ov(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Sb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,i,a;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(o=this.target,i=this.relativeTarget,a=this.relativeParent.target,nv(o.x,i.x,a.x),nv(o.y,i.y,a.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Sb(this.target,this.layout.layoutBox),wv(this.target,this.targetDelta)):Sb(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ov(this.relativeTargetOrigin,this.target,e.target),Sb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!pv(this.parent.latestValues)&&!mv(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var e;const{isProjectionDirty:t,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const r=this.getLead(),o=Boolean(this.resumingFrom)||this!==r;let i=!0;if(t&&(i=!1),o&&n&&(i=!1),i)return;const{layout:a,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!a&&!s)return;Sb(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){var o,i;const a=n.length;if(!a)return;let s,l;t.x=t.y=1;for(let c=0;c<a;c++)s=n[c],l=s.projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Av(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,wv(e,l)),r&&gv(s.latestValues)&&Av(e,s.latestValues));t.x=kv(t.x),t.y=kv(t.y)}(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=r;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.treeScale.x,u=this.treeScale.y,d=this.projectionTransform;tv(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Db(this.projectionDelta,this.treeScale),this.projectionTransform===d&&this.treeScale.x===c&&this.treeScale.y===u||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t,n,r;null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){var n,r;const o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},a={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;const l={x:{min:0,max:0},y:{min:0,max:0}},c=(null==o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),u=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(ey));this.animationProgress=0,this.mixTargetDelta=t=>{var n;const r=t/1e3;var o,f,h,p;Xb(s.x,e.x,r),Xb(s.y,e.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(ov(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,f=this.relativeTargetOrigin,h=l,p=r,Jb(o.x,f.x,h.x,p),Jb(o.y,f.y,h.y,p)),c&&(this.animationValues=a,function(e,t,n,r,o,i){o?(e.opacity=Ag(0,void 0!==n.opacity?n.opacity:1,xb(r)),e.opacityExit=Ag(void 0!==t.opacity?t.opacity:1,0,wb(r))):i&&(e.opacity=Ag(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a<mb;a++){const o=`border${gb[a]}Radius`;let i=yb(t,o),s=yb(n,o);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||bb(i)===bb(s)?(e[o]=Math.max(Ag(vb(i),vb(s),r),0),(Hf.test(s)||Hf.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=Ag(t.rotate||0,n.rotate||0,r))}(a,i,this.latestValues,r,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(0)}startAnimation(e){var t,n;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Np.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tp.update(()=>{gf.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){const r=Nf(e)?e:Fp(e);return r.start(Rm("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,1e3,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&oy(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Xm(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Xm(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Sb(t,n),Av(t,o),tv(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Lb);this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let o=0;o<zb.length;o++){const t="rotate"+zb[o];n[t]&&(r[t]=n[t],e.setStaticValue(t,0))}null==e||e.render();for(const o in r)e.setStaticValue(o,r[o]);e.scheduleRender()}getProjectionStyles(e={}){var t,n,r;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Ch(e.pointerEvents)||"",o.transform=i?i(this.latestValues,""):"none",o;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Ch(e.pointerEvents)||""),this.hasProjected&&!gv(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),o.transform=Db(this.projectionDeltaWithTransform,this.treeScale,s),i&&(o.transform=i(s,o.transform));const{x:l,y:c}=this.projectionDelta;o.transformOrigin=`${100*l.origin}% ${100*c.origin}% 0`,a.animationValues?o.opacity=a===this?null!==(r=null!==(n=s.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:o.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const u in Ef){if(void 0===s[u])continue;const{correct:e,applyTo:t}=Ef[u],n=e(s[u],a);if(t){const e=t.length;for(let r=0;r<e;r++)o[t[r]]=n}else o[u]=n}return this.options.layoutId&&(o.pointerEvents=a===this?Ch(e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Vb),this.root.sharedNodes.clear()}}}function qb(e){e.updateLayout()}function Ub(e){var t,n,r;const o=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:r}=e.options,i=o.source!==e.layout.source;"size"===r?dv(e=>{const n=i?o.measuredBox[e]:o.layoutBox[e],r=Xm(n);n.min=t[e].min,n.max=n.min+r}):oy(r,o.layoutBox,t)&&dv(e=>{const n=i?o.measuredBox[e]:o.layoutBox[e],r=Xm(t[e]);n.max=n.min+r});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};tv(a,t,o.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?tv(s,e.applyTransform(n,!0),o.measuredBox):tv(s,t,o.layoutBox);const l=!Rb(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:e,layout:r}=n;if(e&&r){const n={x:{min:0,max:0},y:{min:0,max:0}};ov(n,o.layoutBox,e.layoutBox);const i={x:{min:0,max:0},y:{min:0,max:0}};ov(i,t,r.layoutBox),Pb(n,i)||(c=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:o,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function Wb(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function $b(e){e.clearSnapshot()}function Vb(e){e.clearMeasurements()}function Hb(e){const{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Gb(e){e.resolveTargetDelta()}function Kb(e){e.calcProjection()}function Qb(e){e.resetRotation()}function Zb(e){e.removeLeadSnapshot()}function Xb(e,t,n){e.translate=Ag(t.translate,0,n),e.scale=Ag(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jb(e,t,n,r){e.min=Ag(t.min,n.min,r),e.max=Ag(t.max,n.max,r)}function ey(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ty={duration:.45,ease:[.4,0,.1,1]};function ny(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function ry(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function oy(e,t,n){return"position"===e||"preserve-aspect"===e&&!Jm(Mb(t),Mb(n),.2)}const iy=Fb({attachResizeListener:(e,t)=>Ph(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ay={current:void 0},sy=Fb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ay.current){const e=new iy(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ay.current=e}return ay.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ly={...Wm,...pp,...Pv,...pb},cy=_f((e,t)=>function(e,{forwardMotionProps:t=!1},n,r,o){return{...Cf(e)?Oh:Th,preloadedFeatures:n,useRender:gh(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}(e,t,ly,sb,sy));function uy(){const e=K.exports.useRef(!1);return Jd(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class dy extends K.exports.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function fy({children:e,isPresent:t}){const n=K.exports.useId(),r=K.exports.useRef(null),o=K.exports.useRef({width:0,height:0,top:0,left:0});return K.exports.useInsertionEffect(()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${i}px !important;\n            top: ${a}px !important;\n            left: ${s}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}},[t]),gc(dy,{isPresent:t,childRef:r,sizeRef:o,children:K.exports.cloneElement(e,{ref:r})})}const hy=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=pf(py),l=K.exports.useId(),c=K.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const t of s.values())if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),i?void 0:[n]);return K.exports.useMemo(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),K.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),"popLayout"===a&&(e=gc(fy,{isPresent:n,children:e})),gc(Zd.Provider,{value:c,children:e})};function py(){return new Map}const gy=e=>e.key||"";const my=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{o&&(a="wait",op(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){const e=uy(),[t,n]=K.exports.useState(0),r=K.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[K.exports.useCallback(()=>Tp.postRender(r),[r]),t]}();const l=K.exports.useContext(vf).forceRender;l&&(s=l);const c=uy(),u=function(e){const t=[];return K.exports.Children.forEach(e,e=>{K.exports.isValidElement(e)&&t.push(e)}),t}(e);let d=u;const f=new Set,h=K.exports.useRef(d),p=K.exports.useRef(new Map).current,g=K.exports.useRef(!0);if(Jd(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=gy(e);t.set(n,e)})}(u,p),h.current=d}),Jh(()=>{g.current=!0,p.clear(),f.clear()}),g.current)return gc(pc,{children:d.map(e=>gc(hy,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a,children:e},gy(e)))});d=[...d];const m=h.current.map(gy),v=u.map(gy),b=m.length;for(let y=0;y<b;y++){const e=m[y];-1===v.indexOf(e)&&f.add(e)}return"wait"===a&&f.size&&(d=[]),f.forEach(e=>{if(-1!==v.indexOf(e))return;const n=p.get(e);if(!n)return;const o=m.indexOf(e);d.splice(o,0,gc(hy,{isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);const t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=u,!1===c.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:i,mode:a,children:n},gy(n)))}),d=d.map(e=>{const t=e.key;return f.has(t)?e:gc(hy,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:e},gy(e))}),"production"!==np&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),gc(pc,{children:f.size?d:d.map(e=>K.exports.cloneElement(e))})},vy=(e,t)=>e.find(e=>e.id===t);function by(e,t){const n=yy(e,t);return{position:n,index:n?e[n].findIndex(e=>e.id===t):-1}}function yy(e,t){for(const[n,r]of Object.entries(e))if(vy(r,t))return n}function xy(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}var wy=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ky=fu(function(e){return wy.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),_y=function(e){return"theme"!==e},Sy=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ky:_y},Cy=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ey=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Gu(t,n,r),ld(function(){return Ku(t,n,r)}),null},Ay=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Cy(t,n,i),l=s||Sy(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var g=hd(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=K.exports.useContext(pd)}"string"==typeof e.className?i=Yu(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var p=ad(d.concat(u),t.registered,f);i+=t.key+"-"+p.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?Sy(r):l,m={};for(var v in e)c&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=i,n&&(m.ref=n),mc(pc,{children:[gc(Ey,{cache:t,serialized:p,isStringTag:"string"==typeof r}),gc(r,{...m})]})});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,wu({},n,r,{shouldForwardProp:Cy(g,r,!0)})).apply(void 0,d)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ay[e]=Ay(e)});const Oy=new Set([...Jn,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Ty=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ny(e){return(Ty.has(e)||!Oy.has(e))&&"_"!==e[0]}const Ry=(Py=Ay).default||Py;var Py;const My=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,[s]=function(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=e=>{const t={};for(let r=0;r<e.length;r++){const o=e[r];n[o]&&(Object.defineProperty(t,o,n[o]),delete n[o])}return t};return t.map(e=>o(Array.isArray(e)?e:r.filter(e))).concat(o(r))}(a,tr),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(null!=r)for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&(e in n&&delete n[e],n[e]=r[e]);return n}({},o,Ze(e,t),Le(s),i),c=ir(l)(t.theme);return r?[c,r]:c};function Ly(e,t){const{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=Ny);const o=My({baseStyle:n}),i=Ry(e,r)(o);return K.exports.forwardRef(function(e,t){const{children:n,...r}=e,{colorMode:o,forced:a}=Ed(),s=a?o:void 0;return K.exports.createElement(i,{ref:t,"data-theme":s,...r},n)})}const Dy=function(){const e=new Map;return new Proxy(Ly,{apply:(e,t,n)=>Ly(...n),get:(t,n)=>(e.has(n)||e.set(n,Ly(n)),e.get(n))})}(),Iy={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},jy=K.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=Iy,toastSpacing:u="0.5rem"}=e,[d,f]=K.exports.useState(s),h=null===(p=K.exports.useContext(Zd))||p.isPresent;var p;ct(()=>{h||null==r||r()},[h]),ct(()=>{f(s)},[s]);const g=()=>{h&&o()};K.exports.useEffect(()=>{h&&i&&o()},[h,i,o]),function(e,t){const n=rt(e);K.exports.useEffect(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(g,d);const m=K.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),v=K.exports.useMemo(()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(a),[a]);return gc(cy.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(s),custom:{position:a},style:v,children:gc(Dy.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:Ze(n,{id:t,onClose:g})})})});function zy(e){return K.exports.forwardRef(e)}jy.displayName="ToastComponent";var By="undefined"!=typeof Element,Fy="function"==typeof Map,qy="function"==typeof Set,Uy="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Wy(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!Wy(e[r],t[r]))return!1;return!0}if(Fy&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Wy(r.value[1],t.get(r.value[0])))return!1;return!0}if(qy&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Uy&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(By&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Wy(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var $y=function(e,t){try{return Wy(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};function Vy(){const e=K.exports.useContext(pd);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function Hy(){return{...Ed(),theme:Vy()}}function Yy(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:a}=Hy(),s=e?Ue(i,`components.${e}`):void 0,l=r||s,c=nt({theme:i,colorMode:a},null!=(n=null==l?void 0:l.defaultProps)?n:{},function(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t&&"children"!==e&&!K.exports.isValidElement(t)))}(o),(e,t)=>e?void 0:t),u=K.exports.useRef({});if(l){const e=(d=l,e=>{var t;const{variant:n,size:r,theme:o}=e,i=lr(o);return nt({},Ze(null!=(t=d.baseStyle)?t:{},e),i(d,"sizes",r,e),i(d,"variants",n,e))}),t=e(c);$y(u.current,t)||(u.current=t)}var d;return u.current}function Gy(e,t={}){return Yy(e,t)}function Ky(e,t={}){return Yy(e,t)}const Qy={path:mc("g",{stroke:"currentColor",strokeWidth:"1.5",children:[gc("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),gc("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),gc("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Zy=zy((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...c}=e,u={ref:t,focusable:i,className:Ie("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...Gy("Icon",e)}},d=null!=r?r:Qy.viewBox;if(n&&"string"!=typeof n)return gc(Dy.svg,{as:n,...u,...c});const f=null!=a?a:Qy.path;return gc(Dy.svg,{verticalAlign:"middle",viewBox:d,...u,...c,children:f})});function Xy(e){return gc(Zy,{viewBox:"0 0 24 24",...e,children:gc("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}Zy.displayName="Icon";const Jy=Sd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ex=zy((e,t)=>{const n=Gy("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=cr(e),c=Ie("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${Jy} ${i} linear infinite`,...n};return gc(Dy.div,{ref:t,__css:u,className:c,...l,children:r&&gc(Dy.span,{srOnly:!0,children:r})})});ex.displayName="Spinner";const[tx,nx]=De({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[rx,ox]=De({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),ix={info:{icon:function(e){return gc(Zy,{viewBox:"0 0 24 24",...e,children:gc("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Xy,colorScheme:"orange"},success:{icon:function(e){return gc(Zy,{viewBox:"0 0 24 24",...e,children:gc("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Xy,colorScheme:"red"},loading:{icon:ex,colorScheme:"blue"}};const ax=zy(function(e,t){var n;const{status:r="info",addRole:o=!0,...i}=cr(e),a=null!=(n=e.colorScheme)?n:function(e){return ix[e].colorScheme}(r),s=Ky("Alert",{...e,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return gc(tx,{value:{status:r},children:gc(rx,{value:s,children:gc(Dy.div,{"data-status":r,role:o?"alert":void 0,ref:t,...i,className:Ie("chakra-alert",e.className),__css:l})})})});function sx(e){const{status:t}=nx(),n=function(e){return ix[e].icon}(t),r=ox(),o="loading"===t?r.spinner:r.icon;return gc(Dy.span,{display:"inherit","data-status":t,...e,className:Ie("chakra-alert__icon",e.className),__css:o,children:e.children||gc(n,{h:"100%",w:"100%"})})}ax.displayName="Alert",sx.displayName="AlertIcon";const lx=zy(function(e,t){const n=ox(),{status:r}=nx();return gc(Dy.div,{ref:t,"data-status":r,...e,className:Ie("chakra-alert__title",e.className),__css:n.title})});lx.displayName="AlertTitle";const cx=zy(function(e,t){const{status:n}=nx(),r={display:"inline",...ox().description};return gc(Dy.div,{ref:t,"data-status":n,...e,className:Ie("chakra-alert__desc",e.className),__css:r})});function ux(e){return gc(Zy,{focusable:"false","aria-hidden":!0,...e,children:gc("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}cx.displayName="AlertDescription";const dx=zy(function(e,t){const n=Gy("CloseButton",e),{children:r,isDisabled:o,__css:i,...a}=cr(e);return gc(Dy.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...i},...a,children:r||gc(ux,{width:"1em",height:"1em"})})});dx.displayName="CloseButton";const fx=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return mc(ax,{addRole:!1,status:t,variant:n,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[gc(sx,{children:c}),mc(Dy.div,{flex:"1",maxWidth:"100%",children:[o&&gc(lx,{id:null==u?void 0:u.title,children:o}),s&&gc(cx,{id:null==u?void 0:u.description,display:"block",children:s})]}),i&&gc(dx,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function hx(e={}){const{render:t,toastComponent:n=fx}=e;return r=>"function"==typeof t?t({...r,...e}):gc(n,{...r,...e})}const px=function(e){let t=e;const n=new Set,r=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{r(()=>e),n.delete(t)}),removeToast:(e,t)=>{r(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{const n=function(e,t={}){var n,r;gx+=1;const o=null!=(n=t.id)?n:gx,i=null!=(r=t.position)?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>px.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=n;return r(e=>{var t,r;const i=o.includes("top")?[n,...null!=(t=e[o])?t:[]]:[...null!=(r=e[o])?r:[],n];return{...e,[o]:i}}),i},update:(e,t)=>{e&&r(n=>{const r={...n},{position:o,index:i}=by(r,e);return o&&-1!==i&&(r[o][i]={...r[o][i],...t,message:hx(t)}),r})},closeAll:({positions:e}={})=>{r(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{r(t=>{const n=yy(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>Boolean(by(px.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});let gx=0;var mx={exports:{}},vx={},bx={exports:{}},yx={};
/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,y(e),!p)if(null!==n(l))p=!0,P(w);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function w(t,o){p=!1,g&&(g=!1,v(C),C=-1),h=!0;var i=f;try{for(y(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!O());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&M(x,m.startTime-o),u=!1}return u}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,_=!1,S=null,C=-1,E=5,A=-1;function O(){return!(e.unstable_now()-A<E)}function T(){if(null!==S){var t=e.unstable_now();A=t;var n=!0;try{n=S(!0,t)}finally{n?k():(_=!1,S=null)}}else _=!1}if("function"==typeof b)k=function(){b(T)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,R=N.port2;N.port1.onmessage=T,k=function(){R.postMessage(null)}}else k=function(){m(T,0)};function P(e){S=e,_||(_=!0,k())}function M(t,n){C=m(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,P(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(v(C),C=-1):g=!0,M(x,i-a))):(r.sortIndex=s,t(l,r),p||h||(p=!0,P(w))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(yx),bx.exports=yx;
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var xx=K.exports,wx=bx.exports;function kx(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Sx=new Set,Cx={};function Ex(e,t){Ax(e,t),Ax(e+"Capture",t)}function Ax(e,t){for(Cx[e]=t,e=0;e<t.length;e++)Sx.add(t[e])}var Ox=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Tx=Object.prototype.hasOwnProperty,Nx=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rx={},Px={};function Mx(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Lx={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lx[e]=new Mx(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lx[t]=new Mx(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lx[e]=new Mx(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lx[e]=new Mx(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lx[e]=new Mx(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Lx[e]=new Mx(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Lx[e]=new Mx(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Lx[e]=new Mx(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Lx[e]=new Mx(e,5,!1,e.toLowerCase(),null,!1,!1)});var Dx=/[\-:]([a-z])/g;function Ix(e){return e[1].toUpperCase()}function jx(e,t,n,r){var o=Lx.hasOwnProperty(t)?Lx[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Tx.call(Px,e)||!Tx.call(Rx,e)&&(Nx.test(e)?Px[e]=!0:(Rx[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Dx,Ix);Lx[t]=new Mx(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Dx,Ix);Lx[t]=new Mx(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Dx,Ix);Lx[t]=new Mx(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Lx[e]=new Mx(e,1,!1,e.toLowerCase(),null,!1,!1)}),Lx.xlinkHref=new Mx("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Lx[e]=new Mx(e,1,!1,e.toLowerCase(),null,!0,!0)});var zx=xx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bx=Symbol.for("react.element"),Fx=Symbol.for("react.portal"),qx=Symbol.for("react.fragment"),Ux=Symbol.for("react.strict_mode"),Wx=Symbol.for("react.profiler"),$x=Symbol.for("react.provider"),Vx=Symbol.for("react.context"),Hx=Symbol.for("react.forward_ref"),Yx=Symbol.for("react.suspense"),Gx=Symbol.for("react.suspense_list"),Kx=Symbol.for("react.memo"),Qx=Symbol.for("react.lazy"),Zx=Symbol.for("react.offscreen"),Xx=Symbol.iterator;function Jx(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Xx&&e[Xx]||e["@@iterator"])?e:null}var ew,tw=Object.assign;function nw(e){if(void 0===ew)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ew=t&&t[1]||""}return"\n"+ew+e}var rw=!1;function ow(e,t){if(!e||rw)return"";rw=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{rw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nw(e):""}function iw(e){switch(e.tag){case 5:return nw(e.type);case 16:return nw("Lazy");case 13:return nw("Suspense");case 19:return nw("SuspenseList");case 0:case 2:case 15:return e=ow(e.type,!1);case 11:return e=ow(e.type.render,!1);case 1:return e=ow(e.type,!0);default:return""}}function aw(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case qx:return"Fragment";case Fx:return"Portal";case Wx:return"Profiler";case Ux:return"StrictMode";case Yx:return"Suspense";case Gx:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Vx:return(e.displayName||"Context")+".Consumer";case $x:return(e._context.displayName||"Context")+".Provider";case Hx:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Kx:return null!==(t=e.displayName||null)?t:aw(e.type)||"Memo";case Qx:t=e._payload,e=e._init;try{return aw(e(t))}catch(n){}}return null}function sw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return aw(t);case 8:return t===Ux?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function lw(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function cw(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function uw(e){e._valueTracker||(e._valueTracker=function(e){var t=cw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function dw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cw(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function fw(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function hw(e,t){var n=t.checked;return tw({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function pw(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=lw(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function gw(e,t){null!=(t=t.checked)&&jx(e,"checked",t,!1)}function mw(e,t){gw(e,t);var n=lw(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?bw(e,t.type,n):t.hasOwnProperty("defaultValue")&&bw(e,t.type,lw(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function vw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function bw(e,t,n){"number"===t&&fw(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yw=Array.isArray;function xw(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+lw(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ww(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(kx(91));return tw({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kw(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(kx(92));if(yw(n)){if(1<n.length)throw Error(kx(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:lw(n)}}function _w(e,t){var n=lw(t.value),r=lw(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Sw(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Cw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ew(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Cw(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Aw,Ow,Tw=(Ow=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Aw=Aw||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Aw.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Ow(e,t)})}:Ow);function Nw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Rw={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pw=["Webkit","ms","Moz","O"];function Mw(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Rw.hasOwnProperty(e)&&Rw[e]?(""+t).trim():t+"px"}function Lw(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Mw(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Rw).forEach(function(e){Pw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rw[t]=Rw[e]})});var Dw=tw({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Iw(e,t){if(t){if(Dw[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(kx(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(kx(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(kx(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(kx(62))}}function jw(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zw=null;function Bw(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Fw=null,qw=null,Uw=null;function Ww(e){if(e=jC(e)){if("function"!=typeof Fw)throw Error(kx(280));var t=e.stateNode;t&&(t=BC(t),Fw(e.stateNode,e.type,t))}}function $w(e){qw?Uw?Uw.push(e):Uw=[e]:qw=e}function Vw(){if(qw){var e=qw,t=Uw;if(Uw=qw=null,Ww(e),t)for(e=0;e<t.length;e++)Ww(t[e])}}function Hw(e,t){return e(t)}function Yw(){}var Gw=!1;function Kw(e,t,n){if(Gw)return e(t,n);Gw=!0;try{return Hw(e,t,n)}finally{Gw=!1,(null!==qw||null!==Uw)&&(Yw(),Vw())}}function Qw(e,t){var n=e.stateNode;if(null===n)return null;var r=BC(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(kx(231,t,typeof n));return n}var Zw=!1;if(Ox)try{var Xw={};Object.defineProperty(Xw,"passive",{get:function(){Zw=!0}}),window.addEventListener("test",Xw,Xw),window.removeEventListener("test",Xw,Xw)}catch(Ow){Zw=!1}function Jw(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ek=!1,tk=null,nk=!1,rk=null,ok={onError:function(e){ek=!0,tk=e}};function ik(e,t,n,r,o,i,a,s,l){ek=!1,tk=null,Jw.apply(ok,arguments)}function ak(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function sk(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function lk(e){if(ak(e)!==e)throw Error(kx(188))}function ck(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ak(e)))throw Error(kx(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return lk(o),e;if(i===r)return lk(o),t;i=i.sibling}throw Error(kx(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(kx(189))}}if(n.alternate!==r)throw Error(kx(190))}if(3!==n.tag)throw Error(kx(188));return n.stateNode.current===n?e:t}(e))?uk(e):null}function uk(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=uk(e);if(null!==t)return t;e=e.sibling}return null}var dk=wx.unstable_scheduleCallback,fk=wx.unstable_cancelCallback,hk=wx.unstable_shouldYield,pk=wx.unstable_requestPaint,gk=wx.unstable_now,mk=wx.unstable_getCurrentPriorityLevel,vk=wx.unstable_ImmediatePriority,bk=wx.unstable_UserBlockingPriority,yk=wx.unstable_NormalPriority,xk=wx.unstable_LowPriority,wk=wx.unstable_IdlePriority,kk=null,_k=null;var Sk=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Ck(e)/Ek|0)|0},Ck=Math.log,Ek=Math.LN2;var Ak=64,Ok=4194304;function Tk(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nk(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=Tk(s):0!==(i&=a)&&(r=Tk(i))}else 0!==(a=n&~o)?r=Tk(a):0!==i&&(r=Tk(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Sk(t)),r|=e[n],t&=~o;return r}function Rk(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Pk(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Mk(){var e=Ak;return!(4194240&(Ak<<=1))&&(Ak=64),e}function Lk(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Dk(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Sk(t)]=n}function Ik(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sk(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var jk=0;function zk(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Bk,Fk,qk,Uk,Wk,$k=!1,Vk=[],Hk=null,Yk=null,Gk=null,Kk=new Map,Qk=new Map,Zk=[],Xk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Jk(e,t){switch(e){case"focusin":case"focusout":Hk=null;break;case"dragenter":case"dragleave":Yk=null;break;case"mouseover":case"mouseout":Gk=null;break;case"pointerover":case"pointerout":Kk.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qk.delete(t.pointerId)}}function e_(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=jC(t))&&Fk(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function t_(e){var t=IC(e.target);if(null!==t){var n=ak(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=sk(n)))return e.blockedOn=t,void Wk(e.priority,function(){qk(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function n_(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=h_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=jC(n))&&Fk(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);zw=r,n.target.dispatchEvent(r),zw=null,t.shift()}return!0}function r_(e,t,n){n_(e)&&n.delete(t)}function o_(){$k=!1,null!==Hk&&n_(Hk)&&(Hk=null),null!==Yk&&n_(Yk)&&(Yk=null),null!==Gk&&n_(Gk)&&(Gk=null),Kk.forEach(r_),Qk.forEach(r_)}function i_(e,t){e.blockedOn===t&&(e.blockedOn=null,$k||($k=!0,wx.unstable_scheduleCallback(wx.unstable_NormalPriority,o_)))}function a_(e){function t(t){return i_(t,e)}if(0<Vk.length){i_(Vk[0],e);for(var n=1;n<Vk.length;n++){var r=Vk[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Hk&&i_(Hk,e),null!==Yk&&i_(Yk,e),null!==Gk&&i_(Gk,e),Kk.forEach(t),Qk.forEach(t),n=0;n<Zk.length;n++)(r=Zk[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Zk.length&&null===(n=Zk[0]).blockedOn;)t_(n),null===n.blockedOn&&Zk.shift()}var s_=zx.ReactCurrentBatchConfig,l_=!0;function c_(e,t,n,r){var o=jk,i=s_.transition;s_.transition=null;try{jk=1,d_(e,t,n,r)}finally{jk=o,s_.transition=i}}function u_(e,t,n,r){var o=jk,i=s_.transition;s_.transition=null;try{jk=4,d_(e,t,n,r)}finally{jk=o,s_.transition=i}}function d_(e,t,n,r){if(l_){var o=h_(e,t,n,r);if(null===o)lC(e,t,r,f_,n),Jk(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Hk=e_(Hk,e,t,n,r,o),!0;case"dragenter":return Yk=e_(Yk,e,t,n,r,o),!0;case"mouseover":return Gk=e_(Gk,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Kk.set(i,e_(Kk.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Qk.set(i,e_(Qk.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Jk(e,r),4&t&&-1<Xk.indexOf(e)){for(;null!==o;){var i=jC(o);if(null!==i&&Bk(i),null===(i=h_(e,t,n,r))&&lC(e,t,r,f_,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else lC(e,t,r,null,n)}}var f_=null;function h_(e,t,n,r){if(f_=null,null!==(e=IC(e=Bw(r))))if(null===(t=ak(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=sk(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return f_=e,null}function p_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mk()){case vk:return 1;case bk:return 4;case yk:case xk:return 16;case wk:return 536870912;default:return 16}default:return 16}}var g_=null,m_=null,v_=null;function b_(){if(v_)return v_;var e,t,n=m_,r=n.length,o="value"in g_?g_.value:g_.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return v_=o.slice(e,1<t?1-t:void 0)}function y_(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function x_(){return!0}function w_(){return!1}function k_(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?x_:w_,this.isPropagationStopped=w_,this}return tw(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=x_)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=x_)},persist:function(){},isPersistent:x_}),t}var S_,C_,E_,A_={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},O_=k_(A_),T_=tw({},A_,{view:0,detail:0}),N_=k_(T_),R_=tw({},T_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:W_,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==E_&&(E_&&"mousemove"===e.type?(S_=e.screenX-E_.screenX,C_=e.screenY-E_.screenY):C_=S_=0,E_=e),S_)},movementY:function(e){return"movementY"in e?e.movementY:C_}}),P_=k_(R_),M_=k_(tw({},R_,{dataTransfer:0})),L_=k_(tw({},T_,{relatedTarget:0})),D_=k_(tw({},A_,{animationName:0,elapsedTime:0,pseudoElement:0})),I_=tw({},A_,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j_=k_(I_),z_=k_(tw({},A_,{data:0})),B_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=q_[e])&&!!t[e]}function W_(){return U_}var $_=tw({},T_,{key:function(e){if(e.key){var t=B_[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=y_(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?F_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:W_,charCode:function(e){return"keypress"===e.type?y_(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?y_(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),V_=k_($_),H_=k_(tw({},R_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Y_=k_(tw({},T_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:W_})),G_=k_(tw({},A_,{propertyName:0,elapsedTime:0,pseudoElement:0})),K_=tw({},R_,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Q_=k_(K_),Z_=[9,13,27,32],X_=Ox&&"CompositionEvent"in window,J_=null;Ox&&"documentMode"in document&&(J_=document.documentMode);var eS=Ox&&"TextEvent"in window&&!J_,tS=Ox&&(!X_||J_&&8<J_&&11>=J_),nS=String.fromCharCode(32),rS=!1;function oS(e,t){switch(e){case"keyup":return-1!==Z_.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iS(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var aS=!1;var sS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!sS[e.type]:"textarea"===t}function cS(e,t,n,r){$w(r),0<(t=uC(t,"onChange")).length&&(n=new O_("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uS=null,dS=null;function fS(e){nC(e,0)}function hS(e){if(dw(zC(e)))return e}function pS(e,t){if("change"===e)return t}var gS=!1;if(Ox){var mS;if(Ox){var vS="oninput"in document;if(!vS){var bS=document.createElement("div");bS.setAttribute("oninput","return;"),vS="function"==typeof bS.oninput}mS=vS}else mS=!1;gS=mS&&(!document.documentMode||9<document.documentMode)}function yS(){uS&&(uS.detachEvent("onpropertychange",xS),dS=uS=null)}function xS(e){if("value"===e.propertyName&&hS(dS)){var t=[];cS(t,dS,e,Bw(e)),Kw(fS,t)}}function wS(e,t,n){"focusin"===e?(yS(),dS=n,(uS=t).attachEvent("onpropertychange",xS)):"focusout"===e&&yS()}function kS(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return hS(dS)}function _S(e,t){if("click"===e)return hS(t)}function SS(e,t){if("input"===e||"change"===e)return hS(t)}var CS="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ES(e,t){if(CS(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Tx.call(t,o)||!CS(e[o],t[o]))return!1}return!0}function AS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function OS(e,t){var n,r=AS(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AS(r)}}function TS(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?TS(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function NS(){for(var e=window,t=fw();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=fw((e=t.contentWindow).document)}return t}function RS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function PS(e){var t=NS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&TS(n.ownerDocument.documentElement,n)){if(null!==r&&RS(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=OS(n,i);var a=OS(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MS=Ox&&"documentMode"in document&&11>=document.documentMode,LS=null,DS=null,IS=null,jS=!1;function zS(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;jS||null==LS||LS!==fw(r)||("selectionStart"in(r=LS)&&RS(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},IS&&ES(IS,r)||(IS=r,0<(r=uC(DS,"onSelect")).length&&(t=new O_("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=LS)))}function BS(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var FS={animationend:BS("Animation","AnimationEnd"),animationiteration:BS("Animation","AnimationIteration"),animationstart:BS("Animation","AnimationStart"),transitionend:BS("Transition","TransitionEnd")},qS={},US={};function WS(e){if(qS[e])return qS[e];if(!FS[e])return e;var t,n=FS[e];for(t in n)if(n.hasOwnProperty(t)&&t in US)return qS[e]=n[t];return e}Ox&&(US=document.createElement("div").style,"AnimationEvent"in window||(delete FS.animationend.animation,delete FS.animationiteration.animation,delete FS.animationstart.animation),"TransitionEvent"in window||delete FS.transitionend.transition);var $S=WS("animationend"),VS=WS("animationiteration"),HS=WS("animationstart"),YS=WS("transitionend"),GS=new Map,KS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function QS(e,t){GS.set(e,t),Ex(t,[e])}for(var ZS=0;ZS<KS.length;ZS++){var XS=KS[ZS];QS(XS.toLowerCase(),"on"+(XS[0].toUpperCase()+XS.slice(1)))}QS($S,"onAnimationEnd"),QS(VS,"onAnimationIteration"),QS(HS,"onAnimationStart"),QS("dblclick","onDoubleClick"),QS("focusin","onFocus"),QS("focusout","onBlur"),QS(YS,"onTransitionEnd"),Ax("onMouseEnter",["mouseout","mouseover"]),Ax("onMouseLeave",["mouseout","mouseover"]),Ax("onPointerEnter",["pointerout","pointerover"]),Ax("onPointerLeave",["pointerout","pointerover"]),Ex("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ex("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ex("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ex("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ex("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ex("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var JS="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),eC=new Set("cancel close invalid load scroll toggle".split(" ").concat(JS));function tC(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,s,l){if(ik.apply(this,arguments),ek){if(!ek)throw Error(kx(198));var c=tk;ek=!1,tk=null,nk||(nk=!0,rk=c)}}(r,t,void 0,e),e.currentTarget=null}function nC(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;tC(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;tC(o,s,c),i=l}}}if(nk)throw e=rk,nk=!1,rk=null,e}function rC(e,t){var n=t[MC];void 0===n&&(n=t[MC]=new Set);var r=e+"__bubble";n.has(r)||(sC(t,e,2,!1),n.add(r))}function oC(e,t,n){var r=0;t&&(r|=4),sC(n,e,r,t)}var iC="_reactListening"+Math.random().toString(36).slice(2);function aC(e){if(!e[iC]){e[iC]=!0,Sx.forEach(function(t){"selectionchange"!==t&&(eC.has(t)||oC(t,!1,e),oC(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[iC]||(t[iC]=!0,oC("selectionchange",!1,t))}}function sC(e,t,n,r){switch(p_(t)){case 1:var o=c_;break;case 4:o=u_;break;default:o=d_}n=o.bind(null,t,n,e),o=void 0,!Zw||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function lC(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=IC(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Kw(function(){var r=i,o=Bw(n),a=[];e:{var s=GS.get(e);if(void 0!==s){var l=O_,c=e;switch(e){case"keypress":if(0===y_(n))break e;case"keydown":case"keyup":l=V_;break;case"focusin":c="focus",l=L_;break;case"focusout":c="blur",l=L_;break;case"beforeblur":case"afterblur":l=L_;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=P_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=M_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Y_;break;case $S:case VS:case HS:l=D_;break;case YS:l=G_;break;case"scroll":l=N_;break;case"wheel":l=Q_;break;case"copy":case"cut":case"paste":l=j_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=H_}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Qw(p,f))&&u.push(cC(p,g,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===zw||!(c=n.relatedTarget||n.fromElement)||!IC(c)&&!c[PC])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?IC(c):null)&&(c!==(d=ak(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=P_,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=H_,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:zC(l),h=null==c?s:zC(c),(s=new u(g,p+"leave",l,n,o)).target=d,s.relatedTarget=h,g=null,IC(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(f=c,p=0,h=u=l;h;h=dC(h))p++;for(h=0,g=f;g;g=dC(g))h++;for(;0<p-h;)u=dC(u),p--;for(;0<h-p;)f=dC(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=dC(u),f=dC(f)}u=null}else u=null;null!==l&&fC(a,s,l,u,!1),null!==c&&null!==d&&fC(a,d,c,u,!0)}if("select"===(l=(s=r?zC(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=pS;else if(lS(s))if(gS)m=SS;else{m=kS;var v=wS}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=_S);switch(m&&(m=m(e,r))?cS(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&bw(s,"number",s.value)),v=r?zC(r):window,e){case"focusin":(lS(v)||"true"===v.contentEditable)&&(LS=v,DS=r,IS=null);break;case"focusout":IS=DS=LS=null;break;case"mousedown":jS=!0;break;case"contextmenu":case"mouseup":case"dragend":jS=!1,zS(a,n,o);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":zS(a,n,o)}var b;if(X_)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else aS?oS(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(tS&&"ko"!==n.locale&&(aS||"onCompositionStart"!==y?"onCompositionEnd"===y&&aS&&(b=b_()):(m_="value"in(g_=o)?g_.value:g_.textContent,aS=!0)),0<(v=uC(r,y)).length&&(y=new z_(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=iS(n))&&(y.data=b))),(b=eS?function(e,t){switch(e){case"compositionend":return iS(t);case"keypress":return 32!==t.which?null:(rS=!0,nS);case"textInput":return(e=t.data)===nS&&rS?null:e;default:return null}}(e,n):function(e,t){if(aS)return"compositionend"===e||!X_&&oS(e,t)?(e=b_(),v_=m_=g_=null,aS=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tS&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=uC(r,"onBeforeInput")).length&&(o=new z_("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}nC(a,t)})}function cC(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uC(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Qw(e,n))&&r.unshift(cC(e,i,o)),null!=(i=Qw(e,t))&&r.push(cC(e,i,o))),e=e.return}return r}function dC(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function fC(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Qw(n,i))&&a.unshift(cC(n,l,s)):o||null!=(l=Qw(n,i))&&a.push(cC(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var hC=/\r\n?/g,pC=/\u0000|\uFFFD/g;function gC(e){return("string"==typeof e?e:""+e).replace(hC,"\n").replace(pC,"")}function mC(e,t,n){if(t=gC(t),gC(e)!==t&&n)throw Error(kx(425))}function vC(){}var bC=null,yC=null;function xC(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wC="function"==typeof setTimeout?setTimeout:void 0,kC="function"==typeof clearTimeout?clearTimeout:void 0,_C="function"==typeof Promise?Promise:void 0,SC="function"==typeof queueMicrotask?queueMicrotask:void 0!==_C?function(e){return _C.resolve(null).then(e).catch(CC)}:wC;function CC(e){setTimeout(function(){throw e})}function EC(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void a_(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);a_(t)}function AC(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function OC(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var TC=Math.random().toString(36).slice(2),NC="__reactFiber$"+TC,RC="__reactProps$"+TC,PC="__reactContainer$"+TC,MC="__reactEvents$"+TC,LC="__reactListeners$"+TC,DC="__reactHandles$"+TC;function IC(e){var t=e[NC];if(t)return t;for(var n=e.parentNode;n;){if(t=n[PC]||n[NC]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=OC(e);null!==e;){if(n=e[NC])return n;e=OC(e)}return t}n=(e=n).parentNode}return null}function jC(e){return!(e=e[NC]||e[PC])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function zC(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(kx(33))}function BC(e){return e[RC]||null}var FC=[],qC=-1;function UC(e){return{current:e}}function WC(e){0>qC||(e.current=FC[qC],FC[qC]=null,qC--)}function $C(e,t){qC++,FC[qC]=e.current,e.current=t}var VC={},HC=UC(VC),YC=UC(!1),GC=VC;function KC(e,t){var n=e.type.contextTypes;if(!n)return VC;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function QC(e){return null!=(e=e.childContextTypes)}function ZC(){WC(YC),WC(HC)}function XC(e,t,n){if(HC.current!==VC)throw Error(kx(168));$C(HC,t),$C(YC,n)}function JC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(kx(108,sw(e)||"Unknown",o));return tw({},n,r)}function eE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||VC,GC=HC.current,$C(HC,e),$C(YC,YC.current),!0}function tE(e,t,n){var r=e.stateNode;if(!r)throw Error(kx(169));n?(e=JC(e,t,GC),r.__reactInternalMemoizedMergedChildContext=e,WC(YC),WC(HC),$C(HC,e)):WC(YC),$C(YC,n)}var nE=null,rE=!1,oE=!1;function iE(e){null===nE?nE=[e]:nE.push(e)}function aE(){if(!oE&&null!==nE){oE=!0;var e=0,t=jk;try{var n=nE;for(jk=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}nE=null,rE=!1}catch(OV){throw null!==nE&&(nE=nE.slice(e+1)),dk(vk,aE),OV}finally{jk=t,oE=!1}}return null}var sE=[],lE=0,cE=null,uE=0,dE=[],fE=0,hE=null,pE=1,gE="";function mE(e,t){sE[lE++]=uE,sE[lE++]=cE,cE=e,uE=t}function vE(e,t,n){dE[fE++]=pE,dE[fE++]=gE,dE[fE++]=hE,hE=e;var r=pE;e=gE;var o=32-Sk(r)-1;r&=~(1<<o),n+=1;var i=32-Sk(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,pE=1<<32-Sk(t)+o|n<<o|r,gE=i+e}else pE=1<<i|n<<o|r,gE=e}function bE(e){null!==e.return&&(mE(e,1),vE(e,1,0))}function yE(e){for(;e===cE;)cE=sE[--lE],sE[lE]=null,uE=sE[--lE],sE[lE]=null;for(;e===hE;)hE=dE[--fE],dE[fE]=null,gE=dE[--fE],dE[fE]=null,pE=dE[--fE],dE[fE]=null}var xE=null,wE=null,kE=!1,_E=null;function SE(e,t){var n=GN(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function CE(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,xE=e,wE=AC(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,xE=e,wE=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==hE?{id:pE,overflow:gE}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=GN(18,null,null,0)).stateNode=t,n.return=e,e.child=n,xE=e,wE=null,!0);default:return!1}}function EE(e){return!(!(1&e.mode)||128&e.flags)}function AE(e){if(kE){var t=wE;if(t){var n=t;if(!CE(e,t)){if(EE(e))throw Error(kx(418));t=AC(n.nextSibling);var r=xE;t&&CE(e,t)?SE(r,n):(e.flags=-4097&e.flags|2,kE=!1,xE=e)}}else{if(EE(e))throw Error(kx(418));e.flags=-4097&e.flags|2,kE=!1,xE=e}}}function OE(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xE=e}function TE(e){if(e!==xE)return!1;if(!kE)return OE(e),kE=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!xC(e.type,e.memoizedProps)),t&&(t=wE)){if(EE(e))throw NE(),Error(kx(418));for(;t;)SE(e,t),t=AC(t.nextSibling)}if(OE(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(kx(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wE=AC(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wE=null}}else wE=xE?AC(e.stateNode.nextSibling):null;return!0}function NE(){for(var e=wE;e;)e=AC(e.nextSibling)}function RE(){wE=xE=null,kE=!1}function PE(e){null===_E?_E=[e]:_E.push(e)}var ME=zx.ReactCurrentBatchConfig;function LE(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(kx(309));var r=n.stateNode}if(!r)throw Error(kx(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(kx(284));if(!n._owner)throw Error(kx(290,e))}return e}function DE(e,t){throw e=Object.prototype.toString.call(t),Error(kx(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function IE(e){return(0,e._init)(e._payload)}function jE(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=QN(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=eR(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===qx?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Qx&&IE(i)===t.type)?((r=o(t,n.props)).ref=LE(e,t,n),r.return=e,r):((r=ZN(n.type,n.key,n.props,null,e.mode,r)).ref=LE(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=tR(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=XN(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=eR(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Bx:return(n=ZN(t.type,t.key,t.props,null,e.mode,n)).ref=LE(e,null,t),n.return=e,n;case Fx:return(t=tR(t,e.mode,n)).return=e,t;case Qx:return d(e,(0,t._init)(t._payload),n)}if(yw(t)||Jx(t))return(t=XN(t,e.mode,n,null)).return=e,t;DE(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Bx:return n.key===o?l(e,t,n,r):null;case Fx:return n.key===o?c(e,t,n,r):null;case Qx:return f(e,t,(o=n._init)(n._payload),r)}if(yw(n)||Jx(n))return null!==o?null:u(e,t,n,r,null);DE(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Bx:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Fx:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Qx:return h(e,t,n,(0,r._init)(r._payload),o)}if(yw(r)||Jx(r))return u(t,e=e.get(n)||null,r,o,null);DE(t,r)}return null}return function s(l,c,u,p){if("object"==typeof u&&null!==u&&u.type===qx&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Bx:e:{for(var g=u.key,m=c;null!==m;){if(m.key===g){if((g=u.type)===qx){if(7===m.tag){n(l,m.sibling),(c=o(m,u.props.children)).return=l,l=c;break e}}else if(m.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===Qx&&IE(g)===m.type){n(l,m.sibling),(c=o(m,u.props)).ref=LE(l,m,u),c.return=l,l=c;break e}n(l,m);break}t(l,m),m=m.sibling}u.type===qx?((c=XN(u.props.children,l.mode,p,u.key)).return=l,l=c):((p=ZN(u.type,u.key,u.props,null,l.mode,p)).ref=LE(l,c,u),p.return=l,l=p)}return a(l);case Fx:e:{for(m=u.key;null!==c;){if(c.key===m){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=o(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=tR(u,l.mode,p)).return=l,l=c}return a(l);case Qx:return s(l,c,(m=u._init)(u._payload),p)}if(yw(u))return function(o,a,s,l){for(var c=null,u=null,p=a,g=a=0,m=null;null!==p&&g<s.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=f(o,p,s[g],l);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(o,p),a=i(v,a,g),null===u?c=v:u.sibling=v,u=v,p=m}if(g===s.length)return n(o,p),kE&&mE(o,g),c;if(null===p){for(;g<s.length;g++)null!==(p=d(o,s[g],l))&&(a=i(p,a,g),null===u?c=p:u.sibling=p,u=p);return kE&&mE(o,g),c}for(p=r(o,p);g<s.length;g++)null!==(m=h(p,o,g,s[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),a=i(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&p.forEach(function(e){return t(o,e)}),kE&&mE(o,g),c}(l,c,u,p);if(Jx(u))return function(o,a,s,l){var c=Jx(s);if("function"!=typeof c)throw Error(kx(150));if(null==(s=c.call(s)))throw Error(kx(151));for(var u=c=null,p=a,g=a=0,m=null,v=s.next();null!==p&&!v.done;g++,v=s.next()){p.index>g?(m=p,p=null):m=p.sibling;var b=f(o,p,v.value,l);if(null===b){null===p&&(p=m);break}e&&p&&null===b.alternate&&t(o,p),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,p=m}if(v.done)return n(o,p),kE&&mE(o,g),c;if(null===p){for(;!v.done;g++,v=s.next())null!==(v=d(o,v.value,l))&&(a=i(v,a,g),null===u?c=v:u.sibling=v,u=v);return kE&&mE(o,g),c}for(p=r(o,p);!v.done;g++,v=s.next())null!==(v=h(p,o,g,v.value,l))&&(e&&null!==v.alternate&&p.delete(null===v.key?g:v.key),a=i(v,a,g),null===u?c=v:u.sibling=v,u=v);return e&&p.forEach(function(e){return t(o,e)}),kE&&mE(o,g),c}(l,c,u,p);DE(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=eR(u,l.mode,p)).return=l,l=c),a(l)):n(l,c)}}var zE=jE(!0),BE=jE(!1),FE=UC(null),qE=null,UE=null,WE=null;function $E(){WE=UE=qE=null}function VE(e){var t=FE.current;WC(FE),e._currentValue=t}function HE(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function YE(e,t){qE=e,WE=UE=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(IO=!0),e.firstContext=null)}function GE(e){var t=e._currentValue;if(WE!==e)if(e={context:e,memoizedValue:t,next:null},null===UE){if(null===qE)throw Error(kx(308));UE=e,qE.dependencies={lanes:0,firstContext:e}}else UE=UE.next=e;return t}var KE=null;function QE(e){null===KE?KE=[e]:KE.push(e)}function ZE(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,QE(t)):(n.next=o.next,o.next=n),t.interleaved=n,XE(e,r)}function XE(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var JE=!1;function eA(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tA(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nA(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rA(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&VT){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,XE(e,n)}return null===(o=r.interleaved)?(t.next=t,QE(r)):(t.next=o.next,o.next=t),r.interleaved=t,XE(e,n)}function oA(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ik(e,n)}}function iA(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function aA(e,t,n,r){var o=e.updateQueue;JE=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"==typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=g.payload)?p.call(h,d,f):p))break e;d=tw({},d,f);break e;case 2:JE=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);JT|=a,e.lanes=a,e.memoizedState=d}}function sA(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(kx(191,o));o.call(r)}}}var lA={},cA=UC(lA),uA=UC(lA),dA=UC(lA);function fA(e){if(e===lA)throw Error(kx(174));return e}function hA(e,t){switch($C(dA,t),$C(uA,e),$C(cA,lA),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ew(null,"");break;default:t=Ew(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}WC(cA),$C(cA,t)}function pA(){WC(cA),WC(uA),WC(dA)}function gA(e){fA(dA.current);var t=fA(cA.current),n=Ew(t,e.type);t!==n&&($C(uA,e),$C(cA,n))}function mA(e){uA.current===e&&(WC(cA),WC(uA))}var vA=UC(0);function bA(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yA=[];function xA(){for(var e=0;e<yA.length;e++)yA[e]._workInProgressVersionPrimary=null;yA.length=0}var wA=zx.ReactCurrentDispatcher,kA=zx.ReactCurrentBatchConfig,_A=0,SA=null,CA=null,EA=null,AA=!1,OA=!1,TA=0,NA=0;function RA(){throw Error(kx(321))}function PA(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!CS(e[n],t[n]))return!1;return!0}function MA(e,t,n,r,o,i){if(_A=i,SA=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wA.current=null===e||null===e.memoizedState?mO:vO,e=n(r,o),OA){i=0;do{if(OA=!1,TA=0,25<=i)throw Error(kx(301));i+=1,EA=CA=null,t.updateQueue=null,wA.current=bO,e=n(r,o)}while(OA)}if(wA.current=gO,t=null!==CA&&null!==CA.next,_A=0,EA=CA=SA=null,AA=!1,t)throw Error(kx(300));return e}function LA(){var e=0!==TA;return TA=0,e}function DA(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===EA?SA.memoizedState=EA=e:EA=EA.next=e,EA}function IA(){if(null===CA){var e=SA.alternate;e=null!==e?e.memoizedState:null}else e=CA.next;var t=null===EA?SA.memoizedState:EA.next;if(null!==t)EA=t,CA=e;else{if(null===e)throw Error(kx(310));e={memoizedState:(CA=e).memoizedState,baseState:CA.baseState,baseQueue:CA.baseQueue,queue:CA.queue,next:null},null===EA?SA.memoizedState=EA=e:EA=EA.next=e}return EA}function jA(e,t){return"function"==typeof t?t(e):t}function zA(e){var t=IA(),n=t.queue;if(null===n)throw Error(kx(311));n.lastRenderedReducer=e;var r=CA,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((_A&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,SA.lanes|=u,JT|=u}c=c.next}while(null!==c&&c!==i);null===l?a=r:l.next=s,CS(r,t.memoizedState)||(IO=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,SA.lanes|=i,JT|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function BA(e){var t=IA(),n=t.queue;if(null===n)throw Error(kx(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);CS(i,t.memoizedState)||(IO=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function FA(){}function qA(e,t){var n=SA,r=IA(),o=t(),i=!CS(r.memoizedState,o);if(i&&(r.memoizedState=o,IO=!0),r=r.queue,JA($A.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==EA&&1&EA.memoizedState.tag){if(n.flags|=2048,GA(9,WA.bind(null,n,r,o,t),void 0,null),null===HT)throw Error(kx(349));30&_A||UA(n,t,o)}return o}function UA(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=SA.updateQueue)?(t={lastEffect:null,stores:null},SA.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function WA(e,t,n,r){t.value=n,t.getSnapshot=r,VA(t)&&HA(e)}function $A(e,t,n){return n(function(){VA(t)&&HA(e)})}function VA(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!CS(e,n)}catch(r){return!0}}function HA(e){var t=XE(e,1);null!==t&&yN(t,e,1,-1)}function YA(e){var t=DA();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jA,lastRenderedState:e},t.queue=e,e=e.dispatch=dO.bind(null,SA,e),[t.memoizedState,e]}function GA(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=SA.updateQueue)?(t={lastEffect:null,stores:null},SA.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function KA(){return IA().memoizedState}function QA(e,t,n,r){var o=DA();SA.flags|=e,o.memoizedState=GA(1|t,n,void 0,void 0===r?null:r)}function ZA(e,t,n,r){var o=IA();r=void 0===r?null:r;var i=void 0;if(null!==CA){var a=CA.memoizedState;if(i=a.destroy,null!==r&&PA(r,a.deps))return void(o.memoizedState=GA(t,n,i,r))}SA.flags|=e,o.memoizedState=GA(1|t,n,i,r)}function XA(e,t){return QA(8390656,8,e,t)}function JA(e,t){return ZA(2048,8,e,t)}function eO(e,t){return ZA(4,2,e,t)}function tO(e,t){return ZA(4,4,e,t)}function nO(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function rO(e,t,n){return n=null!=n?n.concat([e]):null,ZA(4,4,nO.bind(null,t,e),n)}function oO(){}function iO(e,t){var n=IA();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&PA(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function aO(e,t){var n=IA();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&PA(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sO(e,t,n){return 21&_A?(CS(n,t)||(n=Mk(),SA.lanes|=n,JT|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,IO=!0),e.memoizedState=n)}function lO(e,t){var n=jk;jk=0!==n&&4>n?n:4,e(!0);var r=kA.transition;kA.transition={};try{e(!1),t()}finally{jk=n,kA.transition=r}}function cO(){return IA().memoizedState}function uO(e,t,n){var r=bN(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fO(e))hO(t,n);else if(null!==(n=ZE(e,t,n,r))){yN(n,e,r,vN()),pO(n,t,r)}}function dO(e,t,n){var r=bN(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fO(e))hO(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,CS(s,a)){var l=t.interleaved;return null===l?(o.next=o,QE(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=ZE(e,t,o,r))&&(yN(n,e,r,o=vN()),pO(n,t,r))}}function fO(e){var t=e.alternate;return e===SA||null!==t&&t===SA}function hO(e,t){OA=AA=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pO(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ik(e,n)}}var gO={readContext:GE,useCallback:RA,useContext:RA,useEffect:RA,useImperativeHandle:RA,useInsertionEffect:RA,useLayoutEffect:RA,useMemo:RA,useReducer:RA,useRef:RA,useState:RA,useDebugValue:RA,useDeferredValue:RA,useTransition:RA,useMutableSource:RA,useSyncExternalStore:RA,useId:RA,unstable_isNewReconciler:!1},mO={readContext:GE,useCallback:function(e,t){return DA().memoizedState=[e,void 0===t?null:t],e},useContext:GE,useEffect:XA,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,QA(4194308,4,nO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return QA(4194308,4,e,t)},useInsertionEffect:function(e,t){return QA(4,2,e,t)},useMemo:function(e,t){var n=DA();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=DA();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uO.bind(null,SA,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},DA().memoizedState=e},useState:YA,useDebugValue:oO,useDeferredValue:function(e){return DA().memoizedState=e},useTransition:function(){var e=YA(!1),t=e[0];return e=lO.bind(null,e[1]),DA().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=SA,o=DA();if(kE){if(void 0===n)throw Error(kx(407));n=n()}else{if(n=t(),null===HT)throw Error(kx(349));30&_A||UA(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,XA($A.bind(null,r,i,e),[e]),r.flags|=2048,GA(9,WA.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=DA(),t=HT.identifierPrefix;if(kE){var n=gE;t=":"+t+"R"+(n=(pE&~(1<<32-Sk(pE)-1)).toString(32)+n),0<(n=TA++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=NA++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vO={readContext:GE,useCallback:iO,useContext:GE,useEffect:JA,useImperativeHandle:rO,useInsertionEffect:eO,useLayoutEffect:tO,useMemo:aO,useReducer:zA,useRef:KA,useState:function(){return zA(jA)},useDebugValue:oO,useDeferredValue:function(e){return sO(IA(),CA.memoizedState,e)},useTransition:function(){return[zA(jA)[0],IA().memoizedState]},useMutableSource:FA,useSyncExternalStore:qA,useId:cO,unstable_isNewReconciler:!1},bO={readContext:GE,useCallback:iO,useContext:GE,useEffect:JA,useImperativeHandle:rO,useInsertionEffect:eO,useLayoutEffect:tO,useMemo:aO,useReducer:BA,useRef:KA,useState:function(){return BA(jA)},useDebugValue:oO,useDeferredValue:function(e){var t=IA();return null===CA?t.memoizedState=e:sO(t,CA.memoizedState,e)},useTransition:function(){return[BA(jA)[0],IA().memoizedState]},useMutableSource:FA,useSyncExternalStore:qA,useId:cO,unstable_isNewReconciler:!1};function yO(e,t){if(e&&e.defaultProps){for(var n in t=tw({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function xO(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:tw({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var wO={isMounted:function(e){return!!(e=e._reactInternals)&&ak(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vN(),o=bN(e),i=nA(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=rA(e,i,o))&&(yN(t,e,o,r),oA(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vN(),o=bN(e),i=nA(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=rA(e,i,o))&&(yN(t,e,o,r),oA(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vN(),r=bN(e),o=nA(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=rA(e,o,r))&&(yN(t,e,r,n),oA(t,e,r))}};function kO(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ES(n,r)||!ES(o,i))}function _O(e,t,n){var r=!1,o=VC,i=t.contextType;return"object"==typeof i&&null!==i?i=GE(i):(o=QC(t)?GC:HC.current,i=(r=null!=(r=t.contextTypes))?KC(e,o):VC),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wO,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function SO(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wO.enqueueReplaceState(t,t.state,null)}function CO(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},eA(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=GE(i):(i=QC(t)?GC:HC.current,o.context=KC(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(xO(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&wO.enqueueReplaceState(o,o.state,null),aA(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function EO(e,t){try{var n="",r=t;do{n+=iw(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function AO(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function OO(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var TO="function"==typeof WeakMap?WeakMap:Map;function NO(e,t,n){(n=nA(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sN||(sN=!0,lN=r),OO(0,t)},n}function RO(e,t,n){(n=nA(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){OO(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){OO(0,t),"function"!=typeof r&&(null===cN?cN=new Set([this]):cN.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function PO(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new TO;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=UN.bind(null,e,t,n),t.then(e,e))}function MO(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function LO(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=nA(-1,1)).tag=2,rA(n,t,1))),n.lanes|=1),e)}var DO=zx.ReactCurrentOwner,IO=!1;function jO(e,t,n,r){t.child=null===e?BE(t,null,n,r):zE(t,e.child,n,r)}function zO(e,t,n,r,o){n=n.render;var i=t.ref;return YE(t,o),r=MA(e,t,n,r,i,o),n=LA(),null===e||IO?(kE&&n&&bE(t),t.flags|=1,jO(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sT(e,t,o))}function BO(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||KN(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ZN(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,FO(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ES)(a,r)&&e.ref===t.ref)return sT(e,t,o)}return t.flags|=1,(e=QN(i,r)).ref=t.ref,e.return=t,t.child=e}function FO(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ES(i,r)&&e.ref===t.ref){if(IO=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,sT(e,t,o);131072&e.flags&&(IO=!0)}}return WO(e,t,n,r,o)}function qO(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$C(QT,KT),KT|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,$C(QT,KT),KT|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$C(QT,KT),KT|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,$C(QT,KT),KT|=r;return jO(e,t,o,n),t.child}function UO(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function WO(e,t,n,r,o){var i=QC(n)?GC:HC.current;return i=KC(t,i),YE(t,o),n=MA(e,t,n,r,i,o),r=LA(),null===e||IO?(kE&&r&&bE(t),t.flags|=1,jO(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sT(e,t,o))}function $O(e,t,n,r,o){if(QC(n)){var i=!0;eE(t)}else i=!1;if(YE(t,o),null===t.stateNode)aT(e,t),_O(t,n,r),CO(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=GE(c):c=KC(t,c=QC(n)?GC:HC.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&SO(t,a,r,c),JE=!1;var f=t.memoizedState;a.state=f,aA(t,r,a,o),l=t.memoizedState,s!==r||f!==l||YC.current||JE?("function"==typeof u&&(xO(t,n,u,r),l=t.memoizedState),(s=JE||kO(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,tA(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yO(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=GE(l):l=KC(t,l=QC(n)?GC:HC.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&SO(t,a,r,l),JE=!1,f=t.memoizedState,a.state=f,aA(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||YC.current||JE?("function"==typeof h&&(xO(t,n,h,r),p=t.memoizedState),(c=JE||kO(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return VO(e,t,n,r,i,o)}function VO(e,t,n,r,o,i){UO(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&tE(t,n,!1),sT(e,t,i);r=t.stateNode,DO.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=zE(t,e.child,null,i),t.child=zE(t,null,s,i)):jO(e,t,s,i),t.memoizedState=r.state,o&&tE(t,n,!0),t.child}function HO(e){var t=e.stateNode;t.pendingContext?XC(0,t.pendingContext,t.pendingContext!==t.context):t.context&&XC(0,t.context,!1),hA(e,t.containerInfo)}function YO(e,t,n,r,o){return RE(),PE(o),t.flags|=256,jO(e,t,n,r),t.child}var GO,KO,QO,ZO,XO={dehydrated:null,treeContext:null,retryLane:0};function JO(e){return{baseLanes:e,cachePool:null,transitions:null}}function eT(e,t,n){var r,o=t.pendingProps,i=vA.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),$C(vA,1&i),null===e)return AE(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,a?(o=t.mode,a=t.child,s={mode:"hidden",children:s},1&o||null===a?a=JN(s,o,0,null):(a.childLanes=0,a.pendingProps=s),e=XN(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=JO(n),t.memoizedState=XO,e):tT(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,nT(e,t,a,r=AO(Error(kx(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=JN({mode:"visible",children:r.children},o,0,null),(i=XN(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&zE(t,e.child,null,a),t.child.memoizedState=JO(a),t.memoizedState=XO,i);if(!(1&t.mode))return nT(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,nT(e,t,a,r=AO(i=Error(kx(419)),r,void 0))}if(s=0!==(a&e.childLanes),IO||s){if(null!==(r=HT)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,XE(e,o),yN(r,e,o,-1))}return PN(),nT(e,t,a,r=AO(Error(kx(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=$N.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,wE=AC(o.nextSibling),xE=t,kE=!0,_E=null,null!==e&&(dE[fE++]=pE,dE[fE++]=gE,dE[fE++]=hE,pE=e.id,gE=e.overflow,hE=t),t=tT(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(a){a=o.fallback,s=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=QN(i,l)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?a=QN(r,a):(a=XN(a,s,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,s=null===(s=e.child.memoizedState)?JO(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=XO,o}return e=(a=e.child).sibling,o=QN(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function tT(e,t){return(t=JN({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function nT(e,t,n,r){return null!==r&&PE(r),zE(t,e.child,null,n),(e=tT(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rT(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),HE(e.return,t,n)}function oT(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function iT(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(jO(e,t,r.children,n),2&(r=vA.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rT(e,n,t);else if(19===e.tag)rT(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($C(vA,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===bA(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),oT(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===bA(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}oT(t,!0,n,null,i);break;case"together":oT(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function aT(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sT(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),JT|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(kx(153));if(null!==t.child){for(n=QN(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=QN(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function lT(e,t){if(!kE)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function cT(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function uT(e,t,n){var r=t.pendingProps;switch(yE(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cT(t),null;case 1:case 17:return QC(t.type)&&ZC(),cT(t),null;case 3:return r=t.stateNode,pA(),WC(YC),WC(HC),xA(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(TE(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==_E&&(_N(_E),_E=null))),KO(e,t),cT(t),null;case 5:mA(t);var o=fA(dA.current);if(n=t.type,null!==e&&null!=t.stateNode)QO(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(kx(166));return cT(t),null}if(e=fA(cA.current),TE(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[NC]=t,r[RC]=i,e=!!(1&t.mode),n){case"dialog":rC("cancel",r),rC("close",r);break;case"iframe":case"object":case"embed":rC("load",r);break;case"video":case"audio":for(o=0;o<JS.length;o++)rC(JS[o],r);break;case"source":rC("error",r);break;case"img":case"image":case"link":rC("error",r),rC("load",r);break;case"details":rC("toggle",r);break;case"input":pw(r,i),rC("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},rC("invalid",r);break;case"textarea":kw(r,i),rC("invalid",r)}for(var a in Iw(n,i),o=null,i)if(i.hasOwnProperty(a)){var s=i[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&mC(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&mC(r.textContent,s,e),o=["children",""+s]):Cx.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&rC("scroll",r)}switch(n){case"input":uw(r),vw(r,i,!0);break;case"textarea":uw(r),Sw(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=vC)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Cw(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[NC]=t,e[RC]=r,GO(e,t,!1,!1),t.stateNode=e;e:{switch(a=jw(n,r),n){case"dialog":rC("cancel",e),rC("close",e),o=r;break;case"iframe":case"object":case"embed":rC("load",e),o=r;break;case"video":case"audio":for(o=0;o<JS.length;o++)rC(JS[o],e);o=r;break;case"source":rC("error",e),o=r;break;case"img":case"image":case"link":rC("error",e),rC("load",e),o=r;break;case"details":rC("toggle",e),o=r;break;case"input":pw(e,r),o=hw(e,r),rC("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=tw({},r,{value:void 0}),rC("invalid",e);break;case"textarea":kw(e,r),o=ww(e,r),rC("invalid",e)}for(i in Iw(n,o),s=o)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?Lw(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&Tw(e,l):"children"===i?"string"==typeof l?("textarea"!==n||""!==l)&&Nw(e,l):"number"==typeof l&&Nw(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Cx.hasOwnProperty(i)?null!=l&&"onScroll"===i&&rC("scroll",e):null!=l&&jx(e,i,l,a))}switch(n){case"input":uw(e),vw(e,r,!1);break;case"textarea":uw(e),Sw(e);break;case"option":null!=r.value&&e.setAttribute("value",""+lw(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?xw(e,!!r.multiple,i,!1):null!=r.defaultValue&&xw(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=vC)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return cT(t),null;case 6:if(e&&null!=t.stateNode)ZO(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(kx(166));if(n=fA(dA.current),fA(cA.current),TE(t)){if(r=t.stateNode,n=t.memoizedProps,r[NC]=t,(i=r.nodeValue!==n)&&null!==(e=xE))switch(e.tag){case 3:mC(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&mC(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[NC]=t,t.stateNode=r}return cT(t),null;case 13:if(WC(vA),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(kE&&null!==wE&&1&t.mode&&!(128&t.flags))NE(),RE(),t.flags|=98560,i=!1;else if(i=TE(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(kx(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(kx(317));i[NC]=t}else RE(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;cT(t),i=!1}else null!==_E&&(_N(_E),_E=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&vA.current?0===ZT&&(ZT=3):PN())),null!==t.updateQueue&&(t.flags|=4),cT(t),null);case 4:return pA(),KO(e,t),null===e&&aC(t.stateNode.containerInfo),cT(t),null;case 10:return VE(t.type._context),cT(t),null;case 19:if(WC(vA),null===(i=t.memoizedState))return cT(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)lT(i,!1);else{if(0!==ZT||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=bA(e))){for(t.flags|=128,lT(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $C(vA,1&vA.current|2),t.child}e=e.sibling}null!==i.tail&&gk()>iN&&(t.flags|=128,r=!0,lT(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=bA(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),lT(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!kE)return cT(t),null}else 2*gk()-i.renderingStartTime>iN&&1073741824!==n&&(t.flags|=128,r=!0,lT(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=gk(),t.sibling=null,n=vA.current,$C(vA,r?1&n|2:1&n),t):(cT(t),null);case 22:case 23:return ON(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&KT)&&(cT(t),6&t.subtreeFlags&&(t.flags|=8192)):cT(t),null;case 24:case 25:return null}throw Error(kx(156,t.tag))}function dT(e,t){switch(yE(t),t.tag){case 1:return QC(t.type)&&ZC(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return pA(),WC(YC),WC(HC),xA(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return mA(t),null;case 13:if(WC(vA),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(kx(340));RE()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return WC(vA),null;case 4:return pA(),null;case 10:return VE(t.type._context),null;case 22:case 23:return ON(),null;default:return null}}GO=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},KO=function(){},QO=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fA(cA.current);var i,a=null;switch(n){case"input":o=hw(e,o),r=hw(e,r),a=[];break;case"select":o=tw({},o,{value:void 0}),r=tw({},r,{value:void 0}),a=[];break;case"textarea":o=ww(e,o),r=ww(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=vC)}for(c in Iw(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Cx.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Cx.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&rC("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},ZO=function(e,t,n,r){n!==r&&(t.flags|=4)};var fT=!1,hT=!1,pT="function"==typeof WeakSet?WeakSet:Set,gT=null;function mT(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){qN(e,t,r)}else n.current=null}function vT(e,t,n){try{n()}catch(r){qN(e,t,r)}}var bT=!1;function yT(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&vT(t,n,i)}o=o.next}while(o!==r)}}function xT(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wT(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function kT(e){var t=e.alternate;null!==t&&(e.alternate=null,kT(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[NC],delete t[RC],delete t[MC],delete t[LC],delete t[DC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _T(e){return 5===e.tag||3===e.tag||4===e.tag}function ST(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_T(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function CT(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=vC));else if(4!==r&&null!==(e=e.child))for(CT(e,t,n),e=e.sibling;null!==e;)CT(e,t,n),e=e.sibling}function ET(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ET(e,t,n),e=e.sibling;null!==e;)ET(e,t,n),e=e.sibling}var AT=null,OT=!1;function TT(e,t,n){for(n=n.child;null!==n;)NT(e,t,n),n=n.sibling}function NT(e,t,n){if(_k&&"function"==typeof _k.onCommitFiberUnmount)try{_k.onCommitFiberUnmount(kk,n)}catch(s){}switch(n.tag){case 5:hT||mT(n,t);case 6:var r=AT,o=OT;AT=null,TT(e,t,n),OT=o,null!==(AT=r)&&(OT?(e=AT,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):AT.removeChild(n.stateNode));break;case 18:null!==AT&&(OT?(e=AT,n=n.stateNode,8===e.nodeType?EC(e.parentNode,n):1===e.nodeType&&EC(e,n),a_(e)):EC(AT,n.stateNode));break;case 4:r=AT,o=OT,AT=n.stateNode.containerInfo,OT=!0,TT(e,t,n),AT=r,OT=o;break;case 0:case 11:case 14:case 15:if(!hT&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&vT(n,t,a),o=o.next}while(o!==r)}TT(e,t,n);break;case 1:if(!hT&&(mT(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){qN(n,t,s)}TT(e,t,n);break;case 21:TT(e,t,n);break;case 22:1&n.mode?(hT=(r=hT)||null!==n.memoizedState,TT(e,t,n),hT=r):TT(e,t,n);break;default:TT(e,t,n)}}function RT(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new pT),t.forEach(function(t){var r=VN.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function PT(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:AT=s.stateNode,OT=!1;break e;case 3:case 4:AT=s.stateNode.containerInfo,OT=!0;break e}s=s.return}if(null===AT)throw Error(kx(160));NT(i,a,o),AT=null,OT=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(c){qN(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)MT(t,e),t=t.sibling}function MT(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(PT(t,e),LT(e),4&r){try{yT(3,e,e.return),xT(3,e)}catch(g){qN(e,e.return,g)}try{yT(5,e,e.return)}catch(g){qN(e,e.return,g)}}break;case 1:PT(t,e),LT(e),512&r&&null!==n&&mT(n,n.return);break;case 5:if(PT(t,e),LT(e),512&r&&null!==n&&mT(n,n.return),32&e.flags){var o=e.stateNode;try{Nw(o,"")}catch(g){qN(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&gw(o,i),jw(s,a);var c=jw(s,i);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?Lw(o,d):"dangerouslySetInnerHTML"===u?Tw(o,d):"children"===u?Nw(o,d):jx(o,u,d,c)}switch(s){case"input":mw(o,i);break;case"textarea":_w(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?xw(o,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?xw(o,!!i.multiple,i.defaultValue,!0):xw(o,!!i.multiple,i.multiple?[]:"",!1))}o[RC]=i}catch(g){qN(e,e.return,g)}}break;case 6:if(PT(t,e),LT(e),4&r){if(null===e.stateNode)throw Error(kx(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){qN(e,e.return,g)}}break;case 3:if(PT(t,e),LT(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{a_(t.containerInfo)}catch(g){qN(e,e.return,g)}break;case 4:default:PT(t,e),LT(e);break;case 13:PT(t,e),LT(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(oN=gk())),4&r&&RT(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(hT=(c=hT)||u,PT(t,e),hT=c):PT(t,e),LT(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(gT=e,u=e.child;null!==u;){for(d=gT=u;null!==gT;){switch(h=(f=gT).child,f.tag){case 0:case 11:case 14:case 15:yT(4,f,f.return);break;case 1:mT(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){qN(r,n,g)}}break;case 5:mT(f,f.return);break;case 22:if(null!==f.memoizedState){zT(d);continue}}null!==h?(h.return=f,gT=h):zT(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=Mw("display",a))}catch(g){qN(e,e.return,g)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){qN(e,e.return,g)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:PT(t,e),LT(e),4&r&&RT(e);case 21:}}function LT(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(_T(n)){var r=n;break e}n=n.return}throw Error(kx(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Nw(o,""),r.flags&=-33),ET(e,ST(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;CT(e,ST(e),i);break;default:throw Error(kx(161))}}catch(a){qN(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function DT(e,t,n){gT=e,IT(e)}function IT(e,t,n){for(var r=!!(1&e.mode);null!==gT;){var o=gT,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||fT;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||hT;s=fT;var c=hT;if(fT=a,(hT=l)&&!c)for(gT=o;null!==gT;)l=(a=gT).child,22===a.tag&&null!==a.memoizedState?BT(o):null!==l?(l.return=a,gT=l):BT(o);for(;null!==i;)gT=i,IT(i),i=i.sibling;gT=o,fT=s,hT=c}jT(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,gT=i):jT(e)}}function jT(e){for(;null!==gT;){var t=gT;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:hT||xT(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!hT)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:yO(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&sA(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}sA(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&a_(d)}}}break;default:throw Error(kx(163))}hT||512&t.flags&&wT(t)}catch(f){qN(t,t.return,f)}}if(t===e){gT=null;break}if(null!==(n=t.sibling)){n.return=t.return,gT=n;break}gT=t.return}}function zT(e){for(;null!==gT;){var t=gT;if(t===e){gT=null;break}var n=t.sibling;if(null!==n){n.return=t.return,gT=n;break}gT=t.return}}function BT(e){for(;null!==gT;){var t=gT;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xT(4,t)}catch(l){qN(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){qN(t,o,l)}}var i=t.return;try{wT(t)}catch(l){qN(t,i,l)}break;case 5:var a=t.return;try{wT(t)}catch(l){qN(t,a,l)}}}catch(l){qN(t,t.return,l)}if(t===e){gT=null;break}var s=t.sibling;if(null!==s){s.return=t.return,gT=s;break}gT=t.return}}var FT,qT=Math.ceil,UT=zx.ReactCurrentDispatcher,WT=zx.ReactCurrentOwner,$T=zx.ReactCurrentBatchConfig,VT=0,HT=null,YT=null,GT=0,KT=0,QT=UC(0),ZT=0,XT=null,JT=0,eN=0,tN=0,nN=null,rN=null,oN=0,iN=1/0,aN=null,sN=!1,lN=null,cN=null,uN=!1,dN=null,fN=0,hN=0,pN=null,gN=-1,mN=0;function vN(){return 6&VT?gk():-1!==gN?gN:gN=gk()}function bN(e){return 1&e.mode?2&VT&&0!==GT?GT&-GT:null!==ME.transition?(0===mN&&(mN=Mk()),mN):0!==(e=jk)?e:e=void 0===(e=window.event)?16:p_(e.type):1}function yN(e,t,n,r){if(50<hN)throw hN=0,pN=null,Error(kx(185));Dk(e,n,r),2&VT&&e===HT||(e===HT&&(!(2&VT)&&(eN|=n),4===ZT&&SN(e,GT)),xN(e,r),1===n&&0===VT&&!(1&t.mode)&&(iN=gk()+500,rE&&aE()))}function xN(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Sk(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Rk(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=Nk(e,e===HT?GT:0);if(0===r)null!==n&&fk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&fk(n),1===t)0===e.tag?function(e){rE=!0,iE(e)}(CN.bind(null,e)):iE(CN.bind(null,e)),SC(function(){!(6&VT)&&aE()}),n=null;else{switch(zk(r)){case 1:n=vk;break;case 4:n=bk;break;case 16:default:n=yk;break;case 536870912:n=wk}n=HN(n,wN.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wN(e,t){if(gN=-1,mN=0,6&VT)throw Error(kx(327));var n=e.callbackNode;if(BN()&&e.callbackNode!==n)return null;var r=Nk(e,e===HT?GT:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=MN(e,r);else{t=r;var o=VT;VT|=2;var i=RN();for(HT===e&&GT===t||(aN=null,iN=gk()+500,TN(e,t));;)try{DN();break}catch(s){NN(e,s)}$E(),UT.current=i,VT=o,null!==YT?t=0:(HT=null,GT=0,t=ZT)}if(0!==t){if(2===t&&(0!==(o=Pk(e))&&(r=o,t=kN(e,o))),1===t)throw n=XT,TN(e,0),SN(e,r),xN(e,gk()),n;if(6===t)SN(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!CS(i(),o))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=MN(e,r),2===t&&(i=Pk(e),0!==i&&(r=i,t=kN(e,i))),1!==t)))throw n=XT,TN(e,0),SN(e,r),xN(e,gk()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(kx(345));case 2:case 5:zN(e,rN,aN);break;case 3:if(SN(e,r),(130023424&r)===r&&10<(t=oN+500-gk())){if(0!==Nk(e,0))break;if(((o=e.suspendedLanes)&r)!==r){vN(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=wC(zN.bind(null,e,rN,aN),t);break}zN(e,rN,aN);break;case 4:if(SN(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Sk(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=gk()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qT(r/1960))-r)){e.timeoutHandle=wC(zN.bind(null,e,rN,aN),r);break}zN(e,rN,aN);break;default:throw Error(kx(329))}}}return xN(e,gk()),e.callbackNode===n?wN.bind(null,e):null}function kN(e,t){var n=nN;return e.current.memoizedState.isDehydrated&&(TN(e,t).flags|=256),2!==(e=MN(e,t))&&(t=rN,rN=n,null!==t&&_N(t)),e}function _N(e){null===rN?rN=e:rN.push.apply(rN,e)}function SN(e,t){for(t&=~tN,t&=~eN,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sk(t),r=1<<n;e[n]=-1,t&=~r}}function CN(e){if(6&VT)throw Error(kx(327));BN();var t=Nk(e,0);if(!(1&t))return xN(e,gk()),null;var n=MN(e,t);if(0!==e.tag&&2===n){var r=Pk(e);0!==r&&(t=r,n=kN(e,r))}if(1===n)throw n=XT,TN(e,0),SN(e,t),xN(e,gk()),n;if(6===n)throw Error(kx(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zN(e,rN,aN),xN(e,gk()),null}function EN(e,t){var n=VT;VT|=1;try{return e(t)}finally{0===(VT=n)&&(iN=gk()+500,rE&&aE())}}function AN(e){null!==dN&&0===dN.tag&&!(6&VT)&&BN();var t=VT;VT|=1;var n=$T.transition,r=jk;try{if($T.transition=null,jk=1,e)return e()}finally{jk=r,$T.transition=n,!(6&(VT=t))&&aE()}}function ON(){KT=QT.current,WC(QT)}function TN(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,kC(n)),null!==YT)for(n=YT.return;null!==n;){var r=n;switch(yE(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ZC();break;case 3:pA(),WC(YC),WC(HC),xA();break;case 5:mA(r);break;case 4:pA();break;case 13:case 19:WC(vA);break;case 10:VE(r.type._context);break;case 22:case 23:ON()}n=n.return}if(HT=e,YT=e=QN(e.current,null),GT=KT=t,ZT=0,XT=null,tN=eN=JT=0,rN=nN=null,null!==KE){for(t=0;t<KE.length;t++)if(null!==(r=(n=KE[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}KE=null}return e}function NN(e,t){for(;;){var n=YT;try{if($E(),wA.current=gO,AA){for(var r=SA.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}AA=!1}if(_A=0,EA=CA=SA=null,OA=!1,TA=0,WT.current=null,null===n||null===n.return){ZT=1,XT=t,YT=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=GT,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=MO(a);if(null!==h){h.flags&=-257,LO(h,a,s,0,t),1&h.mode&&PO(i,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var g=new Set;g.add(l),t.updateQueue=g}else p.add(l);break e}if(!(1&t)){PO(i,c,t),PN();break e}l=Error(kx(426))}else if(kE&&1&s.mode){var m=MO(a);if(null!==m){!(65536&m.flags)&&(m.flags|=256),LO(m,a,s,0,t),PE(EO(l,s));break e}}i=l=EO(l,s),4!==ZT&&(ZT=2),null===nN?nN=[i]:nN.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,iA(i,NO(0,l,t));break e;case 1:s=l;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==cN&&cN.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,iA(i,RO(i,s,t));break e}}i=i.return}while(null!==i)}jN(n)}catch(y){t=y,YT===n&&null!==n&&(YT=n=n.return);continue}break}}function RN(){var e=UT.current;return UT.current=gO,null===e?gO:e}function PN(){0!==ZT&&3!==ZT&&2!==ZT||(ZT=4),null===HT||!(268435455&JT)&&!(268435455&eN)||SN(HT,GT)}function MN(e,t){var n=VT;VT|=2;var r=RN();for(HT===e&&GT===t||(aN=null,TN(e,t));;)try{LN();break}catch(OV){NN(e,OV)}if($E(),VT=n,UT.current=r,null!==YT)throw Error(kx(261));return HT=null,GT=0,ZT}function LN(){for(;null!==YT;)IN(YT)}function DN(){for(;null!==YT&&!hk();)IN(YT)}function IN(e){var t=FT(e.alternate,e,KT);e.memoizedProps=e.pendingProps,null===t?jN(e):YT=t,WT.current=null}function jN(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=dT(n,t)))return n.flags&=32767,void(YT=n);if(null===e)return ZT=6,void(YT=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=uT(n,t,KT)))return void(YT=n);if(null!==(t=t.sibling))return void(YT=t);YT=t=e}while(null!==t);0===ZT&&(ZT=5)}function zN(e,t,n){var r=jk,o=$T.transition;try{$T.transition=null,jk=1,function(e,t,n,r){do{BN()}while(null!==dN);if(6&VT)throw Error(kx(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(kx(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Sk(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===HT&&(YT=HT=null,GT=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||uN||(uN=!0,HN(yk,function(){return BN(),null})),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=$T.transition,$T.transition=null;var a=jk;jk=1;var s=VT;VT|=4,WT.current=null,function(e,t){if(bC=l_,RS(e=NS())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(x){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(s=a+o),d!==i||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(yC={focusedElem:e,selectionRange:n},l_=!1,gT=t;null!==gT;)if(e=(t=gT).child,1028&t.subtreeFlags&&null!==e)e.return=t,gT=e;else for(;null!==gT;){t=gT;try{var p=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var g=p.memoizedProps,m=p.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:yO(t.type,g),m);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(kx(163))}}catch(x){qN(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,gT=e;break}gT=t.return}p=bT,bT=!1}(e,n),MT(n,e),PS(yC),l_=!!bC,yC=bC=null,e.current=n,DT(n),pk(),VT=s,jk=a,$T.transition=i}else e.current=n;if(uN&&(uN=!1,dN=e,fN=o),i=e.pendingLanes,0===i&&(cN=null),function(e){if(_k&&"function"==typeof _k.onCommitFiberRoot)try{_k.onCommitFiberRoot(kk,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),xN(e,gk()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(sN)throw sN=!1,e=lN,lN=null,e;!!(1&fN)&&0!==e.tag&&BN(),i=e.pendingLanes,1&i?e===pN?hN++:(hN=0,pN=e):hN=0,aE()}(e,t,n,r)}finally{$T.transition=o,jk=r}return null}function BN(){if(null!==dN){var e=zk(fN),t=$T.transition,n=jk;try{if($T.transition=null,jk=16>e?16:e,null===dN)var r=!1;else{if(e=dN,dN=null,fN=0,6&VT)throw Error(kx(331));var o=VT;for(VT|=4,gT=e.current;null!==gT;){var i=gT,a=i.child;if(16&gT.flags){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(gT=c;null!==gT;){var u=gT;switch(u.tag){case 0:case 11:case 15:yT(8,u,i)}var d=u.child;if(null!==d)d.return=u,gT=d;else for(;null!==gT;){var f=(u=gT).sibling,h=u.return;if(kT(u),u===c){gT=null;break}if(null!==f){f.return=h,gT=f;break}gT=h}}}var p=i.alternate;if(null!==p){var g=p.child;if(null!==g){p.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}gT=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,gT=a;else e:for(;null!==gT;){if(2048&(i=gT).flags)switch(i.tag){case 0:case 11:case 15:yT(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,gT=v;break e}gT=i.return}}var b=e.current;for(gT=b;null!==gT;){var y=(a=gT).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,gT=y;else e:for(a=b;null!==gT;){if(2048&(s=gT).flags)try{switch(s.tag){case 0:case 11:case 15:xT(9,s)}}catch(w){qN(s,s.return,w)}if(s===a){gT=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,gT=x;break e}gT=s.return}}if(VT=o,aE(),_k&&"function"==typeof _k.onPostCommitFiberRoot)try{_k.onPostCommitFiberRoot(kk,e)}catch(w){}r=!0}return r}finally{jk=n,$T.transition=t}}return!1}function FN(e,t,n){e=rA(e,t=NO(0,t=EO(n,t),1),1),t=vN(),null!==e&&(Dk(e,1,t),xN(e,t))}function qN(e,t,n){if(3===e.tag)FN(e,e,n);else for(;null!==t;){if(3===t.tag){FN(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===cN||!cN.has(r))){t=rA(t,e=RO(t,e=EO(n,e),1),1),e=vN(),null!==t&&(Dk(t,1,e),xN(t,e));break}}t=t.return}}function UN(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=vN(),e.pingedLanes|=e.suspendedLanes&n,HT===e&&(GT&n)===n&&(4===ZT||3===ZT&&(130023424&GT)===GT&&500>gk()-oN?TN(e,0):tN|=n),xN(e,t)}function WN(e,t){0===t&&(1&e.mode?(t=Ok,!(130023424&(Ok<<=1))&&(Ok=4194304)):t=1);var n=vN();null!==(e=XE(e,t))&&(Dk(e,t,n),xN(e,n))}function $N(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),WN(e,n)}function VN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(kx(314))}null!==r&&r.delete(t),WN(e,n)}function HN(e,t){return dk(e,t)}function YN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function GN(e,t,n,r){return new YN(e,t,n,r)}function KN(e){return!(!(e=e.prototype)||!e.isReactComponent)}function QN(e,t){var n=e.alternate;return null===n?((n=GN(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ZN(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)KN(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case qx:return XN(n.children,o,i,t);case Ux:a=8,o|=8;break;case Wx:return(e=GN(12,n,t,2|o)).elementType=Wx,e.lanes=i,e;case Yx:return(e=GN(13,n,t,o)).elementType=Yx,e.lanes=i,e;case Gx:return(e=GN(19,n,t,o)).elementType=Gx,e.lanes=i,e;case Zx:return JN(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case $x:a=10;break e;case Vx:a=9;break e;case Hx:a=11;break e;case Kx:a=14;break e;case Qx:a=16,r=null;break e}throw Error(kx(130,null==e?e:typeof e,""))}return(t=GN(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function XN(e,t,n,r){return(e=GN(7,e,r,t)).lanes=n,e}function JN(e,t,n,r){return(e=GN(22,e,r,t)).elementType=Zx,e.lanes=n,e.stateNode={isHidden:!1},e}function eR(e,t,n){return(e=GN(6,e,null,t)).lanes=n,e}function tR(e,t,n){return(t=GN(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lk(0),this.expirationTimes=Lk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lk(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rR(e,t,n,r,o,i,a,s,l){return e=new nR(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=GN(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eA(i),e}function oR(e){if(!e)return VC;e:{if(ak(e=e._reactInternals)!==e||1!==e.tag)throw Error(kx(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(QC(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(kx(171))}if(1===e.tag){var n=e.type;if(QC(n))return JC(e,n,t)}return t}function iR(e,t,n,r,o,i,a,s,l){return(e=rR(n,r,!0,e,0,i,0,s,l)).context=oR(null),n=e.current,(i=nA(r=vN(),o=bN(n))).callback=null!=t?t:null,rA(n,i,o),e.current.lanes=o,Dk(e,o,r),xN(e,r),e}function aR(e,t,n,r){var o=t.current,i=vN(),a=bN(o);return n=oR(n),null===t.context?t.context=n:t.pendingContext=n,(t=nA(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=rA(o,t,a))&&(yN(e,o,a,i),oA(e,o,a)),a}function sR(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function lR(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function cR(e,t){lR(e,t),(e=e.alternate)&&lR(e,t)}FT=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||YC.current)IO=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return IO=!1,function(e,t,n){switch(t.tag){case 3:HO(t),RE();break;case 5:gA(t);break;case 1:QC(t.type)&&eE(t);break;case 4:hA(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$C(FE,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?($C(vA,1&vA.current),t.flags|=128,null):0!==(n&t.child.childLanes)?eT(e,t,n):($C(vA,1&vA.current),null!==(e=sT(e,t,n))?e.sibling:null);$C(vA,1&vA.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return iT(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),$C(vA,vA.current),r)break;return null;case 22:case 23:return t.lanes=0,qO(e,t,n)}return sT(e,t,n)}(e,t,n);IO=!!(131072&e.flags)}else IO=!1,kE&&1048576&t.flags&&vE(t,uE,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;aT(e,t),e=t.pendingProps;var o=KC(t,HC.current);YE(t,n),o=MA(null,t,r,e,o,n);var i=LA();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,QC(r)?(i=!0,eE(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,eA(t),o.updater=wO,t.stateNode=o,o._reactInternals=t,CO(t,r,e,n),t=VO(null,t,r,!0,i,n)):(t.tag=0,kE&&i&&bE(t),jO(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(aT(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return KN(e)?1:0;if(null!=e){if((e=e.$$typeof)===Hx)return 11;if(e===Kx)return 14}return 2}(r),e=yO(r,e),o){case 0:t=WO(null,t,r,e,n);break e;case 1:t=$O(null,t,r,e,n);break e;case 11:t=zO(null,t,r,e,n);break e;case 14:t=BO(null,t,r,yO(r.type,e),n);break e}throw Error(kx(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,WO(e,t,r,o=t.elementType===r?o:yO(r,o),n);case 1:return r=t.type,o=t.pendingProps,$O(e,t,r,o=t.elementType===r?o:yO(r,o),n);case 3:e:{if(HO(t),null===e)throw Error(kx(387));r=t.pendingProps,o=(i=t.memoizedState).element,tA(e,t),aA(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=YO(e,t,r,n,o=EO(Error(kx(423)),t));break e}if(r!==o){t=YO(e,t,r,n,o=EO(Error(kx(424)),t));break e}for(wE=AC(t.stateNode.containerInfo.firstChild),xE=t,kE=!0,_E=null,n=BE(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(RE(),r===o){t=sT(e,t,n);break e}jO(e,t,r,n)}t=t.child}return t;case 5:return gA(t),null===e&&AE(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,xC(r,o)?a=null:null!==i&&xC(r,i)&&(t.flags|=32),UO(e,t),jO(e,t,a,n),t.child;case 6:return null===e&&AE(t),null;case 13:return eT(e,t,n);case 4:return hA(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=zE(t,null,r,n):jO(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,zO(e,t,r,o=t.elementType===r?o:yO(r,o),n);case 7:return jO(e,t,t.pendingProps,n),t.child;case 8:case 12:return jO(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,$C(FE,r._currentValue),r._currentValue=a,null!==i)if(CS(i.value,a)){if(i.children===o.children&&!YC.current){t=sT(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){a=i.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=nA(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),HE(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(kx(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),HE(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}jO(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,YE(t,n),r=r(o=GE(o)),t.flags|=1,jO(e,t,r,n),t.child;case 14:return o=yO(r=t.type,t.pendingProps),BO(e,t,r,o=yO(r.type,o),n);case 15:return FO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yO(r,o),aT(e,t),t.tag=1,QC(r)?(e=!0,eE(t)):e=!1,YE(t,n),_O(t,r,o),CO(t,r,o,n),VO(null,t,r,!0,e,n);case 19:return iT(e,t,n);case 22:return qO(e,t,n)}throw Error(kx(156,t.tag))};var uR="function"==typeof reportError?reportError:function(e){console.error(e)};function dR(e){this._internalRoot=e}function fR(e){this._internalRoot=e}function hR(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function pR(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function gR(){}function mR(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=sR(a);s.call(e)}}aR(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=sR(a);i.call(e)}}var a=iR(t,r,e,0,null,!1,0,"",gR);return e._reactRootContainer=a,e[PC]=a.current,aC(8===e.nodeType?e.parentNode:e),AN(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=sR(l);s.call(e)}}var l=rR(e,0,!1,null,0,!1,0,"",gR);return e._reactRootContainer=l,e[PC]=l.current,aC(8===e.nodeType?e.parentNode:e),AN(function(){aR(t,l,n,r)}),l}(n,t,e,o,r);return sR(a)}fR.prototype.render=dR.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(kx(409));aR(e,t,null,null)},fR.prototype.unmount=dR.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;AN(function(){aR(null,e,null,null)}),t[PC]=null}},fR.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zk.length&&0!==t&&t<Zk[n].priority;n++);Zk.splice(n,0,e),0===n&&t_(e)}},Bk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tk(t.pendingLanes);0!==n&&(Ik(t,1|n),xN(t,gk()),!(6&VT)&&(iN=gk()+500,aE()))}break;case 13:AN(function(){var t=XE(e,1);if(null!==t){var n=vN();yN(t,e,1,n)}}),cR(e,1)}},Fk=function(e){if(13===e.tag){var t=XE(e,134217728);if(null!==t)yN(t,e,134217728,vN());cR(e,134217728)}},qk=function(e){if(13===e.tag){var t=bN(e),n=XE(e,t);if(null!==n)yN(n,e,t,vN());cR(e,t)}},Uk=function(){return jk},Wk=function(e,t){var n=jk;try{return jk=e,t()}finally{jk=n}},Fw=function(e,t,n){switch(t){case"input":if(mw(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=BC(r);if(!o)throw Error(kx(90));dw(r),mw(r,o)}}}break;case"textarea":_w(e,n);break;case"select":null!=(t=n.value)&&xw(e,!!n.multiple,t,!1)}},Hw=EN,Yw=AN;var vR,bR={usingClientEntryPoint:!1,Events:[jC,zC,BC,$w,Vw,EN]},yR={findFiberByHostInstance:IC,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xR={bundleType:yR.bundleType,version:yR.version,rendererPackageName:yR.rendererPackageName,rendererConfig:yR.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zx.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ck(e))?null:e.stateNode},findFiberByHostInstance:yR.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wR=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wR.isDisabled&&wR.supportsFiber)try{kk=wR.inject(xR),_k=wR}catch(Ow){}}vx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bR,vx.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!hR(t))throw Error(kx(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Fx,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},vx.createRoot=function(e,t){if(!hR(e))throw Error(kx(299));var n=!1,r="",o=uR;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=rR(e,1,!1,null,0,n,0,r,o),e[PC]=t.current,aC(8===e.nodeType?e.parentNode:e),new dR(t)},vx.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(kx(188));throw e=Object.keys(e).join(","),Error(kx(268,e))}return e=null===(e=ck(t))?null:e.stateNode},vx.flushSync=function(e){return AN(e)},vx.hydrate=function(e,t,n){if(!pR(t))throw Error(kx(200));return mR(null,e,t,!0,n)},vx.hydrateRoot=function(e,t,n){if(!hR(e))throw Error(kx(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=uR;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=iR(t,null,e,1,null!=n?n:null,o,0,i,a),e[PC]=t.current,aC(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new fR(t)},vx.render=function(e,t,n){if(!pR(t))throw Error(kx(200));return mR(null,e,t,!1,n)},vx.unmountComponentAtNode=function(e){if(!pR(e))throw Error(kx(40));return!!e._reactRootContainer&&(AN(function(){mR(null,null,e,!1,function(){e._reactRootContainer=null,e[PC]=null})}),!0)},vx.unstable_batchedUpdates=EN,vx.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pR(n))throw Error(kx(200));if(null==e||void 0===e._reactInternals)throw Error(kx(38));return mR(e,t,n,!1,r)},vx.version="18.3.1-next-f1338f8080-20240426",vR=mx,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),vR.exports=vx;const kR=G(mx.exports),_R=S({__proto__:null,default:kR},[mx.exports]),[SR,CR]=De({strict:!1,name:"PortalContext"}),ER="chakra-portal",AR=e=>gc("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),OR=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=K.exports.useState(null),i=K.exports.useRef(null),[,a]=K.exports.useState({});K.exports.useEffect(()=>a({}),[]);const s=CR(),l=$d();lt(()=>{if(!r)return;const e=r.ownerDocument,n=t&&null!=s?s:e.body;if(!n)return;i.current=e.createElement("div"),i.current.className=ER,n.appendChild(i.current),a({});const o=i.current;return()=>{n.contains(o)&&n.removeChild(o)}},[r]);const c=(null==l?void 0:l.zIndex)?gc(AR,{zIndex:null==l?void 0:l.zIndex,children:n}):n;return i.current?mx.exports.createPortal(gc(SR,{value:i.current,children:c}),i.current):gc("span",{ref:e=>{e&&o(e)}})},TR=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=null!=o?o:"undefined"!=typeof window?document.body:void 0,a=K.exports.useMemo(()=>{const e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=ER),e},[o]),[,s]=K.exports.useState({});return lt(()=>s({}),[]),lt(()=>{if(a&&i)return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?mx.exports.createPortal(gc(SR,{value:r?a:null,children:t}),a):null};function NR(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?gc(TR,{containerRef:n,...r}):gc(OR,{...r})}NR.className=ER,NR.selector=".chakra-portal",NR.displayName="Portal";const[RR,PR]=De({name:"ToastOptionsContext",strict:!1}),MR=e=>{const t=K.exports.useSyncExternalStore(px.subscribe,px.getState,px.getState),{motionVariants:n,component:r=jy,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(e=>{const o=t[e];return gc("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:xy(e),children:gc(my,{...i,initial:!1,children:o.map(e=>gc(r,{motionVariants:n,...e},e.id))})},e)});return gc(NR,{...o,children:a})},LR=(DR=rc,function({children:e,theme:t=DR,toastOptions:n,...r}){return mc(Gd,{theme:t,...r,children:[gc(RR,{value:null==n?void 0:n.defaultOptions,children:e}),gc(MR,{...n})]})});var DR;function IR(e){return e.sort((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function jR(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function zR(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const BR="undefined"!=typeof window?K.exports.useLayoutEffect:K.exports.useEffect;var FR=Object.defineProperty,qR=(e,t,n)=>(((e,t,n)=>{t in e?FR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class UR{constructor(){qR(this,"descendants",new Map),qR(this,"register",e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}}),qR(this,"unregister",e=>{this.descendants.delete(e);const t=IR(Array.from(this.descendants.keys()));this.assignIndex(t)}),qR(this,"destroy",()=>{this.descendants.clear()}),qR(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),qR(this,"count",()=>this.descendants.size),qR(this,"enabledCount",()=>this.enabledValues().length),qR(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),qR(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),qR(this,"item",e=>{if(0!==this.count())return this.values()[e]}),qR(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),qR(this,"first",()=>this.item(0)),qR(this,"firstEnabled",()=>this.enabledItem(0)),qR(this,"last",()=>this.item(this.descendants.size-1)),qR(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),qR(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),qR(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),qR(this,"next",(e,t=!0)=>{const n=jR(e,this.count(),t);return this.item(n)}),qR(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=jR(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)}),qR(this,"prev",(e,t=!0)=>{const n=zR(e,this.count()-1,t);return this.item(n)}),qR(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=zR(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)}),qR(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=IR(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}}function WR(){const[e,t]=De({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const e=K.exports.useRef(new UR);return BR(()=>()=>e.current.destroy()),e.current},e=>{const n=t(),[r,o]=K.exports.useState(-1),i=K.exports.useRef(null);BR(()=>()=>{i.current&&n.unregister(i.current)},[]),BR(()=>{if(!i.current)return;const e=Number(i.current.dataset.index);r==e||Number.isNaN(e)||o(e)});const a=e?n.register(e):n.register;return{descendants:n,index:r,enabledIndex:n.enabledIndexOf(i.current),register:bt(a,i)}}]}const $R={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},VR={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},HR={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},YR={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},GR={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function KR(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return HR;case"left":return VR;case"bottom":return GR;case"top":return YR}}const QR={enter:{duration:.2,ease:$R.easeOut},exit:{duration:.1,ease:$R.easeIn}},ZR=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),XR=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit});const JR=zy(function(e,t){const n=Gy("Badge",e),{className:r,...o}=cr(e);return gc(Dy.span,{ref:t,className:Ie("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});JR.displayName="Badge";const eP=Dy("div");eP.displayName="Box";const[tP,nP]=De({strict:!1,name:"ButtonGroupContext"});function rP(e){const{children:t,className:n,...r}=e,o=K.exports.isValidElement(t)?K.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ie("chakra-button__icon",n);return gc(Dy.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}function oP(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=gc(ex,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=Ie("chakra-button__spinner",i),c="start"===n?"marginEnd":"marginStart",u=K.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,c,r]);return gc(Dy.div,{className:l,...s,__css:u,children:o})}rP.displayName="ButtonIcon",oP.displayName="ButtonSpinner";const iP=zy((e,t)=>{const n=nP(),r=Gy("Button",{...n,...e}),{isDisabled:o=(null==n?void 0:n.isDisabled),isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:p="start",className:g,as:m,shouldWrapChildren:v,...b}=cr(e),y=K.exports.useMemo(()=>{const e={...null==r?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:e}}},[r,n]),{ref:x,type:w}=function(e){const[t,n]=K.exports.useState(!e);return{ref:K.exports.useCallback(e=>{e&&n("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(m),k={rightIcon:c,leftIcon:l,iconSpacing:d,children:s,shouldWrapChildren:v};return mc(Dy.button,{disabled:o||i,ref:yt(t,x),as:m,type:null!=f?f:w,"data-active":M(a),"data-loading":M(i),__css:y,className:Ie("chakra-button",g),...b,children:[i&&"start"===p&&gc(oP,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:h}),i?u||gc(Dy.span,{opacity:0,children:gc(aP,{...k})}):gc(aP,{...k}),i&&"end"===p&&gc(oP,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:h})]})});function aP(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?mc("span",{style:{display:"contents"},children:[t&&gc(rP,{marginEnd:o,children:t}),r,n&&gc(rP,{marginStart:o,children:n})]}):mc(pc,{children:[t&&gc(rP,{marginEnd:o,children:t}),r,n&&gc(rP,{marginStart:o,children:n})]})}iP.displayName="Button";const sP={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},lP={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},cP=zy(function(e,t){const{size:n,colorScheme:r,variant:o,className:i,spacing:a="0.5rem",isAttached:s,isDisabled:l,orientation:c="horizontal",...u}=e,d=Ie("chakra-button__group",i),f=K.exports.useMemo(()=>({size:n,colorScheme:r,variant:o,isDisabled:l}),[n,r,o,l]);let h={display:"inline-flex",...s?sP[c]:lP[c](a)};const p="vertical"===c;return gc(tP,{value:f,children:gc(Dy.div,{ref:t,role:"group",__css:h,className:d,"data-attached":s?"":void 0,"data-orientation":c,flexDir:p?"column":void 0,...u})})});cP.displayName="ButtonGroup";const uP=zy((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=n||r,l=K.exports.isValidElement(s)?K.exports.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return gc(iP,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...a,children:l})});uP.displayName="IconButton";const dP=Dy("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});dP.displayName="Center";const fP={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};zy(function(e,t){const{axis:n="both",...r}=e;return gc(Dy.div,{ref:t,__css:fP[n],...r,position:"absolute"})});const[hP,pP]=De({name:"CheckboxGroupContext",strict:!1});function gP(e){return gc(Dy.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:gc("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function mP(e){return gc(Dy.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:gc("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function vP(e){const{isIndeterminate:t,isChecked:n,...r}=e,o=t?mP:gP;return n||t?gc(Dy.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:gc(o,{...r})}):null}var bP=!1,yP=null,xP=!1,wP=!1,kP=new Set;function _P(e,t){kP.forEach(n=>n(e,t))}var SP="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function CP(e){var t;xP=!0,(t=e).metaKey||!SP&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(yP="keyboard",_P("keyboard",e))}function EP(e){if(yP="pointer","mousedown"===e.type||"pointerdown"===e.type){xP=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;_P("pointer",e)}}function AP(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(xP=!0,yP="virtual")}function OP(e){e.target!==window&&e.target!==document&&(e.target instanceof Element&&e.target.hasAttribute("tabindex")||(xP||wP||(yP="virtual",_P("virtual",e)),xP=!1,wP=!1))}function TP(){xP=!1,wP=!0}function NP(){return"pointer"!==yP}function RP(){if("undefined"==typeof document||bP)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){xP=!0,e.apply(this,t)},document.addEventListener("keydown",CP,!0),document.addEventListener("keyup",CP,!0),document.addEventListener("click",AP,!0),window.addEventListener("focus",OP,!0),window.addEventListener("blur",TP,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",EP,!0),document.addEventListener("pointermove",EP,!0),document.addEventListener("pointerup",EP,!0)):(document.addEventListener("mousedown",EP,!0),document.addEventListener("mousemove",EP,!0),document.addEventListener("mouseup",EP,!0)),bP=!0}function PP(e){RP(),e(NP());const t=()=>e(NP());return kP.add(t),()=>{kP.delete(t)}}const[MP,LP]=De({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[DP,IP]=De({strict:!1,name:"FormControlContext"});const jP=zy(function(e,t){const n=Ky("Form",e),r=cr(e),{getRootProps:o,htmlProps:i,...a}=function(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...a}=e,s=K.exports.useId(),l=t||`field-${s}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[f,h]=K.exports.useState(!1),[p,g]=K.exports.useState(!1),[m,v]=K.exports.useState(!1),b=K.exports.useCallback((e={},t=null)=>({id:d,...e,ref:bt(t,e=>{e&&g(!0)})}),[d]),y=K.exports.useCallback((e={},t=null)=>({...e,ref:t,"data-focus":M(m),"data-disabled":M(o),"data-invalid":M(r),"data-readonly":M(i),id:void 0!==e.id?e.id:c,htmlFor:void 0!==e.htmlFor?e.htmlFor:l}),[l,o,m,r,i,c]),x=K.exports.useCallback((e={},t=null)=>({id:u,...e,ref:bt(t,e=>{e&&h(!0)}),"aria-live":"polite"}),[u]),w=K.exports.useCallback((e={},t=null)=>({...e,...a,ref:t,role:"group","data-focus":M(m),"data-disabled":M(o),"data-invalid":M(r),"data-readonly":M(i)}),[a,o,m,r,i]),k=K.exports.useCallback((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!m,onFocus:()=>v(!0),onBlur:()=>v(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:p,setHasHelpText:g,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:a,getHelpTextProps:b,getErrorMessageProps:x,getRootProps:w,getLabelProps:y,getRequiredIndicatorProps:k}}(r),s=Ie("chakra-form-control",e.className);return gc(DP,{value:a,children:gc(MP,{value:n,children:gc(Dy.div,{...o({},t),className:s,__css:n.container})})})});jP.displayName="FormControl";const zP=zy(function(e,t){const n=IP(),r=LP(),o=Ie("chakra-form__helper-text",e.className);return gc(Dy.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})});function BP(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=FP(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":L(n),"aria-required":L(o),"aria-readonly":L(r)}}function FP(e){var t,n,r;const o=IP(),{id:i,disabled:a,readOnly:s,required:l,isRequired:c,isInvalid:u,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:p,...g}=e,m=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&m.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&m.push(o.helpTextId),{...g,"aria-describedby":m.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(t=null!=a?a:f)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=s?s:d)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=l?l:c)?r:null==o?void 0:o.isRequired,isInvalid:null!=u?u:null==o?void 0:o.isInvalid,onFocus:H(null==o?void 0:o.onFocus,h),onBlur:H(null==o?void 0:o.onBlur,p)}}zP.displayName="FormHelperText";const qP={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function UP(e={}){const t=FP(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:u,isChecked:d,isFocusable:f,onChange:h,isIndeterminate:p,name:g,value:m,tabIndex:v,"aria-label":b,"aria-labelledby":y,"aria-invalid":x,...w}=e,k=Ge(w,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),_=rt(h),S=rt(s),C=rt(l),[E,A]=K.exports.useState(!1),[O,T]=K.exports.useState(!1),[N,R]=K.exports.useState(!1),P=K.exports.useRef(!1);K.exports.useEffect(()=>PP(e=>{P.current=e}),[]);const L=K.exports.useRef(null),[D,I]=K.exports.useState(!0),[j,z]=K.exports.useState(!!u),B=void 0!==d,F=B?d:j,q=K.exports.useCallback(e=>{r||n?e.preventDefault():(B||z(F?e.currentTarget.checked:!!p||e.currentTarget.checked),null==_||_(e))},[r,n,F,B,p,_]);lt(()=>{L.current&&(L.current.indeterminate=Boolean(p))},[p]),ct(()=>{n&&A(!1)},[n,A]),lt(()=>{const e=L.current;if(!(null==e?void 0:e.form))return;const t=()=>{z(!!u)};return e.form.addEventListener("reset",t),()=>{var n;return null==(n=e.form)?void 0:n.removeEventListener("reset",t)}},[]);const U=n&&!f,W=K.exports.useCallback(e=>{" "===e.key&&R(!0)},[R]),$=K.exports.useCallback(e=>{" "===e.key&&R(!1)},[R]);lt(()=>{if(!L.current)return;L.current.checked!==F&&z(L.current.checked)},[L.current]);const V=K.exports.useCallback((e={},t=null)=>({...e,ref:t,"data-active":M(N),"data-hover":M(O),"data-checked":M(F),"data-focus":M(E),"data-focus-visible":M(E&&P.current),"data-indeterminate":M(p),"data-disabled":M(n),"data-invalid":M(i),"data-readonly":M(r),"aria-hidden":!0,onMouseDown:H(e.onMouseDown,e=>{E&&e.preventDefault(),R(!0)}),onMouseUp:H(e.onMouseUp,()=>R(!1)),onMouseEnter:H(e.onMouseEnter,()=>T(!0)),onMouseLeave:H(e.onMouseLeave,()=>T(!1))}),[N,F,n,E,O,p,i,r]),Y=K.exports.useCallback((e={},t=null)=>({...e,ref:t,"data-active":M(N),"data-hover":M(O),"data-checked":M(F),"data-focus":M(E),"data-focus-visible":M(E&&P.current),"data-indeterminate":M(p),"data-disabled":M(n),"data-invalid":M(i),"data-readonly":M(r)}),[N,F,n,E,O,p,i,r]),G=K.exports.useCallback((e={},t=null)=>({...k,...e,ref:bt(t,e=>{e&&I("LABEL"===e.tagName)}),onClick:H(e.onClick,()=>{var e;D||(null==(e=L.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=L.current)||e.focus({preventScroll:!0})}))}),"data-disabled":M(n),"data-checked":M(F),"data-invalid":M(i)}),[k,n,F,i,D]),Q=K.exports.useCallback((e={},t=null)=>({...e,ref:bt(L,t),type:"checkbox",name:g,value:m,id:a,tabIndex:v,onChange:H(e.onChange,q),onBlur:H(e.onBlur,S,()=>A(!1)),onFocus:H(e.onFocus,C,()=>A(!0)),onKeyDown:H(e.onKeyDown,W),onKeyUp:H(e.onKeyUp,$),required:o,checked:F,disabled:U,readOnly:r,"aria-label":b,"aria-labelledby":y,"aria-invalid":x?Boolean(x):i,"aria-describedby":c,"aria-disabled":n,"aria-checked":p?"mixed":F,style:qP}),[g,m,a,v,q,S,C,W,$,o,F,U,r,b,y,x,i,c,n,p]),Z=K.exports.useCallback((e={},t=null)=>({...e,ref:t,onMouseDown:H(e.onMouseDown,WP),"data-disabled":M(n),"data-checked":M(F),"data-invalid":M(i)}),[F,n,i]);return{state:{isInvalid:i,isFocused:E,isChecked:F,isActive:N,isHovered:O,isIndeterminate:p,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:G,getCheckboxProps:V,getIndicatorProps:Y,getInputProps:Q,getLabelProps:Z,htmlProps:k}}function WP(e){e.preventDefault(),e.stopPropagation()}const $P={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},VP={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},HP=Sd({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),YP=Sd({from:{opacity:0},to:{opacity:1}}),GP=Sd({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),KP=zy(function(e,t){const n=pP(),r=Ky("Checkbox",{...n,...e}),o=cr(e),{spacing:i="0.5rem",className:a,children:s,iconColor:l,iconSize:c,icon:u=gc(vP,{}),isChecked:d,isDisabled:f=(null==n?void 0:n.isDisabled),onChange:h,inputProps:p,...g}=o;let m=d;(null==n?void 0:n.value)&&o.value&&(m=n.value.includes(o.value));let v=h;(null==n?void 0:n.onChange)&&o.value&&(v=V(n.onChange,h));const{state:b,getInputProps:y,getCheckboxProps:x,getLabelProps:w,getRootProps:k}=UP({...g,isDisabled:f,isChecked:m,onChange:v}),_=function(e){const[t,n]=K.exports.useState(e),[r,o]=K.exports.useState(!1);return e!==t&&(o(!0),n(e)),r}(b.isChecked),S=K.exports.useMemo(()=>({animation:_?b.isIndeterminate?`${YP} 20ms linear, ${GP} 200ms linear`:`${HP} 200ms linear`:void 0,...r.icon,...Le({fontSize:c,color:l})}),[l,c,_,b.isIndeterminate,r.icon]),C=K.exports.cloneElement(u,{__css:S,isIndeterminate:b.isIndeterminate,isChecked:b.isChecked});return mc(Dy.label,{__css:{...VP,...r.container},className:Ie("chakra-checkbox",a),...k(),children:[gc("input",{className:"chakra-checkbox__input",...y(p,t)}),gc(Dy.span,{__css:{...$P,...r.control},className:"chakra-checkbox__control",...x(),children:C}),s&&gc(Dy.span,{className:"chakra-checkbox__label",...w(),__css:{marginStart:i,...r.label},children:s})]})});function QP(e){return e&&I(e)&&I(e.target)}function ZP(e){const{colorScheme:t,size:n,variant:r,children:o,isDisabled:i}=e,{value:a,onChange:s}=function(e={}){const{defaultValue:t,value:n,onChange:r,isDisabled:o,isNative:i}=e,a=rt(r),[s,l]=at({value:n,defaultValue:t||[],onChange:a}),c=K.exports.useCallback(e=>{if(!s)return;const t=QP(e)?e.target.checked:!s.includes(e),n=QP(e)?e.target.value:e,r=t?[...s,n]:s.filter(e=>String(e)!==String(n));l(r)},[l,s]),u=K.exports.useCallback((e={})=>{const t=i?"checked":"isChecked";return{...e,[t]:s.some(t=>String(e.value)===String(t)),onChange:c}},[c,i,s]);return{value:s,isDisabled:o,onChange:c,setValue:l,getCheckboxProps:u}}(e),l=K.exports.useMemo(()=>({size:n,onChange:s,colorScheme:t,value:a,variant:r,isDisabled:i}),[n,s,t,a,r,i]);return gc(hP,{value:l,children:o})}KP.displayName="Checkbox",ZP.displayName="CheckboxGroup";const XP=zy(function(e,t){const n=Gy("Code",e),{className:r,...o}=cr(e);return gc(Dy.code,{ref:t,className:Ie("chakra-code",e.className),...o,__css:{display:"inline-block",...n}})});XP.displayName="Code";const JP=zy(function(e,t){const{className:n,centerContent:r,...o}=cr(e),i=Gy("Container",e);return gc(Dy.div,{ref:t,className:Ie("chakra-container",n),...o,__css:{...i,...r&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});JP.displayName="Container";const eM=zy(function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:i,borderWidth:a,borderStyle:s,borderColor:l,...c}=Gy("Divider",e),{className:u,orientation:d="horizontal",__css:f,...h}=cr(e),p={vertical:{borderLeftWidth:n||i||a||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||a||"1px",width:"100%"}};return gc(Dy.hr,{ref:t,"aria-orientation":d,...h,__css:{...c,border:"0",borderColor:l,borderStyle:s,...p[d],...f},className:Ie("chakra-divider",u)})});function tM(e){return"function"==typeof e}eM.displayName="Divider";const nM=e=>function(...t){let n=[...t],r=t[t.length-1];var o;return I(o=r)&&tc.every(e=>Object.prototype.hasOwnProperty.call(o,e))&&n.length>1?n=n.slice(0,n.length-1):r=e,function(...e){return t=>e.reduce((e,t)=>t(e),t)}(...n.map(e=>t=>tM(e)?e(t):function(...e){return nt({},...e,oM)}(t,e)))(r)},rM=nM(rc);function oM(e,t,n,r){return(tM(e)||tM(t))&&Object.prototype.hasOwnProperty.call(r,n)?(...n)=>{const r=tM(e)?e(...n):e,o=tM(t)?t(...n):t;return nt({},r,o,oM)}:I(e)&&D(t)||D(e)&&I(t)?t:void 0}nM(oc);const iM=zy(function(e,t){const{direction:n,align:r,justify:o,wrap:i,basis:a,grow:s,shrink:l,...c}=e,u={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:i,flexBasis:a,flexGrow:s,flexShrink:l};return gc(Dy.div,{ref:t,__css:u,...c})});iM.displayName="Flex";var aM={exports:{}};function sM(){}function lM(){}lM.resetWarningCache=sM;aM.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:lM,resetWarningCache:sM};return n.PropTypes=n,n}();var cM="data-focus-lock",uM="data-focus-lock-disabled";function dM(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var fM="undefined"!=typeof window?K.exports.useLayoutEffect:K.exports.useEffect,hM=new WeakMap;function pM(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach(function(e){return dM(e,t)})},(o=K.exports.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return fM(function(){var t=hM.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||dM(e,null)}),r.forEach(function(e){n.has(e)||dM(e,o)})}hM.set(i,e)},[e]),i}var gM={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},mM=function(){return mM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mM.apply(this,arguments)};function vM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 bM(e){return e}function yM(e,t){void 0===t&&(t=bM);var n=[],r=!1;return{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(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function xM(e,t){return void 0===t&&(t=bM),yM(e,t)}function wM(e){void 0===e&&(e={});var t=yM(null);return t.options=mM({async:!0,ssr:!1},e),t}"function"==typeof SuppressedError&&SuppressedError;var kM=function(e){var t=e.sideCar,n=vM(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 gc(r,{...mM({},n)})};kM.isSideCarExport=!0;var _M=xM({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),SM=xM(),CM=xM(),EM=wM({async:!0,ssr:"undefined"!=typeof document}),AM=K.exports.createContext(void 0),OM=[],TM=K.exports.forwardRef(function(e,t){var n,r=K.exports.useState(),o=r[0],i=r[1],a=K.exports.useRef(),s=K.exports.useRef(!1),l=K.exports.useRef(null),c=K.exports.useState({})[1],u=e.children,d=e.disabled,f=void 0!==d&&d,h=e.noFocusGuards,p=void 0!==h&&h,g=e.persistentFocus,m=void 0!==g&&g,v=e.crossFrame,b=void 0===v||v,y=e.autoFocus,x=void 0===y||y;e.allowTextSelection;var w=e.group,k=e.className,_=e.whiteList,S=e.hasPositiveIndices,C=e.shards,E=void 0===C?OM:C,A=e.as,O=void 0===A?"div":A,T=e.lockProps,N=void 0===T?{}:T,R=e.sideCar,P=e.returnFocus,M=void 0!==P&&P,L=e.focusOptions,D=e.onActivation,I=e.onDeactivation,j=K.exports.useState({})[0],z=K.exports.useCallback(function(e){var t=e.captureFocusRestore;if(!l.current){var n,r=null==(n=document)?void 0:n.activeElement;l.current=r,r!==document.body&&(l.current=t(r))}a.current&&D&&D(a.current),s.current=!0,c()},[D]),B=K.exports.useCallback(function(){s.current=!1,I&&I(a.current),c()},[I]),F=K.exports.useCallback(function(e){var t=l.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof M?M(n):M;if(r){var o="object"==typeof r?r:void 0;l.current=null,e?Promise.resolve().then(function(){return n.focus(o)}):n.focus(o)}}},[M]),q=K.exports.useCallback(function(e){s.current&&_M.useMedium(e)},[]),U=SM.useMedium,W=K.exports.useCallback(function(e){a.current!==e&&(a.current=e,i(e))},[]),$=wu(((n={})[uM]=f&&"disabled",n[cM]=w,n),N),V=!0!==p,H=V&&"tail"!==p,Y=pM([t,W]),G=K.exports.useMemo(function(){return{observed:a,shards:E,enabled:!f,get active(){return s.current}}},[f,s,E,a]);return Re.createElement(K.exports.Fragment,null,V&&[gc("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:gM},"guard-first"),S?gc("div",{"data-focus-guard":!0,tabIndex:f?-1:1,style:gM},"guard-nearest"):null],!f&&gc(R,{id:j,sideCar:EM,observed:o,disabled:f,persistentFocus:m,crossFrame:b,autoFocus:x,whiteList:_,shards:E,onActivation:z,onDeactivation:B,returnFocus:F,focusOptions:L,noFocusGuards:p}),Re.createElement(O,wu({ref:Y},$,{className:k,onBlur:U,onFocus:q}),Re.createElement(AM.Provider,{value:G},u)),H&&gc("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:gM}))});TM.propTypes={};const NM=TM;function RM(e,t){return(RM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function PM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,RM(e,t)}function MM(e){return(MM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function LM(e){var t=function(e,t){if("object"!=MM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=MM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==MM(t)?t:t+""}var DM=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},IM=function(e){return Array.isArray(e)?e:[e]},jM=function(e){return Array.isArray(e)?e[0]:e},zM=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},BM=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},FM=function(e,t){return!e||BM(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(zM(e))},qM=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=FM(t,qM.bind(void 0,e));return e.set(t,r),r},UM=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!BM(e))||!!HM(e)&&t(zM(e))}(t,UM.bind(void 0,e));return e.set(t,r),r},WM=function(e){return e.dataset},$M=function(e){return"INPUT"===e.tagName},VM=function(e){return $M(e)&&"radio"===e.type},HM=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},YM=function(e){var t;return Boolean(e&&(null===(t=WM(e))||void 0===t?void 0:t.focusGuard))},GM=function(e){return!YM(e)},KM=function(e){return Boolean(e)},QM=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,i=e.index-t.index;if(o){if(!n)return 1;if(!r)return-1}return o||i},ZM=function(e,t,n){return DM(e).map(function(e,t){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(QM)},XM=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),JM="".concat(XM,", [data-focus-guard]"),eL=function(e,t){return DM((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?JM:XM)?[n]:[],eL(n))},[])},tL=function(e,t){return e.reduce(function(e,n){var r,o=eL(n,t),i=(r=[]).concat.apply(r,o.map(function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?tL([e.contentDocument.body],t):[e]}(e,t)}));return e.concat(i,n.parentNode?DM(n.parentNode.querySelectorAll(XM)).filter(function(e){return e===n}):[])},[])},nL=function(e,t){return DM(e).filter(function(e){return qM(t,e)}).filter(function(e){return function(e){return!(($M(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)})},rL=function(e,t){return void 0===t&&(t=new Map),DM(e).filter(function(e){return UM(t,e)})},oL=function(e,t,n){return ZM(nL(tL(e,n),t),!0,n)},iL=function(e,t){return ZM(nL(tL(e),t),!1)},aL=function(e,t){return nL((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),DM(n).map(function(e){return tL([e])}).reduce(function(e,t){return e.concat(t)},[])),t);var n},sL=function(e,t){return e.shadowRoot?sL(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||DM(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&sL(r,t)}return sL(e,t)})},lL=function(e){return e.parentNode?lL(e.parentNode):e},cL=function(e){return IM(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(cM);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})}(DM(lL(t).querySelectorAll("[".concat(cM,'="').concat(n,'"]:not([').concat(uM,'="disabled"])')))):[t]),e},[])},uL=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?uL(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(OV){return}}(function(){return t.contentWindow.document})?uL(t.contentWindow.document):t}},dL=function(e,t){return void 0===t&&(t=uL(jM(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&cL(e).some(function(e){return sL(e,t)||function(e,t){return Boolean(DM(e.querySelectorAll("iframe")).some(function(e){return function(e,t){return e===t}(e,t)}))}(e,t)})},fL=function(e,t){return VM(e)&&e.name?function(e,t){return t.filter(VM).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e}(e,t):e},hL=function(e){return e[0]&&e.length>1?fL(e[0],e):e[0]},pL=function(e,t){return e.indexOf(fL(t,e))},gL="NEW_FOCUS",mL=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],l=YM(r);if(!(r&&e.indexOf(r)>=0)){var c=void 0!==r?n.indexOf(r):-1,u=o?n.indexOf(o):c,d=o?e.indexOf(o):-1;if(-1===c)return-1!==d?d:gL;if(-1===d)return gL;var f,h,p=c-u,g=n.indexOf(a),m=n.indexOf(s),v=(f=n,h=new Set,f.forEach(function(e){return h.add(fL(e,f))}),f.filter(function(e){return h.has(e)})),b=void 0!==r?v.indexOf(r):-1,y=o?v.indexOf(o):b,x=v.filter(function(e){return e.tabIndex>=0}),w=void 0!==r?x.indexOf(r):-1,k=o?x.indexOf(o):w,_=w>=0&&k>=0?k-w:y-b;if(!p&&d>=0)return d;if(0===t.length)return d;var S=pL(e,t[0]),C=pL(e,t[t.length-1]);return c<=g&&l&&Math.abs(p)>1?C:c>=m&&l&&Math.abs(p)>1?S:p&&Math.abs(_)>1?d:c<=g?C:c>m?S:p?Math.abs(p)>1?d:(i+d+p)%i:void 0}},vL=function(e,t,n){var r,o=e.map(function(e){return e.node}),i=rL(o.filter((r=n,function(e){var t,n=null===(t=WM(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?hL(i):hL(rL(t))},bL=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&bL(e.parentNode.host||e.parentNode,t),t},yL=function(e,t){for(var n=bL(e),r=bL(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},xL=function(e,t,n){var r=IM(e),o=IM(t),i=r[0],a=!1;return o.filter(Boolean).forEach(function(e){a=yL(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=yL(i,e);t&&(a=!a||sL(t,a)?t:yL(t,a))})}),a},wL=function(e,t){return e.reduce(function(e,n){return e.concat(aL(n,t))},[])},kL=function(e,t){var n=uL(IM(e).length>0?document:jM(e).ownerDocument),r=cL(e).filter(GM),o=xL(n||e,e,r),i=new Map,a=iL(r,i),s=a.filter(function(e){var t=e.node;return GM(t)});if(s[0]){var l,c,u,d=iL([o],i).map(function(e){return e.node}),f=(l=d,c=s,u=new Map,c.forEach(function(e){return u.set(e.node,e)}),l.map(function(e){return u.get(e)}).filter(KM)),h=f.map(function(e){return e.node}),p=f.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),g=mL(h,p,d,n,t);if(g===gL){var m=vL(a,p,wL(r,i))||vL(a,h,wL(r,i));return m?{node:m}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===g?g:f[g]}},_L=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},SL=0,CL=!1,EL=function(e,t,n){void 0===n&&(n={});var r=kL(e,t);if(!CL&&r){if(SL>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),CL=!0,void setTimeout(function(){CL=!1},1);SL++,_L(r.node,n.focusOptions),SL--}};function AL(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var OL=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:AL(n),parent:AL(n.parentElement),left:AL(n.previousElementSibling),right:AL(n.nextElementSibling)}),n=n.parentElement;return{element:AL(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,c=0,u=a;c<u.length;c++){var d=u[c],f=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(f&&s.contains(f)){for(var h=null===(n=d.left)||void 0===n?void 0:n.call(d),p=d.current(),g=f.contains(p)?p:void 0,m=null===(r=d.right)||void 0===r?void 0:r.call(d),v=oL([f],l),b=null!==(i=null!==(o=null!=g?g:null==h?void 0:h.nextElementSibling)&&void 0!==o?o:m)&&void 0!==i?i:h;b;){for(var y=0,x=v;y<x.length;y++){var w=x[y];if(null==b?void 0:b.contains(w.node))return w.node}b=b.nextElementSibling}if(v.length)return v[0].node}}}(t)}},TL=function(e,t,n){void 0===t&&(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=IM(t);if(r.every(function(t){return!sL(t,e)}))return console.error("Active element is not contained in the scope"),{};var o=n?oL(r,new Map):iL(r,new Map),i=o.findIndex(function(t){return t.node===e});return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=n(o,r.cycle);i&&_L(i.node,r.focusOptions)}},NL=function(e,t,n){var r,o,i,a,s=(o=e,i=null===(r=t.onlyTabbable)||void 0===r||r,{first:(a=i?oL(IM(o),new Map):iL(IM(o),new Map))[0],last:a[a.length-1]})[n];s&&_L(s.node,t.focusOptions)};function RL(e){setTimeout(e,1)}var PL=function(e){return e&&"current"in e?e.current:e},ML=function(){return document&&document.activeElement===document.body},LL=function(){return ML()||function(e){void 0===e&&(e=document);var t=uL(e);return!!t&&DM(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return sL(e,t)})}()},DL=null,IL=null,jL=function(){return null},zL=null,BL=!1,FL=!1,qL=function(){return!0};function UL(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var WL=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},$L=function(e){return iL(e,new Map)},VL=function(){var e,t,n,r,o,i,a,s=!1;if(DL){var l=DL,c=l.observed,u=l.persistentFocus,d=l.autoFocus,f=l.shards,h=l.crossFrame,p=l.focusOptions,g=l.noFocusGuards,m=c||zL&&zL.portaledElement;if(ML()&&IL&&IL!==document.body&&(!document.body.contains(IL)||!$L([(a=IL).parentNode]).some(function(e){return e.node===a}))){var v=jL();v&&v.focus()}var b=document&&document.activeElement;if(m){var y=[m].concat(f.map(PL).filter(Boolean));if(b&&!function(e){return(DL.whiteList||qL)(e)}(b)||(u||function(){if(!(h?Boolean(BL):"meanwhile"===BL)||!g||!IL||FL)return!1;var e=$L(y),t=e.findIndex(function(e){return e.node===IL});return 0===t||t===e.length-1}()||!LL()||!IL&&d)&&(m&&!(dL(y)||b&&function(e,t){return t.some(function(t){return WL(e,t,t)})}(b,y)||(i=b,zL&&zL.portaledElement===i))&&(document&&!IL&&b&&!d?(b.blur&&b.blur(),document.body.focus()):(s=EL(y,IL,{focusOptions:p}),zL={})),(IL=document&&document.activeElement)!==document.body&&(jL=OL(IL)),BL=!1),document&&b!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var x=document&&document.activeElement,w=(t=cL(e=y).filter(GM),n=xL(e,e,t),r=ZM(tL([n],!0),!0,!0),o=tL(t,!1),r.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:YM(t)}})),k=w.map(function(e){return e.node}).indexOf(x);k>-1&&(w.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),UL(k,w.length,1,w),UL(k,-1,-1,w))}}}return s},HL=function(e){VL()&&e&&(e.stopPropagation(),e.preventDefault())},YL=function(){return RL(VL)},GL=function(){FL=!0},KL=function(){FL=!1,BL="just",RL(function(){BL="meanwhile"})};var QL={moveFocusInside:EL,focusInside:dL,focusNextElement:function(e,t){void 0===t&&(t={}),TL(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},focusPrevElement:function(e,t){void 0===t&&(t={}),TL(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},focusFirstElement:function(e,t){void 0===t&&(t={}),NL(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),NL(e,t,"last")},captureFocusRestore:OL};_M.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(zL={observerNode:n,portaledElement:t})}),SM.assignMedium(YL),CM.assignMedium(function(e){return e(QL)});const ZL=(XL=function(e){return e.filter(function(e){return!e.disabled})},JL=function(e){var t=e.slice(-1)[0];t&&!DL&&(document.addEventListener("focusin",HL),document.addEventListener("focusout",YL),window.addEventListener("focus",GL),window.addEventListener("blur",KL));var n=DL,r=n&&t&&t.id===n.id;DL=t,n&&!r&&(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(IL=null,r&&n.observed===t.observed||t.onActivation(QL),VL(),RL(VL)):(document.removeEventListener("focusin",HL),document.removeEventListener("focusout",YL),window.removeEventListener("focus",GL),window.removeEventListener("blur",KL),IL=null)},function(e){var t,n=[];function r(){t=XL(n.map(function(e){return e.props})),JL(t)}var o,i,a,s=function(o){function i(){return o.apply(this,arguments)||this}PM(i,o),i.peek=function(){return t};var a=i.prototype;return a.componentDidMount=function(){n.push(this),r()},a.componentDidUpdate=function(){r()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},a.render=function(){return gc(e,{...this.props})},i}(K.exports.PureComponent);return o=s,i="displayName",a="SideEffect("+function(e){return e.displayName||e.name||"Component"}(e)+")",(i=LM(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,s})(function(){return null});var XL,JL,eD=K.exports.forwardRef(function(e,t){return gc(NM,{sideCar:ZL,ref:t,...e})}),tD=NM.propTypes||{};tD.sideCar,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}}(tD,["sideCar"]),eD.propTypes={};const nD=eD,rD=null!=(_x=nD.default)?_x:nD,oD=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,u=K.exports.useCallback(()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==r?void 0:r.current){0===qe(r.current).length&&requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus()})}},[t,r]),d=K.exports.useCallback(()=>{var e;null==(e=null==n?void 0:n.current)||e.focus()},[n]);return gc(rD,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:u,onDeactivation:d,returnFocus:o&&!n,children:i})};oD.displayName="FocusLock";const iD=zy(function(e,t){var n;const r=Gy("FormLabel",e),o=cr(e),{className:i,children:a,requiredIndicator:s=gc(aD,{}),optionalIndicator:l=null,...c}=o,u=IP(),d=null!=(n=null==u?void 0:u.getLabelProps(c,t))?n:{ref:t,...c};return mc(Dy.label,{...d,className:Ie("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[a,(null==u?void 0:u.isRequired)?s:l]})});iD.displayName="FormLabel";const aD=zy(function(e,t){const n=IP(),r=LP();if(!(null==n?void 0:n.isRequired))return null;const o=Ie("chakra-form__required-indicator",e.className);return gc(Dy.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:r.requiredIndicator,className:o})});aD.displayName="RequiredIndicator";const sD=zy(function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:i,column:a,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:f,...h}=e,p={display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:i,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:f};return gc(Dy.div,{ref:t,__css:p,...h})});function lD(e){return Qe(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}sD.displayName="Grid";const cD=zy(function(e,t){const{area:n,colSpan:r,colStart:o,colEnd:i,rowEnd:a,rowSpan:s,rowStart:l,...c}=e,u=Le({gridArea:n,gridColumn:lD(r),gridRow:lD(s),gridColumnStart:o,gridColumnEnd:i,gridRowStart:l,gridRowEnd:a});return gc(Dy.div,{ref:t,__css:u,...c})});cD.displayName="GridItem";const uD=zy(function(e,t){const{columns:n,spacingX:r,spacingY:o,spacing:i,minChildWidth:a,...s}=e,l=Vy(),c=a?function(e,t){return Qe(e,e=>{const n=function(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return n=>{const i=o.filter(Boolean),a=r.map((t,r)=>{var o,a;return"breakpoints"===e?function(e,t,n){var r,o;if(null==t)return t;const i=t=>{var n,r;return null==(r=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:r[t]};return null!=(o=null!=(r=i(t))?r:i(n))?o:n}(n,t,null!=(o=i[r])?o:t):function(e,t,n){var r,o;if(null==t)return t;const i=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return null!=(o=null!=(r=i(t))?r:i(n))?o:n}(n,`${e}.${t}`,null!=(a=i[r])?a:t)});return Array.isArray(t)?a:a[0]}}("sizes",e,"number"==typeof(r=e)?`${r}px`:r)(t);var r;return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}(a,l):Qe(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return gc(sD,{ref:t,gap:i,columnGap:r,rowGap:o,templateColumns:c,...s})});function dD(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=K.exports.Children.toArray(e.path),a=zy((e,r)=>gc(Zy,{ref:r,viewBox:t,...o,...e,children:i.length?i:gc("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}uD.displayName="SimpleGrid";const fD=zy(function(e,t){const{htmlWidth:n,htmlHeight:r,alt:o,...i}=e;return gc("img",{width:n,height:r,ref:t,alt:o,...i})});fD.displayName="NativeImage";const hD=zy(function(e,t){const{fallbackSrc:n,fallback:r,src:o,srcSet:i,align:a,fit:s,loading:l,ignoreFallback:c,crossOrigin:u,fallbackStrategy:d="beforeLoadOrError",referrerPolicy:f,...h}=e,p=null!=l||c||!(void 0!==n||void 0!==r),g=function(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,u]=K.exports.useState("pending");K.exports.useEffect(()=>{u(n?"loading":"pending")},[n]);const d=K.exports.useRef(null),f=K.exports.useCallback(()=>{if(!n)return;h();const e=new Image;e.src=n,a&&(e.crossOrigin=a),r&&(e.srcset=r),s&&(e.sizes=s),t&&(e.loading=t),e.onload=e=>{h(),u("loaded"),null==o||o(e)},e.onerror=e=>{h(),u("failed"),null==i||i(e)},d.current=e},[n,a,r,s,o,i,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return lt(()=>{if(!l)return"loading"===c&&f(),()=>{h()}},[c,f,l]),l?"loaded":c}({...e,crossOrigin:u,ignoreFallback:p}),m=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,d),v={ref:t,objectFit:s,objectPosition:a,...p?h:Ge(h,["onError","onLoad"])};return m?r||gc(Dy.img,{as:fD,className:"chakra-image__placeholder",src:n,...v}):gc(Dy.img,{as:fD,src:o,srcSet:i,crossOrigin:u,loading:l,referrerPolicy:f,className:"chakra-image",...v})});hD.displayName="Image";const pD=zy(function(e,t){const{htmlSize:n,...r}=e,o=Ky("Input",r),i=BP(cr(r)),a=Ie("chakra-input",e.className);return gc(Dy.input,{size:n,...i,__css:o.field,ref:t,className:a})});pD.displayName="Input",pD.id="Input";const[gD,mD]=De({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),vD=zy(function(e,t){const n=Ky("Input",e),{children:r,className:o,...i}=cr(e),a=Ie("chakra-input__group",o),s={},l=Me(r),c=n.field;l.forEach(e=>{var t,r;n&&(c&&"InputLeftElement"===e.type.id&&(s.paddingStart=null!=(t=c.height)?t:c.h),c&&"InputRightElement"===e.type.id&&(s.paddingEnd=null!=(r=c.height)?r:c.h),"InputRightAddon"===e.type.id&&(s.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(s.borderStartRadius=0))});const u=l.map(t=>{var n,r;const o=Le({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return"Input"!==t.type.id?K.exports.cloneElement(t,o):K.exports.cloneElement(t,Object.assign(o,s,t.props))});return gc(Dy.div,{className:a,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...i,children:gc(gD,{value:n,children:u})})});vD.displayName="InputGroup";const bD={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},yD=Dy("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),xD=zy(function(e,t){var n;const{placement:r="left",...o}=e,i=null!=(n=bD[r])?n:{},a=mD();return gc(yD,{ref:t,...o,__css:{...a.addon,...i}})});xD.displayName="InputAddon";const wD=zy(function(e,t){return gc(xD,{ref:t,placement:"left",...e,className:Ie("chakra-input__left-addon",e.className)})});wD.displayName="InputLeftAddon",wD.id="InputLeftAddon";const kD=zy(function(e,t){return gc(xD,{ref:t,placement:"right",...e,className:Ie("chakra-input__right-addon",e.className)})});kD.displayName="InputRightAddon",kD.id="InputRightAddon";const _D=zy(function(e,t){const n=Gy("Kbd",e),{className:r,...o}=cr(e);return gc(Dy.kbd,{ref:t,className:Ie("chakra-kbd",r),...o,__css:{fontFamily:"mono",...n}})});_D.displayName="Kbd";const SD=zy(function(e,t){const n=Gy("Link",e),{className:r,isExternal:o,...i}=cr(e);return gc(Dy.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:t,className:Ie("chakra-link",r),...i,__css:n})});function CD(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,o]=K.exports.useState([]),i=K.exports.useRef(void 0),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return K.exports.useEffect(()=>a,[]),function(e){return s=>{if("Backspace"===s.key){const e=[...r];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(s)){const l=r.concat(s.key);n(s)&&(s.preventDefault(),s.stopPropagation()),o(l),e(l.join("")),a(),i.current=setTimeout(()=>{o([]),i.current=null},t)}}}}SD.displayName="Link";var ED="top",AD="bottom",OD="right",TD="left",ND="auto",RD=[ED,AD,OD,TD],PD="start",MD="end",LD="viewport",DD="popper",ID=RD.reduce(function(e,t){return e.concat([t+"-"+PD,t+"-"+MD])},[]),jD=[].concat(RD,[ND]).reduce(function(e,t){return e.concat([t,t+"-"+PD,t+"-"+MD])},[]),zD=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function BD(e){return e?(e.nodeName||"").toLowerCase():null}function FD(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qD(e){return e instanceof FD(e).Element||e instanceof Element}function UD(e){return e instanceof FD(e).HTMLElement||e instanceof HTMLElement}function WD(e){return"undefined"!=typeof ShadowRoot&&(e instanceof FD(e).ShadowRoot||e instanceof ShadowRoot)}const $D={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];UD(o)&&BD(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});UD(r)&&BD(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function VD(e){return e.split("-")[0]}var HD=Math.max,YD=Math.min,GD=Math.round;function KD(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function QD(){return!/^((?!chrome|android).)*safari/i.test(KD())}function ZD(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&UD(e)&&(o=e.offsetWidth>0&&GD(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&GD(r.height)/e.offsetHeight||1);var a=(qD(e)?FD(e):window).visualViewport,s=!QD()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function XD(e){var t=ZD(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function JD(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WD(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function eI(e){return FD(e).getComputedStyle(e)}function tI(e){return["table","td","th"].indexOf(BD(e))>=0}function nI(e){return((qD(e)?e.ownerDocument:e.document)||window.document).documentElement}function rI(e){return"html"===BD(e)?e:e.assignedSlot||e.parentNode||(WD(e)?e.host:null)||nI(e)}function oI(e){return UD(e)&&"fixed"!==eI(e).position?e.offsetParent:null}function iI(e){for(var t=FD(e),n=oI(e);n&&tI(n)&&"static"===eI(n).position;)n=oI(n);return n&&("html"===BD(n)||"body"===BD(n)&&"static"===eI(n).position)?t:n||function(e){var t=/firefox/i.test(KD());if(/Trident/i.test(KD())&&UD(e)&&"fixed"===eI(e).position)return null;var n=rI(e);for(WD(n)&&(n=n.host);UD(n)&&["html","body"].indexOf(BD(n))<0;){var r=eI(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function aI(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sI(e,t,n){return HD(e,YD(t,n))}function lI(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function cI(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}const uI={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=VD(n.placement),l=aI(s),c=[TD,OD].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return lI("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:cI(e,RD))}(o.padding,n),d=XD(i),f="y"===l?ED:TD,h="y"===l?AD:OD,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=iI(i),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,y=u[f],x=v-d[c]-u[h],w=v/2-d[c]/2+b,k=sI(y,w,x),_=l;n.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&JD(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dI(e){return e.split("-")[1]}var fI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hI(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,g=void 0===p?0:p,m="function"==typeof u?u({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=TD,x=ED,w=window;if(c){var k=iI(n),_="clientHeight",S="clientWidth";if(k===FD(n)&&"static"!==eI(k=nI(n)).position&&"absolute"===s&&(_="scrollHeight",S="scrollWidth"),o===ED||(o===TD||o===OD)&&i===MD)x=AD,g-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[_])-r.height,g*=l?1:-1;if(o===TD||(o===ED||o===AD)&&i===MD)y=OD,h-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[S])-r.width,h*=l?1:-1}var C,E=Object.assign({position:s},c&&fI),A=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:GD(n*o)/o||0,y:GD(r*o)/o||0}}({x:h,y:g},FD(n)):{x:h,y:g};return h=A.x,g=A.y,l?Object.assign({},E,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",C)):Object.assign({},E,((t={})[x]=b?g+"px":"",t[y]=v?h+"px":"",t.transform="",t))}const pI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:VD(t.placement),variation:dI(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,hI(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,hI(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var gI={passive:!0};const mI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=FD(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,gI)}),s&&l.addEventListener("resize",n.update,gI),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,gI)}),s&&l.removeEventListener("resize",n.update,gI)}},data:{}};var vI={left:"right",right:"left",bottom:"top",top:"bottom"};function bI(e){return e.replace(/left|right|bottom|top/g,function(e){return vI[e]})}var yI={start:"end",end:"start"};function xI(e){return e.replace(/start|end/g,function(e){return yI[e]})}function wI(e){var t=FD(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kI(e){return ZD(nI(e)).left+wI(e).scrollLeft}function _I(e){var t=eI(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function SI(e){return["html","body","#document"].indexOf(BD(e))>=0?e.ownerDocument.body:UD(e)&&_I(e)?e:SI(rI(e))}function CI(e,t){var n;void 0===t&&(t=[]);var r=SI(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=FD(r),a=o?[i].concat(i.visualViewport||[],_I(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(CI(rI(a)))}function EI(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function AI(e,t,n){return t===LD?EI(function(e,t){var n=FD(e),r=nI(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=QD();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+kI(e),y:l}}(e,n)):qD(t)?function(e,t){var n=ZD(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):EI(function(e){var t,n=nI(e),r=wI(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=HD(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=HD(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+kI(e),l=-r.scrollTop;return"rtl"===eI(o||n).direction&&(s+=HD(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(nI(e)))}function OI(e,t,n,r){var o="clippingParents"===t?function(e){var t=CI(rI(e)),n=["absolute","fixed"].indexOf(eI(e).position)>=0&&UD(e)?iI(e):e;return qD(n)?t.filter(function(e){return qD(e)&&JD(e,n)&&"body"!==BD(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=AI(e,n,r);return t.top=HD(o.top,t.top),t.right=YD(o.right,t.right),t.bottom=YD(o.bottom,t.bottom),t.left=HD(o.left,t.left),t},AI(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function TI(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?VD(o):null,a=o?dI(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case ED:t={x:s,y:n.y-r.height};break;case AD:t={x:s,y:n.y+n.height};break;case OD:t={x:n.x+n.width,y:l};break;case TD:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?aI(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case PD:t[c]=t[c]-(n[u]/2-r[u]/2);break;case MD:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function NI(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?LD:c,d=n.elementContext,f=void 0===d?DD:d,h=n.altBoundary,p=void 0!==h&&h,g=n.padding,m=void 0===g?0:g,v=lI("number"!=typeof m?m:cI(m,RD)),b=f===DD?"reference":DD,y=e.rects.popper,x=e.elements[p?b:f],w=OI(qD(x)?x:x.contextElement||nI(e.elements.popper),l,u,a),k=ZD(e.elements.reference),_=TI({reference:k,element:y,strategy:"absolute",placement:o}),S=EI(Object.assign({},y,_)),C=f===DD?S:k,E={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},A=e.modifiersData.offset;if(f===DD&&A){var O=A[o];Object.keys(E).forEach(function(e){var t=[OD,AD].indexOf(e)>=0?1:-1,n=[ED,AD].indexOf(e)>=0?"y":"x";E[e]+=O[n]*t})}return E}const RI={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,v=VD(m),b=l||(v===m||!p?[bI(m)]:function(e){if(VD(e)===ND)return[];var t=bI(e);return[xI(e),t,xI(t)]}(m)),y=[m].concat(b).reduce(function(e,n){return e.concat(VD(n)===ND?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?jD:l,u=dI(r),d=u?s?ID:ID.filter(function(e){return dI(e)===u}):RD,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var h=f.reduce(function(t,n){return t[n]=NI(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[VD(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)},[]),x=t.rects.reference,w=t.rects.popper,k=new Map,_=!0,S=y[0],C=0;C<y.length;C++){var E=y[C],A=VD(E),O=dI(E)===PD,T=[ED,AD].indexOf(A)>=0,N=T?"width":"height",R=NI(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=T?O?OD:TD:O?AD:ED;x[N]>w[N]&&(P=bI(P));var M=bI(P),L=[];if(i&&L.push(R[A]<=0),s&&L.push(R[P]<=0,R[M]<=0),L.every(function(e){return e})){S=E,_=!1;break}k.set(E,L)}if(_)for(var D=function(e){var t=y.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},I=p?3:1;I>0;I--){if("break"===D(I))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function PI(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function MI(e){return[ED,OD,AD,TD].some(function(t){return e[t]>=0})}const LI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=jD.reduce(function(e,n){return e[n]=function(e,t,n){var r=VD(e),o=[TD,ED].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[TD,OD].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};const DI={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,g=void 0===p?0:p,m=NI(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=VD(t.placement),b=dI(t.placement),y=!b,x=aI(v),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(k){if(i){var T,N="y"===x?ED:TD,R="y"===x?AD:OD,P="y"===x?"height":"width",M=k[x],L=M+m[N],D=M-m[R],I=h?-S[P]/2:0,j=b===PD?_[P]:S[P],z=b===PD?-S[P]:-_[P],B=t.elements.arrow,F=h&&B?XD(B):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=q[N],W=q[R],$=sI(0,_[P],F[P]),V=y?_[P]/2-I-$-U-E.mainAxis:j-$-U-E.mainAxis,H=y?-_[P]/2+I+$+W+E.mainAxis:z+$+W+E.mainAxis,Y=t.elements.arrow&&iI(t.elements.arrow),G=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,K=null!=(T=null==A?void 0:A[x])?T:0,Q=M+H-K,Z=sI(h?YD(L,M+V-K-G):L,M,h?HD(D,Q):D);k[x]=Z,O[x]=Z-M}if(s){var X,J="x"===x?ED:TD,ee="x"===x?AD:OD,te=k[w],ne="y"===w?"height":"width",re=te+m[J],oe=te-m[ee],ie=-1!==[ED,TD].indexOf(v),ae=null!=(X=null==A?void 0:A[w])?X:0,se=ie?re:te-_[ne]-S[ne]-ae+E.altAxis,le=ie?te+_[ne]+S[ne]-ae-E.altAxis:oe,ce=h&&ie?(de=sI(se,te,ue=le))>ue?ue:de:sI(h?se:re,te,h?le:oe);k[w]=ce,O[w]=ce-te}var ue,de;t.modifiersData[r]=O}},requiresIfExists:["offset"]};function II(e,t,n){void 0===n&&(n=!1);var r,o,i=UD(t),a=UD(t)&&function(e){var t=e.getBoundingClientRect(),n=GD(t.width)/e.offsetWidth||1,r=GD(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=nI(t),l=ZD(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==BD(t)||_I(s))&&(c=(r=t)!==FD(r)&&UD(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:wI(r)),UD(t)?((u=ZD(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=kI(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function jI(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var zI={placement:"bottom",modifiers:[],strategy:"absolute"};function BI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function FI(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?zI:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},zI,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:qD(e)?CI(e):e.contextElement?CI(e.contextElement):[],popper:CI(t)};var a,c,f=function(e){var t=jI(e);return zD.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,s.options.modifiers),c=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=f.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};l.push(i||a)}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(BI(t,n)){s.rects={reference:II(t,iI(n),"fixed"===s.options.strategy),popper:XD(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),c=!0}};if(!BI(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var qI=FI({defaultModifiers:[mI,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=TI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},pI,$D,LI,RI,DI,uI,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=NI(t,{elementContext:"reference"}),s=NI(t,{altBoundary:!0}),l=PI(a,r),c=PI(s,o,i),u=MI(l),d=MI(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const UI=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),WI={arrowShadowColor:UI("--popper-arrow-shadow-color"),arrowSize:UI("--popper-arrow-size","8px"),arrowSizeHalf:UI("--popper-arrow-size-half"),arrowBg:UI("--popper-arrow-bg"),transformOrigin:UI("--popper-transform-origin"),arrowOffset:UI("--popper-arrow-offset")};const $I={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},VI={scroll:!0,resize:!0};function HI(e){let t;return t="object"==typeof e?{enabled:!0,options:{...VI,...e}}:{enabled:e,options:VI},t}const YI={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},GI={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{KI(e)},effect:({state:e})=>()=>{KI(e)}},KI=e=>{var t;e.elements.popper.style.setProperty(WI.transformOrigin.var,(t=e.placement,$I[t]))},QI={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{ZI(e)}},ZI=e=>{var t;if(!e.placement)return;const n=XI(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:WI.arrowSize.varRef,height:WI.arrowSize.varRef,zIndex:-1});const t={[WI.arrowSizeHalf.var]:`calc(${WI.arrowSize.varRef} / 2 - 1px)`,[WI.arrowOffset.var]:`calc(${WI.arrowSizeHalf.varRef} * -1)`};for(const n in t)e.elements.arrow.style.setProperty(n,t[n])}},XI=e=>e.startsWith("top")?{property:"bottom",value:WI.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:WI.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:WI.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:WI.arrowOffset.varRef}:void 0,JI={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{ej(e)},effect:({state:e})=>()=>{ej(e)}},ej=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=(r=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":r.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":r.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":r.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;var r;n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:WI.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},tj={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},nj={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function rj(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:c=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:f,direction:h="ltr"}=e,p=K.exports.useRef(null),g=K.exports.useRef(null),m=K.exports.useRef(null),v=function(e,t="ltr"){var n,r;const o=(null==(n=tj[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(r=nj[e])?r:o}(r,h),b=K.exports.useRef(()=>{}),y=K.exports.useCallback(()=>{var e;t&&p.current&&g.current&&(null==(e=b.current)||e.call(b),m.current=qI(p.current,g.current,{placement:v,modifiers:[JI,QI,GI,{...YI,enabled:!!f},{name:"eventListeners",...HI(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:null!=s?s:[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...null!=n?n:[]],strategy:o}),m.current.forceUpdate(),b.current=m.current.destroy)},[v,t,n,f,a,i,s,l,c,d,u,o]);K.exports.useEffect(()=>()=>{var e;p.current||g.current||(null==(e=m.current)||e.destroy(),m.current=null)},[]);const x=K.exports.useCallback(e=>{p.current=e,y()},[y]),w=K.exports.useCallback((e={},t=null)=>({...e,ref:bt(x,t)}),[x]),k=K.exports.useCallback(e=>{g.current=e,y()},[y]),_=K.exports.useCallback((e={},t=null)=>({...e,ref:bt(k,t),style:{...e.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,k,f]),S=K.exports.useCallback((e={},t=null)=>{const{size:n,shadowColor:r,bg:o,style:i,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:oj(e)}},[]),C=K.exports.useCallback((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=m.current)||e.update()},forceUpdate(){var e;null==(e=m.current)||e.forceUpdate()},transformOrigin:WI.transformOrigin.varRef,referenceRef:x,popperRef:k,getPopperProps:_,getArrowProps:S,getArrowInnerProps:C,getReferenceProps:w}}function oj(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function ij(e){var t,n,r;const o=null!=(r=null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])?r:e.target,{tagName:i,isContentEditable:a}=o;return"INPUT"!==i&&"TEXTAREA"!==i&&!0!==a}function aj(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:a,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:u,tabIndex:d,onMouseOver:f,onMouseLeave:h,...p}=e,[g,m]=K.exports.useState(!0),[v,b]=K.exports.useState(!1),y=function(){const e=K.exports.useRef(new Map),t=e.current,n=K.exports.useCallback((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),r=K.exports.useCallback((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)},[]);return K.exports.useEffect(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),x=g?d:d||0,w=n&&!r,k=K.exports.useCallback(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)},[n,l]),_=K.exports.useCallback(e=>{v&&ij(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),y.remove(document,"keyup",_,!1))},[v,y]),S=K.exports.useCallback(e=>{if(null==c||c(e),n||e.defaultPrevented||e.metaKey)return;if(!ij(e.nativeEvent)||g)return;const t=o&&"Enter"===e.key;if(i&&" "===e.key&&(e.preventDefault(),b(!0)),t){e.preventDefault();e.currentTarget.click()}y.add(document,"keyup",_,!1)},[n,g,c,o,i,y,_]),C=K.exports.useCallback(e=>{if(null==u||u(e),n||e.defaultPrevented||e.metaKey)return;if(!ij(e.nativeEvent)||g)return;if(i&&" "===e.key){e.preventDefault(),b(!1);e.currentTarget.click()}},[i,g,n,u]),E=K.exports.useCallback(e=>{0===e.button&&(b(!1),y.remove(document,"mouseup",E,!1))},[y]),A=K.exports.useCallback(e=>{if(0!==e.button)return;if(n)return e.stopPropagation(),void e.preventDefault();g||b(!0);e.currentTarget.focus({preventScroll:!0}),y.add(document,"mouseup",E,!1),null==a||a(e)},[n,g,a,y,E]),O=K.exports.useCallback(e=>{0===e.button&&(g||b(!1),null==s||s(e))},[s,g]),T=K.exports.useCallback(e=>{n?e.preventDefault():null==f||f(e)},[n,f]),N=K.exports.useCallback(e=>{v&&(e.preventDefault(),b(!1)),null==h||h(e)},[v,h]),R=bt(t,e=>{e&&"BUTTON"!==e.tagName&&m(!1)});return g?{...p,ref:R,type:"button","aria-disabled":w?void 0:n,disabled:w,onClick:k,onMouseDown:a,onMouseUp:s,onKeyUp:u,onKeyDown:c,onMouseOver:f,onMouseLeave:h}:{...p,ref:R,role:"button","data-active":M(v),"aria-disabled":n?"true":void 0,tabIndex:w?void 0:x,onClick:k,onMouseDown:A,onMouseUp:O,onKeyUp:C,onKeyDown:S,onMouseOver:T,onMouseLeave:N}}const[sj,lj,cj,uj]=WR(),[dj,fj]=De({strict:!1,name:"MenuContext"});function hj(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function pj(e){var t;return function(e){var t;if(!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e))return!1;const n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function gj(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:i,onFocus:a,isDisabled:s,isFocusable:l,closeOnSelect:c,type:u,...d}=e,f=fj(),{setFocusedIndex:h,focusedIndex:p,closeOnSelect:g,onClose:m,menuId:v,scrollIntoViewRef:b}=f,y=K.exports.useRef(null),x=`${v}-menuitem-${K.exports.useId()}`,{index:w,register:k}=uj({disabled:s&&!l}),_=K.exports.useCallback(e=>{null==n||n(e),s||(b.current=!1,h(w))},[h,w,s,n,b]),S=K.exports.useCallback(e=>{var t;null==r||r(e),y.current&&hj(t=y.current).activeElement!==t&&_(e)},[_,r]),C=K.exports.useCallback(e=>{null==o||o(e),s||h(-1)},[h,s,o]),E=K.exports.useCallback(e=>{null==i||i(e),pj(e.currentTarget)&&(null!=c?c:g)&&m()},[m,i,g,c]),A=K.exports.useCallback(e=>{null==a||a(e),h(w)},[h,a,w]),O=w===p,T=aj({onClick:E,onFocus:A,onMouseEnter:_,onMouseMove:S,onMouseLeave:C,ref:bt(k,y,t),isDisabled:s,isFocusable:l});return{...d,...T,type:null!=u?u:T.type,id:x,role:"menuitem",tabIndex:O?0:-1}}const[mj,vj]=De({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),bj=e=>{const{children:t}=e,n=Ky("Menu",e),r=cr(e),{direction:o}=Vy(),{descendants:i,...a}=function(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:a,isOpen:s,defaultIsOpen:l,onClose:c,onOpen:u,placement:d="bottom-start",lazyBehavior:f="unmount",direction:h,computePositionOnMount:p=!1,...g}=e,m=K.exports.useRef(null),v=K.exports.useRef(null),b=K.exports.useRef(!0),y=cj(),x=K.exports.useCallback(()=>{requestAnimationFrame(()=>{var e;null==(e=m.current)||e.focus({preventScroll:!1})})},[]),w=K.exports.useCallback(()=>{const e=setTimeout(()=>{var e,t;if(o)null==(e=o.current)||e.focus();else if(y.count()){const e=y.firstEnabled();e&&N(e.index)}else null==(t=m.current)||t.focus({preventScroll:!1})});D.current.add(e)},[y,o]),k=K.exports.useCallback(()=>{const e=setTimeout(()=>{var e;if(y.count()){const e=y.lastEnabled();e&&N(e.index)}else null==(e=m.current)||e.focus({preventScroll:!1})});D.current.add(e)},[y]),_=K.exports.useCallback(()=>{null==u||u(),i?w():x()},[i,w,x,u]),{isOpen:S,onOpen:C,onClose:E,onToggle:A}=st({isOpen:s,defaultIsOpen:l,onClose:c,onOpen:_});xt({enabled:S&&r,ref:m,handler:e=>{var t,n,r,o;const i=null!=(r=null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])?r:e.target;(null==(o=v.current)?void 0:o.contains(i))||E()}});const O=rj({...g,enabled:S||p,placement:d,direction:h}),[T,N]=K.exports.useState(-1);dt(m,{focusRef:v,visible:S,shouldFocus:!0});const R=it({isOpen:S,ref:m}),[P,M]=mt(t,"menu-button","menu-list"),L=K.exports.useCallback(()=>{C(),x()},[C,x]),D=K.exports.useRef(new Set([]));return K.exports.useEffect(()=>{const e=D.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]),ct(()=>{var e;S||(N(-1),null==(e=m.current)||e.scrollTo(0,0))},[S]),ct(()=>{S&&-1===T&&x()},[T,S]),K.exports.useEffect(()=>{var e;if(!S)return;const t=y.item(T);null==(e=null==t?void 0:t.node)||e.focus({preventScroll:!b.current})},[y,T,S]),{openAndFocusMenu:L,openAndFocusFirstItem:K.exports.useCallback(()=>{C(),w()},[w,C]),openAndFocusLastItem:K.exports.useCallback(()=>{b.current=!0,C(),k()},[C,k]),onTransitionEnd:K.exports.useCallback(()=>{var e,t;const n=hj(m.current),r=null==(e=m.current)?void 0:e.contains(n.activeElement);if(!S||r)return;const o=null==(t=y.item(T))?void 0:t.node;null==o||o.focus({preventScroll:!b.current})},[S,T,y]),unstable__animationState:R,descendants:y,popper:O,buttonId:P,menuId:M,forceUpdate:O.forceUpdate,orientation:"vertical",isOpen:S,onToggle:A,onOpen:C,onClose:E,menuRef:m,buttonRef:v,focusedIndex:T,closeOnSelect:n,closeOnBlur:r,autoSelect:i,setFocusedIndex:N,isLazy:a,lazyBehavior:f,initialFocusRef:o,scrollIntoViewRef:b}}({...r,direction:o}),s=K.exports.useMemo(()=>a,[a]),{isOpen:l,onClose:c,forceUpdate:u}=s;return gc(sj,{value:i,children:gc(dj,{value:s,children:gc(mj,{value:n,children:Ze(t,{isOpen:l,onClose:c,forceUpdate:u})})})})};bj.displayName="Menu";const yj=zy((e,t)=>{const n=vj();return gc(Dy.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),xj=zy((e,t)=>{const{children:n,as:r,...o}=e,i=function(e={},t=null){const n=fj(),{onToggle:r,popper:o,openAndFocusFirstItem:i,openAndFocusLastItem:a,scrollIntoViewRef:s}=n,l=K.exports.useCallback(e=>{const t=e.key,n={Enter:i,ArrowDown:i,ArrowUp:a}[t];n&&(s.current=!0,e.preventDefault(),e.stopPropagation(),n(e))},[i,a,s]);return{...e,ref:bt(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":M(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:H(e.onClick,r),onKeyDown:H(e.onKeyDown,l)}}(o,t);return gc(r||yj,{...i,className:Ie("chakra-menu__menu-button",e.className),children:gc(Dy.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});xj.displayName="MenuButton";const wj=zy((e,t)=>{const n=vj();return gc(Dy.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});wj.displayName="MenuCommand";const kj=e=>{const{className:t,children:n,...r}=e,o=vj(),i=K.exports.Children.only(n),a=K.exports.isValidElement(i)?K.exports.cloneElement(i,{focusable:"false","aria-hidden":!0,className:Ie("chakra-menu__icon",i.props.className)}):null,s=Ie("chakra-menu__icon-wrapper",t);return gc(Dy.span,{className:s,...r,__css:o.icon,children:a})};kj.displayName="MenuIcon";const _j=zy((e,t)=>{const{type:n,...r}=e,o=vj(),i=r.as||n?null!=n?n:void 0:"button",a=K.exports.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return gc(Dy.button,{ref:t,type:i,...r,__css:a})}),Sj=zy((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:i="0.75rem",children:a,...s}=e,l=gj(s,t),c=n||o?gc("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return mc(_j,{...l,className:Ie("chakra-menu__menuitem",l.className),children:[n&&gc(kj,{fontSize:"0.8em",marginEnd:r,children:n}),c,o&&gc(wj,{marginStart:i,children:o})]})});Sj.displayName="MenuItem";const Cj={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Ej=Dy(cy.div),Aj=zy(function(e,t){var n,r;const{rootProps:o,motionProps:i,...a}=e,{isOpen:s,onTransitionEnd:l,unstable__animationState:c}=fj(),u=function(e={},t=null){const n=fj();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:r,setFocusedIndex:o,menuRef:i,isOpen:a,onClose:s,menuId:l,isLazy:c,lazyBehavior:u,scrollIntoViewRef:d,unstable__animationState:f}=n,h=lj(),p=CD({preventDefault:e=>" "!==e.key&&pj(e.target)}),g=K.exports.useCallback(e=>{if(!e.currentTarget.contains(e.target))return;const t={Tab:e=>e.preventDefault(),Escape:e=>{e.stopPropagation(),s()},ArrowDown:()=>{var e;d.current=!0;const t=null!=(e=h.nextEnabled(r))?e:h.firstEnabled();t&&o(t.index)},ArrowUp:()=>{var e;d.current=!0;const t=null!=(e=h.prevEnabled(r))?e:h.firstEnabled();t&&o(t.index)}}[e.key];if(t)return e.preventDefault(),void t(e);const n=p(e=>{const t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;return o.includes(r)?(t=o.indexOf(r)+1,t===o.length&&(t=0),o[t]):(t=e.indexOf(o[0]),e[t])}return r}(h.values(),e,e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?n:""},h.item(r));if(t){const e=h.indexOf(t.node);o(e)}});pj(e.target)&&n(e)},[h,r,p,s,o,d]),m=K.exports.useRef(!1);a&&(m.current=!0);const v=We({wasSelected:m.current,enabled:c,mode:u,isSelected:f.present});return{...e,ref:bt(i,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:H(e.onKeyDown,g)}}(a,t),d=function(e={}){const{popper:t,isOpen:n}=fj();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}(o),f=vj();return gc(Dy.div,{...d,__css:{zIndex:null!=(r=e.zIndex)?r:null==(n=f.list)?void 0:n.zIndex},children:gc(Ej,{variants:Cj,initial:!1,animate:s?"enter":"exit",__css:{outline:0,...f.list},...i,...u,className:Ie("chakra-menu__menu-list",u.className),onUpdate:l,onAnimationComplete:V(c.onComplete,u.onAnimationComplete)})})});Aj.displayName="MenuList";var Oj=new WeakMap,Tj=new WeakMap,Nj={},Rj=0,Pj=function(e){return e&&(e.host||Pj(e.parentNode))},Mj=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Pj(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Nj[n]||(Nj[n]=new WeakMap);var i=Nj[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Oj.get(e)||0)+1,c=(i.get(e)||0)+1;Oj.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Tj.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(OV){console.error("aria-hidden: cannot operate on ",e,OV)}})};return u(t),s.clear(),Rj++,function(){a.forEach(function(e){var t=Oj.get(e)-1,o=i.get(e)-1;Oj.set(e,t),i.set(e,o),t||(Tj.has(e)||e.removeAttribute(r),Tj.delete(e)),o||e.removeAttribute(n)}),--Rj||(Oj=new WeakMap,Oj=new WeakMap,Tj=new WeakMap,Nj={})}},Lj=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Mj(r,o,n,"aria-hidden")):function(){return null}},Dj=Object.defineProperty,Ij=(e,t,n)=>(((e,t,n)=>{t in e?Dj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const jj=new class{constructor(){Ij(this,"modals"),this.modals=new Set}add(e){return this.modals.add(e),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){if(!e)return!1;return e===Array.from(this.modals)[this.modals.size-1]}};function zj(e,t){const[n,r]=K.exports.useState(0);return K.exports.useEffect(()=>{const n=e.current;if(n){if(t){const e=jj.add(n);r(e)}return()=>{jj.remove(n),r(0)}}},[t,e]),n}function Bj(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,c=K.exports.useRef(null),u=K.exports.useRef(null),[d,f,h]=function(e,...t){const n=K.exports.useId(),r=e||n;return K.exports.useMemo(()=>t.map(e=>`${e}-${r}`),[r,t])}(r,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){const n=e.current;K.exports.useEffect(()=>{if(e.current&&t)return Lj(e.current)},[t,e,n])}(c,t&&a);const p=zj(c,t),g=K.exports.useRef(null),m=K.exports.useCallback(e=>{g.current=e.target},[]),v=K.exports.useCallback(e=>{"Escape"===e.key&&(e.stopPropagation(),i&&(null==n||n()),null==l||l())},[i,n,l]),[b,y]=K.exports.useState(!1),[x,w]=K.exports.useState(!1),k=K.exports.useCallback((e={},t=null)=>({role:"dialog",...e,ref:bt(t,c),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?f:void 0,"aria-describedby":x?h:void 0,onClick:H(e.onClick,e=>e.stopPropagation())}),[h,x,d,f,b]),_=K.exports.useCallback(e=>{e.stopPropagation(),g.current===e.target&&jj.isTopModal(c.current)&&(o&&(null==n||n()),null==s||s())},[n,o,s]),S=K.exports.useCallback((e={},t=null)=>({...e,ref:bt(t,u),onClick:H(e.onClick,_),onKeyDown:H(e.onKeyDown,v),onMouseDown:H(e.onMouseDown,m)}),[v,m,_]);return{isOpen:t,onClose:n,headerId:f,bodyId:h,setBodyMounted:w,setHeaderMounted:y,dialogRef:c,overlayRef:u,getDialogProps:k,getDialogContainerProps:S,index:p}}const[Fj,qj]=De({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[Uj,Wj]=De({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),$j=e=>{var t;const n={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:null==(t=e.lockFocusAcrossFrames)||t},{portalProps:r,children:o,autoFocus:i,trapFocus:a,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:h,lockFocusAcrossFrames:p,animatePresenceProps:g,onCloseComplete:m}=n,v=Ky("Modal",n),b={...Bj(n),autoFocus:i,trapFocus:a,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:h,lockFocusAcrossFrames:p};return gc(Uj,{value:b,children:gc(Fj,{value:v,children:gc(my,{...g,onExitComplete:m,children:b.isOpen&&gc(NR,{...r,children:o})})})})};$j.displayName="Modal";var Vj="right-scroll-bar-position",Hj="width-before-scroll-bar",Yj=wM(),Gj=function(){},Kj=K.exports.forwardRef(function(e,t){var n=K.exports.useRef(null),r=K.exports.useState({onScrollCapture:Gj,onWheelCapture:Gj,onTouchMoveCapture:Gj}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,p=e.noIsolation,g=e.inert,m=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,y=e.gapMode,x=vM(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,k=pM([n,t]),_=mM(mM({},x),o);return mc(pc,{children:[u&&gc(w,{sideCar:Yj,removeScrollBar:c,shards:d,noRelative:h,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:y}),a?K.exports.cloneElement(K.exports.Children.only(s),mM(mM({},_),{ref:k})):gc(b,{...mM({},_,{className:l,ref:k}),children:s})]})});Kj.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kj.classNames={fullWidth:Hj,zeroRight:Vj};function Qj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Zj=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Qj())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xj=function(){var e,t=(e=Zj(),function(t,n){K.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Jj={left:0,top:0,right:0,gap:0},ez=function(e){return parseInt(e||"",10)||0},tz=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Jj;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ez(n),ez(r),ez(o)]}(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])}},nz=Xj(),rz="data-scroll-locked",oz=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(rz,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Vj," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Hj," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Vj," .").concat(Vj," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Hj," .").concat(Hj," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(rz,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},iz=function(){var e=parseInt(document.body.getAttribute(rz)||"0",10);return isFinite(e)?e:0},az=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;K.exports.useEffect(function(){return document.body.setAttribute(rz,(iz()+1).toString()),function(){var e=iz()-1;e<=0?document.body.removeAttribute(rz):document.body.setAttribute(rz,e.toString())}},[]);var i=K.exports.useMemo(function(){return tz(o)},[o]);return gc(nz,{styles:oz(i,!t,o,n?"":"!important")})},sz=!1;if("undefined"!=typeof window)try{var lz=Object.defineProperty({},"passive",{get:function(){return sz=!0,!0}});window.addEventListener("test",lz,lz),window.removeEventListener("test",lz,lz)}catch(l8){sz=!1}var cz=!!sz&&{passive:!1},uz=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},dz=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),fz(e,r)){var o=hz(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fz=function(e,t){return"v"===e?function(e){return uz(e,"overflowY")}(t):function(e){return uz(e,"overflowX")}(t)},hz=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},pz=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gz=function(e){return[e.deltaX,e.deltaY]},mz=function(e){return e&&"current"in e?e.current:e},vz=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},bz=0,yz=[];function xz(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const wz=(kz=function(e){var t=K.exports.useRef([]),n=K.exports.useRef([0,0]),r=K.exports.useRef(),o=K.exports.useState(bz++)[0],i=K.exports.useState(Xj)[0],a=K.exports.useRef(e);K.exports.useEffect(function(){a.current=e},[e]),K.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(mz),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=K.exports.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=pz(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===u||h.contains(u)))return!1;var p=dz(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=dz(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var g=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var h=hz(e,s),p=h[0],g=h[1]-h[2]-i*p;(p||g)&&fz(e,s)&&(d+=g,f+=p);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&a>d)||!u&&(o&&Math.abs(f)<1||!o&&-a>f))&&(c=!0),c}(g,t,e,"h"===g?l:c,!0)},[]),l=K.exports.useCallback(function(e){var n=e;if(yz.length&&yz[yz.length-1]===i){var r="deltaY"in n?gz(n):pz(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(mz).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),c=K.exports.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:xz(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=K.exports.useCallback(function(e){n.current=pz(e),r.current=void 0},[]),d=K.exports.useCallback(function(t){c(t.type,gz(t),t.target,s(t,e.lockRef.current))},[]),f=K.exports.useCallback(function(t){c(t.type,pz(t),t.target,s(t,e.lockRef.current))},[]);K.exports.useEffect(function(){return yz.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,cz),document.addEventListener("touchmove",l,cz),document.addEventListener("touchstart",u,cz),function(){yz=yz.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,cz),document.removeEventListener("touchmove",l,cz),document.removeEventListener("touchstart",u,cz)}},[]);var h=e.removeScrollBar,p=e.inert;return mc(pc,{children:[p?gc(i,{styles:vz(o)}):null,h?gc(az,{noRelative:e.noRelative,gapMode:e.gapMode}):null]})},Yj.useMedium(kz),kM);var kz,_z=K.exports.forwardRef(function(e,t){return gc(Kj,{...mM({},e,{ref:t,sideCar:wz})})});_z.classNames=Kj.classNames;const Sz=_z;function Cz(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:u,isOpen:d}=Wj(),[f,h]=gp();K.exports.useEffect(()=>{!f&&h&&setTimeout(h)},[f,h]);const p=zj(r,d);return gc(oD,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:u,children:gc(Sz,{removeScrollBar:!c,allowPinchZoom:a,enabled:1===p&&i,forwardProps:!0,children:e.children})})}const Ez={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:null!=(i=null==n?void 0:n.exit)?i:XR(QR.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:ZR(QR.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==n?void 0:n.exit)?a:XR(QR.exit,i),...o?{...s,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...s,...null==r?void 0:r.exit}}}}}};K.exports.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:i,offsetX:a=0,offsetY:s=8,transition:l,transitionEnd:c,delay:u,animatePresenceProps:d,...f}=e,h=r||n?"enter":"exit",p={offsetX:a,offsetY:s,reverse:o,transition:l,transitionEnd:c,delay:u};return gc(my,{...d,custom:p,children:(!n||r&&n)&&gc(cy.div,{ref:t,className:Ie("chakra-offset-slide",i),custom:p,...Ez,animate:h,...f})})}).displayName="SlideFade";const Az={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(i=null==n?void 0:n.exit)?i:XR(QR.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:ZR(QR.enter,n),transitionEnd:null==e?void 0:e.enter}}}};K.exports.forwardRef(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:i=.95,className:a,transition:s,transitionEnd:l,delay:c,animatePresenceProps:u,...d}=e,f=r||n?"enter":"exit",h={initialScale:i,reverse:o,transition:s,transitionEnd:l,delay:c};return gc(my,{...u,custom:h,children:(!n||r&&n)&&gc(cy.div,{ref:t,className:Ie("chakra-offset-slide",a),...Az,animate:f,custom:h,...d})})}).displayName="ScaleFade";const Oz={slideInBottom:{...Ez,custom:{offsetY:16,reverse:!0}},slideInRight:{...Ez,custom:{offsetX:16,reverse:!0}},slideInTop:{...Ez,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Ez,custom:{offsetX:-16,reverse:!0}},scale:{...Az,custom:{initialScale:.95,reverse:!0}},none:{}},Tz=Dy(cy.section),Nz=e=>Oz[e||"none"],Rz=K.exports.forwardRef((e,t)=>{const{preset:n,motionProps:r=Nz(n),...o}=e;return gc(Tz,{ref:t,...r,...o})});Rz.displayName="ModalTransition";const Pz=zy((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=Wj(),c=s(a,t),u=l(o),d=Ie("chakra-modal__content",n),f=qj(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:g}=Wj();return gc(Cz,{children:gc(Dy.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:gc(Rz,{preset:g,motionProps:i,className:d,...c,__css:h,children:r})})})});Pz.displayName="ModalContent";const Mz=zy((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=Wj();K.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=Ie("chakra-modal__body",n),s=qj();return gc(Dy.div,{ref:t,className:a,id:o,...r,__css:s.body})});Mz.displayName="ModalBody";const Lz=zy((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=Wj(),a=Ie("chakra-modal__close-btn",r),s=qj();return gc(dx,{ref:t,__css:s.closeButton,className:a,onClick:H(n,e=>{e.stopPropagation(),i()}),...o})});Lz.displayName="ModalCloseButton";const Dz=zy((e,t)=>{const{className:n,...r}=e,o=Ie("chakra-modal__footer",n),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...qj().footer};return gc(Dy.footer,{ref:t,...r,__css:i,className:o})});Dz.displayName="ModalFooter";const Iz=zy((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=Wj();K.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=Ie("chakra-modal__header",n),s={flex:0,...qj().header};return gc(Dy.header,{ref:t,className:a,id:o,...r,__css:s})});Iz.displayName="ModalHeader";const jz={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:ZR(QR.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:null!=(r=null==e?void 0:e.exit)?r:XR(QR.exit,n),transitionEnd:null==t?void 0:t.exit}}}};K.exports.forwardRef(function(e,t){const{unmountOnExit:n,in:r,className:o,transition:i,transitionEnd:a,delay:s,animatePresenceProps:l,...c}=e,u=r||n?"enter":"exit",d={transition:i,transitionEnd:a,delay:s};return gc(my,{...l,custom:d,children:(!n||r&&n)&&gc(cy.div,{ref:t,className:Ie("chakra-fade",o),custom:d,...jz,animate:u,...c})})}).displayName="Fade";const zz=Dy(cy.div),Bz=zy((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=Ie("chakra-modal__overlay",n),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...qj().overlay},{motionPreset:l}=Wj();return gc(zz,{...o||("none"===l?{}:jz),__css:s,ref:t,className:a,...i})});Bz.displayName="ModalOverlay";const[Fz,qz]=De(),Uz={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function Wz(e){var t;const{isOpen:n,onClose:r,placement:o="right",children:i,...a}=e,s=Vy(),l=null==(t=s.components)?void 0:t.Drawer,c=function(e,t){var n,r;if(e)return null!=(r=null==(n=Uz[e])?void 0:n[t])?r:e}(o,s.direction);return gc(Fz,{value:{placement:c},children:gc($j,{isOpen:n,onClose:r,styleConfig:l,...a,children:i})})}const $z={exit:{duration:.15,ease:$R.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},Vz={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{var o;const{exit:i}=KR({direction:e});return{...i,transition:null!=(o=null==t?void 0:t.exit)?o:XR($z.exit,r),transitionEnd:null==n?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{var o;const{enter:i}=KR({direction:e});return{...i,transition:null!=(o=null==n?void 0:n.enter)?o:ZR($z.enter,r),transitionEnd:null==t?void 0:t.enter}}},Hz=K.exports.forwardRef(function(e,t){const{direction:n="right",style:r,unmountOnExit:o,in:i,className:a,transition:s,transitionEnd:l,delay:c,motionProps:u,animatePresenceProps:d,...f}=e,h=KR({direction:n}),p=Object.assign({position:"fixed"},h.position,r),g=i||o?"enter":"exit",m={transitionEnd:l,transition:s,direction:n,delay:c};return gc(my,{...d,custom:m,children:(!o||i&&o)&&gc(cy.div,{...f,ref:t,initial:"exit",className:Ie("chakra-slide",a),animate:g,exit:"exit",custom:m,variants:Vz,style:p,...u})})});Hz.displayName="Slide";const Yz=Dy(Hz),Gz=zy((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:c}=Wj(),u=s(a,t),d=l(i),f=Ie("chakra-modal__content",n),h=qj(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:m}=qz();return gc(Cz,{children:gc(Dy.div,{...d,className:"chakra-modal__content-container",__css:g,children:gc(Yz,{motionProps:o,direction:m,in:c,className:f,...u,__css:p,children:r})})})});Gz.displayName="DrawerContent";const[Kz,Qz]=De({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[Zz,Xz]=De({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Popover />\" "}),Jz={click:"click",hover:"hover"};function eB(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:o,returnFocusOnClose:i=!0,autoFocus:a=!0,arrowSize:s,arrowShadowColor:l,trigger:c=Jz.click,openDelay:u=200,closeDelay:d=200,isLazy:f,lazyBehavior:h="unmount",computePositionOnMount:p,...g}=e,{isOpen:m,onClose:v,onOpen:b,onToggle:y}=st(e),[x,w]=K.exports.useState(i);K.exports.useEffect(()=>w(i),[i]);const k=K.exports.useRef(null),_=K.exports.useRef(null),S=K.exports.useRef(null),C=K.exports.useRef(!1),E=K.exports.useRef(!1);m&&(E.current=!0);const[A,O]=K.exports.useState(!1),[T,N]=K.exports.useState(!1),R=K.exports.useId(),P=null!=o?o:R,[M,L,D,I]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>`${e}-${P}`),{referenceRef:j,getArrowProps:z,getPopperProps:B,getArrowInnerProps:F,forceUpdate:q}=rj({...g,enabled:m||!!p}),U=it({isOpen:m,ref:S});!function(e){const{ref:t,elements:n,enabled:r}=e,o=()=>{var e,n;return null!=(n=null==(e=t.current)?void 0:e.ownerDocument)?n:document};ot(o,"pointerdown",e=>{var i,a,s;if(!gt()||!r)return;const l=null!=(s=null==(a=null==(i=e.composedPath)?void 0:i.call(e))?void 0:a[0])?s:e.target,c=(null!=n?n:[t]).some(e=>{const t="current"in e?e.current:e;return(null==t?void 0:t.contains(l))||t===l});o().activeElement!==l&&c&&(e.preventDefault(),l.focus())})}({enabled:m,ref:_}),dt(S,{focusRef:_,visible:m,shouldFocus:x&&c===Jz.click}),function(e,t=ft){const{focusRef:n,preventScroll:r,shouldFocus:o,visible:i}=t,a="current"in e?e.current:e,s=o&&i,l=K.exports.useRef(s),c=K.exports.useRef(i);lt(()=>{!c.current&&i&&(l.current=s),c.current=i},[i,s]);const u=K.exports.useCallback(()=>{if(i&&a&&l.current&&(l.current=!1,!a.contains(document.activeElement)))if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus({preventScroll:r})});else{const e=qe(a);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}},[i,r,a,n]);ct(()=>{u()},[u]),ot(a,"transitionend",u)}(S,{focusRef:r,visible:m,shouldFocus:a&&c===Jz.click}),xt({enabled:m&&t,ref:S,handler(e){var t,n;const r=null!=(n=null==(t=e.composedPath)?void 0:t.call(e)[0])?n:[e.target];tB(_.current,r)||(r&&w(!ze(r)),v())}});const W=We({wasSelected:E.current,enabled:f,mode:h,isSelected:U.present}),$=K.exports.useCallback((e={},r=null)=>{const o={...e,style:{...e.style,transformOrigin:WI.transformOrigin.varRef,[WI.arrowSize.var]:s?`${s}px`:void 0,[WI.arrowShadowColor.var]:l},ref:bt(S,r),children:W?e.children:null,id:L,tabIndex:-1,role:"dialog",onKeyDown:H(e.onKeyDown,e=>{e.nativeEvent.isComposing||n&&"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),v())}),onBlur:H(e.onBlur,e=>{const n=nB(e),r=tB(S.current,n),o=tB(_.current,n),i=!r&&!o;n&&w(!ze(n)),m&&t&&i&&v()}),"aria-labelledby":A?D:void 0,"aria-describedby":T?I:void 0};return c===Jz.hover&&(o.role="tooltip",o.onMouseEnter=H(e.onMouseEnter,()=>{C.current=!0}),o.onMouseLeave=H(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(C.current=!1,setTimeout(()=>v(),d))})),o},[W,L,A,D,T,I,c,n,v,m,t,d,l,s]),V=K.exports.useCallback((e={},t=null)=>B({...e,style:{visibility:m?"visible":"hidden",...e.style}},t),[m,B]),Y=K.exports.useCallback((e,t=null)=>({...e,ref:bt(t,k,j)}),[k,j]),G=K.exports.useRef(void 0),Q=K.exports.useRef(void 0),Z=K.exports.useCallback(e=>{null==k.current&&j(e)},[j]),X=K.exports.useCallback((e={},n=null)=>{const r={...e,ref:bt(_,n,Z),id:M,"aria-haspopup":"dialog","aria-expanded":m,"aria-controls":L};return c===Jz.click&&(r.onClick=H(e.onClick,y)),c===Jz.hover&&(r.onFocus=H(e.onFocus,()=>{void 0===G.current&&b()}),r.onBlur=H(e.onBlur,e=>{const n=nB(e),r=!tB(S.current,n);m&&t&&r&&v()}),r.onKeyDown=H(e.onKeyDown,e=>{"Escape"===e.key&&v()}),r.onMouseEnter=H(e.onMouseEnter,()=>{C.current=!0,G.current=window.setTimeout(()=>b(),u)}),r.onMouseLeave=H(e.onMouseLeave,()=>{C.current=!1,G.current&&(clearTimeout(G.current),G.current=void 0),Q.current=window.setTimeout(()=>{!1===C.current&&v()},d)})),r},[M,m,L,c,Z,y,b,t,v,u,d]);K.exports.useEffect(()=>()=>{G.current&&clearTimeout(G.current),Q.current&&clearTimeout(Q.current)},[]);const J=K.exports.useCallback((e={},t=null)=>({...e,id:D,ref:bt(t,e=>{O(!!e)})}),[D]),ee=K.exports.useCallback((e={},t=null)=>({...e,id:I,ref:bt(t,e=>{N(!!e)})}),[I]);return{forceUpdate:q,isOpen:m,onAnimationComplete:U.onComplete,onClose:v,getAnchorProps:Y,getArrowProps:z,getArrowInnerProps:F,getPopoverPositionerProps:V,getPopoverProps:$,getTriggerProps:X,getHeaderProps:J,getBodyProps:ee}}function tB(e,t){return e===t||(null==e?void 0:e.contains(t))}function nB(e){var t;const n=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:n}function rB(e){const t=Ky("Popover",e),{children:n,...r}=cr(e),o=eB({...r,direction:Vy().direction});return gc(Kz,{value:o,children:gc(Zz,{value:t,children:Ze(n,{isOpen:o.isOpen,onClose:o.onClose,forceUpdate:o.forceUpdate})})})}function oB(e){var t;const n=K.exports.version;return"string"!=typeof n||n.startsWith("18.")?null==e?void 0:e.ref:null==(t=null==e?void 0:e.props)?void 0:t.ref}rB.displayName="Popover";const iB=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function aB(e){var t;const{bg:n,bgColor:r,backgroundColor:o,shadow:i,boxShadow:a,shadowColor:s,...l}=e,{getArrowProps:c,getArrowInnerProps:u}=Qz(),d=Xz(),f=null!=(t=null!=n?n:r)?t:o,h=null!=i?i:a;return gc(Dy.div,{...c(),className:"chakra-popover__arrow-positioner",children:gc(Dy.div,{className:Ie("chakra-popover__arrow",e.className),...u(l),__css:{"--popper-arrow-shadow-color":iB("colors",s),"--popper-arrow-bg":iB("colors",f),"--popper-arrow-shadow":iB("shadows",h),...d.arrow}})})}aB.displayName="PopoverArrow";const sB=zy(function(e,t){const{getBodyProps:n}=Qz(),r=Xz();return gc(Dy.div,{...n(e,t),className:Ie("chakra-popover__body",e.className),__css:r.body})});sB.displayName="PopoverBody";const lB=zy(function(e,t){const{onClose:n}=Qz(),r=Xz();return gc(dx,{size:"sm",onClick:n,className:Ie("chakra-popover__close-btn",e.className),__css:r.closeButton,ref:t,...e})});function cB(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}lB.displayName="PopoverCloseButton";const uB={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},dB=Dy(cy.section),fB=zy(function(e,t){const{variants:n=uB,...r}=e,{isOpen:o}=Qz();return gc(dB,{ref:t,variants:cB(n),initial:!1,animate:o?"enter":"exit",...r})});fB.displayName="PopoverTransition";const hB=zy(function(e,t){const{rootProps:n,motionProps:r,...o}=e,{getPopoverProps:i,getPopoverPositionerProps:a,onAnimationComplete:s}=Qz(),l=Xz(),c={position:"relative",display:"flex",flexDirection:"column",...l.content};return gc(Dy.div,{...a(n),__css:l.popper,className:"chakra-popover__popper",children:gc(fB,{...r,...i(o,t),onAnimationComplete:V(s,o.onAnimationComplete),className:Ie("chakra-popover__content",e.className),__css:c})})});function pB(e){const t=K.exports.Children.only(e.children),{getTriggerProps:n}=Qz();return gc(pc,{children:K.exports.cloneElement(t,n(t.props,oB(t)))})}function gB(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:i,isFocusable:a,isNative:s,...l}=e,[c,u]=K.exports.useState(r||""),d=void 0!==n,f=d?n:c,h=K.exports.useRef(null),p=K.exports.useCallback(()=>{const e=h.current;if(!e)return;let t="input:not(:disabled):checked";const n=e.querySelector(t);if(n)return void n.focus();t="input:not(:disabled)";const r=e.querySelector(t);null==r||r.focus()},[]),g=K.exports.useId(),m=o||`radio-${g}`,v=K.exports.useCallback(e=>{const n=function(e){return e&&I(e)&&I(e.target)}(e)?e.target.value:e;d||u(n),null==t||t(String(n))},[t,d]);return{getRootProps:K.exports.useCallback((e={},t=null)=>({...e,ref:bt(t,h),role:"radiogroup"}),[]),getRadioProps:K.exports.useCallback((e={},t=null)=>{const n=s?"checked":"isChecked";return{...e,ref:t,name:m,[n]:null!=f?e.value===f:void 0,onChange(e){v(e)},"data-radiogroup":!0}},[s,m,v,f]),name:m,ref:h,focus:p,setValue:u,value:f,onChange:v,isDisabled:i,isFocusable:a,htmlProps:l}}hB.displayName="PopoverContent",pB.displayName="PopoverTrigger";const[mB,vB]=De({name:"RadioGroupContext",strict:!1}),bB=zy((e,t)=>{const{colorScheme:n,size:r,variant:o,children:i,className:a,isDisabled:s,isFocusable:l,...c}=e,{value:u,onChange:d,getRootProps:f,name:h,htmlProps:p}=gB(c),g=K.exports.useMemo(()=>({name:h,size:r,onChange:d,colorScheme:n,value:u,variant:o,isDisabled:s,isFocusable:l}),[h,r,d,n,u,o,s,l]);return gc(mB,{value:g,children:gc(Dy.div,{...f(p,t),className:Ie("chakra-radio-group",a),children:i})})});function yB(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:i,isRequired:a,onChange:s,isInvalid:l,name:c,value:u,id:d,"data-radiogroup":f,"aria-describedby":h,...p}=e,g=`radio-${K.exports.useId()}`,m=IP(),v=vB();let b=!!m&&!(!!v||!!f)?m.id:g;b=null!=d?d:b;const y=null!=o?o:null==m?void 0:m.isDisabled,x=null!=i?i:null==m?void 0:m.isReadOnly,w=null!=a?a:null==m?void 0:m.isRequired,k=null!=l?l:null==m?void 0:m.isInvalid,[_,S]=K.exports.useState(!1),[C,E]=K.exports.useState(!1),[A,O]=K.exports.useState(!1),[T,N]=K.exports.useState(Boolean(t)),R=void 0!==n,P=R?n:T,D=K.exports.useRef(!1);K.exports.useEffect(()=>PP(e=>{D.current=e}),[]);const I=K.exports.useCallback(e=>{x||y?e.preventDefault():(R||N(e.currentTarget.checked),null==s||s(e))},[R,y,x,s]),j=K.exports.useCallback(e=>{" "===e.key&&O(!0)},[O]),z=K.exports.useCallback(e=>{" "===e.key&&O(!1)},[O]),B=K.exports.useCallback((e={},t=null)=>({...e,ref:t,"data-active":M(A),"data-hover":M(C),"data-disabled":M(y),"data-invalid":M(k),"data-checked":M(P),"data-focus":M(_),"data-focus-visible":M(_&&D.current),"data-readonly":M(x),"aria-hidden":!0,onMouseDown:H(e.onMouseDown,()=>O(!0)),onMouseUp:H(e.onMouseUp,()=>O(!1)),onMouseEnter:H(e.onMouseEnter,()=>E(!0)),onMouseLeave:H(e.onMouseLeave,()=>E(!1))}),[A,C,y,k,P,_,x]),{onFocus:F,onBlur:q}=null!=m?m:{},U=K.exports.useCallback((e={},t=null)=>{const n=y&&!r;return{...e,id:b,ref:t,type:"radio",name:c,value:u,onChange:H(e.onChange,I),onBlur:H(q,e.onBlur,()=>S(!1)),onFocus:H(F,e.onFocus,()=>S(!0)),onKeyDown:H(e.onKeyDown,j),onKeyUp:H(e.onKeyUp,z),checked:P,disabled:n,readOnly:x,required:w,"aria-invalid":L(k),"aria-disabled":L(n),"aria-required":L(w),"data-readonly":M(x),"aria-describedby":h,style:qP}},[y,r,b,c,u,I,q,F,j,z,P,x,w,k,h]);return{state:{isInvalid:k,isFocused:_,isChecked:P,isActive:A,isHovered:C,isDisabled:y,isReadOnly:x,isRequired:w},getRadioProps:B,getInputProps:U,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:H(e.onMouseDown,xB),"data-disabled":M(y),"data-checked":M(P),"data-invalid":M(k)}),getRootProps:(e,t=null)=>({htmlFor:b,...e,ref:t,"data-disabled":M(y),"data-checked":M(P),"data-invalid":M(k)}),htmlProps:p}}function xB(e){e.preventDefault(),e.stopPropagation()}bB.displayName="RadioGroup";const wB=zy((e,t)=>{var n;const r=vB(),{onChange:o,value:i}=e,a=Ky("Radio",{...r,...e}),s=cr(e),{spacing:l="0.5rem",children:c,isDisabled:u=(null==r?void 0:r.isDisabled),isFocusable:d=(null==r?void 0:r.isFocusable),inputProps:f,...h}=s;let p=e.isChecked;null!=(null==r?void 0:r.value)&&null!=i&&(p=r.value===i);let g=o;(null==r?void 0:r.onChange)&&null!=i&&(g=V(r.onChange,o));const m=null!=(n=null==e?void 0:e.name)?n:null==r?void 0:r.name,{getInputProps:v,getRadioProps:b,getLabelProps:y,getRootProps:x,htmlProps:w}=yB({...h,isChecked:p,isFocusable:d,isDisabled:u,onChange:g,name:m}),[k,_]=Je(w,Xn),S=b(_),C=v(f,t),E=y(),A=Object.assign({},k,x()),O={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...a.container},T={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...a.control},N={userSelect:"none",marginStart:l,...a.label};return mc(Dy.label,{className:"chakra-radio",...A,__css:O,children:[gc("input",{className:"chakra-radio__input",...C}),gc(Dy.span,{className:"chakra-radio__control",...S,__css:T}),c&&gc(Dy.span,{className:"chakra-radio__label",...E,__css:N,children:c})]})});wB.displayName="Radio";const kB=zy(function(e,t){const{children:n,placeholder:r,className:o,...i}=e;return mc(Dy.select,{...i,ref:t,className:Ie("chakra-select",o),children:[r&&gc("option",{value:"",children:r}),n]})});kB.displayName="SelectField";const _B=zy((e,t)=>{var n;const r=Ky("Select",e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:h,...p}=cr(e),[g,m]=Je(p,Xn),v=BP(m),b={width:"100%",height:"fit-content",position:"relative",color:s},y={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...null==(n=r.field)?void 0:n._focus}};return mc(Dy.div,{className:"chakra-select__wrapper",__css:b,...g,...o,children:[gc(kB,{ref:t,height:null!=c?c:l,minH:null!=u?u:d,placeholder:i,...v,__css:y,children:e.children}),gc(EB,{"data-disabled":M(v.disabled),...(f||s)&&{color:f||s},__css:r.icon,...h&&{fontSize:h},children:a})]})});_B.displayName="Select";const SB=e=>gc("svg",{viewBox:"0 0 24 24",...e,children:gc("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),CB=Dy("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),EB=e=>{const{children:t=gc(SB,{}),...n}=e,r=K.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return gc(CB,{...n,className:"chakra-select__icon-wrapper",children:K.exports.isValidElement(t)?r:null})};function AB(e){const{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}function OB(e){var t;const{min:n=0,max:r=100,onChange:o,value:i,defaultValue:a,isReversed:s,direction:l="ltr",orientation:c="horizontal",id:u,isDisabled:d,isReadOnly:f,onChangeStart:h,onChangeEnd:p,step:g=1,getAriaValueText:m,"aria-valuetext":v,"aria-label":b,"aria-labelledby":y,name:x,focusThumbOnChange:w=!0,...k}=e,_=rt(h),S=rt(p),C=rt(m),E=function(e){const{isReversed:t,direction:n,orientation:r}=e;return"ltr"===n||"vertical"===r?t:!t}({isReversed:s,direction:l,orientation:c}),[A,O]=at({value:i,defaultValue:null!=a?a:NB(n,r),onChange:o}),[T,N]=K.exports.useState(!1),[R,D]=K.exports.useState(!1),I=!(d||f),j=(r-n)/10,z=g||(r-n)/100,B=Ye(A,n,r),F=Ve(E?r-B+n:B,n,r),q="vertical"===c,U=vt({min:n,max:r,step:g,isDisabled:d,value:B,isInteractive:I,isReversed:E,isVertical:q,eventSource:null,focusThumbOnChange:w,orientation:c}),W=K.exports.useRef(null),$=K.exports.useRef(null),V=K.exports.useRef(null),Y=K.exports.useId(),G=null!=u?u:Y,[Q,Z]=[`slider-thumb-${G}`,`slider-track-${G}`],X=K.exports.useCallback(e=>{var t,n;if(!W.current)return;const r=U.current;r.eventSource="pointer";const o=W.current.getBoundingClientRect(),{clientX:i,clientY:a}=null!=(n=null==(t=e.touches)?void 0:t[0])?n:e;let s=(q?o.bottom-a:i-o.left)/(q?o.height:o.width);E&&(s=1-s);let l=function(e,t,n){return(n-t)*e+t}(s,r.min,r.max);return r.step&&(l=parseFloat(He(l,r.min,r.step))),l=Ye(l,r.min,r.max),l},[q,E,U]),J=K.exports.useCallback(e=>{const t=U.current;t.isInteractive&&(e=Ye(e=parseFloat(He(e,t.min,z)),t.min,t.max),O(e))},[z,O,U]),ee=K.exports.useMemo(()=>({stepUp(e=z){J(E?B-e:B+e)},stepDown(e=z){J(E?B+e:B-e)},reset(){J(a||0)},stepTo(e){J(e)}}),[J,E,B,z,a]),te=K.exports.useCallback(e=>{const t=U.current,n={ArrowRight:()=>ee.stepUp(),ArrowUp:()=>ee.stepUp(),ArrowLeft:()=>ee.stepDown(),ArrowDown:()=>ee.stepDown(),PageUp:()=>ee.stepUp(j),PageDown:()=>ee.stepDown(j),Home:()=>J(t.min),End:()=>J(t.max)}[e.key];n&&(e.preventDefault(),e.stopPropagation(),n(e),t.eventSource="keyboard")},[ee,J,j,U]),ne=null!=(t=null==C?void 0:C(B))?t:v,{getThumbStyle:re,rootStyle:oe,trackStyle:ie,innerTrackStyle:ae}=K.exports.useMemo(()=>{const e=U.current;return function(e){const{orientation:t,thumbPercents:n,isReversed:r}=e,o={position:"absolute",...AB({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},i=1===n.length,a=[0,r?100-n[0]:n[0]],s=i?a:n;let l=s[0];!i&&r&&(l=100-l);const c=Math.abs(s[s.length-1]-s[0]);return{trackStyle:o,innerTrackStyle:{...o,...AB({orientation:t,vertical:r?{height:`${c}%`,top:`${l}%`}:{height:`${c}%`,bottom:`${l}%`},horizontal:r?{width:`${c}%`,right:`${l}%`}:{width:`${c}%`,left:`${l}%`}})},rootStyle:{position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},getThumbStyle:e=>({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...AB({orientation:t,vertical:{bottom:`${n[e]}%`,transform:"translate(-50%, 50%) scale(var(--slider-thumb-scale, 1))"},horizontal:{left:`${n[e]}%`,transform:"translate(-50%, -50%) scale(var(--slider-thumb-scale, 1))"}})})}}({isReversed:E,orientation:e.orientation,thumbPercents:[F]})},[E,F,U]),se=K.exports.useCallback(()=>{U.current.focusThumbOnChange&&setTimeout(()=>{var e;return null==(e=$.current)?void 0:e.focus()})},[U]);function le(e){const t=X(e);null!=t&&t!==U.current.value&&O(t)}ct(()=>{const e=U.current;se(),"keyboard"===e.eventSource&&(null==S||S(e.value))},[B,S]),function(e,t){const{onPan:n,onPanStart:r,onPanEnd:o,onPanSessionStart:i,onPanSessionEnd:a,threshold:s}=t,l=Boolean(n||r||o||i||a),c=K.exports.useRef(null),u=vt({onSessionStart:i,onSessionEnd:a,onStart:r,onMove:n,onEnd(e,t){c.current=null,null==o||o(e,t)}});K.exports.useEffect(()=>{var e;null==(e=c.current)||e.updateHandlers(u.current)}),K.exports.useEffect(()=>{const t=e.current;if(t&&l)return P(t,"pointerdown",function(e){c.current=new Ft(e,u.current,s)})},[e,l,u,s]),K.exports.useEffect(()=>()=>{var e;null==(e=c.current)||e.end(),c.current=null},[])}(V,{onPanSessionStart(e){const t=U.current;t.isInteractive&&(N(!0),se(),le(e),null==_||_(t.value))},onPanSessionEnd(){const e=U.current;e.isInteractive&&(N(!1),null==S||S(e.value))},onPan(e){U.current.isInteractive&&le(e)}});const ce=K.exports.useCallback((e={},t=null)=>({...e,...k,ref:bt(t,V),tabIndex:-1,"aria-disabled":L(d),"data-focused":M(R),style:{...e.style,...oe}}),[k,d,R,oe]),ue=K.exports.useCallback((e={},t=null)=>({...e,ref:bt(t,W),id:Z,"data-disabled":M(d),style:{...e.style,...ie}}),[d,Z,ie]),de=K.exports.useCallback((e={},t=null)=>({...e,ref:t,style:{...e.style,...ae}}),[ae]),fe=K.exports.useCallback((e={},t=null)=>({...e,ref:bt(t,$),role:"slider",tabIndex:I?0:void 0,id:Q,"data-active":M(T),"aria-valuetext":ne,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":B,"aria-orientation":c,"aria-disabled":L(d),"aria-readonly":L(f),"aria-label":b,"aria-labelledby":b?void 0:y,style:{...e.style,...re(0)},onKeyDown:H(e.onKeyDown,te),onFocus:H(e.onFocus,()=>D(!0)),onBlur:H(e.onBlur,()=>D(!1))}),[I,Q,T,ne,n,r,B,c,d,f,b,y,re,te]),he=K.exports.useCallback((e,t=null)=>{const o=!(e.value<n||e.value>r),i=B>=e.value,a=Ve(e.value,n,r),s={position:"absolute",pointerEvents:"none",...TB({orientation:c,vertical:{bottom:E?100-a+"%":`${a}%`},horizontal:{left:E?100-a+"%":`${a}%`}})};return{...e,ref:t,role:"presentation","aria-hidden":!0,"data-disabled":M(d),"data-invalid":M(!o),"data-highlighted":M(i),style:{...e.style,...s}}},[d,E,r,n,c,B]),pe=K.exports.useCallback((e={},t=null)=>({...e,ref:t,type:"hidden",value:B,name:x}),[x,B]);return{state:{value:B,isFocused:R,isDragging:T},actions:ee,getRootProps:ce,getTrackProps:ue,getInnerTrackProps:de,getThumbProps:fe,getMarkerProps:he,getInputProps:pe}}function TB(e){const{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}function NB(e,t){return t<e?e:e+(t-e)/2}EB.displayName="SelectIcon";const[RB,PB]=De({name:"SliderContext",hookName:"useSliderContext",providerName:"<Slider />"}),[MB,LB]=De({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:"<Slider />"}),DB=zy((e,t)=>{var n;const r={...e,orientation:null!=(n=null==e?void 0:e.orientation)?n:"horizontal"},o=Ky("Slider",r),i=cr(r),{direction:a}=Vy();i.direction=a;const{getInputProps:s,getRootProps:l,...c}=OB(i),u=l(),d=s({},t);return gc(RB,{value:c,children:gc(MB,{value:o,children:mc(Dy.div,{...u,className:Ie("chakra-slider",r.className),__css:o.container,children:[r.children,gc("input",{...d})]})})})});DB.displayName="Slider";const IB=zy((e,t)=>{const{getThumbProps:n}=PB(),r=LB(),o=n(e,t);return gc(Dy.div,{...o,className:Ie("chakra-slider__thumb",e.className),__css:r.thumb})});IB.displayName="SliderThumb";const jB=zy((e,t)=>{const{getTrackProps:n}=PB(),r=LB(),o=n(e,t);return gc(Dy.div,{...o,className:Ie("chakra-slider__track",e.className),__css:r.track})});jB.displayName="SliderTrack";const zB=zy((e,t)=>{const{getInnerTrackProps:n}=PB(),r=LB(),o=n(e,t);return gc(Dy.div,{...o,className:Ie("chakra-slider__filled-track",e.className),__css:r.filledTrack})});zB.displayName="SliderFilledTrack";zy((e,t)=>{const{getMarkerProps:n}=PB(),r=LB(),o=n(e,t);return gc(Dy.div,{...o,className:Ie("chakra-slider__marker",e.className),__css:r.mark})}).displayName="SliderMark";const BB=e=>gc(Dy.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});BB.displayName="StackItem";const FB=zy((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:c,className:u,shouldWrapChildren:d,...f}=e,h=n?"row":null!=r?r:"column",p=K.exports.useMemo(()=>function(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Qe(n,e=>r[e])}}({spacing:a,direction:h}),[a,h]),g=!!c,m=!d&&!g,v=K.exports.useMemo(()=>{const e=Me(l);return m?e:e.map((t,n)=>{const r=void 0!==t.key?t.key:n,o=n+1===e.length,i=d?gc(BB,{children:t},r):t;if(!g)return i;const a=K.exports.cloneElement(c,{__css:p}),s=o?null:a;return mc(K.exports.Fragment,{children:[i,s]},r)})},[c,p,g,m,d,l]),b=Ie("chakra-stack",u);return gc(Dy.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:s,gap:g?void 0:a,className:b,...f,children:v})});FB.displayName="Stack";const qB=zy((e,t)=>gc(FB,{align:"center",...e,direction:"row",ref:t}));qB.displayName="HStack";const UB=zy((e,t)=>gc(FB,{align:"center",...e,direction:"column",ref:t}));UB.displayName="VStack";const WB=zy(function(e,t){const n=Ky("Switch",e),{spacing:r="0.5rem",children:o,...i}=cr(e),{getIndicatorProps:a,getInputProps:s,getCheckboxProps:l,getRootProps:c,getLabelProps:u}=UP(i),d=K.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),f=K.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),h=K.exports.useMemo(()=>({userSelect:"none",marginStart:r,...n.label}),[r,n.label]);return mc(Dy.label,{...c(),className:Ie("chakra-switch",e.className),__css:d,children:[gc("input",{className:"chakra-switch__input",...s({},t)}),gc(Dy.span,{...l(),className:"chakra-switch__track",__css:f,children:gc(Dy.span,{__css:n.thumb,className:"chakra-switch__thumb",...a()})}),o&&gc(Dy.span,{className:"chakra-switch__label",...u(),__css:h,children:o})]})});WB.displayName="Switch";const[$B,VB]=De({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),HB=zy((e,t)=>{const n=Ky("Table",e),{className:r,layout:o,...i}=cr(e);return gc($B,{value:n,children:gc(Dy.table,{ref:t,__css:{tableLayout:o,...n.table},className:Ie("chakra-table",r),...i})})});HB.displayName="Table";const YB=zy((e,t)=>{const{placement:n="bottom",...r}=e,o=VB();return gc(Dy.caption,{...r,ref:t,__css:{...o.caption,captionSide:n}})});YB.displayName="TableCaption";const GB=zy((e,t)=>{var n;const{overflow:r,overflowX:o,className:i,...a}=e;return gc(Dy.div,{ref:t,className:Ie("chakra-table__container",i),...a,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(n=null!=r?r:o)?n:"auto",overflowY:"hidden",maxWidth:"100%"}})}),KB=zy((e,t)=>{const n=VB();return gc(Dy.tbody,{...e,ref:t,__css:n.tbody})}),QB=zy(({isNumeric:e,...t},n)=>{const r=VB();return gc(Dy.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),ZB=zy(({isNumeric:e,...t},n)=>{const r=VB();return gc(Dy.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),XB=zy((e,t)=>{const n=VB();return gc(Dy.thead,{...e,ref:t,__css:n.thead})}),JB=zy((e,t)=>{const n=VB();return gc(Dy.tr,{...e,ref:t,__css:n.tr})}),[eF,tF,nF,rF]=WR();const[oF,iF]=De({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});const[aF,sF]=De({});function lF(e,t){return`${e}--tab-${t}`}function cF(e,t){return`${e}--tabpanel-${t}`}const[uF,dF]=De({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),fF=zy(function(e,t){const n=Ky("Tabs",e),{children:r,className:o,...i}=cr(e),{htmlProps:a,descendants:s,...l}=function(e){var t;const{defaultIndex:n,onChange:r,index:o,isManual:i,isLazy:a,lazyBehavior:s="unmount",orientation:l="horizontal",direction:c="ltr",...u}=e,[d,f]=K.exports.useState(null!=n?n:0),[h,p]=at({defaultValue:null!=n?n:0,value:o,onChange:r});K.exports.useEffect(()=>{null!=o&&f(o)},[o]);const g=nF(),m=K.exports.useId();return{id:`tabs-${null!=(t=e.id)?t:m}`,selectedIndex:h,focusedIndex:d,setSelectedIndex:p,setFocusedIndex:f,isManual:i,isLazy:a,lazyBehavior:s,orientation:l,descendants:g,direction:c,htmlProps:u}}(i),c=K.exports.useMemo(()=>l,[l]),{isFitted:u,...d}=a,f={position:"relative",...n.root};return gc(eF,{value:s,children:gc(oF,{value:c,children:gc(uF,{value:n,children:gc(Dy.div,{className:Ie("chakra-tabs",o),ref:t,...d,__css:f,children:r})})})})});fF.displayName="Tabs";const hF=zy(function(e,t){const n=dF(),r=function(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:o,isManual:i,id:a,setFocusedIndex:s,selectedIndex:l}=iF(),{index:c,register:u}=rF({disabled:t&&!n}),d=c===l;return{...aj({...r,ref:bt(u,e.ref),isDisabled:t,isFocusable:n,onClick:H(e.onClick,()=>{o(c)})}),id:lF(a,c),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":cF(a,c),onFocus:t?void 0:H(e.onFocus,()=>{s(c),!i&&(!t||!n)&&o(c)})}}({...e,ref:t}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return gc(Dy.button,{...r,className:Ie("chakra-tabs__tab",e.className),__css:o})});hF.displayName="Tab";const pF=zy(function(e,t){const n=function(e){const{focusedIndex:t,orientation:n,direction:r}=iF(),o=tF(),i=K.exports.useCallback(e=>{const i=()=>{var e;const n=o.nextEnabled(t);n&&(null==(e=n.node)||e.focus())},a=()=>{var e;const n=o.prevEnabled(t);n&&(null==(e=n.node)||e.focus())},s="horizontal"===n,l="vertical"===n,c=e.key,u="ltr"===r?"ArrowLeft":"ArrowRight",d="ltr"===r?"ArrowRight":"ArrowLeft",f={[u]:()=>s&&a(),[d]:()=>s&&i(),ArrowDown:()=>l&&i(),ArrowUp:()=>l&&a(),Home:()=>{var e;const t=o.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=o.lastEnabled();t&&(null==(e=t.node)||e.focus())}}[c];f&&(e.preventDefault(),f(e))},[o,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:H(e.onKeyDown,i)}}({...e,ref:t}),r={display:"flex",...dF().tablist};return gc(Dy.div,{...n,className:Ie("chakra-tabs__tablist",e.className),__css:r})});pF.displayName="TabList";const gF=zy(function(e,t){const n=function(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:o}=iF(),{isSelected:i,id:a,tabId:s}=sF(),l=K.exports.useRef(!1);return i&&(l.current=!0),{tabIndex:0,...n,children:We({wasSelected:l.current,isSelected:i,enabled:r,mode:o})?t:null,role:"tabpanel","aria-labelledby":s,hidden:!i,id:a}}({...e,ref:t}),r=dF();return gc(Dy.div,{outline:"0",...n,className:Ie("chakra-tabs__tab-panel",e.className),__css:r.tabpanel})});gF.displayName="TabPanel";const mF=zy(function(e,t){const n=function(e){const t=iF(),{id:n,selectedIndex:r}=t,o=Me(e.children).map((e,t)=>{var o;return K.exports.createElement(aF,{key:null!=(o=e.key)?o:t,value:{isSelected:t===r,id:cF(n,t),tabId:lF(n,t),selectedIndex:r}},e)});return{...e,children:o}}(e),r=dF();return gc(Dy.div,{...n,width:"100%",ref:t,className:Ie("chakra-tabs__tab-panels",e.className),__css:r.tabpanels})});mF.displayName="TabPanels";const vF=["h","minH","height","minHeight"],bF=zy((e,t)=>{const n=Gy("Textarea",e),{className:r,rows:o,...i}=cr(e),a=BP(i),s=o?Ge(n,vF):n;return gc(Dy.textarea,{ref:t,rows:o,...a,className:Ie("chakra-textarea",r),__css:s})});function yF(e,t){var n;const r=null!=e?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!=(n=null==o?void 0:o[t])?n:r}function xF(e){const{theme:t}=Hy(),n=PR();return K.exports.useMemo(()=>function(e,t){const n=n=>{var r;return{...t,...n,position:yF(null!=(r=null==n?void 0:n.position)?r:null==t?void 0:t.position,e)}},r=e=>{const t=n(e),r=hx(t);return px.notify(r,t)};return r.update=(e,t)=>{px.update(e,n(t))},r.promise=(e,t)=>{const n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...Ze(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...Ze(t.error,e)}))},r.closeAll=px.closeAll,r.close=px.close,r.isActive=px.isActive,r}(t.direction,{...n,...e}),[e,t.direction,n])}bF.displayName="Textarea";const wF={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},kF=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},_F=e=>{var t,n;return(null==(n=null==(t=e.current)?void 0:t.ownerDocument)?void 0:n.defaultView)||window};function SF(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:u,id:d,isOpen:f,defaultIsOpen:h,arrowSize:p=10,arrowShadowColor:g,arrowPadding:m,modifiers:v,isDisabled:b,gutter:y,offset:x,direction:w,...k}=e,{isOpen:_,onOpen:S,onClose:C}=st({isOpen:f,defaultIsOpen:h,onOpen:l,onClose:c}),{referenceRef:E,getPopperProps:A,getArrowInnerProps:O,getArrowProps:T}=rj({enabled:_,placement:u,arrowPadding:m,modifiers:v,gutter:y,offset:x,direction:w}),N=K.exports.useId(),R=`tooltip-${null!=d?d:N}`,P=K.exports.useRef(null),M=K.exports.useRef(void 0),L=K.exports.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=void 0)},[]),D=K.exports.useRef(void 0),I=K.exports.useCallback(()=>{D.current&&(clearTimeout(D.current),D.current=void 0)},[]),j=K.exports.useCallback(()=>{I(),C()},[C,I]),z=function(e,t){return K.exports.useEffect(()=>{const n=kF(e);return n.addEventListener(CF,t),()=>n.removeEventListener(CF,t)},[t,e]),()=>{const t=kF(e),n=_F(e);t.dispatchEvent(new n.CustomEvent(CF))}}(P,j),B=K.exports.useCallback(()=>{if(!b&&!M.current){_&&z();const e=_F(P);M.current=e.setTimeout(S,t)}},[z,b,_,S,t]),F=K.exports.useCallback(()=>{L();const e=_F(P);D.current=e.setTimeout(j,n)},[n,j,L]),q=K.exports.useCallback(()=>{_&&r&&F()},[r,F,_]),U=K.exports.useCallback(()=>{_&&a&&F()},[a,F,_]),W=K.exports.useCallback(e=>{_&&"Escape"===e.key&&F()},[_,F]);ot(()=>kF(P),"keydown",s?W:void 0),ot(()=>{if(!i)return null;const e=P.current;if(!e)return null;const t=Xe(e);return"body"===t.localName?_F(P):t},"scroll",()=>{_&&i&&j()},{passive:!0,capture:!0}),K.exports.useEffect(()=>{b&&(L(),_&&C())},[b,_,C,L]),K.exports.useEffect(()=>()=>{L(),I()},[L,I]),ot(()=>P.current,"pointerleave",F);const $=K.exports.useCallback((e={},t=null)=>({...e,ref:bt(P,t,E),onPointerEnter:H(e.onPointerEnter,e=>{"touch"!==e.pointerType&&B()}),onClick:H(e.onClick,q),onPointerDown:H(e.onPointerDown,U),onFocus:H(e.onFocus,B),onBlur:H(e.onBlur,F),"aria-describedby":_?R:void 0}),[B,F,U,_,R,q,E]),V=K.exports.useCallback((e={},t=null)=>A({...e,style:{...e.style,[WI.arrowSize.var]:p?`${p}px`:void 0,[WI.arrowShadowColor.var]:g}},t),[A,p,g]),Y=K.exports.useCallback((e={},t=null)=>{const n={...e.style,position:"relative",transformOrigin:WI.transformOrigin.varRef};return{ref:t,...k,...e,id:R,role:"tooltip",style:n}},[k,R]);return{isOpen:_,show:B,hide:F,getTriggerProps:$,getTooltipProps:Y,getTooltipPositionerProps:V,getArrowProps:T,getArrowInnerProps:O}}const CF="chakra-ui:close-tooltip";const EF=Dy(cy.div),AF=zy((e,t)=>{var n,r;const o=Gy("Tooltip",e),i=cr(e),a=Vy(),{children:s,label:l,shouldWrapChildren:c,"aria-label":u,hasArrow:d,bg:f,portalProps:h,background:p,backgroundColor:g,bgColor:m,motionProps:v,animatePresenceProps:b,...y}=i,x=null!=(r=null!=(n=null!=p?p:g)?n:f)?r:m;if(x){o.bg=x;const e=function(e,t,n){var r,o,i;return null!=(i=null==(o=null==(r=e.__cssMap)?void 0:r[`${t}.${n}`])?void 0:o.varRef)?i:n}(a,"colors",x);o[WI.arrowBg.var]=e}const w=SF({...y,direction:a.direction});let k;if(!K.exports.isValidElement(s)||c)k=gc(Dy.span,{display:"inline-block",tabIndex:0,...w.getTriggerProps(),children:s});else{const e=K.exports.Children.only(s);k=K.exports.cloneElement(e,w.getTriggerProps(e.props,oB(e)))}const _=!!u,S=w.getTooltipProps({},t),C=_?Ge(S,["role","id"]):S,E=Ke(S,["role","id"]);return l?mc(pc,{children:[k,gc(my,{...b,children:w.isOpen&&gc(NR,{...h,children:gc(Dy.div,{...w.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:mc(EF,{variants:wF,initial:"exit",animate:"enter",exit:"exit",...v,...C,__css:o,children:[l,_&&gc(Dy.span,{srOnly:!0,...E,children:u}),d&&gc(Dy.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:gc(Dy.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):gc(pc,{children:s})});AF.displayName="Tooltip";const OF=zy(function(e,t){const n=Gy("Heading",e),{className:r,...o}=cr(e);return gc(Dy.h2,{ref:t,className:Ie("chakra-heading",e.className),...o,__css:n})});OF.displayName="Heading";const TF=zy(function(e,t){const n=Gy("Text",e),{className:r,align:o,decoration:i,casing:a,...s}=cr(e),l=Le({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return gc(Dy.p,{ref:t,className:Ie("chakra-text",e.className),...l,...s,__css:n})});var NF;TF.displayName="Text";var RF=mx.exports;NF=RF.createRoot,RF.hydrateRoot;var PF=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==n}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),MF="undefined"==typeof window;function LF(){}function DF(e){return"number"==typeof e&&e>=0&&e!==1/0}function IF(e){return Array.isArray(e)?e:[e]}function jF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zF(e,t,n){return KF(e)?"function"==typeof t?wu({},n,{queryKey:e,queryFn:t}):wu({},t,{queryKey:e}):e}function BF(e,t,n){return KF(e)?[wu({},t,{queryKey:e}),n]:[e||{},t]}function FF(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,s=e.queryKey,l=e.stale;if(KF(s))if(r){if(t.queryHash!==UF(s,t.options))return!1}else if(!$F(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,i);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(("boolean"!=typeof o||t.isFetching()===o)&&!(a&&!a(t)))}function qF(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(KF(i)){if(!t.options.mutationKey)return!1;if(n){if(WF(t.options.mutationKey)!==WF(i))return!1}else if(!$F(t.options.mutationKey,i))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function UF(e,t){return((null==t?void 0:t.queryKeyHashFn)||WF)(e)}function WF(e){var t,n=IF(e);return t=n,JSON.stringify(t,function(e,t){return YF(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function $F(e,t){return VF(IF(e),IF(t))}function VF(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(function(n){return!VF(e[n],t[n])}))}function HF(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||YF(e)&&YF(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},s=0,l=0;l<i;l++){var c=n?l:o[l];a[c]=HF(e[c],t[c]),a[c]===e[c]&&s++}return r===i&&s===r?e:a}return t}function YF(e){if(!GF(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!GF(n)&&!!n.hasOwnProperty("isPrototypeOf")}function GF(e){return"[object Object]"===Object.prototype.toString.call(e)}function KF(e){return"string"==typeof e||Array.isArray(e)}function QF(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function ZF(){if("function"==typeof AbortController)return new AbortController}var XF=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!MF&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}PM(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(PF)),JF=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!MF&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}PM(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()})},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(e){e()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(PF));function eq(e){return Math.min(1e3*Math.pow(2,e),3e4)}function tq(e){return"function"==typeof(null==e?void 0:e.cancel)}var nq=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function rq(e){return e instanceof nq}var oq=function(e){var t,n,r,o,i=this,a=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){a=!0},this.continueRetry=function(){a=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){r=e,o=t});var s=function(t){i.isResolved||(i.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},l=function(t){i.isResolved||(i.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),o(t))};!function r(){if(!i.isResolved){var o;try{o=e.fn()}catch(c){o=Promise.reject(c)}t=function(e){if(!i.isResolved&&(l(new nq(e)),null==i.abort||i.abort(),tq(o)))try{o.cancel()}catch(t){}},i.isTransportCancelable=tq(o),Promise.resolve(o).then(s).catch(function(t){var o,s;if(!i.isResolved){var c,u=null!=(o=e.retry)?o:3,d=null!=(s=e.retryDelay)?s:eq,f="function"==typeof d?d(i.failureCount,t):d,h=!0===u||"number"==typeof u&&i.failureCount<u||"function"==typeof u&&u(i.failureCount,t);if(!a&&h)i.failureCount++,null==e.onFail||e.onFail(i.failureCount,t),(c=f,new Promise(function(e){setTimeout(e,c)})).then(function(){if(!XF.isFocused()||!JF.isOnline())return new Promise(function(t){n=t,i.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){n=void 0,i.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){a?l(t):r()});else l(t)}})}}()},iq=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):QF(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&QF(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),aq=new iq,sq=console;function lq(){return sq}var cq=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=wu({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),DF(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,i))?i=o:!1!==this.options.structuralSharing&&(i=HF(o,i)),this.dispatch({data:i,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),i},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(LF).catch(LF):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!jF(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,i=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var s=this.observers.find(function(e){return e.options.queryFn});s&&this.setOptions(s.options)}var l=IF(this.queryKey),c=ZF(),u={queryKey:l,pageParam:void 0,meta:this.meta};Object.defineProperty(u,"signal",{enumerable:!0,get:function(){if(c)return i.abortSignalConsumed=!0,c.signal}});var d,f,h={fetchOptions:t,options:this.options,queryKey:l,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(u)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(d=this.options.behavior)||d.onFetch(h));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=h.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(f=h.fetchOptions)?void 0:f.meta});return this.retryer=new oq({fn:h.fetchFn,abort:null==c||null==(o=c.abort)?void 0:o.bind(c),onSuccess:function(e){i.setData(e),null==i.cache.config.onSuccess||i.cache.config.onSuccess(e,i),0===i.cacheTime&&i.optionalRemove()},onError:function(e){rq(e)&&e.silent||i.dispatch({type:"error",error:e}),rq(e)||(null==i.cache.config.onError||i.cache.config.onError(e,i),lq().error(e)),0===i.cacheTime&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),aq.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return wu({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return wu({},e,{isPaused:!0});case"continue":return wu({},e,{isPaused:!1});case"fetch":return wu({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return wu({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return rq(o)&&o.revert&&this.revertState?wu({},this.revertState):wu({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return wu({},e,{isInvalidated:!0});case"setState":return wu({},e,t.state);default:return e}},e}(),uq=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}PM(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,i=null!=(r=t.queryHash)?r:UF(o,t),a=this.get(i);return a||(a=new cq({cache:this,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(a)),a},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;aq.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=BF(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(e){return FF(n,e)})},n.findAll=function(e,t){var n=BF(e,t)[0];return Object.keys(n).length>0?this.queries.filter(function(e){return FF(n,e)}):this.queries},n.notify=function(e){var t=this;aq.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){var e=this;aq.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},n.onOnline=function(){var e=this;aq.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(PF),dq=function(){function e(e){this.options=wu({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(LF).catch(LF)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),lq().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new oq({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return wu({},e,{failureCount:e.failureCount+1});case"pause":return wu({},e,{isPaused:!0});case"continue":return wu({},e,{isPaused:!1});case"loading":return wu({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return wu({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return wu({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return wu({},e,t.state);default:return e}}(this.state,e),aq.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}();var fq=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}PM(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new dq({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},n.clear=function(){var e=this;aq.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return qF(e,t)})},n.findAll=function(e){return this.mutations.filter(function(t){return qF(e,t)})},n.notify=function(e){var t=this;aq.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return aq.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(LF)})},Promise.resolve())})},t}(PF);function hq(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var pq=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new uq,this.mutationCache=e.mutationCache||new fq,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=XF.subscribe(function(){XF.isFocused()&&JF.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=JF.subscribe(function(){XF.isFocused()&&JF.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=BF(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(wu({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,n){var r=zF(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return aq.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var o=e.queryKey;return[o,r.setQueryData(o,t,n)]})})},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=BF(e,t)[0],r=this.queryCache;aq.batch(function(){r.findAll(n).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,n){var r=this,o=BF(e,t,n),i=o[0],a=o[1],s=this.queryCache,l=wu({},i,{active:!0});return aq.batch(function(){return s.findAll(i).forEach(function(e){e.reset()}),r.refetchQueries(l,a)})},t.cancelQueries=function(e,t,n){var r=this,o=BF(e,t,n),i=o[0],a=o[1],s=void 0===a?{}:a;void 0===s.revert&&(s.revert=!0);var l=aq.batch(function(){return r.queryCache.findAll(i).map(function(e){return e.cancel(s)})});return Promise.all(l).then(LF).catch(LF)},t.invalidateQueries=function(e,t,n){var r,o,i,a=this,s=BF(e,t,n),l=s[0],c=s[1],u=wu({},l,{active:null==(r=null!=(o=l.refetchActive)?o:l.active)||r,inactive:null!=(i=l.refetchInactive)&&i});return aq.batch(function(){return a.queryCache.findAll(l).forEach(function(e){e.invalidate()}),a.refetchQueries(u,c)})},t.refetchQueries=function(e,t,n){var r=this,o=BF(e,t,n),i=o[0],a=o[1],s=aq.batch(function(){return r.queryCache.findAll(i).map(function(e){return e.fetch(void 0,wu({},a,{meta:{refetchPage:null==i?void 0:i.refetchPage}}))})}),l=Promise.all(s).then(LF);return(null==a?void 0:a.throwOnError)||(l=l.catch(LF)),l},t.fetchQuery=function(e,t,n){var r=zF(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(LF).catch(LF)},t.fetchInfiniteQuery=function(e,t,n){var r=zF(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,i,a,s,l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,d="forward"===(null==c?void 0:c.direction),f="backward"===(null==c?void 0:c.direction),h=(null==(i=e.state.data)?void 0:i.pages)||[],p=(null==(a=e.state.data)?void 0:a.pageParams)||[],g=ZF(),m=null==g?void 0:g.signal,v=p,b=!1,y=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(e,t,n,r){return v=r?[t].concat(v):[].concat(v,[t]),r?[n].concat(e):[].concat(e,[n])},w=function(t,n,r,o){if(b)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var i={queryKey:e.queryKey,signal:m,pageParam:r,meta:e.meta},a=y(i),s=Promise.resolve(a).then(function(e){return x(t,r,e,o)});return tq(a)&&(s.cancel=a.cancel),s};if(h.length)if(d){var k=void 0!==u,_=k?u:hq(e.options,h);s=w(h,k,_)}else if(f){var S=void 0!==u,C=S?u:function(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}(e.options,h);s=w(h,S,C,!0)}else!function(){v=[];var t=void 0===e.options.getNextPageParam,n=!l||!h[0]||l(h[0],0,h);s=n?w([],t,p[0]):Promise.resolve(x([],p[0],h[0]));for(var r=function(n){s=s.then(function(r){if(!l||!h[n]||l(h[n],n,h)){var o=t?p[n]:hq(e.options,r);return w(r,t,o)}return Promise.resolve(x(r,p[n],h[n]))})},o=1;o<h.length;o++)r(o)}();else s=w([]);var E=s.then(function(e){return{pages:e,pageParams:v}});return E.cancel=function(){b=!0,null==g||g.abort(),tq(s)&&s.cancel()},E}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(LF).catch(LF)},t.cancelMutations=function(){var e=this,t=aq.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})});return Promise.all(t).then(LF).catch(LF)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find(function(t){return WF(e)===WF(t.queryKey)});n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return $F(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find(function(t){return WF(e)===WF(t.mutationKey)});n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return $F(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=wu({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=UF(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:wu({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),gq=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}PM(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),mq(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return vq(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return vq(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var o=this.hasListeners();o&&bq(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},o=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&o("error"),r},n.getNextResult=function(e){var t=this;return new Promise(function(n,r){var o=t.subscribe(function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(wu({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return t.createResult(r,n)})},n.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(LF)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!MF&&!this.currentResult.isStale&&DF(this.options.staleTime)){var t=jF(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!MF&&!1!==this.options.enabled&&DF(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackground||XF.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=e!==r,c=l?e.state:this.currentQueryInitialState,u=l?this.currentResult:this.previousQueryResult,d=e.state,f=d.dataUpdatedAt,h=d.error,p=d.errorUpdatedAt,g=d.isFetching,m=d.status,v=!1,b=!1;if(t.optimisticResults){var y=this.hasListeners(),x=!y&&mq(e,t),w=y&&bq(e,r,t,o);(x||w)&&(g=!0,f||(m="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==u?void 0:u.isSuccess)&&"error"!==m)n=u.data,f=u.dataUpdatedAt,m=u.status,v=!0;else if(t.select&&void 0!==d.data)if(i&&d.data===(null==a?void 0:a.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=HF(null==i?void 0:i.data,n)),this.selectResult=n,this.selectError=null}catch(_){lq().error(_),this.selectError=_}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===m||"idle"===m)){var k;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))k=i.data;else if(k="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==k)try{k=t.select(k),!1!==t.structuralSharing&&(k=HF(null==i?void 0:i.data,k)),this.selectError=null}catch(_){lq().error(_),this.selectError=_}void 0!==k&&(m="success",n=k,b=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,p=Date.now(),m="error"),{status:m,isLoading:"loading"===m,isSuccess:"success"===m,isError:"error"===m,isIdle:"idle"===m,data:n,dataUpdatedAt:f,error:h,errorUpdatedAt:p,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==m,isLoadingError:"error"===m&&0===d.dataUpdatedAt,isPlaceholderData:b,isPreviousData:v,isRefetchError:"error"===m&&0!==d.dataUpdatedAt,isStale:yq(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!r&&!o)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var i="tracked"===r?this.trackedProps:r;return Object.keys(e).some(function(n){var r=n,a=e[r]!==t[r],s=null==i?void 0:i.some(function(e){return e===n}),l=null==o?void 0:o.some(function(e){return e===n});return a&&!l&&(!i||s)})},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(wu({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||rq(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;aq.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(PF);function mq(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&vq(e,t,t.refetchOnMount)}function vq(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&yq(e,t)}return!1}function bq(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&yq(e,n)}function yq(e,t){return e.isStaleByTime(t.staleTime)}var xq=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}PM(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,wu({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},t=wu({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;aq.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},t}(PF),wq=kR.unstable_batchedUpdates;aq.setBatchNotifyFunction(wq);var kq=console;sq=kq;var _q=Re.createContext(void 0),Sq=Re.createContext(!1);function Cq(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=_q),window.ReactQueryClientContext):_q}var Eq=function(){var e=Re.useContext(Cq(Re.useContext(Sq)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Aq=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;Re.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var i=Cq(r);return gc(Sq.Provider,{value:r,children:gc(i.Provider,{value:t,children:o})})};var Oq,Tq=Re.createContext((Oq=!1,{clearReset:function(){Oq=!1},reset:function(){Oq=!0},isReset:function(){return Oq}}));function Nq(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function Rq(e,t,n){var r=Re.useRef(!1),o=Re.useState(0)[1],i=function(e,t,n){return KF(e)?"function"==typeof t?wu({},n,{mutationKey:e,mutationFn:t}):wu({},t,{mutationKey:e}):"function"==typeof e?wu({},t,{mutationFn:e}):wu({},e)}(e,t,n),a=Eq(),s=Re.useRef();s.current?s.current.setOptions(i):s.current=new xq(a,i);var l=s.current.getCurrentResult();Re.useEffect(function(){r.current=!0;var e=s.current.subscribe(aq.batchCalls(function(){r.current&&o(function(e){return e+1})}));return function(){r.current=!1,e()}},[]);var c=Re.useCallback(function(e,t){s.current.mutate(e,t).catch(LF)},[]);if(l.error&&Nq(void 0,s.current.options.useErrorBoundary,[l.error]))throw l.error;return wu({},l,{mutate:c,mutateAsync:l.mutate})}function Pq(e,t){var n=Re.useRef(!1),r=Re.useState(0)[1],o=Eq(),i=Re.useContext(Tq),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=aq.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=aq.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=aq.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(i.isReset()||(a.retryOnMount=!1));var s=Re.useState(function(){return new t(o,a)})[0],l=s.getOptimisticResult(a);if(Re.useEffect(function(){n.current=!0,i.clearReset();var e=s.subscribe(aq.batchCalls(function(){n.current&&r(function(e){return e+1})}));return s.updateResult(),function(){n.current=!1,e()}},[i,s]),Re.useEffect(function(){s.setOptions(a,{listeners:!1})},[a,s]),a.suspense&&l.isLoading)throw s.fetchOptimistic(a).then(function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)}).catch(function(e){i.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)});if(l.isError&&!i.isReset()&&!l.isFetching&&Nq(a.suspense,a.useErrorBoundary,[l.error,s.getCurrentQuery()]))throw l.error;return"tracked"===a.notifyOnChangeProps&&(l=s.trackResult(l,a)),l}function Mq(e,t,n){return Pq(zF(e,t,n),gq)}const Lq={},Dq=function(e,t,n){if(!t||0===t.length)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map(e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in Lq)return;Lq[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!n)for(let n=r.length-1;n>=0;n--){const o=r[n];if(o.href===e&&(!t||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${e}"]${o}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script",i.crossOrigin=""),i.href=e,document.head.appendChild(i),t?new Promise((t,n)=>{i.addEventListener("load",t),i.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0})).then(()=>e())};function Iq(){return gc(iM,{justifyContent:"center",children:gc(ex,{})})}const jq="undefined"==typeof bit_assist_?{}:bit_assist_,zq={AJAX_URL:jq.ajaxURL||"http://bit-assist.click/wp-admin/admin-ajax.php",API_URL:jq.api||"http://bit-assist.click/wp-json/bit-assist/v1",ASSETS_URL:jq.assetsURL,IS_DEV:!0,IS_PRO:function(e){if("string"==typeof e){const t=e.toLowerCase();return"true"===t||"1"===t}return"number"==typeof e?1===e:!!e}(jq.isPro),NONCE:jq.nonce||"",PRODUCT_NAME:"Bit Assist",ROOT_URL:jq.rootURL,ROUTE_PREFIX:jq.routePrefix||"bit_assist_"};function Bq(){return mc("svg",{height:40,width:40,xmlns:"http://www.w3.org/2000/svg",children:[gc("title",{children:"bit-assist-svg"}),gc("defs",{children:gc("clipPath",{clipPathUnits:"userSpaceOnUse",id:"cp1",children:gc("path",{d:"M0 0h40v40H0z"})})}),gc("style",{children:".s1{fill:#141844}"}),gc("g",{clipPath:"url(#cp1)",id:"Clip-Path",children:mc("g",{id:"Layer",children:[gc("path",{d:"M38.1 25.6c-.4 3.4-1.4 6.6-4 9-1.9 1.8-4.2 2.7-6.7 3.2-5.2.9-10.3.9-15.4-.2-5.7-1.2-8.8-4.9-9.9-10.5q-.1-.8-.2-1.5c-.5-4.2-.5-8.5.2-12.6.6-3 1.6-5.6 3.9-7.7 1.9-1.7 4.2-2.6 6.7-3.1 5.2-.9 10.3-1 15.5.2 5.3 1.2 8.4 4.6 9.5 9.9 1 4.4.9 8.8.4 13.3z",style:{fill:"#00ffa3",stroke:"#141844",strokeWidth:3.1}}),gc("path",{className:"s1",d:"M14.6 21.6c-.9 0-1.6-.7-1.6-1.6 0-.9.7-1.6 1.6-1.6.9 0 1.6.7 1.6 1.6 0 .9-.7 1.6-1.6 1.6zM25.4 21.6c-.9 0-1.7-.7-1.7-1.6 0-.9.8-1.6 1.7-1.6.8 0 1.6.7 1.6 1.6 0 .9-.8 1.6-1.6 1.6zM21.7 20q0 .3-.2.6-.1.3-.3.5-.3.2-.5.4-.3.1-.7.1-.3 0-.6-.1-.3-.2-.5-.4t-.4-.5q-.1-.3-.1-.6H20z"})]})})]})}const __=window.wp.i18n.__;window.wp.i18n._n,window.wp.i18n._nx,window.wp.i18n._x;const sprintf=window.wp.i18n.sprintf;var Fq,qq,Uq={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Wq=Re.createContext&&Re.createContext(Uq),$q=globalThis&&globalThis.__assign||function(){return $q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$q.apply(this,arguments)},Vq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Hq(e){return e&&e.map(function(e,t){return Re.createElement(e.tag,$q({key:t},e.attr),Hq(e.child))})}function Yq(e){return function(t){return gc(Gq,{...$q({attr:$q({},e.attr)},t),children:Hq(e.child)})}}function Gq(e){var t=function(t){var n,r=e.attr,o=e.size,i=e.title,a=Vq(e,["attr","size","title"]),s=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),mc("svg",{...$q({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:$q($q({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),children:[i&&gc("title",{children:i}),e.children]})};return void 0!==Wq?gc(Wq.Consumer,{children:function(e){return t(e)}}):t(Uq)}function Kq(e){return Yq({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}}]})(e)}function Qq(e){return Yq({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}}]})(e)}
/**
 * @remix-run/router v1.23.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Zq(){return Zq=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},Zq.apply(this,arguments)}(qq=Fq||(Fq={})).Pop="POP",qq.Push="PUSH",qq.Replace="REPLACE";const Xq="popstate";function Jq(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Fq.Pop,l=null,c=u();null==c&&(c=0,a.replaceState(Zq({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Fq.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:g.location,delta:t})}function f(e,t){s=Fq.Push;let r=rU(g.location,e,t);n&&n(r,e),c=u()+1;let d=nU(r,c),f=g.createHref(r);try{a.pushState(d,"",f)}catch(h){if(h instanceof DOMException&&"DataCloneError"===h.name)throw h;o.location.assign(f)}i&&l&&l({action:s,location:g.location,delta:1})}function h(e,t){s=Fq.Replace;let r=rU(g.location,e,t);n&&n(r,e),c=u();let o=nU(r,c),d=g.createHref(r);a.replaceState(o,"",d),i&&l&&l({action:s,location:g.location,delta:0})}function p(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:oU(e);return n=n.replace(/ $/,"%20"),eU(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}let g={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Xq,d),l=e,()=>{o.removeEventListener(Xq,d),l=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:h,go:e=>a.go(e)};return g}(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=iU(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),rU("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:oU(t))},function(e,t){tU("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function eU(e,t){if(!1===e||null==e)throw new Error(t)}function tU(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(OV){}}}function nU(e,t){return{usr:e.state,key:e.key,idx:t}}function rU(e,t,n,r){return void 0===n&&(n=null),Zq({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?iU(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function oU(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function iU(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var aU,sU;function lU(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let o="string"==typeof t?iU(t):t,i=kU(o.pathname||"/",n);if(null==i)return null;let a=cU(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let s=null;for(let l=0;null==s&&l<a.length;++l){let e=wU(i);s=yU(a[l],e,r)}return s}(e,t,n,!1)}function cU(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(eU(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=TU([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(eU(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),cU(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:bU(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of uU(e.path))o(e,t,r);else o(e,t)}),t}function uU(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=uU(r.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}(sU=aU||(aU={})).data="data",sU.deferred="deferred",sU.redirect="redirect",sU.error="error";const dU=/^:[\w-]+$/,fU=3,hU=2,pU=1,gU=10,mU=-2,vU=e=>"*"===e;function bU(e,t){let n=e.split("/"),r=n.length;return n.some(vU)&&(r+=mU),t&&(r+=hU),n.filter(e=>!vU(e)).reduce((e,t)=>e+(dU.test(t)?fU:""===t?pU:gU),r)}function yU(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=xU({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=xU({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:TU([i,u.pathname]),pathnameBase:NU(TU([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=TU([i,u.pathnameBase]))}return a}function xU(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);tU("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function wU(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return tU(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function kU(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const _U=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function SU(e,t){void 0===t&&(t="/");let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?iU(e):e;if(r)if(a=r,_U.test(a))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),tU(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?CU(r.substring(1),"/"):CU(r,t)}else n=t;var a;return{pathname:n,search:RU(o),hash:PU(i)}}function CU(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function EU(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function AU(e,t){let n=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function OU(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=iU(e):(o=Zq({},e),eU(!o.pathname||!o.pathname.includes("?"),EU("?","pathname","search",o)),eU(!o.pathname||!o.pathname.includes("#"),EU("#","pathname","hash",o)),eU(!o.search||!o.search.includes("#"),EU("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=SU(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const TU=e=>e.join("/").replace(/\/\/+/g,"/"),NU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RU=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",PU=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";
/**
 * React Router v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
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 LU=K.exports.createContext(null),DU=K.exports.createContext(null),IU=K.exports.createContext(null),jU=K.exports.createContext(null),zU=K.exports.createContext({outlet:null,matches:[],isDataRoute:!1}),BU=K.exports.createContext(null);function FU(){return null!=K.exports.useContext(jU)}function qU(){return FU()||eU(!1),K.exports.useContext(jU).location}function UU(e){K.exports.useContext(IU).static||K.exports.useLayoutEffect(e)}function WU(){let{isDataRoute:e}=K.exports.useContext(zU);return e?function(){let{router:e}=function(){let e=K.exports.useContext(LU);return e||eU(!1),e}(XU.UseNavigateStable),t=eW(JU.UseNavigateStable),n=K.exports.useRef(!1);UU(()=>{n.current=!0});let r=K.exports.useCallback(function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,MU({fromRouteId:t},o)))},[e,t]);return r}():function(){FU()||eU(!1);let e=K.exports.useContext(LU),{basename:t,future:n,navigator:r}=K.exports.useContext(IU),{matches:o}=K.exports.useContext(zU),{pathname:i}=qU(),a=JSON.stringify(AU(o,n.v7_relativeSplatPath)),s=K.exports.useRef(!1);UU(()=>{s.current=!0});let l=K.exports.useCallback(function(n,o){if(void 0===o&&(o={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=OU(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:TU([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)},[t,r,a,i,e]);return l}()}const $U=K.exports.createContext(null);function VU(){let{matches:e}=K.exports.useContext(zU),t=e[e.length-1];return t?t.params:{}}function HU(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=K.exports.useContext(IU),{matches:o}=K.exports.useContext(zU),{pathname:i}=qU(),a=JSON.stringify(AU(o,r.v7_relativeSplatPath));return K.exports.useMemo(()=>OU(e,JSON.parse(a),i,"path"===n),[e,a,i,n])}function YU(e,t){return function(e,t,n,r){FU()||eU(!1);let{navigator:o}=K.exports.useContext(IU),{matches:i}=K.exports.useContext(zU),a=i[i.length-1],s=a?a.params:{};!a||a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c,u=qU();if(t){var d;let e="string"==typeof t?iU(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||eU(!1),c=e}else c=u;let f=c.pathname||"/",h=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let p=lU(e,{pathname:h}),g=function(e,t,n,r){var o;void 0===t&&(t=[]);void 0===n&&(n=null);void 0===r&&(r=null);if(null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let a=e,s=null==(o=n)?void 0:o.errors;if(null!=s){let e=a.findIndex(e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id]));e>=0||eU(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let e=a[u];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=u),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,o)=>{let i,u=!1,d=null,f=null;n&&(i=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||KU,l&&(c<0&&0===o?(!function(e,t){t||tW[e]||(tW[e]=!0)}("route-fallback",!1),u=!0,f=null):c===o&&(u=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,o+1)),p=()=>{let t;return t=i?d:u?f:r.route.Component?K.exports.createElement(r.route.Component,null):r.route.element?r.route.element:e,gc(ZU,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?gc(QU,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:TU([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:TU([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,n,r);if(t&&g)return gc(jU.Provider,{value:{location:MU({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Fq.Pop},children:g});return g}(e,t)}function GU(){let e=function(){var e;let t=K.exports.useContext(BU),n=function(){let e=K.exports.useContext(DU);return e||eU(!1),e}(JU.UseRouteError),r=eW(JU.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return mc(pc,{children:[gc("h2",{children:"Unexpected Application Error!"}),gc("h3",{style:{fontStyle:"italic"},children:t}),n?gc("pre",{style:r,children:n}):null,null]})}const KU=gc(GU,{});class QU extends K.exports.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?gc(zU.Provider,{value:this.props.routeContext,children:gc(BU.Provider,{value:this.state.error,children:this.props.component})}):this.props.children}}function ZU(e){let{routeContext:t,match:n,children:r}=e,o=K.exports.useContext(LU);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),gc(zU.Provider,{value:t,children:r})}var XU=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XU||{}),JU=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(JU||{});function eW(e){let t=function(){let e=K.exports.useContext(zU);return e||eU(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||eU(!1),n.route.id}const tW={};function nW(e){return function(e){let t=K.exports.useContext(zU).outlet;return t?gc($U.Provider,{value:e,children:t}):t}(e.context)}function rW(e){eU(!1)}function oW(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Fq.Pop,navigator:i,static:a=!1,future:s}=e;FU()&&eU(!1);let l=t.replace(/^\/*/,"/"),c=K.exports.useMemo(()=>({basename:l,navigator:i,static:a,future:MU({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);"string"==typeof r&&(r=iU(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,g=K.exports.useMemo(()=>{let e=kU(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:h,key:p},navigationType:o}},[l,u,d,f,h,p,o]);return null==g?null:gc(IU.Provider,{value:c,children:gc(jU.Provider,{children:n,value:g})})}function iW(e){let{children:t,location:n}=e;return YU(aW(t),n)}function aW(e,t){void 0===t&&(t=[]);let n=[];return K.exports.Children.forEach(e,(e,r)=>{if(!K.exports.isValidElement(e))return;let o=[...t,r];if(e.type===K.exports.Fragment)return void n.push.apply(n,aW(e.props.children,o));e.type!==rW&&eU(!1),e.props.index&&e.props.children&&eU(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=aW(e.props.children,o)),n.push(i)}),n}
/**
 * React Router DOM v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function sW(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}Pe.startTransition,new Promise(()=>{});const lW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(OV){}const cW=Pe.startTransition;_R.flushSync;function uW(e){let{basename:t,children:n,future:r,window:o}=e,i=K.exports.useRef();null==i.current&&(i.current=Jq({window:o,v5Compat:!0}));let a=i.current,[s,l]=K.exports.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=K.exports.useCallback(e=>{c&&cW?cW(()=>l(e)):l(e)},[l,c]);return K.exports.useLayoutEffect(()=>a.listen(u),[a,u]),K.exports.useEffect(()=>{return null==(e=r)||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t},[r]),gc(oW,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}Pe.useId;const dW="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,fW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hW=K.exports.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,lW),{basename:h}=K.exports.useContext(IU),p=!1;if("string"==typeof c&&fW.test(c)&&(n=c,dW))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=kU(t.pathname,h);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:p=!0}catch(OV){}let g=function(e,t){let{relative:n}=void 0===t?{}:t;FU()||eU(!1);let{basename:r,navigator:o}=K.exports.useContext(IU),{hash:i,pathname:a,search:s}=HU(e,{relative:n}),l=a;return"/"!==r&&(l="/"===a?r:TU([r,a])),o.createHref({pathname:l,search:s,hash:i})}(c,{relative:o}),m=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=void 0===t?{}:t,l=WU(),c=qU(),u=HU(e,{relative:a});return K.exports.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:oU(c)===oU(u);l(e,{replace:n,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});return gc("a",{...f,href:n||g,onClick:p||i?r:function(e){r&&r(e),e.defaultPrevented||m(e)},ref:t,target:l})});var pW,gW,mW,vW;function bW(e){let t=K.exports.useRef(sW(e)),n=K.exports.useRef(!1),r=qU(),o=K.exports.useMemo(()=>function(e,t){let n=sW(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),i=WU(),a=K.exports.useCallback((e,t)=>{const r=sW("function"==typeof e?e(o):e);n.current=!0,i("?"+r,t)},[i,o]);return[o,a]}function yW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(e)}function xW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"}}]})(e)}function wW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}}]})(e)}function kW(e){return Yq({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"}}]})(e)}function _W(e){return Yq({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"}}]})(e)}function SW(e){return Yq({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}}]})(e)}function CW(){const{colorMode:e,toggleColorMode:t}=Ed(),n="dark"===e;return gc(uP,{"aria-label":__("Toggle Theme","bit-assist"),colorScheme:"purple",icon:n?gc(_W,{size:26}):gc(kW,{size:25}),isRound:!0,onClick:t,variant:"ghost"})}function EW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"}},{tag:"polyline",attr:{points:"12 19 5 12 12 5"}}]})(e)}function AW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}},{tag:"polyline",attr:{points:"12 5 19 12 12 19"}}]})(e)}function OW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"}}]})(e)}function TW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}}]})(e)}function NW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"7 10 12 15 17 10"}},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"}}]})(e)}function RW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"}}]})(e)}function PW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"}}]})(e)}function MW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}},{tag:"polyline",attr:{points:"14 2 14 8 20 8"}},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"}},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"}},{tag:"polyline",attr:{points:"10 9 9 9 8 9"}}]})(e)}function LW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"}},{tag:"polyline",attr:{points:"13 2 13 9 20 9"}}]})(e)}function DW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"8",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"8",y1:"18",x2:"21",y2:"18"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"3.01",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"12",x2:"3.01",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"3.01",y2:"18"}}]})(e)}function IW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"}},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}}]})(e)}function jW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"}},{tag:"polyline",attr:{points:"1 20 1 14 7 14"}},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"}}]})(e)}function zW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"}},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"}},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"}}]})(e)}function BW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}},{tag:"polyline",attr:{points:"17 8 12 3 7 8"}},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"}}]})(e)}function FW(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"}},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"}}]})(e)}function qW({docLink:e,tutorial:t}){return mc(pc,{children:[t&&gc(iP,{as:"a",borderRadius:"full",href:t||"https://www.youtube.com/watch?v=atVwkzFNnmM&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=1&pp=iAQB",leftIcon:gc(Kq,{color:"red"}),rel:"noopener noreferrer",size:"sm",target:"_blank",children:__("Tutorial","bit-assist")}),e&&gc(iP,{as:"a",borderRadius:"full",href:e||"https://bitapps.pro/docs/bit-assist/",leftIcon:gc(MW,{color:"blue"}),rel:"noopener noreferrer",size:"sm",target:"_blank",children:__("Documentation","bit-assist")})]})}function UW(){return gc(JP,{maxW:"1170px",px:[4,6],children:mc(FB,{alignItems:["center","initial"],direction:["column","row"],justifyContent:["initial","space-between"],py:"5",children:[mc(iM,{alignItems:"center",gap:2,children:[gc(hW,{to:"/",children:gc(Bq,{})}),gc(hW,{to:"/",children:gc(OF,{size:"md",children:"Bit Assist"})})]}),mc(cP,{alignItems:"center",children:[gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/",tutorial:"https://www.youtube.com/watch?v=atVwkzFNnmM&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5"}),!zq.IS_PRO&&gc(iP,{as:"a",borderRadius:"full",href:"https://wordpress.org/support/plugin/bit-assist/reviews/#new-post",leftIcon:gc(Qq,{color:"orange"}),rel:"noopener noreferrer",size:"sm",target:"_blank",children:__("Review Us","bit-assist")}),gc(CW,{})]})]})})}(gW=pW||(pW={})).UseScrollRestoration="useScrollRestoration",gW.UseSubmit="useSubmit",gW.UseSubmitFetcher="useSubmitFetcher",gW.UseFetcher="useFetcher",gW.useViewTransitionState="useViewTransitionState",(vW=mW||(mW={})).UseFetcher="useFetcher",vW.UseFetchers="useFetchers",vW.UseScrollRestoration="useScrollRestoration";var WW={exports:{}};function $W(){const{key:e}=qU();return mc(eP,{children:[gc(WW.exports.ReactQueryDevtools,{initialIsOpen:!1,position:"bottom-right"}),gc(UW,{}),gc(JP,{maxW:"1170px",pb:6,px:[4,6],children:gc("main",{children:gc(K.exports.Suspense,{fallback:gc(Iq,{}),children:gc(nW,{})},e)})})]})}function VW({children:e,hide:t}){const n=Ad("gray.200","whiteAlpha.200");return zq.IS_PRO||t?gc(pc,{children:e}):mc(eP,{position:"relative",w:"full",children:[gc(SD,{href:"https://bitapps.pro/bit-assist",tabIndex:-1,target:"_blank",children:gc(iP,{boxShadow:"lg",colorScheme:"purple",left:"50%",position:"absolute",top:"50%",transform:"translate(-50%, -50%)",zIndex:"1",children:__("Get Pro Version","bit-assist")})}),gc(eP,{bg:n,filter:"blur(0.7px)",pointerEvents:"none",px:"4",py:"2",rounded:"md",userSelect:"none",children:e})]})}async function HW(e,t,n,r="POST"){const{AJAX_URL:o,NONCE:i,ROUTE_PREFIX:a}=zq,s=new URL(o);if(s.searchParams.append("action",`${a}${e}`),s.searchParams.append("_ajax_nonce",i),n)for(const c in n)c&&s.searchParams.append(c,n[c]);const l={headers:{"Content-Type":"application/json"},method:r};"post"!==r.toLowerCase()&&"put"!==r.toLowerCase()&&"delete"!==r.toLowerCase()||(l.body=JSON.stringify(t));return await fetch(s,l).then(e=>e.json())}function YW(){const{data:e,isLoading:t}=Mq("isAnalyticsActive",async()=>HW("analytics/active",void 0,void 0,"GET"));return{isAnalyticsActive:null==e?void 0:e.data,isFetching:t}}function GW(){const e=xF({containerStyle:{margin:"0.35rem"},isClosable:!0,position:"top-right"});return(t,n)=>{let r="string"==typeof n?n:"Something went wrong";void 0===t&&(r="Something went wrong"),e({status:null!=t?t:"warning",title:r})}}function KW(){return KW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KW.apply(this,arguments)}function QW(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ZW(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function XW(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ZW(e),r=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(t);return n.setDate(n.getDate()+r),n}function JW(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ZW(e),r=ZW(t);return n.getTime()<r.getTime()}function e$(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=ZW(e);return t.setHours(0,0,0,0),t}function t$(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=e$(e),r=e$(t);return n.getTime()===r.getTime()}(e,Date.now())}function n$(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ZW(e),r=ZW(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function r$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.defaultPrevented})}}function o$(e,t){throw new Error('The property "'+t+'" is required in "'+e+'"')}function i$(e){var t=e.calendars,n=e.minDate;return!!n&&!!JW(XW(t[0].firstDayOfMonth,-1),n)}function a$(e){var t=e.calendars,n=e.maxDate;return!!n&&!!JW(n,XW(t[t.length-1].lastDayOfMonth,1))}function s$(e){for(var t=e.date,n=e.selected,r=e.monthsToDisplay,o=e.offset,i=e.minDate,a=e.maxDate,s=e.firstDayOfWeek,l=e.showOutsideDays,c=[],u=function(e,t,n){var r=e$(e);if(t){var o=e$(t);JW(r,o)&&(r=o)}if(n){var i=e$(n);JW(i,r)&&(r=i)}return r}(t,i,a),d=0;d<r;d++){var f=l$({month:u.getMonth()+d+o,year:u.getFullYear(),selectedDates:n,minDate:i,maxDate:a,firstDayOfWeek:s,showOutsideDays:l});c.push(f)}return c}function l$(e){var t=e.month,n=e.year,r=e.selectedDates,o=e.minDate,i=e.maxDate,a=e.firstDayOfWeek,s=e.showOutsideDays,l=function(e,t){var n=new Date(t,e,1);e=n.getMonth(),t=n.getFullYear();var r=32-new Date(t,e,32).getDate();return{daysInMonth:r,month:e,year:t}}(t,n),c=l.daysInMonth;t=l.month,n=l.year;for(var u=[],d=1;d<=c;d++){var f=new Date(n,t,d),h={date:f,selected:c$(r,f),selectable:u$(o,i,f),today:t$(f),prevMonth:!1,nextMonth:!1};u.push(h)}var p=new Date(n,t,1),g=new Date(n,t,c),m=function(e){var t=e.firstDayOfMonth,n=e.minDate,r=e.maxDate,o=e.selectedDates,i=e.firstDayOfWeek,a=e.showOutsideDays,s=[],l=(t.getDay()+7-i)%7;if(a)for(var c=XW(t,-1),u=c.getDate(),d=c.getMonth(),f=c.getFullYear(),h=0;h<l;){var p=new Date(f,d,u-h),g={date:p,selected:c$(o,p),selectable:u$(n,r,p),today:!1,prevMonth:!0,nextMonth:!1};s.unshift(g),h++}else for(;l>0;)s.unshift(""),l--;return s}({firstDayOfMonth:p,minDate:o,maxDate:i,selectedDates:r,firstDayOfWeek:a,showOutsideDays:s}),v=function(e){var t=e.lastDayOfMonth,n=e.minDate,r=e.maxDate,o=e.selectedDates,i=e.firstDayOfWeek,a=e.showOutsideDays,s=[],l=(t.getDay()+7-i)%7;if(a)for(var c=XW(t,1),u=c.getMonth(),d=c.getFullYear(),f=0;f<6-l;){var h=new Date(d,u,1+f),p={date:h,selected:c$(o,h),selectable:u$(n,r,h),today:!1,prevMonth:!1,nextMonth:!0};s.push(p),f++}else for(;l<6;)s.push(""),l++;return s}({lastDayOfMonth:g,minDate:o,maxDate:i,selectedDates:r,firstDayOfWeek:a,showOutsideDays:s});u.unshift.apply(u,m),u.push.apply(u,v);var b=function(e){for(var t=Math.ceil(e.length/7),n=[],r=0;r<t;r++){n[r]=[];for(var o=0;o<7;o++)n[r].push(e[7*r+o])}return n}(u);return{firstDayOfMonth:p,lastDayOfMonth:g,month:t,year:n,weeks:b}}function c$(e,t){return(e=Array.isArray(e)?e:[e]).some(function(e){return e instanceof Date&&e$(e).getTime()===e$(t).getTime()})}function u$(e,t,n){return!(e&&JW(n,e)||t&&JW(t,n))}function d$(e){return void 0!==e}function f$(e,t){var n=void 0===t?{}:t,r=n.onClick,o=n.dateObj,i=void 0===o?o$("getDateProps","dateObj"):o,a=QW(n,["onClick","dateObj"]);return KW({onClick:r$(r,function(t){e(i,t)}),disabled:!i.selectable,"aria-label":i.date.toDateString(),"aria-pressed":i.selected,role:"button"},a)}function h$(e,t){var n=e.minDate,r=e.offsetMonth,o=e.handleOffsetChanged,i=void 0===t?{}:t,a=i.onClick,s=i.offset,l=void 0===s?1:s,c=i.calendars,u=void 0===c?o$("getBackProps","calendars"):c,d=QW(i,["onClick","offset","calendars"]);return KW({onClick:r$(a,function(){o(r-function(e){var t=e.calendars,n=e.offset,r=e.minDate;if(n>1&&r){var o=n$(t[0].firstDayOfMonth,r);o<n&&(n=o)}return n}({calendars:u,offset:l,minDate:n}))}),disabled:i$({calendars:u,offset:l,minDate:n}),"aria-label":"Go back "+l+" month"+(1===l?"":"s")},d)}function p$(e,t){var n=e.maxDate,r=e.offsetMonth,o=e.handleOffsetChanged,i=void 0===t?{}:t,a=i.onClick,s=i.offset,l=void 0===s?1:s,c=i.calendars,u=void 0===c?o$("getForwardProps","calendars"):c,d=QW(i,["onClick","offset","calendars"]);return KW({onClick:r$(a,function(){o(r+function(e){var t=e.calendars,n=e.offset,r=e.maxDate;if(n>1&&r){var o=n$(r,t[t.length-1].lastDayOfMonth);o<n&&(n=o)}return n}({calendars:u,offset:l,maxDate:n}))}),disabled:a$({calendars:u,offset:l,maxDate:n}),"aria-label":"Go forward "+l+" month"+(1===l?"":"s")},d)}function g$(e){var t,n,r=e.date,o=void 0===r?new Date:r,i=e.maxDate,a=e.minDate,s=e.monthsToDisplay,l=void 0===s?1:s,c=e.firstDayOfWeek,u=void 0===c?0:c,d=e.showOutsideDays,f=void 0!==d&&d,h=e.offset,p=e.onDateSelected,g=e.onOffsetChanged,m=void 0===g?function(){}:g,v=e.selected,b=K.exports.useState(0),y=b[0],x=b[1],w=(n=y,d$(t=h)?t:n);function k(e){d$(h)||x(e),m(e)}return{calendars:s$({date:o,selected:v,monthsToDisplay:l,minDate:a,maxDate:i,offset:w,firstDayOfWeek:u,showOutsideDays:f}),getDateProps:f$.bind(null,p),getBackProps:h$.bind(null,{minDate:a,offsetMonth:w,handleOffsetChanged:k}),getForwardProps:p$.bind(null,{maxDate:i,offsetMonth:w,handleOffsetChanged:k})}}function m$(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function v$(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function b$(e){v$(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===MM(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}WW.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}},aM.exports.func,aM.exports.func,aM.exports.instanceOf(Date),aM.exports.instanceOf(Date),aM.exports.instanceOf(Date),aM.exports.number,aM.exports.number,aM.exports.bool,aM.exports.number,aM.exports.func.isRequired,aM.exports.func,aM.exports.oneOfType([aM.exports.arrayOf(Date),aM.exports.instanceOf(Date)]);var y$={};function x$(){return y$}function w$(e){if(v$(1,arguments),!function(e){return v$(1,arguments),e instanceof Date||"object"===MM(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=b$(e);return!isNaN(Number(t))}function k$(e,t){return v$(2,arguments),function(e,t){v$(2,arguments);var n=b$(e).getTime(),r=m$(t);return new Date(n+r)}(e,-m$(t))}function _$(e){v$(1,arguments);var t=b$(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function S$(e){v$(1,arguments);var t=b$(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=_$(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=_$(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function C$(e){v$(1,arguments);var t=b$(e),n=_$(t).getTime()-function(e){v$(1,arguments);var t=S$(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),_$(n)}(t).getTime();return Math.round(n/6048e5)+1}function E$(e,t){var n,r,o,i,a,s,l,c;v$(1,arguments);var u=x$(),d=m$(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=b$(e),h=f.getUTCDay(),p=(h<d?7:0)+h-d;return f.setUTCDate(f.getUTCDate()-p),f.setUTCHours(0,0,0,0),f}function A$(e,t){var n,r,o,i,a,s,l,c;v$(1,arguments);var u=b$(e),d=u.getUTCFullYear(),f=x$(),h=m$(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=E$(p,t),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var v=E$(m,t);return u.getTime()>=g.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function O$(e,t){v$(1,arguments);var n=b$(e),r=E$(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;v$(1,arguments);var u=x$(),d=m$(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=A$(e,t),h=new Date(0);return h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0),E$(h,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function T$(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const N$={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return T$("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):T$(n+1,2)},d:function(e,t){return T$(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return T$(e.getUTCHours()%12||12,t.length)},H:function(e,t){return T$(e.getUTCHours(),t.length)},m:function(e,t){return T$(e.getUTCMinutes(),t.length)},s:function(e,t){return T$(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return T$(Math.floor(r*Math.pow(10,n-3)),t.length)}};var R$="midnight",P$="noon",M$="morning",L$="afternoon",D$="evening",I$="night",j$={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return N$.y(e,t)},Y:function(e,t,n,r){var o=A$(e,r),i=o>0?o:1-o;return"YY"===t?T$(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):T$(i,t.length)},R:function(e,t){return T$(S$(e),t.length)},u:function(e,t){return T$(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return T$(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return T$(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return N$.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return T$(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=O$(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):T$(o,t.length)},I:function(e,t,n){var r=C$(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):T$(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):N$.d(e,t)},D:function(e,t,n){var r=function(e){v$(1,arguments);var t=b$(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):T$(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return T$(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return T$(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return T$(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?P$:0===o?R$:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?D$:o>=12?L$:o>=4?M$:I$,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return N$.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):N$.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):T$(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):T$(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):N$.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):N$.s(e,t)},S:function(e,t){return N$.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return B$(o);case"XXXX":case"XX":return F$(o);default:return F$(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return B$(o);case"xxxx":case"xx":return F$(o);default:return F$(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+z$(o,":");default:return"GMT"+F$(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+z$(o,":");default:return"GMT"+F$(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return T$(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return T$((r._originalDate||e).getTime(),t.length)}};function z$(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+T$(i,2)}function B$(e,t){return e%60==0?(e>0?"-":"+")+T$(Math.abs(e)/60,2):F$(e,t)}function F$(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+T$(Math.floor(o/60),2)+n+T$(o%60,2)}const q$=j$;var U$=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},W$=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const $$={p:W$,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return U$(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",U$(o,t)).replace("{{time}}",W$(i,t))}};var V$=["D","DD"],H$=["YY","YYYY"];function Y$(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var G$={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const K$=function(e,t,n){var r,o=G$[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Q$(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Z$={date:Q$({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Q$({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Q$({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var X$={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const J$=function(e,t,n,r){return X$[e]};function eV(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const tV={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:eV({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:eV({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:eV({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:eV({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:eV({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function nV(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var rV,oV={ordinalNumber:(rV={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(rV.matchPattern);if(!n)return null;var r=n[0],o=e.match(rV.parsePattern);if(!o)return null;var i=rV.valueCallback?rV.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:nV({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:nV({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nV({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:nV({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:nV({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const iV={code:"en-US",formatDistance:K$,formatLong:Z$,formatRelative:J$,localize:tV,match:oV,options:{weekStartsOn:0,firstWeekContainsDate:1}};var aV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lV=/^'([^]*?)'?$/,cV=/''/g,uV=/[a-zA-Z]/;function dV(e,t,n){var r,o,i,a,s,l,c,u,d,f,h,p,g,m,v,b,y,x;v$(2,arguments);var w=String(t),k=x$(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:k.locale)&&void 0!==r?r:iV,S=m$(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:k.firstWeekContainsDate)&&void 0!==a?a:null===(d=k.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=m$(null!==(h=null!==(p=null!==(g=null!==(m=null==n?void 0:n.weekStartsOn)&&void 0!==m?m:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:k.weekStartsOn)&&void 0!==p?p:null===(y=k.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==h?h:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var E=b$(e);if(!w$(E))throw new RangeError("Invalid time value");var A=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(E),O=k$(E,A),T={firstWeekContainsDate:S,weekStartsOn:C,locale:_,_originalDate:E};return w.match(sV).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,$$[t])(e,_.formatLong):e}).join("").match(aV).map(function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(lV);if(!t)return e;return t[1].replace(cV,"'")}(r);var i,a=q$[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===H$.indexOf(i))||Y$(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==V$.indexOf(e)}(r)||Y$(r,t,String(e)),a(O,r,_.localize,T);if(o.match(uV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r}).join("")}function fV(){return fV=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},fV.apply(this,arguments)}var hV=function(){function e(e){this.config=void 0,this.config=e}return e.prototype.getEvents=function(){var e=this;return{onKeyDown:function(t){switch(t.key){case"ArrowDown":e.config.down&&e.config.down();break;case"ArrowLeft":e.config.left&&e.config.left();break;case"ArrowRight":e.config.right&&e.config.right();break;case"ArrowUp":e.config.up&&e.config.up()}}}},e}(),pV={variant:"ghost",size:"sm"},gV=function(e){var t,n=e.calendars,r=e.getBackProps,o=null==(t=e.propsConfigs)?void 0:t.dateNavBtnProps;return mc(K.exports.Fragment,{children:[gc(iP,{...r({calendars:n,offset:12}),...pV,...o,children:"<<"}),gc(iP,{...r({calendars:n}),...pV,...o,children:"<"})]})},mV=function(e){var t,n=e.calendars,r=e.getForwardProps,o=null==(t=e.propsConfigs)?void 0:t.dateNavBtnProps;return mc(K.exports.Fragment,{children:[gc(iP,{...r({calendars:n}),...pV,...o,children:">"}),gc(iP,{...r({calendars:n,offset:12}),...pV,...o,children:">>"})]})},vV=.125,bV=function(e){var t=e.dateObj,n=e.propsConfigs,r=e.isInRange,o=e.disabledDates,i=e.renderProps,a=e.onMouseEnter,s=t.date,l=t.selected,c=t.selectable,u=t.today,d=i.getDateProps,f=(null==n?void 0:n.dayOfMonthBtnProps)||{},h=f.defaultBtnProps,p=f.isInRangeBtnProps,g=f.selectedBtnProps,m=f.todayBtnProps,v=!c||(null==o?void 0:o.has(s.getTime())),b=K.exports.useMemo(function(){var e;return{defaultBtnProps:fV({size:"sm",variant:"ghost"},h,{_after:fV({content:"''",position:"absolute",top:"-0.125rem",left:"-0.125rem",bottom:"-0.125rem",right:"-0.125rem",borderWidth:vV+"rem",borderColor:"transparent"},null==h?void 0:h._after),_hover:fV({bg:"purple.400"},null==h?void 0:h._hover,{_disabled:fV({bg:"gray.100"},null==h||null==(e=h._hover)?void 0:e._disabled)})}),isInRangeBtnProps:fV({background:"purple.200"},p),selectedBtnProps:fV({background:"purple.200"},g),todayBtnProps:fV({borderColor:"blue.400"},m)}},[h,p,g,m]);return gc(iP,{...d({dateObj:t,disabled:v,onMouseEnter:a}),isDisabled:v,...b.defaultBtnProps,...r&&!v&&b.isInRangeBtnProps,...l&&!v&&b.selectedBtnProps,...u&&b.todayBtnProps,children:s.getDate()})},yV=function(e){var t,n=e.dayzedHookProps,r=e.configs,o=e.propsConfigs,i=e.disabledDates,a=e.onMouseEnterHighlight,s=e.isInRange,l=g$(n),c=l.calendars,u=l.getBackProps,d=l.getForwardProps,f=K.exports.useMemo(function(){var e=r.firstDayOfWeek,t=r.dayNames;return e&&e>0?r.dayNames.slice(e,t.length).concat(t.slice(0,e)):t},[r.firstDayOfWeek,r.dayNames]),h=K.exports.useCallback(function(e){var t=document.activeElement,n=document.querySelectorAll("button");n.forEach(function(r,o){var i=o+e;r===t&&(i<=n.length-1&&i>=0?n[i].focus():n[0].focus())})},[]),p=new hV({left:function(){h(-1)},right:function(){h(1)},up:function(){h(-7)},down:function(){h(7)}});return c.length<=0?null:gc(FB,{className:"datepicker-calendar",direction:["column","column","row"],...null==o||null==(t=o.calendarPanelProps)?void 0:t.wrapperProps,...p.getEvents(),children:c.map(function(e,t){var n,h,p,g;return mc(UB,{height:"100%",borderWidth:"1px",padding:"0.5rem 0.75rem",...null==o||null==(n=o.calendarPanelProps)?void 0:n.contentProps,children:[mc(qB,{...null==o||null==(h=o.calendarPanelProps)?void 0:h.headerProps,children:[gc(gV,{calendars:c,getBackProps:u,propsConfigs:o}),mc(OF,{size:"sm",minWidth:"5rem",textAlign:"center",...null==o?void 0:o.dateHeadingProps,children:[r.monthNames[e.month]," ",e.year]}),gc(mV,{calendars:c,getForwardProps:d,propsConfigs:o})]}),gc(eM,{...null==o||null==(p=o.calendarPanelProps)?void 0:p.dividerProps}),mc(uD,{columns:7,spacing:1,textAlign:"center",...null==o||null==(g=o.calendarPanelProps)?void 0:g.bodyProps,children:[f.map(function(e,t){return gc(eP,{fontSize:"sm",fontWeight:"semibold",...null==o?void 0:o.weekdayLabelProps,children:e},t)}),e.weeks.map(function(t,n){return t.map(function(t,r){var c=e.month+"-"+e.year+"-"+n+"-"+r;if(!t)return gc(eP,{},c);var u=t.date;return gc(bV,{dateObj:t,propsConfigs:o,renderProps:l,isInRange:s&&s(u),disabledDates:i,onMouseEnter:function(){a&&a(u)}},c)})})]})]},t)})})},xV=["configs","propsConfigs","id","name","usePortal","defaultIsOpen","closeOnSelect"],wV=function(e){var t=e.dayzedHookProps,n=e.configs,r=e.propsConfigs,o=e.selected,i=K.exports.useState(null),a=i[0],s=i[1];return gc(iM,{onMouseLeave:function(){s(null)},children:gc(yV,{dayzedHookProps:t,configs:n,propsConfigs:r,isInRange:function(e){if(!Array.isArray(o)||null==o||!o.length)return!1;var t=o[0];if(2===o.length){var n=o[1];return t<e&&n>e}return a&&(t<e&&a>=e||e<t&&e>=a)},onMouseEnterHighlight:function(e){Array.isArray(o)&&null!=o&&o.length&&s(e)}})})},kV={dateFormat:"MM/dd/yyyy",monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0},_V=function(e){var t,n,r=e.configs,o=e.propsConfigs,i=void 0===o?{}:o,a=e.id,s=e.name,l=e.usePortal,c=e.defaultIsOpen,u=void 0!==c&&c,d=e.closeOnSelect,f=void 0===d||d,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,xV),p=h.selectedDates,g=h.minDate,m=h.maxDate,v=h.onDateChange,b=h.disabled,y=K.exports.useState(p[0]||new Date),x=y[0],w=y[1],k=K.exports.useState(0),_=k[0],S=k[1],C=st({defaultIsOpen:u}),E=C.onOpen,A=C.onClose,O=C.isOpen,T=fV({},kV,r),N=p[0]?""+dV(p[0],T.dateFormat):"";N+=p[1]?" - "+dV(p[1],T.dateFormat):"";var R=l?NR:Re.Fragment;return mc(rB,{placement:"bottom-start",variant:"responsive",isOpen:O,onOpen:E,onClose:function(){A(),w(p[0]||new Date),S(0)},isLazy:!0,children:[gc(pB,{children:gc(pD,{onKeyPress:function(e){" "!==e.key||O||(e.preventDefault(),E())},id:a,autoComplete:"off",isDisabled:b,name:s,value:N,onChange:function(e){return e.target.value},...i.inputProps})}),gc(R,{children:gc(hB,{width:"100%",...null==i||null==(t=i.popoverCompProps)?void 0:t.popoverContentProps,children:gc(sB,{...null==(n=i.popoverCompProps)?void 0:n.popoverBodyProps,children:gc(nD,{children:gc(wV,{dayzedHookProps:{onDateSelected:function(e){var t=e.selectable,n=e.date;if(t){var r=[].concat(p);if(p.length){if(1===p.length)return p[0]<n?r.push(n):r.unshift(n),v(r),void(f&&A());if(2===r.length)return void v([n])}else r.push(n),v(r)}},selected:p,monthsToDisplay:2,date:x,minDate:g,maxDate:m,offset:_,onOffsetChanged:S,firstDayOfWeek:T.firstDayOfWeek},configs:T,propsConfigs:i,selected:p})})})})})]})};function SV({widgetLength:e}){var t;const n=GW(),r=Ad("gray.50","gray.700"),{isOpen:o,onClose:i,onOpen:a}=st(),{isAnalyticsActive:s,isFetching:l}=YW(),{isAnalyticsUpdating:c,updateAnalytics:u}=function(){const e=Eq(),{isLoading:t,mutateAsync:n}=Rq(async e=>HW("analytics/toggle",e),{onSuccess:()=>{e.invalidateQueries("isAnalyticsActive")}});return{isAnalyticsUpdating:t,updateAnalytics:e=>n({widget_analytics:e})}}(),{deleteAnalytics:d,isAnalyticsDeleting:f}=function(){const e=Eq(),{isLoading:t,mutateAsync:n}=Rq(async()=>HW("analytics/destroy"),{onSuccess:()=>{e.invalidateQueries("widget_analytics")}});return{deleteAnalytics:()=>n(),isAnalyticsDeleting:t}}(),[h,p]=K.exports.useState("all-time"),[g,m]=K.exports.useState([new Date,new Date]),v="custom"===h?g:h,{analytics:b,isAnalyticsFetching:y}=function(e){let t=[];if(Array.isArray(e)){const n=e.map(e=>{const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`});t=n}else t=e;const{data:n,isLoading:r}=Mq(["widget_analytics",e],async()=>HW(`analytics/widget/${t}`,void 0,void 0,"GET"),{enabled:!!e});return{analytics:null==n?void 0:n.data,isAnalyticsFetching:r}}(v),x=1===s;if(!(e<1))return gc(eP,{mt:"6",children:mc(VW,{children:[gc(qB,{justifyContent:"space-between",children:mc(qB,{children:[mc(OF,{as:"h2",mb:"2",size:"sm",children:[__("Widget Analytics","bit-assist"),gc(WB,{"aria-label":__("Switch widget status","bit-assist"),colorScheme:"purple",disabled:c,isChecked:!!x,ml:4,onChange:e=>(async e=>{const t=e?1:0,{status:r}=await u(t);n(r,__("error"===r?"Something went wrong!":"Updated successfully!","bit-assist"))})(e.target.checked),title:__(x?"Analytics disable":"Analytics enable","bit-assist")})]}),(l||y||c)&&gc(ex,{ml:2})]})}),x&&zq.IS_PRO&&mc(pc,{children:[gc(GB,{borderWidth:"1px",mt:"2",rounded:"lg",shadow:"md",children:mc(HB,{variant:"simple",children:[mc(XB,{bgColor:r,children:[gc(JB,{children:gc(ZB,{colSpan:4,py:"3",children:mc(qB,{justifyContent:"space-between",children:[mc(qB,{children:[mc(_B,{onChange:e=>(async e=>{p(e)})(e.target.value),style:{width:"inherit"},value:h,variant:"outline",w:"36",children:[gc("option",{value:"today",children:__("Today","bit-assist")}),gc("option",{value:"7days",children:__("Last 7 Days","bit-assist")}),gc("option",{value:"30days",children:__("Last 30 Days","bit-assist")}),gc("option",{value:"all-time",children:__("All Time","bit-assist")}),gc("option",{value:"custom",children:__("Custom Date","bit-assist")})]}),"custom"===h&&gc(_V,{onDateChange:m,selectedDates:g})]}),gc(AF,{label:__("Delete all analytics data","bit-assist"),placement:"left-end",children:gc(iP,{colorScheme:"red",leftIcon:gc(zW,{color:"red"}),onClick:()=>{a()},variant:"outline",children:__("Delete All Analytics","bit-assist")})})]})})}),mc(JB,{children:[gc(ZB,{children:__("Widget Name","bit-assist")}),gc(ZB,{textAlign:"center",children:__("Visitors","bit-assist")}),gc(ZB,{textAlign:"center",children:__("Total Clicks","bit-assist")}),gc(ZB,{textAlign:"end",children:__("Click Rate","bit-assist")})]})]}),gc(KB,{children:null==(t=null==b?void 0:b.data)?void 0:t.map(e=>mc(JB,{children:[gc(QB,{children:e.name}),gc(QB,{textAlign:"center",children:+e.visitor_count}),gc(QB,{textAlign:"center",children:+e.click_count}),mc(QB,{textAlign:"center",width:"1",children:[0===+e.visitor_count?0:(100/+e.visitor_count*+e.click_count).toFixed(0),"%"]})]},e.widget_id))})]})}),mc($j,{isCentered:!0,isOpen:o,onClose:i,children:[gc(Bz,{}),mc(Pz,{children:[gc(Iz,{children:__("Confirmation","bit-assist")}),gc(Lz,{disabled:f}),gc(Mz,{children:__("Are you sure to delete all analytics data?","bit-assist")}),mc(Dz,{children:[gc(iP,{disabled:f,mr:3,onClick:i,children:__("Cancel","bit-assist")}),gc(iP,{colorScheme:"red",isLoading:f,loadingText:__("Deleting...","bit-assist"),onClick:async()=>{const{data:e,status:t}=await d();n(t,e),i()},shadow:"md",children:__("Delete","bit-assist")})]})]})]})]})]})})}const CV=()=>({name:__("Untitled Widget","bit-assist")}),EV={channel_id:"",channel_name:"",config:{title:__("","bit-assist")},sequence:0,step:1,widget_id:""};var AV,OV;function TV(e=0,t,n=0){return e<n?n:e>t?t:e}(OV=AV||(AV={})).PageUp="PageUp",OV.PageDown="PageDown",OV.End="End",OV.Home="Home",OV.ArrowLeft="ArrowLeft",OV.ArrowUp="ArrowUp",OV.ArrowRight="ArrowRight",OV.ArrowDown="ArrowDown",OV.Tab="Tab";const NV=({r:e,g:t,b:n},r=!0)=>(r?"#":"")+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1),RV=e=>e.a<100?(({r:e,g:t,b:n,a:r})=>"number"==typeof r&&!1===isNaN(r)?`rgba(${e}, ${t}, ${n}, ${TV(r,100,0)/100})`:`rgb(${e}, ${t}, ${n})`)(e):NV(e);function PV(e){if(!e)return;const t=MV(e)||function(e){if("#"===e[0]&&7===e.length&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:100}}(e)||function(e){if("#"===e[0]&&4===e.length&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:100}}(e)||function(e){const t=e.match(/^hsl(a?)\(([\d., ]+)\)$/);if(t){const e=!!t[1],n=e?4:3,r=t[2].split(/ *, */).map(Number);if(r.length===n){const t=(({h:e,s:t,l:n})=>{let r=n/100,o=t/100*(1-Math.abs(2*r-1)),i=e/60,a=o*(1-Math.abs(i%2-1)),s=r-o/2;return o=255*(o+s)|0,a=255*(a+s)|0,s=255*s|0,i>=0&&i<1?{r:o,g:a,b:s}:i>=1&&i<2?{r:a,g:o,b:s}:i>=2&&i<3?{r:s,g:o,b:a}:i>=3&&i<4?{r:s,g:a,b:o}:i>=4&&i<5?{r:a,g:s,b:o}:i>=5&&i<6?{r:o,g:s,b:a}:{r:0,g:0,b:0}})({h:r[0],s:r[1],l:r[2]});return t.a=e?100*r[3]:100,t}}}(e);return t||function(e){if("undefined"==typeof document)return;const t=document.createElement("div");t.style.backgroundColor=e,t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.width="1px",document.body.appendChild(t);const n=getComputedStyle(t),r=n&&n.backgroundColor;if(document.body.removeChild(t),"rgba(0, 0, 0, 0)"!==r&&"transparent"!==r)return MV(r);switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}}(e)}function MV(e){if(!e)return;const t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){const e=!!t[1],n=e?4:3,r=t[2].split(/ *, */).map(Number);if(r.length===n)return{r:r[0],g:r[1],b:r[2],a:e?100*r[3]:100}}}function LV(e){const t=PV(e);if(t)return Object.assign(Object.assign({},(({r:e,g:t,b:n,a:r})=>{const{h:o,s:i,v:a}=(e=>{const{r:t,g:n,b:r}=(({r:e,g:t,b:n})=>({r:TV(e,255,0),g:TV(t,255,0),b:TV(n,255,0)}))(e);let o=t/255,i=n/255,a=r/255,s=Math.max(o,i,a),l=s-Math.min(o,i,a),c=0,u=0,d=0;return l&&(s===o&&(c=(i-a)/l),s===i&&(c=2+(a-o)/l),s===a&&(c=4+(o-i)/l),s&&(u=l/s)),c=60*c|0,c<0&&(c+=360),u=100*u|0,d=100*s|0,{h:c,s:u,v:d}})({r:e,g:t,b:n});return{r:e,g:t,b:n,a:r,h:o,s:i,v:a,hex:NV({r:e,g:t,b:n},!1),str:RV({r:e,g:t,b:n,a:r})}})(t)),{str:e})}function DV(){var e;const t=GW(),{isOpen:n,onClose:r,onOpen:o}=st(),[i,a]=K.exports.useState(CV()),{createWidget:s,isWidgetCreating:l}=function(e,t){const n=Eq(),{isLoading:r,mutateAsync:o}=Rq(async e=>HW("widgets",{...e,color:LV("#00ffa3")}),{onSuccess:()=>{n.invalidateQueries("widgets"),e(),t(CV())}});return{createWidget:e=>o(e),isWidgetCreating:r}}(r,a),c=()=>{r(),a(CV())};return mc(pc,{children:[gc(iP,{colorScheme:"purple",leftIcon:gc(wW,{}),mb:"4",mr:"2",onClick:o,variant:"outline",children:__("Add Widget","bit-assist")}),mc($j,{isCentered:!0,isOpen:n,onClose:c,scrollBehavior:"inside",size:"2xl",children:[gc(Bz,{}),mc(Pz,{children:[gc(Iz,{children:gc(TF,{children:__("Create New Widget","bit-assist")})}),gc(Lz,{}),gc(Mz,{children:mc(jP,{isRequired:!0,children:[gc(iD,{children:__("Widget Name","bit-assist")}),gc(pD,{onChange:e=>((e,t)=>{a(n=>({...n,[t]:e}))})(e.target.value,"name"),value:null!=(e=null==i?void 0:i.name)?e:""})]})}),mc(Dz,{gap:"2",children:[gc(iP,{onClick:c,children:__("Cancel","bit-assist")}),gc(iP,{colorScheme:"purple",isLoading:l,loadingText:__("Creating...","bit-assist"),onClick:async()=>{if(""===(null==i?void 0:i.name))return t("error",__("Widget name is required","bit-assist"));const{data:e,status:n}=await s(i);t(n,e)},spinnerPlacement:"start",children:__("Create","bit-assist")})]})]})]})]})}function IV(){const{isWidgetFetching:e,widgets:t}=function(){const{data:e,isLoading:t}=Mq("widgets",async()=>HW("widgets",void 0,void 0,"GET"));return{isWidgetFetching:t,widgets:null==e?void 0:e.data}}(),{deleteWidget:n,isWidgetDeleting:r}=function(){const e=Eq(),{isLoading:t,mutateAsync:n}=Rq(async e=>HW(`widgets/${e}/destroy`),{onSuccess:()=>{e.invalidateQueries("widgets"),e.invalidateQueries("widget_analytics")}});return{deleteWidget:e=>n(e),isWidgetDeleting:t}}(),o=Ad("purple.500","purple.200"),i=Ad("gray.50","gray.700"),{isWidgetStatusUpdating:a,updateWidgetStatus:s}=function(){const e=Eq(),{isLoading:t,mutateAsync:n}=Rq(async e=>HW(`widgets/${e.widgetId}/changeStatus`,{status:e.status}),{onSuccess:()=>{e.invalidateQueries("widgets")}});return{isWidgetStatusUpdating:t,updateWidgetStatus:(e,t)=>n({status:t,widgetId:e})}}(),{copyWidget:l}=function(){const e=Eq(),{isLoading:t,mutateAsync:n}=Rq(async e=>HW(`copyWidget/${e}`,void 0,void 0,"GET"),{onSuccess:()=>{e.invalidateQueries("widgets")}});return{copyWidget:e=>n(e),isWidgetCoping:t}}(),{updateWidgetActive:c}=function(){const e=Eq(),{isLoading:t,mutateAsync:n}=Rq(async e=>HW(`pro/widgets/${e.widgetId}/changeActive`,{active:e.active}),{onSuccess:()=>{e.invalidateQueries("widgets")}});return{isWidgetActiveUpdating:t,updateWidgetActive:(e,t)=>n({active:t,widgetId:e})}}(),{isOpen:u,onClose:d,onOpen:f}=st(),h=K.exports.useRef(""),p=GW(),g=e=>()=>{h.current=e,f()};return mc(pc,{children:[gc(GB,{borderWidth:"1px",mt:"2",rounded:"lg",shadow:"md",children:mc(HB,{size:"sm",variant:"simple",children:[mc(XB,{bgColor:i,children:[gc(JB,{children:gc(ZB,{colSpan:4,py:"3",children:mc(qB,{justifyContent:"space-between",children:[mc(qB,{children:[gc(OF,{as:"h2",my:"2",size:"sm",textTransform:"none",children:__("Widgets List","bit-assist")}),(e||a)&&gc(ex,{})]}),gc(DV,{})]})})}),mc(JB,{children:[gc(ZB,{py:"2",children:__("status","bit-assist")}),gc(ZB,{py:"2",children:__("widget name","bit-assist")}),gc(ZB,{py:"2",children:__("created at","bit-assist")}),gc(ZB,{py:"2",children:__("use widget in","bit-assist")})]})]}),mc(KB,{children:[t&&t.map(e=>{return mc(JB,{children:[gc(QB,{w:"10",children:gc(WB,{"aria-label":__("Switch widget status","bit-assist"),colorScheme:"purple",disabled:a,isChecked:e.status,onChange:t=>(async(e,t)=>{const{data:n,status:r}=await s(t,e);p(r,n)})(t.target.checked,e.id),title:e.status?__("Widget disable","bit-assist"):__("Widget enable","bit-assist")})}),gc(QB,{children:gc(TF,{_hover:{color:o},display:"inline-block",fontSize:"md",children:gc(hW,{to:`/widgets/${e.id}`,children:e.name||__("Untitled Widget","bit-assist")})})}),gc(QB,{children:new Date(e.created_at).toLocaleDateString()}),mc(QB,{textAlign:"right",w:"10",children:[mc(_B,{className:"chipSelect "+(e.active?"active":""),disabled:!zq.IS_PRO||!e.status,display:"inline-block",mr:"4",onChange:t=>(async(e,t)=>{const{data:n,status:r}=await c(t,+e);p(r,n)})(t.target.value,e.id),size:"sm",value:e.active?1:0,w:"28",children:[gc("option",{value:"1",children:__("This site","bit-assist")}),gc("option",{value:"0",children:__("External site","bit-assist")})]}),mc(bj,{children:[gc(xj,{"aria-label":__("Options","bit-assist"),as:uP,icon:gc(xW,{}),isRound:!0}),mc(Aj,{shadow:"lg",children:[gc(hW,{to:`/widgets/${e.id}`,children:gc(Sj,{icon:gc(RW,{}),children:__("Edit","bit-assist")})}),gc(Sj,{icon:gc(TW,{}),onClick:(t=e.id,async()=>{const{data:e,status:n}=await l(t);p(n,e)}),children:__("Duplicate","bit-assist")}),gc(Sj,{color:"red.600",icon:gc(zW,{}),onClick:g(e.id),children:__("Delete","bit-assist")})]})]})]})]},e.id);var t}),(!t||(null==t?void 0:t.length)<1)&&gc(JB,{children:gc(QB,{colSpan:4,children:gc(TF,{align:"center",color:"gray.500",fontSize:"md",children:__("No widgets found! Create a new widget.","bit-assist")})})})]})]})}),mc($j,{isCentered:!0,isOpen:u,onClose:d,children:[gc(Bz,{}),mc(Pz,{children:[gc(Iz,{children:__("Confirmation","bit-assist")}),gc(Lz,{disabled:r}),gc(Mz,{children:__("Are you sure want to delete this widget?","bit-assist")}),mc(Dz,{children:[gc(iP,{disabled:r,mr:3,onClick:d,children:__("Cancel","bit-assist")}),gc(iP,{colorScheme:"red",isLoading:r,loadingText:__("Deleting...","bit-assist"),onClick:async()=>{const{data:e,status:t}=await n(h.current);p(t,e),d()},shadow:"md",children:__("Delete","bit-assist")})]})]})]}),gc(SV,{widgetLength:null==t?void 0:t.length})]})}function jV(e){return"init"in e}function zV(e){return!!e.write}function BV(e){return"v"in e||"e"in e}function FV(e){if("e"in e)throw e.e;return e.v}function qV(e){return"function"==typeof(null==e?void 0:e.then)}function UV(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function WV(e,t,n){var r;const o=new Set;for(const i of(null==(r=n.get(e))?void 0:r.t)||[])o.add(i);for(const i of t.p)o.add(i);return o}const $V=(e,t,...n)=>t.read(...n),VV=(e,t,...n)=>t.write(...n),HV=(e,t)=>{var n;return null==(n=t.INTERNAL_onInit)?void 0:n.call(t,e)},YV=(e,t,n)=>{var r;return null==(r=t.onMount)?void 0:r.call(t,n)},GV=(e,t)=>{var n;const r=uH(e),o=r[0],i=r[6],a=r[9];let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(n=i.i)||n.call(i,t),null==a||a(e,t)),s},KV=e=>{const t=uH(e),n=t[1],r=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],c=e=>{try{e()}catch(OV){l.push(OV)}};do{a.f&&c(a.f);const t=new Set,l=t.add.bind(t);r.forEach(e=>{var t;return null==(t=n.get(e))?void 0:t.l.forEach(l)}),r.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(c),r.size&&s(e)}while(r.size||i.size||o.size);if(l.length)throw new AggregateError(l)},QV=e=>{const t=uH(e),n=t[1],r=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],c=new WeakSet,u=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(u.has(t))d.pop();else if(c.has(t))r.get(t)===o.n&&l.push([t,o]),u.add(t),d.pop();else{c.add(t);for(const e of WV(t,o,n))c.has(e)||d.push(e)}}for(let f=l.length-1;f>=0;--f){const[t,n]=l[f];let i=!1;for(const e of n.d.keys())if(e!==t&&o.has(e)){i=!0;break}i&&(r.set(t,n.n),a(e,t),s(e,t)),r.delete(t)}},ZV=(e,t)=>{var n,r;const o=uH(e),i=o[1],a=o[2],s=o[3],l=o[6],c=o[7],u=o[11],d=o[12],f=o[13],h=o[14],p=o[16],g=o[17],m=o[20],v=o[26],b=u(e,t);if(BV(b)){if(i.has(t)&&a.get(t)!==b.n)return b;let n=!1;for(const[t,r]of b.d)if(h(e,t).n!==r){n=!0;break}if(!n)return b}let y=!0;const x=new Set(b.d.keys()),w=new Map,k=()=>{for(const e of x)w.has(e)||b.d.delete(e)},_=()=>{if(i.has(t)){const n=!s.size;g(e,t),n&&(f(e),d(e))}},S=n=>{var r;if(n===t){const t=u(e,n);if(!BV(t)){if(!jV(n))throw new Error("no atom init");m(e,n,n.init)}return FV(t)}const o=h(e,n);try{return FV(o)}finally{w.set(n,o.n),b.d.set(n,o.n),qV(b.v)&&UV(t,b.v,o),i.has(t)&&(null==(r=i.get(n))||r.t.add(t)),y||_()}};let C,E;const A={get signal(){return C||(C=new AbortController),C.signal},get setSelf(){return!E&&zV(t)&&(E=(...n)=>{if(!y)try{return p(e,t,...n)}finally{f(e),d(e)}}),E}},O=b.n,T=a.get(t)===O;try{0;const r=c(e,t,S,A);if(m(e,t,r),qV(r)){v(e,r,()=>null==C?void 0:C.abort());const t=()=>{k(),_()};r.then(t,t)}else k();return null==(n=l.r)||n.call(l,t),b}catch(N){return delete b.v,b.e=N,++b.n,b}finally{y=!1,b.n!==O&&T&&(a.set(t,b.n),s.add(t),null==(r=l.c)||r.call(l,t))}},XV=(e,t)=>{const n=uH(e),r=n[1],o=n[2],i=n[11],a=[t];for(;a.length;){const t=a.pop(),n=i(e,t);for(const s of WV(t,n,r)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},JV=(e,t,...n)=>{const r=uH(e),o=r[3],i=r[6],a=r[8],s=r[11],l=r[12],c=r[13],u=r[14],d=r[15],f=r[16],h=r[17],p=r[20];let g=!0;const m=t=>FV(u(e,t)),v=(n,...r)=>{var a;const u=s(e,n);try{if(n===t){if(!jV(n))throw new Error("atom not writable");0;const t=u.n,s=r[0];return p(e,n,s),h(e,n),void(t!==u.n&&(o.add(n),d(e,n),null==(a=i.c)||a.call(i,n)))}return f(e,n,...r)}finally{g||(c(e),l(e))}};try{return a(e,t,m,v,...n)}finally{g=!1}},eH=(e,t)=>{var n;const r=uH(e),o=r[1],i=r[3],a=r[6],s=r[11],l=r[15],c=r[18],u=r[19],d=s(e,t),f=o.get(t);if(f){for(const[r,o]of d.d)if(!f.d.has(r)){const u=s(e,r);c(e,r).t.add(t),f.d.add(r),o!==u.n&&(i.add(r),l(e,r),null==(n=a.c)||n.call(a,r))}for(const n of f.d)if(!d.d.has(n)){f.d.delete(n);const r=u(e,n);null==r||r.t.delete(t)}}},tH=(e,t)=>{var n;const r=uH(e),o=r[1],i=r[4],a=r[6],s=r[10],l=r[11],c=r[12],u=r[13],d=r[14],f=r[16],h=r[18],p=l(e,t);let g=o.get(t);if(!g){d(e,t);for(const n of p.d.keys()){h(e,n).t.add(t)}if(g={l:new Set,d:new Set(p.d.keys()),t:new Set},o.set(t,g),zV(t)){const n=()=>{let n=!0;const r=(...r)=>{try{return f(e,t,...r)}finally{n||(u(e),c(e))}};try{const o=s(e,t,r);o&&(g.u=()=>{n=!0;try{o()}finally{n=!1}})}finally{n=!1}};i.add(n)}null==(n=a.m)||n.call(a,t)}return g},nH=(e,t)=>{var n,r;const o=uH(e),i=o[1],a=o[5],s=o[6],l=o[11],c=o[19],u=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let f=!1;for(const h of d.t)if(null==(n=i.get(h))?void 0:n.d.has(t)){f=!0;break}if(f)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const h of u.d.keys()){const n=c(e,h);null==n||n.t.delete(t)}null==(r=s.u)||r.call(s,t)},rH=(e,t,n)=>{const r=uH(e),o=r[11],i=r[27],a=o(e,t),s="v"in a,l=a.v;if(qV(n))for(const c of a.d.keys())UV(t,n,o(e,c));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,qV(l)&&i(e,l))},oH=(e,t)=>FV((0,uH(e)[14])(e,t)),iH=(e,t,...n)=>{const r=uH(e),o=r[3],i=r[12],a=r[13],s=r[16],l=o.size;try{return s(e,t,...n)}finally{o.size!==l&&(a(e),i(e))}},aH=(e,t,n)=>{const r=uH(e),o=r[12],i=r[18],a=r[19],s=i(e,t).l;return s.add(n),o(e),()=>{s.delete(n),a(e,t),o(e)}},sH=(e,t,n)=>{const r=uH(e)[25];let o=r.get(t);if(!o){o=new Set,r.set(t,o);const e=()=>r.delete(t);t.then(e,e)}o.add(n)},lH=(e,t)=>{const n=uH(e)[25].get(t);null==n||n.forEach(e=>e())},cH=new WeakMap,uH=e=>{const t=cH.get(e);return t};let dH,fH=0;function hH(e,t){const n="atom"+ ++fH,r={toString:()=>n};return"function"==typeof e?r.read=e:(r.init=e,r.read=pH,r.write=gH),t&&(r.write=t),r}function pH(e){return e(this)}function gH(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function mH(){return function(...e){const t={get:e=>(0,uH(t)[21])(t,e),set:(e,...n)=>(0,uH(t)[22])(t,e,...n),sub:(e,n)=>(0,uH(t)[23])(t,e,n)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},$V,VV,HV,YV,GV,KV,QV,ZV,XV,JV,eH,tH,nH,rH,oH,iH,aH,void 0,new WeakMap,sH,lH].map((t,n)=>e[n]||t);return cH.set(t,Object.freeze(n)),t}()}const vH=K.exports.createContext(void 0);function bH(e){const t=K.exports.useContext(vH);return(null==e?void 0:e.store)||t||(dH||(dH=mH()),dH)}function yH({children:e,store:t}){const n=K.exports.useRef(null);return t?K.exports.createElement(vH.Provider,{value:t},e):(null===n.current&&(n.current=mH()),K.exports.createElement(vH.Provider,{value:n.current},e))}const xH=e=>"function"==typeof(null==e?void 0:e.then),wH=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},kH=Re.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(wH(e),e)}),_H=new WeakMap,SH=(e,t,n)=>{const r=function(e){const t=uH(e),n=t[24];return n?n(t):t}(e),o=r[26];let i=_H.get(t);return i||(i=new Promise((r,a)=>{let s=t;const l=e=>t=>{s===e&&r(t)},c=e=>t=>{s===e&&a(t)},u=()=>{try{const t=n();xH(t)?(_H.set(t,i),s=t,t.then(l(t),c(t)),o(e,t,u)):r(t)}catch(OV){a(OV)}};t.then(l(t),c(t)),o(e,t,u)}),_H.set(t,i)),i};function CH(e,t){const{delay:n,unstable_promiseStatus:r=!Re.use}=t||{},o=bH(t),[[i,a,s],l]=K.exports.useReducer(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let c=i;if(a===o&&s===e||(l(),c=o.get(e)),K.exports.useEffect(()=>{const t=o.sub(e,()=>{if(r)try{const t=o.get(e);xH(t)&&wH(SH(o,t,()=>o.get(e)))}catch(OV){}"number"!=typeof n?l():setTimeout(l,n)});return l(),t},[o,e,n,r]),K.exports.useDebugValue(c),xH(c)){const t=SH(o,c,()=>o.get(e));return r&&wH(t),kH(t)}return c}function EH(e,t){const n=bH(t),r=K.exports.useCallback((...t)=>n.set(e,...t),[n,e]);return r}function AH(e,t){return[CH(e,t),EH(e,t)]}const OH=K.exports.lazy(()=>Dq(()=>Promise.resolve().then(()=>G7),void 0,import.meta.url)),TH=K.exports.lazy(()=>Dq(()=>Promise.resolve().then(()=>o8),void 0,import.meta.url)),NH=K.exports.lazy(()=>Dq(()=>Promise.resolve().then(()=>a8),void 0,import.meta.url));function RH(){return K.exports.useEffect(PH,[]),gc(uW,{children:gc(iW,{children:mc(rW,{element:gc($W,{}),path:"/",children:[gc(rW,{element:gc(IV,{}),index:!0}),gc(rW,{element:gc(yH,{children:gc(OH,{})}),path:"/widgets/:widgetId"}),gc(rW,{element:gc(TH,{}),path:"/responses/:widgetChannelId"}),gc(rW,{element:gc(NH,{}),path:"*"})]})})})}function PH(){const e=["bootstrap"],t=document.styleSheets;for(const n of t)if(null!==n.href){const t=new RegExp(e.join(".*css|"),"gi");(null==n?void 0:n.href.match(t))&&(n.disabled=!0)}}function MH(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const e of o)t[e]=r(e);return MH(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return MH(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}MH("accordion").parts("root","container","button","panel","icon"),MH("alert").parts("title","description","container","icon","spinner"),MH("avatar").parts("label","badge","container","excessLabel","group"),MH("breadcrumb").parts("link","item","container","separator"),MH("button").parts(),MH("checkbox").parts("control","icon","container","label"),MH("progress").parts("track","filledTrack","label"),MH("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),MH("editable").parts("preview","input","textarea"),MH("form").parts("container","requiredIndicator","helperText"),MH("formError").parts("text","icon"),MH("input").parts("addon","field","element","group"),MH("list").parts("container","item","icon"),MH("menu").parts("button","list","item","groupTitle","icon","command","divider");const LH=MH("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer");MH("numberinput").parts("root","field","stepperGroup","stepper"),MH("pininput").parts("field"),MH("popover").parts("content","header","body","footer","popper","arrow","closeButton"),MH("progress").parts("label","filledTrack","track"),MH("radio").parts("container","control","label"),MH("select").parts("field","icon"),MH("slider").parts("container","track","thumb","filledTrack","mark"),MH("stat").parts("container","label","helpText","number","icon"),MH("switch").parts("container","track","thumb","label"),MH("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),MH("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),MH("tag").parts("container","label","closeButton"),MH("card").parts("container","header","body","footer"),MH("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{defineMultiStyleConfig:DH,definePartsStyle:IH}=(jH=LH.keys,{definePartsStyle:e=>e,defineMultiStyleConfig:e=>({parts:jH,...e})});var jH;const zH=rM({breakpoints:{lg:"64em",md:"52em",sm:"40em",xl:"80em"},components:{Modal:DH({baseStyle:IH({dialogContainer:{zIndex:9999},overlay:{backdropFilter:"blur(1px)",zIndex:9998}})})},fonts:{body:"Outfit, sans-serif",heading:"Outfit, sans-serif",mono:"Menlo, monospace"},semanticTokens:{radii:{"2xl":"1rem","3xl":"1.5rem",base:"0.75rem",full:"999px",lg:"0.9375rem",md:"0.75rem",none:"0",sm:"0.375rem",xl:"1.125rem"}},shadows:{outline:"0 0 0 3px #D6BCFA"}}),BH=new pq,FH=document.querySelector("#bit-apps-root");if(FH){NF(FH).render(gc(K.exports.StrictMode,{children:gc(Aq,{client:BH,children:gc(LR,{theme:zH,children:gc(RH,{})})})}))}function qH({badge:e="",children:t}){return mc(qB,{mb:"4",children:[e&&gc(JR,{colorScheme:"purple",fontSize:"0.85em",children:e}),gc(TF,{fontSize:"lg",fontWeight:"medium",children:t})]})}var UH=Object.defineProperty,WH=Object.getOwnPropertySymbols,$H=Object.prototype.hasOwnProperty,VH=Object.prototype.propertyIsEnumerable,HH=(e,t,n)=>t in e?UH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YH=Symbol.for("immer-nothing"),GH=Symbol.for("immer-draftable"),KH=Symbol.for("immer-state");function QH(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ZH=Object.getPrototypeOf;function XH(e){return!!e&&!!e[KH]}function JH(e){var t;return!!e&&(nY(e)||Array.isArray(e)||!!e[GH]||!!(null==(t=e.constructor)?void 0:t[GH])||sY(e)||lY(e))}var eY=Object.prototype.constructor.toString(),tY=new WeakMap;function nY(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!=typeof n)return!1;let r=tY.get(n);return void 0===r&&(r=Function.toString.call(n),tY.set(n,r)),r===eY}function rY(e,t,n=!0){if(0===oY(e)){(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,r)=>t(r,n,e))}function oY(e){const t=e[KH];return t?t.type_:Array.isArray(e)?1:sY(e)?2:lY(e)?3:0}function iY(e,t){return 2===oY(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function aY(e,t,n){const r=oY(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function sY(e){return e instanceof Map}function lY(e){return e instanceof Set}function cY(e){return e.copy_||e.base_}function uY(e,t){if(sY(e))return new Map(e);if(lY(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=nY(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[KH];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(ZH(e),t)}{const t=ZH(e);if(null!==t&&n)return((e,t)=>{for(var n in t||(t={}))$H.call(t,n)&&HH(e,n,t[n]);if(WH)for(var n of WH(t))VH.call(t,n)&&HH(e,n,t[n]);return e})({},e);const r=Object.create(t);return Object.assign(r,e)}}function dY(e,t=!1){return hY(e)||XH(e)||!JH(e)||(oY(e)>1&&Object.defineProperties(e,{set:fY,add:fY,clear:fY,delete:fY}),Object.freeze(e),t&&Object.values(e).forEach(e=>dY(e,!0))),e}var fY={value:function(){QH(2)}};function hY(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var pY,gY={};function mY(e){const t=gY[e];return t||QH(0),t}function vY(){return pY}function bY(e,t){t&&(mY("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yY(e){xY(e),e.drafts_.forEach(kY),e.drafts_=null}function xY(e){e===pY&&(pY=e.parent_)}function wY(e){return pY={drafts_:[],parent_:pY,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kY(e){const t=e[KH];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function _Y(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[KH].modified_&&(yY(t),QH(4)),JH(e)&&(e=SY(t,e),t.parent_||EY(t,e)),t.patches_&&mY("Patches").generateReplacementPatches_(n[KH].base_,e,t.patches_,t.inversePatches_)):e=SY(t,n,[]),yY(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==YH?e:void 0}function SY(e,t,n){if(hY(t))return t;const r=e.immer_.shouldUseStrictIteration(),o=t[KH];if(!o)return rY(t,(r,i)=>CY(e,o,t,r,i,n),r),t;if(o.scope_!==e)return t;if(!o.modified_)return EY(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let i=t,a=!1;3===o.type_&&(i=new Set(t),t.clear(),a=!0),rY(i,(r,i)=>CY(e,o,t,r,i,n,a),r),EY(e,t,!1),n&&e.patches_&&mY("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function CY(e,t,n,r,o,i,a){if(null==o)return;if("object"!=typeof o&&!a)return;const s=hY(o);if(!s||a){if(XH(o)){const a=SY(e,o,i&&t&&3!==t.type_&&!iY(t.assigned_,r)?i.concat(r):void 0);if(aY(n,r,a),!XH(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(JH(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[r]===o&&s)return;SY(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!(sY(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))||EY(e,o)}}}function EY(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dY(t,n)}var AY={get(e,t){if(t===KH)return e;const n=cY(e);if(!iY(n,t))return function(e,t,n){var r;const o=NY(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!JH(r)?r:r===TY(e.base_,t)?(PY(e),e.copy_[t]=MY(r,e)):r},has:(e,t)=>t in cY(e),ownKeys:e=>Reflect.ownKeys(cY(e)),set(e,t,n){const r=NY(cY(e),t);if(null==r?void 0:r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=TY(cY(e),t),a=null==r?void 0:r[KH];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||iY(e.base_,t)))return!0;PY(e),RY(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==TY(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,PY(e),RY(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=cY(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){QH(11)},getPrototypeOf:e=>ZH(e.base_),setPrototypeOf(){QH(12)}},OY={};function TY(e,t){const n=e[KH];return(n?cY(n):e)[t]}function NY(e,t){if(!(t in e))return;let n=ZH(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ZH(n)}}function RY(e){e.modified_||(e.modified_=!0,e.parent_&&RY(e.parent_))}function PY(e){e.copy_||(e.copy_=uY(e.base_,e.scope_.immer_.useStrictShallowCopy_))}rY(AY,(e,t)=>{OY[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),OY.deleteProperty=function(e,t){return OY.set.call(this,e,t,void 0)},OY.set=function(e,t,n){return AY.set.call(this,e[0],t,n,e[0])};function MY(e,t){const n=sY(e)?mY("MapSet").proxyMap_(e,t):lY(e)?mY("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vY(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=AY;n&&(o=[r],i=OY);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:vY()).drafts_.push(n),n}function LY(e){if(!JH(e)||hY(e))return e;const t=e[KH];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uY(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=uY(e,!0);return rY(n,(e,t)=>{aY(n,e,LY(t))},r),t&&(t.finalized_=!1),n}var DY=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&QH(6),void 0!==n&&"function"!=typeof n&&QH(7),JH(e)){const o=wY(this),i=MY(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?yY(o):xY(o)}return bY(o,n),_Y(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===YH&&(r=void 0),this.autoFreeze_&&dY(r,!0),n){const t=[],o=[];mY("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}QH(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof(null==e?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){JH(e)||QH(8),XH(e)&&(e=function(e){XH(e)||QH(10);return LY(e)}(e));const t=wY(this),n=MY(e,void 0);return n[KH].isManual_=!0,xY(t),n}finishDraft(e,t){const n=e&&e[KH];n&&n.isManual_||QH(9);const{scope_:r}=n;return bY(r,t),_Y(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=mY("Patches").applyPatches_;return XH(e)?r(e,t):this.produce(e,e=>r(e,t))}},IY=DY.produce;function jY(e){const t=hH(e,(e,n,r)=>n(t,IY(e(t),"function"==typeof r?r:()=>r)));return t}const zY=Symbol("");!function(e=()=>{try{return window.localStorage}catch(OV){return void 0}},t){var n;let r,o;const i={getItem:(n,i)=>{var a,s;const l=e=>{if(r!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(OV){return i}r=e}return o},c=null!=(s=null==(a=e())?void 0:a.getItem(n))?s:null;return"function"==typeof(null==(u=c)?void 0:u.then)?c.then(l):l(c);var u},setItem:(n,r)=>{var o;return null==(o=e())?void 0:o.setItem(n,JSON.stringify(r,null==t?void 0:t.replacer))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let a;try{a=null==(n=e())?void 0:n.subscribe}catch(OV){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),a&&(i.subscribe=(s=a,(e,t,n)=>s(e,e=>{let r;try{r=JSON.parse(e||"")}catch(OV){r=n}t(r)})))}(),hH({channel:2,widget:1});const BY=hH(0);hH({});const FY=function(e){const t=hH(e,(n,r,o)=>{const i="function"==typeof o?o(n(t)):o;r(t,i===zY?e:i)});return t}(0),qY=jY(EV),UY=hH(void 0,(e,t)=>{t(qY,{...EV,sequence:e(BY)})}),WY=jY({active:!1,business_hours:[],call_to_action:{delay:0,text:void 0},created_at:"",custom_css:void 0,delete_responses:{delete_after:void 0,is_enabled:!1},domains:[],exclude_pages:[],hide_credit:!1,id:"",initial_delay:0,integrations:[],name:"",page_scroll:0,status:!0,store_responses:!0,styles:{badge_active:0,badge_color:void 0,color:void 0,icon:void 0,position:void 0,shape:void 0},widget_behavior:1}),$Y=hH(0);function VY(){const{isLoading:e,mutateAsync:t}=Rq(async e=>HW(`pro/widgets/${e.id}/update`,e));return{isWidgetUpdating:e,updateWidget:e=>t(e)}}function HY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YY(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GY(Object(n),!0).forEach(function(t){YY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZY(Object(n),!0).forEach(function(t){QY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JY(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function eG(e){return{}.toString.call(e).includes("Object")}function tG(e){return"function"==typeof e}var nG=JY(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),rG={changes:function(e,t){return eG(t)||nG("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&nG("changeField"),t},selector:function(e){tG(e)||nG("selectorType")},handler:function(e){tG(e)||eG(e)||nG("handlerType"),eG(e)&&Object.values(e).some(function(e){return!tG(e)})&&nG("handlersType")},initial:function(e){var t;e||nG("initialIsRequired"),eG(e)||nG("initialType"),t=e,Object.keys(t).length||nG("initialContent")}};function oG(e,t){return tG(t)?t(e.current):t}function iG(e,t){return e.current=XY(XY({},e.current),t),t}function aG(e,t,n){return tG(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var sG={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rG.initial(e),rG.handler(t);var n={current:e},r=JY(aG)(n,t),o=JY(iG)(n),i=JY(rG.changes)(e),a=JY(oG)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return rG.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(r,o,i,a)(e)}]}};var lG,cG={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n    You are using deprecated way of configuration.\n\n    Instead of using\n      monaco.config({ urls: { monacoBase: '...' } })\n    use\n      monaco.config({ paths: { vs: '...' } })\n\n    For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n  "},uG=(lG=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.length>=lG.length?lG.apply(this,r):function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e.apply(t,[].concat(r,o))}})(cG),dG={config:function(e){var t;return e||uG("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||uG("configType"),e.urls?(console.warn(cG.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function fG(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],fG(e[n],t[n]))}),KY(KY({},e),t)}var hG={type:"cancelation",msg:"operation is manually canceled"};function pG(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(hG):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var gG=["monaco"],mG=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HY(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HY(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(sG.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),2),vG=mG[0],bG=mG[1];function yG(e){return document.body.appendChild(e)}function xG(e){var t,n,r=vG(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return o.onload=function(){return e()},o.onerror=r.reject,o}function wG(){var e=vG(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var n=t.m||t;kG(n),e.resolve(n)},function(t){e.reject(t)})}function kG(e){vG().monaco||bG({monaco:e})}var _G=new Promise(function(e,t){return bG({resolve:e,reject:t})}),SG={config:function(e){var t=dG.config(e),n=t.monaco,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,gG);bG(function(e){return{config:fG(e.config,r),monaco:n}})},init:function(){var e=vG(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(bG({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),pG(_G);if(window.monaco&&window.monaco.editor)return kG(window.monaco),e.resolve(window.monaco),pG(_G);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(yG,xG)(wG)}return pG(_G)},__getMonacoInstance:function(){return vG(function(e){return e.monaco})}},CG={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},EG={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var AG=function({children:e}){return Re.createElement("div",{style:EG.container},e)},OG=AG;var TG=function({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:a}){return Re.createElement("section",{style:{...CG.wrapper,width:e,height:t},...a},!n&&Re.createElement(OG,null,r),Re.createElement("div",{ref:o,style:{...CG.fullWidth,...!n&&CG.hide},className:i}))},NG=K.exports.memo(TG);var RG=function(e){K.exports.useEffect(e,[])};var PG=function(e,t,n=!0){let r=K.exports.useRef(!0);K.exports.useEffect(r.current||!n?()=>{r.current=!1}:e,t)};function MG(){}function LG(e,t,n,r){return function(e,t){return e.editor.getModel(DG(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?DG(e,r):void 0)}(e,t,n,r)}function DG(e,t){return e.Uri.parse(t)}var IG=function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:h="100%",className:p,wrapperProps:g={},beforeMount:m=MG,onMount:v=MG}){let[b,y]=K.exports.useState(!1),[x,w]=K.exports.useState(!0),k=K.exports.useRef(null),_=K.exports.useRef(null),S=K.exports.useRef(null),C=K.exports.useRef(v),E=K.exports.useRef(m),A=K.exports.useRef(!1);RG(()=>{let e=SG.init();return e.then(e=>(_.current=e)&&w(!1)).catch(e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e)),()=>k.current?function(){var e,t,n,r;let o=null==(e=k.current)?void 0:e.getModel();s||null==(t=null==o?void 0:o.original)||t.dispose(),l||null==(n=null==o?void 0:o.modified)||n.dispose(),null==(r=k.current)||r.dispose()}():e.cancel()}),PG(()=>{if(k.current&&_.current){let t=k.current.getOriginalEditor(),o=LG(_.current,e||"",r||n||"text",i||"");o!==t.getModel()&&t.setModel(o)}},[i],b),PG(()=>{if(k.current&&_.current){let e=k.current.getModifiedEditor(),r=LG(_.current,t||"",o||n||"text",a||"");r!==e.getModel()&&e.setModel(r)}},[a],b),PG(()=>{let e=k.current.getModifiedEditor();e.getOption(_.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],b),PG(()=>{var t,n;null==(n=null==(t=k.current)?void 0:t.getModel())||n.original.setValue(e||"")},[e],b),PG(()=>{let{original:e,modified:t}=k.current.getModel();_.current.editor.setModelLanguage(e,r||n||"text"),_.current.editor.setModelLanguage(t,o||n||"text")},[n,r,o],b),PG(()=>{var e;null==(e=_.current)||e.editor.setTheme(c)},[c],b),PG(()=>{var e;null==(e=k.current)||e.updateOptions(d)},[d],b);let O=K.exports.useCallback(()=>{var s;if(!_.current)return;E.current(_.current);let l=LG(_.current,e||"",r||n||"text",i||""),c=LG(_.current,t||"",o||n||"text",a||"");null==(s=k.current)||s.setModel({original:l,modified:c})},[n,t,o,e,r,i,a]),T=K.exports.useCallback(()=>{var e;!A.current&&S.current&&(k.current=_.current.editor.createDiffEditor(S.current,{automaticLayout:!0,...d}),O(),null==(e=_.current)||e.editor.setTheme(c),y(!0),A.current=!0)},[d,c,O]);return K.exports.useEffect(()=>{b&&C.current(k.current,_.current)},[b]),K.exports.useEffect(()=>{!x&&!b&&T()},[x,b,T]),Re.createElement(NG,{width:h,height:f,isEditorReady:b,loading:u,_ref:S,className:p,wrapperProps:g})};K.exports.memo(IG);var jG=function(e){let t=K.exports.useRef();return K.exports.useEffect(()=>{t.current=e},[e]),t.current},zG=new Map;var BG,FG,qG=function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:h="100%",height:p="100%",className:g,wrapperProps:m={},beforeMount:v=MG,onMount:b=MG,onChange:y,onValidate:x=MG}){let[w,k]=K.exports.useState(!1),[_,S]=K.exports.useState(!0),C=K.exports.useRef(null),E=K.exports.useRef(null),A=K.exports.useRef(null),O=K.exports.useRef(b),T=K.exports.useRef(v),N=K.exports.useRef(),R=K.exports.useRef(r),P=jG(i),M=K.exports.useRef(!1),L=K.exports.useRef(!1);RG(()=>{let e=SG.init();return e.then(e=>(C.current=e)&&S(!1)).catch(e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e)),()=>{return E.current?(null==(t=N.current)||t.dispose(),f?d&&zG.set(i,E.current.saveViewState()):null==(n=E.current.getModel())||n.dispose(),void E.current.dispose()):e.cancel();var t,n}}),PG(()=>{var a,s,l,c;let u=LG(C.current,e||r||"",t||o||"",i||n||"");u!==(null==(a=E.current)?void 0:a.getModel())&&(d&&zG.set(P,null==(s=E.current)?void 0:s.saveViewState()),null==(l=E.current)||l.setModel(u),d&&(null==(c=E.current)||c.restoreViewState(zG.get(i))))},[i],w),PG(()=>{var e;null==(e=E.current)||e.updateOptions(c)},[c],w),PG(()=>{!E.current||void 0===r||(E.current.getOption(C.current.editor.EditorOption.readOnly)?E.current.setValue(r):r!==E.current.getValue()&&(L.current=!0,E.current.executeEdits("",[{range:E.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),E.current.pushUndoStop(),L.current=!1))},[r],w),PG(()=>{var e,t;let n=null==(e=E.current)?void 0:e.getModel();n&&o&&(null==(t=C.current)||t.editor.setModelLanguage(n,o))},[o],w),PG(()=>{var e;void 0!==s&&(null==(e=E.current)||e.revealLine(s))},[s],w),PG(()=>{var e;null==(e=C.current)||e.editor.setTheme(a)},[a],w);let D=K.exports.useCallback(()=>{var l;if(A.current&&C.current&&!M.current){T.current(C.current);let f=i||n,h=LG(C.current,r||e||"",t||o||"",f||"");E.current=null==(l=C.current)?void 0:l.editor.create(A.current,{model:h,automaticLayout:!0,...c},u),d&&E.current.restoreViewState(zG.get(f)),C.current.editor.setTheme(a),void 0!==s&&E.current.revealLine(s),k(!0),M.current=!0}},[e,t,n,r,o,i,c,u,d,a,s]);return K.exports.useEffect(()=>{w&&O.current(E.current,C.current)},[w]),K.exports.useEffect(()=>{!_&&!w&&D()},[_,w,D]),R.current=r,K.exports.useEffect(()=>{var e,t;w&&y&&(null==(e=N.current)||e.dispose(),N.current=null==(t=E.current)?void 0:t.onDidChangeModelContent(e=>{L.current||y(E.current.getValue(),e)}))},[w,y]),K.exports.useEffect(()=>{if(w){let e=C.current.editor.onDidChangeMarkers(e=>{var t;let n=null==(t=E.current.getModel())?void 0:t.uri;if(n&&e.find(e=>e.path===n.path)){let e=C.current.editor.getModelMarkers({resource:n});null==x||x(e)}});return()=>{null==e||e.dispose()}}return()=>{}},[w,x]),Re.createElement(NG,{width:h,height:p,isEditorReady:w,loading:l,_ref:A,className:g,wrapperProps:m})},UG=K.exports.memo(qG);function WG(){const[e,t]=AH(WY),{isWidgetUpdating:n,updateWidget:r}=VY(),{isOpen:o,onClose:i,onOpen:a}=st(),s=GW(),l=zq.IS_PRO?0:-1,[c,u]=K.exports.useState();return mc(eP,{maxW:"lg",children:[gc(qH,{children:__("Custom CSS","bit-assist")}),gc(VW,{children:gc(bF,{color:"inherit",cursor:"pointer",filter:"auto",h:"36",onClick:a,readOnly:!0,tabIndex:l,value:e.custom_css||""})}),mc($j,{id:"custom_css",isCentered:!0,isOpen:o,onClose:i,size:"2xl",children:[gc(Bz,{}),mc(Pz,{children:[gc(Iz,{py:"2",children:__("Custom CSS","bit-assist")}),gc(Lz,{}),gc(Mz,{p:"0",children:gc(eP,{boxShadow:"md",children:gc(UG,{defaultLanguage:"css",defaultValue:e.custom_css,height:"40vh",onChange:u,theme:"vs-dark",value:c||"",width:"100%"})})}),mc(Dz,{py:"2",children:[gc(iP,{mr:3,onClick:i,children:__("Cancel","bit-assist")}),gc(iP,{colorScheme:"purple",isLoading:n,loadingText:__("Updating...","bit-assist"),onClick:async()=>{const{data:n,status:o}=await r({...e,custom_css:c});t(e=>{e.custom_css=c}),s(o,n),i()},shadow:"md",children:__("Update","bit-assist")})]})]})]})]})}function $G(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(FG=BG||(BG={})).PageUp="PageUp",FG.PageDown="PageDown",FG.End="End",FG.Home="Home",FG.ArrowLeft="ArrowLeft",FG.ArrowUp="ArrowUp",FG.ArrowRight="ArrowRight",FG.ArrowDown="ArrowDown",FG.Tab="Tab";var VG=BG;function HG(e=0,t,n=0){return e<n?n:e>t?t:e}const YG=(e,t,n,r)=>{let o=(e.clientX-t.left)/t.width;return o=HG(Math.round(o*n),n,r),o},GG=(e,t,n,r)=>{let o=(e.clientY-t.top)/t.height;return o=HG(Math.round(o*n),n,r),o},KG=e=>{var{ref:t,onStep:n,ariaLabel:r,ariaValueNow:o,ariaValueText:i,maxValue:a=100,minValue:s=0,step:l=1,bigStep:c=10}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["ref","onStep","ariaLabel","ariaValueNow","ariaValueText","maxValue","minValue","step","bigStep"]);const d=K.exports.useRef(()=>{});K.exports.useEffect(()=>d.current,[]);const f=K.exports.useCallback(e=>{if(!t.current||"function"!=typeof u.onChange)return;e.preventDefault();const n=t.current.getBoundingClientRect();if("both"===u.direction){let t=YG(e,n,a,s),r=GG(e,n,a,s);return u.onChange({x:t,y:r})}if("horizontal"===u.direction){let t=YG(e,n,a,s);return u.onChange(t)}if("vertical"===u.direction){let t=GG(e,n,a,s);return u.onChange(t)}},[u.direction,u.onChange]),h=K.exports.useCallback(e=>{var n;t.current&&(e.preventDefault(),d.current=(()=>{const e=e=>{e.preventDefault()};return window.addEventListener("touchmove",e,{passive:!1,capture:!0}),()=>{window.removeEventListener("touchmove",e,{capture:!0})}})(),t.current.focus(),t.current.onpointermove=f,null===(n=t.current)||void 0===n||n.setPointerCapture(e.pointerId),f(e))},[f]),p=K.exports.useCallback(e=>{t.current&&(t.current.onpointermove=null,t.current.releasePointerCapture(e.pointerId),d.current(),d.current=()=>{})},[]);return{sliderProps:{tabIndex:0,onPointerDown:h,onPointerUp:p,onKeyDown:e=>{var t,r;e.key!==VG.Tab&&e.preventDefault();let o=e.shiftKey?c:l;switch(e.key){case VG.ArrowLeft:case VG.ArrowDown:null==n||n(-o);break;case VG.ArrowRight:case VG.ArrowUp:null==n||n(o);break;case VG.Home:"vertical"!==u.direction&&"horizontal"!==u.direction||null===(t=u.onChange)||void 0===t||t.call(u,s);break;case VG.End:"vertical"!==u.direction&&"horizontal"!==u.direction||null===(r=u.onChange)||void 0===r||r.call(u,a);break;default:return}},onPointerCancel:p,role:"slider","aria-valuemin":s,"aria-valuemax":a,"aria-label":r,"aria-valuenow":o,"aria-valuetext":i}}},QG=(e,t,n=0)=>{return"number"==typeof(r=e)&&!1===isNaN(r)&&e>=n&&e<=t;var r},ZG=e=>{const{h:t,s:n,v:r}=(({h:e,s:t,v:n})=>({h:HG(e,359,0),s:HG(t,100,0),v:HG(n,100,0)}))(e);let o=r/100,i=n/100*o,a=t/60,s=i*(1-Math.abs(a%2-1)),l=o-i;return i=255*(i+l)|0,s=255*(s+l)|0,l=255*l|0,a>=0&&a<1?{r:i,g:s,b:l}:a>=1&&a<2?{r:s,g:i,b:l}:a>=2&&a<3?{r:l,g:i,b:s}:a>=3&&a<4?{r:l,g:s,b:i}:a>=4&&a<5?{r:s,g:l,b:i}:a>=5&&a<6?{r:i,g:l,b:s}:{r:0,g:0,b:0}},XG=e=>{const{r:t,g:n,b:r}=(({r:e,g:t,b:n})=>({r:HG(e,255,0),g:HG(t,255,0),b:HG(n,255,0)}))(e);let o=t/255,i=n/255,a=r/255,s=Math.max(o,i,a),l=s-Math.min(o,i,a),c=0,u=0,d=0;return l&&(s===o&&(c=(i-a)/l),s===i&&(c=2+(a-o)/l),s===a&&(c=4+(o-i)/l),s&&(u=l/s)),c=60*c|0,c<0&&(c+=360),u=100*u|0,d=100*s|0,{h:c,s:u,v:d}},JG=({r:e,g:t,b:n},r=!0)=>(r?"#":"")+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1),eK=e=>e.a<100?(({r:e,g:t,b:n,a:r})=>"number"==typeof r&&!1===isNaN(r)?`rgba(${e}, ${t}, ${n}, ${HG(r,100,0)/100})`:`rgb(${e}, ${t}, ${n})`)(e):JG(e),tK={h:0,s:50,v:50,a:100,r:128,g:64,b:64,hex:"804040",str:"#804040"},nK=(e,t,n)=>{QG(n,255)&&e(e=>{const{r:r,g:o,b:i,a:a}=Object.assign(Object.assign({},e),{[t]:n}),{h:s,s:l,v:c}=XG({r:r,g:o,b:i});return{r:r,g:o,b:i,a:a,h:s,s:l,v:c,hex:JG({r:r,g:o,b:i},!1),str:eK({r:r,g:o,b:i,a:a})}})},rK=(e,t,n,r=100)=>{QG(n,r)&&e(e=>{const{h:r,s:o,v:i,a:a}=Object.assign(Object.assign({},e),{[t]:n}),{r:s,g:l,b:c}=ZG({h:r,s:o,v:i});return{h:r,s:o,v:i,r:s,g:l,b:c,a:a,hex:JG({r:s,g:l,b:c},!1),str:eK({r:s,g:l,b:c,a:a})}})},oK=(e,t,n,r=100)=>{e(e=>{const{h:o,s:i,v:a,a:s}=Object.assign(Object.assign({},e),{[t]:HG(e[t]+n,r,0)}),{r:l,g:c,b:u}=ZG({h:o,s:i,v:a});return{h:o,s:i,v:a,r:l,g:c,b:u,a:s,hex:JG({r:l,g:c,b:u},!1),str:eK({r:l,g:c,b:u,a:s})}})};function iK(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var aK={container:"styles-module_container__2LiHz",light:"styles-module_light__367NS",dark:"styles-module_dark__2oP9R"};iK(".styles-module_container__2LiHz {\n  position: relative;\n  width: 220px;\n  height: 220px;\n}\n\n.styles-module_container__2LiHz:focus {\n  outline: 2px solid #09f;\n}\n\n.styles-module_light__367NS {\n  background: linear-gradient(to right, white 0%, transparent 100%);\n}\n\n.styles-module_dark__2oP9R {\n  background: linear-gradient(to bottom, transparent 0, #000 100%);\n}\n");var sK={thumb:"common-module_thumb__3Kyme",overlay:"common-module_overlay__3Oki6",vHidden:"common-module_vHidden__kcR2k",transBackground:"common-module_transBackground__2AOKu"};iK(".common-module_thumb__3Kyme {\n  z-index: 10;\n  position: absolute;\n  width: 12px;\n  height: 12px;\n  background: white;\n  border: 2px solid white;\n  border-radius: 6px;\n  transform: translate(-50%, -50%);\n  box-sizing: border-box;\n}\n\n.common-module_overlay__3Oki6 {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  bottom: 0;\n}\n\n.common-module_vHidden__kcR2k {\n  border: 0;\n  clip: rect(0 0 0 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n  white-space: nowrap;\n  word-wrap: normal;\n}\n\n.common-module_transBackground__2AOKu {\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==);\n}\n");const lK=e=>{var{state:t}=e,n=$G(e,["state"]);const r=K.exports.useRef(null),{containerProps:o,descriptionProps:i}=(({state:e,ref:t,ariaDescription:n="Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness.",ariaLabel:r="Saturation and brightness",ariaValueFormat:o="Saturation {0} brightness {1}"})=>{const i=K.exports.useRef(!1),a=e.color,s=o.replace("{0}",String(a.s)).replace("{1}",String(a.v)),{sliderProps:l}=KG({ref:t,maxValue:100,direction:"both",ariaLabel:r,ariaValueText:s,ariaValueNow:i.current?a.s:a.v,onChange({x:t,y:n}){n=100-n,e.setSV(t,n)}});return{containerProps:Object.assign(Object.assign({},l),{onKeyDown:t=>{t.key!==VG.Tab&&t.preventDefault();const n=t.shiftKey?10:1;switch(t.key){case VG.ArrowUp:i.current=!1,e.rotateV(n);break;case VG.ArrowDown:i.current=!1,e.rotateV(-n);break;case VG.ArrowLeft:i.current=!0,e.rotateS(-n);break;case VG.ArrowRight:i.current=!0,e.rotateS(n);break;case VG.Home:i.current=!0,e.setS(0);break;case VG.End:i.current=!0,e.setS(100);break;case VG.PageUp:i.current=!1,e.setV(100);break;case VG.PageDown:i.current=!1,e.setV(0)}},"aria-describedby":"color-picker-desc",id:"color-rectangle1"}),descriptionProps:{id:"color-picker-desc",children:n}}})({state:t,ref:r});return mc("div",{...Object.assign({className:[aK.container,n.className||""].join(" ")},n,o,{style:Object.assign({background:t.getSolidColor()},n.style),ref:r}),children:[gc("div",{...Object.assign({className:sK.vHidden},i)}),gc("div",{style:Object.assign({left:t.color.s+"%",top:100-t.color.v+"%",backgroundColor:"#"+t.color.hex},n.style),className:sK.thumb}),gc("div",{className:[sK.overlay,aK.light].join(" ")}),gc("div",{className:[sK.overlay,aK.dark].join(" ")})]})};var cK={container:"styles-module_container__3YAfB",thumb:"styles-module_thumb__3_gF5",sliderOverlay:"styles-module_sliderOverlay__3dabP"};iK(".styles-module_container__3YAfB {\n  position: relative;\n  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px 0.6px inset;\n  border-radius: 2px;\n  min-width: 160px;\n  height: 12px;\n}\n\n.styles-module_container__3YAfB:focus {\n  outline: 1px solid #09f;\n}\n\n.styles-module_thumb__3_gF5 {\n  top: 50%;\n}\n\n.styles-module_sliderOverlay__3dabP {\n  border-radius: 2px;\n}\n");const uK={background:`linear-gradient(${["to left","red 0","#f09 10%","#cd00ff 20%","#3200ff 30%","#06f 40%","#00fffd 50%","#0f6 60%","#35ff00 70%","#cdff00 80%","#f90 90%","red 100%"].join(",")})`},dK=K.exports.memo(e=>{var{state:t}=e,n=$G(e,["state"]);const r=K.exports.useRef(null),{sliderProps:o}=(({state:e,ref:t})=>{const{sliderProps:n}=KG({ref:t,direction:"horizontal",onChange:t=>e.setH(t),onStep:t=>e.rotateH(t),maxValue:359,ariaLabel:"Hue slider",ariaValueNow:e.color.h,ariaValueText:String(e.color.h)});return{sliderProps:n}})({ref:r,state:t});return gc("div",{...Object.assign({},n,o,{className:[cK.container,n.className||""].join(" "),style:Object.assign(Object.assign({},uK),n.style),ref:r}),children:gc("div",{className:[sK.thumb,cK.thumb].join(" "),style:{left:100*t.color.h/359+"%",background:t.getSolidColor()}})})}),fK=K.exports.memo(e=>{var{state:t}=e,n=$G(e,["state"]);const r=K.exports.useRef(null),{sliderProps:o}=(({state:e,ref:t})=>{const{sliderProps:n}=KG({ref:t,direction:"horizontal",onChange:t=>e.setA(t),onStep:t=>e.rotateA(t),maxValue:100,ariaLabel:"Alpha slider",ariaValueNow:e.color.a,ariaValueText:String(e.color.a)});return{sliderProps:n}})({ref:r,state:t});return mc("div",{...Object.assign({},n,o,{className:[cK.container,sK.transBackground,n.className||""].join(" "),ref:r}),children:[gc("div",{className:[sK.overlay,cK.sliderOverlay].join(" "),style:{backgroundImage:`linear-gradient(to right, transparent, #${t.color.hex})`}}),gc("div",{className:[sK.thumb,cK.thumb].join(" "),style:{left:100*t.color.a/100+"%",background:t.color.str}})]})}),hK=e=>{var{color:t}=e,n=$G(e,["color"]);return gc("div",{...Object.assign({},n,{className:sK.transBackground,style:Object.assign(Object.assign({},n.style),{display:"inline-block",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"})}),children:gc("div",{style:{boxShadow:"rgba(0, 0, 0, 0.2) 0px 0px 0px 0.6px inset",backgroundColor:t,width:"40px",height:"40px"}})})};iK(".index-module_container__p6aGD {\n  padding: 10px;\n  border-radius: 6px;\n  border: 1px solid #dcdbdb;\n  display: inline-block;\n  font-family: sans-serif;\n  background: white;\n}\n");iK('.styles-module_label__XgqtI {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  flex: 1;\n}\n\n.styles-module_label__XgqtI:not(:last-child) {\n  margin-right: 4px;\n}\n\n.styles-module_input__2EvWe {\n  border: 1px solid #dcdbdb;\n  border-radius: 3px;\n  /* max-width: 100%; */\n  height: 24px;\n  padding: 3px;\n  width: 100%;\n  box-sizing: border-box;\n}\n\n.styles-module_input__2EvWe:focus {\n  outline: none;\n  border: 1px solid rgb(51, 154, 223);\n}\n\n/* .input:not(:last-child) {\n  margin-right: 4px;\n} */\n\n.styles-module_input__2EvWe::-webkit-outer-spin-button,\n.styles-module_input__2EvWe::-webkit-inner-spin-button {\n  -webkit-appearance: none;\n  margin: 0;\n}\n\n.styles-module_input__2EvWe[type="number"] {\n  -moz-appearance: textfield;\n}\n\n.styles-module_select__3Z7Hr {\n  border-radius: 3px;\n  width: 24px;\n  height: 24px;\n  cursor: pointer;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border: none;\n  background: transparent;\n  box-sizing: border-box;\n}\n\n.styles-module_select__3Z7Hr:hover,\n.styles-module_select__3Z7Hr:focus {\n  background: #eee;\n}\n');const pK=({label:e,value:t,onChange:n,max:r=255,type:o="number"})=>mc("label",{className:"styles-module_label__XgqtI",children:[gc("input",{className:"styles-module_input__2EvWe",value:t,type:o,min:0,max:r,onChange:n}),gc("span",{style:{fontSize:"12px",fontWeight:500},children:e})]}),gK=["hex","rgba","hsva"],mK=({state:e})=>{const t=t=>{e.setA(parseFloat(t.target.value))},[n,r]=K.exports.useState("hex");return mc("div",{style:{display:"flex",marginTop:"10px",alignItems:"center"},children:[mc("div",{style:{display:"flex",flex:1,justifyContent:"space-between",marginRight:"10px"},children:["rgba"===n&&Re.createElement(Re.Fragment,null,gc(pK,{label:"R",onChange:t=>{e.setR(parseFloat(t.target.value))},value:e.color.r}),gc(pK,{label:"G",onChange:t=>{e.setG(parseFloat(t.target.value))},value:e.color.g}),gc(pK,{label:"B",onChange:t=>{e.setB(parseFloat(t.target.value))},value:e.color.b}),gc(pK,{label:"A",onChange:t,value:e.color.a,max:100})),"hsva"===n&&Re.createElement(Re.Fragment,null,gc(pK,{label:"H",onChange:t=>{e.setH(parseFloat(t.target.value))},value:e.color.h}),gc(pK,{label:"S",onChange:t=>{e.setS(parseFloat(t.target.value))},value:e.color.s}),gc(pK,{label:"V",onChange:t=>{e.setV(parseFloat(t.target.value))},value:e.color.v}),gc(pK,{label:"A",onChange:t,value:e.color.a,max:100})),"hex"===n&&gc(pK,{type:"text",label:"Hex",onChange:t=>{e.setHex(t.target.value)},value:e.color.hex})]}),gc("button",{"aria-label":"Change color mode",className:"styles-module_select__3Z7Hr",style:{marginLeft:"auto"},onClick:()=>{const e=gK.indexOf(n),t=e===gK.length-1?0:e+1;r(gK[t])},children:gc("svg",{width:"12px",height:"12px",viewBox:"0 0 16 16",focusable:"false",children:gc("path",{fill:"currentColor",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z"})})})]})},vK=K.exports.forwardRef((e,t)=>{var{showPreview:n=!0,showParams:r=!1}=e;const o=(e=>{const[t,n]=K.exports.useState(e.defaultValue||tK);K.exports.useEffect(()=>{e.value&&n(e.value)},[e.value]);const r=r=>{if("function"==typeof e.onChange){if(void 0!==e.value)return void e.onChange("function"==typeof r?r(t):r);e.onChange("function"==typeof r?r(t):r)}n(r)};return{setH:e=>rK(r,"h",e,359),setS:e=>rK(r,"s",e),setV:e=>rK(r,"v",e),setR:e=>nK(r,"r",e),setG:e=>nK(r,"g",e),setB:e=>nK(r,"b",e),setA:e=>{QG(e,100)&&r(t=>{const n=Object.assign(Object.assign({},t),{a:e});return n.str=eK(n),n})},setSV:(e,t)=>{(QG(e,100)||QG(t,100))&&r(n=>{const{h:r,a:o}=n,{r:i,g:a,b:s}=ZG({h:r,s:e,v:t}),l=JG({r:i,g:a,b:s},!1),c=eK({r:i,g:a,b:s,a:o});return{h:r,s:e,v:t,r:i,g:a,b:s,a:o,hex:l,str:c}})},setHex:(e,n={r:t.r,g:t.g,b:t.b})=>{r(({a:t})=>{const{r:r,g:o,b:i}=((e,t=null)=>!0!==/(^#{0,1}[0-9A-F]{6}$)|(^#{0,1}[0-9A-F]{3}$)/i.test(e)?t:("#"===e[0]&&(e=e.slice(1,e.length)),3===e.length&&(e=e.replace(/([0-9A-F])([0-9A-F])([0-9A-F])/i,"$1$1$2$2$3$3")),{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}))(e,n),{h:a,s:s,v:l}=XG({r:r,g:o,b:i}),c=eK({r:r,g:o,b:i,a:t});return{r:r,g:o,b:i,h:a,s:s,v:l,hex:e,a:t,str:c}})},rotateH:e=>oK(r,"h",e,359),rotateS:e=>oK(r,"s",e),rotateV:e=>oK(r,"v",e),rotateA:e=>{r(t=>Object.assign(Object.assign({},t),{a:HG(t.a+e,100,0)}))},color:t,getSolidColor:()=>(({h:e,s:t,v:n})=>{let{r:r,g:o,b:i}=ZG({h:e,s:t,v:n});return JG({r:r,g:o,b:i})})({h:t.h,s:100,v:100})}})($G(e,["showPreview","showParams"]));return Re.createElement("div",{className:"index-module_container__p6aGD",role:"group",ref:t},Re.createElement(lK,{style:{marginBottom:"10px"},state:o}),mc("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[mc("div",{style:{flex:1},children:[gc(dK,{style:{marginBottom:"10px"},state:o}),gc(fK,{state:o})]}),n&&gc("div",{style:{width:"10px"}}),n&&gc(hK,{color:o.color.str})]}),r&&gc(mK,{state:o}))});function bK({color:e,handleChange:t,handleClose:n}){return mc(rB,{onClose:n,placement:"right",children:[gc(pB,{children:gc(iP,{_focus:{backgroundColor:null==e?void 0:e.str,boxShadow:"outline"},_hover:{backgroundColor:null==e?void 0:e.str},"aria-label":__("Color picker","bit-assist"),bgColor:null==e?void 0:e.str,boxShadow:"md",h:"14",rounded:"md",transition:"none",w:"14"})}),gc(hB,{border:"0",rounded:"sm",w:"242px",children:gc(sB,{maxW:"100%",p:"0",children:gc(vK,{onChange:t,showParams:!0,showPreview:!1,value:e})})})]})}function yK(){const{isLoading:e,mutateAsync:t}=Rq(async e=>HW(`widgets/${e.id}/update`,e));return{isWidgetUpdating:e,updateWidget:e=>t(e)}}function xK(){var e;const[t,n]=AH(WY),{updateWidget:r}=yK(),o=K.exports.useRef(!1),i=GW();return mc(eP,{children:[gc(qH,{children:__("Widget Color","bit-assist")}),gc(bK,{color:null==(e=t.styles)?void 0:e.color,handleChange:e=>{o.current=!0,n(t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.color=e})},handleClose:async()=>{if(!o.current)return;o.current=!1;const{data:e,status:n}=await r(t);i(n,e)}})]})}var wK={exports:{}};
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */function kK(){const[e,t]=AH(WY),{updateWidget:n}=yK(),r=GW(),o=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:o}=await n(e);r(o,t)},1e3)).current;return K.exports.useEffect(()=>()=>{o.cancel()},[o]),mc(jP,{alignItems:"center",display:"flex",children:[gc(iD,{fontSize:"lg",mb:"0",children:__("Hide Credit","bit-assist")}),gc(WB,{colorScheme:"purple",isChecked:Boolean(e.hide_credit),onChange:async n=>{t(e=>{e.hide_credit=n.target.checked}),o(IY(e,e=>{e.hide_credit=n.target.checked}))}})]})}function _K(){var e;const[t,n]=AH(WY),{updateWidget:r}=yK(),o=GW(),[i,a]=K.exports.useState(""),s=async e=>{n(t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.customImage=e});const{data:i,status:a}=await r(IY(t,t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.customImage=e}));o(a,i)};return mc(eP,{mt:"6",children:[mc(iM,{alignItems:"center",gap:"4",children:[gc(SK,{customImage:null==(e=t.styles)?void 0:e.customImage,removeImage:s}),gc(iP,{leftIcon:gc(BW,{}),onClick:()=>{if("undefined"!=typeof wp&&wp.media){const e=wp.media({button:{text:__("Select picture","bit-assist")},library:{type:"image"},multiple:!1,title:__("Media","bit-assist")});e.on("select",()=>{const t=e.state().get("selection").first().toJSON();s(t.url),t.filesizeInBytes>512e3&&a(__("⚠ Larger size image might slow down load time","bit-assist"))}),e.open()}},children:__("Browse","bit-assist")})]}),gc(TF,{color:"gray.500",fontSize:"sm",mt:"1",children:__("image size 100 x 100px","bit-assist")}),""!==i&&gc(TF,{color:"yellow.500",fontSize:"sm",mt:"1",children:i})]})}function SK({customImage:e,removeImage:t}){return gc(pc,{children:e?mc(eP,{position:"relative",children:[gc(hD,{alt:__("Custom image","bit-assist"),border:"1px",borderColor:"gray.200",boxSize:"14",objectFit:"cover",objectPosition:"center",src:e}),gc(uP,{"aria-label":__("Remove custom icon","bit-assist"),borderRadius:"full",colorScheme:"red",h:"5",icon:gc(FW,{}),minW:"5",onClick:()=>t(""),position:"absolute",right:"-2",top:"-1",w:"5"})]}):gc(eP,{alignItems:"center",bg:"gray.200",boxSize:"14",display:"flex",justifyContent:"center",rounded:"sm",children:gc(TF,{color:"gray.600",fontSize:"10px",children:__("No Image","bit-assist")})})})}function CK(e){const{getInputProps:t,getRadioProps:n}=yB(e),r=Ad("purple.500","purple.200"),o=Ad("white","gray.800"),{colorMode:i}=Ed(),a=t(),s=n();return mc(eP,{as:"label",children:[gc("input",{...a}),gc(dP,{...s,_checked:{bg:"border"!==(null==e?void 0:e.design)&&r,borderColor:r,borderWidth:"2px",color:o},_focus:{boxShadow:"outline"},borderRadius:"md",borderWidth:"1px",boxShadow:"md",className:`radio-card ${i}`,cursor:"pointer",fontSize:"xl",h:"14",padding:1,w:"14",children:e.children})]})}function EK(){var e,t;const[n,r]=AH(WY),{updateWidget:o}=yK(),i=GW(),a={"widget-icon-1":`${zq.ROOT_URL}/img/widget/widgetIcon1.svg`,"widget-icon-2":`${zq.ROOT_URL}/img/widget/widgetIcon2.svg`,"widget-icon-3":`${zq.ROOT_URL}/img/widget/widgetIcon3.svg`},{getRadioProps:s,getRootProps:l,setValue:c}=gB({defaultValue:null==(e=n.styles)?void 0:e.icon,name:"widgetIcon",onChange:async e=>{r(t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.icon=e,t.styles.iconUrl=a[e]});const{data:t,status:s}=await o(IY(n,t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.icon=e,t.styles.iconUrl=a[e]}));i(s,t)}}),u=l();return K.exports.useEffect(()=>{var e;c((null==(e=n.styles)?void 0:e.icon)||"")},[null==(t=n.styles)?void 0:t.icon]),mc(eP,{children:[gc(qH,{children:__("Widget Icon","bit-assist")}),gc(qB,{...u,flexWrap:"wrap",gap:2,spacing:0,children:Object.entries(a).map(([e,t])=>{const n=s({value:e});return gc(CK,{...n,children:gc(hD,{alt:__("Widget icon","bit-assist"),className:"widget-icon",h:"7",objectFit:"contain",src:t,w:"7"})},e)})}),gc(_K,{})]})}function AK(){const[e,t]=AH(WY),{updateWidget:n}=yK(),r=GW(),o=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:o}=await n(e);r(o,t)},1e3)).current;K.exports.useEffect(()=>()=>{o.cancel()},[o]);return mc(eP,{children:[gc(qH,{children:__("Widget Name","bit-assist")}),gc(pD,{isRequired:!0,maxW:"lg",onChange:async n=>{t(e=>{e.name=n.target.value}),o({...e,name:n.target.value})},placeholder:__("Widget Name","bit-assist"),value:e.name||__("Untitled Widget","bit-assist")})]})}function OK(){var e,t,n,r,o;const i=GW(),[a,s]=AH(WY),{updateWidget:l}=yK(),c=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await l(e);i(n,t)},1e3)).current,u=async(e,t)=>{const n=Number(e.target.value);n>400?i("warning",__("Please enter a valid number","bit-assist")):(s(e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles[t]=n}),c(IY(a,e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles[t]=n})))};if(K.exports.useEffect(()=>()=>{c.cancel()},[c]),void 0!==(null==(e=a.styles)?void 0:e.position))return mc(eP,{mt:"4",children:[a.styles.position.includes("left")&&gc(NK,{onChange:u,position:"left",value:(null==(t=a.styles)?void 0:t.left)||0}),a.styles.position.includes("right")&&gc(NK,{onChange:u,position:"right",value:(null==(n=a.styles)?void 0:n.right)||0}),a.styles.position.includes("top")&&gc(NK,{onChange:u,position:"top",value:(null==(r=a.styles)?void 0:r.top)||0}),a.styles.position.includes("bottom")&&gc(NK,{onChange:u,position:"bottom",value:(null==(o=a.styles)?void 0:o.bottom)||0})]})}!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,l=64,c=128,u=256,d=1/0,f=9007199254740991,h=NaN,p=4294967295,g=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",l],["rearg",u]],m="[object Arguments]",v="[object Array]",b="[object Boolean]",y="[object Date]",x="[object Error]",w="[object Function]",k="[object GeneratorFunction]",_="[object Map]",S="[object Number]",C="[object Object]",E="[object Promise]",A="[object RegExp]",O="[object Set]",T="[object String]",N="[object Symbol]",R="[object WeakMap]",P="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",j="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(H.source),Q=RegExp(G.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Ne="['’]",Re="["+_e+"]",Pe="["+Te+"]",Me="["+Se+"]",Le="\\d+",De="["+Ce+"]",Ie="["+Ee+"]",je="[^"+_e+Te+Le+Ce+Ee+Ae+"]",ze="\\ud83c[\\udffb-\\udfff]",Be="[^"+_e+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Ae+"]",We="\\u200d",$e="(?:"+Ie+"|"+je+")",Ve="(?:"+Ue+"|"+je+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Me+"|"+ze+")"+"?",Ke="["+Oe+"]?",Qe=Ke+Ge+("(?:"+We+"(?:"+[Be,Fe,qe].join("|")+")"+Ke+Ge+")*"),Ze="(?:"+[De,Fe,qe].join("|")+")"+Qe,Xe="(?:"+[Be+Me+"?",Me,Fe,qe,Re].join("|")+")",Je=RegExp(Ne,"g"),et=RegExp(Me,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Qe,"g"),nt=RegExp([Ue+"?"+Ie+"+"+He+"(?="+[Pe,Ue,"$"].join("|")+")",Ve+"+"+Ye+"(?="+[Pe,Ue+$e,"$"].join("|")+")",Ue+"?"+$e+"+"+He,Ue+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Ze].join("|"),"g"),rt=RegExp("["+We+_e+Se+Oe+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["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"],at=-1,st={};st[L]=st[D]=st[I]=st[j]=st[z]=st[B]=st[F]=st[q]=st[U]=!0,st[m]=st[v]=st[P]=st[b]=st[M]=st[y]=st[x]=st[w]=st[_]=st[S]=st[C]=st[A]=st[O]=st[T]=st[R]=!1;var lt={};lt[m]=lt[v]=lt[P]=lt[M]=lt[b]=lt[y]=lt[L]=lt[D]=lt[I]=lt[j]=lt[z]=lt[_]=lt[S]=lt[C]=lt[A]=lt[O]=lt[T]=lt[N]=lt[B]=lt[F]=lt[q]=lt[U]=!0,lt[x]=lt[w]=lt[R]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,ft="object"==typeof Y&&Y&&Y.Object===Object&&Y,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=ft||ht||Function("return this")(),gt=t&&!t.nodeType&&t,mt=gt&&e&&!e.nodeType&&e,vt=mt&&mt.exports===gt,bt=vt&&ft.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(OV){}}(),xt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,kt=yt&&yt.isMap,_t=yt&&yt.isRegExp,St=yt&&yt.isSet,Ct=yt&&yt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Pt(e,t){return!!(null==e?0:e.length)&&Ut(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Lt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Dt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function jt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Ht("length");function Ft(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function qt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ut(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):qt(e,$t,n)}function Wt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function $t(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:h}function Ht(e){return function(t){return null==t?n:t[e]}}function Yt(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Kt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,pn(e)+1).replace(ie,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return Lt(t,function(t){return e[t]})}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&Ut(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}var rn=Yt({"À":"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"}),on=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ct[e]}function sn(e){return rt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var s=e[n];s!==t&&s!==i||(e[n]=i,a[o++]=n)}return a}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function fn(e){return sn(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Bt(e)}function hn(e){return sn(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function e(t){var Y,ae=(t=null==t?pt:mn.defaults(pt.Object(),t,mn.pick(pt,it))).Array,_e=t.Date,Se=t.Error,Ce=t.Function,Ee=t.Math,Ae=t.Object,Oe=t.RegExp,Te=t.String,Ne=t.TypeError,Re=ae.prototype,Pe=Ce.prototype,Me=Ae.prototype,Le=t["__core-js_shared__"],De=Pe.toString,Ie=Me.hasOwnProperty,je=0,ze=(Y=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",Be=Me.toString,Fe=De.call(Ae),qe=pt._,Ue=Oe("^"+De.call(Ie).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=vt?t.Buffer:n,$e=t.Symbol,Ve=t.Uint8Array,He=We?We.allocUnsafe:n,Ye=cn(Ae.getPrototypeOf,Ae),Ge=Ae.create,Ke=Me.propertyIsEnumerable,Qe=Re.splice,Ze=$e?$e.isConcatSpreadable:n,Xe=$e?$e.iterator:n,tt=$e?$e.toStringTag:n,rt=function(){try{var e=hi(Ae,"defineProperty");return e({},"",{}),e}catch(OV){}}(),ct=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ft=_e&&_e.now!==pt.Date.now&&_e.now,ht=t.setTimeout!==pt.setTimeout&&t.setTimeout,gt=Ee.ceil,mt=Ee.floor,bt=Ae.getOwnPropertySymbols,yt=We?We.isBuffer:n,Bt=t.isFinite,Yt=Re.join,vn=cn(Ae.keys,Ae),bn=Ee.max,yn=Ee.min,xn=_e.now,wn=t.parseInt,kn=Ee.random,Sn=Re.reverse,Cn=hi(t,"DataView"),En=hi(t,"Map"),An=hi(t,"Promise"),On=hi(t,"Set"),Tn=hi(t,"WeakMap"),Nn=hi(Ae,"create"),Rn=Tn&&new Tn,Pn={},Mn=Ui(Cn),Ln=Ui(En),Dn=Ui(An),In=Ui(On),jn=Ui(Tn),zn=$e?$e.prototype:n,Bn=zn?zn.valueOf:n,Fn=zn?zn.toString:n;function qn(e){if(is(e)&&!Ga(e)&&!(e instanceof Vn)){if(e instanceof $n)return e;if(Ie.call(e,"__wrapped__"))return Wi(e)}return new $n(e)}var Un=function(){function e(){}return function(t){if(!os(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Qn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Zn(e,t){var n=Ga(e),r=!n&&Ya(e),o=!n&&!r&&Xa(e),i=!n&&!r&&!o&&hs(e),a=n||r||o||i,s=a?Qt(e.length,Te):[],l=s.length;for(var c in e)!t&&!Ie.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[Kr(0,t-1)]:n}function Jn(e,t){return Ii(Ro(e),lr(t,0,e.length))}function er(e){return Ii(Ro(e))}function tr(e,t,r){(r!==n&&!$a(e[t],r)||r===n&&!(t in e))&&ar(e,t,r)}function nr(e,t,r){var o=e[t];Ie.call(e,t)&&$a(o,r)&&(r!==n||t in e)||ar(e,t,r)}function rr(e,t){for(var n=e.length;n--;)if($a(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,function(e,o,i){t(r,e,n(e),i)}),r}function ir(e,t){return e&&Po(t,Ds(t),e)}function ar(e,t,n){"__proto__"==t&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,i=ae(o),a=null==e;++r<o;)i[r]=a?n:Ns(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!os(e))return e;var d=Ga(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ro(e,s)}else{var f=mi(e),h=f==w||f==k;if(Xa(e))return Co(e,l);if(f==C||f==m||h&&!i){if(s=c||h?{}:bi(e),!l)return c?function(e,t){return Po(e,gi(e),t)}(e,function(e,t){return e&&Po(t,Is(t),e)}(s,e)):function(e,t){return Po(e,pi(e),t)}(e,ir(s,e))}else{if(!lt[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case P:return Eo(e);case b:case y:return new r(+e);case M:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case D:case I:case j:case z:case B:case F:case q:case U:return Ao(e,n);case _:return new r;case S:case T:return new r(e);case A:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new r;case N:return o=e,Bn?Ae(Bn.call(o)):{}}var o}(e,f,l)}}a||(a=new Qn);var p=a.get(e);if(p)return p;a.set(e,s),us(e)?e.forEach(function(n){s.add(cr(n,t,r,n,e,a))}):as(e)&&e.forEach(function(n,o){s.set(o,cr(n,t,r,o,e,a))});var g=d?n:(u?c?ai:ii:c?Is:Ds)(e);return Ot(g||e,function(n,o){g&&(n=e[o=n]),nr(s,o,cr(n,t,r,o,e,a))}),s}function ur(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ae(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,o){if("function"!=typeof e)throw new Ne(r);return Pi(function(){e.apply(n,o)},t)}function fr(e,t,n,r){var o=-1,i=Pt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Lt(t,Xt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=en,a=!1,t=new Kn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}qn.templateSettings={escape:Z,evaluate:X,interpolate:J,variable:"",imports:{_:qn}},qn.prototype=Wn.prototype,qn.prototype.constructor=qn,$n.prototype=Un(Wn.prototype),$n.prototype.constructor=$n,Vn.prototype=Un(Wn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Nn){var r=t[e];return r===o?n:r}return Ie.call(t,e)?t[e]:n},Hn.prototype.has=function(e){var t=this.__data__;return Nn?t[e]!==n:Ie.call(t,e)},Hn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Nn&&t===n?o:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Qe.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?n:t[r][1]},Yn.prototype.has=function(e){return rr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(En||Yn),string:new Hn}},Gn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return di(this,e).get(e)},Gn.prototype.has=function(e){return di(this,e).has(e)},Gn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,o),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var hr=Do(wr),pr=Do(kr,!0);function gr(e,t){var n=!0;return hr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function mr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(l===n?s==s&&!fs(s):r(s,l)))var l=s,c=a}return c}function vr(e,t){var n=[];return hr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):Dt(o,s):r||(o[o.length]=s)}return o}var yr=Io(),xr=Io(!0);function wr(e,t){return e&&yr(e,t,Ds)}function kr(e,t){return e&&xr(e,t,Ds)}function _r(e,t){return Rt(t,function(t){return ts(e[t])})}function Sr(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[qi(t[r++])];return r&&r==o?e:n}function Cr(e,t,n){var r=t(e);return Ga(e)?r:Dt(r,n(e))}function Er(e){return null==e?e===n?"[object Undefined]":"[object Null]":tt&&tt in Ae(e)?function(e){var t=Ie.call(e,tt),r=e[tt];try{e[tt]=n;var o=!0}catch(OV){}var i=Be.call(e);o&&(t?e[tt]=r:delete e[tt]);return i}(e):function(e){return Be.call(e)}(e)}function Ar(e,t){return e>t}function Or(e,t){return null!=e&&Ie.call(e,t)}function Tr(e,t){return null!=e&&t in Ae(e)}function Nr(e,t,r){for(var o=r?Mt:Pt,i=e[0].length,a=e.length,s=a,l=ae(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Lt(d,Xt(t))),c=yn(d.length,c),l[s]=!r&&(t||i>=120&&d.length>=120)?new Kn(s&&d):n}d=e[0];var f=-1,h=l[0];e:for(;++f<i&&u.length<c;){var p=d[f],g=t?t(p):p;if(p=r||0!==p?p:0,!(h?en(h,g):o(u,g,r))){for(s=a;--s;){var m=l[s];if(!(m?en(m,g):o(e[s],g,r)))continue e}h&&h.push(g),u.push(p)}}return u}function Rr(e,t,r){var o=null==(e=Ti(e,t=wo(t,e)))?e:e[qi(ea(t))];return null==o?n:Et(o,e,r)}function Pr(e){return is(e)&&Er(e)==m}function Mr(e,t,r,o,i){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Ga(e),l=Ga(t),c=s?v:mi(e),u=l?v:mi(t),d=(c=c==m?C:c)==C,f=(u=u==m?C:u)==C,h=c==u;if(h&&Xa(e)){if(!Xa(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Qn),s||hs(e)?ri(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case b:case y:case S:return $a(+e,+t);case x:return e.name==t.name&&e.message==t.message;case A:case T:return e==t+"";case _:var s=ln;case O:var l=1&r;if(s||(s=dn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case N:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,r,o,i,a);if(!(1&r)){var p=d&&Ie.call(e,"__wrapped__"),g=f&&Ie.call(t,"__wrapped__");if(p||g){var w=p?e.value():e,k=g?t.value():t;return a||(a=new Qn),i(w,k,r,o,a)}}if(!h)return!1;return a||(a=new Qn),function(e,t,r,o,i,a){var s=1&r,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!s)return!1;var f=c;for(;f--;){var h=l[f];if(!(s?h in t:Ie.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++f<c;){var b=e[h=l[f]],y=t[h];if(o)var x=s?o(y,b,h,t,e,a):o(b,y,h,e,t,a);if(!(x===n?b===y||i(b,y,r,o,a):x)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,r,o,i,a)}(e,t,r,o,Mr,i))}function Lr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Ae(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=r[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===n&&!(c in e))return!1}else{var f=new Qn;if(o)var h=o(u,d,c,e,t,f);if(!(h===n?Mr(d,u,3,o,f):h))return!1}}return!0}function Dr(e){return!(!os(e)||(t=e,ze&&ze in t))&&(ts(e)?Ue:ve).test(Ui(e));var t}function Ir(e){return"function"==typeof e?e:null==e?sl:"object"==typeof e?Ga(e)?Ur(e[0],e[1]):qr(e):ml(e)}function jr(e){if(!Ci(e))return vn(e);var t=[];for(var n in Ae(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!os(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=Ci(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function Fr(e,t){var n=-1,r=Qa(e)?ae(e.length):[];return hr(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function qr(e){var t=fi(e);return 1==t.length&&t[0][2]?Ai(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function Ur(e,t){return ki(e)&&Ei(t)?Ai(qi(e),t):function(r){var o=Ns(r,e);return o===n&&o===t?Rs(r,e):Mr(t,o,3)}}function Wr(e,t,r,o,i){e!==t&&yr(t,function(a,s){if(i||(i=new Qn),os(a))!function(e,t,r,o,i,a,s){var l=Ni(e,r),c=Ni(t,r),u=s.get(c);if(u)return void tr(e,r,u);var d=a?a(l,c,r+"",e,t,s):n,f=d===n;if(f){var h=Ga(c),p=!h&&Xa(c),g=!h&&!p&&hs(c);d=c,h||p||g?Ga(l)?d=l:Za(l)?d=Ro(l):p?(f=!1,d=Co(c,!0)):g?(f=!1,d=Ao(c,!0)):d=[]:ls(c)||Ya(c)?(d=l,Ya(l)?d=ws(l):os(l)&&!ts(l)||(d=bi(c))):f=!1}f&&(s.set(c,d),i(d,c,o,a,s),s.delete(c));tr(e,r,d)}(e,t,s,r,Wr,o,i);else{var l=o?o(Ni(e,s),a,s+"",e,t,i):n;l===n&&(l=a),tr(e,s,l)}},Is)}function $r(e,t){var r=e.length;if(r)return xi(t+=t<0?r:0,r)?e[t]:n}function Vr(e,t,n){t=t.length?Lt(t,function(e){return Ga(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e}):[sl];var r=-1;return t=Lt(t,Xt(ui())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fr(e,function(e,n,o){return{criteria:Lt(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Oo(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Sr(e,a);n(s,a)&&eo(i,wo(a,e),s)}return i}function Yr(e,t,n,r){var o=r?Wt:Ut,i=-1,a=t.length,s=e;for(e===t&&(t=Ro(t)),n&&(s=Lt(e,Xt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Qe.call(s,l,1),Qe.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Qe.call(e,o,1):ho(e,o)}}return e}function Kr(e,t){return e+mt(kn()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Mi(Oi(e,t,sl),e+"")}function Xr(e){return Xn($s(e))}function Jr(e,t){var n=$s(e);return Ii(n,lr(t,0,n.length))}function eo(e,t,r,o){if(!os(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=qi(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=o?o(d,c,l):n)===n&&(u=os(d)?d:xi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=Rn?function(e,t){return Rn.set(e,t),e}:sl,no=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:ol(t),writable:!0})}:sl;function ro(e){return Ii($s(e))}function oo(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ae(o);++r<o;)i[r]=e[r+t];return i}function io(e,t){var n;return hr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!fs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,sl,n)}function so(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,l=null===t,c=fs(t),u=t===n;i<a;){var d=mt((i+a)/2),f=r(e[d]),h=f!==n,p=null===f,g=f==f,m=fs(f);if(s)var v=o||g;else v=u?g&&(o||h):l?g&&h&&(o||!p):c?g&&h&&!p&&(o||!m):!p&&!m&&(o?f<=t:f<t);v?i=d+1:a=d}return yn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!$a(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:fs(e)?h:+e}function uo(e){if("string"==typeof e)return e;if(Ga(e))return Lt(e,uo)+"";if(fs(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=Pt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Mt;else if(i>=200){var c=t?null:Zo(e);if(c)return dn(c);a=!1,o=en,l=new Kn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ho(e,t){var n=-1,r=(t=wo(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!Ie.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=Ti(e,t);return null==a||delete a[qi(ea(t))]}function po(e,t,n,r){return eo(e,t,n(Sr(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof Vn&&(n=n.value()),It(t,function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))},n)}function vo(e,t,n){var r=e.length;if(r<2)return r?fo(e[0]):[];for(var o=-1,i=ae(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=fr(i[o]||a,e[s],t,n));return fo(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var l=o<a?t[o]:n;r(s,e[o],l)}return s}function yo(e){return Za(e)?e:[]}function xo(e){return"function"==typeof e?e:sl}function wo(e,t){return Ga(e)?e:ki(e,t)?[e]:Fi(ks(e))}var ko=Zr;function _o(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:oo(e,t,r)}var So=ct||function(e){return pt.clearTimeout(e)};function Co(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ao(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oo(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=fs(e),s=t!==n,l=null===t,c=t==t,u=fs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!r&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&r&&i&&!o&&!a||l&&r&&i||!s&&i||!c)return-1}return 0}function To(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,c=bn(i-a,0),u=ae(l+c),d=!r;++s<l;)u[s]=t[s];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;c--;)u[s++]=e[o++];return u}function No(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=bn(i-s,0),d=ae(u+c),f=!r;++o<u;)d[o]=e[o];for(var h=o;++l<c;)d[h+l]=t[l];for(;++a<s;)(f||o<i)&&(d[h+n[a]]=e[o++]);return d}function Ro(e,t){var n=-1,r=e.length;for(t||(t=ae(r));++n<r;)t[n]=e[n];return t}function Po(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=o?o(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),i?ar(r,l,c):nr(r,l,c)}return r}function Mo(e,t){return function(n,r){var o=Ga(n)?At:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Lo(e){return Zr(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&wi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Ae(t);++o<i;){var l=r[o];l&&e(t,l,o,a)}return t})}function Do(e,t){return function(n,r){if(null==n)return n;if(!Qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ae(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ae(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function jo(e){return function(t){var r=sn(t=ks(t))?hn(t):n,o=r?r[0]:t.charAt(0),i=r?_o(r,1).join(""):t.slice(1);return o[e]()+i}}function zo(e){return function(t){return It(tl(Ys(t).replace(Je,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Un(e.prototype),r=e.apply(n,t);return os(r)?r:n}}function Fo(e){return function(t,r,o){var i=Ae(t);if(!Qa(t)){var a=ui(r,3);t=Ds(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function qo(e){return oi(function(t){var o=t.length,i=o,a=$n.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Ne(r);if(a&&!l&&"wrapper"==li(s))var l=new $n([],!0)}for(i=l?i:o;++i<o;){var c=li(s=t[i]),u="wrapper"==c?si(s):n;l=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&_i(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ga(n))return l.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}})}function Uo(e,t,r,o,i,a,s,l,u,d){var f=t&c,h=1&t,p=2&t,g=24&t,m=512&t,v=p?n:Bo(e);return function c(){for(var b=arguments.length,y=ae(b),x=b;x--;)y[x]=arguments[x];if(g)var w=ci(c),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(o&&(y=To(y,o,i,g)),a&&(y=No(y,a,s,g)),b-=k,g&&b<d){var _=un(y,w);return Ko(e,t,Uo,c.placeholder,r,y,_,l,u,d-b)}var S=h?r:this,C=p?S[e]:e;return b=y.length,l?y=function(e,t){var r=e.length,o=yn(t.length,r),i=Ro(e);for(;o--;){var a=t[o];e[o]=xi(a,r)?i[a]:n}return e}(y,l):m&&b>1&&y.reverse(),f&&u<b&&(y.length=u),this&&this!==pt&&this instanceof c&&(C=v||Bo(C)),C.apply(S,y)}}function Wo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function $o(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Vo(e){return oi(function(t){return t=Lt(t,Xt(ui())),Zr(function(n){var r=this;return e(t,function(e){return Et(e,r,n)})})})}function Ho(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Qr(t,e):t;var o=Qr(t,gt(e/fn(t)));return sn(t)?_o(hn(o),0,e).join(""):o.slice(0,e)}function Yo(e){return function(t,r,o){return o&&"number"!=typeof o&&wi(t,r,o)&&(r=o=n),t=vs(t),r===n?(r=t,t=0):r=vs(r),function(e,t,n,r){for(var o=-1,i=bn(gt((t-e)/(n||1)),0),a=ae(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:vs(o),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=xs(t),n=xs(n)),e(t,n)}}function Ko(e,t,r,o,i,a,c,u,d,f){var h=8&t;t|=h?s:l,4&(t&=~(h?l:s))||(t&=-4);var p=[e,t,i,h?a:n,h?c:n,h?n:a,h?n:c,u,d,f],g=r.apply(n,p);return _i(e)&&Ri(g,p),g.placeholder=o,Li(g,e,t)}function Qo(e){var t=Ee[e];return function(e,n){if(e=xs(e),(n=null==n?0:yn(bs(n),292))&&Bt(e)){var r=(ks(e)+"e").split("e");return+((r=(ks(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zo=On&&1/dn(new On([,-0]))[1]==d?function(e){return new On(e)}:fl;function Xo(e){return function(t){var n=mi(t);return n==_?ln(t):n==O?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Lt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Jo(e,t,o,d,f,h,p,g){var m=2&t;if(!m&&"function"!=typeof e)throw new Ne(r);var v=d?d.length:0;if(v||(t&=-97,d=f=n),p=p===n?p:bn(bs(p),0),g=g===n?g:bs(g),v-=f?f.length:0,t&l){var b=d,y=f;d=f=n}var x=m?n:si(e),w=[e,t,o,d,f,b,y,h,p,g];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,s=r==c&&8==n||r==c&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?To(d,l,t[4]):l,e[4]=d?un(e[3],i):t[4]}(l=t[5])&&(d=e[5],e[5]=d?No(d,l,t[6]):l,e[6]=d?un(e[5],i):t[6]);(l=t[7])&&(e[7]=l);r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(w,x),e=w[0],t=w[1],o=w[2],d=w[3],f=w[4],!(g=w[9]=w[9]===n?m?0:e.length:bn(w[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==a?function(e,t,r){var o=Bo(e);return function i(){for(var a=arguments.length,s=ae(a),l=a,c=ci(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:un(s,c);return(a-=u.length)<r?Ko(e,t,Uo,i.placeholder,n,s,u,n,n,r-a):Et(this&&this!==pt&&this instanceof i?o:e,this,s)}}(e,t,g):t!=s&&33!=t||f.length?Uo.apply(n,w):function(e,t,n,r){var o=1&t,i=Bo(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=ae(c+s),d=this&&this!==pt&&this instanceof t?i:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Et(d,o?n:this,u)}}(e,t,o,d);else var k=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==pt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Li((x?to:Ri)(k,w),e,t)}function ei(e,t,r,o){return e===n||$a(e,Me[r])&&!Ie.call(o,r)?t:e}function ti(e,t,r,o,i,a){return os(e)&&os(t)&&(a.set(t,e),Wr(e,t,n,ti,a),a.delete(t)),e}function ni(e){return ls(e)?n:e}function ri(e,t,r,o,i,a){var s=1&r,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=2&r?new Kn:n;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(o)var v=s?o(m,g,f,t,e,a):o(g,m,f,e,t,a);if(v!==n){if(v)continue;h=!1;break}if(p){if(!zt(t,function(e,t){if(!en(p,t)&&(g===e||i(g,e,r,o,a)))return p.push(t)})){h=!1;break}}else if(g!==m&&!i(g,m,r,o,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function oi(e){return Mi(Oi(e,n,Ki),e+"")}function ii(e){return Cr(e,Ds,pi)}function ai(e){return Cr(e,Is,gi)}var si=Rn?function(e){return Rn.get(e)}:fl;function li(e){for(var t=e.name+"",n=Pn[t],r=Ie.call(Pn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Ie.call(qn,"placeholder")?qn:e).placeholder}function ui(){var e=qn.iteratee||ll;return e=e===ll?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function fi(e){for(var t=Ds(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ei(o)]}return t}function hi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Dr(r)?r:n}var pi=bt?function(e){return null==e?[]:(e=Ae(e),Rt(bt(e),function(t){return Ke.call(e,t)}))}:yl,gi=bt?function(e){for(var t=[];e;)Dt(t,pi(e)),e=Ye(e);return t}:yl,mi=Er;function vi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=qi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&rs(o)&&xi(a,o)&&(Ga(e)||Ya(e))}function bi(e){return"function"!=typeof e.constructor||Ci(e)?{}:Un(Ye(e))}function yi(e){return Ga(e)||Ya(e)||!!(Ze&&e&&e[Ze])}function xi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!os(n))return!1;var r=typeof t;return!!("number"==r?Qa(n)&&xi(t,n.length):"string"==r&&t in n)&&$a(n[t],e)}function ki(e,t){if(Ga(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!fs(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ae(t))}function _i(e){var t=li(e),n=qn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(Cn&&mi(new Cn(new ArrayBuffer(1)))!=M||En&&mi(new En)!=_||An&&mi(An.resolve())!=E||On&&mi(new On)!=O||Tn&&mi(new Tn)!=R)&&(mi=function(e){var t=Er(e),r=t==C?e.constructor:n,o=r?Ui(r):"";if(o)switch(o){case Mn:return M;case Ln:return _;case Dn:return E;case In:return O;case jn:return R}return t});var Si=Le?ts:xl;function Ci(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Ei(e){return e==e&&!os(e)}function Ai(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ae(r)))}}function Oi(e,t,r){return t=bn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=bn(n.length-t,0),a=ae(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=ae(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),Et(e,this,s)}}function Ti(e,t){return t.length<2?e:Sr(e,oo(t,0,-1))}function Ni(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ri=Di(to),Pi=ht||function(e,t){return pt.setTimeout(e,t)},Mi=Di(no);function Li(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(g,function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Di(e){var t=0,r=0;return function(){var o=xn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ii(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Kr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var ji,zi,Bi,Fi=(ji=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)}),t},zi=za(ji,function(e){return 500===Bi.size&&Bi.clear(),e}),Bi=zi.cache,zi);function qi(e){if("string"==typeof e||fs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ui(e){if(null!=e){try{return De.call(e)}catch(OV){}try{return e+""}catch(OV){}}return""}function Wi(e){if(e instanceof Vn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Ro(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Zr(function(e,t){return Za(e)?fr(e,br(t,1,Za,!0)):[]}),Vi=Zr(function(e,t){var r=ea(t);return Za(r)&&(r=n),Za(e)?fr(e,br(t,1,Za,!0),ui(r,2)):[]}),Hi=Zr(function(e,t){var r=ea(t);return Za(r)&&(r=n),Za(e)?fr(e,br(t,1,Za,!0),n,r):[]});function Yi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:bs(n);return o<0&&(o=bn(r+o,0)),qt(e,ui(t,3),o)}function Gi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=bs(r),i=r<0?bn(o+i,0):yn(i,o-1)),qt(e,ui(t,3),i,!0)}function Ki(e){return(null==e?0:e.length)?br(e,1):[]}function Qi(e){return e&&e.length?e[0]:n}var Zi=Zr(function(e){var t=Lt(e,yo);return t.length&&t[0]===e[0]?Nr(t):[]}),Xi=Zr(function(e){var t=ea(e),r=Lt(e,yo);return t===ea(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Nr(r,ui(t,2)):[]}),Ji=Zr(function(e){var t=ea(e),r=Lt(e,yo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Nr(r,n,t):[]});function ea(e){var t=null==e?0:e.length;return t?e[t-1]:n}var ta=Zr(na);function na(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var ra=oi(function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Gr(e,Lt(t,function(e){return xi(e,n)?+e:e}).sort(Oo)),r});function oa(e){return null==e?e:Sn.call(e)}var ia=Zr(function(e){return fo(br(e,1,Za,!0))}),aa=Zr(function(e){var t=ea(e);return Za(t)&&(t=n),fo(br(e,1,Za,!0),ui(t,2))}),sa=Zr(function(e){var t=ea(e);return t="function"==typeof t?t:n,fo(br(e,1,Za,!0),n,t)});function la(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,function(e){if(Za(e))return t=bn(e.length,t),!0}),Qt(t,function(t){return Lt(e,Ht(t))})}function ca(e,t){if(!e||!e.length)return[];var r=la(e);return null==t?r:Lt(r,function(e){return Et(t,n,e)})}var ua=Zr(function(e,t){return Za(e)?fr(e,t):[]}),da=Zr(function(e){return vo(Rt(e,Za))}),fa=Zr(function(e){var t=ea(e);return Za(t)&&(t=n),vo(Rt(e,Za),ui(t,2))}),ha=Zr(function(e){var t=ea(e);return t="function"==typeof t?t:n,vo(Rt(e,Za),n,t)}),pa=Zr(la);var ga=Zr(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ca(e,r)});function ma(e){var t=qn(e);return t.__chain__=!0,t}function va(e,t){return t(e)}var ba=oi(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vn&&xi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:va,args:[i],thisArg:n}),new $n(o,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(i)});var ya=Mo(function(e,t,n){Ie.call(e,n)?++e[n]:ar(e,n,1)});var xa=Fo(Yi),wa=Fo(Gi);function ka(e,t){return(Ga(e)?Ot:hr)(e,ui(t,3))}function _a(e,t){return(Ga(e)?Tt:pr)(e,ui(t,3))}var Sa=Mo(function(e,t,n){Ie.call(e,n)?e[n].push(t):ar(e,n,[t])});var Ca=Zr(function(e,t,n){var r=-1,o="function"==typeof t,i=Qa(e)?ae(e.length):[];return hr(e,function(e){i[++r]=o?Et(t,e,n):Rr(e,t,n)}),i}),Ea=Mo(function(e,t,n){ar(e,n,t)});function Aa(e,t){return(Ga(e)?Lt:Fr)(e,ui(t,3))}var Oa=Mo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ta=Zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,br(t,1),[])}),Na=ft||function(){return pt.Date.now()};function Ra(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Jo(e,c,n,n,n,n,t)}function Pa(e,t){var o;if("function"!=typeof t)throw new Ne(r);return e=bs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ma=Zr(function(e,t,n){var r=1;if(n.length){var o=un(n,ci(Ma));r|=s}return Jo(e,r,t,n,o)}),La=Zr(function(e,t,n){var r=3;if(n.length){var o=un(n,ci(La));r|=s}return Jo(t,r,e,n,o)});function Da(e,t,o){var i,a,s,l,c,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Ne(r);function g(t){var r=i,o=a;return i=a=n,d=t,l=e.apply(o,r)}function m(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=s}function v(){var e=Na();if(m(e))return b(e);c=Pi(v,function(e){var n=t-(e-u);return h?yn(n,s-(e-d)):n}(e))}function b(e){return c=n,p&&i?g(e):(i=a=n,l)}function y(){var e=Na(),r=m(e);if(i=arguments,a=this,u=e,r){if(c===n)return function(e){return d=e,c=Pi(v,t),f?g(e):l}(u);if(h)return So(c),c=Pi(v,t),g(u)}return c===n&&(c=Pi(v,t)),l}return t=xs(t)||0,os(o)&&(f=!!o.leading,s=(h="maxWait"in o)?bn(xs(o.maxWait)||0,t):s,p="trailing"in o?!!o.trailing:p),y.cancel=function(){c!==n&&So(c),d=0,i=u=a=c=n},y.flush=function(){return c===n?l:b(Na())},y}var Ia=Zr(function(e,t){return dr(e,1,t)}),ja=Zr(function(e,t,n){return dr(e,xs(t)||0,n)});function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(za.Cache||Gn),n}function Ba(e){if("function"!=typeof e)throw new Ne(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}za.Cache=Gn;var Fa=ko(function(e,t){var n=(t=1==t.length&&Ga(t[0])?Lt(t[0],Xt(ui())):Lt(br(t,1),Xt(ui()))).length;return Zr(function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)})}),qa=Zr(function(e,t){var r=un(t,ci(qa));return Jo(e,s,n,t,r)}),Ua=Zr(function(e,t){var r=un(t,ci(Ua));return Jo(e,l,n,t,r)}),Wa=oi(function(e,t){return Jo(e,u,n,n,n,t)});function $a(e,t){return e===t||e!=e&&t!=t}var Va=Go(Ar),Ha=Go(function(e,t){return e>=t}),Ya=Pr(function(){return arguments}())?Pr:function(e){return is(e)&&Ie.call(e,"callee")&&!Ke.call(e,"callee")},Ga=ae.isArray,Ka=xt?Xt(xt):function(e){return is(e)&&Er(e)==P};function Qa(e){return null!=e&&rs(e.length)&&!ts(e)}function Za(e){return is(e)&&Qa(e)}var Xa=yt||xl,Ja=wt?Xt(wt):function(e){return is(e)&&Er(e)==y};function es(e){if(!is(e))return!1;var t=Er(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ls(e)}function ts(e){if(!os(e))return!1;var t=Er(e);return t==w||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ns(e){return"number"==typeof e&&e==bs(e)}function rs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function os(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var as=kt?Xt(kt):function(e){return is(e)&&mi(e)==_};function ss(e){return"number"==typeof e||is(e)&&Er(e)==S}function ls(e){if(!is(e)||Er(e)!=C)return!1;var t=Ye(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Fe}var cs=_t?Xt(_t):function(e){return is(e)&&Er(e)==A};var us=St?Xt(St):function(e){return is(e)&&mi(e)==O};function ds(e){return"string"==typeof e||!Ga(e)&&is(e)&&Er(e)==T}function fs(e){return"symbol"==typeof e||is(e)&&Er(e)==N}var hs=Ct?Xt(Ct):function(e){return is(e)&&rs(e.length)&&!!st[Er(e)]};var ps=Go(Br),gs=Go(function(e,t){return e<=t});function ms(e){if(!e)return[];if(Qa(e))return ds(e)?hn(e):Ro(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=mi(e);return(t==_?ln:t==O?dn:$s)(e)}function vs(e){return e?(e=xs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function bs(e){var t=vs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?lr(bs(e),0,p):0}function xs(e){if("number"==typeof e)return e;if(fs(e))return h;if(os(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=os(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=me.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):ge.test(e)?h:+e}function ws(e){return Po(e,Is(e))}function ks(e){return null==e?"":uo(e)}var _s=Lo(function(e,t){if(Ci(t)||Qa(t))Po(t,Ds(t),e);else for(var n in t)Ie.call(t,n)&&nr(e,n,t[n])}),Ss=Lo(function(e,t){Po(t,Is(t),e)}),Cs=Lo(function(e,t,n,r){Po(t,Is(t),e,r)}),Es=Lo(function(e,t,n,r){Po(t,Ds(t),e,r)}),As=oi(sr);var Os=Zr(function(e,t){e=Ae(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=Is(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===n||$a(d,Me[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e}),Ts=Zr(function(e){return e.push(n,ti),Et(zs,n,e)});function Ns(e,t,r){var o=null==e?n:Sr(e,t);return o===n?r:o}function Rs(e,t){return null!=e&&vi(e,t,Tr)}var Ps=Wo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n},ol(sl)),Ms=Wo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]},ui),Ls=Zr(Rr);function Ds(e){return Qa(e)?Zn(e):jr(e)}function Is(e){return Qa(e)?Zn(e,!0):zr(e)}var js=Lo(function(e,t,n){Wr(e,t,n)}),zs=Lo(function(e,t,n,r){Wr(e,t,n,r)}),Bs=oi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Lt(t,function(t){return t=wo(t,e),r||(r=t.length>1),t}),Po(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)ho(n,t[o]);return n});var Fs=oi(function(e,t){return null==e?{}:function(e,t){return Hr(e,t,function(t,n){return Rs(e,n)})}(e,t)});function qs(e,t){if(null==e)return{};var n=Lt(ai(e),function(e){return[e]});return t=ui(t),Hr(e,n,function(e,n){return t(e,n[0])})}var Us=Xo(Ds),Ws=Xo(Is);function $s(e){return null==e?[]:Jt(e,Ds(e))}var Vs=zo(function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)});function Hs(e){return el(ks(e).toLowerCase())}function Ys(e){return(e=ks(e))&&e.replace(xe,rn).replace(et,"")}var Gs=zo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ks=zo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qs=jo("toLowerCase");var Zs=zo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Xs=zo(function(e,t,n){return e+(n?" ":"")+el(t)});var Js=zo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),el=jo("toUpperCase");function tl(e,t,r){return e=ks(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var nl=Zr(function(e,t){try{return Et(e,n,t)}catch(OV){return es(OV)?OV:new Se(OV)}}),rl=oi(function(e,t){return Ot(t,function(t){t=qi(t),ar(e,t,Ma(e[t],e))}),e});function ol(e){return function(){return e}}var il=qo(),al=qo(!0);function sl(e){return e}function ll(e){return Ir("function"==typeof e?e:cr(e,1))}var cl=Zr(function(e,t){return function(n){return Rr(n,e,t)}}),ul=Zr(function(e,t){return function(n){return Rr(e,n,t)}});function dl(e,t,n){var r=Ds(t),o=_r(t,r);null!=n||os(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Ds(t)));var i=!(os(n)&&"chain"in n&&!n.chain),a=ts(e);return Ot(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ro(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})}),e}function fl(){}var hl=Vo(Lt),pl=Vo(Nt),gl=Vo(zt);function ml(e){return ki(e)?Ht(qi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var vl=Yo(),bl=Yo(!0);function yl(){return[]}function xl(){return!1}var wl=$o(function(e,t){return e+t},0),kl=Qo("ceil"),_l=$o(function(e,t){return e/t},1),Sl=Qo("floor");var Cl,El=$o(function(e,t){return e*t},1),Al=Qo("round"),Ol=$o(function(e,t){return e-t},0);return qn.after=function(e,t){if("function"!=typeof t)throw new Ne(r);return e=bs(e),function(){if(--e<1)return t.apply(this,arguments)}},qn.ary=Ra,qn.assign=_s,qn.assignIn=Ss,qn.assignInWith=Cs,qn.assignWith=Es,qn.at=As,qn.before=Pa,qn.bind=Ma,qn.bindAll=rl,qn.bindKey=La,qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},qn.chain=ma,qn.chunk=function(e,t,r){t=(r?wi(e,t,r):t===n)?1:bn(bs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=ae(gt(o/t));i<o;)s[a++]=oo(e,i,i+=t);return s},qn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},qn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Dt(Ga(n)?Ro(n):[n],br(t,1))},qn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?Lt(e,function(e){if("function"!=typeof e[1])throw new Ne(r);return[n(e[0]),e[1]]}):[],Zr(function(n){for(var r=-1;++r<t;){var o=e[r];if(Et(o[0],this,n))return Et(o[1],this,n)}})},qn.conforms=function(e){return function(e){var t=Ds(e);return function(n){return ur(n,e,t)}}(cr(e,1))},qn.constant=ol,qn.countBy=ya,qn.create=function(e,t){var n=Un(e);return null==t?n:ir(n,t)},qn.curry=function e(t,r,o){var i=Jo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},qn.curryRight=function e(t,r,o){var i=Jo(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},qn.debounce=Da,qn.defaults=Os,qn.defaultsDeep=Ts,qn.defer=Ia,qn.delay=ja,qn.difference=$i,qn.differenceBy=Vi,qn.differenceWith=Hi,qn.drop=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=r||t===n?1:bs(t))<0?0:t,o):[]},qn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,0,(t=o-(t=r||t===n?1:bs(t)))<0?0:t):[]},qn.dropRightWhile=function(e,t){return e&&e.length?go(e,ui(t,3),!0,!0):[]},qn.dropWhile=function(e,t){return e&&e.length?go(e,ui(t,3),!0):[]},qn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&wi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=bs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:bs(o))<0&&(o+=i),o=r>o?0:ys(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},qn.filter=function(e,t){return(Ga(e)?Rt:vr)(e,ui(t,3))},qn.flatMap=function(e,t){return br(Aa(e,t),1)},qn.flatMapDeep=function(e,t){return br(Aa(e,t),d)},qn.flatMapDepth=function(e,t,r){return r=r===n?1:bs(r),br(Aa(e,t),r)},qn.flatten=Ki,qn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,d):[]},qn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===n?1:bs(t)):[]},qn.flip=function(e){return Jo(e,512)},qn.flow=il,qn.flowRight=al,qn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},qn.functions=function(e){return null==e?[]:_r(e,Ds(e))},qn.functionsIn=function(e){return null==e?[]:_r(e,Is(e))},qn.groupBy=Sa,qn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},qn.intersection=Zi,qn.intersectionBy=Xi,qn.intersectionWith=Ji,qn.invert=Ps,qn.invertBy=Ms,qn.invokeMap=Ca,qn.iteratee=ll,qn.keyBy=Ea,qn.keys=Ds,qn.keysIn=Is,qn.map=Aa,qn.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){ar(n,t(e,r,o),e)}),n},qn.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){ar(n,r,t(e,r,o))}),n},qn.matches=function(e){return qr(cr(e,1))},qn.matchesProperty=function(e,t){return Ur(e,cr(t,1))},qn.memoize=za,qn.merge=js,qn.mergeWith=zs,qn.method=cl,qn.methodOf=ul,qn.mixin=dl,qn.negate=Ba,qn.nthArg=function(e){return e=bs(e),Zr(function(t){return $r(t,e)})},qn.omit=Bs,qn.omitBy=function(e,t){return qs(e,Ba(ui(t)))},qn.once=function(e){return Pa(2,e)},qn.orderBy=function(e,t,r,o){return null==e?[]:(Ga(t)||(t=null==t?[]:[t]),Ga(r=o?n:r)||(r=null==r?[]:[r]),Vr(e,t,r))},qn.over=hl,qn.overArgs=Fa,qn.overEvery=pl,qn.overSome=gl,qn.partial=qa,qn.partialRight=Ua,qn.partition=Oa,qn.pick=Fs,qn.pickBy=qs,qn.property=ml,qn.propertyOf=function(e){return function(t){return null==e?n:Sr(e,t)}},qn.pull=ta,qn.pullAll=na,qn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ui(n,2)):e},qn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Yr(e,t,n,r):e},qn.pullAt=ra,qn.range=vl,qn.rangeRight=bl,qn.rearg=Wa,qn.reject=function(e,t){return(Ga(e)?Rt:vr)(e,Ba(ui(t,3)))},qn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},qn.rest=function(e,t){if("function"!=typeof e)throw new Ne(r);return Zr(e,t=t===n?t:bs(t))},qn.reverse=oa,qn.sampleSize=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:bs(t),(Ga(e)?Jn:Jr)(e,t)},qn.set=function(e,t,n){return null==e?e:eo(e,t,n)},qn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:eo(e,t,r,o)},qn.shuffle=function(e){return(Ga(e)?er:ro)(e)},qn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wi(e,t,r)?(t=0,r=o):(t=null==t?0:bs(t),r=r===n?o:bs(r)),oo(e,t,r)):[]},qn.sortBy=Ta,qn.sortedUniq=function(e){return e&&e.length?lo(e):[]},qn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},qn.split=function(e,t,r){return r&&"number"!=typeof r&&wi(e,t,r)&&(t=r=n),(r=r===n?p:r>>>0)?(e=ks(e))&&("string"==typeof t||null!=t&&!cs(t))&&!(t=uo(t))&&sn(e)?_o(hn(e),0,r):e.split(t,r):[]},qn.spread=function(e,t){if("function"!=typeof e)throw new Ne(r);return t=null==t?0:bn(bs(t),0),Zr(function(n){var r=n[t],o=_o(n,0,t);return r&&Dt(o,r),Et(e,this,o)})},qn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},qn.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:bs(t))<0?0:t):[]},qn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:bs(t)))<0?0:t,o):[]},qn.takeRightWhile=function(e,t){return e&&e.length?go(e,ui(t,3),!1,!0):[]},qn.takeWhile=function(e,t){return e&&e.length?go(e,ui(t,3)):[]},qn.tap=function(e,t){return t(e),e},qn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Ne(r);return os(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Da(e,t,{leading:o,maxWait:t,trailing:i})},qn.thru=va,qn.toArray=ms,qn.toPairs=Us,qn.toPairsIn=Ws,qn.toPath=function(e){return Ga(e)?Lt(e,qi):fs(e)?[e]:Ro(Fi(ks(e)))},qn.toPlainObject=ws,qn.transform=function(e,t,n){var r=Ga(e),o=r||Xa(e)||hs(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:os(e)&&ts(i)?Un(Ye(e)):{}}return(o?Ot:wr)(e,function(e,r,o){return t(n,e,r,o)}),n},qn.unary=function(e){return Ra(e,1)},qn.union=ia,qn.unionBy=aa,qn.unionWith=sa,qn.uniq=function(e){return e&&e.length?fo(e):[]},qn.uniqBy=function(e,t){return e&&e.length?fo(e,ui(t,2)):[]},qn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},qn.unset=function(e,t){return null==e||ho(e,t)},qn.unzip=la,qn.unzipWith=ca,qn.update=function(e,t,n){return null==e?e:po(e,t,xo(n))},qn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:po(e,t,xo(r),o)},qn.values=$s,qn.valuesIn=function(e){return null==e?[]:Jt(e,Is(e))},qn.without=ua,qn.words=tl,qn.wrap=function(e,t){return qa(xo(t),e)},qn.xor=da,qn.xorBy=fa,qn.xorWith=ha,qn.zip=pa,qn.zipObject=function(e,t){return bo(e||[],t||[],nr)},qn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},qn.zipWith=ga,qn.entries=Us,qn.entriesIn=Ws,qn.extend=Ss,qn.extendWith=Cs,dl(qn,qn),qn.add=wl,qn.attempt=nl,qn.camelCase=Vs,qn.capitalize=Hs,qn.ceil=kl,qn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=xs(r))==r?r:0),t!==n&&(t=(t=xs(t))==t?t:0),lr(xs(e),t,r)},qn.clone=function(e){return cr(e,4)},qn.cloneDeep=function(e){return cr(e,5)},qn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},qn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},qn.conformsTo=function(e,t){return null==t||ur(e,t,Ds(t))},qn.deburr=Ys,qn.defaultTo=function(e,t){return null==e||e!=e?t:e},qn.divide=_l,qn.endsWith=function(e,t,r){e=ks(e),t=uo(t);var o=e.length,i=r=r===n?o:lr(bs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},qn.eq=$a,qn.escape=function(e){return(e=ks(e))&&Q.test(e)?e.replace(G,on):e},qn.escapeRegExp=function(e){return(e=ks(e))&&oe.test(e)?e.replace(re,"\\$&"):e},qn.every=function(e,t,r){var o=Ga(e)?Nt:gr;return r&&wi(e,t,r)&&(t=n),o(e,ui(t,3))},qn.find=xa,qn.findIndex=Yi,qn.findKey=function(e,t){return Ft(e,ui(t,3),wr)},qn.findLast=wa,qn.findLastIndex=Gi,qn.findLastKey=function(e,t){return Ft(e,ui(t,3),kr)},qn.floor=Sl,qn.forEach=ka,qn.forEachRight=_a,qn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),Is)},qn.forInRight=function(e,t){return null==e?e:xr(e,ui(t,3),Is)},qn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},qn.forOwnRight=function(e,t){return e&&kr(e,ui(t,3))},qn.get=Ns,qn.gt=Va,qn.gte=Ha,qn.has=function(e,t){return null!=e&&vi(e,t,Or)},qn.hasIn=Rs,qn.head=Qi,qn.identity=sl,qn.includes=function(e,t,n,r){e=Qa(e)?e:$s(e),n=n&&!r?bs(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),ds(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ut(e,t,n)>-1},qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:bs(n);return o<0&&(o=bn(r+o,0)),Ut(e,t,o)},qn.inRange=function(e,t,r){return t=vs(t),r===n?(r=t,t=0):r=vs(r),function(e,t,n){return e>=yn(t,n)&&e<bn(t,n)}(e=xs(e),t,r)},qn.invoke=Ls,qn.isArguments=Ya,qn.isArray=Ga,qn.isArrayBuffer=Ka,qn.isArrayLike=Qa,qn.isArrayLikeObject=Za,qn.isBoolean=function(e){return!0===e||!1===e||is(e)&&Er(e)==b},qn.isBuffer=Xa,qn.isDate=Ja,qn.isElement=function(e){return is(e)&&1===e.nodeType&&!ls(e)},qn.isEmpty=function(e){if(null==e)return!0;if(Qa(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||hs(e)||Ya(e)))return!e.length;var t=mi(e);if(t==_||t==O)return!e.size;if(Ci(e))return!jr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},qn.isEqual=function(e,t){return Mr(e,t)},qn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Mr(e,t,n,r):!!o},qn.isError=es,qn.isFinite=function(e){return"number"==typeof e&&Bt(e)},qn.isFunction=ts,qn.isInteger=ns,qn.isLength=rs,qn.isMap=as,qn.isMatch=function(e,t){return e===t||Lr(e,t,fi(t))},qn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Lr(e,t,fi(t),r)},qn.isNaN=function(e){return ss(e)&&e!=+e},qn.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},qn.isNil=function(e){return null==e},qn.isNull=function(e){return null===e},qn.isNumber=ss,qn.isObject=os,qn.isObjectLike=is,qn.isPlainObject=ls,qn.isRegExp=cs,qn.isSafeInteger=function(e){return ns(e)&&e>=-9007199254740991&&e<=f},qn.isSet=us,qn.isString=ds,qn.isSymbol=fs,qn.isTypedArray=hs,qn.isUndefined=function(e){return e===n},qn.isWeakMap=function(e){return is(e)&&mi(e)==R},qn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Er(e)},qn.join=function(e,t){return null==e?"":Yt.call(e,t)},qn.kebabCase=Gs,qn.last=ea,qn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=bs(r))<0?bn(o+i,0):yn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):qt(e,$t,i,!0)},qn.lowerCase=Ks,qn.lowerFirst=Qs,qn.lt=ps,qn.lte=gs,qn.max=function(e){return e&&e.length?mr(e,sl,Ar):n},qn.maxBy=function(e,t){return e&&e.length?mr(e,ui(t,2),Ar):n},qn.mean=function(e){return Vt(e,sl)},qn.meanBy=function(e,t){return Vt(e,ui(t,2))},qn.min=function(e){return e&&e.length?mr(e,sl,Br):n},qn.minBy=function(e,t){return e&&e.length?mr(e,ui(t,2),Br):n},qn.stubArray=yl,qn.stubFalse=xl,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=El,qn.nth=function(e,t){return e&&e.length?$r(e,bs(t)):n},qn.noConflict=function(){return pt._===this&&(pt._=qe),this},qn.noop=fl,qn.now=Na,qn.pad=function(e,t,n){e=ks(e);var r=(t=bs(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(mt(o),n)+e+Ho(gt(o),n)},qn.padEnd=function(e,t,n){e=ks(e);var r=(t=bs(t))?fn(e):0;return t&&r<t?e+Ho(t-r,n):e},qn.padStart=function(e,t,n){e=ks(e);var r=(t=bs(t))?fn(e):0;return t&&r<t?Ho(t-r,n)+e:e},qn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ks(e).replace(ie,""),t||0)},qn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=vs(e),t===n?(t=e,e=0):t=vs(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=kn();return yn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Kr(e,t)},qn.reduce=function(e,t,n){var r=Ga(e)?It:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},qn.reduceRight=function(e,t,n){var r=Ga(e)?jt:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,pr)},qn.repeat=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:bs(t),Qr(ks(e),t)},qn.replace=function(){var e=arguments,t=ks(e[0]);return e.length<3?t:t.replace(e[1],e[2])},qn.result=function(e,t,r){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[qi(t[o])];a===n&&(o=i,a=r),e=ts(a)?a.call(e):a}return e},qn.round=Al,qn.runInContext=e,qn.sample=function(e){return(Ga(e)?Xn:Xr)(e)},qn.size=function(e){if(null==e)return 0;if(Qa(e))return ds(e)?fn(e):e.length;var t=mi(e);return t==_||t==O?e.size:jr(e).length},qn.snakeCase=Zs,qn.some=function(e,t,r){var o=Ga(e)?zt:io;return r&&wi(e,t,r)&&(t=n),o(e,ui(t,3))},qn.sortedIndex=function(e,t){return ao(e,t)},qn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},qn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&$a(e[r],t))return r}return-1},qn.sortedLastIndex=function(e,t){return ao(e,t,!0)},qn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},qn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if($a(e[n],t))return n}return-1},qn.startCase=Xs,qn.startsWith=function(e,t,n){return e=ks(e),n=null==n?0:lr(bs(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},qn.subtract=Ol,qn.sum=function(e){return e&&e.length?Kt(e,sl):0},qn.sumBy=function(e,t){return e&&e.length?Kt(e,ui(t,2)):0},qn.template=function(e,t,r){var o=qn.templateSettings;r&&wi(e,t,r)&&(t=n),e=ks(e),t=Cs({},t,o,ei);var i,a,s=Cs({},t.imports,o.imports,ei),l=Ds(s),c=Jt(s,l),u=0,d=t.interpolate||we,f="__p += '",h=Oe((t.escape||we).source+"|"+d.source+"|"+(d===J?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(h,function(t,n,r,o,s,l){return r||(r=o),f+=e.slice(u,l).replace(ke,an),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),f+="';\n";var g=Ie.call(t,"variable")&&t.variable;if(g){if(de.test(g))throw new Se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(W,""):f).replace($,"$1").replace(V,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=nl(function(){return Ce(l,p+"return "+f).apply(n,c)});if(m.source=f,es(m))throw m;return m},qn.times=function(e,t){if((e=bs(e))<1||e>f)return[];var n=p,r=yn(e,p);t=ui(t),e-=p;for(var o=Qt(r,t);++n<e;)t(n);return o},qn.toFinite=vs,qn.toInteger=bs,qn.toLength=ys,qn.toLower=function(e){return ks(e).toLowerCase()},qn.toNumber=xs,qn.toSafeInteger=function(e){return e?lr(bs(e),-9007199254740991,f):0===e?e:0},qn.toString=ks,qn.toUpper=function(e){return ks(e).toUpperCase()},qn.trim=function(e,t,r){if((e=ks(e))&&(r||t===n))return Zt(e);if(!e||!(t=uo(t)))return e;var o=hn(e),i=hn(t);return _o(o,tn(o,i),nn(o,i)+1).join("")},qn.trimEnd=function(e,t,r){if((e=ks(e))&&(r||t===n))return e.slice(0,pn(e)+1);if(!e||!(t=uo(t)))return e;var o=hn(e);return _o(o,0,nn(o,hn(t))+1).join("")},qn.trimStart=function(e,t,r){if((e=ks(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=uo(t)))return e;var o=hn(e);return _o(o,tn(o,hn(t))).join("")},qn.truncate=function(e,t){var r=30,o="...";if(os(t)){var i="separator"in t?t.separator:i;r="length"in t?bs(t.length):r,o="omission"in t?uo(t.omission):o}var a=(e=ks(e)).length;if(sn(e)){var s=hn(e);a=s.length}if(r>=a)return e;var l=r-fn(o);if(l<1)return o;var c=s?_o(s,0,l).join(""):e.slice(0,l);if(i===n)return c+o;if(s&&(l+=c.length-l),cs(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Oe(i.source,ks(pe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;c=c.slice(0,f===n?l:f)}}else if(e.indexOf(uo(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+o},qn.unescape=function(e){return(e=ks(e))&&K.test(e)?e.replace(H,gn):e},qn.uniqueId=function(e){var t=++je;return ks(e)+t},qn.upperCase=Js,qn.upperFirst=el,qn.each=ka,qn.eachRight=_a,qn.first=Qi,dl(qn,(Cl={},wr(qn,function(e,t){Ie.call(qn.prototype,t)||(Cl[t]=e)}),Cl),{chain:!1}),qn.VERSION="4.17.23",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){qn[e].placeholder=qn}),Ot(["drop","take"],function(e,t){Vn.prototype[e]=function(r){r=r===n?1:bn(bs(r),0);var o=this.__filtered__&&!t?new Vn(this):this.clone();return o.__filtered__?o.__takeCount__=yn(r,o.__takeCount__):o.__views__.push({size:yn(r,p),type:e+(o.__dir__<0?"Right":"")}),o},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ot(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ot(["head","last"],function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}}),Ot(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}}),Vn.prototype.compact=function(){return this.filter(sl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zr(function(e,t){return"function"==typeof e?new Vn(this):this.map(function(n){return Rr(n,e,t)})}),Vn.prototype.reject=function(e){return this.filter(Ba(ui(e)))},Vn.prototype.slice=function(e,t){e=bs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=bs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(p)},wr(Vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=qn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(qn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Vn,c=s[0],u=l||Ga(t),d=function(e){var t=i.apply(qn,Dt([e],s));return o&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&u){t=g?t:new Vn(this);var m=e.apply(t,s);return m.__actions__.push({func:va,args:[d],thisArg:n}),new $n(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?o?m.value()[0]:m.value():m)})}),Ot(["pop","push","shift","sort","splice","unshift"],function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ga(o)?o:[],e)}return this[n](function(n){return t.apply(Ga(n)?n:[],e)})}}),wr(Vn.prototype,function(e,t){var n=qn[t];if(n){var r=n.name+"";Ie.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}}),Pn[Uo(n,2).name]=[{name:"wrapper",func:n}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ro(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=yn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return mo(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[c+=t];++g<d;){var v=u[g],b=v.iteratee,y=v.type,x=b(m);if(2==y)m=x;else if(!x){if(1==y)continue e;break e}}p[f++]=m}return p},qn.prototype.at=ba,qn.prototype.chain=function(){return ma(this)},qn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},qn.prototype.next=function(){this.__values__===n&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},qn.prototype.plant=function(e){for(var t,r=this;r instanceof Wn;){var o=Wi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:va,args:[oa],thisArg:n}),new $n(t,this.__chain__)}return this.thru(oa)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,Xe&&(qn.prototype[Xe]=function(){return this}),qn}();mt?((mt.exports=mn)._=mn,gt._=mn):pt._=mn}).call(Y)}(wK,wK.exports);const TK={bottom:__("bottom","bit-assist"),left:__("left","bit-assist"),right:__("right","bit-assist"),top:__("top","bit-assist")};function NK({onChange:e,position:t,value:n}){const r=TK[t];return mc(qB,{mt:"2",children:[gc(TF,{textTransform:"capitalize",w:"16",children:r}),mc(vD,{children:[gc(pD,{min:"0",onChange:n=>e(n,t),placeholder:r,value:n,w:"28"}),gc(kD,{children:__("px","bit-assist")})]})]})}function RK(){var e,t,n,r,o,i,a,s;const[l,c]=AH(WY),{updateWidget:u}=yK(),d=GW(),f=Ad("gray.200","gray.700"),h=Ad("purple.500","purple.200"),p=async e=>{c(t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.position=e});const{data:t,status:n}=await u(IY(l,t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.position=e}));d(n,t)};return mc(eP,{children:[gc(qH,{children:__("Widget Position","bit-assist")}),mc(uD,{columns:3,spacing:2,width:"20",children:[gc(AF,{label:__("Top Left","bit-assist"),placement:"left",children:gc(eP,{_hover:{bg:h,borderColor:h},bg:`${"top-left"===(null==(e=l.styles)?void 0:e.position)&&h}`,borderColor:`${"top-left"===(null==(t=l.styles)?void 0:t.position)&&h}`,borderWidth:"2px",cursor:"pointer",height:"6",onClick:()=>p("top-left")})}),gc(eP,{bg:f,height:"6"}),gc(AF,{label:__("Top Right","bit-assist"),placement:"right",children:gc(eP,{_hover:{bg:h,borderColor:h},bg:`${"top-right"===(null==(n=l.styles)?void 0:n.position)&&h}`,borderColor:`${"top-right"===(null==(r=l.styles)?void 0:r.position)&&h}`,borderWidth:"2px",cursor:"pointer",height:"6",onClick:()=>p("top-right")})}),gc(eP,{bg:f,height:"6"}),gc(eP,{bg:f,height:"6"}),gc(eP,{bg:f,height:"6"}),gc(AF,{label:__("Bottom Left","bit-assist"),placement:"left",children:gc(eP,{_hover:{bg:h,borderColor:h},bg:`${"bottom-left"===(null==(o=l.styles)?void 0:o.position)&&h}`,borderColor:`${"bottom-left"===(null==(i=l.styles)?void 0:i.position)&&h}`,borderWidth:"2px",cursor:"pointer",height:"6",onClick:()=>p("bottom-left")})}),gc(eP,{bg:f,height:"6"}),gc(AF,{label:__("Bottom Right","bit-assist"),placement:"right",children:gc(eP,{_hover:{bg:h,borderColor:h},bg:`${"bottom-right"===(null==(a=l.styles)?void 0:a.position)&&h}`,borderColor:`${"bottom-right"===(null==(s=l.styles)?void 0:s.position)&&h}`,borderWidth:"2px",cursor:"pointer",height:"6",onClick:()=>p("bottom-right")})})]}),gc(OK,{})]})}const PK={mask:`url(${zq.ROOT_URL}/img/widget-button-mask.svg)`,WebkitMask:`url(${zq.ROOT_URL}/img/widget-button-mask.svg)`};function MK(){var e,t;const[n,r]=AH(WY),{updateWidget:o}=yK(),i=GW(),a=Ad("purple.500","purple.200"),s=["semiRounded","rounded","circle","square"],{getRadioProps:l,getRootProps:c,setValue:u}=gB({defaultValue:null==(e=n.styles)?void 0:e.shape,name:"widgetShape",onChange:async e=>{r(t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.shape=e});const{data:t,status:a}=await o(IY(n,t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.shape=e}));i(a,t)}}),d=c();return K.exports.useEffect(()=>{var e;u((null==(e=n.styles)?void 0:e.shape)||"")},[null==(t=n.styles)?void 0:t.shape]),mc(eP,{children:[gc(qH,{children:__("Widget Shape","bit-assist")}),gc(qB,{...d,flexWrap:"wrap",gap:2,spacing:0,children:s.map(e=>{const t=l({value:e});return mc(CK,{design:"border",...t,children:[e===s[0]&&gc(eP,{bg:a,className:"semiRoundedShape",h:"44px",style:PK,w:"44px"}),e===s[1]&&gc(eP,{bg:a,h:"44px",rounded:"10px",w:"44px"}),e===s[2]&&gc(eP,{bg:a,h:"44px",rounded:"full",w:"44px"}),e===s[3]&&gc(eP,{bg:a,h:"44px",rounded:"none",w:"44px"})]},e)})})]})}const LK=()=>{var e,t;const[n,r]=AH(WY),{updateWidget:o}=yK(),i=GW(),a=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await o(e);i(n,t)},1e3)).current;return K.exports.useEffect(()=>()=>{a.cancel()},[a]),mc(jP,{children:[gc(qH,{children:__("Widget Show On","bit-assist")}),gc(ZP,{colorScheme:"purple",onChange:e=>((e,t)=>{const o=e;r(n=>{null!==n.styles&&void 0!==n.styles||(n.styles={}),n.styles={...n.styles,[t]:e}}),a(IY(n,e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles.widget_show_on=o}))})(e,"widget_show_on"),value:null!=(t=null==(e=n.styles)?void 0:e.widget_show_on)?t:["desktop","mobile"],children:mc(qB,{spacing:4,children:[gc(KP,{"aria-label":__("Show on desktop","bit-assist"),size:"lg",value:"desktop",children:__("Desktop","bit-assist")}),gc(KP,{"aria-label":__("Show on mobile","bit-assist"),size:"lg",value:"mobile",children:__("Mobile","bit-assist")})]})})]})};function DK(){var e,t;const[n,r]=AH(WY),{updateWidget:o}=yK(),i=GW(),a=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await o(e);i(n,t)},1e3)).current;return K.exports.useEffect(()=>()=>{a.cancel()},[a]),mc(eP,{children:[gc(qH,{children:__("Widget Size","bit-assist")}),mc(vD,{children:[gc(pD,{min:"0",onChange:async e=>{const t=e.target.value?Number(e.target.value):0;Number.isNaN(t)||t<0||t>200?i("warning",__("Widget size must be between 0 and 200","bit-assist")):(r(e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles.size=t}),a(IY(n,e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles.size=t})))},placeholder:"60",value:null!=(t=null==(e=n.styles)?void 0:e.size)?t:"",w:"28"}),gc(kD,{children:__("px","bit-assist")})]})]})}const IK=()=>{var e,t,n;const r={"widget-style-1":`${zq.ROOT_URL}/img/widget-style/bit-assist-widget-1.png`,"widget-style-2":`${zq.ROOT_URL}/img/widget-style/bit-assist-widget-2.png`},[o,i]=AH(WY),{updateWidget:a}=yK(),s=GW(),l=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await a(e);s(n,t)},1e3)).current,c=(e,t)=>{const n=e;i(n=>{null!==n.styles&&void 0!==n.styles||(n.styles={}),n.styles={...n.styles,[t]:e}}),l(IY(o,e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles.widget_style=n}))};return K.exports.useEffect(()=>()=>{l.cancel()},[l]),mc(eP,{children:[gc(qH,{children:__("Widget Style","bit-assist")}),mc(qB,{flexWrap:"wrap",gap:4,maxH:400,spacing:0,children:[gc(hD,{_hover:{borderColor:"purple",boxShadow:"lg",transform:"translateY(-5px)"},alt:__("Widget style","bit-assist"),border:(null==(e=null==o?void 0:o.styles)?void 0:e.widget_style)?"widget_transparent"===(null==(t=null==o?void 0:o.styles)?void 0:t.widget_style)?"2px solid purple":"2px solid transparent":"2px solid purple",borderRadius:12,cursor:"pointer",h:"40",objectFit:"contain",onClick:()=>c("widget_transparent","widget_style"),src:r["widget-style-1"],transition:"transform 0.3s ease, box-shadow 0.3s ease",w:"40"}),gc(hD,{_hover:{borderColor:"purple",boxShadow:"lg",transform:"translateY(-5px)"},alt:__("Widget style","bit-assist"),border:"widget_box"===(null==(n=null==o?void 0:o.styles)?void 0:n.widget_style)?"2px solid purple":"2px solid transparent",borderRadius:12,cursor:"pointer",h:"40",objectFit:"contain",onClick:()=>c("widget_box","widget_style"),src:r["widget-style-2"],transition:"transform 0.3s ease, box-shadow 0.3s ease",w:"40"})]})]})};function jK(){return mc(FB,{gap:[5,6],children:[gc(AK,{}),gc(IK,{}),gc(xK,{}),gc(EK,{}),gc(RK,{}),gc(DK,{}),gc(MK,{}),gc(WG,{}),gc(LK,{}),gc(kK,{})]})}function zK(){var e,t;const n=CH(WY),r=Ad("gray.50","gray.700"),{isAnalyticsActive:o}=YW(),[i,a]=K.exports.useState("all-time"),[s,l]=K.exports.useState([new Date,new Date]),c={filterValue:"custom"===i?s:i,widget_id:null==n?void 0:n.id},{analytics:u}=function(e){let t=[];t=Array.isArray(null==e?void 0:e.filterValue)?(null==e?void 0:e.filterValue.map(e=>{const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`}))||"all-time":(null==e?void 0:e.filterValue)||"all-time";const n={filter:t,widget_id:null==e?void 0:e.widget_id},{data:r,isLoading:o}=Mq(["channel_analytics",n],async()=>HW("analytics/channel",n),{enabled:!!(null==n?void 0:n.widget_id)});return{analytics:null==r?void 0:r.data,isAnalyticsFetching:o}}(c);if(0!==o)return gc(pc,{children:gc(GB,{borderWidth:"1px",rounded:"lg",children:mc(HB,{variant:"simple",children:[gc(YB,{children:(null==(e=null==u?void 0:u.data)?void 0:e.length)>0?__("Showing Channel Analytics","bit-assist"):__("No Analytics Data Found","bit-assist")}),mc(XB,{bgColor:r,children:[gc(JB,{children:gc(ZB,{colSpan:4,py:"3",children:gc(qB,{justifyContent:"space-between",children:mc(qB,{children:[mc(_B,{onChange:e=>(async e=>{a(e)})(e.target.value),style:{width:"inherit"},value:i,variant:"outline",w:"36",children:[gc("option",{value:"today",children:__("Today","bit-assist")}),gc("option",{value:"7days",children:__("Last 7 Days","bit-assist")}),gc("option",{value:"30days",children:__("Last 30 Days","bit-assist")}),gc("option",{value:"all-time",children:__("All Time","bit-assist")}),gc("option",{value:"custom",children:__("Custom Date","bit-assist")})]}),"custom"===i&&gc(_V,{onDateChange:l,selectedDates:s})]})})})}),mc(JB,{children:[gc(ZB,{children:__("Channel Name","bit-assist")}),gc(ZB,{textAlign:"center",children:__("Visitors","bit-assist")}),gc(ZB,{textAlign:"center",children:__("Total Clicks","bit-assist")}),gc(ZB,{textAlign:"center",children:__("Click Rate","bit-assist")})]})]}),gc(KB,{children:null==(t=null==u?void 0:u.data)?void 0:t.map(e=>mc(JB,{children:[gc(QB,{children:e.title}),gc(QB,{textAlign:"center",children:+e.visitor_count}),gc(QB,{textAlign:"center",children:+e.click_count}),mc(QB,{textAlign:"center",children:[0===+e.visitor_count?0:(100/+e.visitor_count*+e.click_count).toFixed(0),"%"]})]},e.channel_id))})]})})})}function BK(){return gc("svg",{height:"512px",viewBox:"0 0 512 512",width:"512px",xmlns:"http://www.w3.org/2000/svg",children:gc("path",{d:"M336.625 109.054C300.598 73.044 266.224 38.716 255.994 0c-10.231 38.716-44.61 73.044-80.631 109.054-54.032 53.998-115.294 115.197-115.294 206.985C60.053 424.249 147.76 511.983 255.97 512c108.21.016 195.944-87.691 195.961-195.901v-.06c0-91.782-61.257-152.987-115.306-206.985m-193.279 252.64c-12.014-.408-56.351-76.83 25.902-158.2l54.43 59.456a4.653 4.653 0 01-.363 6.943c-12.988 13.321-68.348 68.836-75.229 88.032-1.42 3.962-3.495 3.812-4.74 3.769M256 462.416c-37.216 0-67.385-30.169-67.386-67.385v-.001a70.219 70.219 0 0116.796-44.51c12.15-14.858 50.581-56.646 50.581-56.646s37.842 42.402 50.49 56.505a65.897 65.897 0 0116.904 44.652c.001 37.216-30.169 67.385-67.385 67.385m128.976-109.275c-1.452 3.176-4.747 8.479-9.194 8.641-7.926.289-8.773-3.773-14.632-12.443-12.862-19.034-125.109-136.345-146.104-159.033-18.467-19.955-2.601-34.023 4.759-41.396 9.234-9.25 36.187-36.187 36.187-36.187s80.368 76.253 113.846 128.354 21.941 97.186 15.138 112.064","data-original":"#0077c0",fill:"#009cde"})})}function FK(){return gc("svg",{viewBox:"0 0 434.147 434.147",x:"0px",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",y:"0px",children:gc("path",{d:"M27.336 14.372l28.177 360.474a13.333 13.333 0 009.263 11.67l148.268 47.008c2.622.831 5.437.831 8.059 0l148.268-47.008a13.333 13.333 0 009.263-11.67l28.177-360.474C407.417 6.622 401.292 0 393.519 0H40.629c-7.773 0-13.898 6.622-13.293 14.372zm307.217 111.843H150.918l5.542 51.105h174.099L319.17 323.013l-102.096 32.369-102.096-32.369-5.95-76.116h53.588v37.336l55.89 15 55.556-15 4.31-59.503H107.295L95.937 79.419H338.21l-3.657 46.796z",fill:"#fc490b"})})}function qK(){return mc("svg",{height:47,viewBox:"0 0 433 512",width:40,xmlns:"http://www.w3.org/2000/svg",children:[gc("defs",{children:gc("image",{height:511,href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbEAAAH/CAMAAADuXBOfAAAAAXNSR0IB2cksfwAAAwBQTFRFR3BM/1Uq7Gc36WY062c27Gc37Gc37Gc37Gc36Gk07Gc462c37Gc07GY22m1I/38/62c27GQ17Gc27WU36mY16mU36mY37mYz6GM37GY37Gc362Y3/2Yz/1VV7Gc26Wc37Gc262g27GY37GU27GY162s68Ws162c26Wc37Gc07Gc2/wAA6mc36mQ362c17mY36mY46mc16mc352g57mYz7Gc36WQ36Wc362Y2/38A62g27Gc07Gc17WQ17Gc37GY26Wo/7Gc26WQ07WY47Wc46WQ06mQ16mU1718v4nE462c36Wc37GQ07Gc262g362Q07GY37Wg072Q27GY362c262I67GY37GQ07GY17WY37Wg17GQ07Gc362g07GQ262Y16mY35WYz62Y26mY17Gc162c36WQ37GU16WY66Wo17Gc362c3318/7GY37GU36mc37WY17Gc37GU37mo58mYz62Y37GY262c26Wc07GU37GU462k36WU262Y27Gc262Y37GY17mY462c162Y36mg37Gg262Y562U362Y362Y27Gc27Gc37mk362c37Gc36mc262Y27GY37Gk36mYz7GU36Wc37Gc251wu7GY26WQ36WU37GY37Wc462Y062c26Wo45mE862Y27GQ262c262Y36WQ062c36mg162Y17Gc37GY172c38Gk87Gc37GY37GY26Wc262U262U37G0262Y16Wc062Y16mU47Gc37GY27GY362Y362Y16mY262Y162c262c262c27WY37GQ362c46mg262Q37WY27GU17Gc26mU37Gc37Gc36Wc37Gc26mc36mc38GM462c27Gc262c36WQ16mc362Y462c262Y262Y36mc27WU57GY16mc27Wk07Gc362Y37Gc17Gc47Gc27Gc262c27GY362c26mc37GY47Gg37GY37GY27Gc37GY37Gc26Wc37Gc26mY37Gc262Y37Gc27GY36mY36mg57WY462U062c362c17Gg27Gc3AYegIQAAAQB0Uk5TAAZ71k9F2f+0Ihuq938HBHTz3Ek+064eF6L1eAUDbPDXQjfOpxoTm/7ycQFl7NI8MsigFg+U/e9rAl3ozSvBmgyM+2RW5Ca6EAmF+eleTt/CLCGzjQ199uVXR9q8Jxyshgp14FFA1bUjGKWACG7dSjnPsB8UnXpn7dhEM8mplnNfLcOOWDgonGZQ6mAuj+ZZQb0pGab6iAtw8eJSO9G3JBWf+IJp7t5MNMuxIBGXYUYvxKsOkPxaP76kiYFoS0PFqJFy51s90FW/KqFviuNUuSUSg2PrMMZNkoRcuzrbrR30d5k2sqO2zHbUbVOLlcp8fuGHx3m4wJiTMUg1ap5ir7qs7cMAABW1SURBVHic7Z1/nM1V/sfvEAdNJIqYMSK6GoloGBGNEo3kRyLUEhsKi2whVKQtWpWhaaiEavOrslbffkpsfqaQLd9+UrvdVFurH6qt/e53ruPXzNx7P5/3+ZzzPp/Pva/n391z3uf99Jhm3vd93icUSkrSypU/wXYMgECFikKISpVthwFcUuVEcYj0k6raDgW4oNrJ1cURTqlhOxrgSM1TxfGcVst2QCAhtU8XpahTN8N2UCAumfWySgsrpv4ZtuMCcWjQMIavKGc2sh0aiEHjs8JxhAnR5OxqtsMDpchuek5cX1GanWs7QlCC5i0S+iomfF5L20GCo7Q6P8dJWDGt2+TaDhRI2l7gwleUdg1shwqKaX+hS1/RH40dGtsON+XpeFGee2HFnNMp23bIqc3Fl5B8RWnR3HbQKUznS8m+isk5v4vtwFOUrpflqwgrptvltmNPSbpfoegrSo+etsNPOXr19uCrmLwr+9g+QkpR9aq+3oQV0+9q26dIIfoP8OwrysBrbB8kRbj2N1p8FZM/aLDtw6QAGddVd1bhmiFDbZ8n6fnt9Rp9RRk23PaRkpoRN2j2VUz6jSNtHytpyRwVq43DO6N/Z/tkScqYsUZ8RRl3k+3DJSHjfx+/jcM7dW5Os33AJCP3lgkGfUWZOMn2GZOKWycb9hVlShXbx0waukx108bhneq3oUdOB9m3d2PxFeXUmrZPmwTcMY3NV5TTa9s+cMDpM53WxuGdrHqZtg8dZO7sx+wrSsMZto8dWO4aaMFXMeE/jLd99EAyeJBqG4d3JtyN9mEy9wyx5ivK5FttJyBgVB5m1VcxOVPRI+eekSel2xZWzMxZaB92SY1TbMs6zLR7baciENQ6zbaoY+T9ET1yTmTUrWNbUwlm32c7Iz7n/vK2FZXhgTm2k+JjCuba1hOLeQ8W2k6MT8l8qMi2nDjMX2A7N77k4Udsi0nAowttp8d3PLbIZBuHdxYv6Wo7Rb4i9/EnbCtx5Mk/2c6Sj3hqqW0drli23HaifMKKlTxtHN7pWw49cqFQ9tMzbYsgMOAZ2/myzrOrbEsg8udrbafMKqv/ssa2ATLVr0vhEZvPzbadfiWu/x/bibPEnOdtp16ZF0bYTp4FCl+cZzvvHsgalXI9cgvm2066R8aOsZ1CVhY+ajvh3gn/PnV65Ea+tNh2urXwxMsp0iP3ymjbqdbG0qdsJ5OBm8bZTrNOclausJ1Qw6Td7K82Du/MfDqpe+TWTrSdYAO8+qzttBqj0TrbyTXDmtdW206tEaqtb8KYxfCpzv+NPjb81XZ2DfB6M84UbhwT2kQfIeyBzVtsJ1gzLbdypq9oW7SGRB3T7Y15byRTj1xum9aMuRNnFhzet2cPzm23v2k1yTpp0I4zcSWeG7ucb05BMW/tsJZjnezswNnXVnpcURdXT7roYvGu4PfIZb+9mzFjYlnZkWAs83aOckV3C0nWyd/eYU3Xu7FiyL3b9EyrEvTuxZ1kjbTaw9nGkf+/8X4kmZ0bV5q+VwX2Ger3NjDmSbzfOUEoH2zkDOXD/mw51smWzZxJcppen7mN9eLMRx/zJFkjhW9wtnHkTXe+/VpgYMZwfPbuC1iP3JvbOdOzyt0Nc94LoOXvN5xjnex4izM1u11/Q5Wxby9nYHMLnEPyBV13cbZx5HyykxAb7yCDoocC0SP37pOcSWn3KTE83mEhjzxsJMc6Wf53zoRk1aN3M428kXMgT3jRY/qTrJG0ct5fmSLwD7WBo8M/4wzyicd93CNXoSJnKjxcWODtSI5Qf3JzUeVEzjTs/dzLHzyFD3L+uUj77YiLaifrfGXKEc9FhTmsJZndb/uuR67mfs4EnFJDQ8jPsZY93/mbhpD1UfsfnIdfrOn9qdWvcX61sGZPKy1R6yDzCzOvTMVB4/wa3q/vLmirLXBvzGjIeeztX+qMnfkr8gvb6wxekcZncX5bmPdVR83x7/yENf6LdMdPJbvpOYznNfNvlLfV65KLDRzBPc1bcB622+VmTsHcTnlpoi/LzcLbWZbzT3PjzFuezngQkX+ZpWeoebs3vzb7ZADv35NDTjB6mNjwdkibv3LMXLOpVNnweUrDewuB5ysL3rpo+kmsz1BfzHrTp9m5TMd6ZgDnsbSU2tzR+VLOg1Vfz/e6ZdVvWL/fO60Wy6m6Xsb6ytSJvC/I9urNebg6dRl65E5gfWVqQAXzJypF9ys4D1h/reHj9KrEeRw7HezMP0TWNTJ4lqr/Yn1lqpKtWyLXvM95zCbm/kfd/0POgxy4x9Q5XHA165OrzV43cohrf8N5iHnfWqrkHKbPlazPGm9tqf0EGZ+zNkA/b/9BIt6nw1u30VzU+e31nOFveE5v9Gpk3846171dA42xj2C9yOOfoUErpnJ+ORE+q7GmuJkvy33np6Yj3vdJzmmqpUduzFjWoDv5q7Ev92XWN4BaNPccMe+l7/AfdP1g0AfvO1s553v73jb3FtbBCj6db837lp2n3ohbv+YMVc7/8iPVzuYcNCh63KEYZxfW35T8fQe10ZmcqXBzEb8s2bNY/xopMf/Lj6ytz5mOfneSA+T9i7/O9/5/ii3te9ah1APvIkXXZzprVW1c2flffoR38Hs+pbJ6J2vlOkBPir7Ceiv/wFCXYd31AGdY+YEaSThyCesDJp8NdxHT4G9Zv4G12NKsxsIfONOT/pJjj9zQA5wB9bN7bUCNL1knOI1+JWEww4dxBqP2Z4d9OrJOSUv0exnvbBKxSvVPe/tsOciZqNKzj4/CO/8n4C/UvHcBZ7ImTooRAu+MrZwfg/4KVKufWB9GnlK60TajLusf9OT5X37kZ9brjtVPLtEjdwZr0Ux7F4olsjuxXineX/PozgWshWlxutr8Lz/Ce23/yOQ05i9/9ifXg+W8ozGyvsgMhT5g/YJ173UBG3jsCPP4mYYzQhHO/QI4VNyZES9wprBFKMK32Sn/tp1cQ3D23zIaS9c0/8uPZFzH1uPOZ+xRN18cBJePue6RcBnTO//LlzDd1eIxllxvTMaD5z4kizFfzKjjoDLDnWMGY76ZA8nBPca/EDZuzGsfedAYPMhw04VpY5PNzv/yI4Ybm8wae+KW5CjSE7lztsGcmjTm9ydLzLH6j+a+7TRorJn/nwUyx72rTKXVmDGDY0UCQfbThi6amDI2xeTonmCwYqWRy1xmjFXkn//lR34xkVsTxvp+4/+rRTzkPq5/yLcBY4F+JV43Lc/T3Qii3ZiVKdN+5txmehOs2Vj+ILvzv/xItfVaO5/0GnuAdhM0VWi0TmOOdRqbfZ/t1PiWSfoeGNVnjH/+VzXl8QRp33P34KXdrGvItzZj/I8Oztj4g+pHR4ry9+sMxQ3Ll+lJtCZj/PO/VnwSFh6MCXHDCJ3huOFPWq69azGmbzCgaw698uPJmMgaxT1UqesuDdfedRgbO4P55KG75MvA3owJ0VDn1FBX7HjLc7a9Gyvi/6d6ZB69V2MizP+y9iavL954Nsb/v4Mao4/s7dmYjbu9Hb/yNo7Io7H67L9yVTmu91aDMSGmsd+f73mhl5R7MsbyTkwJMkvcddNiTORd2VFjhK5o6+Hauxdj/PO/GpQcWazHmBCXbNIZpBtaqb9Aqm7sycSzXAzQ5cdSx9RlTIi3dugM1A3Kr/yqG6OPbPRI2zIPreozJhYv4b4qlf2dWt4DY+ya58uGoNGYEKP53kiUKDaiBsTYyF2xeqO1GhPiNN4rv0lt7N+x5y9pNib2fs75u28SG2v05zgh6DYmxH4zD4HFJGmNZW6L+6W7fmNGHgKLQ7Ia+zTBhBMTxkTrX5ludySnscSPJBgxJsTSp3QeIS5Jaeyvias5hoyJnKkctxST0FjngQ4hmDLm8bUblySdMRdzys0ZE+LgFp2HiUWyGevvYgSuSWPmJ1okl7GCKW5CMGpMiPkLdB6pDMlkLHOUu4c7DRsTYlhlnccqRRIZ+6WdyxCMGxPp/6qq82QlSBpjrf7p+ss+88aEGGDs8mKyGLtvg/sQOIwJcaKhC8Ixvj5yg8+M7XifEgKPMVOX8JPBWNWXaD2zTMaEeOQDncc8TBIYq0AdUMhmTIT/M17nSQ8ReGMF9GtxfMaEmHC37lbUgBvL/cLdn2Al4DQmxHc/6zxw0I3dqhQFrzGxZo/WO41BNrb6J7V+S2ZjQmx4Tt+hg2xMebgduzGtd/MDa2zhpYoBWDEm8gfpelo3oMaq3ujh2qINY0Jc8a6WkwfU2KQBirsfwo4xIf6u5YpIEI2NmKu492FsGYv/FCmF4BnLbeP1GShrxoSorzxL5CiBM9b8a8WNj2HRmBBzvV4nDpix1Xs0zD62aszzlf1gGbtay3xxu8a8TpfYrLapFWPDvU+1OIRtYyLcwcN0ieAYS9P2hJB1Y0Ls/j/VGAJk7FfFDcviA2NCqMYQIGP1FDcsC4yRgDGJagwwRgHGSMCYBMYIwBgJGJPAGAEYIwFjEhgjAGMkYEwCYwRgjASMSQ6q7QdjXlGNAcYowBgJGJPAGAEYIwFjEhgjAGMkYEwCYwRgjASMSWCMAIyRgDEJjBGAMRIwJoExAjBGAsYkMEbAF8YU32aEMa+oxgBjFGCMBIxJYIwAjJGAMQmMEYAxEjAmgTECMEYCxiQwRgDGSMCYBMYIwBgJGJPAGAEYIwFjkh5q+8GYV1RjgDEKMEYCxiQwRgDGSMCYBMYIwBgJGJPAGAEYIwFjEhgjAGMkYEwCYwRgjASMSWCMAIyRgDEJjBHwhbFpavvBmFdUY4AxCjBGAsYkMEYAxkjAmATGCMAYCRiTwBgBGCMBYxIYIwBjJGBMAmMEYIwEjElgjACMkYAxySq1/WDMK6oxwBgFGCMBYxIYIwBjJGBMAmMEYIwEjElgjACMkYAxCYwRgDESMCaBMQIwRgLGJDBGAMZIwJgExgj4wtiravvBmFdUY4AxCjBGAsYkMEYAxkjAmATGCMAYCRiTwBgBGCMBYxIYIwBjJGBMAmMEYIwEjElgjACMkYAxyTtq+8GYV1RjgDEKMEYCxiQwRgDGSMCYBMYIwBgJGJPAGAEYIwFjEhgjAGMkYEwCYwRgjASMSWCMAIyRgDEJjBHwhbHv1PaDMa+oxgBjFGCMBIxJYIwAjJGAMQmMEYAxEjAmgTECMEYCxiQwRgDGSMCYBMYIwBgJGJPAGAEYIwFjkhZq+8GYV1RjgDEKMEYCxiQwRgDGSMCYBMYIwBgJGJPAGAEYIwFjEhgjAGMkYEwCYwRgjASMSWCMAIyRgDEJjBHwhbHJavvBmFdUY4AxCjBGAsYkMEYAxkjAmATGCMAYCRiTwBgBGCMBYxIYIwBjJGBMAmMEYIwEjElgjACMkYAxyddq+8GYV1RjgDEKMEYCxiQwRgDGSMCYBMYIwBgJGJPAGAEYIwFjEhgjAGMkYEwCYwSCbWyVYqQwJlGNQdXYwdCKn9YofRLGJKoxqBnL+0ur4o/ee1DlszAmUY1BydgD7Q9/+Ort9A/DmEQ1htBS8lYH3jz26cLLFlM/DmMS1RjIxtJf6lri88N7ExeAMYlqDFRj/+1VZoXfDSCtAGMS1RhoxupXiLVE2r7qhDVgTKIaA8VY0fqMOItUucH9KjAmUY3BvbHwotoJlnl9o9t1YEyiGoNrY0tnJF4n89cJ7haCMYlqDC6NzXw723Glxitz3CwFYxLVGFwZy3uti6u1fnZTa4QxiWoMbow939P1au/NdlwNxiSqMTgbO7CJslzHF/Md1oMxiWoMTsbSlwwmLtj50cQrwphENQYHYzFKHM50H51oSRiTqMaQ0Fj9Z9TWrFquTvxFYUyiGkMCY01ui1ficObjKXGXhTGJagyhSJwFw+eNUF4zyv2nxlkYxiSqMYQisdeLjFFe8TDVRrWOuTKMSVRjCEVirTazU67ygsd47KxYRRAYk6jGEIqUXWvNHnclDmeeijEhFcYkqjGEImWWIpQ4HMmedUHp5WFMohpDKFJqofmkEoczq6fnldwAxiSqMYQiJZahlzicmfN+iS1gTKIaQyhy/CrjVEocziwYctweMCZRjSEUObbGxP7KqzjQ9cb0o7vAmEQ1hlDkyApNTlYvcTiz/KMj+8CYRDWGUER+PrzVW4nDmUnl5U4wJlGNIRQ59HHvJQ5nMtYXRbeCMYlqDKFI8Yd3N9VR4nCm9qIwjB1BNYZQRGOJw5kZS2HsMKoxhCKb71D+rAK5nWK2FbsBxiQObYg+AsaCBowFDRgLGjAWNGAsaMBY0ICxoAFjQQPGggaMBQ0YCxowFjRgLGjAWNCAsaABY0EDxoIGjAUNGAsaMBY0YCxowFjQgLGgAWNBA8aCBowFDRgLGjAWNGAsaMBY0ICxoKHP2N6zM5UiKLxIWwgwRmSjyrW5BfM1RgBjRMIdVhC3rzxM5/4pYexXvRmbeTtl87Sr+urd/kJDWfITGXUTTB9WStoW13tPqqh3625tDSbKR9y0TG/e5j3obm5awTq9++aspP5IDi7dhzjng8KQ7s57Zm4r0rtpu0/NJ8o/DP52nt70LavlsGODhno3zKrHM+7GP8zZrDeDdfYlmqC24pOw3u1uMD3/y4+07aY3iftfj7dT9qyZereqfwZnovxDl6muXjpzTXjR+Jj79OyhdRvR9+Y05kz5h0/b6c3lhKZlX8Qr/CrP+YMUei+3kCnfkFsvS286X7231A56a1JCHLjHSqJ8xIi5ejOad2XH41bXXZOa92KhrUT5iLUT9WZ1+5dHVtZfk2pvM1H+Ia2c5sR+VvnQutprUpdbTpSP6DVMb277fpOGmpRhhmr+BWHiEtSkDKP9l3CtpF5Nyg09p9n2EpeUrEm5IHvWbttqYjIxRWtSbtjZQXPBVgN9y6VuTcoNM8baNlSKSmZeLUoiMh9qYlvScaAm5YZG8Z80ZgY1Kbc886FtV4dATco9VU9abFsXsa0OLPzBri/UpOhs6mdRGGpSKvSZvsaSr6wv1K5ggGffsSIMNSl1sjtNYPeFmpQ3xv+Ht26FmpR3Hm7GKAw1KR1Uu606k6/5Q22fNVm49iPnbHsHNSmd1BhtXBhqUnrpuivfqC/UpPTTeaA5X6hJmeG+2YaENURNyhCr95ioWxWhJmWQ5pO1C5uLmpRRcl9urdXXxLW2T5T8tNyqzxdqUjzUvF6TMNSkuMjYp2OIC2pSnNQa59VX3huoSfHyrrchLj1Qk2Jn8CD1IS6oSdlBdYhLzo+oSdniPZUhLg0b2A47laEPcUFNyja/REjCUJOyT24b90NcUJPyB7VfcOcrOoEA+IMz3AxxGYaalI9wHuKCmpTf6FUpkS/UpPxIgiEuqEn5k8I3Yg9xQU3Kv7SPMa00jJqUnyk7ERg1Kb+zs8TU7aJRqEn5nwbHhricWWA7GOCGzG1yiEvFSbYjAW5ptA41qaBRYWuy1qT+H2fkYL5HV4+IAAAAAElFTkSuQmCC",id:"img1",width:433})}),gc("style",{}),gc("use",{href:"#img1",id:"Background",x:0,y:0})]})}function UK(){return mc("svg",{fill:"#898a8b",viewBox:"0 0 426.667 426.667",x:"0px",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",y:"0px",children:[gc("circle",{cx:42.667,cy:213.333,r:42.667}),gc("circle",{cx:213.333,cy:213.333,r:42.667}),gc("circle",{cx:384,cy:213.333,r:42.667})]})}function WK(){return mc("svg",{viewBox:"0 0 512 512",x:"0px",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",y:"0px",children:[gc("circle",{cx:256,cy:256,fill:"#f0efeb",r:256}),mc("g",{fill:"#24c2f1",children:[gc("path",{d:"M356.458 307.851c49.093-49.094 117.291-92.568 150.83-141.176 8.069-11.695 2.416-27.9-11.283-31.67-17.763-4.888-46.893-9.839-92.019-9.839-89.114 0-363.884 17.168-403.985-77.56 0 0 23.764 102.809 197.537 111.72s164.092-2.917 217.614 7.426c50.284 9.718 29.678 40.844 8.142 62.38-21.537 21.538-56.44 50.499-66.836 78.719z"}),gc("circle",{cx:300.02,cy:374.69,r:35.641}),gc("circle",{cx:132.19,cy:374.69,r:35.641})]})]})}function $K(){return mc("svg",{fill:"none",height:"45",viewBox:"0 0 40 45",width:"40",xmlns:"http://www.w3.org/2000/svg",children:[gc("path",{d:"M34.6916 8.7525C34.6657 8.51512 34.4543 8.40938 34.2967 8.40938C34.1392 8.40938 30.6855 8.14612 30.6855 8.14612C30.6855 8.14612 28.287 5.74762 27.9967 5.51025C27.7335 5.247 27.2317 5.32575 27.0214 5.37862C26.9955 5.37862 26.4937 5.53725 25.677 5.8005C24.8602 3.45375 23.463 1.3185 20.9587 1.3185H20.7214C20.034 0.421875 19.1385 0 18.4005 0C12.6011 0 9.80662 7.2495 8.937 10.9406C6.67012 11.6528 5.06137 12.1264 4.87687 12.2063C3.61125 12.6011 3.58537 12.6281 3.42675 13.8139C3.29512 14.7105 0 40.2019 0 40.2019L25.65 45L39.5696 41.9951C39.5955 41.9422 34.7186 8.98987 34.6916 8.7525ZM24.2527 6.16838C23.6205 6.35287 22.8555 6.59025 22.0916 6.8535V6.37987C22.0916 4.95675 21.9071 3.79687 21.564 2.87325C22.8814 3.03187 23.6992 4.482 24.2527 6.16838ZM19.9552 3.1635C20.2984 4.06012 20.5357 5.32575 20.5357 7.065V7.32825C19.1126 7.776 17.6096 8.22487 16.0537 8.7255C16.9234 5.4045 18.585 3.76987 19.9552 3.1635ZM18.2677 1.52888C18.531 1.52888 18.7954 1.63462 19.0057 1.79212C17.1337 2.66175 15.1571 4.84987 14.3392 9.279C13.1006 9.67387 11.9137 10.017 10.7809 10.386C11.7304 7.01213 14.103 1.52888 18.2677 1.52888Z",fill:"#7CB342"}),gc("path",{d:"M34.2968 8.35646C34.1381 8.35646 30.6855 8.09321 30.6855 8.09321C30.6855 8.09321 28.287 5.69471 27.9968 5.45733C27.8899 5.35158 27.7583 5.29871 27.6536 5.29871L25.7288 45L39.6484 41.9951C39.6484 41.9951 34.7715 8.98983 34.7445 8.75246C34.6388 8.51508 34.4543 8.40933 34.2968 8.35646Z",fill:"#558B2F"}),gc("path",{d:"M20.7146 16.4171L19.0552 21.4222C19.0552 21.4222 17.5511 20.6178 15.7623 20.6178C13.0916 20.6178 12.9622 22.3031 12.9622 22.7182C12.9622 24.9997 18.9258 25.8817 18.9258 31.2491C18.9258 35.4757 16.2551 38.1982 12.6506 38.1982C8.29458 38.1982 6.11658 35.5016 6.11658 35.5016L7.2832 31.6642C7.2832 31.6642 9.5647 33.6352 11.484 33.6352C12.7541 33.6352 13.2727 32.6497 13.2727 31.9241C13.2727 28.9417 8.39808 28.8123 8.39808 23.886C8.39808 19.7628 11.3546 15.7702 17.3441 15.7702C19.5727 15.7432 20.7146 16.4171 20.7146 16.4171Z",fill:"white"})]})}function VK(){return gc("svg",{fill:"none",height:"36",viewBox:"0 0 46 36",width:"46",xmlns:"http://www.w3.org/2000/svg",children:gc("path",{d:"M29.2767 7.17692C28.41 6.3258 27.0047 6.3258 26.1386 7.17692L12.0157 21.0474C10.2815 22.7492 7.47186 22.7492 5.73905 21.0474C4.0044 19.3451 4.0044 16.5853 5.73905 14.8822L19.59 1.27917C17.8568 -0.423527 15.0462 -0.423527 13.3129 1.27917L2.59956 11.8003C-0.866521 15.2052 -0.866521 20.7244 2.59956 24.1298C6.06656 27.5347 11.6864 27.5347 15.1534 24.1298L29.2767 10.2593C30.1428 9.40818 30.1428 8.02804 29.2767 7.17692ZM33.9843 2.55404C30.5173 -0.851346 24.8975 -0.851346 21.4305 2.55404L7.30764 16.4236C6.44146 17.2743 6.44146 18.6553 7.30764 19.506C8.17427 20.3571 9.57911 20.3571 10.4457 19.506L24.5695 5.63641C26.3028 3.93372 29.1124 3.93372 30.8453 5.63641C31.7128 6.48708 33.1176 6.48708 33.9843 5.63641C34.8509 4.78439 34.8509 3.40516 33.9843 2.55404ZM38.6924 16.4236C37.8257 15.5734 36.42 15.5734 35.5533 16.4236L21.4305 30.2936C19.6972 31.9959 16.8866 31.9959 15.1534 30.2936C14.2872 29.4429 12.8823 29.4429 12.0157 30.2936C11.1477 31.1452 11.1477 32.5253 12.0157 33.3755C15.4813 36.7805 21.1025 36.7805 24.5695 33.3755L38.6924 19.506C39.5585 18.6553 39.5585 17.2743 38.6924 16.4236ZM43.4004 11.8007C39.9334 8.39623 34.3127 8.39623 30.8466 11.8007L16.7229 25.6712C15.8562 26.5214 15.8562 27.9024 16.7229 28.7531C17.59 29.6047 18.9953 29.6047 19.8614 28.7531L33.9843 14.8831C35.7171 13.1804 38.5281 13.1804 40.261 14.8831C41.9942 16.5853 41.9942 19.3451 40.261 21.0474L26.41 34.6509C28.1432 36.3526 30.9524 36.3526 32.6871 34.6509L43.4004 24.1298C46.8665 20.7244 46.8665 15.2052 43.4004 11.8007Z",fill:"#1A1918"})})}function HK(){return gc("svg",{fill:"none",height:"32",viewBox:"0 0 46 32",width:"46",xmlns:"http://www.w3.org/2000/svg",children:gc("path",{d:"M34.1205 9.3729C34.1205 9.3729 30.3907 21.1285 30.0859 22.0993C29.1467 14.7317 28.1986 7.36528 27.2416 0C20.8859 0 17.4877 4.54584 15.6918 9.34401L10.7755 22.1282C10.7467 21.2113 10.0855 9.48269 10.0855 9.48269C9.6945 3.60392 4.3355 0.0250407 0 0.0250407L5.24975 32C11.9082 31.9711 15.4982 27.4522 17.3784 22.6541C17.3784 22.6541 21.3842 12.2564 21.5491 11.7845C21.5778 12.2275 24.4241 31.9981 24.4241 31.9981C31.1094 31.9981 34.7013 27.7566 36.6333 23.126L46 0.0269667C39.3971 0.0269667 35.9164 4.54584 34.1205 9.37097V9.3729Z",fill:"#0000FF"})})}function YK(){return gc("svg",{fill:"none",height:"35",viewBox:"0 0 46 35",width:"46",xmlns:"http://www.w3.org/2000/svg",children:gc("path",{d:"M38.1495 0C34.5607 0 31.5699 2.35905 30.6525 5.88957C28.999 0.584585 24.7666 0.00402765 23.0007 0.00402765C21.2354 0.00402765 17.0045 0.584585 15.3478 5.88842C14.4301 2.36107 11.439 0.00402765 7.85109 0.00402765C3.44851 0.00402765 0 3.11596 0 7.08838C0 8.84501 0.439065 10.2475 0.969493 11.7688L6.94706 28.4827C8.94861 34.0259 13.0262 34.8536 15.2785 34.8536C18.8114 34.8536 21.5645 33.0644 23.0001 29.8938C24.4372 33.0788 27.1906 34.8769 30.7218 34.8769C32.9712 34.8769 37.0447 34.0477 39.0564 28.4841L45.0672 11.7133L45.114 11.5749C45.1827 11.36 45.2519 11.1583 45.3174 10.9667C45.6375 10.0306 46 8.96929 46 7.66865C46 3.22528 42.6984 0 38.1495 0ZM40.9829 10.2823L34.9725 27.0531C34.2386 29.0822 33.018 30.5926 30.7218 30.5926C28.5704 30.5926 27.3 29.4073 26.6654 27.3762L23.0487 16.2145H22.9504L19.3357 27.3762C18.7 29.4076 17.4293 30.5693 15.2785 30.5693C12.9817 30.5693 11.7602 29.0713 11.0275 27.0422L5.06598 10.3729C4.57716 8.9713 4.33304 8.10392 4.33304 7.08809C4.33304 5.54147 5.79979 4.2883 7.85109 4.2883C9.56167 4.2883 10.7831 5.40338 11.1742 7.04609L15.2302 20.3419H15.3274L19.4323 7.33895C19.9709 5.45488 20.9477 4.2883 23.0007 4.2883C25.0526 4.2883 26.0297 5.45286 26.5671 7.33694L30.6723 20.3419H30.7692L34.8267 7.04609C35.2172 5.40338 36.4383 4.28427 38.1495 4.28427C40.2008 4.28427 41.667 5.54205 41.667 7.66865C41.667 8.44138 41.3239 9.21756 40.9829 10.2823Z",fill:"#3192E7"})})}function GK(){return mc("svg",{fill:"none",height:"18",viewBox:"0 0 46 18",width:"46",xmlns:"http://www.w3.org/2000/svg",children:[gc("path",{d:"M26.2173 0.675689C25.3593 1.107 24.9875 1.91211 24.9875 4.09741C24.9875 4.09741 25.4165 3.6661 26.1029 3.40732C26.6034 3.22042 26.9609 2.97601 27.2183 2.78911C27.9619 2.2284 28.0763 1.55269 28.0763 0.373772C28.062 0.373772 26.8894 0.301887 26.2173 0.675689Z",fill:"#FBBD71"}),gc("path",{d:"M20.9695 1.1789C20.2259 1.79711 20.04 2.86101 20.04 2.86101L17.6377 12.1198L15.6643 4.54312C15.4784 3.738 15.1066 2.74599 14.5489 2.0559C13.8625 1.1789 12.4326 1.12139 12.261 1.12139C12.1323 1.12139 10.7166 1.1789 9.97303 2.0559C9.41535 2.74599 9.04355 3.738 8.85766 4.54312L6.9987 12.1198L4.59635 2.86101C4.59635 2.86101 4.41046 1.869 3.66687 1.1789C2.4943 0.115001 0.764038 0.373787 0.764038 0.373787L5.33994 17.6981C5.33994 17.6981 6.8271 17.8275 7.57069 17.4537C8.55736 16.9505 9.05785 16.591 9.61554 14.2188C10.1732 12.1054 11.6604 5.95206 11.7748 5.52075C11.832 5.33385 11.9607 4.77315 12.3325 4.77315C12.7043 4.77315 12.833 5.27634 12.8902 5.52075C13.0189 5.95206 14.4917 12.1054 15.0494 14.2188C15.6643 16.5767 16.0933 16.9505 17.0943 17.4537C17.8379 17.8275 19.325 17.6981 19.325 17.6981L23.8723 0.373787C23.8723 0.373787 22.1421 0.129378 20.9695 1.1789ZM28.0621 3.16293C28.0621 3.16293 27.7475 3.59423 27.1326 3.96804C26.7037 4.21245 26.3319 4.34184 25.9029 4.58625C25.1593 4.96005 24.9734 5.33385 24.9734 5.89455V17.6406C24.9734 17.6406 26.146 17.77 26.8896 17.3962C27.8762 16.893 28.0621 16.4041 28.0621 14.2907V3.85302V3.16293ZM39.4304 9.07187L45.236 0.431295C45.236 0.431295 42.8337 -1.46925e-05 41.5896 1.12139C40.7888 1.81149 39.9881 3.10542 39.9881 3.10542L37.886 6.21085C37.7573 6.39775 37.6429 6.52714 37.457 6.52714C37.2711 6.52714 37.0852 6.34024 37.028 6.21085L34.926 3.10542C34.926 3.10542 34.068 1.869 33.3244 1.12139C32.0946 -1.46925e-05 29.678 0.431295 29.678 0.431295L35.2978 9.05749L29.5493 17.6837C29.5493 17.6837 32.0803 18 33.3244 16.8786C34.1252 16.1885 34.8688 15.0096 34.8688 15.0096L36.9708 11.9041C37.0995 11.7172 37.2139 11.5878 37.3998 11.5878C37.5857 11.5878 37.7716 11.7747 37.8288 11.9041L39.9309 15.0096C39.9309 15.0096 40.7316 16.1885 41.4752 16.8786C42.705 18 45.1788 17.6837 45.1788 17.6837L39.4304 9.07187Z",fill:"black"})]})}const KK=dD({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),QK=dD({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});function ZK(){const e=GW(),t=zq.IS_PRO?0:-1,n=`\n    <script type="text/javascript">\n      var bit_assist_={ api: ${JSON.stringify(zq.API_URL)}};\n      (function () { var s=document.createElement('script'); s.type='text/javascript'; s.async=true; s.src='${zq.ROOT_URL}/iframe/bit-assist.js'; t=document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s, t) })()\n    <\/script>\n  `;return mc(eP,{children:[gc(qH,{badge:"2",children:__("Copy the script","bit-assist")}),mc(TF,{mb:"2",children:[sprintf(__("%s can easily be installed using the below code snippet. Paste it just above the","bit-assist"),"Bit Assist")," ",gc(XP,{children:"<body />"})," ",__("tag.","bit-assist")]}),mc(qB,{gap:"2",spacing:0,children:[gc(XP,{maxW:"full",p:"4",rounded:"lg",children:n}),gc(AF,{label:__("Copy","bit-assist"),children:gc(uP,{"aria-label":__("Copy","bit-assist"),colorScheme:"purple",icon:gc(KK,{}),onClick:()=>{window.isSecureContext&&navigator.clipboard?navigator.clipboard.writeText(n):(e=>{const t=document.createElement("textarea");t.value=e,document.body.append(t),t.focus(),t.select();try{document.execCommand("copy")}catch(n){console.error("Unable to copy to clipboard",n)}t.remove()})(n),e("success",__("Copied","bit-assist"))},size:"sm",tabIndex:t})})]})]})}function XK({domain:e,index:t,isWidgetUpdating:n,updateWidget:r}){const[o,i]=AH(WY),a=K.exports.useRef(),s=GW(),l=zq.IS_PRO?0:-1;return mc(qB,{borderTopWidth:`${t>0&&"1px"}`,gap:"4",justifyContent:"space-between",px:"4",py:"2",children:[gc(TF,{children:e}),gc(rB,{closeOnBlur:!1,initialFocusRef:a.current,children:({onClose:e})=>mc(pc,{children:[gc(pB,{children:gc(eP,{children:gc(AF,{label:__("Remove domain","bit-assist"),placement:"right",children:gc(uP,{"aria-label":__("Remove domain","bit-assist"),colorScheme:"red",disabled:n,icon:gc(SW,{}),isRound:!0,tabIndex:l,variant:"ghost"})})})}),mc(hB,{children:[gc(aB,{}),gc(lB,{}),mc(sB,{children:[gc(TF,{children:__("Are you sure you want to remove this domain?","bit-assist")}),gc(iP,{colorScheme:"red",disabled:n,mt:"4",onClick:()=>(async(e,t)=>{t();const{data:n,status:a}=await r(IY(o,t=>{t.domains.splice(e,1)}));i(t=>{t.domains.splice(e,1)}),s(a,n)})(t,e),ref:a.current,children:__("Confirm","bit-assist")})]})]})]})})]})}function JK(){var e,t;const n=GW(),[r,o]=AH(WY),{isWidgetUpdating:i,updateWidget:a}=VY(),[s,l]=K.exports.useState(!1),[c,u]=K.exports.useState(""),d=K.exports.useRef(null),f=zq.IS_PRO?0:-1,h=()=>{u(""),l(!1)},p=async()=>{try{const e=new URL(c).origin.replace("www.","");if(""===e||"null"===e||null===e)return void n("error",__("Please enter a valid domain name","bit-assist"));if(window.location.host.replace("www.","")===new URL(c).host.replace("www.",""))return void n("warning",__("You cannot add your own domain","bit-assist"));const t=Array.isArray(r.domains)?r.domains:[];if(t.find(t=>t===e))return void n("warning",__("Domain already exists","bit-assist"));const{data:i,status:s}=await a({...r,domains:[...t,e]});"success"===s&&(o(t=>{Array.isArray(t.domains)?t.domains.push(e):t.domains=[e]}),h()),n(s,i)}catch{n("error",__("Please enter a valid domain name","bit-assist"))}};return K.exports.useEffect(()=>{var e;s&&(null==(e=d.current)||e.focus())},[s]),mc(eP,{children:[gc(qH,{badge:"1",children:sprintf(__("Add %s to your other website","bit-assist"),"Bit Assist")}),mc(eP,{maxW:"full",w:"sm",children:[gc(eP,{borderWidth:`${(null==(e=r.domains)?void 0:e.length)&&"1px"}`,mb:"4",rounded:"md",children:null==(t=r.domains)?void 0:t.map((e,t)=>gc(XK,{domain:e,index:t,isWidgetUpdating:i,updateWidget:a},e))}),s&&mc(eP,{mb:4,children:[mc(qB,{mb:2,children:[gc(pD,{onChange:e=>u(e.target.value),onKeyDown:e=>{e.repeat||("Enter"===e.key?p():"Escape"===e.key&&h())},placeholder:__("ex: https://your-domain.com","bit-assist"),ref:d,tabIndex:f,value:null!=c?c:""}),gc(AF,{label:__("Cancel","bit-assist"),children:gc(uP,{"aria-label":__("Remove Domain","bit-assist"),colorScheme:"red",icon:gc(SW,{}),isRound:!0,onClick:h,tabIndex:f,variant:"ghost"})}),gc(AF,{label:__("Save","bit-assist"),children:gc(uP,{"aria-label":__("Save","bit-assist"),colorScheme:"green",disabled:i,icon:gc(yW,{}),isRound:!0,onClick:()=>p(),tabIndex:f,variant:"ghost"})})]}),mc("span",{children:[__("Press","bit-assist")," ",gc(_D,{children:"Enter"})," ",__("to add,","bit-assist")," ",gc(_D,{children:"Esc"})," ",__("to cancel","bit-assist")]})]}),!s&&gc(iP,{colorScheme:"gray",isLoading:i,leftIcon:gc(wW,{}),onClick:()=>l(!0),tabIndex:f,variant:"outline",children:__("Add Domain","bit-assist")})]})]})}function eQ({children:e,label:t}){return gc(AF,{hasArrow:!0,label:t,placement:"top",children:gc(iM,{alignItems:"center",borderWidth:1,h:"16",justifyContent:"center",p:"4",rounded:"lg",w:"16",children:e})})}function tQ(){return mc(FB,{gap:[5,6],children:[mc(eP,{textAlign:"center",children:[gc(OF,{as:"h4",mb:"4",size:"md",children:__("Publish Widget on Any Platform","bit-assist")}),mc(iM,{flexWrap:"wrap",gap:"2",justifyContent:"center",children:[gc(eQ,{label:__("Shopify","bit-assist"),children:gc($K,{})}),gc(eQ,{label:__("Squarespace","bit-assist"),children:gc(VK,{})}),gc(eQ,{label:__("Webflow","bit-assist"),children:gc(HK,{})}),gc(eQ,{label:__("Weebly","bit-assist"),children:gc(YK,{})}),gc(eQ,{label:__("Wix","bit-assist"),children:gc(GK,{})}),gc(eQ,{label:__("Magento","bit-assist"),children:gc(qK,{})}),gc(eQ,{label:__("Drupal","bit-assist"),children:gc(BK,{})}),gc(eQ,{label:__("Opencart","bit-assist"),children:gc(WK,{})}),gc(eQ,{label:__("HTML","bit-assist"),children:gc(FK,{})}),gc(eQ,{label:__("More","bit-assist"),children:gc(UK,{})})]})]}),mc(eP,{children:[gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/external-publish/"}),gc(qB,{justifyContent:"space-between",children:mc(TF,{borderColor:"purple.500",borderLeft:"4px",fontSize:"md",fontWeight:"medium",mb:4,px:"3",py:"1",children:[__("Want to use this widget in other domain?","bit-assist")," ",gc("br",{})," ",__("Follow these steps.","bit-assist")]})}),gc(VW,{children:mc(FB,{gap:[5,6],children:[gc(JK,{}),gc(ZK,{})]})})]})]})}function nQ(){var e,t,n,r,o,i,a,s,l,c,u;const[d,f]=K.exports.useState(!1),[h,p]=K.exports.useState(!1),g=Ad("purple.500","purple.200"),m=Ad("white","gray.800"),v=GW(),[b,y]=AH(WY),{updateWidget:x}=yK();K.exports.useEffect(()=>{var e;1===(null==(e=b.styles)?void 0:e.animation_active)?f(!0):f(!1)},[null==(e=b.styles)?void 0:e.animation_active]);const w=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await x(e);v(n,t)},1e3)).current;K.exports.useEffect(()=>()=>{w.cancel()},[w]);const k=e=>{((e,t)=>{y(n=>{var r;null!==n.styles&&void 0!==n.styles||(n.styles={}),n.styles.animation_delay={...null==(r=n.styles)?void 0:r.animation_delay,[t]:e}}),w(IY(b,n=>{var r;null!==n.styles&&void 0!==n.styles||(n.styles={}),n.styles.animation_delay={...null==(r=n.styles)?void 0:r.animation_delay,[t]:e}}))})(e,"delay")};return mc(eP,{maxW:"full",w:"lg",children:[mc(qH,{children:[__("Attention Animation","bit-assist"),gc(WB,{colorScheme:"purple",isChecked:!!d,ml:4,onChange:async e=>{f(e.target.checked);const t=e.target.checked?1:0;y(e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),null==e.styles?e.styles={}:e.styles.animation_active=t}),w(IY(b,e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),null!=e.styles&&(e.styles.animation_active=t)}))}})]}),d&&mc(UB,{alignItems:"flex-start",maxW:"full",spacing:"4",w:"lg",children:[mc(_B,{onChange:async e=>{const t=Number(e.target.value);y(e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),null==e.styles?e.styles={}:e.styles.animation_type=t});const{data:n,status:r}=await x(IY(b,e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),null!=e.styles&&(e.styles.animation_type=t)}));v(r,n)},value:null!=(n=null==(t=b.styles)?void 0:t.animation_type)?n:"",children:[gc("option",{value:1,children:__("Wiggle","bit-assist")}),gc("option",{value:2,children:__("Jump","bit-assist")}),gc("option",{value:3,children:__("Shock Wave","bit-assist")})]}),mc(TF,{children:[__("Animation Delay:","bit-assist")," ",null!=(i=null==(o=null==(r=b.styles)?void 0:r.animation_delay)?void 0:o.delay)?i:0," ",__("seconds","bit-assist")]}),mc(DB,{colorScheme:"purple",defaultValue:0,max:60,min:0,onChange:e=>k(e),onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),value:null==(s=null==(a=b.styles)?void 0:a.animation_delay)?void 0:s.delay,children:[gc(jB,{children:gc(zB,{})}),gc(AF,{bg:g,color:m,hasArrow:!0,isOpen:h,label:`${null!=(u=null==(c=null==(l=b.styles)?void 0:l.animation_delay)?void 0:c.delay)?u:0} ${__("seconds","bit-assist")}`,placement:"top",children:gc(IB,{bg:g})})]})]})]})}const rQ=[{day:__("sunday","bit-assist"),end:"18:00",start:"09:00"},{day:__("monday","bit-assist"),end:"18:00",start:"09:00"},{day:__("tuesday","bit-assist"),end:"18:00",start:"09:00"},{day:__("wednesday","bit-assist"),end:"18:00",start:"09:00"},{day:__("thursday","bit-assist"),end:"18:00",start:"09:00"},{day:__("friday","bit-assist")},{day:__("saturday","bit-assist")}];function oQ(){var e;const t=GW(),[n,r]=AH(WY),{updateWidget:o}=VY(),[i,a]=K.exports.useState(!1),[s,l]=K.exports.useState(!1),c=zq.IS_PRO?0:-1;K.exports.useEffect(()=>{var e;(null==(e=n.business_hours)?void 0:e.length)>0?l(!0):l(!1)},[n.business_hours]);const u=K.exports.useRef(wK.exports.debounce(async e=>{const{data:n,status:r}=await o(e);t(r,n)},1e3)).current,d=async(e,t)=>{a(!0),r(n=>{const r=[...n.business_hours||[]];r[t]={...r[t],[e.target.name]:e.target.value},n.business_hours=r})},f=async(e,t)=>{i&&(u(IY(n,n=>{const r=[...n.business_hours||[]];r[t]={...r[t],[e.target.name]:e.target.value},n.business_hours=r})),a(!1))};return K.exports.useEffect(()=>()=>{u.cancel()},[u]),mc(eP,{children:[gc(eP,{alignItems:"center",display:"flex",mb:-10,children:mc(qH,{children:[__("Enable Business Hours","bit-assist"),gc(WB,{colorScheme:"purple",isChecked:!!s,ml:4,onChange:async e=>{l(e.target.checked);const t=e.target.checked?rQ:[];r(e=>{e.business_hours=t}),zq.IS_PRO&&u(IY(n,e=>{e.business_hours=t}))}})]})}),s&&gc(VW,{children:gc(eP,{mt:4,children:gc(UB,{alignItems:"flex-start",children:null==(e=n.business_hours)?void 0:e.map((e,t)=>{var o,i;return mc(qB,{maxW:"full",minH:"10",children:[gc(KP,{colorScheme:"purple",isChecked:!!(null==e?void 0:e.start),onChange:e=>(async(e,t)=>{e.target.checked?(r(e=>{e.business_hours[t].start="09:00",e.business_hours[t].end="18:00"}),u(IY(n,e=>{e.business_hours[t].start="09:00",e.business_hours[t].end="18:00"}))):(r(e=>{delete e.business_hours[t].start,delete e.business_hours[t].end}),u(IY(n,e=>{delete e.business_hours[t].start,delete e.business_hours[t].end})))})(e,t),size:"lg",tabIndex:c,children:gc(TF,{fontSize:"md",style:{textTransform:"capitalize"},w:"24",children:e.day})}),!!(null==e?void 0:e.start)&&mc(pc,{children:[gc(pD,{name:"start",onBlur:e=>f(e,t),onChange:e=>d(e,t),placeholder:"09:00",tabIndex:c,value:null!=(o=null==e?void 0:e.start)?o:"",w:"24"}),gc(TF,{children:"-"}),gc(pD,{name:"end",onBlur:e=>f(e,t),onChange:e=>d(e,t),placeholder:"18:00",tabIndex:c,value:null!=(i=null==e?void 0:e.end)?i:"",w:"24"})]})]},e.day)})})})})]})}function iQ(){var e,t,n,r,o,i,a;const[s,l]=K.exports.useState(!1),c=GW(),[u,d]=AH(WY),{updateWidget:f}=yK(),h=Ad("purple.500","purple.200"),p=Ad("white","gray.800"),g=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await f(e);c(n,t)},1e3)).current,m=(e,t)=>{d(n=>{null===n.call_to_action&&(n.call_to_action={}),n.call_to_action={...n.call_to_action,[t]:e}}),g(IY(u,n=>{null===n.call_to_action&&(n.call_to_action={}),n.call_to_action={...n.call_to_action,[t]:e}}))};return K.exports.useEffect(()=>()=>{g.cancel()},[g]),mc(eP,{children:[gc(qH,{children:__("Call To Action","bit-assist")}),mc(UB,{alignItems:"flex-start",maxW:"full",spacing:"4",w:"lg",children:[gc(TF,{children:sprintf(__("Display a call to action message next to widget after %s seconds.","bit-assist"),null!=(t=null==(e=u.call_to_action)?void 0:e.delay)?t:0)}),mc(DB,{colorScheme:"purple",defaultValue:0,max:60,min:0,onChange:e=>(e=>{m(e,"delay")})(e),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),value:null==(n=u.call_to_action)?void 0:n.delay,children:[gc(jB,{children:gc(zB,{})}),gc(AF,{bg:h,color:p,hasArrow:!0,isOpen:s,label:`${null!=(o=null==(r=u.call_to_action)?void 0:r.delay)?o:0} ${__("seconds","bit-assist")}`,placement:"top",children:gc(IB,{bg:h})})]}),gc(bF,{color:"inherit",onChange:e=>{m(e.target.value,"text")},placeholder:__("Message","bit-assist"),value:null!=(a=null==(i=u.call_to_action)?void 0:i.text)?a:""})]})]})}const aQ=e=>{switch(e){case"hideOn":return __("Hide On","bit-assist");case"showOn":return __("Show On","bit-assist");default:return __("None","bit-assist")}},sQ=e=>{switch(e){case"contains":return __("Pages that contain","bit-assist");case"endWith":return __("Pages ended with","bit-assist");case"equal":return __("Specific page","bit-assist");case"startWith":return __("Pages starts with","bit-assist");default:return __("None","bit-assist")}},lQ=(e,t)=>{switch(t){case"contains":return`/*${e}*`;case"endWith":return`/*${e}`;case"equal":return`/${e}`;case"startWith":return`/${e}*`;default:return __("None","bit-assist")}};function cQ({index:e,isWidgetUpdating:t,page:n,updateWidget:r}){const o=GW(),[i,a]=AH(WY),s=K.exports.useRef();return mc(qB,{borderTopWidth:`${e>0&&"1px"}`,flexWrap:"wrap",gap:"2",justifyContent:"space-between",px:"4",py:"2",spacing:"0",children:[gc(TF,{children:aQ(null==n?void 0:n.visibility)}),gc(TF,{children:sQ(null==n?void 0:n.condition)}),gc(TF,{children:lQ(null==n?void 0:n.url,null==n?void 0:n.condition)}),gc(rB,{closeOnBlur:!1,initialFocusRef:s.current,children:({onClose:n})=>mc(pc,{children:[gc(pB,{children:gc(eP,{children:gc(AF,{label:__("Remove page","bit-assist"),placement:"right",children:gc(uP,{"aria-label":__("Remove page","bit-assist"),colorScheme:"red",disabled:t,icon:gc(SW,{}),isRound:!0,variant:"ghost"})})})}),mc(hB,{children:[gc(aB,{}),gc(lB,{}),mc(sB,{children:[gc(TF,{children:__("Are you sure you want to remove this page?","bit-assist")}),gc(iP,{colorScheme:"red",disabled:t,mt:4,onClick:()=>(async(e,t)=>{t();const n=[...i.exclude_pages];n.splice(e,1);const{data:s,status:l}=await r({...i,exclude_pages:[...n]});o(l,s),a(t=>{t.exclude_pages.splice(e,1)})})(e,n),ref:s.current,children:__("Confirm","bit-assist")})]})]})]})})]})}function uQ(){var e,t;const n=GW(),[r,o]=AH(WY),{isWidgetUpdating:i,updateWidget:a}=VY(),[s,l]=K.exports.useState(!1),[c,u]=K.exports.useState(""),[d,f]=K.exports.useState(""),[h,p]=K.exports.useState(""),[g,m]=K.exports.useState(""),v=zq.IS_PRO?0:-1,b=()=>{l(!1),f(""),m(""),p("")},y=async()=>{if(""===h||""===g||""===d&&"equal"!==g)return void n("warning",__("All fields are required","bit-assist"));const e={condition:g,url:d,visibility:h};o(t=>{Array.isArray(t.exclude_pages)||(t.exclude_pages=[]),t.exclude_pages.push(e)}),b();const{data:t,status:i}=await a(IY(r,t=>{Array.isArray(t.exclude_pages)||(t.exclude_pages=[]),t.exclude_pages.push(e)}));n(i,t)};K.exports.useEffect(()=>{u(window.location.origin)},[]);return mc(eP,{children:[gc(qH,{children:__("Page Filters","bit-assist")}),gc(eP,{mt:4,children:gc(eP,{borderWidth:`${(null==(e=r.exclude_pages)?void 0:e.length)&&"1px"}`,mb:"4",rounded:"md",children:null==(t=r.exclude_pages)?void 0:t.map((e,t)=>gc(cQ,{index:t,isWidgetUpdating:i,page:e,pageDomain:c,updateWidget:a},null==e?void 0:e.url))})}),s&&gc(VW,{children:mc(eP,{children:[mc(qB,{gap:"2",mb:2,overflow:"auto",pr:"2",py:"2",spacing:"0",children:[mc(_B,{maxW:"full",minW:"7rem",onChange:e=>p(e.target.value),tabIndex:v,w:"15rem",children:[gc("option",{value:"showOn",children:__("Show On","bit-assist")}),gc("option",{value:"hideOn",children:__("Hide On","bit-assist")})]}),mc(_B,{maxW:"full",minW:"10rem",onChange:e=>m(e.target.value),tabIndex:v,w:"25rem",children:[gc("option",{value:"contains",children:__("Pages that contain","bit-assist")}),gc("option",{value:"equal",children:__("Specific page","bit-assist")}),gc("option",{value:"startWith",children:__("Pages starts with","bit-assist")}),gc("option",{value:"endWith",children:__("Pages ended with","bit-assist")})]}),mc(vD,{children:[gc(wD,{children:"your-domain/"}),gc(pD,{minW:"10rem",onChange:e=>f(e.target.value),onKeyDown:e=>{e.repeat||("Enter"===e.key?y():"Escape"===e.key&&b())},placeholder:__("Page slug","bit-assist"),tabIndex:v,value:null!=d?d:""})]}),gc(AF,{label:__("Cancel","bit-assist"),children:gc(uP,{"aria-label":__("Remove Page","bit-assist"),colorScheme:"red",icon:gc(SW,{}),isRound:!0,onClick:b,tabIndex:v,variant:"ghost"})}),gc(AF,{label:__("Save","bit-assist"),children:gc(uP,{"aria-label":__("Save","bit-assist"),colorScheme:"green",disabled:i,icon:gc(yW,{}),isRound:!0,mr:2,onClick:()=>y(),tabIndex:v,variant:"ghost"})})]}),mc("span",{children:[__("Press","bit-assist")," ",gc(_D,{children:"Enter"})," ",__("to add,","bit-assist")," ",gc(_D,{children:"Esc"})," ",__("to cancel","bit-assist")]})]})}),s?void 0:gc(iP,{colorScheme:"gray",isLoading:i,leftIcon:gc(wW,{}),onClick:()=>{l(!0),p("showOn"),m("contains")},variant:"outline",children:__("Add Page","bit-assist")}),!zq.IS_PRO&&s?gc(iP,{colorScheme:"red",mt:"4",onClick:b,variant:"outline",children:__("Remove Filter","bit-assist")}):void 0]})}function dQ(){var e;const t=GW(),[n,r]=AH(WY),{updateWidget:o}=yK(),i=K.exports.useRef(wK.exports.debounce(async e=>{const{data:n,status:r}=await o(e);t(r,n)},1e3)).current;return K.exports.useEffect(()=>()=>{i.cancel()},[i]),mc(qB,{children:[gc(TF,{w:"28",children:__("Delay","bit-assist")}),mc(vD,{className:"input-group",children:[gc(pD,{min:"0",onChange:async e=>{const o=e.target.value?Number(e.target.value):0;Number.isNaN(o)||o<0||o>60?t("warning",__("Initial delay must be between 0 and 60","bit-assist")):(r(e=>{e.initial_delay=o}),i(IY(n,e=>{e.initial_delay=o})))},placeholder:__("Initial Delay in Second","bit-assist"),value:null!=(e=n.initial_delay)?e:"",w:"28"}),gc(kD,{children:__("Sec","bit-assist")})]})]})}function fQ(){var e;const t=GW(),[n,r]=AH(WY),{updateWidget:o}=yK(),i=K.exports.useRef(wK.exports.debounce(async e=>{const{data:n,status:r}=await o(e);t(r,n)},1e3)).current;return K.exports.useEffect(()=>()=>{i.cancel()},[i]),mc(qB,{mt:"2",children:[gc(TF,{w:"28",children:__("Page scroll","bit-assist")}),mc(vD,{children:[gc(pD,{min:"0",onChange:async e=>{const o=e.target.value?Number(e.target.value):0;Number.isNaN(o)||o<0||o>100?t("warning",__("Page scroll must be between 0 and 100","bit-assist")):(r(e=>{e.page_scroll=o}),i(IY(n,e=>{e.page_scroll=o})))},placeholder:__("Page Scroll in %","bit-assist"),value:null!=(e=n.page_scroll)?e:"",w:"28"}),gc(kD,{children:"%"})]})]})}function hQ(){return mc(eP,{children:[gc(qH,{children:__("Trigger Widget","bit-assist")}),gc(dQ,{}),gc(fQ,{})]})}function pQ(){var e,t;const[n,r]=K.exports.useState(!1),[o,i]=AH(WY),{updateWidget:a}=yK(),s=K.exports.useRef(!1),l=GW();K.exports.useEffect(()=>{var e;1===(null==(e=o.styles)?void 0:e.badge_active)?r(!0):r(!1)},[null==(e=o.styles)?void 0:e.badge_active]);const c=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await a(e);l(n,t)},1e3)).current;K.exports.useEffect(()=>()=>{c.cancel()},[c]);return mc(eP,{children:[gc(eP,{alignItems:"center",display:"flex",mb:-10,children:mc(qH,{children:[__("Enable Widget Active Badge","bit-assist"),gc(WB,{colorScheme:"purple",isChecked:!!n,ml:4,onChange:async e=>{var t,n;r(e.target.checked);const a=(null==(t=o.styles)?void 0:t.badge_color)||LV("#05f609"),s=e.target.checked?1:0,l=e.target.checked?null==(n=o.styles)?void 0:n.badge_color:a;i(e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles.badge_active=s,e.styles.badge_color=l}),c(IY(o,e=>{null!==e.styles&&void 0!==e.styles||(e.styles={}),e.styles.badge_active=s,e.styles.badge_color=l}))}})]})}),n&&mc(eP,{mt:2,children:[gc(TF,{mb:1,children:__("Choose Badge Color","bit-assist")}),gc(bK,{color:(null==(t=o.styles)?void 0:t.badge_color)||LV("#05f609"),handleChange:e=>{s.current=!0,i(t=>{null!==t.styles&&void 0!==t.styles||(t.styles={}),t.styles.badge_color=e})},handleClose:async()=>{if(!s.current)return;s.current=!1;const{data:e,status:t}=await a(o);l(t,e)}})]})]})}function gQ(){var e;const t=GW(),[n,r]=AH(WY),{updateWidget:o}=yK();return mc(eP,{maxW:"full",w:"lg",children:[gc(qH,{children:__("Widget Behavior","bit-assist")}),mc(_B,{onChange:async e=>{const i=Number(e.target.value);r(e=>{e.widget_behavior=i});const{data:a,status:s}=await o(IY(n,e=>{e.widget_behavior=i}));t(s,a)},value:null!=(e=n.widget_behavior)?e:"",children:[gc("option",{value:1,children:__("Click to open","bit-assist")}),gc("option",{value:2,children:__("Hover to open","bit-assist")}),gc("option",{value:3,children:__("Opened by default","bit-assist")})]})]})}function mQ(){var e;const[t,n]=K.exports.useState(!1),r=GW(),[o,i]=AH(WY),{updateWidget:a}=yK();K.exports.useEffect(()=>{var e;n(1===(null==(e=o.styles)?void 0:e.google_analytics))},[null==(e=o.styles)?void 0:e.google_analytics]);const s=K.exports.useRef(wK.exports.debounce(async e=>{const{data:t,status:n}=await a(e);r(n,t)},1e3)).current;return K.exports.useEffect(()=>()=>{s.cancel()},[s]),gc(VW,{children:gc(eP,{maxW:"full",mb:"-7",w:"lg",children:mc(qH,{children:[__("Google Analytics","bit-assist"),gc(WB,{colorScheme:"purple",isChecked:!!t,ml:4,onChange:async e=>{n(e.target.checked);const t=e.target.checked?1:0;i(e=>{null==e.styles&&(e.styles={}),e.styles.google_analytics=t}),s(IY(o,e=>{void 0===e.styles&&(e.styles={}),e.styles.google_analytics=t}))}})]})})})}function vQ(){return mc(FB,{gap:[5,6],children:[gc(oQ,{}),gc(pQ,{}),gc(uQ,{}),gc(hQ,{}),gc(mQ,{}),gc(iQ,{}),gc(gQ,{}),gc(nQ,{})]})}function bQ({channel:e}){const{widgetId:t}=VU(),[,n]=AH(qY),r=e=>{n(n=>({...n,channel_name:e,config:{channel_show_on:["desktop","mobile"],f_fields:"WooCommerce"===e?["number"]:[],open_window_action:"_blank",order_details:"WooCommerce"===e?["shipping_status","total_items","total_amount","billing_name","shipping_name"]:[],title:e.replaceAll("-"," ")},step:2,widget_id:t}))};return mc(cD,{_focusVisible:{boxShadow:"outline"},_hover:{shadow:"lg"},borderWidth:1,cursor:"pointer",onClick:()=>r(e.name),onKeyDown:t=>{"Enter"===t.key&&r(e.name)},outline:"none",position:"relative",px:"1",py:"2.5",rounded:"md",tabIndex:0,textAlign:"center",transition:"250ms",children:[!zq.IS_PRO&&["FAQ","Knowledge-Base","WooCommerce","WP-Search","Custom-Iframe","Crisp","Tawk","Intercom","Tidio"].includes(e.name)&&gc(eP,{background:"#00ff9c",borderRadius:"1rem",color:"#000",fontSize:"xs",fontWeight:"semibold",minWidth:"20px",mr:"1",mt:"1",position:"absolute",px:"1",right:"0",textAlign:"center",top:"0",children:__("Pro","bit-assist")}),mc(pc,{children:[gc(hD,{alt:e.name,h:"10",mx:"auto",src:e.icon,w:"10"}),gc(TF,{lineHeight:"1",marginTop:"2",children:e.name.replaceAll("-"," ")})]})]})}const yQ=[{icon:`${zq.ROOT_URL}/img/channel/custom-channel.svg`,name:"Custom-Channel"},{icon:`${zq.ROOT_URL}/img/channel/custom-iframe.svg`,name:"Custom-Iframe"},{icon:`${zq.ROOT_URL}/img/channel/calendly.svg`,name:"Calendly"},{icon:`${zq.ROOT_URL}/img/channel/call.svg`,name:"Call"},{icon:`${zq.ROOT_URL}/img/channel/crisp.svg`,name:"Crisp"},{icon:`${zq.ROOT_URL}/img/channel/custom-form.svg`,name:"Custom-Form"},{icon:`${zq.ROOT_URL}/img/channel/discord.svg`,name:"Discord"},{icon:`${zq.ROOT_URL}/img/channel/faq.svg`,name:"FAQ"},{icon:`${zq.ROOT_URL}/img/channel/google-map.svg`,name:"Google-Map"},{icon:`${zq.ROOT_URL}/img/channel/instagram.svg`,name:"Instagram"},{icon:`${zq.ROOT_URL}/img/channel/intercom.svg`,name:"Intercom"},{icon:`${zq.ROOT_URL}/img/channel/knowledge-base.svg`,name:"Knowledge-Base"},{icon:`${zq.ROOT_URL}/img/channel/line.svg`,name:"Line"},{icon:`${zq.ROOT_URL}/img/channel/linkedin.svg`,name:"Linkedin"},{icon:`${zq.ROOT_URL}/img/channel/messenger.svg`,name:"Messenger"},{icon:`${zq.ROOT_URL}/img/channel/pinterest.svg`,name:"Pinterest"},{icon:`${zq.ROOT_URL}/img/channel/signal.svg`,name:"Signal"},{icon:`${zq.ROOT_URL}/img/channel/slack.svg`,name:"Slack"},{icon:`${zq.ROOT_URL}/img/channel/sms.svg`,name:"SMS"},{icon:`${zq.ROOT_URL}/img/channel/snapchat.svg`,name:"Snapchat"},{icon:`${zq.ROOT_URL}/img/channel/tawk.svg`,name:"Tawk"},{icon:`${zq.ROOT_URL}/img/channel/telegram.svg`,name:"Telegram"},{icon:`${zq.ROOT_URL}/img/channel/tidio.svg`,name:"Tidio"},{icon:`${zq.ROOT_URL}/img/channel/tidycal.svg`,name:"Tidycal"},{icon:`${zq.ROOT_URL}/img/channel/tiktok.svg`,name:"TikTok"},{icon:`${zq.ROOT_URL}/img/channel/twitter.svg`,name:"Twitter"},{icon:`${zq.ROOT_URL}/img/channel/viber.svg`,name:"Viber"},{icon:`${zq.ROOT_URL}/img/channel/waze.svg`,name:"Waze"},{icon:`${zq.ROOT_URL}/img/channel/wechat.svg`,name:"WeChat"},{icon:`${zq.ROOT_URL}/img/channel/whatsapp.svg`,name:"Whatsapp"},{icon:`${zq.ROOT_URL}/img/channel/woocommerce.svg`,name:"WooCommerce"},{icon:`${zq.ROOT_URL}/img/channel/wp-search.svg`,name:"WP-Search"},{icon:`${zq.ROOT_URL}/img/channel/youtube.svg`,name:"Youtube"}],xQ=new Set(["Custom-Channel","Custom-Iframe"]);function wQ(){const[e,t]=K.exports.useState(""),n=K.exports.useMemo(()=>{const e=[...yQ].sort((e,t)=>e.name.localeCompare(t.name)),{custom:t,other:n}=e.reduce((e,t)=>(xQ.has(t.name)?e.custom.push(t):e.other.push(t),e),{custom:[],other:[]});return[...t,...n]},[]),r=K.exports.useMemo(()=>{if(!e.trim())return n;const t=e.toLowerCase().trim();return n.filter(e=>e.name.toLowerCase().includes(t))},[e,n]),o=K.exports.useCallback(e=>{t(e.target.value)},[]);return mc(UB,{spacing:"4",children:[gc(pD,{"aria-label":__("Search channels","bit-assist"),onChange:o,placeholder:__("Search","bit-assist"),value:e}),gc(sD,{gap:[2,3],gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",justifyContent:"center",w:"full",children:r.map(e=>gc(bQ,{channel:e},e.name))}),0===r.length&&gc(TF,{color:"gray.500",fontSize:"md",children:__("No item found.","bit-assist")})]})}function kQ(){var e;const[t,n]=AH(qY);return mc(jP,{children:[gc(iD,{children:__("Phone number","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`tel:${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})}function _Q(){var e;const[t,n]=AH(qY);return mc(jP,{children:[gc(iD,{children:__("On click open channel on","bit-assist")}),mc(_B,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.open_window_action=t});var t},placeholder:__("Select window action","bit-assist"),value:(null==(e=t.config)?void 0:e.open_window_action)||"",children:[gc("option",{value:"_blank",children:__("New Tab","bit-assist")}),gc("option",{value:"_parent",children:__("Current Tab","bit-assist")}),gc("option",{value:"new_window",children:__("New Window","bit-assist")})]})]})}function SQ(){var e,t;const[n,r]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Custom channel link","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void r(e=>{e.config.unique_id=t,e.config.url=t});var t},placeholder:"https://...",value:null!=(t=null==(e=n.config)?void 0:e.unique_id)?t:""})]}),gc(_Q,{})]})}const CQ="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function EQ(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function AQ(e){return"nodeType"in e}function OQ(e){var t,n;return e?EQ(e)?e:AQ(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function TQ(e){const{Document:t}=OQ(e);return e instanceof t}function NQ(e){return!EQ(e)&&e instanceof OQ(e).HTMLElement}function RQ(e){return e instanceof OQ(e).SVGElement}function PQ(e){return e?EQ(e)?e.document:AQ(e)?TQ(e)?e:NQ(e)||RQ(e)?e.ownerDocument:document:document:document}const MQ=CQ?K.exports.useLayoutEffect:K.exports.useEffect;function LQ(e){const t=K.exports.useRef(e);return MQ(()=>{t.current=e}),K.exports.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function DQ(e,t){void 0===t&&(t=[e]);const n=K.exports.useRef(e);return MQ(()=>{n.current!==e&&(n.current=e)},t),n}function IQ(e,t){const n=K.exports.useRef();return K.exports.useMemo(()=>{const t=e(n.current);return n.current=t,t},[...t])}function jQ(e){const t=LQ(e),n=K.exports.useRef(null),r=K.exports.useCallback(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function zQ(e){const t=K.exports.useRef();return K.exports.useEffect(()=>{t.current=e},[e]),t.current}let BQ={};function FQ(e,t){return K.exports.useMemo(()=>{if(t)return t;const n=null==BQ[e]?0:BQ[e]+1;return BQ[e]=n,e+"-"+n},[e,t])}function qQ(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((t,n)=>{const r=Object.entries(n);for(const[o,i]of r){const n=t[o];null!=n&&(t[o]=n+e*i)}return t},{...t})}}const UQ=qQ(1),WQ=qQ(-1);function $Q(e){if(!e)return!1;const{KeyboardEvent:t}=OQ(e.target);return t&&e instanceof t}function VQ(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=OQ(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const HQ=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[HQ.Translate.toString(e),HQ.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),YQ="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function GQ(e){return e.matches(YQ)?e:e.querySelector(YQ)}const KQ={display:"none"};function QQ(e){let{id:t,value:n}=e;return gc("div",{id:t,style:KQ,children:n})}function ZQ(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return gc("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0,children:n})}const XQ=K.exports.createContext(null);const JQ={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},eZ={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 tZ(e){let{announcements:t=eZ,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=JQ}=e;const{announce:i,announcement:a}=function(){const[e,t]=K.exports.useState("");return{announce:K.exports.useCallback(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=FQ("DndLiveRegion"),[l,c]=K.exports.useState(!1);if(K.exports.useEffect(()=>{c(!0)},[]),function(e){const t=K.exports.useContext(XQ);K.exports.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}(K.exports.useMemo(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t])),!l)return null;const u=mc(pc,{children:[gc(QQ,{id:r,value:o.draggable}),gc(ZQ,{id:s,announcement:a})]});return n?mx.exports.createPortal(u,n):u}var nZ;function rZ(){}function oZ(e,t){return K.exports.useMemo(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function iZ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return K.exports.useMemo(()=>[...t].filter(e=>null!=e),[...t])}!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"}(nZ||(nZ={}));const aZ=Object.freeze({x:0,y:0});function sZ(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function lZ(e,t){const n=VQ(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function cZ(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function uZ(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function dZ(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function fZ(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function hZ(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const pZ=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=hZ(t,t.left,t.top),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=sZ(hZ(t),o);i.push({id:e,data:{droppableContainer:a,value:n}})}}return i.sort(cZ)};function gZ(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const mZ=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:e}=i,r=n.get(e);if(r){const n=gZ(r,t);n>0&&o.push({id:e,data:{droppableContainer:i,value:n}})}}return o.sort(uZ)};function vZ(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:aZ}function bZ(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((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const yZ=bZ(1);function xZ(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]}}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}const wZ={ignoreTransform:!1};function kZ(e,t){void 0===t&&(t=wZ);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=OQ(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=xZ(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function _Z(e){return kZ(e,{ignoreTransform:!0})}function SZ(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(TQ(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!NQ(o)||RQ(o))return n;if(n.includes(o))return n;const i=OQ(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=OQ(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=OQ(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function CZ(e){const[t]=SZ(e,1);return null!=t?t:null}function EZ(e){return CQ&&e?EQ(e)?e:AQ(e)?TQ(e)||e===PQ(e).scrollingElement?window:NQ(e)?e:null:null:null}function AZ(e){return EQ(e)?e.scrollX:e.scrollLeft}function OZ(e){return EQ(e)?e.scrollY:e.scrollTop}function TZ(e){return{x:AZ(e),y:OZ(e)}}var NZ,RZ;function PZ(e){return!(!CQ||!e)&&e===document.scrollingElement}function MZ(e){const t={x:0,y:0},n=PZ(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(RZ=NZ||(NZ={}))[RZ.Forward=1]="Forward",RZ[RZ.Backward=-1]="Backward";const LZ={x:.2,y:.2};function DZ(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=LZ);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=MZ(e),h={x:0,y:0},p={x:0,y:0},g=t.height*o.y,m=t.width*o.x;return!c&&i<=t.top+g?(h.y=NZ.Backward,p.y=r*Math.abs((t.top+g-i)/g)):!u&&l>=t.bottom-g&&(h.y=NZ.Forward,p.y=r*Math.abs((t.bottom-g-l)/g)),!f&&s>=t.right-m?(h.x=NZ.Forward,p.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(h.x=NZ.Backward,p.x=r*Math.abs((t.left+m-a)/m)),{direction:h,speed:p}}function IZ(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}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 jZ(e){return e.reduce((e,t)=>UQ(e,TZ(t)),aZ)}function zZ(e,t){if(void 0===t&&(t=kZ),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);CZ(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const BZ=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+AZ(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+OZ(t),0)}]];class FZ{constructor(e,t){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 n=SZ(t),r=jZ(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,i,a]of BZ)for(const e of i)Object.defineProperty(this,e,{get:()=>{const t=a(n),i=r[o]-t;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class qZ{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function UZ(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?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}var WZ,$Z,VZ,HZ;function YZ(e){e.preventDefault()}function GZ(e){e.stopPropagation()}($Z=WZ||(WZ={})).Click="click",$Z.DragStart="dragstart",$Z.Keydown="keydown",$Z.ContextMenu="contextmenu",$Z.Resize="resize",$Z.SelectionChange="selectionchange",$Z.VisibilityChange="visibilitychange",(HZ=VZ||(VZ={})).Space="Space",HZ.Down="ArrowDown",HZ.Right="ArrowRight",HZ.Left="ArrowLeft",HZ.Up="ArrowUp",HZ.Esc="Escape",HZ.Enter="Enter",HZ.Tab="Tab";const KZ={start:[VZ.Space,VZ.Enter],cancel:[VZ.Esc],end:[VZ.Space,VZ.Enter,VZ.Tab]},QZ=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case VZ.Right:return{...n,x:n.x+25};case VZ.Left:return{...n,x:n.x-25};case VZ.Down:return{...n,y:n.y+25};case VZ.Up:return{...n,y:n.y-25}}};class ZZ{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new qZ(PQ(t)),this.windowListeners=new qZ(OQ(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(WZ.Resize,this.handleCancel),this.windowListeners.add(WZ.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(WZ.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&zZ(n),t(aZ)}handleKeyDown(e){if($Q(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=KZ,coordinateGetter:i=QZ,scrollBehavior:a="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:aZ;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=WQ(u,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=MZ(n),h=IZ(n),p={x:Math.min(o===VZ.Right?h.right-h.width/2:h.right,Math.max(o===VZ.Right?h.left:h.left+h.width/2,u.x)),y:Math.min(o===VZ.Down?h.bottom-h.height/2:h.bottom,Math.max(o===VZ.Down?h.top:h.top+h.height/2,u.y))},g=o===VZ.Right&&!s||o===VZ.Left&&!l,m=o===VZ.Down&&!c||o===VZ.Up&&!i;if(g&&p.x!==u.x){const e=n.scrollLeft+t.x,i=o===VZ.Right&&e<=d.x||o===VZ.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===VZ.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&p.y!==u.y){const e=n.scrollTop+t.y,i=o===VZ.Down&&e<=d.y||o===VZ.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===VZ.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,UQ(WQ(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function XZ(e){return Boolean(e&&"distance"in e)}function JZ(e){return Boolean(e&&"delay"in e)}ZZ.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=KZ,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class eX{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=OQ(e);return e instanceof t?e:PQ(e)}(e.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=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=PQ(i),this.documentListeners=new qZ(this.document),this.listeners=new qZ(n),this.windowListeners=new qZ(OQ(i)),this.initialCoordinates=null!=(r=VQ(o))?r:aZ,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:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(WZ.Resize,this.handleCancel),this.windowListeners.add(WZ.DragStart,YZ),this.windowListeners.add(WZ.VisibilityChange,this.handleCancel),this.windowListeners.add(WZ.ContextMenu,YZ),this.documentListeners.add(WZ.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(JZ(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(XZ(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(WZ.Click,GZ,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(WZ.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const s=null!=(t=VQ(e))?t:aZ,l=WQ(r,s);if(!n&&a){if(XZ(a)){if(null!=a.tolerance&&UZ(l,a.tolerance))return this.handleCancel();if(UZ(l,a.distance))return this.handleStart()}return JZ(a)&&UZ(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===VZ.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const tX={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class nX extends eX{constructor(e){const{event:t}=e,n=PQ(t.target);super(e,tX,n)}}nX.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const rX={move:{name:"mousemove"},end:{name:"mouseup"}};var oX,iX;(iX=oX||(oX={}))[iX.RightClick=2]="RightClick";(class extends eX{constructor(e){super(e,rX,PQ(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==oX.RightClick&&(null==r||r({event:n}),!0)}}];const aX={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var sX,lX,cX,uX;function dX(e){let{acceleration:t,activator:n=sX.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=cX.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=zQ(t);return IQ(e=>{if(n||!r||!e)return fX;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[NZ.Backward]:e.x[NZ.Backward]||-1===o.x,[NZ.Forward]:e.x[NZ.Forward]||1===o.x},y:{[NZ.Backward]:e.y[NZ.Backward]||-1===o.y,[NZ.Forward]:e.y[NZ.Forward]||1===o.y}}},[n,t,r])}({delta:d,disabled:!i}),[p,g]=function(){const e=K.exports.useRef(null);return[K.exports.useCallback((t,n)=>{e.current=setInterval(t,n)},[]),K.exports.useCallback(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),m=K.exports.useRef({x:0,y:0}),v=K.exports.useRef({x:0,y:0}),b=K.exports.useMemo(()=>{switch(n){case sX.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case sX.DraggableRect:return o}},[n,o,l]),y=K.exports.useRef(null),x=K.exports.useCallback(()=>{const e=y.current;if(!e)return;const t=m.current.x*v.current.x,n=m.current.y*v.current.y;e.scrollBy(t,n)},[]),w=K.exports.useMemo(()=>s===cX.TreeOrder?[...c].reverse():c,[s,c]);K.exports.useEffect(()=>{if(i&&c.length&&b){for(const e of w){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),o=u[n];if(!o)continue;const{direction:i,speed:s}=DZ(e,o,b,t,f);for(const e of["x","y"])h[e][i[e]]||(s[e]=0,i[e]=0);if(s.x>0||s.y>0)return g(),y.current=e,p(x,a),m.current=s,void(v.current=i)}m.current={x:0,y:0},v.current={x:0,y:0},g()}else g()},[t,x,r,g,i,a,JSON.stringify(b),JSON.stringify(h),p,c,w,u,JSON.stringify(f)])}(class extends eX{constructor(e){super(e,aX)}static setup(){return window.addEventListener(aX.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(aX.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],(lX=sX||(sX={}))[lX.Pointer=0]="Pointer",lX[lX.DraggableRect=1]="DraggableRect",(uX=cX||(cX={}))[uX.TreeOrder=0]="TreeOrder",uX[uX.ReversedTreeOrder=1]="ReversedTreeOrder";const fX={x:{[NZ.Backward]:!1,[NZ.Forward]:!1},y:{[NZ.Backward]:!1,[NZ.Forward]:!1}};var hX,pX,gX;(pX=hX||(hX={}))[pX.Always=0]="Always",pX[pX.BeforeDragging=1]="BeforeDragging",pX[pX.WhileDragging=2]="WhileDragging",(gX||(gX={})).Optimized="optimized";const mX=new Map;function vX(e,t){return IQ(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function bX(e){let{callback:t,disabled:n}=e;const r=LQ(t),o=K.exports.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return K.exports.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function yX(e){return new FZ(kZ(e),e)}function xX(e,t,n){void 0===t&&(t=yX);const[r,o]=K.exports.useState(null);function i(){o(r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}const a=function(e){let{callback:t,disabled:n}=e;const r=LQ(t),o=K.exports.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return K.exports.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),s=bX({callback:i});return MQ(()=>{i(),e?(null==s||s.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())},[e]),r}const wX=[];function kX(e,t){void 0===t&&(t=[]);const n=K.exports.useRef(null);return K.exports.useEffect(()=>{n.current=null},t),K.exports.useEffect(()=>{const t=e!==aZ;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?WQ(e,n.current):aZ}function _X(e){return K.exports.useMemo(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const SX=[];function CX(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return NQ(t)?t:e}const EX=[{sensor:nX,options:{}},{sensor:ZZ,options:{}}],AX={current:{}},OX={draggable:{measure:_Z},droppable:{measure:_Z,strategy:hX.WhileDragging,frequency:gX.Optimized},dragOverlay:{measure:kZ}};class TX extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const NX={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new TX,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:rZ},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:OX,measureDroppableContainers:rZ,windowRect:null,measuringScheduled:!1},RX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:rZ,draggableNodes:new Map,over:null,measureDroppableContainers:rZ},PX=K.exports.createContext(RX),MX=K.exports.createContext(NX);function LX(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new TX}}}function DX(e,t){switch(t.type){case nZ.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case nZ.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case nZ.DragEnd:case nZ.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case nZ.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new TX(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case nZ.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new TX(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case nZ.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new TX(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function IX(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=K.exports.useContext(PX),i=zQ(r),a=zQ(null==n?void 0:n.id);return K.exports.useEffect(()=>{if(!t&&!r&&i&&null!=a){if(!$Q(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=GQ(e);if(t){t.focus();break}}})}},[r,t,o,a,i]),null}function jX(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}const zX=K.exports.createContext({...aZ,scaleX:1,scaleY:1});var BX,FX;(FX=BX||(BX={}))[FX.Uninitialized=0]="Uninitialized",FX[FX.Initializing=1]="Initializing",FX[FX.Initialized=2]="Initialized";const qX=K.exports.memo(function(e){var t,n,r,o;let{id:i,accessibility:a,autoScroll:s=!0,children:l,sensors:c=EX,collisionDetection:u=mZ,measuring:d,modifiers:f,...h}=e;const p=K.exports.useReducer(DX,void 0,LX),[g,m]=p,[v,b]=function(){const[e]=K.exports.useState(()=>new Set),t=K.exports.useCallback(t=>(e.add(t),()=>e.delete(t)),[e]);return[K.exports.useCallback(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[y,x]=K.exports.useState(BX.Uninitialized),w=y===BX.Initialized,{draggable:{active:k,nodes:_,translate:S},droppable:{containers:C}}=g,E=null!=k?_.get(k):null,A=K.exports.useRef({initial:null,translated:null}),O=K.exports.useMemo(()=>{var e;return null!=k?{id:k,data:null!=(e=null==E?void 0:E.data)?e:AX,rect:A}:null},[k,E]),T=K.exports.useRef(null),[N,R]=K.exports.useState(null),[P,M]=K.exports.useState(null),L=DQ(h,Object.values(h)),D=FQ("DndDescribedBy",i),I=K.exports.useMemo(()=>C.getEnabled(),[C]),j=(z=d,K.exports.useMemo(()=>({draggable:{...OX.draggable,...null==z?void 0:z.draggable},droppable:{...OX.droppable,...null==z?void 0:z.droppable},dragOverlay:{...OX.dragOverlay,...null==z?void 0:z.dragOverlay}}),[null==z?void 0:z.draggable,null==z?void 0:z.droppable,null==z?void 0:z.dragOverlay]));var z;const{droppableRects:B,measureDroppableContainers:F,measuringScheduled:q}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=K.exports.useState(null),{frequency:s,measure:l,strategy:c}=o,u=K.exports.useRef(e),d=function(){switch(c){case hX.Always:return!1;case hX.BeforeDragging:return n;default:return!n}}(),f=DQ(d),h=K.exports.useCallback(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=K.exports.useRef(null),g=IQ(t=>{if(d&&!n)return mX;if(!t||t===mX||u.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new FZ(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,d,l]);return K.exports.useEffect(()=>{u.current=e},[e]),K.exports.useEffect(()=>{d||h()},[n,d]),K.exports.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),K.exports.useEffect(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:null!=i}}(I,{dragging:w,dependencies:[S.x,S.y],config:j.droppable}),U=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return IQ(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(_,k),W=K.exports.useMemo(()=>P?VQ(P):null,[P]),$=function(){const e=!1===(null==N?void 0:N.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,n=w&&!e&&!t;if("object"==typeof s)return{...s,enabled:n};return{enabled:n}}(),V=function(e,t){return vX(e,t)}(U,j.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=K.exports.useRef(!1),{x:a,y:s}="boolean"==typeof o?{x:o,y:o}:o;MQ(()=>{if(!a&&!s||!t)return void(i.current=!1);if(i.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=vZ(n(e),r);if(a||(o.x=0),s||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=CZ(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,a,s,r,n])}({activeNode:null!=k?_.get(k):null,config:$.layoutShiftCompensation,initialRect:V,measure:j.draggable.measure});const H=xX(U,j.draggable.measure,V),Y=xX(U?U.parentElement:null),G=K.exports.useRef({activatorEvent:null,active:null,activeNode:U,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=C.getNodeFor(null==(t=G.current.over)?void 0:t.id),Z=function(e){let{measure:t}=e;const[n,r]=K.exports.useState(null),o=bX({callback:K.exports.useCallback(e=>{for(const{target:n}of e)if(NQ(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),i=K.exports.useCallback(e=>{const n=CX(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)},[t,o]),[a,s]=jQ(i);return K.exports.useMemo(()=>({nodeRef:a,rect:n,setRef:s}),[n,a,s])}({measure:j.dragOverlay.measure}),X=null!=(n=Z.nodeRef.current)?n:U,J=w?null!=(r=Z.rect)?r:H:null,ee=Boolean(Z.nodeRef.current&&Z.rect),te=vZ(ne=ee?null:H,vX(ne));var ne;const re=_X(X?OQ(X):null),oe=function(e){const t=K.exports.useRef(e),n=IQ(n=>e?n&&n!==wX&&e&&t.current&&e.parentNode===t.current.parentNode?n:SZ(e):wX,[e]);return K.exports.useEffect(()=>{t.current=e},[e]),n}(w?null!=Q?Q:U:null),ie=function(e,t){void 0===t&&(t=kZ);const[n]=e,r=_X(n?OQ(n):null),[o,i]=K.exports.useState(SX);function a(){i(()=>e.length?e.map(e=>PZ(e)?r:new FZ(t(e),e)):SX)}const s=bX({callback:a});return MQ(()=>{null==s||s.disconnect(),a(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),o}(oe),ae=jX(f,{transform:{x:S.x-te.x,y:S.y-te.y,scaleX:1,scaleY:1},activatorEvent:P,active:O,activeNodeRect:H,containerNodeRect:Y,draggingNodeRect:J,over:G.current.over,overlayNodeRect:Z.rect,scrollableAncestors:oe,scrollableAncestorRects:ie,windowRect:re}),se=W?UQ(W,S):null,le=function(e){const[t,n]=K.exports.useState(null),r=K.exports.useRef(e),o=K.exports.useCallback(e=>{const t=EZ(e.target);t&&n(e=>e?(e.set(t,TZ(t)),new Map(e)):null)},[]);return K.exports.useEffect(()=>{const t=r.current;if(e!==t){i(t);const a=e.map(e=>{const t=EZ(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,TZ(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{const t=EZ(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),K.exports.useMemo(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>UQ(e,t),aZ):jZ(e):aZ,[e,t])}(oe),ce=kX(le),ue=kX(le,[H]),de=UQ(ae,ce),fe=J?yZ(J,ae):null,he=O&&fe?u({active:O,collisionRect:fe,droppableRects:B,droppableContainers:I,pointerCoordinates:se}):null,pe=fZ(he,"id"),[ge,me]=K.exports.useState(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:UQ(ae,ue),null!=(o=null==ge?void 0:ge.rect)?o:null,H),be=K.exports.useRef(null),ye=K.exports.useCallback((e,t)=>{let{sensor:n,options:r}=t;if(null==T.current)return;const o=_.get(T.current);if(!o)return;const i=e.nativeEvent,a=new n({active:T.current,activeNode:o,event:i,options:r,context:G,onAbort(e){if(!_.get(e))return;const{onDragAbort:t}=L.current,n={id:e};null==t||t(n),v({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!_.get(e))return;const{onDragPending:o}=L.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),v({type:"onDragPending",event:i})},onStart(e){const t=T.current;if(null==t)return;const n=_.get(t);if(!n)return;const{onDragStart:r}=L.current,o={activatorEvent:i,active:{id:t,data:n.data,rect:A}};mx.exports.unstable_batchedUpdates(()=>{null==r||r(o),x(BX.Initializing),m({type:nZ.DragStart,initialCoordinates:e,active:t}),v({type:"onDragStart",event:o}),R(be.current),M(i)})},onMove(e){m({type:nZ.DragMove,coordinates:e})},onEnd:s(nZ.DragEnd),onCancel:s(nZ.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=G.current;let a=null;if(t&&o){const{cancelDrop:s}=L.current;if(a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===nZ.DragEnd&&"function"==typeof s){await Promise.resolve(s(a))&&(e=nZ.DragCancel)}}T.current=null,mx.exports.unstable_batchedUpdates(()=>{m({type:e}),x(BX.Uninitialized),me(null),R(null),M(null),be.current=null;const t=e===nZ.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=L.current[t];null==e||e(a),v({type:t,event:a})}})}}be.current=a},[_]),xe=function(e,t){return K.exports.useMemo(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(c,K.exports.useCallback((e,t)=>(n,r)=>{const o=n.nativeEvent,i=_.get(r);if(null!==T.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},T.current=r,ye(n,t))},[_,ye]));!function(e){K.exports.useEffect(()=>{if(!CQ)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),MQ(()=>{H&&y===BX.Initializing&&x(BX.Initialized)},[H,y]),K.exports.useEffect(()=>{const{onDragMove:e}=L.current,{active:t,activatorEvent:n,collisions:r,over:o}=G.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};mx.exports.unstable_batchedUpdates(()=>{null==e||e(i),v({type:"onDragMove",event:i})})},[de.x,de.y]),K.exports.useEffect(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=G.current;if(!e||null==T.current||!t||!o)return;const{onDragOver:i}=L.current,a=r.get(pe),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};mx.exports.unstable_batchedUpdates(()=>{me(s),null==i||i(l),v({type:"onDragOver",event:l})})},[pe]),MQ(()=>{G.current={activatorEvent:P,active:O,activeNode:U,collisionRect:fe,collisions:he,droppableRects:B,draggableNodes:_,draggingNode:X,draggingNodeRect:J,droppableContainers:C,over:ge,scrollableAncestors:oe,scrollAdjustedTranslate:de},A.current={initial:J,translated:fe}},[O,U,he,fe,_,X,J,B,C,ge,oe,de]),dX({...$,delta:S,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:oe,scrollableAncestorRects:ie});const we=K.exports.useMemo(()=>({active:O,activeNode:U,activeNodeRect:H,activatorEvent:P,collisions:he,containerNodeRect:Y,dragOverlay:Z,draggableNodes:_,droppableContainers:C,droppableRects:B,over:ge,measureDroppableContainers:F,scrollableAncestors:oe,scrollableAncestorRects:ie,measuringConfiguration:j,measuringScheduled:q,windowRect:re}),[O,U,H,P,he,Y,Z,_,C,B,ge,F,oe,ie,j,q,re]),ke=K.exports.useMemo(()=>({activatorEvent:P,activators:xe,active:O,activeNodeRect:H,ariaDescribedById:{draggable:D},dispatch:m,draggableNodes:_,over:ge,measureDroppableContainers:F}),[P,xe,O,H,m,D,_,ge,F]);return mc(XQ.Provider,{value:b,children:[mc(PX.Provider,{value:ke,children:[gc(MX.Provider,{value:we,children:gc(zX.Provider,{value:ve,children:l})}),gc(IX,{disabled:!1===(null==a?void 0:a.restoreFocus)})]}),gc(tZ,{...a,hiddenTextDescribedById:D})]})}),UX=K.exports.createContext(null),WX="button";function $X(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=FQ("Draggable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=K.exports.useContext(PX),{role:h=WX,roleDescription:p="draggable",tabIndex:g=0}=null!=o?o:{},m=(null==l?void 0:l.id)===t,v=K.exports.useContext(m?zX:UX),[b,y]=jQ(),[x,w]=jQ(),k=function(e,t){return K.exports.useMemo(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(a,t),_=DQ(n);MQ(()=>(d.set(t,{id:t,key:i,node:b,activatorNode:x,data:_}),()=>{const e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:K.exports.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!m||h!==WX)||void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,h,g,m,p,u.draggable]),isDragging:m,listeners:r?void 0:k,node:b,over:f,setNodeRef:y,setActivatorNodeRef:w,transform:v}}function VX(){return K.exports.useContext(MX)}const HX={timeout:25};function YX(e){let{animation:t,children:n}=e;const[r,o]=K.exports.useState(null),[i,a]=K.exports.useState(null),s=zQ(n);return n||r||!s||o(s),MQ(()=>{if(!i)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,i)).then(()=>{o(null)}):o(null)},[t,r,i]),mc(pc,{children:[n,r?K.exports.cloneElement(r,{ref:a}):null]})}const GX={x:0,y:0,scaleX:1,scaleY:1};function KX(e){let{children:t}=e;return gc(PX.Provider,{value:RX,children:gc(zX.Provider,{value:GX,children:t})})}const QX={position:"fixed",touchAction:"none"},ZX=e=>$Q(e)?"transform 250ms ease":void 0,XX=K.exports.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:i,className:a,rect:s,style:l,transform:c,transition:u=ZX}=e;if(!s)return null;const d=o?c:{...c,scaleX:1,scaleY:1},f={...QX,width:s.width,height:s.height,top:s.top,left:s.left,transform:HQ.Transform.toString(d),transformOrigin:o&&r?lZ(r,s):void 0,transition:"function"==typeof u?u(r):u,...l};return Re.createElement(n,{className:a,style:f,ref:t},i)}),JX=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,s]of Object.entries(i.active))void 0!==s&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,s));if(null!=i&&i.dragOverlay)for(const[e,s]of Object.entries(i.dragOverlay))void 0!==s&&r.node.style.setProperty(e,s);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},eJ={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:HQ.Transform.toString(t)},{transform:HQ.Transform.toString(n)}]},sideEffects:JX({styles:{active:{opacity:"0"}}})};function tJ(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return LQ((e,i)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=CX(i);if(!l)return;const{transform:c}=OQ(i).getComputedStyle(i),u=xZ(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...eJ,...e};return e=>{let{active:i,dragOverlay:a,transform:s,...l}=e;if(!t)return;const c={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},u={scaleX:1!==s.scaleX?i.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?i.rect.height*s.scaleY/a.rect.height:1},d={x:s.x-c.x,y:s.y-c.y,...u},f=o({...l,active:i,dragOverlay:a,transform:{initial:s,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;const g=null==r?void 0:r({active:i,dragOverlay:a,...l}),m=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{m.onfinish=()=>{null==g||g(),e()}})}}(t);return zZ(s,o.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:o,transform:u})})}let nJ=0;const rJ=Re.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:i,modifiers:a,wrapperElement:s="div",className:l,zIndex:c=999}=e;const{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:v,measuringConfiguration:b,scrollableAncestors:y,scrollableAncestorRects:x,windowRect:w}=VX(),k=K.exports.useContext(zX),_=(S=null==d?void 0:d.id,K.exports.useMemo(()=>{if(null!=S)return nJ++,nJ},[S]));var S;const C=jX(a,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:v,overlayNodeRect:m.rect,scrollableAncestors:y,scrollableAncestorRects:x,transform:k,windowRect:w}),E=vX(f),A=tJ({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),O=E?m.setRef:void 0;return gc(KX,{children:gc(YX,{animation:A,children:d&&_?gc(XX,{id:d.id,ref:O,as:s,activatorEvent:u,adjustScale:t,className:l,transition:i,rect:E,style:{zIndex:c,...o},transform:C,children:n},_):null})})});function oJ(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function iJ(e,t){return e.reduce((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e},Array(e.length))}function aJ(e){return null!==e&&e>=0}const sJ=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=oJ(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},lJ={scaleX:1,scaleY:1},cJ=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const s=null!=(t=i[n])?t:r;if(!s)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top,...lJ}:null}const l=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-s.height-l,...lJ}:o<n&&o>=a?{x:0,y:s.height+l,...lJ}:{x:0,y:0,...lJ}};const uJ="Sortable",dJ=Re.createContext({activeIndex:-1,containerId:uJ,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:sJ,disabled:{draggable:!1,droppable:!1}});function fJ(e){let{children:t,id:n,items:r,strategy:o=sJ,disabled:i=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=VX(),d=FQ(uJ,n),f=Boolean(null!==s.rect),h=K.exports.useMemo(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),p=null!=a,g=a?h.indexOf(a.id):-1,m=c?h.indexOf(c.id):-1,v=K.exports.useRef(h),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,v.current),y=-1!==m&&-1===g||b,x=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);MQ(()=>{b&&p&&u(h)},[b,h,p,u]),K.exports.useEffect(()=>{v.current=h},[h]);const w=K.exports.useMemo(()=>({activeIndex:g,containerId:d,disabled:x,disableTransforms:y,items:h,overIndex:m,useDragOverlay:f,sortedRects:iJ(h,l),strategy:o}),[g,d,x.draggable,x.droppable,y,h,m,l,f,o]);return gc(dJ.Provider,{value:w,children:t})}const hJ=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return oJ(n,r,o).indexOf(t)},pJ=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r)&&((s===i||o!==a)&&(!!n||a!==o&&t===l))},gJ={duration:200,easing:"ease"},mJ="transform",vJ=HQ.Transition.toString({property:mJ,duration:0,easing:"linear"}),bJ={roleDescription:"sortable"};function yJ(e){let{animateLayoutChanges:t=pJ,attributes:n,disabled:r,data:o,getNewIndex:i=hJ,id:a,strategy:s,resizeObserverConfig:l,transition:c=gJ}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:v,strategy:b}=K.exports.useContext(dJ),y=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,h),x=u.indexOf(a),w=K.exports.useMemo(()=>({sortable:{containerId:d,index:x,items:u},...o}),[d,o,x,u]),k=K.exports.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:_,node:S,isOver:C,setNodeRef:E}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=FQ("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=K.exports.useContext(PX),u=K.exports.useRef({disabled:n}),d=K.exports.useRef(!1),f=K.exports.useRef(null),h=K.exports.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...HX,...o},v=DQ(null!=g?g:r),b=bX({callback:K.exports.useCallback(()=>{d.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(v.current)?v.current:[v.current]),h.current=null},m)):d.current=!0},[m]),disabled:p||!a}),y=K.exports.useCallback((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))},[b]),[x,w]=jQ(y),k=DQ(t);return K.exports.useEffect(()=>{b&&x.current&&(b.disconnect(),d.current=!1,b.observe(x.current))},[x,b]),K.exports.useEffect(()=>(s({type:nZ.RegisterDroppable,element:{id:r,key:i,disabled:n,node:x,rect:f,data:k}}),()=>s({type:nZ.UnregisterDroppable,key:i,id:r})),[r]),K.exports.useEffect(()=>{n!==u.current.disabled&&(s({type:nZ.SetDroppableDisabled,id:r,key:i,disabled:n}),u.current.disabled=n)},[r,i,n,s]),{active:a,rect:f,isOver:(null==l?void 0:l.id)===r,node:x,over:l,setNodeRef:w}}({id:a,data:w,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:k,...l}}),{active:A,activatorEvent:O,activeNodeRect:T,attributes:N,setNodeRef:R,listeners:P,isDragging:M,over:L,setActivatorNodeRef:D,transform:I}=$X({id:a,data:w,attributes:{...bJ,...n},disabled:y.draggable}),j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return K.exports.useMemo(()=>e=>{t.forEach(t=>t(e))},t)}(E,R),z=Boolean(A),B=z&&!p&&aJ(f)&&aJ(m),F=!v&&M,q=F&&B?I:null,U=B?null!=q?q:(null!=s?s:b)({rects:g,activeNodeRect:T,activeIndex:f,overIndex:m,index:x}):null,W=aJ(f)&&aJ(m)?i({id:a,items:u,activeIndex:f,overIndex:m}):x,$=null==A?void 0:A.id,V=K.exports.useRef({activeId:$,items:u,newIndex:W,containerId:d}),H=u!==V.current.items,Y=t({active:A,containerId:d,isDragging:M,isSorting:z,id:a,index:x,items:u,newIndex:V.current.newIndex,previousItems:V.current.items,previousContainerId:V.current.containerId,transition:c,wasDragging:null!=V.current.activeId}),G=function(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=K.exports.useState(null),s=K.exports.useRef(n);return MQ(()=>{if(!t&&n!==s.current&&r.current){const e=o.current;if(e){const t=kZ(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==s.current&&(s.current=n)},[t,n,r,o]),K.exports.useEffect(()=>{i&&a(null)},[i]),i}({disabled:!Y,index:x,node:S,rect:_});return K.exports.useEffect(()=>{z&&V.current.newIndex!==W&&(V.current.newIndex=W),d!==V.current.containerId&&(V.current.containerId=d),u!==V.current.items&&(V.current.items=u)},[z,W,d,u]),K.exports.useEffect(()=>{if($===V.current.activeId)return;if($&&!V.current.activeId)return void(V.current.activeId=$);const e=setTimeout(()=>{V.current.activeId=$},50);return()=>clearTimeout(e)},[$]),{active:A,activeIndex:f,attributes:N,data:w,rect:_,index:x,newIndex:W,items:u,isOver:C,isSorting:z,isDragging:M,listeners:P,node:S,overIndex:m,over:L,setNodeRef:j,setActivatorNodeRef:D,setDroppableNodeRef:E,setDraggableNodeRef:R,transform:null!=G?G:U,transition:function(){if(G||H&&V.current.newIndex===x)return vJ;if(F&&!$Q(O)||!c)return;if(z||Y)return HQ.Transition.toString({...c,property:mJ});return}()}}function xJ(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const wJ=[VZ.Down,VZ.Right,VZ.Up,VZ.Left],kJ=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:s}}=t;if(wJ.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case VZ.Down:r.top<i.top&&t.push(n);break;case VZ.Up:r.top>i.top&&t.push(n);break;case VZ.Left:r.left>i.left&&t.push(n);break;case VZ.Right:r.left<i.left&&t.push(n)}});const l=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=dZ(t),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=dZ(t),r=o.reduce((e,t,r)=>e+sZ(n[r],t),0),s=Number((r/4).toFixed(4));i.push({id:e,data:{droppableContainer:a,value:s}})}}return i.sort(cZ)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let c=fZ(l,"id");if(c===(null==a?void 0:a.id)&&l.length>1&&(c=l[1].id),null!=c){const e=i.get(n.id),t=i.get(c),a=t?o.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&a&&e&&t){const n=SZ(l).some((e,t)=>s[t]!==e),o=_J(e,t),i=function(e,t){if(!xJ(e)||!xJ(t))return!1;if(!_J(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return c.x&&c.y?u:WQ(u,c)}}}};function _J(e,t){return!(!xJ(e)||!xJ(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}function SJ({field:e,handleChange:t,id:n}){return gc(UB,{alignItems:"flex-start",w:"full",children:mc(jP,{alignItems:"center",display:"flex",children:[gc(iD,{fontSize:"sm",mb:"0",children:__("Allow Multiple","bit-assist")}),gc(WB,{colorScheme:"purple",isChecked:!!(null==e?void 0:e.allow_multiple),onChange:e=>t(e.target.checked,"allow_multiple",n)})]})})}function CJ({handleChange:e,id:t,type:n}){return gc(bB,{colorScheme:"purple",onChange:n=>e(n,"rating_type",t),value:n,children:mc(FB,{direction:"row",spacing:4,children:[gc(wB,{isRequired:!0,value:"star",children:__("Star","bit-assist")}),gc(wB,{value:"smiley",children:__("Smiley","bit-assist")})]})})}function EJ({bg:e="none",cursor:t="grab",field:n,id:r}){const[,o]=AH(qY),i=Ad("white","gray.700"),{attributes:a,isDragging:s,listeners:l,setNodeRef:c,transform:u,transition:d}=yJ({id:(null==n?void 0:n.id)||0}),f={opacity:s?.4:1,touchAction:"pinch-zoom",transform:HQ.Transform.toString(u),transition:d},h=(e,t,n)=>{o(r=>{var o,i;const a=[...(null==(i=null==(o=r.config)?void 0:o.card_config)?void 0:i.form_fields)||[]];a[n]={...a[n],[t]:e},r.config.card_config={...r.config.card_config,form_fields:a}})};return mc(qB,{ref:c,style:f,w:"full",children:[mc(qB,{bg:i,borderWidth:1,p:"2",rounded:"md",shadow:"base",w:"full",children:[gc(iM,{...l,...a,alignItems:"center",bg:e,cursor:t,h:8,justifyContent:"center",rounded:"sm",w:6,children:gc(QK,{"aria-label":__("draggable button","bit-assist")})}),mc(eP,{w:"full",children:[mc(qB,{alignItems:"flex-start",justifyContent:"space-between",children:[mc(TF,{fontWeight:500,mb:"2",children:[(null==n?void 0:n.field_type)&&`${null==n?void 0:n.field_type.charAt(0).toUpperCase()}${null==n?void 0:n.field_type.slice(1)}`," ",__("Field","bit-assist"),!(null==n?void 0:n.required)&&mc(TF,{color:"gray.400",display:"inline",children:["  (",__("Optional","bit-assist"),")"]})]}),mc(qB,{alignItems:"center",children:[gc(TF,{children:__("Required","bit-assist")}),gc(WB,{colorScheme:"purple",isChecked:(null==n?void 0:n.required)||!1,onChange:e=>h(e.target.checked,"required",r)})]})]}),mc(UB,{alignItems:"flex-start",children:[gc(pD,{onChange:e=>h(e.target.value,"label",r),placeholder:__("label","bit-assist"),value:null==n?void 0:n.label}),"GDPR"===(null==n?void 0:n.field_type)&&gc(pD,{onChange:e=>h(e.target.value,"url",r),placeholder:__("url","bit-assist"),value:null==n?void 0:n.url}),"rating"===(null==n?void 0:n.field_type)&&gc(CJ,{handleChange:h,id:r,type:null==n?void 0:n.rating_type}),"file"===(null==n?void 0:n.field_type)&&gc(SJ,{field:n,handleChange:h,id:r})]})]})]}),gc(eP,{children:gc(uP,{"aria-label":__("Delete","bit-assist"),icon:gc(FW,{}),isRound:!0,onClick:()=>{return e=r,void o(t=>{var n,r,o;null==(o=null==(r=null==(n=t.config)?void 0:n.card_config)?void 0:r.form_fields)||o.splice(e,1)});var e},size:"sm"})})]})}function AJ(){const[e,t]=AH(qY);return gc(eP,{children:mc(jP,{children:[mc(iM,{alignItems:"center",children:[gc(iD,{mb:"0",children:__("Store Responses","bit-assist")}),gc(WB,{colorScheme:"purple",isChecked:!!e.config.store_responses,ml:"2",onChange:async e=>{t(t=>{t.config.store_responses=e.target.checked})}})]}),gc(zP,{children:__("Store form submit data in response list.","bit-assist")})]})})}const OJ=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?function(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(r,n,t):r},TJ=e=>{let{transform:t}=e;return{...t,x:0}};function NJ({bg:e,color:t}){var n,r,o,i;const[a,s]=AH(qY);K.exports.useEffect(()=>{var n,r;void 0===(null==(r=null==(n=a.config)?void 0:n.card_config)?void 0:r.card_bg_color)&&s(n=>{var r;void 0===(null==(r=n.config)?void 0:r.card_config)&&(n.config.card_config={}),n.config.card_config.card_bg_color=LV(e),n.config.card_config.card_text_color=LV(t)})},[]);const l=(e,t)=>{s(n=>{n.config.card_config={...n.config.card_config,[t]:e}})};return mc(FB,{flexDirection:["column","row"],gap:"2",spacing:"0",w:"full",children:[mc(jP,{children:[gc(iD,{children:__("Form Theme Color","bit-assist")}),gc(bK,{color:null==(r=null==(n=a.config)?void 0:n.card_config)?void 0:r.card_bg_color,handleChange:e=>l(e,"card_bg_color"),handleClose:()=>{}})]}),mc(jP,{children:[gc(iD,{children:__("Form Text Color","bit-assist")}),gc(bK,{color:null==(i=null==(o=a.config)?void 0:o.card_config)?void 0:i.card_text_color,handleChange:e=>l(e,"card_text_color"),handleClose:()=>{}})]})]})}function RJ(){var e,t,n,r,o,i,a,s,l,c,u,d,f;const[h,p]=AH(qY),[g,m]=K.exports.useState(0),v=Ad("gray.100","gray.500"),{isOpen:b,onClose:y,onOpen:x}=st();K.exports.useEffect(()=>{var e;void 0===(null==(e=h.config)?void 0:e.store_responses)&&p(e=>{var t;void 0===(null==(t=e.config)?void 0:t.card_config)&&(e.config.card_config={}),e.config.store_responses=!0})},[]);const w=iZ(oZ(nX),oZ(ZZ,{coordinateGetter:kJ})),k=e=>{var t,n,r,o;if(""===e)return;const i=(null==(o=null==(r=null==(n=null==(t=h.config)?void 0:t.card_config)?void 0:n.form_fields)?void 0:r.filter(t=>t.field_type===e))?void 0:o.length)||0;p(t=>{var n,r,o,a;void 0===(null==(r=null==(n=t.config)?void 0:n.card_config)?void 0:r.form_fields)&&(t.config.card_config={...t.config.card_config,form_fields:[]}),t.config.card_config.maxId=(t.config.card_config.maxId||0)+1;const s={field_type:e,id:t.config.card_config.maxId||0,label:`${e.charAt(0).toUpperCase()+e.slice(1)}${0==i?"":` ${i+1}`}`,required:!0};"rating"===e&&Object.assign(s,{rating_type:"star"}),null==(a=null==(o=t.config.card_config)?void 0:o.form_fields)||a.push(s)}),y()},_=(e,t)=>{p(n=>{n.config.card_config={...n.config.card_config,[t]:e}})};return mc(pc,{children:[mc(UB,{alignSelf:"center",borderWidth:1,p:[2,4],rounded:"md",spacing:3,w:"full",children:[(null==(t=null==(e=h.config)?void 0:e.card_config)?void 0:t.form_fields)&&gc(qX,{collisionDetection:pZ,modifiers:[TJ,OJ],onDragEnd:e=>{var t,n,r,o,i,a,s,l,c;if(m(0),e.active.id!==(null==(t=e.over)?void 0:t.id)){const t=(null==(o=null==(r=null==(n=h.config)?void 0:n.card_config)?void 0:r.form_fields)?void 0:o.findIndex(t=>(null==t?void 0:t.id)===e.active.id))||0,u=(null==(s=null==(a=null==(i=h.config)?void 0:i.card_config)?void 0:a.form_fields)?void 0:s.findIndex(t=>{var n;return(null==t?void 0:t.id)===(null==(n=e.over)?void 0:n.id)}))||0,d=oJ((null==(c=null==(l=h.config)?void 0:l.card_config)?void 0:c.form_fields)||[],t,u);p(e=>{e.config.card_config={...e.config.card_config,form_fields:d}})}},onDragStart:e=>{const{id:t}=e.active;m(+t)},sensors:w,children:gc(fJ,{items:h.config.card_config.form_fields.map(e=>e.id),strategy:cJ,children:mc(UB,{spacing:"3",w:"full",children:[h.config.card_config.form_fields.map((e,t)=>gc(EJ,{field:e,id:t},e.id)),g?gc(rJ,{style:{marginTop:0},children:gc(EJ,{bg:v,cursor:"grabbing",field:null==(o=null==(r=null==(n=h.config)?void 0:n.card_config)?void 0:r.form_fields)?void 0:o.find(e=>+e.id===g),id:g})}):void 0]})})}),mc(rB,{isOpen:b,onClose:y,onOpen:x,children:[gc(pB,{children:gc(iP,{rightIcon:gc(IW,{}),children:__("Add Field","bit-assist")})}),mc(hB,{children:[gc(aB,{}),gc(sB,{children:mc(uD,{columns:3,gap:1,children:[gc(iP,{onClick:()=>k("text"),children:__("Text","bit-assist")}),gc(iP,{onClick:()=>k("email"),children:__("Email","bit-assist")}),gc(iP,{onClick:()=>k("number"),children:__("Number","bit-assist")}),gc(iP,{onClick:()=>k("date"),children:__("Date","bit-assist")}),gc(iP,{onClick:()=>k("textarea"),children:__("Textarea","bit-assist")}),gc(iP,{onClick:()=>k("GDPR"),children:__("GDPR","bit-assist")}),gc(iP,{onClick:()=>k("rating"),children:__("Rating","bit-assist")}),gc(iP,{onClick:()=>k("feedback"),children:__("Feedback","bit-assist")}),gc(iP,{onClick:()=>k("file"),children:__("File","bit-assist")})]})})]})]})]}),mc(jP,{children:[gc(iD,{children:__("Button Text","bit-assist")}),gc(pD,{onChange:e=>_(e.target.value,"submit_button_text"),placeholder:__("Submit","bit-assist"),value:null==(a=null==(i=h.config)?void 0:i.card_config)?void 0:a.submit_button_text})]}),mc(jP,{children:[gc(iD,{children:__("Success Message","bit-assist")}),gc(pD,{onChange:e=>_(e.target.value,"success_message"),placeholder:__("Submitted successfully","bit-assist"),value:null==(l=null==(s=h.config)?void 0:s.card_config)?void 0:l.success_message})]}),gc(AJ,{}),mc(jP,{children:[gc(iD,{children:__("Send Mail To","bit-assist")}),gc(pD,{onChange:e=>_(e.target.value,"send_mail_to"),placeholder:__("Your email","bit-assist"),value:(null==(u=null==(c=h.config)?void 0:c.card_config)?void 0:u.send_mail_to)||""})]}),gc(VW,{children:mc(jP,{children:[gc(iD,{children:__("Webhook URL","bit-assist")}),gc(pD,{onChange:e=>_(e.target.value,"webhook_url"),placeholder:"https://...",tabIndex:zq.IS_PRO?0:-1,value:(null==(f=null==(d=h.config)?void 0:d.card_config)?void 0:f.webhook_url)||""})]})}),gc(NJ,{bg:"#0038FF",color:"#fff"})]})}function PJ(){var e,t,n,r,o,i,a,s,l,c,u;const[d,f]=AH(qY);K.exports.useEffect(()=>{var e;(null==(e=null==d?void 0:d.config)?void 0:e.iframe_options)||f(IY(e=>{e.config.iframe_options={aspect_ratio:"3/2",height:"360",scrollbar:!1,width:"540"}}))},[]);const h=e=>{const t=e.target.value?Number(e.target.value):0;if(Number.isNaN(t))return;const{name:n}=e.target;f(IY(e=>{e.config.iframe_options[n]=t}))},p=e=>{const{value:t}=e.target;f(IY(e=>{e.config.iframe_options.aspect_ratio=t}))};return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("iFrame url","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void f(IY(e=>{e.config.unique_id=t,e.config.url=t}));var t},placeholder:"https://...",required:!0,value:(null==(e=d.config)?void 0:e.unique_id)||""}),gc(zP,{children:__("Do not use iFrame tag directly, use URL from iFrame only.","bit-assist")})]}),mc(jP,{children:[gc(iD,{children:__("Aspect Ratio","bit-assist")}),gc(bB,{colorScheme:"purple",defaultValue:"3/2",my:"6",value:null==(n=null==(t=null==d?void 0:d.config)?void 0:t.iframe_options)?void 0:n.aspect_ratio,children:mc(FB,{direction:["column","row"],spacing:[1,5],wrap:"wrap",children:[gc(wB,{onChange:e=>p(e),value:"custom",children:__("Custom","bit-assist")}),gc(wB,{onChange:e=>p(e),value:"1/1",children:"1:1"}),gc(wB,{onChange:e=>p(e),value:"3/2",children:"3:2"}),gc(wB,{onChange:e=>p(e),value:"4/3",children:"4:3"}),gc(wB,{onChange:e=>p(e),value:"16/9",children:"16:9"})]})}),mc(FB,{mt:"2",children:[mc(vD,{children:[gc(TF,{fontSize:"14",fontWeight:"normal",w:"20",children:__("Width","bit-assist")}),gc(pD,{min:"0",name:"width",onChange:e=>h(e),placeholder:"540",required:!0,value:(null==(o=null==(r=null==d?void 0:d.config)?void 0:r.iframe_options)?void 0:o.width)||"",w:"28"}),gc(kD,{children:__("px","bit-assist")})]}),"custom"===(null==(a=null==(i=null==d?void 0:d.config)?void 0:i.iframe_options)?void 0:a.aspect_ratio)&&gc(pc,{children:mc(vD,{children:[gc(TF,{fontSize:"14",fontWeight:"normal",w:"20",children:__("Height","bit-assist")}),gc(pD,{min:"0",name:"height",onChange:e=>h(e),placeholder:"360",required:!0,value:(null==(l=null==(s=null==d?void 0:d.config)?void 0:s.iframe_options)?void 0:l.height)||"",w:"28"}),gc(kD,{children:__("px","bit-assist")})]})}),mc(qB,{children:[gc(TF,{fontSize:"md",fontWeight:"medium",mr:3,whiteSpace:"nowrap",children:__("iFrame Scrollbar","bit-assist")}),gc(WB,{colorScheme:"purple",isChecked:!!(null==(u=null==(c=null==d?void 0:d.config)?void 0:c.iframe_options)?void 0:u.scrollbar),onChange:e=>{f(t=>{void 0!==t.config.iframe_options&&(t.config.iframe_options.scrollbar=e.target.checked)})}})]})]})]})]})}function MJ(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Invite code","bit-assist")}),mc(vD,{children:[gc(wD,{children:"discord.gg/"}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://discord.gg/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]}),gc(_Q,{})]})}const LJ="object"==typeof global&&global&&global.Object===Object&&global;var DJ="object"==typeof self&&self&&self.Object===Object&&self;const IJ=LJ||DJ||Function("return this")();const jJ=IJ.Symbol;var zJ=Object.prototype,BJ=zJ.hasOwnProperty,FJ=zJ.toString,qJ=jJ?jJ.toStringTag:void 0;var UJ=Object.prototype.toString;var WJ=jJ?jJ.toStringTag:void 0;function $J(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":WJ&&WJ in Object(e)?function(e){var t=BJ.call(e,qJ),n=e[qJ];try{e[qJ]=void 0;var r=!0}catch(OV){}var o=FJ.call(e);return r&&(t?e[qJ]=n:delete e[qJ]),o}(e):function(e){return UJ.call(e)}(e)}function VJ(e){return null!=e&&"object"==typeof e}const HJ=Array.isArray;function YJ(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function GJ(e){return e}function KJ(e){if(!YJ(e))return!1;var t=$J(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const QJ=IJ["__core-js_shared__"];var ZJ,XJ=(ZJ=/[^.]+$/.exec(QJ&&QJ.keys&&QJ.keys.IE_PROTO||""))?"Symbol(src)_1."+ZJ:"";var JJ=Function.prototype.toString;function e0(e){if(null!=e){try{return JJ.call(e)}catch(OV){}try{return e+""}catch(OV){}}return""}var t0=/^\[object .+?Constructor\]$/,n0=Function.prototype,r0=Object.prototype,o0=n0.toString,i0=r0.hasOwnProperty,a0=RegExp("^"+o0.call(i0).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function s0(e){return!(!YJ(e)||(t=e,XJ&&XJ in t))&&(KJ(e)?a0:t0).test(e0(e));var t}function l0(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return s0(n)?n:void 0}const c0=l0(IJ,"WeakMap");var u0=Object.create;const d0=function(){function e(){}return function(t){if(!YJ(t))return{};if(u0)return u0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function f0(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var h0=Date.now;var p0=function(){try{var e=l0(Object,"defineProperty");return e({},"",{}),e}catch(OV){}}();const g0=p0;var m0=g0?function(e,t){return g0(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:GJ;var v0,b0,y0;const x0=(v0=m0,b0=0,y0=0,function(){var e=h0(),t=16-(e-y0);if(y0=e,t>0){if(++b0>=800)return arguments[0]}else b0=0;return v0.apply(void 0,arguments)});var w0=/^(?:0|[1-9]\d*)$/;function k0(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&w0.test(e))&&e>-1&&e%1==0&&e<t}function _0(e,t,n){"__proto__"==t&&g0?g0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function S0(e,t){return e===t||e!=e&&t!=t}var C0=Object.prototype.hasOwnProperty;function E0(e,t,n){var r=e[t];C0.call(e,t)&&S0(r,n)&&(void 0!==n||t in e)||_0(e,t,n)}function A0(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?_0(n,s,l):E0(n,s,l)}return n}var O0=Math.max;function T0(e,t){return x0(function(e,t,n){return t=O0(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=O0(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,GJ),e+"")}function N0(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function R0(e){return null!=e&&N0(e.length)&&!KJ(e)}var P0=Object.prototype;function M0(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||P0)}function L0(e){return VJ(e)&&"[object Arguments]"==$J(e)}var D0=Object.prototype,I0=D0.hasOwnProperty,j0=D0.propertyIsEnumerable;const z0=L0(function(){return arguments}())?L0:function(e){return VJ(e)&&I0.call(e,"callee")&&!j0.call(e,"callee")};var B0="object"==typeof exports&&exports&&!exports.nodeType&&exports,F0=B0&&"object"==typeof module&&module&&!module.nodeType&&module,q0=F0&&F0.exports===B0?IJ.Buffer:void 0;const U0=(q0?q0.isBuffer:void 0)||function(){return!1};var W0={};function $0(e){return function(t){return e(t)}}W0["[object Float32Array]"]=W0["[object Float64Array]"]=W0["[object Int8Array]"]=W0["[object Int16Array]"]=W0["[object Int32Array]"]=W0["[object Uint8Array]"]=W0["[object Uint8ClampedArray]"]=W0["[object Uint16Array]"]=W0["[object Uint32Array]"]=!0,W0["[object Arguments]"]=W0["[object Array]"]=W0["[object ArrayBuffer]"]=W0["[object Boolean]"]=W0["[object DataView]"]=W0["[object Date]"]=W0["[object Error]"]=W0["[object Function]"]=W0["[object Map]"]=W0["[object Number]"]=W0["[object Object]"]=W0["[object RegExp]"]=W0["[object Set]"]=W0["[object String]"]=W0["[object WeakMap]"]=!1;var V0="object"==typeof exports&&exports&&!exports.nodeType&&exports,H0=V0&&"object"==typeof module&&module&&!module.nodeType&&module,Y0=H0&&H0.exports===V0&&LJ.process;const G0=function(){try{var e=H0&&H0.require&&H0.require("util").types;return e||Y0&&Y0.binding&&Y0.binding("util")}catch(OV){}}();var K0=G0&&G0.isTypedArray;const Q0=K0?$0(K0):function(e){return VJ(e)&&N0(e.length)&&!!W0[$J(e)]};var Z0=Object.prototype.hasOwnProperty;function X0(e,t){var n=HJ(e),r=!n&&z0(e),o=!n&&!r&&U0(e),i=!n&&!r&&!o&&Q0(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!Z0.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||k0(c,l))||s.push(c);return s}function J0(e,t){return function(n){return e(t(n))}}const e1=J0(Object.keys,Object);var t1=Object.prototype.hasOwnProperty;function n1(e){return R0(e)?X0(e):function(e){if(!M0(e))return e1(e);var t=[];for(var n in Object(e))t1.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var r1=Object.prototype.hasOwnProperty;function o1(e){if(!YJ(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=M0(e),n=[];for(var r in e)("constructor"!=r||!t&&r1.call(e,r))&&n.push(r);return n}function i1(e){return R0(e)?X0(e,!0):o1(e)}const a1=l0(Object,"create");var s1=Object.prototype.hasOwnProperty;var l1=Object.prototype.hasOwnProperty;function c1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function u1(e,t){for(var n=e.length;n--;)if(S0(e[n][0],t))return n;return-1}c1.prototype.clear=function(){this.__data__=a1?a1(null):{},this.size=0},c1.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},c1.prototype.get=function(e){var t=this.__data__;if(a1){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s1.call(t,e)?t[e]:void 0},c1.prototype.has=function(e){var t=this.__data__;return a1?void 0!==t[e]:l1.call(t,e)},c1.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a1&&void 0===t?"__lodash_hash_undefined__":t,this};var d1=Array.prototype.splice;function f1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f1.prototype.clear=function(){this.__data__=[],this.size=0},f1.prototype.delete=function(e){var t=this.__data__,n=u1(t,e);return!(n<0)&&(n==t.length-1?t.pop():d1.call(t,n,1),--this.size,!0)},f1.prototype.get=function(e){var t=this.__data__,n=u1(t,e);return n<0?void 0:t[n][1]},f1.prototype.has=function(e){return u1(this.__data__,e)>-1},f1.prototype.set=function(e,t){var n=this.__data__,r=u1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const h1=l0(IJ,"Map");function p1(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function g1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function m1(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}g1.prototype.clear=function(){this.size=0,this.__data__={hash:new c1,map:new(h1||f1),string:new c1}},g1.prototype.delete=function(e){var t=p1(this,e).delete(e);return this.size-=t?1:0,t},g1.prototype.get=function(e){return p1(this,e).get(e)},g1.prototype.has=function(e){return p1(this,e).has(e)},g1.prototype.set=function(e,t){var n=p1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const v1=J0(Object.getPrototypeOf,Object);var b1=Function.prototype,y1=Object.prototype,x1=b1.toString,w1=y1.hasOwnProperty,k1=x1.call(Object);function _1(e){var t=this.__data__=new f1(e);this.size=t.size}_1.prototype.clear=function(){this.__data__=new f1,this.size=0},_1.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_1.prototype.get=function(e){return this.__data__.get(e)},_1.prototype.has=function(e){return this.__data__.has(e)},_1.prototype.set=function(e,t){var n=this.__data__;if(n instanceof f1){var r=n.__data__;if(!h1||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new g1(r)}return n.set(e,t),this.size=n.size,this};var S1="object"==typeof exports&&exports&&!exports.nodeType&&exports,C1=S1&&"object"==typeof module&&module&&!module.nodeType&&module,E1=C1&&C1.exports===S1?IJ.Buffer:void 0,A1=E1?E1.allocUnsafe:void 0;function O1(e,t){if(t)return e.slice();var n=e.length,r=A1?A1(n):new e.constructor(n);return e.copy(r),r}function T1(){return[]}var N1=Object.prototype.propertyIsEnumerable,R1=Object.getOwnPropertySymbols;const P1=R1?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(R1(e),function(t){return N1.call(e,t)}))}:T1;const M1=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)m1(t,P1(e)),e=v1(e);return t}:T1;function L1(e,t,n){var r=t(e);return HJ(e)?r:m1(r,n(e))}function D1(e){return L1(e,n1,P1)}function I1(e){return L1(e,i1,M1)}const j1=l0(IJ,"DataView");const z1=l0(IJ,"Promise");const B1=l0(IJ,"Set");var F1="[object Map]",q1="[object Promise]",U1="[object Set]",W1="[object WeakMap]",$1="[object DataView]",V1=e0(j1),H1=e0(h1),Y1=e0(z1),G1=e0(B1),K1=e0(c0),Q1=$J;(j1&&Q1(new j1(new ArrayBuffer(1)))!=$1||h1&&Q1(new h1)!=F1||z1&&Q1(z1.resolve())!=q1||B1&&Q1(new B1)!=U1||c0&&Q1(new c0)!=W1)&&(Q1=function(e){var t=$J(e),n="[object Object]"==t?e.constructor:void 0,r=n?e0(n):"";if(r)switch(r){case V1:return $1;case H1:return F1;case Y1:return q1;case G1:return U1;case K1:return W1}return t});const Z1=Q1;var X1=Object.prototype.hasOwnProperty;const J1=IJ.Uint8Array;function e2(e){var t=new e.constructor(e.byteLength);return new J1(t).set(new J1(e)),t}var t2=/\w*$/;var n2=jJ?jJ.prototype:void 0,r2=n2?n2.valueOf:void 0;function o2(e,t){var n=t?e2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function i2(e,t,n){var r,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return e2(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?e2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o2(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,t2.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,r2?Object(r2.call(r)):{}}}function a2(e){return"function"!=typeof e.constructor||M0(e)?{}:d0(v1(e))}var s2=G0&&G0.isMap;const l2=s2?$0(s2):function(e){return VJ(e)&&"[object Map]"==Z1(e)};var c2=G0&&G0.isSet;const u2=c2?$0(c2):function(e){return VJ(e)&&"[object Set]"==Z1(e)};var d2="[object Arguments]",f2="[object Function]",h2="[object Object]",p2={};function g2(e,t,n,r,o,i){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!YJ(e))return e;var u=HJ(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&X1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return f0(e,a)}else{var d=Z1(e),f=d==f2||"[object GeneratorFunction]"==d;if(U0(e))return O1(e,s);if(d==h2||d==d2||f&&!o){if(a=l||f?{}:a2(e),!s)return l?function(e,t){return A0(e,M1(e),t)}(e,function(e,t){return e&&A0(t,i1(t),e)}(a,e)):function(e,t){return A0(e,P1(e),t)}(e,function(e,t){return e&&A0(t,n1(t),e)}(a,e))}else{if(!p2[d])return o?e:{};a=i2(e,d,s)}}i||(i=new _1);var h=i.get(e);if(h)return h;i.set(e,a),u2(e)?e.forEach(function(r){a.add(g2(r,t,n,r,e,i))}):l2(e)&&e.forEach(function(r,o){a.set(o,g2(r,t,n,o,e,i))});var p=u?void 0:(c?l?I1:D1:l?i1:n1)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(p||e,function(r,o){p&&(r=e[o=r]),E0(a,o,g2(r,t,n,o,e,i))}),a}p2[d2]=p2["[object Array]"]=p2["[object ArrayBuffer]"]=p2["[object DataView]"]=p2["[object Boolean]"]=p2["[object Date]"]=p2["[object Float32Array]"]=p2["[object Float64Array]"]=p2["[object Int8Array]"]=p2["[object Int16Array]"]=p2["[object Int32Array]"]=p2["[object Map]"]=p2["[object Number]"]=p2[h2]=p2["[object RegExp]"]=p2["[object Set]"]=p2["[object String]"]=p2["[object Symbol]"]=p2["[object Uint8Array]"]=p2["[object Uint8ClampedArray]"]=p2["[object Uint16Array]"]=p2["[object Uint32Array]"]=!0,p2["[object Error]"]=p2[f2]=p2["[object WeakMap]"]=!1;function m2(e){return g2(e,5)}function v2(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new g1;++t<n;)this.add(e[t])}function b2(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function y2(e,t){return e.has(t)}v2.prototype.add=v2.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},v2.prototype.has=function(e){return this.__data__.has(e)};function x2(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=2&n?new v2:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var p=e[d],g=t[d];if(r)var m=a?r(g,p,d,t,e,i):r(p,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!b2(t,function(e,t){if(!y2(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)})){f=!1;break}}else if(p!==g&&!o(p,g,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function w2(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function k2(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var _2=jJ?jJ.prototype:void 0,S2=_2?_2.valueOf:void 0;var C2=Object.prototype.hasOwnProperty;var E2="[object Arguments]",A2="[object Array]",O2="[object Object]",T2=Object.prototype.hasOwnProperty;function N2(e,t,n,r,o,i){var a=HJ(e),s=HJ(t),l=a?A2:Z1(e),c=s?A2:Z1(t),u=(l=l==E2?O2:l)==O2,d=(c=c==E2?O2:c)==O2,f=l==c;if(f&&U0(e)){if(!U0(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new _1),a||Q0(e)?x2(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new J1(e),new J1(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return S0(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=w2;case"[object Set]":var l=1&r;if(s||(s=k2),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=x2(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(S2)return S2.call(e)==S2.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var h=u&&T2.call(e,"__wrapped__"),p=d&&T2.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,m=p?t.value():t;return i||(i=new _1),o(g,m,n,r,i)}}return!!f&&(i||(i=new _1),function(e,t,n,r,o,i){var a=1&n,s=D1(e),l=s.length;if(l!=D1(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:C2.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var v=a?r(m,g,u,t,e,i):r(g,m,u,e,t,i);if(!(void 0===v?g===m||o(g,m,n,r,i):v)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,i))}function R2(e,t,n,r,o){return e===t||(null==e||null==t||!VJ(e)&&!VJ(t)?e!=e&&t!=t:N2(e,t,n,r,R2,o))}var P2,M2=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[P2?a:++r];if(!1===t(o[s],s,o))break}return e};const L2=M2;function D2(e,t,n){(void 0!==n&&!S0(e[t],n)||void 0===n&&!(t in e))&&_0(e,t,n)}function I2(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function j2(e,t,n,r,o,i,a){var s=I2(e,n),l=I2(t,n),c=a.get(l);if(c)D2(e,n,c);else{var u,d=i?i(s,l,n+"",e,t,a):void 0,f=void 0===d;if(f){var h=HJ(l),p=!h&&U0(l),g=!h&&!p&&Q0(l);d=l,h||p||g?HJ(s)?d=s:VJ(u=s)&&R0(u)?d=f0(s):p?(f=!1,d=O1(l,!0)):g?(f=!1,d=o2(l,!0)):d=[]:function(e){if(!VJ(e)||"[object Object]"!=$J(e))return!1;var t=v1(e);if(null===t)return!0;var n=w1.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&x1.call(n)==k1}(l)||z0(l)?(d=s,z0(s)?d=function(e){return A0(e,i1(e))}(s):YJ(s)&&!KJ(s)||(d=a2(l))):f=!1}f&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),D2(e,n,d)}}function z2(e,t,n,r,o){e!==t&&L2(t,function(i,a){if(o||(o=new _1),YJ(i))j2(e,t,a,n,z2,r,o);else{var s=r?r(I2(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),D2(e,a,s)}},i1)}function B2(e,t){return R2(e,t)}var F2;const q2=(F2=function(e,t,n){z2(e,t,n)},T0(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=F2.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!YJ(n))return!1;var r=typeof t;return!!("number"==r?R0(n)&&k0(t,n.length):"string"==r&&t in n)&&S0(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&F2(e,a,n,o)}return e}));var U2=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(U2||{});class W2{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const r=U2.TYPE&U2.ATTRIBUTE;this.scope=null!=n.scope?n.scope&U2.LEVEL|r:U2.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(e=>e.name)}add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class $2 extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}const V2=class e{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(null==e)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(t,n,r){const o=this.query(n);if(null==o)throw new $2(`Unable to create ${n} blot`);const i=o,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(r),s=new i(t,a,r);return e.blots.set(s.domNode,s),s}find(t,n=!1){return e.find(t,n)}query(e,t=U2.ANY){let n;return"string"==typeof e?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof e?e&U2.LEVEL&U2.BLOCK?n=this.types.block:e&U2.LEVEL&U2.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(e=>(n=this.classes[e],!!n)),n=n||this.tags[e.tagName]),null==n?null:"scope"in n&&t&U2.LEVEL&n.scope&&t&U2.TYPE&n.scope?n:null}register(...e){return e.map(e=>{const t="blotName"in e,n="attrName"in e;if(!t&&!n)throw new $2("Invalid definition");if(t&&"abstract"===e.blotName)throw new $2("Cannot register abstract class");const r=t?e.blotName:n?e.attrName:void 0;return this.types[r]=e,n?"string"==typeof e.keyName&&(this.attributes[e.keyName]=e):t&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(e=>e.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(t=>{(null==this.tags[t]||null==e.className)&&(this.tags[t]=e)}))),e})}};V2.blots=new WeakMap;let H2=V2;function Y2(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(e=>0===e.indexOf(`${t}-`))}const G2=class extends W2{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){Y2(e,this.keyName).forEach(t=>{e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")}value(e){const t=(Y2(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}};function K2(e){const t=e.split("-"),n=t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("");return t[0]+n}const Q2=class extends W2{static keys(e){return(e.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(e,t){return!!this.canAdd(e,t)&&(e.style[K2(this.keyName)]=t,!0)}remove(e){e.style[K2(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[K2(this.keyName)];return this.canAdd(e,t)?t:""}};const Z2=class{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=H2.find(this.domNode);if(null==e)return;const t=W2.keys(this.domNode),n=G2.keys(this.domNode),r=Q2.keys(this.domNode);t.concat(n).concat(r).forEach(t=>{const n=e.scroll.query(t,U2.ATTRIBUTE);n instanceof W2&&(this.attributes[n.attrName]=n)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}},X2=class{constructor(e,t){this.scroll=e,this.domNode=t,H2.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(null==this.tagName)throw new $2("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?("string"==typeof e?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),H2.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,r){const o=this.isolate(e,t);if(null!=this.scroll.query(n,U2.BLOT)&&r)o.wrap(n,r);else if(null!=this.scroll.query(n,U2.ATTRIBUTE)){const e=this.scroll.create(this.statics.scope);o.wrap(e),e.format(n,r)}}insertAt(e,t,n){const r=null==n?this.scroll.create("text",t):this.scroll.create(t,n),o=this.split(e);this.parent.insertBefore(r,o||void 0)}isolate(e,t){const n=this.split(e);if(null==n)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new $2(`Cannot wrap ${e}`);return n.appendChild(this),n}};X2.blotName="abstract";let J2=X2;const e5=class extends J2{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};e5.scope=U2.INLINE_BLOT;const t5=e5;class n5{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),r=0;for(;n;){if(n===e)return r;r+=1,n=t()}return-1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let r=n();for(;r;){const o=r.length();if(e<o||t&&e===o&&(null==r.next||0!==r.next.length()))return[r,e];e-=o,r=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[r,o]=this.find(e);let i=e-o;const a=this.iterator(r);let s=a();for(;s&&i<e+t;){const r=s.length();e>i?n(s,e-i,Math.min(t,i+r-e)):n(s,0,Math.min(r,e+t-i)),i+=r,s=a()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let r=n();for(;r;)t=e(t,r),r=n();return t}}function r5(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const n=t.create(U2.INLINE);return Array.from(e.childNodes).forEach(e=>{n.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}const o5=class e extends J2{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,e.uiClass&&this.uiNode.classList.add(e.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new n5,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=r5(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(l8){if(l8 instanceof $2)return;throw l8}})}deleteAt(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(e,t,n)=>{e.deleteAt(t,n)})}descendant(t,n=0){const[r,o]=this.children.find(n);return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,o]:r instanceof e?r.descendant(t,o):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let o=[],i=r;return this.children.forEachAt(n,r,(n,r,a)=>{(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=a}),o}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(e=>n instanceof e)||(n.statics.scope===U2.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof e?n.unwrap():n.remove())})}formatAt(e,t,n,r){this.children.forEachAt(e,t,(e,t,o)=>{e.formatAt(t,o,n,r)})}insertAt(e,t,n){const[r,o]=this.children.find(e);if(r)r.insertAt(o,t,n);else{const e=null==n?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(e)}}insertBefore(e,t){null!=e.parent&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,null!=t&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,n=!1){const[r,o]=this.children.find(t,n),i=[[this,t]];return r instanceof e?i.concat(r.path(o,n)):(null!=r&&i.push([r,o]),i)}removeChild(e){this.children.remove(e)}replaceWith(t,n){const r="string"==typeof t?this.scroll.create(t,n):t;return r instanceof e&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(e,r,o)=>{const i=e.split(r,t);null!=i&&n.appendChild(i)}),n}splitAfter(e){const t=this.clone();for(;null!=e.next;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],r=[];e.forEach(e=>{e.target===this.domNode&&"childList"===e.type&&(n.push(...e.addedNodes),r.push(...e.removedNodes))}),r.forEach(e=>{if(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const t=this.scroll.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===this.domNode)&&t.detach()}),n.filter(e=>e.parentNode===this.domNode&&e!==this.uiNode).sort((e,t)=>e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(e=>{let t=null;null!=e.nextSibling&&(t=this.scroll.find(e.nextSibling));const n=r5(e,this.scroll);(n.next!==t||null==n.next)&&(null!=n.parent&&n.parent.removeChild(this),this.insertBefore(n,t||void 0))}),this.enforceAllowedChildren()}};o5.uiClass="";const i5=o5;const a5=class e extends i5{static create(e){return super.create(e)}static formats(t,n){const r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Z2(this.domNode)}format(t,n){if(t!==this.statics.blotName||n){const e=this.scroll.query(t,U2.INLINE);if(null==e)return;e instanceof W2?this.attributes.attribute(e,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}else this.children.forEach(t=>{t instanceof e||(t=t.wrap(e.blotName,!0)),this.attributes.copy(t)}),this.unwrap()}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.formats()[n]||this.scroll.query(n,U2.ATTRIBUTE)?this.isolate(e,t).format(n,r):super.formatAt(e,t,n,r)}optimize(t){super.optimize(t);const n=this.formats();if(0===Object.keys(n).length)return this.unwrap();const r=this.next;r instanceof e&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof e&&this.attributes.move(r),r}};a5.allowedChildren=[a5,t5],a5.blotName="inline",a5.scope=U2.INLINE_BLOT,a5.tagName="SPAN";const s5=a5,l5=class e extends i5{static create(e){return super.create(e)}static formats(t,n){const r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Z2(this.domNode)}format(t,n){const r=this.scroll.query(t,U2.BLOCK);null!=r&&(r instanceof W2?this.attributes.attribute(r,n):t!==this.statics.blotName||n?n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n):this.replaceWith(e.blotName))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.scroll.query(n,U2.BLOCK)?this.format(n,r):super.formatAt(e,t,n,r)}insertAt(e,t,n){if(null==n||null!=this.scroll.query(t,U2.INLINE))super.insertAt(e,t,n);else{const r=this.split(e);if(null==r)throw new Error("Attempt to insertAt after block boundaries");{const e=this.scroll.create(t,n);r.parent.insertBefore(e,r)}}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}};l5.blotName="block",l5.scope=U2.BLOCK_BLOT,l5.tagName="P",l5.allowedChildren=[s5,l5,t5];const c5=l5,u5=class extends i5{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};u5.blotName="container",u5.scope=U2.BLOCK_BLOT;const d5=u5;const f5=class extends t5{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,r){0===e&&t===this.length()?this.format(n,r):super.formatAt(e,t,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}},h5={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},p5=class extends i5{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(e=>{this.update(e)}),this.observer.observe(this.domNode,h5),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=U2.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEach(e=>{e.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,r){this.update(),super.formatAt(e,t,n,r)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let r=Array.from(this.observer.takeRecords());for(;r.length>0;)e.push(r.pop());const o=(e,t=!0)=>{null==e||e===this||null!=e.domNode.parentNode&&(n.has(e.domNode)||n.set(e.domNode,[]),t&&o(e.parent))},i=e=>{n.has(e.domNode)&&(e instanceof i5&&e.children.forEach(i),n.delete(e.domNode),e.optimize(t))};let a=e;for(let s=0;a.length>0;s+=1){if(s>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(e=>{const t=this.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(o(this.find(e.previousSibling,!1)),Array.from(e.addedNodes).forEach(e=>{const t=this.find(e,!1);o(t,!1),t instanceof i5&&t.children.forEach(e=>{o(e,!1)})})):"attributes"===e.type&&o(t.prev)),o(t))}),this.children.forEach(i),a=Array.from(this.observer.takeRecords()),r=a.slice();r.length>0;)e.push(r.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(e=>{const t=this.find(e.target,!0);return null==t?null:n.has(t.domNode)?(n.get(t.domNode).push(e),null):(n.set(t.domNode,[e]),t)}).forEach(e=>{null!=e&&e!==this&&n.has(e.domNode)&&e.update(n.get(e.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};p5.blotName="scroll",p5.defaultChild=c5,p5.allowedChildren=[c5,d5],p5.scope=U2.BLOCK_BLOT,p5.tagName="DIV";const g5=p5,m5=class e extends t5{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(e=>"characterData"===e.type&&e.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};m5.blotName="text",m5.scope=U2.INLINE_BLOT;const v5=m5,b5=Object.freeze(Object.defineProperty({__proto__:null,Attributor:W2,AttributorStore:Z2,BlockBlot:c5,ClassAttributor:G2,ContainerBlot:d5,EmbedBlot:f5,InlineBlot:s5,LeafBlot:t5,ParentBlot:i5,Registry:H2,Scope:U2,ScrollBlot:g5,StyleAttributor:Q2,TextBlot:v5},Symbol.toStringTag,{value:"Module"}));var y5={exports:{}},x5=-1;function w5(e,t,n,r,o){if(e===t)return e?[[0,e]]:[];if(null!=n){var i=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=e.length,a=t.length;if(0===r.length&&(null===o||0===o.length)){var s=r.index,l=e.slice(0,s),c=e.slice(s),u=o?o.index:null,d=s+a-i;if((null===u||u===d)&&!(d<0||d>a)){var f=t.slice(0,d);if((g=t.slice(d))===c){var h=Math.min(s,d);if((v=l.slice(0,h))===(y=f.slice(0,h)))return I5(v,l.slice(h),f.slice(h),c)}}if(null===u||u===s){var p=s,g=(f=t.slice(0,p),t.slice(p));if(f===l){var m=Math.min(i-p,a-p);if((b=c.slice(c.length-m))===(x=g.slice(g.length-m)))return I5(l,c.slice(0,c.length-m),g.slice(0,g.length-m),b)}}}if(r.length>0&&o&&0===o.length){var v=e.slice(0,r.index),b=e.slice(r.index+r.length);if(!(a<(h=v.length)+(m=b.length))){var y=t.slice(0,h),x=t.slice(a-m);if(v===y&&b===x)return I5(v,e.slice(h,i-m),t.slice(h,a-m),b)}}return null}(e,t,n);if(i)return i}var a=_5(e,t),s=e.substring(0,a);a=C5(e=e.substring(a),t=t.substring(a));var l=e.substring(e.length-a),c=function(e,t){var n;if(!e)return[[1,t]];if(!t)return[[x5,e]];var r=e.length>t.length?e:t,o=e.length>t.length?t:e,i=r.indexOf(o);if(-1!==i)return n=[[1,r.substring(0,i)],[0,o],[1,r.substring(i+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=x5),n;if(1===o.length)return[[x5,e],[1,t]];var a=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,a,s=e.substring(n,n+Math.floor(e.length/4)),l=-1,c="";-1!==(l=t.indexOf(s,l+1));){var u=_5(e.substring(n),t.substring(l)),d=C5(e.substring(0,n),t.substring(0,l));c.length<d+u&&(c=t.substring(l-d,l)+t.substring(l,l+u),r=e.substring(0,n-d),o=e.substring(n+u),i=t.substring(0,l-d),a=t.substring(l+u))}return 2*c.length>=e.length?[r,o,i,a,c]:null}var i,a,s,l,c,u=o(n,r,Math.ceil(n.length/4)),d=o(n,r,Math.ceil(n.length/2));if(!u&&!d)return null;i=d?u&&u[4].length>d[4].length?u:d:u;e.length>t.length?(a=i[0],s=i[1],l=i[2],c=i[3]):(l=i[0],c=i[1],a=i[2],s=i[3]);var f=i[4];return[a,s,l,c,f]}(e,t);if(a){var s=a[0],l=a[1],c=a[2],u=a[3],d=a[4],f=w5(s,c),h=w5(l,u);return f.concat([[0,d]],h)}return function(e,t){for(var n=e.length,r=t.length,o=Math.ceil((n+r)/2),i=o,a=2*o,s=new Array(a),l=new Array(a),c=0;c<a;c++)s[c]=-1,l[c]=-1;s[i+1]=0,l[i+1]=0;for(var u=n-r,d=u%2!=0,f=0,h=0,p=0,g=0,m=0;m<o;m++){for(var v=-m+f;v<=m-h;v+=2){for(var b=i+v,y=(S=v===-m||v!==m&&s[b-1]<s[b+1]?s[b+1]:s[b-1]+1)-v;S<n&&y<r&&e.charAt(S)===t.charAt(y);)S++,y++;if(s[b]=S,S>n)h+=2;else if(y>r)f+=2;else if(d){if((k=i+u-v)>=0&&k<a&&-1!==l[k])if(S>=(w=n-l[k]))return k5(e,t,S,y)}}for(var x=-m+p;x<=m-g;x+=2){for(var w,k=i+x,_=(w=x===-m||x!==m&&l[k-1]<l[k+1]?l[k+1]:l[k-1]+1)-x;w<n&&_<r&&e.charAt(n-w-1)===t.charAt(r-_-1);)w++,_++;if(l[k]=w,w>n)g+=2;else if(_>r)p+=2;else if(!d){if((b=i+u-x)>=0&&b<a&&-1!==s[b]){var S;y=i+(S=s[b])-b;if(S>=(w=n-w))return k5(e,t,S,y)}}}}return[[x5,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-a),t=t.substring(0,t.length-a));return s&&c.unshift([0,s]),l&&c.push([0,l]),R5(c,o),r&&function(e){var t=!1,n=[],r=0,o=null,i=0,a=0,s=0,l=0,c=0;for(;i<e.length;)0==e[i][0]?(n[r++]=i,a=l,s=c,l=0,c=0,o=e[i][1]):(1==e[i][0]?l+=e[i][1].length:c+=e[i][1].length,o&&o.length<=Math.max(a,s)&&o.length<=Math.max(l,c)&&(e.splice(n[r-1],0,[x5,o]),e[n[r-1]+1][0]=1,r--,i=--r>0?n[r-1]:-1,a=0,s=0,l=0,c=0,o=null,t=!0)),i++;t&&R5(e);(function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(E5),i=r.match(E5),a=o&&n.match(A5),s=i&&r.match(A5),l=a&&n.match(O5),c=s&&r.match(O5),u=l&&e.match(T5),d=c&&t.match(N5);return u||d?5:l||c?4:o&&!a&&s?3:a||s?2:o||i?1:0}var n=1;for(;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],o=e[n][1],i=e[n+1][1],a=C5(r,o);if(a){var s=o.substring(o.length-a);r=r.substring(0,r.length-a),o=s+o.substring(0,o.length-a),i=s+i}for(var l=r,c=o,u=i,d=t(r,o)+t(o,i);o.charAt(0)===i.charAt(0);){r+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);var f=t(r,o)+t(o,i);f>=d&&(d=f,l=r,c=o,u=i)}e[n-1][1]!=l&&(l?e[n-1][1]=l:(e.splice(n-1,1),n--),e[n][1]=c,u?e[n+1][1]=u:(e.splice(n+1,1),n--))}n++}})(e),i=1;for(;i<e.length;){if(e[i-1][0]==x5&&1==e[i][0]){var u=e[i-1][1],d=e[i][1],f=S5(u,d),h=S5(d,u);f>=h?(f>=u.length/2||f>=d.length/2)&&(e.splice(i,0,[0,d.substring(0,f)]),e[i-1][1]=u.substring(0,u.length-f),e[i+1][1]=d.substring(f),i++):(h>=u.length/2||h>=d.length/2)&&(e.splice(i,0,[0,u.substring(0,h)]),e[i-1][0]=1,e[i-1][1]=d.substring(0,d.length-h),e[i+1][0]=x5,e[i+1][1]=u.substring(h),i++),i++}i++}}(c),c}function k5(e,t,n,r){var o=e.substring(0,n),i=t.substring(0,r),a=e.substring(n),s=t.substring(r),l=w5(o,i),c=w5(a,s);return l.concat(c)}function _5(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return P5(e.charCodeAt(o-1))&&o--,o}function S5(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var o=Math.min(n,r);if(e==t)return o;for(var i=0,a=1;;){var s=e.substring(o-a),l=t.indexOf(s);if(-1==l)return i;a+=l,0!=l&&e.substring(o-a)!=t.substring(0,a)||(i=a,a++)}}function C5(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return M5(e.charCodeAt(e.length-o))&&o--,o}var E5=/[^a-zA-Z0-9]/,A5=/\s/,O5=/[\r\n]/,T5=/\n\r?\n$/,N5=/^\r?\n\r?\n/;function R5(e,t){e.push([0,""]);for(var n,r=0,o=0,i=0,a="",s="";r<e.length;)if(r<e.length-1&&!e[r][1])e.splice(r,1);else switch(e[r][0]){case 1:i++,s+=e[r][1],r++;break;case x5:o++,a+=e[r][1],r++;break;case 0:var l=r-i-o-1;if(t){if(l>=0&&D5(e[l][1])){var c=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),a=c+a,s=c+s,!e[l][1]){e.splice(l,1),r--;var u=l-1;e[u]&&1===e[u][0]&&(i++,s=e[u][1]+s,u--),e[u]&&e[u][0]===x5&&(o++,a=e[u][1]+a,u--),l=u}}if(L5(e[r][1])){c=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),a+=c,s+=c}}if(r<e.length-1&&!e[r][1]){e.splice(r,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(0!==(n=_5(s,a))&&(l>=0?e[l][1]+=s.substring(0,n):(e.splice(0,0,[0,s.substring(0,n)]),r++),s=s.substring(n),a=a.substring(n)),0!==(n=C5(s,a))&&(e[r][1]=s.substring(s.length-n)+e[r][1],s=s.substring(0,s.length-n),a=a.substring(0,a.length-n)));var d=i+o;0===a.length&&0===s.length?(e.splice(r-d,d),r-=d):0===a.length?(e.splice(r-d,d,[1,s]),r=r-d+1):0===s.length?(e.splice(r-d,d,[x5,a]),r=r-d+1):(e.splice(r-d,d,[x5,a],[1,s]),r=r-d+2)}0!==r&&0===e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,a="",s=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r<e.length-1;)0===e[r-1][0]&&0===e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)===e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),f=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),f=!0)),r++;f&&R5(e,t)}function P5(e){return e>=55296&&e<=56319}function M5(e){return e>=56320&&e<=57343}function L5(e){return M5(e.charCodeAt(0))}function D5(e){return P5(e.charCodeAt(e.length-1))}function I5(e,t,n,r){return D5(e)||L5(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[x5,t],[1,n],[0,r]])}function j5(e,t,n,r){return w5(e,t,n,r,!0)}j5.INSERT=1,j5.DELETE=x5,j5.EQUAL=0;var z5=j5,B5={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",u="[object Number]",d="[object Object]",f="[object Promise]",h="[object RegExp]",p="[object Set]",g="[object String]",m="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",O="[object Uint32Array]",T=/\w*$/,N=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[b]=P[y]=P[i]=P[a]=P[x]=P[w]=P[k]=P[_]=P[S]=P[c]=P[u]=P[d]=P[h]=P[p]=P[g]=P[m]=P[C]=P[E]=P[A]=P[O]=!0,P["[object Error]"]=P[s]=P[v]=!1;var M="object"==typeof Y&&Y&&Y.Object===Object&&Y,L="object"==typeof self&&self&&self.Object===Object&&self,D=M||L||Function("return this")(),I=t&&!t.nodeType&&t,j=I&&e&&!e.nodeType&&e,z=j&&j.exports===I;function B(e,t){return e.set(t[0],t[1]),e}function F(e,t){return e.add(t),e}function q(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(OV){}return t}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function $(e,t){return function(n){return e(t(n))}}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var H=Array.prototype,G=Function.prototype,K=Object.prototype,Q=D["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),X=G.toString,J=K.hasOwnProperty,ee=K.toString,te=RegExp("^"+X.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=z?D.Buffer:void 0,re=D.Symbol,oe=D.Uint8Array,ie=$(Object.getPrototypeOf,Object),ae=Object.create,se=K.propertyIsEnumerable,le=H.splice,ce=Object.getOwnPropertySymbols,ue=ne?ne.isBuffer:void 0,de=$(Object.keys,Object),fe=je(D,"DataView"),he=je(D,"Map"),pe=je(D,"Promise"),ge=je(D,"Set"),me=je(D,"WeakMap"),ve=je(Object,"create"),be=Ue(fe),ye=Ue(he),xe=Ue(pe),we=Ue(ge),ke=Ue(me),_e=re?re.prototype:void 0,Se=_e?_e.valueOf:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Ee(e)}function Te(e,t){var n=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&J.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!J.call(e,a)||i&&("length"==a||Fe(a,r))||n.push(a);return n}function Ne(e,t,n){var r=e[t];J.call(e,t)&&We(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Re(e,t){for(var n=e.length;n--;)if(We(e[n][0],t))return n;return-1}function Pe(e,t,n,r,f,v,N){var R;if(r&&(R=v?r(e,f,v,N):r(e)),void 0!==R)return R;if(!Ge(e))return e;var M=$e(e);if(M){if(R=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&J.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,R)}else{var L=Be(e),D=L==s||L==l;if(He(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==d||L==o||D&&!v){if(U(e))return v?e:{};if(R=function(e){return"function"!=typeof e.constructor||qe(e)?{}:(t=ie(e),Ge(t)?ae(t):{});var t}(D?{}:e),!t)return function(e,t){return De(e,ze(e),t)}(e,function(e,t){return e&&De(t,Ke(t),e)}(R,e))}else{if(!P[L])return v?e:{};R=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Le(e);case i:case a:return new o(+e);case y:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case x:case w:case k:case _:case S:case C:case E:case A:case O:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){var r=t?n(W(e),!0):W(e);return q(r,B,new e.constructor)}(e,r,n);case u:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,T.exec(e));return t.lastIndex=e.lastIndex,t}(e);case p:return function(e,t,n){var r=t?n(V(e),!0):V(e);return q(r,F,new e.constructor)}(e,r,n);case m:return s=e,Se?Object(Se.call(s)):{}}var s}(e,L,Pe,t)}}N||(N=new Oe);var I=N.get(e);if(I)return I;if(N.set(e,R),!M)var j=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ke,ze)}(e):Ke(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(j||e,function(o,i){j&&(o=e[i=o]),Ne(R,i,Pe(o,t,n,r,i,e,N))}),R}function Me(e){return!(!Ge(e)||function(e){return!!Z&&Z in e}(e))&&(Ye(e)||U(e)?te:N).test(Ue(e))}function Le(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function De(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=r?r(n[a],e[a],a,n,e):void 0;Ne(n,a,void 0===s?e[a]:s)}return n}function Ie(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:J.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},Ee.prototype.clear=function(){this.__data__=[]},Ee.prototype.delete=function(e){var t=this.__data__,n=Re(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),!0)},Ee.prototype.get=function(e){var t=this.__data__,n=Re(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Re(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Re(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new Ce,map:new(he||Ee),string:new Ce}},Ae.prototype.delete=function(e){return Ie(this,e).delete(e)},Ae.prototype.get=function(e){return Ie(this,e).get(e)},Ae.prototype.has=function(e){return Ie(this,e).has(e)},Ae.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Ee},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var ze=ce?$(ce,Object):function(){return[]},Be=function(e){return ee.call(e)};function Fe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||R.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function Ue(e){if(null!=e){try{return X.call(e)}catch(OV){}try{return e+""}catch(OV){}}return""}function We(e,t){return e===t||e!=e&&t!=t}(fe&&Be(new fe(new ArrayBuffer(1)))!=y||he&&Be(new he)!=c||pe&&Be(pe.resolve())!=f||ge&&Be(new ge)!=p||me&&Be(new me)!=v)&&(Be=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case be:return y;case ye:return c;case xe:return f;case we:return p;case ke:return v}return t});var $e=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ye(e)}var He=ue||function(){return!1};function Ye(e){var t=Ge(e)?ee.call(e):"";return t==s||t==l}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ke(e){return Ve(e)?Te(e):function(e){if(!qe(e))return de(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Pe(e,!0,!0)}}(B5,B5.exports);var F5={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",h="[object Promise]",p="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",b="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",w=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[o]=_[i]=_[y]=_[a]=_[x]=_[s]=_[l]=_[c]=_[u]=_[d]=_[f]=_[p]=_[g]=_[m]=_[b]=!1;var S="object"==typeof Y&&Y&&Y.Object===Object&&Y,C="object"==typeof self&&self&&self.Object===Object&&self,E=S||C||Function("return this")(),A=t&&!t.nodeType&&t,O=A&&e&&!e.nodeType&&e,T=O&&O.exports===A,N=T&&S.process,R=function(){try{return N&&N.binding&&N.binding("util")}catch(OV){}}(),P=R&&R.isTypedArray;function M(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function L(e,t){return e.has(t)}function D(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function I(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var j=Array.prototype,z=Function.prototype,B=Object.prototype,F=E["__core-js_shared__"],q=z.toString,U=B.hasOwnProperty,W=function(){var e=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$=B.toString,V=RegExp("^"+q.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=T?E.Buffer:void 0,G=E.Symbol,K=E.Uint8Array,Q=B.propertyIsEnumerable,Z=j.splice,X=G?G.toStringTag:void 0,J=Object.getOwnPropertySymbols,ee=H?H.isBuffer:void 0,te=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ne=Ne(E,"DataView"),re=Ne(E,"Map"),oe=Ne(E,"Promise"),ie=Ne(E,"Set"),ae=Ne(E,"WeakMap"),se=Ne(Object,"create"),le=Le(ne),ce=Le(re),ue=Le(oe),de=Le(ie),fe=Le(ae),he=G?G.prototype:void 0,pe=he?he.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new me(e);this.size=t.size}function xe(e,t){var n=je(e),r=!n&&Ie(e),o=!n&&!r&&ze(e),i=!n&&!r&&!o&&We(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!U.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Me(c,l))||s.push(c);return s}function we(e,t){for(var n=e.length;n--;)if(De(e[n][0],t))return n;return-1}function ke(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=U.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(OV){}var o=$.call(e);r&&(t?e[X]=n:delete e[X]);return o}(e):function(e){return $.call(e)}(e)}function _e(e){return Ue(e)&&ke(e)==o}function Se(e,t,n,r,c){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,c,h){var b=je(e),w=je(t),k=b?i:Pe(e),_=w?i:Pe(t),S=(k=k==o?f:k)==f,C=(_=_==o?f:_)==f,E=k==_;if(E&&ze(e)){if(!ze(t))return!1;b=!0,S=!1}if(E&&!S)return h||(h=new ye),b||We(e)?Ae(e,t,n,r,c,h):function(e,t,n,r,o,i,c){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!i(new K(e),new K(t)));case a:case s:case d:return De(+e,+t);case l:return e.name==t.name&&e.message==t.message;case p:case m:return e==t+"";case u:var f=D;case g:var h=1&r;if(f||(f=I),e.size!=t.size&&!h)return!1;var b=c.get(e);if(b)return b==t;r|=2,c.set(e,t);var w=Ae(f(e),f(t),r,o,i,c);return c.delete(e),w;case v:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,k,n,r,c,h);if(!(1&n)){var A=S&&U.call(e,"__wrapped__"),O=C&&U.call(t,"__wrapped__");if(A||O){var T=A?e.value():e,N=O?t.value():t;return h||(h=new ye),c(T,N,n,r,h)}}if(!E)return!1;return h||(h=new ye),function(e,t,n,r,o,i){var a=1&n,s=Oe(e),l=s.length,c=Oe(t),u=c.length;if(l!=u&&!a)return!1;var d=l;for(;d--;){var f=s[d];if(!(a?f in t:U.call(t,f)))return!1}var h=i.get(e);if(h&&i.get(t))return h==t;var p=!0;i.set(e,t),i.set(t,e);var g=a;for(;++d<l;){var m=e[f=s[d]],v=t[f];if(r)var b=a?r(v,m,f,t,e,i):r(m,v,f,e,t,i);if(!(void 0===b?m===v||o(m,v,n,r,i):b)){p=!1;break}g||(g="constructor"==f)}if(p&&!g){var y=e.constructor,x=t.constructor;y==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,c,h)}(e,t,n,r,Se,c))}function Ce(e){return!(!qe(e)||function(e){return!!W&&W in e}(e))&&(Be(e)?V:w).test(Le(e))}function Ee(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||B,t!==r)return te(e);var t,n,r,o=[];for(var i in Object(e))U.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ae(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,f=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],p=t[u];if(r)var g=a?r(p,h,u,t,e,i):r(h,p,u,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!M(t,function(e,t){if(!L(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)})){d=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Oe(e){return function(e,t,n){var r=t(e);return je(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,$e,Re)}function Te(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ce(n)?n:void 0}ge.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(se){var r=t[e];return r===n?void 0:r}return U.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:U.call(t,e)},ge.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=se&&void 0===t?n:t,this},me.prototype.clear=function(){this.__data__=[],this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)},me.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},me.prototype.has=function(e){return we(this.__data__,e)>-1},me.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(re||me),string:new ge}},ve.prototype.delete=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Te(this,e).get(e)},ve.prototype.has=function(e){return Te(this,e).has(e)},ve.prototype.set=function(e,t){var n=Te(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,n),this},be.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new me,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof me){var r=n.__data__;if(!re||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Re=J?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(J(e),function(t){return Q.call(e,t)}))}:function(){return[]},Pe=ke;function Me(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){if(null!=e){try{return q.call(e)}catch(OV){}try{return e+""}catch(OV){}}return""}function De(e,t){return e===t||e!=e&&t!=t}(ne&&Pe(new ne(new ArrayBuffer(1)))!=x||re&&Pe(new re)!=u||oe&&Pe(oe.resolve())!=h||ie&&Pe(new ie)!=g||ae&&Pe(new ae)!=b)&&(Pe=function(e){var t=ke(e),n=t==f?e.constructor:void 0,r=n?Le(n):"";if(r)switch(r){case le:return x;case ce:return u;case ue:return h;case de:return g;case fe:return b}return t});var Ie=_e(function(){return arguments}())?_e:function(e){return Ue(e)&&U.call(e,"callee")&&!Q.call(e,"callee")},je=Array.isArray;var ze=ee||function(){return!1};function Be(e){if(!qe(e))return!1;var t=ke(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Fe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function qe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var We=P?function(e){return function(t){return e(t)}}(P):function(e){return Ue(e)&&Fe(e.length)&&!!_[ke(e)]};function $e(e){return null!=(t=e)&&Fe(t.length)&&!Be(t)?xe(e):Ee(e);var t}e.exports=function(e,t){return Se(e,t)}}(F5,F5.exports);var q5={};Object.defineProperty(q5,"__esModule",{value:!0});const U5=B5.exports,W5=F5.exports;var $5,V5;(V5=$5||($5={})).compose=function(e={},t={},n=!1){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let r=U5(t);n||(r=Object.keys(r).reduce((e,t)=>(null!=r[t]&&(e[t]=r[t]),e),{}));for(const o in e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},V5.diff=function(e={},t={}){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});const n=Object.keys(e).concat(Object.keys(t)).reduce((n,r)=>(W5(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n),{});return Object.keys(n).length>0?n:void 0},V5.invert=function(e={},t={}){e=e||{};const n=Object.keys(t).reduce((n,r)=>(t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n),{});return Object.keys(e).reduce((n,r)=>(e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n),n)},V5.transform=function(e,t,n=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!n)return t;const r=Object.keys(t).reduce((n,r)=>(void 0===e[r]&&(n[r]=t[r]),n),{});return Object.keys(r).length>0?r:void 0},q5.default=$5;var H5,Y5={};Object.defineProperty(Y5,"__esModule",{value:!0}),(H5||(H5={})).length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1},Y5.default=H5;var G5={};Object.defineProperty(G5,"__esModule",{value:!0});const K5=Y5;G5.default=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const t=this.ops[this.index];if(t){const n=this.offset,r=K5.default.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};{const r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"object"==typeof t.retain&&null!==t.retain?r.retain=t.retain:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?K5.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?"number"==typeof e.delete?"delete":"number"==typeof e.retain||"object"==typeof e.retain&&null!==e.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}}return[]}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=z5,r=B5.exports,o=F5.exports,i=q5;t.AttributeMap=i.default;const a=Y5;t.Op=a.default;const s=G5;t.OpIterator=s.default;const l=String.fromCharCode(0),c=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class u{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=r(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!=typeof n))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach(r=>{(e(r)?t:n).push(r)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce((e,t)=>t.insert?e+a.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+a.default.length(t),0)}slice(e=0,t=1/0){const n=[],r=new s.default(this.ops);let o=0;for(;o<t&&r.hasNext();){let i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.default.length(i)}return new u(n)}compose(e){const t=new s.default(this.ops),n=new s.default(e.ops),r=[],a=n.peek();if(null!=a&&"number"==typeof a.retain&&null==a.attributes){let e=a.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),r.push(t.next());a.retain-e>0&&n.next(a.retain-e)}const l=new u(r);for(;t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{const e=Math.min(t.peekLength(),n.peekLength()),r=t.next(e),a=n.next(e);if(a.retain){const s={};if("number"==typeof r.retain)s.retain="number"==typeof a.retain?e:a.retain;else if("number"==typeof a.retain)null==r.retain?s.insert=r.insert:s.retain=r.retain;else{const e=null==r.retain?"insert":"retain",[t,n,o]=c(r[e],a.retain),i=u.getHandler(t);s[e]={[t]:i.compose(n,o,"retain"===e)}}const d=i.default.compose(r.attributes,a.attributes,"number"==typeof r.retain);if(d&&(s.attributes=d),l.push(s),!n.hasNext()&&o(l.ops[l.ops.length-1],s)){const e=new u(t.rest());return l.concat(e).chop()}}else"number"==typeof a.delete&&("number"==typeof r.retain||"object"==typeof r.retain&&null!==r.retain)&&l.push(a)}return l.chop()}concat(e){const t=new u(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new u;const r=[this,e].map(t=>t.map(n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")),a=new u,c=n(r[0],r[1],t,!0),d=new s.default(this.ops),f=new s.default(e.ops);return c.forEach(e=>{let t=e[1].length;for(;t>0;){let r=0;switch(e[0]){case n.INSERT:r=Math.min(f.peekLength(),t),a.push(f.next(r));break;case n.DELETE:r=Math.min(t,d.peekLength()),d.next(r),a.delete(r);break;case n.EQUAL:r=Math.min(d.peekLength(),f.peekLength(),t);const e=d.next(r),s=f.next(r);o(e.insert,s.insert)?a.retain(r,i.default.diff(e.attributes,s.attributes)):a.push(s).delete(r)}t-=r}}),a.chop()}eachLine(e,t="\n"){const n=new s.default(this.ops);let r=new u,o=0;for(;n.hasNext();){if("insert"!==n.peekType())return;const i=n.peek(),s=a.default.length(i)-n.peekLength(),l="string"==typeof i.insert?i.insert.indexOf(t,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new u}}r.length()>0&&e(r,{},o)}invert(e){const t=new u;return this.reduce((n,r)=>{if(r.insert)t.delete(a.default.length(r));else{if("number"==typeof r.retain&&null==r.attributes)return t.retain(r.retain),n+r.retain;if(r.delete||"number"==typeof r.retain){const o=r.delete||r.retain;return e.slice(n,n+o).forEach(e=>{r.delete?t.push(e):r.retain&&r.attributes&&t.retain(a.default.length(e),i.default.invert(r.attributes,e.attributes))}),n+o}if("object"==typeof r.retain&&null!==r.retain){const o=e.slice(n,n+1),a=new s.default(o.ops).next(),[l,d,f]=c(r.retain,a.insert),h=u.getHandler(l);return t.retain({[l]:h.invert(d,f)},i.default.invert(r.attributes,a.attributes)),n+1}}return n},0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const n=e,r=new s.default(this.ops),o=new s.default(n.ops),l=new u;for(;r.hasNext()||o.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())l.push(o.next());else{const e=Math.min(r.peekLength(),o.peekLength()),n=r.next(e),a=o.next(e);if(n.delete)continue;if(a.delete)l.push(a);else{const r=n.retain,o=a.retain;let s="object"==typeof o&&null!==o?o:e;if("object"==typeof r&&null!==r&&"object"==typeof o&&null!==o){const e=Object.keys(r)[0];if(e===Object.keys(o)[0]){const n=u.getHandler(e);n&&(s={[e]:n.transform(r[e],o[e],t)})}}l.retain(s,i.default.transform(n.attributes,a.attributes,t))}}else l.retain(a.default.length(r.next()));return l.chop()}transformPosition(e,t=!1){t=!!t;const n=new s.default(this.ops);let r=0;for(;n.hasNext()&&r<=e;){const o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e}}u.Op=a.default,u.OpIterator=s.default,u.AttributeMap=i.default,u.handlers={},t.default=u,e.exports=u,e.exports.default=u}(y5,y5.exports);const Q5=G(y5.exports);class Z5 extends f5{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Z5.blotName="break",Z5.tagName="BR";class X5 extends v5{}const J5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function e3(e){return e.replace(/[&<>"']/g,e=>J5[e])}const t3=class extends s5{static compare(e,t){const n=t3.order.indexOf(e),r=t3.order.indexOf(t);return n>=0||r>=0?n-r:e===t?0:e<t?-1:1}formatAt(e,t,n,r){if(t3.compare(this.statics.blotName,n)<0&&this.scroll.query(n,U2.BLOT)){const o=this.isolate(e,t);r&&o.wrap(n,r)}else super.formatAt(e,t,n,r)}optimize(e){if(super.optimize(e),this.parent instanceof t3&&t3.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};let n3=t3;_(n3,"allowedChildren",[t3,Z5,f5,X5]),_(n3,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);class r3 extends c5{constructor(){super(...arguments),_(this,"cache",{})}delta(){return null==this.cache.delta&&(this.cache.delta=i3(this)),this.cache.delta}deleteAt(e,t){super.deleteAt(e,t),this.cache={}}formatAt(e,t,n,r){t<=0||(this.scroll.query(n,U2.BLOCK)?e+t===this.length()&&this.format(n,r):super.formatAt(e,Math.min(t,this.length()-e-1),n,r),this.cache={})}insertAt(e,t,n){if(null!=n)return super.insertAt(e,t,n),void(this.cache={});if(0===t.length)return;const r=t.split("\n"),o=r.shift();o.length>0&&(e<this.length()-1||null==this.children.tail?super.insertAt(Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let i=this;r.reduce((e,t)=>(i=i.split(e,!0),i.insertAt(0,t),t.length),e+o.length)}insertBefore(e,t){const{head:n}=this.children;super.insertBefore(e,t),n instanceof Z5&&n.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(e,t){super.moveChildren(e,t),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&(0===e||e>=this.length()-1)){const t=this.clone();return 0===e?(this.parent.insertBefore(t,this),this):(this.parent.insertBefore(t,this.next),t)}const n=super.split(e,t);return this.cache={},n}}r3.blotName="block",r3.tagName="P",r3.defaultChild=Z5,r3.allowedChildren=[Z5,n3,f5,X5];class o3 extends f5{attach(){super.attach(),this.attributes=new Z2(this.domNode)}delta(){return(new Q5).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,U2.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}formatAt(e,t,n,r){this.format(n,r)}insertAt(e,t,n){if(null!=n)return void super.insertAt(e,t,n);const r=t.split("\n"),o=r.pop(),i=r.map(e=>{const t=this.scroll.create(r3.blotName);return t.insertAt(0,e),t}),a=this.split(e);i.forEach(e=>{this.parent.insertBefore(e,a)}),o&&this.parent.insertBefore(this.scroll.create("text",o),a)}}function i3(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.descendants(t5).reduce((e,n)=>0===n.length()?e:e.insert(n.value(),a3(n,{},t)),new Q5).insert("\n",a3(e))}function a3(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==e?t:("formats"in e&&"function"==typeof e.formats&&(t={...t,...e.formats()},n&&delete t["code-token"]),null==e.parent||"scroll"===e.parent.statics.blotName||e.parent.statics.scope!==e.statics.scope?t:a3(e.parent,t,n))}o3.scope=U2.BLOCK_BLOT;const s3=class extends f5{static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(s3.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(e,t){if(0!==this.savedLength)return void super.format(e,t);let n=this,r=0;for(;null!=n&&n.statics.scope!==U2.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this.savedLength=s3.CONTENTS.length,n.optimize(),n.formatAt(r,s3.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const e=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof X5?this.prev:null,n=t?t.length():0,r=this.next instanceof X5?this.next:null,o=r?r.text:"",{textNode:i}=this,a=i.data.split(s3.CONTENTS).join("");let s;if(i.data=s3.CONTENTS,t)s=t,(a||r)&&(t.insertAt(t.length(),a+o),r&&r.remove());else if(r)s=r,r.insertAt(0,a);else{const e=document.createTextNode(a);s=this.scroll.create(e),this.parent.insertBefore(s,this)}if(this.remove(),e){const o=(e,o)=>t&&e===t.domNode?o:e===i?n+o-1:r&&e===r.domNode?n+a.length+o:null,l=o(e.start.node,e.start.offset),c=o(e.end.node,e.end.offset);if(null!==l&&null!==c)return{startNode:s.domNode,startOffset:l,endNode:s.domNode,endOffset:c}}return null}update(e,t){if(e.some(e=>"characterData"===e.type&&e.target===this.textNode)){const e=this.restore();e&&(t.range=e)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if("A"===t.domNode.tagName){this.savedLength=s3.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};let l3=s3;_(l3,"blotName","cursor"),_(l3,"className","ql-cursor"),_(l3,"tagName","span"),_(l3,"CONTENTS","\ufeff");var c3={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(c3);const u3=c3.exports,d3=new WeakMap,f3=["error","warn","log","info"];let h3="warn";function p3(e){if(h3&&f3.indexOf(e)<=f3.indexOf(h3)){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console[e](...n)}}function g3(e){return f3.reduce((t,n)=>(t[n]=p3.bind(console,n,e),t),{})}g3.level=e=>{h3=e},p3.level=g3.level;const m3=g3("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(e=>{document.addEventListener(e,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(e=>{const n=d3.get(e);n&&n.emitter&&n.emitter.handleDOM(...t)})})});class v3 extends u3{constructor(){super(),this.domListeners={},this.on("error",m3.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m3.log.call(m3,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.domListeners[e.type]||[]).forEach(t=>{let{node:r,handler:o}=t;(e.target===r||r.contains(e.target))&&o(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}_(v3,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),_(v3,"sources",{API:"api",SILENT:"silent",USER:"user"});const b3=g3("quill:selection");class y3{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=e,this.length=t}}class x3{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new y3(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,v3.sources.USER),1)}),this.emitter.on(v3.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const e=this.getNativeRange();null!=e&&e.start.node!==this.cursor.textNode&&this.emitter.once(v3.events.SCROLL_UPDATE,(t,n)=>{try{this.root.contains(e.start.node)&&this.root.contains(e.end.node)&&this.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset);const r=n.some(e=>"characterData"===e.type||"childList"===e.type||"attributes"===e.type&&e.target===this.root);this.update(r?v3.sources.SILENT:t)}catch(r){}})}),this.emitter.on(v3.events.SCROLL_OPTIMIZE,(e,t)=>{if(t.range){const{startNode:e,startOffset:n,endNode:r,endOffset:o}=t.range;this.setNativeRange(e,n,r,o),this.update(v3.sources.SILENT)}}),this.update(v3.sources.SILENT)}handleComposition(){this.emitter.on(v3.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(v3.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(v3.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(e,U2.BLOCK)){if(n.start.node!==this.cursor.textNode){const e=this.scroll.find(n.start.node,!1);if(null==e)return;if(e instanceof t5){const t=e.split(n.start.offset);e.parent.insertBefore(this.cursor,t)}else e.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.scroll.length();let r;e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let[o,i]=this.scroll.leaf(e);if(null==o)return null;if(t>0&&i===o.length()){const[t]=this.scroll.leaf(e+1);if(t){const[n]=this.scroll.line(e),[r]=this.scroll.line(e+1);n===r&&(o=t,i=0)}}[r,i]=o.position(i,!0);const a=document.createRange();if(t>0)return a.setStart(r,i),[o,i]=this.scroll.leaf(e+t),null==o?null:([r,i]=o.position(i,!0),a.setEnd(r,i),a.getBoundingClientRect());let s,l="left";if(r instanceof Text){if(!r.data.length)return null;i<r.data.length?(a.setStart(r,i),a.setEnd(r,i+1)):(a.setStart(r,i-1),a.setEnd(r,i),l="right"),s=a.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;s=o.domNode.getBoundingClientRect(),i>0&&(l="right")}return{bottom:s.top+s.height,height:s.height,left:s[l],right:s[l],top:s.top,width:0}}getNativeRange(){const e=document.getSelection();if(null==e||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(null==t)return null;const n=this.normalizeNative(t);return b3.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();if(null==t)return[null,null];return[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&w3(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(e=>{const[t,n]=e,r=this.scroll.find(t,!0),o=r.offset(this.scroll);return 0===n?o:r instanceof t5?o+r.index(t,n):o+r.length()}),r=Math.min(Math.max(...n),this.scroll.length()-1),o=Math.min(r,...n);return new y3(o,r-o)}normalizeNative(e){if(!w3(this.root,e.startContainer)||!e.collapsed&&!w3(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(e=>{let{node:t,offset:n}=e;for(;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length>0?t.childNodes.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}rangeToNative(e){const t=this.scroll.length(),n=(e,n)=>{e=Math.min(t-1,e);const[r,o]=this.scroll.leaf(e);return r?r.position(o,n):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b3.info("setNativeRange",e,t,n,r),null!=e&&(null==this.root.parentNode||null==e.parentNode||null==n.parentNode))return;const i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const o=document.createRange();o.setStart(e,t),o.setEnd(n,r),i.removeAllRanges(),i.addRange(o)}}else i.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v3.sources.API;if("string"==typeof t&&(n=t,t=!1),b3.info("setRange",e),null!=e){const n=this.rangeToNative(e);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v3.sources.USER;const t=this.lastRange,[n,r]=this.getRange();if(this.lastRange=n,this.lastNative=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!B2(t,this.lastRange)){if(!this.composing&&null!=r&&r.native.collapsed&&r.start.node!==this.cursor.textNode){const e=this.cursor.restore();e&&this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}const n=[v3.events.SELECTION_CHANGE,m2(this.lastRange),m2(t),e];this.emitter.emit(v3.events.EDITOR_CHANGE,...n),e!==v3.sources.SILENT&&this.emitter.emit(...n)}}}function w3(e,t){try{t.parentNode}catch(OV){return!1}return e.contains(t)}const k3=/^[ -~]*$/;class _3{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=O3(e),r=new Q5;return function(e){const t=[];return e.forEach(e=>{if("string"==typeof e.insert){e.insert.split("\n").forEach((n,r)=>{r&&t.push({insert:"\n",attributes:e.attributes}),n&&t.push({insert:n,attributes:e.attributes})})}else t.push(e)}),t}(n.ops.slice()).reduce((e,n)=>{const o=y5.exports.Op.length(n);let i=n.attributes||{},a=!1,s=!1;if(null!=n.insert){if(r.retain(o),"string"==typeof n.insert){const r=n.insert;s=!r.endsWith("\n")&&(t<=e||!!this.scroll.descendant(o3,e)[0]),this.scroll.insertAt(e,r);const[o,a]=this.scroll.line(e);let l=q2({},a3(o));if(o instanceof r3){const[e]=o.descendant(t5,a);e&&(l=q2(l,a3(e)))}i=y5.exports.AttributeMap.diff(l,i)||{}}else if("object"==typeof n.insert){const r=Object.keys(n.insert)[0];if(null==r)return e;const o=null!=this.scroll.query(r,U2.INLINE);if(o)(t<=e||this.scroll.descendant(o3,e)[0])&&(s=!0);else if(e>0){const[t,n]=this.scroll.descendant(t5,e-1);if(t instanceof X5){"\n"!==t.value()[n]&&(a=!0)}else t instanceof f5&&t.statics.scope===U2.INLINE_BLOT&&(a=!0)}if(this.scroll.insertAt(e,r,n.insert[r]),o){const[t]=this.scroll.descendant(t5,e);if(t){const e=q2({},a3(t));i=y5.exports.AttributeMap.diff(e,i)||{}}}}t+=o}else if(r.push(n),null!==n.retain&&"object"==typeof n.retain){const t=Object.keys(n.retain)[0];if(null==t)return e;this.scroll.updateEmbedAt(e,t,n.retain[t])}Object.keys(i).forEach(t=>{this.scroll.formatAt(e,o,t,i[t])});const l=a?1:0,c=s?1:0;return t+=l+c,r.retain(l),r.delete(c),e+o+l+c},0),r.reduce((e,t)=>"number"==typeof t.delete?(this.scroll.deleteAt(e,t.delete),e):e+y5.exports.Op.length(t),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update((new Q5).retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(r=>{this.scroll.lines(e,Math.max(t,1)).forEach(e=>{e.format(r,n[r])})}),this.scroll.optimize();const r=(new Q5).retain(e).retain(t,m2(n));return this.update(r)}formatText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach(r=>{this.scroll.formatAt(e,t,r,n[r])});const r=(new Q5).retain(e).retain(t,m2(n));return this.update(r)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Q5)}getFormat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(e=>{const[t]=e;t instanceof r3?n.push(t):t instanceof t5&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(t5,e,t));const[o,i]=[n,r].map(e=>{const t=e.shift();if(null==t)return{};let n=a3(t);for(;Object.keys(n).length>0;){const t=e.shift();if(null==t)return n;n=E3(a3(t),n)}return n});return{...o,...i}}getHTML(e,t){const[n,r]=this.scroll.line(e);if(n){const o=n.length();return!(n.length()>=r+t)||0===r&&t===o?C3(this.scroll,e,t,!0):C3(n,r,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(e=>"string"==typeof e.insert).map(e=>e.insert).join("")}insertContents(e,t){const n=O3(t),r=(new Q5).retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(r)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new Q5).retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach(r=>{this.scroll.formatAt(e,t.length,r,n[r])}),this.update((new Q5).retain(e).insert(t,m2(n)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if((null==e?void 0:e.statics.blotName)!==r3.blotName)return!1;const t=e;return!(t.children.length>1)&&t.children.head instanceof Z5}removeFormat(e,t){const n=this.getText(e,t),[r,o]=this.scroll.line(e+t);let i=0,a=new Q5;null!=r&&(i=r.length()-o,a=r.delta().slice(o,o+i-1).insert("\n"));const s=this.getContents(e,t+i).diff((new Q5).insert(n).concat(a)),l=(new Q5).retain(e).concat(s);return this.applyDelta(l)}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(k3)&&this.scroll.find(t[0].target)){const o=this.scroll.find(t[0].target),i=a3(o),a=o.offset(this.scroll),s=t[0].oldValue.replace(l3.CONTENTS,""),l=(new Q5).insert(s),c=(new Q5).insert(o.value()),u=n&&{oldRange:T3(n.oldRange,-a),newRange:T3(n.newRange,-a)};e=(new Q5).retain(a).concat(l.diff(c,u)).reduce((e,t)=>t.insert?e.insert(t.insert,i):e.push(t),new Q5),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&B2(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}function S3(e,t,n){if(0===e.length){const[e]=A3(n.pop());return t<=0?`</li></${e}>`:`</li></${e}>${S3([],t-1,n)}`}const[{child:r,offset:o,length:i,indent:a,type:s},...l]=e,[c,u]=A3(s);if(a>t)return n.push(s),a===t+1?`<${c}><li${u}>${C3(r,o,i)}${S3(l,a,n)}`:`<${c}><li>${S3(e,t+1,n)}`;const d=n[n.length-1];if(a===t&&s===d)return`</li><li${u}>${C3(r,o,i)}${S3(l,a,n)}`;const[f]=A3(n.pop());return`</li></${f}>${S3(e,t-1,n)}`}function C3(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in e&&"function"==typeof e.html)return e.html(t,n);if(e instanceof X5){return e3(e.value().slice(t,t+n)).replaceAll(" ","&nbsp;")}if(e instanceof i5){if("list-container"===e.statics.blotName){const r=[];return e.children.forEachAt(t,n,(e,t,n)=>{const o="formats"in e&&"function"==typeof e.formats?e.formats():{};r.push({child:e,offset:t,length:n,indent:o.indent||0,type:o.list})}),S3(r,-1,[])}const o=[];if(e.children.forEachAt(t,n,(e,t,n)=>{o.push(C3(e,t,n))}),r||"list"===e.statics.blotName)return o.join("");const{outerHTML:i,innerHTML:a}=e.domNode,[s,l]=i.split(`>${a}<`);return"<table"===s?`<table style="border: 1px solid #000;">${o.join("")}<${l}`:`${s}>${o.join("")}<${l}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function E3(e,t){return Object.keys(t).reduce((n,r)=>{if(null==e[r])return n;const o=t[r];return o===e[r]?n[r]=o:Array.isArray(o)?o.indexOf(e[r])<0?n[r]=o.concat([e[r]]):n[r]=o:n[r]=[o,e[r]],n},{})}function A3(e){const t="ordered"===e?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function O3(e){return e.reduce((e,t)=>{if("string"==typeof t.insert){const n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)},new Q5)}function T3(e,t){let{index:n,length:r}=e;return new y3(n+t,r)}class N3{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=e,this.options=t}}_(N3,"DEFAULTS",{});const R3="\ufeff";class P3 extends f5{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(e=>{this.contentNode.appendChild(e)}),this.leftGuard=document.createTextNode(R3),this.rightGuard=document.createTextNode(R3),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t,n=null;const r=e.data.split(R3).join("");if(e===this.leftGuard)if(this.prev instanceof X5){const e=this.prev.length();this.prev.insertAt(e,r),n={startNode:this.prev.domNode,startOffset:e+r.length}}else t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this),n={startNode:t,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof X5?(this.next.insertAt(0,r),n={startNode:this.next.domNode,startOffset:r.length}):(t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this.next),n={startNode:t,startOffset:r.length}));return e.data=R3,n}update(e,t){e.forEach(e=>{if("characterData"===e.type&&(e.target===this.leftGuard||e.target===this.rightGuard)){const n=this.restore(e.target);n&&(t.range=n)}})}}class M3{constructor(e,t){_(this,"isComposing",!1),this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;!t||t instanceof P3||(this.emitter.emit(v3.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(v3.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(v3.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(v3.events.COMPOSITION_END,e),this.isComposing=!1}}const L3=class{constructor(e,t){_(this,"modules",{}),this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{null==this.modules[e]&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};let D3=L3;_(D3,"DEFAULTS",{modules:{}}),_(D3,"themes",{default:L3});const I3=e=>e.parentElement||e.getRootNode().host||null,j3=e=>{const t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,r="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*r,left:t.left}},z3=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},B3=(e,t,n,r,o,i)=>e<n&&t>r?0:e<n?-(n-e+o):t>r?t-e>r-n?e+o-n:t-r+i:0,F3=["block","break","cursor","inline","scroll","text"],q3=g3("quill"),U3=new H2;i5.uiClass="ql-ui";const W3=class{static debug(e){!0===e&&(e="log"),g3.level(e)}static find(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return d3.get(e)||U3.find(e,t)}static import(e){return null==this.imports[e]&&q3.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const e=arguments.length<=0?void 0:arguments[0],t=!!(arguments.length<=1?void 0:arguments[1]),n="attrName"in e?e.attrName:e.blotName;"string"==typeof n?this.register(`formats/${n}`,e,t):Object.keys(e).forEach(n=>{this.register(n,e[n],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[e]||n||q3.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&"boolean"!=typeof t&&"abstract"!==t.blotName&&U3.register(t),"function"==typeof t.register&&t.register(U3)}}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(e,t){const n=V3(e);if(!n)throw new Error("Invalid Quill container");const r=!t.theme||t.theme===$3.DEFAULTS.theme,o=r?D3:$3.import(`themes/${t.theme}`);if(!o)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:i,...a}=$3.DEFAULTS,{modules:s,...l}=o.DEFAULTS;let c=H3(t.modules);null!=c&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const u=q2({},H3(i),H3(s),c),d={...a,...Y3(l),...Y3(t)};let f=t.registry;f?t.formats&&q3.warn('Ignoring "formats" option because "registry" is specified'):f=t.formats?((e,t,n)=>{const r=new H2;return F3.forEach(e=>{const n=t.query(e);n&&r.register(n)}),e.forEach(e=>{var o;let i=t.query(e);i||n.error(`Cannot register "${e}" specified in "formats" config. Are you sure it was registered?`);let a=0;for(;i;)if(r.register(i),i="blotName"in i&&null!=(o=i.requiredContainer)?o:null,a+=1,a>100){n.error(`Cycle detected in registering blot requiredContainer: "${e}"`);break}}),r})(t.formats,d.registry,q3):d.registry;return{...d,registry:f,container:n,theme:o,modules:Object.entries(u).reduce((e,t)=>{let[n,r]=t;if(!r)return e;const o=$3.import(`modules/${n}`);return null==o?(q3.error(`Cannot load ${n} module. Are you sure you registered it?`),e):{...e,[n]:q2({},o.DEFAULTS||{},r)}},{}),bounds:V3(d.bounds)}}(e,t),this.container=this.options.container,null==this.container)return void q3.error("Invalid Quill container",e);this.options.debug&&W3.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",d3.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new v3;const r=g5.blotName,o=this.options.registry.query(r);if(!o||!("blotName"in o))throw new Error(`Cannot initialize Quill without "${r}" blot`);if(this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new _3(this.scroll),this.selection=new x3(this.scroll,this.emitter),this.composition=new M3(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(v3.events.EDITOR_CHANGE,e=>{e===v3.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(v3.events.SCROLL_UPDATE,(e,t)=>{const n=this.selection.lastRange,[r]=this.selection.getRange(),o=n&&r?{oldRange:n,newRange:r}:void 0;G3.call(this,()=>this.editor.update(null,t,o),e)}),this.emitter.on(v3.events.SCROLL_EMBED_UPDATE,(e,t)=>{const n=this.selection.lastRange,[r]=this.selection.getRange(),o=n&&r?{oldRange:n,newRange:r}:void 0;G3.call(this,()=>{const n=(new Q5).retain(e.offset(this)).retain({[e.statics.blotName]:t});return this.editor.update(n,[],o)},W3.sources.USER)}),n){const e=this.clipboard.convert({html:`${n}<p><br></p>`,text:"\n"});this.setContents(e)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){const t=e;(e=document.createElement("div")).classList.add(t)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=K3(e,t,n),G3.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v3.sources.API;return G3.call(this,()=>{const n=this.getSelection(!0);let r=new Q5;if(null==n)return r;if(this.scroll.query(e,U2.BLOCK))r=this.editor.formatLine(n.index,n.length,{[e]:t});else{if(0===n.length)return this.selection.format(e,t),r;r=this.editor.formatText(n.index,n.length,{[e]:t})}return this.setSelection(n,v3.sources.SILENT),r},n)}formatLine(e,t,n,r,o){let i;return[e,t,i,o]=K3(e,t,n,r,o),G3.call(this,()=>this.editor.formatLine(e,t,i),o,e,0)}formatText(e,t,n,r,o){let i;return[e,t,i,o]=K3(e,t,n,r,o),G3.call(this,()=>this.editor.formatText(e,t,i),o,e,0)}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null;if(n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length),!n)return null;const r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}getContents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;return[e,t]=K3(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=null!=t?t:this.getLength()-e),[e,t]=K3(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=null!=t?t:this.getLength()-e),[e,t]=K3(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:W3.sources.API;return G3.call(this,()=>this.editor.insertEmbed(e,t,n),r,e)}insertText(e,t,n,r,o){let i;return[e,,i,o]=K3(e,0,n,r,o),G3.call(this,()=>this.editor.insertText(e,t,i),o,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=K3(e,t,n),G3.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){((e,t)=>{var n,r,o,i,a;const s=e.ownerDocument;let l=t,c=e;for(;c;){const e=c===s.body,t=e?{top:0,right:null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:s.documentElement.clientWidth,bottom:null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:s.documentElement.clientHeight,left:0}:j3(c),u=getComputedStyle(c),d=B3(l.left,l.right,t.left,t.right,z3(u.scrollPaddingLeft),z3(u.scrollPaddingRight)),f=B3(l.top,l.bottom,t.top,t.bottom,z3(u.scrollPaddingTop),z3(u.scrollPaddingBottom));if(d||f)if(e)null==(a=s.defaultView)||a.scrollBy(d,f);else{const{scrollLeft:e,scrollTop:t}=c;f&&(c.scrollTop+=f),d&&(c.scrollLeft+=d);const n=c.scrollLeft-e,r=c.scrollTop-t;l={left:l.left-n,top:l.top-r,right:l.right-n,bottom:l.bottom-r}}c=e||"fixed"===u.position?null:I3(c)}})(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v3.sources.API;return G3.call(this,()=>{e=new Q5(e);const t=this.getLength(),n=this.editor.deleteText(0,t),r=this.editor.insertContents(0,e),o=this.editor.deleteText(this.getLength()-1,1);return n.compose(r).compose(o)},t)}setSelection(e,t,n){null==e?this.selection.setRange(null,t||W3.sources.API):([e,t,,n]=K3(e,t,n),this.selection.setRange(new y3(Math.max(0,e),t),n),n!==v3.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v3.sources.API;const n=(new Q5).insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v3.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v3.sources.API;return G3.call(this,()=>(e=new Q5(e),this.editor.applyDelta(e)),t,!0)}};let $3=W3;function V3(e){return"string"==typeof e?document.querySelector(e):e}function H3(e){return Object.entries(null!=e?e:{}).reduce((e,t)=>{let[n,r]=t;return{...e,[n]:!0===r?{}:r}},{})}function Y3(e){return Object.fromEntries(Object.entries(e).filter(e=>void 0!==e[1]))}function G3(e,t,n,r){if(!this.isEnabled()&&t===v3.sources.USER&&!this.allowReadOnlyEdits)return new Q5;let o=null==n?null:this.getSelection();const i=this.editor.delta,a=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=Q3(o,a,t):0!==r&&(o=Q3(o,n,r,t)),this.setSelection(o,v3.sources.SILENT)),a.length()>0){const e=[v3.events.TEXT_CHANGE,a,i,t];this.emitter.emit(v3.events.EDITOR_CHANGE,...e),t!==v3.sources.SILENT&&this.emitter.emit(...e)}return a}function K3(e,t,n,r,o){let i={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=r,r=n,n=t,t=0),"object"==typeof n?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),[e,t,i,o=o||v3.sources.API]}function Q3(e,t,n,r){const o="number"==typeof n?n:0;if(null==e)return null;let i,a;return t&&"function"==typeof t.transformPosition?[i,a]=[e.index,e.index+e.length].map(e=>t.transformPosition(e,r!==v3.sources.USER)):[i,a]=[e.index,e.index+e.length].map(e=>e<t||e===t&&r===v3.sources.USER?e:o>=0?e+o:Math.max(t,e+o)),new y3(i,a-i)}_($3,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:U3,theme:"default"}),_($3,"events",v3.events),_($3,"sources",v3.sources),_($3,"version","2.0.3"),_($3,"imports",{delta:Q5,parchment:b5,"core/module":N3,"core/theme":D3});class Z3 extends d5{}function X3(e){return e instanceof r3||e instanceof o3}function J3(e){return"function"==typeof e.updateContent}class e4 extends g5{constructor(e,t,n){let{emitter:r}=n;super(e,t),this.emitter=r,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",e=>this.handleDragStart(e))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(v3.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(v3.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(v3.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[n,r]=this.line(e),[o]=this.line(e+t);if(super.deleteAt(e,t),null!=o&&n!==o&&r>0){if(n instanceof o3||o instanceof o3)return void this.optimize();const e=o.children.head instanceof Z5?null:o.children.head;n.moveChildren(o,e),n.remove()}this.optimize()}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(null==n||null==this.scroll.query(t,U2.BLOCK)){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e),null==n&&t.endsWith("\n")?e.insertAt(0,t.slice(0,-1),n):e.insertAt(0,t,n)}else{const e=this.scroll.create(t,n);this.appendChild(e)}else super.insertAt(e,t,n);this.optimize()}insertBefore(e,t){if(e.statics.scope===U2.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(e),super.insertBefore(n,t)}else super.insertBefore(e,t)}insertContents(e,t){const n=this.deltaToRenderBlocks(t.concat((new Q5).insert("\n"))),r=n.pop();if(null==r)return;this.batchStart();const o=n.shift();if(o){const t="block"===o.type&&(0===o.delta.length()||!this.descendant(o3,e)[0]&&e<this.length()),n="block"===o.type?o.delta:(new Q5).insert({[o.key]:o.value});t4(this,e,n);const r="block"===o.type?1:0,i=e+n.length()+r;t&&this.insertAt(i-1,"\n");const a=a3(this.line(e)[0]),s=y5.exports.AttributeMap.diff(a,o.attributes)||{};Object.keys(s).forEach(e=>{this.formatAt(i-1,1,e,s[e])}),e=i}let[i,a]=this.children.find(e);if(n.length&&(i&&(i=i.split(a),a=0),n.forEach(e=>{if("block"===e.type){t4(this.createBlock(e.attributes,i||void 0),0,e.delta)}else{const t=this.create(e.key,e.value);this.insertBefore(t,i||void 0),Object.keys(e.attributes).forEach(n=>{t.format(n,e.attributes[n])})}})),"block"===r.type&&r.delta.length()){t4(this,i?i.offset(i.scroll)+a:this.length(),r.delta)}this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[n,r]=t;return n instanceof t5?[n,r]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(X3,e)}lines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;const n=(e,t,r)=>{let o=[],i=r;return e.children.forEachAt(t,r,(e,t,r)=>{X3(e)?o.push(e):e instanceof d5&&(o=o.concat(n(e,t,i))),i-=r}),o};return n(this,e,t)}optimize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(v3.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch)return void(Array.isArray(e)&&(this.batch=this.batch.concat(e)));let t=v3.sources.USER;"string"==typeof e&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),(e=e.filter(e=>{let{target:t}=e;const n=this.find(t,!0);return n&&!J3(n)})).length>0&&this.emitter.emit(v3.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(v3.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,n){const[r]=this.descendant(e=>e instanceof o3,e);r&&r.statics.blotName===t&&J3(r)&&r.updateContent(n)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let n=new Q5;return e.forEach(e=>{var r;const o=null==e?void 0:e.insert;if(o)if("string"==typeof o){const r=o.split("\n");r.slice(0,-1).forEach(r=>{var o;n.insert(r,e.attributes),t.push({type:"block",delta:n,attributes:null!=(o=e.attributes)?o:{}}),n=new Q5});const i=r[r.length-1];i&&n.insert(i,e.attributes)}else{const i=Object.keys(o)[0];if(!i)return;this.query(i,U2.INLINE)?n.push(e):(n.length()&&t.push({type:"block",delta:n,attributes:{}}),n=new Q5,t.push({type:"blockEmbed",key:i,value:o[i],attributes:null!=(r=e.attributes)?r:{}}))}}),n.length()&&t.push({type:"block",delta:n,attributes:{}}),t}createBlock(e,t){let n;const r={};Object.entries(e).forEach(e=>{let[t,o]=e;null!=this.query(t,U2.BLOCK&U2.BLOT)?n=t:r[t]=o});const o=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(o,t||void 0);const i=o.length();return Object.entries(r).forEach(e=>{let[t,n]=e;o.formatAt(0,i,t,n)}),o}}function t4(e,t,n){n.reduce((t,n)=>{const r=y5.exports.Op.length(n);let o=n.attributes||{};if(null!=n.insert)if("string"==typeof n.insert){const r=n.insert;e.insertAt(t,r);const[i]=e.descendant(t5,t),a=a3(i);o=y5.exports.AttributeMap.diff(a,o)||{}}else if("object"==typeof n.insert){const r=Object.keys(n.insert)[0];if(null==r)return t;e.insertAt(t,r,n.insert[r]);if(null!=e.scroll.query(r,U2.INLINE)){const[n]=e.descendant(t5,t),r=a3(n);o=y5.exports.AttributeMap.diff(r,o)||{}}}return Object.keys(o).forEach(n=>{e.formatAt(t,r,n,o[n])}),t+r},t)}_(e4,"blotName","scroll"),_(e4,"className","ql-editor"),_(e4,"tagName","DIV"),_(e4,"defaultChild",r3),_(e4,"allowedChildren",[r3,o3,Z3]);const n4={scope:U2.BLOCK,whitelist:["right","center","justify"]},r4=new W2("align","align",n4),o4=new G2("align","ql-align",n4),i4=new Q2("align","text-align",n4);class a4 extends Q2{value(e){let t=super.value(e);if(!t.startsWith("rgb("))return t;t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return`#${t.split(",").map(e=>`00${parseInt(e,10).toString(16)}`.slice(-2)).join("")}`}}const s4=new G2("color","ql-color",{scope:U2.INLINE}),l4=new a4("color","color",{scope:U2.INLINE}),c4=new G2("background","ql-bg",{scope:U2.INLINE}),u4=new a4("background","background-color",{scope:U2.INLINE});class d4 extends Z3{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(e=>e.length()<=1?"":e.domNode.innerText).join("\n").slice(e,e+t)}html(e,t){return`<pre>\n${e3(this.code(e,t))}\n</pre>`}}class f4 extends r3{static register(){$3.register(d4)}}_(f4,"TAB","  ");class h4 extends n3{}h4.blotName="code",h4.tagName="CODE",f4.blotName="code-block",f4.className="ql-code-block",f4.tagName="DIV",d4.blotName="code-block-container",d4.className="ql-code-block-container",d4.tagName="DIV",d4.allowedChildren=[f4],f4.allowedChildren=[X5,Z5,l3],f4.requiredContainer=d4;const p4={scope:U2.BLOCK,whitelist:["rtl"]},g4=new W2("direction","dir",p4),m4=new G2("direction","ql-direction",p4),v4=new Q2("direction","direction",p4),b4={scope:U2.INLINE,whitelist:["serif","monospace"]},y4=new G2("font","ql-font",b4);const x4=new class extends Q2{value(e){return super.value(e).replace(/["']/g,"")}}("font","font-family",b4),w4=new G2("size","ql-size",{scope:U2.INLINE,whitelist:["small","large","huge"]}),k4=new Q2("size","font-size",{scope:U2.INLINE,whitelist:["10px","18px","32px"]}),_4=g3("quill:keyboard"),S4=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class C4 extends N3{static match(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&null!==t[n])&&(t.key===e.key||t.key===e.which)}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(e=>{this.options.bindings[e]&&this.addBinding(this.options.bindings[e])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(e){if("string"==typeof e||"number"==typeof e)e={key:e};else{if("object"!=typeof e)return null;e=m2(e)}e.shortKey&&(e[S4]=e.shortKey,delete e.shortKey);return e}(e);if(null==r)return void _4.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n});(Array.isArray(r.key)?r.key:[r.key]).forEach(e=>{const o={...r,key:e,...t,...n};this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing)return;if(229===e.keyCode&&("Enter"===e.key||"Backspace"===e.key))return;const t=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(t=>C4.match(e,t));if(0===t.length)return;const n=$3.find(e.target,!0);if(n&&n.scroll!==this.quill.scroll)return;const r=this.quill.getSelection();if(null==r||!this.quill.hasFocus())return;const[o,i]=this.quill.getLine(r.index),[a,s]=this.quill.getLeaf(r.index),[l,c]=0===r.length?[a,s]:this.quill.getLeaf(r.index+r.length),u=a instanceof v5?a.value().slice(0,s):"",d=l instanceof v5?l.value().slice(c):"",f={collapsed:0===r.length,empty:0===r.length&&o.length()<=1,format:this.quill.getFormat(r),line:o,offset:i,prefix:u,suffix:d,event:e};t.some(e=>{if(null!=e.collapsed&&e.collapsed!==f.collapsed)return!1;if(null!=e.empty&&e.empty!==f.empty)return!1;if(null!=e.offset&&e.offset!==f.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(e=>null==f.format[e]))return!1}else if("object"==typeof e.format&&!Object.keys(e.format).every(t=>!0===e.format[t]?null!=f.format[t]:!1===e.format[t]?null==f.format[t]:B2(e.format[t],f.format[t])))return!1;return!(null!=e.prefix&&!e.prefix.test(f.prefix))&&(!(null!=e.suffix&&!e.suffix.test(f.suffix))&&!0!==e.handler.call(this,r,f,e))})&&e.preventDefault()})}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(0===e.index||this.quill.getLength()<=1)return;let r={};const[o]=this.quill.getLine(e.index);let i=(new Q5).retain(e.index-n).delete(n);if(0===t.offset){const[t]=this.quill.getLine(e.index-1);if(t){if(!("block"===t.statics.blotName&&t.length()<=1)){const t=o.formats(),n=this.quill.getFormat(e.index-1,1);if(r=y5.exports.AttributeMap.diff(t,n)||{},Object.keys(r).length>0){const t=(new Q5).retain(e.index+o.length()-2).retain(1,r);i=i.compose(t)}}}}this.quill.updateContents(i,$3.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let r={};const[o]=this.quill.getLine(e.index);let i=(new Q5).retain(e.index).delete(n);if(t.offset>=o.length()-1){const[t]=this.quill.getLine(e.index+1);if(t){const n=o.formats(),a=this.quill.getFormat(e.index,1);r=y5.exports.AttributeMap.diff(n,a)||{},Object.keys(r).length>0&&(i=i.retain(t.length()-1).retain(1,r))}}this.quill.updateContents(i,$3.sources.USER),this.quill.focus()}handleDeleteRange(e){R4({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce((e,n)=>(this.quill.scroll.query(n,U2.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e),{}),r=(new Q5).retain(e.index).delete(e.length).insert("\n",n);this.quill.updateContents(r,$3.sources.USER),this.quill.setSelection(e.index+1,$3.sources.SILENT),this.quill.focus()}}const E4={bindings:{bold:T4("bold"),italic:T4("italic"),underline:T4("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","+1",$3.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","-1",$3.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){null!=t.format.indent?this.quill.format("indent","-1",$3.sources.USER):null!=t.format.list&&this.quill.format("list",!1,$3.sources.USER)}},"indent code-block":A4(!0),"outdent code-block":A4(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,$3.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=(new Q5).retain(e.index).delete(e.length).insert("\t");return this.quill.updateContents(n,$3.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,$3.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,$3.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){const n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,$3.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){const[t,n]=this.quill.getLine(e.index),r={...t.formats(),list:"checked"},o=(new Q5).retain(e.index).insert("\n",r).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,$3.sources.USER),this.quill.setSelection(e.index+1,$3.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){const[n,r]=this.quill.getLine(e.index),o=(new Q5).retain(e.index).insert("\n",t.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(o,$3.sources.USER),this.quill.setSelection(e.index+1,$3.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[n,r,o,i]=t.getTable(e),a=function(e,t,n,r){if(null==t.prev&&null==t.next)return null==n.prev&&null==n.next?0===r?-1:1:null==n.prev?-1:1;if(null==t.prev)return-1;if(null==t.next)return 1;return null}(0,r,o,i);if(null==a)return;let s=n.offset();if(a<0){const t=(new Q5).retain(s).insert("\n");this.quill.updateContents(t,$3.sources.USER),this.quill.setSelection(e.index+1,e.length,$3.sources.SILENT)}else if(a>0){s+=n.length();const e=(new Q5).retain(s).insert("\n");this.quill.updateContents(e,$3.sources.USER),this.quill.setSelection(s,$3.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:n,line:r}=t,o=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(o-1,$3.sources.USER):this.quill.setSelection(o+r.length(),$3.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(null==this.quill.scroll.query("list"))return!0;const{length:n}=t.prefix,[r,o]=this.quill.getLine(e.index);if(o>n)return!0;let i;switch(t.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(e.index," ",$3.sources.USER),this.quill.history.cutoff();const a=(new Q5).retain(e.index-o).delete(n+1).retain(r.length()-2-o).retain(1,{list:i});return this.quill.updateContents(a,$3.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,$3.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,n]=this.quill.getLine(e.index);let r=2,o=t;for(;null!=o&&o.length()<=1&&o.formats()["code-block"];)if(o=o.prev,r-=1,r<=0){const r=(new Q5).retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(r,$3.sources.USER),this.quill.setSelection(e.index-1,$3.sources.SILENT),!1}return!0}},"embed left":O4("ArrowLeft",!1),"embed left shift":O4("ArrowLeft",!0),"embed right":O4("ArrowRight",!1),"embed right shift":O4("ArrowRight",!0),"table down":N4(!1),"table up":N4(!0)}};function A4(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,n){let{event:r}=n;const o=this.quill.scroll.query("code-block"),{TAB:i}=o;if(0===t.length&&!r.shiftKey)return this.quill.insertText(t.index,i,$3.sources.USER),void this.quill.setSelection(t.index+i.length,$3.sources.SILENT);const a=0===t.length?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:s,length:l}=t;a.forEach((t,n)=>{e?(t.insertAt(0,i),0===n?s+=i.length:l+=i.length):t.domNode.textContent.startsWith(i)&&(t.deleteAt(0,i.length),0===n?s-=i.length:l-=i.length)}),this.quill.update($3.sources.USER),this.quill.setSelection(s,l,$3.sources.SILENT)}}}function O4(e,t){const n="ArrowLeft"===e?"prefix":"suffix";return{key:e,shiftKey:t,altKey:null,[n]:/^$/,handler(n){let{index:r}=n;"ArrowRight"===e&&(r+=n.length+1);const[o]=this.quill.getLeaf(r);return!(o instanceof f5)||("ArrowLeft"===e?t?this.quill.setSelection(n.index-1,n.length+1,$3.sources.USER):this.quill.setSelection(n.index-1,$3.sources.USER):t?this.quill.setSelection(n.index,n.length+1,$3.sources.USER):this.quill.setSelection(n.index+n.length+1,$3.sources.USER),!1)}}}function T4(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],$3.sources.USER)}}}function N4(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){const r=e?"prev":"next",o=n.line,i=o.parent[r];if(null!=i){if("table-row"===i.statics.blotName){let e=i.children.head,t=o;for(;null!=t.prev;)t=t.prev,e=e.next;const r=e.offset(this.quill.scroll)+Math.min(n.offset,e.length()-1);this.quill.setSelection(r,0,$3.sources.USER)}}else{const t=o.table()[r];null!=t&&(e?this.quill.setSelection(t.offset(this.quill.scroll)+t.length()-1,0,$3.sources.USER):this.quill.setSelection(t.offset(this.quill.scroll),0,$3.sources.USER))}return!1}}}function R4(e){let{quill:t,range:n}=e;const r=t.getLines(n);let o={};if(r.length>1){const e=r[0].formats(),t=r[r.length-1].formats();o=y5.exports.AttributeMap.diff(t,e)||{}}t.deleteText(n,$3.sources.USER),Object.keys(o).length>0&&t.formatLine(n.index,1,o,$3.sources.USER),t.setSelection(n.index,$3.sources.SILENT)}C4.DEFAULTS=E4;const P4=/font-weight:\s*normal/,M4=["P","OL","UL"],L4=e=>e&&M4.includes(e.tagName);const D4=/\bmso-list:[^;]*ignore/i,I4=/\bmso-list:[^;]*\bl(\d+)/i,j4=/\bmso-list:[^;]*\blevel(\d+)/i,z4=e=>{var t,n;const r=Array.from(e.querySelectorAll("[style*=mso-list]")),o=[],i=[];r.forEach(e=>{(e.getAttribute("style")||"").match(D4)?o.push(e):i.push(e)}),o.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)});const a=e.documentElement.innerHTML,s=i.map(e=>((e,t)=>{const n=e.getAttribute("style"),r=null==n?void 0:n.match(I4);if(!r)return null;const o=Number(r[1]),i=null==n?void 0:n.match(j4),a=i?Number(i[1]):1,s=new RegExp(`@list l${o}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=t.match(s);return{id:o,indent:a,type:l&&"bullet"===l[1]?"bullet":"ordered",element:e}})(e,a)).filter(e=>e);for(;s.length;){const e=[];let r=s.shift();for(;r;)e.push(r),r=s.length&&(null==(t=s[0])?void 0:t.element)===r.element.nextElementSibling&&s[0].id===r.id?s.shift():null;const o=document.createElement("ul");e.forEach(e=>{const t=document.createElement("li");t.setAttribute("data-list",e.type),e.indent>1&&t.setAttribute("class","ql-indent-"+(e.indent-1)),t.innerHTML=e.element.innerHTML,o.appendChild(t)});const i=null==(n=e[0])?void 0:n.element,{parentNode:a}=null!=i?i:{};i&&(null==a||a.replaceChild(o,i)),e.slice(1).forEach(e=>{let{element:t}=e;null==a||a.removeChild(t)})}};const B4=[function(e){"urn:schemas-microsoft-com:office:word"===e.documentElement.getAttribute("xmlns:w")&&z4(e)},function(e){e.querySelector('[id^="docs-internal-guid-"]')&&((e=>{Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return null==(t=e.getAttribute("style"))?void 0:t.match(P4)}).forEach(t=>{var n;const r=e.createDocumentFragment();r.append(...t.childNodes),null==(n=t.parentNode)||n.replaceChild(r,t)})})(e),(e=>{Array.from(e.querySelectorAll("br")).filter(e=>L4(e.previousElementSibling)&&L4(e.nextElementSibling)).forEach(e=>{var t;null==(t=e.parentNode)||t.removeChild(e)})})(e))}],F4=g3("quill:clipboard"),q4=[[Node.TEXT_NODE,function(e,t,n){var r;let o=e.data;if("O:P"===(null==(r=e.parentElement)?void 0:r.tagName))return t.insert(o.trim());if(!K4(e)){if(0===o.trim().length&&o.includes("\n")&&!function(e,t){return e.previousElementSibling&&e.nextElementSibling&&!Y4(e.previousElementSibling,t)&&!Y4(e.nextElementSibling,t)}(e,n))return t;o=o.replace(/[^\S\u00a0]/g," "),o=o.replace(/ {2,}/g," "),(null==e.previousSibling&&null!=e.parentElement&&Y4(e.parentElement,n)||e.previousSibling instanceof Element&&Y4(e.previousSibling,n))&&(o=o.replace(/^ /,"")),(null==e.nextSibling&&null!=e.parentElement&&Y4(e.parentElement,n)||e.nextSibling instanceof Element&&Y4(e.nextSibling,n))&&(o=o.replace(/ $/,"")),o=o.replaceAll(" "," ")}return t.insert(o)}],[Node.TEXT_NODE,X4],["br",function(e,t){H4(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,X4],[Node.ELEMENT_NODE,function(e,t,n){const r=n.query(e);if(null==r)return t;if(r.prototype instanceof f5){const t={},o=r.value(e);if(null!=o)return t[r.blotName]=o,(new Q5).insert(t,r.formats(e,n))}else if(r.prototype instanceof c5&&!H4(t,"\n")&&t.insert("\n"),"blotName"in r&&"formats"in r&&"function"==typeof r.formats)return V4(t,r.blotName,r.formats(e,n),n);return t}],[Node.ELEMENT_NODE,function(e,t,n){const r=W2.keys(e),o=G2.keys(e),i=Q2.keys(e),a={};return r.concat(o).concat(i).forEach(t=>{let r=n.query(t,U2.ATTRIBUTE);null!=r&&(a[r.attrName]=r.value(e),a[r.attrName])||(r=U4[t],null==r||r.attrName!==t&&r.keyName!==t||(a[r.attrName]=r.value(e)||void 0),r=W4[t],null==r||r.attrName!==t&&r.keyName!==t||(r=W4[t],a[r.attrName]=r.value(e)||void 0))}),Object.entries(a).reduce((e,t)=>{let[r,o]=t;return V4(e,r,o,n)},t)}],[Node.ELEMENT_NODE,function(e,t,n){var r;const o={},i=e.style||{};"italic"===i.fontStyle&&(o.italic=!0);"underline"===i.textDecoration&&(o.underline=!0);"line-through"===i.textDecoration&&(o.strike=!0);((null==(r=i.fontWeight)?void 0:r.startsWith("bold"))||parseInt(i.fontWeight,10)>=700)&&(o.bold=!0);if(t=Object.entries(o).reduce((e,t)=>{let[r,o]=t;return V4(e,r,o,n)},t),parseFloat(i.textIndent||0)>0)return(new Q5).insert("\t").concat(t);return t}],["li",function(e,t,n){const r=n.query(e);if(null==r||"list"!==r.blotName||!H4(t,"\n"))return t;let o=-1,i=e.parentNode;for(;null!=i;)["OL","UL"].includes(i.tagName)&&(o+=1),i=i.parentNode;return o<=0?t:t.reduce((e,t)=>t.insert?t.attributes&&"number"==typeof t.attributes.indent?e.push(t):e.insert(t.insert,{indent:o,...t.attributes||{}}):e,new Q5)}],["ol, ul",function(e,t,n){const r=e;let o="OL"===r.tagName?"ordered":"bullet";const i=r.getAttribute("data-checked");i&&(o="true"===i?"checked":"unchecked");return V4(t,"list",o,n)}],["pre",function(e,t,n){const r=n.query("code-block"),o=!r||!("formats"in r)||"function"!=typeof r.formats||r.formats(e,n);return V4(t,"code-block",o,n)}],["tr",function(e,t,n){var r,o;const i="TABLE"===(null==(r=e.parentElement)?void 0:r.tagName)?e.parentElement:null==(o=e.parentElement)?void 0:o.parentElement;if(null!=i){return V4(t,"table",Array.from(i.querySelectorAll("tr")).indexOf(e)+1,n)}return t}],["b",Z4("bold")],["i",Z4("italic")],["strike",Z4("strike")],["style",function(){return new Q5}]],U4=[r4,g4].reduce((e,t)=>(e[t.keyName]=t,e),{}),W4=[i4,u4,l4,v4,x4,k4].reduce((e,t)=>(e[t.keyName]=t,e),{});class $4 extends N3{constructor(e,t){var n;super(e,t),this.quill.root.addEventListener("copy",e=>this.onCaptureCopy(e,!1)),this.quill.root.addEventListener("cut",e=>this.onCaptureCopy(e,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],q4.concat(null!=(n=this.options.matchers)?n:[]).forEach(e=>{let[t,n]=e;this.addMatcher(t,n)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r[f4.blotName])return(new Q5).insert(n||"",{[f4.blotName]:r[f4.blotName]});if(!t)return(new Q5).insert(n||"",r);const o=this.convertHTML(t);return H4(o,"\n")&&(null==o.ops[o.ops.length-1].attributes||r.table)?o.compose((new Q5).retain(o.length()-1).delete(1)):o}normalizeHTML(e){(e=>{e.documentElement&&B4.forEach(t=>{t(e)})})(e)}convertHTML(e){const t=(new DOMParser).parseFromString(e,"text/html");this.normalizeHTML(t);const n=t.body,r=new WeakMap,[o,i]=this.prepareMatching(n,r);return Q4(this.quill.scroll,n,o,i,r)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$3.sources.API;if("string"==typeof e){const n=this.convert({html:e,text:""});this.quill.setContents(n,t),this.quill.setSelection(0,$3.sources.SILENT)}else{const r=this.convert({html:t,text:""});this.quill.updateContents((new Q5).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),$3.sources.SILENT)}}onCaptureCopy(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.defaultPrevented)return;e.preventDefault();const[o]=this.quill.selection.getRange();if(null==o)return;const{html:i,text:a}=this.onCopy(o,r);null==(t=e.clipboardData)||t.setData("text/plain",a),null==(n=e.clipboardData)||n.setData("text/html",i),r&&R4({range:o,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(e=>"#"!==e[0]).join("\n")}onCapturePaste(e){var t,n,r,o,i;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const a=this.quill.getSelection(!0);if(null==a)return;const s=null==(t=e.clipboardData)?void 0:t.getData("text/html");let l=null==(n=e.clipboardData)?void 0:n.getData("text/plain");if(!s&&!l){const t=null==(r=e.clipboardData)?void 0:r.getData("text/uri-list");t&&(l=this.normalizeURIList(t))}const c=Array.from((null==(o=e.clipboardData)?void 0:o.files)||[]);if(!s&&c.length>0)this.quill.uploader.upload(a,c);else{if(s&&c.length>0){const e=(new DOMParser).parseFromString(s,"text/html");if(1===e.body.childElementCount&&"IMG"===(null==(i=e.body.firstElementChild)?void 0:i.tagName))return void this.quill.uploader.upload(a,c)}this.onPaste(a,{html:s,text:l})}}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:r}=t;const o=this.quill.getFormat(e.index),i=this.convert({text:n,html:r},o);F4.log("onPaste",i,{text:n,html:r});const a=(new Q5).retain(e.index).delete(e.length).concat(i);this.quill.updateContents(a,$3.sources.USER),this.quill.setSelection(a.length()-e.length,$3.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],r=[];return this.matchers.forEach(o=>{const[i,a]=o;switch(i){case Node.TEXT_NODE:r.push(a);break;case Node.ELEMENT_NODE:n.push(a);break;default:Array.from(e.querySelectorAll(i)).forEach(e=>{if(t.has(e)){const n=t.get(e);null==n||n.push(a)}else t.set(e,[a])})}}),[n,r]}}function V4(e,t,n,r){return r.query(t)?e.reduce((e,r)=>{if(!r.insert)return e;if(r.attributes&&r.attributes[t])return e.push(r);const o=n?{[t]:n}:{};return e.insert(r.insert,{...o,...r.attributes})},new Q5):e}function H4(e,t){let n="";for(let r=e.ops.length-1;r>=0&&n.length<t.length;--r){const t=e.ops[r];if("string"!=typeof t.insert)break;n=t.insert+n}return n.slice(-1*t.length)===t}function Y4(e,t){if(!(e instanceof Element))return!1;const n=t.query(e);return!(n&&n.prototype instanceof f5)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}_($4,"DEFAULTS",{matchers:[]});const G4=new WeakMap;function K4(e){return null!=e&&(G4.has(e)||("PRE"===e.tagName?G4.set(e,!0):G4.set(e,K4(e.parentNode))),G4.get(e))}function Q4(e,t,n,r,o){return t.nodeType===t.TEXT_NODE?r.reduce((n,r)=>r(t,n,e),new Q5):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((i,a)=>{let s=Q4(e,a,n,r,o);return a.nodeType===t.ELEMENT_NODE&&(s=n.reduce((t,n)=>n(a,t,e),s),s=(o.get(a)||[]).reduce((t,n)=>n(a,t,e),s)),i.concat(s)},new Q5):new Q5}function Z4(e){return(t,n,r)=>V4(n,e,!0,r)}function X4(e,t,n){if(!H4(t,"\n")){if(Y4(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert("\n");if(t.length()>0&&e.nextSibling){let r=e.nextSibling;for(;null!=r;){if(Y4(r,n))return t.insert("\n");const e=n.query(r);if(e&&e.prototype instanceof o3)return t.insert("\n");r=r.firstChild}}}return t}class J4 extends N3{constructor(e,t){super(e,t),_(this,"lastRecorded",0),_(this,"ignoreChange",!1),_(this,"stack",{undo:[],redo:[]}),_(this,"currentRange",null),this.quill.on($3.events.EDITOR_CHANGE,(e,t,n,r)=>{e===$3.events.SELECTION_CHANGE?t&&r!==$3.sources.SILENT&&(this.currentRange=t):e===$3.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&r!==$3.sources.USER?this.transform(t):this.record(t,n)),this.currentRange=t6(this.currentRange,t))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",e=>{"historyUndo"===e.inputType?(this.undo(),e.preventDefault()):"historyRedo"===e.inputType&&(this.redo(),e.preventDefault())})}change(e,t){if(0===this.stack[e].length)return;const n=this.stack[e].pop();if(!n)return;const r=this.quill.getContents(),o=n.delta.invert(r);this.stack[t].push({delta:o,range:t6(n.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,$3.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,t){if(0===e.ops.length)return;this.stack.redo=[];let n=e.invert(t),r=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const e=this.stack.undo.pop();e&&(n=n.compose(e.delta),r=e.range)}else this.lastRecorded=o;0!==n.length()&&(this.stack.undo.push({delta:n,range:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){e6(this.stack.undo,e),e6(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,$3.sources.USER);else{const t=function(e,t){const n=t.reduce((e,t)=>e+(t.delete||0),0);let r=t.length()-n;(function(e,t){const n=t.ops[t.ops.length-1];if(null==n)return!1;if(null!=n.insert)return"string"==typeof n.insert&&n.insert.endsWith("\n");if(null!=n.attributes)return Object.keys(n.attributes).some(t=>null!=e.query(t,U2.BLOCK));return!1})(e,t)&&(r-=1);return r}(this.quill.scroll,e.delta);this.quill.setSelection(t,$3.sources.USER)}}}function e6(e,t){let n=t;for(let r=e.length-1;r>=0;r-=1){const t=e[r];e[r]={delta:n.transform(t.delta,!0),range:t.range&&t6(t.range,n)},n=t.delta.transform(n),0===e[r].delta.length()&&e.splice(r,1)}}function t6(e,t){if(!e)return e;const n=t.transformPosition(e.index);return{index:n,length:t.transformPosition(e.index+e.length)-n}}_(J4,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});class n6 extends N3{constructor(e,t){super(e,t),e.root.addEventListener("drop",t=>{var n;t.preventDefault();let r=null;if(document.caretRangeFromPoint)r=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t.clientX,t.clientY);r=document.createRange(),r.setStart(e.offsetNode,e.offset),r.setEnd(e.offsetNode,e.offset)}const o=r&&e.selection.normalizeNative(r);if(o){const r=e.selection.normalizedToRange(o);(null==(n=t.dataTransfer)?void 0:n.files)&&this.upload(r,t.dataTransfer.files)}})}upload(e,t){const n=[];Array.from(t).forEach(e=>{var t;e&&(null==(t=this.options.mimetypes)?void 0:t.includes(e.type))&&n.push(e)}),n.length>0&&this.options.handler.call(this,e,n)}}n6.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const n=t.map(e=>new Promise(t=>{const n=new FileReader;n.onload=()=>{t(n.result)},n.readAsDataURL(e)}));Promise.all(n).then(t=>{const n=t.reduce((e,t)=>e.insert({image:t}),(new Q5).retain(e.index).delete(e.length));this.quill.updateContents(n,v3.sources.USER),this.quill.setSelection(e.index+t.length,v3.sources.SILENT)})}};const r6=["insertText","insertReplacementText"];const o6=/Mac/i.test(navigator.platform);$3.register({"blots/block":r3,"blots/block/embed":o3,"blots/break":Z5,"blots/container":Z3,"blots/cursor":l3,"blots/embed":P3,"blots/inline":n3,"blots/scroll":e4,"blots/text":X5,"modules/clipboard":$4,"modules/history":J4,"modules/keyboard":C4,"modules/uploader":n6,"modules/input":class extends N3{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",e=>{this.handleBeforeInput(e)}),/Android/i.test(navigator.userAgent)||e.on($3.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){R4({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new Q5).retain(e.index).insert(t,n),$3.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,$3.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!r6.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||!0===t.collapsed)return;const n=function(e){var t;if("string"==typeof e.data)return e.data;if(null==(t=e.dataTransfer)?void 0:t.types.includes("text/plain"))return e.dataTransfer.getData("text/plain");return null}(e);if(null==n)return;const r=this.quill.selection.normalizeNative(t),o=r?this.quill.selection.normalizedToRange(r):null;o&&this.replaceText(o,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}},"modules/uiNode":class extends N3{constructor(e,t){super(e,t),_(this,"isListening",!1),_(this,"selectionChangeDeadline",0),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,t){let{line:n,event:r}=t;if(!(n instanceof i5&&n.uiNode))return!0;const o="rtl"===getComputedStyle(n.domNode).direction;return!!(o&&"ArrowRight"!==r.key||!o&&"ArrowLeft"!==r.key)||(this.quill.setSelection(e.index-1,e.length+(r.shiftKey?1:0),$3.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&(e=>"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key||"Home"===e.key||!(!o6||"a"!==e.key||!0!==e.ctrlKey))(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+100,this.isListening)return;this.isListening=!0;document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const t=e.getRangeAt(0);if(!0!==t.collapsed||0!==t.startOffset)return;const n=this.quill.scroll.find(t.startContainer);if(!(n instanceof i5&&n.uiNode))return;const r=document.createRange();r.setStartAfter(n.uiNode),r.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(r)}}});const i6=new class extends G2{add(e,t){let n=0;if("+1"===t||"-1"===t){const r=this.value(e)||0;n="+1"===t?r+1:r-1}else"number"==typeof t&&(n=t);return 0===n?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}("indent","ql-indent",{scope:U2.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class a6 extends r3{}_(a6,"blotName","blockquote"),_(a6,"tagName","blockquote");class s6 extends r3{static formats(e){return this.tagName.indexOf(e.tagName)+1}}_(s6,"blotName","header"),_(s6,"tagName",["H1","H2","H3","H4","H5","H6"]);class l6 extends Z3{}l6.blotName="list-container",l6.tagName="OL";class c6 extends r3{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){$3.register(l6)}constructor(e,t){super(e,t);const n=t.ownerDocument.createElement("span"),r=n=>{if(!e.isEnabled())return;const r=this.statics.formats(t,e);"checked"===r?(this.format("list","unchecked"),n.preventDefault()):"unchecked"===r&&(this.format("list","checked"),n.preventDefault())};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}c6.blotName="list",c6.tagName="LI",l6.allowedChildren=[c6],c6.requiredContainer=l6;class u6 extends n3{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}_(u6,"blotName","bold"),_(u6,"tagName",["STRONG","B"]);class d6 extends u6{}_(d6,"blotName","italic"),_(d6,"tagName",["EM","I"]);class f6 extends n3{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return h6(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("href",this.constructor.sanitize(t)):super.format(e,t)}}function h6(e,t){const n=document.createElement("a");n.href=e;const r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}_(f6,"blotName","link"),_(f6,"tagName","A"),_(f6,"SANITIZED_URL","about:blank"),_(f6,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);class p6 extends n3{static create(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):super.create(e)}static formats(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}_(p6,"blotName","script"),_(p6,"tagName",["SUB","SUP"]);class g6 extends u6{}_(g6,"blotName","strike"),_(g6,"tagName",["S","STRIKE"]);class m6 extends n3{}_(m6,"blotName","underline"),_(m6,"tagName","U");class v6 extends P3{static create(e){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return"string"==typeof e&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}_(v6,"blotName","formula"),_(v6,"className","ql-formula"),_(v6,"tagName","SPAN");const b6=["alt","height","width"];class y6 extends f5{static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return b6.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return h6(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){b6.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}_(y6,"blotName","image"),_(y6,"tagName","IMG");const x6=["height","width"];class w6 extends o3{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return x6.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return f6.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){x6.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}_(w6,"blotName","video"),_(w6,"className","ql-video"),_(w6,"tagName","IFRAME");const k6=new G2("code-token","hljs",{scope:U2.INLINE});class _6 extends n3{static formats(e,t){for(;null!=e&&e!==t.domNode;){if(e.classList&&e.classList.contains(f4.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),k6.add(this.domNode,n)}format(e,t){e!==_6.blotName?super.format(e,t):t?k6.add(this.domNode,t):(k6.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),k6.value(this.domNode)||this.unwrap()}}_6.blotName="code-token",_6.className="ql-token";class S6 extends f4{static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),_6.blotName,!1),super.replaceWith(e,t)}}class C6 extends d4{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===S6.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(e,t)}))}formatAt(e,t,n,r){n===S6.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,r)}highlight(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const n=`${Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).map(e=>e.textContent).join("\n")}\n`,r=S6.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==n){if(n.trim().length>0||null==this.cachedText){const t=this.children.reduce((e,t)=>e.concat(i3(t,!1)),new Q5),o=e(n,r);t.diff(o).reduce((e,t)=>{let{retain:n,attributes:r}=t;return n?(r&&Object.keys(r).forEach(t=>{[S6.blotName,_6.blotName].includes(t)&&this.formatAt(e,n,t,r[t])}),e+n):e},0)}this.cachedText=n,this.forceNext=!1}}html(e,t){const[n]=this.children.find(e);return`<pre data-language="${n?S6.formats(n.domNode):"plain"}">\n${e3(this.code(e,t))}\n</pre>`}optimize(e){if(super.optimize(e),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const e=S6.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}C6.allowedChildren=[S6],S6.requiredContainer=C6,S6.allowedChildren=[_6,l3,X5,Z5];class E6 extends N3{static register(){$3.register(_6,!0),$3.register(S6,!0),$3.register(C6,!0)}constructor(e,t){if(super(e,t),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((e,t)=>{let{key:n}=t;return e[n]=!0,e},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on($3.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof C6))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(e=>{let{key:n,label:r}=e;const o=t.ownerDocument.createElement("option");o.textContent=r,o.setAttribute("value",n),t.appendChild(o)}),t.addEventListener("change",()=>{e.format(S6.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),null==e.uiNode&&(e.attachUI(t),e.children.head&&(t.value=S6.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on($3.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update($3.sources.USER);const n=this.quill.getSelection();(null==e?this.quill.scroll.descendants(C6):[e]).forEach(e=>{e.highlight(this.highlightBlot,t)}),this.quill.update($3.sources.SILENT),null!=n&&this.quill.setSelection(n,$3.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(t=this.languages[t]?t:"plain","plain"===t)return e3(e).split("\n").reduce((e,n,r)=>(0!==r&&e.insert("\n",{[f4.blotName]:t}),e.insert(n)),new Q5);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(f4.className),n.innerHTML=((e,t,n)=>{if("string"==typeof e.versionString){const r=e.versionString.split(".")[0];if(parseInt(r,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value})(this.options.hljs,t,e),Q4(this.quill.scroll,n,[(e,t)=>{const n=k6.value(e);return n?t.compose((new Q5).retain(t.length(),{[_6.blotName]:n})):t}],[(e,n)=>e.data.split("\n").reduce((e,n,r)=>(0!==r&&e.insert("\n",{[f4.blotName]:t}),e.insert(n)),n)],new WeakMap)}}E6.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const A6=class extends r3{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",P6()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===A6.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};let O6=A6;_(O6,"blotName","table"),_(O6,"tagName","TD");class T6 extends Z3{checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),r=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===r.table}return!1}optimize(e){super.optimize(e),this.children.forEach(e=>{if(null==e.next)return;const t=e.formats(),n=e.next.formats();if(t.table!==n.table){const t=this.splitAfter(e);t&&t.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}_(T6,"blotName","table-row"),_(T6,"tagName","TR");class N6 extends Z3{}_(N6,"blotName","table-body"),_(N6,"tagName","TBODY");class R6 extends Z3{balanceCells(){const e=this.descendants(T6),t=e.reduce((e,t)=>Math.max(t.children.length,e),0);e.forEach(e=>{new Array(t-e.children.length).fill(0).forEach(()=>{let t;null!=e.children.head&&(t=O6.formats(e.children.head.domNode));const n=this.scroll.create(O6.blotName,t);e.appendChild(n),n.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(N6);null!=t&&null!=t.children.head&&t.children.forEach(t=>{const n=t.children.at(e);null!=n&&n.remove()})}insertColumn(e){const[t]=this.descendant(N6);null!=t&&null!=t.children.head&&t.children.forEach(t=>{const n=t.children.at(e),r=O6.formats(t.children.head.domNode),o=this.scroll.create(O6.blotName,r);t.insertBefore(o,n)})}insertRow(e){const[t]=this.descendant(N6);if(null==t||null==t.children.head)return;const n=P6(),r=this.scroll.create(T6.blotName);t.children.head.children.forEach(()=>{const e=this.scroll.create(O6.blotName,n);r.appendChild(e)});const o=t.children.at(e);t.insertBefore(r,o)}rows(){const e=this.children.head;return null==e?[]:e.children.map(e=>e)}}function P6(){return`row-${Math.random().toString(36).slice(2,6)}`}_(R6,"blotName","table-container"),_(R6,"tagName","TABLE"),R6.allowedChildren=[N6],N6.requiredContainer=R6,N6.allowedChildren=[T6],T6.requiredContainer=N6,T6.allowedChildren=[O6],O6.requiredContainer=T6;const M6=g3("quill:toolbar");class L6 extends N3{constructor(e,t){var n,r;if(super(e,t),Array.isArray(this.options.container)){const t=document.createElement("div");t.setAttribute("role","toolbar"),function(e,t){Array.isArray(t[0])||(t=[t]);t.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(e=>{if("string"==typeof e)D6(n,e);else{const t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(e=>{const t=document.createElement("option");!1!==e?t.setAttribute("value",String(e)):t.setAttribute("selected","selected"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):D6(n,t,r)}}),e.appendChild(n)})}(t,this.options.container),null==(r=null==(n=e.container)?void 0:n.parentNode)||r.insertBefore(t,e.container),this.container=t}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(e=>{var t;const n=null==(t=this.options.handlers)?void 0:t[e];n&&this.addHandler(e,n)}),Array.from(this.container.querySelectorAll("button, select")).forEach(e=>{this.attach(e)}),this.quill.on($3.events.EDITOR_CHANGE,()=>{const[e]=this.quill.selection.getRange();this.update(e)})):M6.error("Container required for toolbar",this.options)}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(e=>0===e.indexOf("ql-"));if(!t)return;if(t=t.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[t]&&null==this.quill.scroll.query(t))return void M6.warn("ignoring attaching to nonexistent format",t,e);const n="SELECT"===e.tagName?"change":"click";e.addEventListener(n,n=>{let r;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;const t=e.options[e.selectedIndex];r=!t.hasAttribute("selected")&&(t.value||!1)}else r=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),n.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(null!=this.handlers[t])this.handlers[t].call(this,r);else if(this.quill.scroll.query(t).prototype instanceof f5){if(r=prompt(`Enter ${t}`),!r)return;this.quill.updateContents((new Q5).retain(o.index).delete(o.length).insert({[t]:r}),$3.sources.USER)}else this.quill.format(t,r,$3.sources.USER);this.update(o)}),this.controls.push([t,e])}update(e){const t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[r,o]=n;if("SELECT"===o.tagName){let n=null;if(null==e)n=null;else if(null==t[r])n=o.querySelector("option[selected]");else if(!Array.isArray(t[r])){let e=t[r];"string"==typeof e&&(e=e.replace(/"/g,'\\"')),n=o.querySelector(`option[value="${e}"]`)}null==n?(o.value="",o.selectedIndex=-1):n.selected=!0}else if(null==e)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const e=t[r],n=e===o.getAttribute("value")||null!=e&&e.toString()===o.getAttribute("value")||null==e&&!o.getAttribute("value");o.classList.toggle("ql-active",n),o.setAttribute("aria-pressed",n.toString())}else{const e=null!=t[r];o.classList.toggle("ql-active",e),o.setAttribute("aria-pressed",e.toString())}})}}function D6(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),null!=n?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}L6.DEFAULTS={},L6.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(null!=e)if(0===e.length){const e=this.quill.getFormat();Object.keys(e).forEach(e=>{null!=this.quill.scroll.query(e,U2.INLINE)&&this.quill.format(e,!1,$3.sources.USER)})}else this.quill.removeFormat(e.index,e.length,$3.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();"rtl"===e&&null==t?this.quill.format("align","right",$3.sources.USER):e||"right"!==t||this.quill.format("align",!1,$3.sources.USER),this.quill.format("direction",e,$3.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if("+1"===e||"-1"===e){let t="+1"===e?1:-1;"rtl"===n.direction&&(t*=-1),this.quill.format("indent",r+t,$3.sources.USER)}},link(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,$3.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,$3.sources.USER):this.quill.format("list","unchecked",$3.sources.USER):this.quill.format("list",e,$3.sources.USER)}}};const I6='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',j6={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:I6,"code-block":I6,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};let z6=0;function B6(e,t){e.setAttribute(t,`${!("true"===e.getAttribute(t))}`)}class F6{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),B6(this.label,"aria-expanded"),B6(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.selectItem(t,!0),e.preventDefault();break;case"Escape":this.escape(),e.preventDefault()}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${z6}`,z6+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),!0===t.selected&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);const t=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class q6 extends F6{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(e=>{e.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=r:n.style.fill=r)}}class U6 extends F6{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(e=>{e.innerHTML=t[e.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(null!=n){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}class W6{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(e=>{const{overflowY:t}=getComputedStyle(e,null);return"visible"!==t&&"clip"!==t})(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=-1*this.quill.root.scrollTop+"px"}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=`${t+i}px`),o.left<r.left&&(i=r.left-o.left,this.root.style.left=`${t+i}px`),o.bottom>r.bottom){const t=o.bottom-o.top,r=e.bottom-e.top+t;this.root.style.top=n-r+"px",this.root.classList.add("ql-flip")}return i}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const $6=[!1,"center","right","justify"],V6=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],H6=[!1,"serif","monospace"],Y6=["1","2","3",!1],G6=["small",!1,"large","huge"];class K6 extends D3{constructor(e,t){super(e,t);const n=t=>{document.body.contains(e.root)?(null==this.tooltip||this.tooltip.root.contains(t.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEach(e=>{e.container.contains(t.target)||e.close()})):document.body.removeEventListener("click",n)};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return"toolbar"===e&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(e=>{(e.getAttribute("class")||"").split(/\s+/).forEach(n=>{if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{const r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(e=>{if(e.classList.contains("ql-align")&&(null==e.querySelector("option")&&Z6(e,$6),"object"==typeof t.align))return new U6(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){const n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&Z6(e,V6,"background"===n?"#ffffff":"#000000"),new q6(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?Z6(e,H6):e.classList.contains("ql-header")?Z6(e,Y6):e.classList.contains("ql-size")&&Z6(e,G6)),new F6(e)});this.quill.on(v3.events.EDITOR_CHANGE,()=>{this.pickers.forEach(e=>{e.update()})})}}K6.DEFAULTS=q2({},D3.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Q6 extends W6{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{"Enter"===e.key?(this.save(),e.preventDefault()):"Escape"===e.key&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,v3.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,v3.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=function(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`;if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`;return e}(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(null!=t){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,v3.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",v3.sources.USER),this.quill.setSelection(n+2,v3.sources.USER)}break}}this.textbox.value="",this.hide()}}function Z6(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(t=>{const r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",String(t)),e.appendChild(r)})}const X6=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class J6 extends Q6{constructor(e,t){super(e,t),this.quill.on(v3.events.EDITOR_CHANGE,(e,t,n,r)=>{if(e===v3.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===v3.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const e=this.quill.getLines(t.index,t.length);if(1===e.length){const e=this.quill.getBounds(t);null!=e&&this.position(e)}else{const n=e[e.length-1],r=this.quill.getIndex(n),o=Math.min(n.length()-1,t.index+t.length-r),i=this.quill.getBounds(new y3(r,o));null!=i&&this.position(i)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(v3.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(null!=e){const t=this.quill.getBounds(e);null!=t&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",0!==t&&(n.style.marginLeft=-1*t-n.offsetWidth/2+"px"),t}}_(J6,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class e7 extends K6{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=X6),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new J6(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),j6),this.buildPickers(e.container.querySelectorAll("select"),j6))}}e7.DEFAULTS=q2({},K6.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,$3.sources.USER)}}}}});const t7=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class n7 extends Q6{constructor(){super(...arguments),_(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(null!=this.linkRange){const e=this.linkRange;this.restoreFocus(),this.quill.formatText(e,"link",!1,v3.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(v3.events.SELECTION_CHANGE,(e,t,n)=>{if(null!=e){if(0===e.length&&n===v3.sources.USER){const[t,n]=this.quill.scroll.descendant(f6,e.index);if(null!=t){this.linkRange=new y3(e.index-n,t.length());const r=f6.formats(t.domNode);this.preview.textContent=r,this.preview.setAttribute("href",r),this.show();const o=this.quill.getBounds(this.linkRange);return void(null!=o&&this.position(o))}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}_(n7,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class r7 extends K6{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=t7),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),j6),this.buildPickers(e.container.querySelectorAll("select"),j6),this.tooltip=new n7(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}r7.DEFAULTS=q2({},K6.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const e=this.quill.getSelection();if(null==e||0===e.length)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,$3.sources.USER)}}}}}),$3.register({"attributors/attribute/direction":g4,"attributors/class/align":o4,"attributors/class/background":c4,"attributors/class/color":s4,"attributors/class/direction":m4,"attributors/class/font":y4,"attributors/class/size":w4,"attributors/style/align":i4,"attributors/style/background":u4,"attributors/style/color":l4,"attributors/style/direction":v4,"attributors/style/font":x4,"attributors/style/size":k4},!0),$3.register({"formats/align":o4,"formats/direction":m4,"formats/indent":i6,"formats/background":u4,"formats/color":l4,"formats/font":y4,"formats/size":w4,"formats/blockquote":a6,"formats/code-block":f4,"formats/header":s6,"formats/list":c6,"formats/bold":u6,"formats/code":h4,"formats/italic":d6,"formats/link":f6,"formats/script":p6,"formats/strike":g6,"formats/underline":m6,"formats/formula":v6,"formats/image":y6,"formats/video":w6,"modules/syntax":E6,"modules/table":class extends N3{static register(){$3.register(O6),$3.register(T6),$3.register(N6),$3.register(R6)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(R6).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();null!=t&&(e.deleteColumn(t.cellOffset()),this.quill.update($3.sources.USER))}deleteRow(){const[,e]=this.getTable();null!=e&&(e.remove(),this.quill.update($3.sources.USER))}deleteTable(){const[e]=this.getTable();if(null==e)return;const t=e.offset();e.remove(),this.quill.update($3.sources.USER),this.quill.setSelection(t,$3.sources.SILENT)}getTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(null==t||t.statics.blotName!==O6.blotName)return[null,null,null,-1];const r=t.parent;return[r.parent.parent,r,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,r,o]=this.getTable(t);if(null==o)return;const i=o.cellOffset();n.insertColumn(i+e),this.quill.update($3.sources.USER);let a=r.rowOffset();0===e&&(a+=1),this.quill.setSelection(t.index+a,t.length,$3.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,r,o]=this.getTable(t);if(null==o)return;const i=r.rowOffset();n.insertRow(i+e),this.quill.update($3.sources.USER),e>0?this.quill.setSelection(t,$3.sources.SILENT):this.quill.setSelection(t.index+r.children.length,t.length,$3.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(null==n)return;const r=new Array(e).fill(0).reduce(e=>{const n=new Array(t).fill("\n").join("");return e.insert(n,{table:P6()})},(new Q5).retain(n.index));this.quill.updateContents(r,$3.sources.USER),this.quill.setSelection(n.index,$3.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on($3.events.SCROLL_OPTIMIZE,e=>{e.some(e=>!!["TD","TR","TBODY","TABLE"].includes(e.target.tagName)&&(this.quill.once($3.events.TEXT_CHANGE,(e,t,n)=>{n===$3.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":L6,"themes/bubble":e7,"themes/snow":r7,"ui/icons":j6,"ui/picker":F6,"ui/icon-picker":U6,"ui/color-picker":q6,"ui/tooltip":W6},!0);function o7(e){return function(){const t=this.quill;let n={heading:"var(--chakra-colors-gray-800)",overlay:"var(--chakra-colors-blackAlpha-500)",primary:"var(--chakra-colors-purple-500)",primaryText:"var(--chakra-colors-white)",surface:"var(--chakra-colors-white)",surfaceAlt:"var(--chakra-colors-white)",text:"var(--chakra-colors-gray-800)"};(null==e?void 0:e.isDark)&&(n={heading:"var(--chakra-colors-gray-200)",overlay:"var(--chakra-colors-blackAlpha-600)",primary:"var(--chakra-colors-blue-600)",primaryText:"var(--chakra-colors-white)",surface:"var(--chakra-colors-gray-700)",surfaceAlt:"var(--chakra-colors-gray-800)",text:"var(--chakra-colors-gray-200)"});const r=document.createElement("div");r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),r.style.cssText=`\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background: ${n.overlay};\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    z-index: 10000;\n  `;const o=document.createElement("div"),i="ba-insert-image-title";o.setAttribute("role","document"),o.setAttribute("aria-labelledby",i),o.style.cssText=`\n    background: ${n.surface};\n    padding: 20px;\n    border-radius: var(--chakra-radii-md);\n    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n    width: 400px;\n    max-width: 90vw;\n    border: 1px solid var(--chakra-colors-chakra-border-color);\n    color: ${n.text};\n  `,o.innerHTML=`\n    <h3 id="${i}" style="margin: 0 0 20px 0; font-family: sans-serif; color: ${n.heading};">${__("Insert Image","bit-assist")}</h3>\n    <div style="margin-bottom: 15px;">\n      <label for="imageUrl" style="display: block; margin-bottom: 5px; font-family: sans-serif; font-weight: bold;">${__("Image URL","bit-assist")} *</label>\n      <input type="url" id="imageUrl" placeholder="https://example.com/image.jpg" style="width: 100%; padding: 8px; border: 1px solid var(--chakra-colors-chakra-border-color); border-radius: var(--chakra-radii-md); box-sizing: border-box; background: ${n.surfaceAlt}; color: ${n.text};" required>\n    </div>\n    <div style="margin-bottom: 15px;">\n      <label for="imageAlt" style="display: block; margin-bottom: 5px; font-family: sans-serif; font-weight: bold;">${__("Alt Text","bit-assist")} *</label>\n      <input type="text" id="imageAlt" placeholder="${__("Image description","bit-assist")}" style="width: 100%; padding: 8px; border: 1px solid var(--chakra-colors-chakra-border-color); border-radius: var(--chakra-radii-md); box-sizing: border-box; background: ${n.surfaceAlt}; color: ${n.text};" required>\n    </div>\n    <div style="display: flex; gap: 10px; margin-bottom: 15px;">\n      <div style="flex: 1;">\n        <label for="imageWidth" style="display: block; margin-bottom: 5px; font-family: sans-serif; font-weight: bold;">${__("Width","bit-assist")}</label>\n        <input type="text" id="imageWidth" placeholder="${__("e.g., 300 or 100%","bit-assist")}" style="width: 100%; padding: 8px; border: 1px solid var(--chakra-colors-chakra-border-color); border-radius: var(--chakra-radii-md); box-sizing: border-box; background: ${n.surfaceAlt}; color: ${n.text};">\n      </div>\n      <div style="flex: 1;">\n        <label for="imageHeight" style="display: block; margin-bottom: 5px; font-family: sans-serif; font-weight: bold;">${__("Height","bit-assist")}</label>\n        <input type="text" id="imageHeight" placeholder="${__("e.g., 200 or auto","bit-assist")}" style="width: 100%; padding: 8px; border: 1px solid var(--chakra-colors-chakra-border-color); border-radius: var(--chakra-radii-md); box-sizing: border-box; background: ${n.surfaceAlt}; color: ${n.text};">\n      </div>\n    </div>\n    <div style="display: flex; gap: 10px; justify-content: flex-end;">\n      <button type="button" id="cancelBtn" style="padding: 8px 16px; border: 1px solid var(--chakra-colors-chakra-border-color); background: ${n.surfaceAlt}; color: ${n.text}; border-radius: var(--chakra-radii-md); cursor: pointer; font-family: sans-serif;">${__("Cancel","bit-assist")}</button>\n      <button type="button" id="insertBtn" style="padding: 8px 16px; border: none; background: ${n.primary}; color: ${n.primaryText}; border-radius: var(--chakra-radii-md); cursor: pointer; font-family: sans-serif;">${__("Insert Image","bit-assist")}</button>\n    </div>\n  `,r.append(o),document.body.append(r);const a=document.body.style.overflow,s=document.activeElement;document.body.style.overflow="hidden";const l=o.querySelector("#imageUrl");l.focus();const c=o.querySelector("#insertBtn"),u=o.querySelector("#cancelBtn"),d=o.querySelector("#imageAlt"),f=o.querySelector("#imageWidth"),h=o.querySelector("#imageHeight");function p(){r.remove(),document.body.style.overflow=a,s&&"function"==typeof s.focus&&s.focus()}const g=()=>{const e=l.value.trim(),n=d.value.trim(),r=f.value.trim(),o=h.value.trim();if(!e)return l.focus(),void(l.style.borderColor="var(--chakra-colors-red-500)");if(!n)return d.focus(),void(d.style.borderColor="var(--chakra-colors-red-500)");const i=t.getSelection(!0);t.insertEmbed(i.index,"image",e);requestAnimationFrame(()=>{const i=[...t.container.querySelectorAll("img")].at(-1);i&&i.src===e&&(e=>{const t=e;t.setAttribute("alt",n);const i=(e,n)=>{if(!n)return;const r=n.trim().toLowerCase();if("auto"===r)return t.removeAttribute(e),void t.style.removeProperty(e);if(r.endsWith("%"))return t.removeAttribute(e),void t.style.setProperty(e,n);const o=Number.parseInt(r,10);!Number.isNaN(o)&&o>0&&(t.setAttribute(e,String(o)),t.style.removeProperty(e))};i("width",r),i("height",o)})(i)}),t.setSelection(i.index+1,0),p()};c.addEventListener("click",g),u.addEventListener("click",p),o.addEventListener("keydown",e=>{if("Enter"===e.key)return e.preventDefault(),void g();if("Escape"===e.key)return e.preventDefault(),void p();if("Tab"===e.key){const t=o.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!t.length)return;const n=t[0],r=[...t].at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),n.focus())}}),l.addEventListener("input",()=>{l.style.borderColor="var(--chakra-colors-chakra-border-color)"}),d.addEventListener("input",()=>{d.style.borderColor="var(--chakra-colors-chakra-border-color)"}),r.addEventListener("click",e=>{e.target===r&&p()})}}function i7({defaultValue:e,onChange:t,placeholder:n,theme:r="snow",tools:o}){const i=K.exports.useRef(null),a=K.exports.useRef(e),s=K.exports.useRef(t),{colorMode:l}=Ed();return K.exports.useLayoutEffect(()=>{s.current=t}),K.exports.useEffect(()=>{const e=i.current;if(!e)return;const t=e.appendChild(e.ownerDocument.createElement("div")),c=new $3(t,{modules:{toolbar:{container:o,handlers:{image:o7({isDark:"dark"===l})}}},placeholder:n,theme:r});return a.current&&c.setContents(c.clipboard.convert({html:a.current})),c.on($3.events.TEXT_CHANGE,()=>{var e;null==(e=s.current)||e.call(s,c.root.innerHTML)}),()=>{e.innerHTML=""}},[]),gc("div",{className:"dark"===l?"ba-quill-dark":void 0,ref:i})}function a7({bg:e="none",cursor:t="grab",field:n,id:r}){const[,o]=AH(qY),[i,a]=K.exports.useState(!1),s=Ad("white","gray.700"),{attributes:l,isDragging:c,listeners:u,setNodeRef:d,transform:f,transition:h}=yJ({id:(null==n?void 0:n.id)||0}),p={opacity:c?.4:1,touchAction:"pinch-zoom",transform:HQ.Transform.toString(f),transition:h},g=(e,t,n)=>{let r=e;"description"===t&&(r=e.replaceAll("<a",'<a target="_blank"')),o(e=>{var o,i;const a=[...(null==(i=null==(o=e.config)?void 0:o.card_config)?void 0:i.faqs)||[]];a[n]={...a[n],[t]:r},e.config.card_config={...e.config.card_config,faqs:a}})};return mc(qB,{ref:d,style:p,w:"full",children:[mc(qB,{bg:s,borderWidth:1,p:"2",rounded:"md",shadow:"base",w:"full",children:[gc(iM,{...u,...l,alignItems:"center",bg:e,cursor:t,h:8,justifyContent:"center",rounded:"sm",w:6,children:gc(QK,{"aria-label":__("draggable button","bit-assist")})}),mc(eP,{w:"full",children:[mc(qB,{mb:"2",w:"full",children:[gc(pD,{onChange:e=>g(e.target.value,"title",r),value:(null==n?void 0:n.title)||""}),gc(uP,{"aria-label":__("Show description","bit-assist"),icon:gc(OW,{}),onClick:()=>a(e=>!e),size:"sm"})]}),i&&gc(i7,{defaultValue:null==n?void 0:n.description,onChange:e=>g(e,"description",r),tools:["bold","italic","underline","link"]})]})]}),gc(eP,{children:gc(uP,{"aria-label":__("Delete","bit-assist"),icon:gc(FW,{}),isRound:!0,onClick:()=>{return e=r,void o(t=>{var n,r,o;null==(o=null==(r=null==(n=t.config)?void 0:n.card_config)?void 0:r.faqs)||o.splice(e,1)});var e},size:"sm"})})]})}function s7(){var e,t;const[n,r]=AH(qY),[o,i]=K.exports.useState(0),a=Ad("gray.100","gray.500"),s=iZ(oZ(nX),oZ(ZZ,{coordinateGetter:kJ}));return mc(pc,{children:[mc(UB,{alignSelf:"center",borderWidth:1,p:[2,4],rounded:"md",spacing:3,w:"full",children:[(null==(t=null==(e=n.config)?void 0:e.card_config)?void 0:t.faqs)&&gc(qX,{collisionDetection:pZ,modifiers:[TJ,OJ],onDragEnd:e=>{var t,o,a,s,l,c,u,d,f;if(i(0),e.active.id!==(null==(t=e.over)?void 0:t.id)){const t=(null==(s=null==(a=null==(o=n.config)?void 0:o.card_config)?void 0:a.faqs)?void 0:s.findIndex(t=>(null==t?void 0:t.id)===e.active.id))||0,i=(null==(u=null==(c=null==(l=n.config)?void 0:l.card_config)?void 0:c.faqs)?void 0:u.findIndex(t=>{var n;return(null==t?void 0:t.id)===(null==(n=e.over)?void 0:n.id)}))||0,h=oJ((null==(f=null==(d=n.config)?void 0:d.card_config)?void 0:f.faqs)||[],t,i);r(e=>{e.config.card_config={...e.config.card_config,faqs:h}})}},onDragStart:e=>{const{id:t}=e.active;i(+t)},sensors:s,children:gc(fJ,{items:n.config.card_config.faqs.map(e=>e.id),strategy:cJ,children:mc(UB,{spacing:3,w:"full",children:[n.config.card_config.faqs.map((e,t)=>gc(a7,{field:e,id:t},e.id)),o?gc(rJ,{style:{marginTop:0},children:gc(a7,{bg:a,cursor:"grabbing",field:n.config.card_config.faqs.find(e=>+e.id===o),id:o})}):void 0]})})}),gc(iP,{onClick:()=>{r(e=>{var t,n,r,o;void 0===(null==(n=null==(t=e.config)?void 0:t.card_config)?void 0:n.faqs)&&(e.config.card_config={...e.config.card_config,faqs:[]}),e.config.card_config.maxId=(e.config.card_config.maxId||0)+1,null==(o=null==(r=e.config.card_config)?void 0:r.faqs)||o.push({description:__("FAQ Description","bit-assist"),id:e.config.card_config.maxId,title:__("FAQ Title","bit-assist")})})},rightIcon:gc(IW,{}),children:__("Add FAQ","bit-assist")})]}),gc(NJ,{bg:"#424b67",color:"#fff"})]})}function l7(){var e,t,n;const[r,o]=AH(qY),[i,a]=K.exports.useState(""),s=(e,t)=>{o(n=>{n.config={...n.config,[t]:e},"unique_id"===t&&(n.config.url=e.toString())})};return mc(jP,{children:[gc(iD,{children:__("Custom image","bit-assist")}),mc(iM,{gap:"4",children:[mc(eP,{position:"relative",children:[gc(hD,{alt:r.config.title||__("Custom channel icon","bit-assist"),borderRadius:"full",boxSize:"40px",fallbackSrc:(null==(e=yQ.find(e=>e.name===r.channel_name))?void 0:e.icon)||"",objectFit:"cover",objectPosition:"center",src:(null==(t=r.config)?void 0:t.channel_icon)||""}),(null==(n=r.config)?void 0:n.channel_icon)?gc(uP,{"aria-label":__("Remove custom icon","bit-assist"),borderRadius:"full",colorScheme:"red",h:"5",icon:gc(FW,{}),minW:"5",onClick:()=>s("","channel_icon"),position:"absolute",right:"-2",top:"-1",w:"5"}):void 0]}),gc(iP,{leftIcon:gc(BW,{}),onClick:()=>{if("undefined"!=typeof wp&&wp.media){const e=wp.media({button:{text:__("Select picture","bit-assist")},library:{type:"image"},multiple:!1,title:__("Media","bit-assist")});e.on("select",()=>{const t=e.state().get("selection").first().toJSON();s(t.url,"channel_icon"),t.filesizeInBytes>512e3&&a(__("⚠ Larger size image might slow down load time","bit-assist"))}),e.open()}},children:__("Browse","bit-assist")})]}),gc(TF,{color:"gray.500",fontSize:"sm",mt:"1",children:__("image size 40 x 40px","bit-assist")}),""!==i&&gc(TF,{color:"yellow.500",fontSize:"sm",mt:"1",children:i})]})}function c7(){var e;const[t,n]=AH(qY);return mc(jP,{children:[gc(iD,{children:__("Embed code","bit-assist")}),gc(bF,{color:"inherit",onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})}function u7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Username","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://www.instagram.com/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function d7({bg:e="none",cursor:t="grab",field:n,id:r}){const[,o]=AH(qY),[i,a]=K.exports.useState(!1),s=Ad("white","gray.700"),{attributes:l,isDragging:c,listeners:u,setNodeRef:d,transform:f,transition:h}=yJ({id:(null==n?void 0:n.id)||0}),p={opacity:c?.4:1,touchAction:"pinch-zoom",transform:HQ.Transform.toString(f),transition:h},g=(e,t,n)=>{let r=e;"description"===t&&(r=e.replaceAll("<a",'<a target="_blank"')),o(e=>{var o,i;const a=[...(null==(i=null==(o=e.config)?void 0:o.card_config)?void 0:i.knowledge_bases)||[]];a[n]={...a[n],[t]:r},e.config.card_config={...e.config.card_config,knowledge_bases:a}})};return mc(qB,{ref:d,style:p,w:"full",children:[mc(qB,{bg:s,borderWidth:1,p:"2",rounded:"md",shadow:"base",w:"full",children:[gc(iM,{...u,...l,alignItems:"center",bg:e,cursor:t,h:8,justifyContent:"center",rounded:"sm",w:6,children:gc(QK,{"aria-label":__("draggable button","bit-assist")})}),mc(eP,{w:"full",children:[mc(qB,{mb:"2",w:"full",children:[gc(pD,{onChange:e=>g(e.target.value,"title",r),value:(null==n?void 0:n.title)||""}),gc(uP,{"aria-label":__("Show description","bit-assist"),icon:gc(OW,{}),onClick:()=>a(e=>!e),size:"sm"})]}),i&&gc(i7,{defaultValue:null==n?void 0:n.description,onChange:e=>g(e,"description",r),tools:[[{header:[1,2,3,4,!1]}],[{list:"ordered"},{list:"bullet"}],["bold","italic","underline","link","image"],[{align:""},{align:"center"},{align:"right"},"clean"]]})]})]}),gc(eP,{children:gc(uP,{"aria-label":__("Delete","bit-assist"),icon:gc(FW,{}),isRound:!0,onClick:()=>{return e=r,void o(t=>{var n,r,o;null==(o=null==(r=null==(n=t.config)?void 0:n.card_config)?void 0:r.knowledge_bases)||o.splice(e,1)});var e},size:"sm"})})]})}function f7(){var e,t;const[n,r]=AH(qY),[o,i]=K.exports.useState(0),a=Ad("gray.100","gray.500"),s=iZ(oZ(nX),oZ(ZZ,{coordinateGetter:kJ}));return mc(pc,{children:[mc(UB,{alignSelf:"center",borderWidth:1,p:[2,4],rounded:"md",spacing:3,w:"full",children:[(null==(t=null==(e=n.config)?void 0:e.card_config)?void 0:t.knowledge_bases)&&gc(qX,{collisionDetection:pZ,modifiers:[TJ,OJ],onDragEnd:e=>{var t,o,a,s,l,c,u,d,f;if(i(0),e.active.id!==(null==(t=e.over)?void 0:t.id)){const t=(null==(s=null==(a=null==(o=n.config)?void 0:o.card_config)?void 0:a.knowledge_bases)?void 0:s.findIndex(t=>(null==t?void 0:t.id)===e.active.id))||0,i=(null==(u=null==(c=null==(l=n.config)?void 0:l.card_config)?void 0:c.knowledge_bases)?void 0:u.findIndex(t=>{var n;return(null==t?void 0:t.id)===(null==(n=e.over)?void 0:n.id)}))||0,h=oJ((null==(f=null==(d=n.config)?void 0:d.card_config)?void 0:f.knowledge_bases)||[],t,i);r(e=>{e.config.card_config={...e.config.card_config,knowledge_bases:h}})}},onDragStart:e=>{const{id:t}=e.active;i(+t)},sensors:s,children:gc(fJ,{items:n.config.card_config.knowledge_bases.map(e=>e.id),strategy:cJ,children:mc(UB,{spacing:3,w:"full",children:[n.config.card_config.knowledge_bases.map((e,t)=>gc(d7,{field:e,id:t},e.id)),o?gc(rJ,{style:{marginTop:0},children:gc(d7,{bg:a,cursor:"grabbing",field:n.config.card_config.knowledge_bases.find(e=>+e.id===o),id:o})}):void 0]})})}),gc(iP,{onClick:()=>{r(e=>{var t,n,r,o;void 0===(null==(n=null==(t=e.config)?void 0:t.card_config)?void 0:n.knowledge_bases)&&(e.config.card_config={...e.config.card_config,knowledge_bases:[]}),e.config.card_config.maxId=(e.config.card_config.maxId||0)+1,null==(o=null==(r=e.config.card_config)?void 0:r.knowledge_bases)||o.push({description:__("Knowledge Base Description","bit-assist"),id:e.config.card_config.maxId||0,title:__("Knowledge Base Title","bit-assist")})})},rightIcon:gc(IW,{}),children:__("Add KB","bit-assist")})]}),gc(NJ,{bg:"#1EDFD4",color:"#fff"})]})}function h7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Line ID","bit-assist")}),mc(vD,{children:[gc(wD,{children:"@"}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`http://line.me/ti/p/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]}),gc(_Q,{})]})}function p7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Profile","bit-assist")}),mc(vD,{children:[gc(wD,{children:"linkedin.com/"}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://linkedin.com/${t}`});var t},placeholder:__("ex: in/username or company/username, etc","bit-assist"),value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]}),gc(_Q,{})]})}function g7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Username","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://m.me/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function m7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Username","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://www.pinterest.com/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function v7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Phone number","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://signal.me/#p/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function b7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Workspace unique_id","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://${t}.slack.com`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function y7(){var e;const[t,n]=AH(qY);return mc(jP,{children:[gc(iD,{children:__("Phone number","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`sms:${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})}function x7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Username","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://www.snapchat.com/add/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function w7(){const[,e]=AH(qY);return K.exports.useEffect(()=>{e(e=>{var t;void 0===(null==(t=e.config)?void 0:t.card_config)&&(e.config.card_config={}),e.config.card_config.isChatWidget=!0})},[]),mc(TF,{children:[sprintf(__("Make Sure to add the %s script to your website.","bit-assist"),__("Tawk.to","bit-assist"))," ",gc(SD,{href:"https://www.tawk.to/",isExternal:!0,textDecoration:"underline",children:__("Learn more","bit-assist")})]})}function k7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Username","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://telegram.me/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function _7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Username","bit-assist")}),mc(vD,{children:[gc(wD,{children:"@"}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://www.tiktok.com/@${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]}),gc(_Q,{})]})}function S7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("User ID","bit-assist")}),mc(vD,{children:[gc(wD,{children:"@"}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://twitter.com/${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]}),gc(_Q,{})]})}function C7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Phone number","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`viber://chat?number=${t}`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function E7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Link","bit-assist")}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=t});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]}),gc(_Q,{})]})}function A7(){var e,t;const[n,r]=AH(qY),[o,i]=K.exports.useState(""),a=(e,t)=>{r(n=>{n.config[e]=t})};return mc(pc,{children:[mc(jP,{isRequired:!0,children:[gc(iD,{children:__("QR Code","bit-assist")}),mc("div",{children:[mc(eP,{boxSize:100,mb:2,position:"relative",children:[gc(hD,{alt:n.config.title||__("Custom channel icon","bit-assist"),"aria-required":"true",boxSize:"inherit",fallback:gc(eP,{bg:"gray.200",boxSize:"inherit",color:"gray.400"}),objectFit:"cover",objectPosition:"center",src:(null==(e=n.config)?void 0:e.url)||""}),(null==(t=n.config)?void 0:t.url)?gc(uP,{"aria-label":__("Remove custom icon","bit-assist"),borderRadius:"full",colorScheme:"red",h:"5",icon:gc(FW,{}),minW:"5",onClick:()=>a("url",""),position:"absolute",right:"-2",top:"-1",w:"5"}):void 0]}),gc(iP,{leftIcon:gc(BW,{}),onClick:()=>{if("undefined"!=typeof wp&&wp.media){const e=wp.media({button:{text:__("Select picture","bit-assist")},library:{type:"image"},multiple:!1,title:__("Media","bit-assist")});e.on("select",()=>{const t=e.state().get("selection").first().toJSON();a("url",t.url),t.filesizeInBytes>512e3&&i(__("⚠ Larger size image might slow down load time","bit-assist"))}),e.open()}},children:__("Browse","bit-assist")})]}),""!==o&&gc(TF,{color:"yellow.500",fontSize:"sm",mt:"1",children:o})]}),gc(NJ,{bg:"#2DC100",color:"#fff"})]})}function O7(){var e,t,n,r,o,i;const[a,s]=AH(qY),l=(e,t)=>{s(n=>{n.config={...n.config,[t]:e}})};return K.exports.useEffect(()=>{s(e=>{var t,n,r,o;e.config.url=`https://api.whatsapp.com/send/?phone=${null!=(n=null==(t=a.config)?void 0:t.unique_id)?n:""}&text=${null!=(o=null==(r=a.config)?void 0:r.message)?o:""}`})},[null==(e=a.config)?void 0:e.unique_id,null==(t=a.config)?void 0:t.message]),mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Phone number","bit-assist")}),gc(pD,{onChange:e=>l(e.target.value,"unique_id"),placeholder:__("ex: 88012312312312","bit-assist"),value:null!=(r=null==(n=a.config)?void 0:n.unique_id)?r:""})]}),mc(jP,{children:[gc(iD,{children:__("Message","bit-assist")}),gc(bF,{color:"inherit",onChange:e=>l(e.target.value,"message"),value:null!=(i=null==(o=a.config)?void 0:o.message)?i:""})]}),gc(_Q,{})]})}function T7(){var e,t,n,r,o,i;const[a,s]=AH(qY),l=Ad("white","gray.700"),c=K.exports.useRef(!1),u=(e,t)=>{""!==e&&s(n=>{var r,o,i,a;void 0===(null==(o=null==(r=n.config)?void 0:r.card_config)?void 0:o.form_fields)&&(n.config.card_config={...n.config.card_config,form_fields:[]}),n.config.card_config.maxId=(n.config.card_config.maxId||0)+1,null==(a=null==(i=n.config.card_config)?void 0:i.form_fields)||a.push({field_type:e,id:n.config.card_config.maxId||0,label:`${t}`,required:!0})})};return K.exports.useEffect(()=>{var e;void 0===(null==(e=a.config)?void 0:e.store_responses)&&s(e=>{var t;void 0===(null==(t=e.config)?void 0:t.card_config)&&(e.config.card_config={}),e.config.store_responses=!0})},[]),K.exports.useEffect(()=>{var e,t;c.current||(null==(t=null==(e=a.config)?void 0:e.card_config)?void 0:t.form_fields)||(u("number","Order Id"),u("email","Billing Email"),c.current=!0)},[]),mc(pc,{children:[gc(UB,{alignSelf:"center",borderWidth:1,p:[2,4],rounded:"md",spacing:3,w:"full",children:(null==(t=null==(e=a.config)?void 0:e.card_config)?void 0:t.form_fields)&&gc(UB,{spacing:"3",w:"full",children:a.config.card_config.form_fields.map((e,t)=>gc(qB,{w:"full",children:mc(qB,{bg:l,borderWidth:1,p:"2",rounded:"md",shadow:"base",w:"full",children:[gc(iM,{alignItems:"center",h:8,justifyContent:"center",rounded:"sm",w:6}),mc(eP,{w:"full",children:[mc(qB,{alignItems:"flex-start",justifyContent:"space-between",children:[mc(TF,{fontWeight:500,mb:"2",children:[(null==e?void 0:e.field_type)&&`${null==e?void 0:e.field_type.charAt(0).toUpperCase()}${null==e?void 0:e.field_type.slice(1)}`," ",__("Field","bit-assist"),!(null==e?void 0:e.required)&&mc(TF,{color:"gray.400",display:"inline",children:["  (",__("Optional","bit-assist"),")"]})]}),gc(qB,{alignItems:"center",children:gc(TF,{children:__("Required","bit-assist")})})]}),gc(UB,{alignItems:"flex-start",children:gc(pD,{onChange:e=>((e,t,n)=>{s(r=>{var o,i;const a=[...(null==(i=null==(o=r.config)?void 0:o.card_config)?void 0:i.form_fields)||[]];a[n]={...a[n],[t]:e},r.config.card_config={...r.config.card_config,form_fields:a}})})(e.target.value,"label",t),placeholder:__("label","bit-assist"),value:null==e?void 0:e.label})})]})]})},e.id))})}),mc(jP,{children:[gc(iD,{display:"inline-block",children:__("Show Order Details","bit-assist")}),gc(ZP,{colorScheme:"purple",onChange:e=>((e,t)=>{s(n=>{n.config={...n.config,[t]:e}})})(e,"order_details"),value:null!=(r=null==(n=a.config)?void 0:n.order_details)?r:[],children:mc(FB,{direction:["column","row"],spacing:[1,5],wrap:"wrap",children:[gc(KP,{"aria-label":__("Shipping Status","bit-assist"),size:"lg",value:"shipping_status",children:__("Shipping Status","bit-assist")}),gc(KP,{"aria-label":__("Total Items","bit-assist"),size:"lg",value:"total_items",children:__("Total Items","bit-assist")}),gc(KP,{"aria-label":__("Total Amount","bit-assist"),size:"lg",value:"total_amount",children:__("Total Amount","bit-assist")}),gc(KP,{"aria-label":__("Billing Name","bit-assist"),size:"lg",value:"billing_name",children:__("Billing Name","bit-assist")}),gc(KP,{"aria-label":__("Shipping Name","bit-assist"),size:"lg",value:"shipping_name",children:__("Shipping Name","bit-assist")})]})})]}),mc(jP,{children:[gc(iD,{children:__("Button Text","bit-assist")}),gc(pD,{onChange:e=>((e,t)=>{s(n=>{n.config.card_config={...n.config.card_config,[t]:e}})})(e.target.value,"submit_button_text"),placeholder:__("Submit","bit-assist"),value:null==(i=null==(o=a.config)?void 0:o.card_config)?void 0:i.submit_button_text})]}),gc(NJ,{bg:"#a63492",color:"#fff"})]})}function N7(){var e;const{isLoading:t,postTypes:n}=function(){const{data:e,isLoading:t}=Mq({queryFn:()=>HW("getPostTypes",void 0,void 0,"GET"),queryKey:["postTypes"]});return{isLoading:t,postTypes:(null==e?void 0:e.data)||[]}}(),[r,o]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Select Post Types","bit-assist")}),gc(zP,{mb:4,children:__("Select the post types you want to show in this channel.","bit-assist")}),t&&gc(ex,{}),gc(ZP,{colorScheme:"purple",defaultValue:["post","page"],onChange:e=>{o(t=>{t.config.wp_post_types=e})},value:null==(e=r.config)?void 0:e.wp_post_types,children:gc(FB,{direction:["column","row"],spacing:[1,5],wrap:"wrap",children:n.map(e=>gc(KP,{size:"lg",value:e.name,children:e.label},e.name))})})]}),gc(NJ,{bg:"#2271b1",color:"#fff"}),gc(_Q,{})]})}function R7(){var e;const[t,n]=AH(qY);return mc(jP,{children:[gc(iD,{children:__("Video ID","bit-assist")}),mc(vD,{children:[gc(wD,{children:"youtube.com/watch?v="}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=""===t?"":`https://www.youtube.com/embed/${t}?autoplay=1`});var t},value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]})}function P7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Link","bit-assist")}),mc(vD,{children:[gc(wD,{children:"calendly.com/"}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://calendly.com/${t}`});var t},placeholder:__("booking link","bit-assist"),value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]}),gc(_Q,{})]})}function M7(){const[,e]=AH(qY);return K.exports.useEffect(()=>{e(e=>{var t;void 0===(null==(t=e.config)?void 0:t.card_config)&&(e.config.card_config={}),e.config.card_config.isChatWidget=!0})},[]),mc(TF,{children:[sprintf(__("Make Sure to add the %s script to your website.","bit-assist"),__("Crisp","bit-assist"))," ",gc(SD,{href:"https://crisp.chat/",isExternal:!0,textDecoration:"underline",children:__("Learn more","bit-assist")})]})}function L7(){const[,e]=AH(qY);return K.exports.useEffect(()=>{e(e=>{var t;void 0===(null==(t=e.config)?void 0:t.card_config)&&(e.config.card_config={}),e.config.card_config.isChatWidget=!0})},[]),mc(TF,{children:[sprintf(__("Make Sure to add the %s script to your website.","bit-assist"),__("Intercom","bit-assist"))," ",gc(SD,{href:"https://www.intercom.com/",isExternal:!0,textDecoration:"underline",children:__("Learn more","bit-assist")})]})}function D7(){const[,e]=AH(qY);return K.exports.useEffect(()=>{e(e=>{var t;void 0===(null==(t=e.config)?void 0:t.card_config)&&(e.config.card_config={}),e.config.card_config.isChatWidget=!0})},[]),mc(TF,{children:[sprintf(__("Make Sure to add the %s script to your website.","bit-assist"),__("Tidio","bit-assist"))," ",gc(SD,{href:"https://www.tidio.com/",isExternal:!0,textDecoration:"underline",children:__("Learn more","bit-assist")})]})}function I7(){var e;const[t,n]=AH(qY);return mc(pc,{children:[mc(jP,{children:[gc(iD,{children:__("Link","bit-assist")}),mc(vD,{children:[gc(wD,{children:"tidycal.com/"}),gc(pD,{onChange:e=>{return t=e.target.value,void n(e=>{e.config.unique_id=t,e.config.url=`https://tidycal.com/${t}`});var t},placeholder:__("booking link","bit-assist"),value:(null==(e=t.config)?void 0:e.unique_id)||""})]})]}),gc(_Q,{})]})}const j7=e=>{switch(e){case"calendly":return gc(P7,{});case"call":return gc(kQ,{});case"crisp":return gc(M7,{});case"custom-channel":return gc(SQ,{});case"custom-form":return gc(RJ,{});case"custom-iframe":return gc(PJ,{});case"discord":return gc(MJ,{});case"faq":return gc(s7,{});case"google-map":return gc(c7,{});case"instagram":return gc(u7,{});case"intercom":return gc(L7,{});case"knowledge-base":return gc(f7,{});case"line":return gc(h7,{});case"linkedin":return gc(p7,{});case"messenger":return gc(g7,{});case"pinterest":return gc(m7,{});case"signal":return gc(v7,{});case"slack":return gc(b7,{});case"sms":return gc(y7,{});case"snapchat":return gc(x7,{});case"tawk":return gc(w7,{});case"telegram":return gc(k7,{});case"tidio":return gc(D7,{});case"tidycal":return gc(I7,{});case"tiktok":return gc(_7,{});case"twitter":return gc(S7,{});case"viber":return gc(C7,{});case"waze":return gc(E7,{});case"wechat":return gc(A7,{});case"whatsapp":return gc(O7,{});case"woocommerce":return gc(T7,{});case"wp-search":return gc(N7,{});case"youtube":return gc(R7,{});default:return}},z7=new Set(["Crisp","Custom-Iframe","FAQ","Intercom","Knowledge-Base","Tawk","Tidio","WooCommerce","WP-Search"]);function B7(){var e,t,n;const[r,o]=AH(qY),i=(e,t)=>{o(n=>{n.config[e]=t})},a=z7.has(r.channel_name);return gc(pc,{children:gc(UB,{alignItems:"flex-start",spacing:"6",children:mc(pc,{children:[mc(jP,{isRequired:!0,children:[gc(iD,{children:__("Title","bit-assist")}),gc(pD,{onChange:e=>i("title",e.target.value),value:r.config.title}),gc(zP,{children:__("Descriptive text for visitors.","bit-assist")})]}),gc(l7,{}),j7(r.channel_name.toLowerCase()),gc(VW,{hide:a,children:mc(jP,{children:[mc(iM,{alignItems:"center",children:[gc(iD,{mb:"0",children:__("Hide after office hours","bit-assist")}),gc(WB,{"aria-label":__("Hide after office hours","bit-assist"),colorScheme:"purple",isChecked:(null==(e=r.config)?void 0:e.hide_after_office_hours)||!1,ml:"2",onChange:e=>i("hide_after_office_hours",e.target.checked),tabIndex:zq.IS_PRO?0:-1})]}),gc(zP,{children:__("Hide this channel after office time.","bit-assist")})]})}),mc(jP,{children:[gc(iD,{display:"inline-block",children:__("Channel show on","bit-assist")}),gc(ZP,{colorScheme:"purple",onChange:e=>i("channel_show_on",e),value:null!=(n=null==(t=r.config)?void 0:t.channel_show_on)?n:[],children:mc(qB,{spacing:4,children:[gc(KP,{"aria-label":__("Show on desktop","bit-assist"),size:"lg",value:"desktop",children:__("Desktop","bit-assist")}),gc(KP,{"aria-label":__("Show on mobile","bit-assist"),size:"lg",value:"mobile",children:__("Mobile","bit-assist")})]})})]})]})})})}const F7=e=>""===e.title?{error:"Title is required",hasError:!0}:{hasError:!1};function q7(e){return Yq({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.77 3.77L16 2 6 12l10 10 1.77-1.77L9.54 12z"}}]})(e)}const U7=e=>{switch(e){case"call":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/call/",tutorial:"https://www.youtube.com/watch?v=vOnLBrrV160&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=12"});case"custom-channel":return gc(qW,{tutorial:"https://www.youtube.com/watch?v=J3Eykpv3HeE&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=28"});case"custom-form":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/custom-form/",tutorial:"https://www.youtube.com/watch?v=ReVUlPqT_1c&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=19"});case"custom-iframe":return gc(qW,{tutorial:"https://www.youtube.com/watch?v=llHYHzUZXnY&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=21"});case"discord":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/discord/",tutorial:"https://www.youtube.com/watch?v=QoObRkkkH4E&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=6"});case"faq":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/faq/",tutorial:"https://www.youtube.com/watch?v=KOiZzurMsTw&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=10"});case"google-map":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/google-map/",tutorial:"https://www.youtube.com/watch?v=jwR9Wrt8Cbw&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=9"});case"instagram":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/instagram/",tutorial:"https://www.youtube.com/watch?v=H0hNuM9Aguo&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=12"});case"knowledge-base":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/knowledge-base/",tutorial:"https://www.youtube.com/watch?v=J1sEym-nQl0&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=19"});case"line":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/line/",tutorial:"https://www.youtube.com/watch?v=jz6KJXdk9kc&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=4"});case"linkedin":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/linkedin/",tutorial:"https://www.youtube.com/watch?v=OYq4e1M9sMU&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=15"});case"messenger":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/messenger/",tutorial:"https://www.youtube.com/watch?v=atVwkzFNnmM&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=1"});case"pinterest":return gc(qW,{tutorial:"https://www.youtube.com/watch?v=jD76l_0jJIA&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=27"});case"signal":return gc(qW,{tutorial:"https://www.youtube.com/watch?v=tNiqiylU_Zw&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=26"});case"slack":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/slack/",tutorial:"https://www.youtube.com/watch?v=ev5id6N1eVA&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=17"});case"sms":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/sms/",tutorial:"https://www.youtube.com/watch?v=yjGOqcmfIhI&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=22"});case"snapchat":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/snapchat/",tutorial:"https://www.youtube.com/watch?v=RlJs4BZDXHs&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=20"});case"tawk":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/tawk/",tutorial:"https://www.youtube.com/watch?v=MjRePkAati0&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=8"});case"telegram":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/telegram/",tutorial:"https://www.youtube.com/watch?v=0fzK7He51_4&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=7"});case"tiktok":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/tiktok/",tutorial:"https://www.youtube.com/watch?v=Vyvu_JJKoOo&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=13"});case"twitter":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/twitter/",tutorial:"https://www.youtube.com/watch?v=c5b3YEtJM9A&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=2"});case"viber":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/viber/",tutorial:"https://www.youtube.com/watch?v=NDdqhDuMqUI&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=14"});case"waze":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/waze/",tutorial:"https://www.youtube.com/watch?v=ocxUI_Zsd7I&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=23"});case"wechat":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/wechat/",tutorial:"https://www.youtube.com/watch?v=Y_U4dj3bwfQ&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=5"});case"whatsapp":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/whatsapp/",tutorial:"https://www.youtube.com/watch?v=KFUa8jTvgkc&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=3"});case"woocommerce":return gc(qW,{tutorial:"https://www.youtube.com/watch?v=oymiguCozg8&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=25"});case"wp-search":return gc(qW,{tutorial:"https://www.youtube.com/watch?v=HRaoM3sDrKc&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=16"});case"youtube":return gc(qW,{docLink:"https://bitapps.pro/docs/bit-assist/all-channels/youtube/",tutorial:"https://www.youtube.com/watch?v=YYQvO8gVols&list=PL7c6CDwwm-AKc9ZA1pBg8nujZF6fHgtm5&index=24"});default:return}};function W7(){const{isOpen:e,onClose:t,onOpen:n}=st(),[r]=AH(qY),[,o]=AH(UY),i=GW(),{createWidgetChannel:a,isWidgetChannelCreating:s}=function(){const[,e]=AH(UY),t=Eq(),{widgetId:n}=VU(),{isLoading:r,mutateAsync:o}=Rq(async e=>HW("widgetChannels",e),{onSuccess:()=>{e(),t.invalidateQueries(["widget/widgetChannels",n])}});return{createWidgetChannel:e=>o(e),isWidgetChannelCreating:r}}(),l=()=>{t(),o()},c=async e=>{e.preventDefault();const t=F7(r.config);if(t.hasError)return void i("error",t.error||__("Error","bit-assist"));const{data:n,status:o}=await a(r);i(o,n),"success"===o&&l()},u=new Set(["Crisp","Custom-Iframe","FAQ","Intercom","Knowledge-Base","Tawk","Tidio","WooCommerce","WP-Search"]);return mc(pc,{children:[gc(iP,{colorScheme:"purple",leftIcon:gc(wW,{}),mb:"4",mr:"2",onClick:n,variant:"outline",children:__("Add Channel","bit-assist")}),mc($j,{closeOnOverlayClick:!1,isOpen:e,onClose:l,scrollBehavior:"inside",size:"3xl",trapFocus:!1,children:[gc(Bz,{}),mc(Pz,{pb:"4",children:[gc(Iz,{mr:"6",pb:"0",children:mc(qB,{justifyContent:"space-between",children:[mc(qB,{children:[r.step>1&&gc(iP,{onClick:o,p:"1",size:"sm",variant:"ghost",children:gc(q7,{"aria-label":__("Back","bit-assist"),size:"1rem"})}),gc(TF,{children:__("Create New Channel","bit-assist")}),gc(cP,{alignItems:"center",children:U7(r.channel_name.toLowerCase())})]}),2===r.step&&zq.IS_PRO?gc(SD,{href:"https://bitapps.pro/bit-assist",target:"_blank",children:gc(iP,{colorScheme:"purple",form:"createNewChannelForm",isLoading:s,loadingText:__("Saving...","bit-assist"),spinnerPlacement:"start",type:"submit",children:__("Save","bit-assist")})}):2===r.step&&!u.has(null==r?void 0:r.channel_name)&&gc(iP,{colorScheme:"purple",form:"createNewChannelForm",isLoading:s,loadingText:__("Saving...","bit-assist"),spinnerPlacement:"start",type:"submit",children:__("Save","bit-assist")})]})}),gc(Lz,{}),mc(Mz,{children:[1===r.step&&gc(wQ,{}),2===r.step&&gc(pc,{children:!zq.IS_PRO&&u.has(null==r?void 0:r.channel_name)?gc(VW,{children:gc("form",{id:"createNewChannelForm",onSubmit:c,children:gc(B7,{})})}):gc("form",{id:"createNewChannelForm",onSubmit:c,children:gc(B7,{})})})]})]})]})]})}function $7({isOpen:e,onClose:t}){const[n,r]=AH(qY),[,o]=AH(UY),[i]=AH(FY),a=function(e,t){const n=EH(e,t);return K.exports.useCallback(()=>n(zY),[n])}(FY),{isWidgetChannelFetching:s,widgetChannel:l}=function(){const[e]=AH(FY),{data:t,isLoading:n}=Mq(["widgetChannels",e],async()=>HW(`widgetChannels/${e}`,void 0,void 0,"GET"),{enabled:!!e});return{isWidgetChannelFetching:n,widgetChannel:null==t?void 0:t.data}}(),{isWidgetChannelUpdating:c,updateWidgetChannel:u}=function(){const{widgetId:e}=VU(),t=Eq(),{isLoading:n,mutateAsync:r}=Rq(async e=>HW(`widgetChannels/${e.widgetChannelId}/update`,e.flow),{onSuccess:()=>{t.invalidateQueries(["widget/widgetChannels",e])}});return{isWidgetChannelUpdating:n,updateWidgetChannel:(e,t)=>r({flow:e,widgetChannelId:t})}}(),d=GW(),f=()=>{t(),o(),a()};K.exports.useEffect(()=>{l&&r({channel_name:l.channel_name,config:l.config,sequence:null==l?void 0:l.sequence,step:1,widget_id:l.widget_id})},[l]);return mc($j,{closeOnOverlayClick:!1,isOpen:e,onClose:f,scrollBehavior:"inside",size:"3xl",trapFocus:!1,children:[gc(Bz,{}),mc(Pz,{pb:"4",children:[gc(Iz,{mr:"6",pb:0,children:mc(qB,{justifyContent:"space-between",children:[gc(TF,{children:__("Edit Channel","bit-assist")}),gc(iP,{colorScheme:"purple",form:"editChannelForm",isLoading:c,loadingText:__("Updating...","bit-assist"),spinnerPlacement:"start",type:"submit",children:__("Update","bit-assist")})]})}),gc(Lz,{}),mc(Mz,{children:[s&&gc(dP,{children:gc(ex,{})}),!s&&gc("form",{id:"editChannelForm",onSubmit:async e=>{e.preventDefault();const t=F7(n.config);if(t.hasError)return void d("error",t.error||__("Error","bit-assist"));const{data:r,status:o}=await u(n,i);d(o,r),"success"===o&&f()},children:gc(B7,{})})]})]})]})}function V7({bg:e="none",cursor:t="grab",shadow:n="none",widgetChannel:r}){var o,i,a,s;const l=K.exports.useRef(0),[,c]=AH(FY),u=Ad("purple.500","purple.200"),d=Ad("white","gray.800"),{deleteWidgetChannel:f,isWidgetChannelDeleting:h}=function(){const e=Eq(),{widgetId:t}=VU(),{isLoading:n,mutateAsync:r}=Rq(async e=>HW(`widgetChannels/${e}/destroy`),{onSuccess:()=>{e.invalidateQueries(["widget/widgetChannels",t]),e.invalidateQueries("channel_analytics")}});return{deleteWidgetChannel:e=>r(e),isWidgetChannelDeleting:n}}(),{copyWidgetChannel:p}=function(){const{widgetId:e}=VU(),t=Eq(),{isLoading:n,mutateAsync:r}=Rq(async e=>HW(`copyWidgetChannel/${e}`,void 0,void 0,"GET"),{onSuccess:()=>{t.invalidateQueries(["widget/widgetChannels",e])}});return{copyWidgetChannel:e=>r(e),isWidgetChannelCoping:n}}(),{isOpen:g,onClose:m,onOpen:v}=st(),{isOpen:b,onClose:y,onOpen:x}=st(),w=GW(),k=e=>()=>{c(e),v()},{attributes:_,isDragging:S,listeners:C,setNodeRef:E,transform:A,transition:O}=yJ({id:r.id}),T={opacity:S?.4:1,touchAction:"pinch-zoom",transform:HQ.Transform.toString(A),transition:O};return mc(pc,{children:[mc(qB,{bg:d,borderWidth:1,justifyContent:"space-between",px:"3",py:"2",ref:E,rounded:"md",shadow:n,style:T,w:"full",children:[mc(qB,{children:[gc(iM,{...C,..._,alignItems:"center",bg:e,cursor:t,h:8,justifyContent:"center",rounded:"sm",w:6,children:gc(QK,{"aria-label":__("draggable button","bit-assist")})}),gc(hD,{alt:r.config.title,boxSize:"40px",fallbackSrc:null==(o=yQ.find(e=>e.name===r.channel_name))?void 0:o.icon,objectFit:"cover",rounded:"full",src:r.config.channel_icon}),gc(TF,{_hover:{color:u},cursor:"pointer",display:"inline-block",ml:"2",onClick:k(r.id),children:null==(i=r.config)?void 0:i.title})]}),mc(eP,{children:[(null==(s=null==(a=r.config)?void 0:a.card_config)?void 0:s.form_fields)&&gc(hW,{to:`/responses/${r.id}`,children:gc(iP,{leftIcon:gc(DW,{}),size:"sm",variant:"ghost",children:__("Responses","bit-assist")})}),gc(iP,{leftIcon:gc(RW,{}),onClick:k(r.id),size:"sm",variant:"ghost",children:__("Edit","bit-assist")}),gc(iP,{leftIcon:gc(TW,{}),onClick:(N=r.id,async()=>{const{data:e,status:t}=await p(N);w(t,e)}),size:"sm",variant:"ghost",children:__("Duplicate","bit-assist")}),gc(iP,{colorScheme:"red",leftIcon:gc(zW,{}),onClick:(e=>()=>{l.current=e,x()})(r.id),size:"sm",variant:"ghost",children:__("Delete","bit-assist")})]})]}),gc($7,{isOpen:g,onClose:m}),mc($j,{closeOnOverlayClick:!1,isCentered:!0,isOpen:b,onClose:y,children:[gc(Bz,{}),mc(Pz,{children:[gc(Iz,{children:__("Confirmation","bit-assist")}),gc(Lz,{disabled:h}),gc(Mz,{children:__("Are you sure want to delete this channel?","bit-assist")}),mc(Dz,{children:[gc(iP,{disabled:h,mr:3,onClick:y,children:__("Cancel","bit-assist")}),gc(iP,{colorScheme:"red",isLoading:h,loadingText:__("Deleting","bit-assist")+"...",onClick:async()=>{await f(l.current),y()},shadow:"md",children:__("Delete","bit-assist")})]})]})]})]});var N}function H7(){const{isWidgetChannelsFetching:e,widgetChannels:t}=function(){const{widgetId:e}=VU(),[,t]=AH($Y),{data:n,isLoading:r}=Mq(["widget/widgetChannels",e],async()=>HW(`widgets/${e}/widgetChannels`,void 0,void 0,"GET"),{enabled:!!e,onSuccess:e=>{var n;t(null==(n=null==e?void 0:e.data)?void 0:n.length)}});return{isWidgetChannelsFetching:r,widgetChannels:null==n?void 0:n.data}}(),{updateWidgetChannelsOrder:n}=function(){const{widgetId:e}=VU(),t=Eq(),{isLoading:n,mutateAsync:r}=Rq(async e=>HW("widgetChannels/updateSequence",{widgetChannels:e}));return{isWidgetChannelOrderUpdating:n,updateWidgetChannelsOrder:n=>{const{data:o}=t.getQueryData(["widget/widgetChannels",e]);t.setQueryData(["widget/widgetChannels",e],{data:n});const i=n.map((e,t)=>({id:e.id,sequence:t})).filter((e,t)=>{var n;return(null==(n=o[t])?void 0:n.id)!==e.id});i.length>=2&&r(i)}}}(),[r,o]=K.exports.useState(0),[,i]=AH(BY),[,a]=AH(qY),s=Ad("gray.100","gray.600");K.exports.useEffect(()=>{if((null==t?void 0:t.length)<1)return;let e=0;null==t||t.map(t=>{t.sequence>e&&(e=t.sequence)}),i(e+1),a(t=>{t.sequence=e+1})},[t]);const l=iZ(oZ(nX),oZ(ZZ,{coordinateGetter:kJ})),c=K.exports.useMemo(()=>null==t?void 0:t.map(e=>e.id),[t]);return mc(pc,{children:[e&&gc(ex,{}),(null==t?void 0:t.length)<1&&gc(TF,{children:__("Create new channel from here.","bit-assist")}),!!(null==t?void 0:t.length)&&gc(qX,{collisionDetection:pZ,modifiers:[TJ,OJ],onDragEnd:e=>{var r;if(o(0),e.active.id!==(null==(r=e.over)?void 0:r.id)){const r=t.findIndex(t=>(null==t?void 0:t.id)===e.active.id),o=t.findIndex(t=>{var n;return(null==t?void 0:t.id)===(null==(n=e.over)?void 0:n.id)}),i=oJ(t,r,o);n(i)}},onDragStart:e=>{const{id:t}=e.active;o(+t)},sensors:l,children:gc(fJ,{items:c,strategy:cJ,children:mc(UB,{children:[null==t?void 0:t.map(e=>gc(V7,{widgetChannel:e},e.id)),r?gc(rJ,{style:{marginTop:0},children:gc(V7,{bg:s,cursor:"grabbing",shadow:"md",widgetChannel:t.find(e=>+e.id===r)})}):void 0]})})})]})}function Y7(){return mc(eP,{children:[gc(W7,{}),gc(H7,{})]})}const G7=Object.freeze(Object.defineProperty({__proto__:null,default:function(){!function(){const{widgetId:e}=VU(),[,t]=AH(WY),{data:n,isLoading:r}=Mq(["widgets",e],async()=>HW(`widgets/${e}`,void 0,void 0,"GET"),{enabled:!!e,onSuccess:e=>{(null==e?void 0:e.data)&&t(null==e?void 0:e.data)}});null==n||n.data}();const e=Ad("rgba(255, 255, 255, 0.75)","rgba(26,32,44,0.75)"),t=Ad("gray.600","gray.400"),{isAnalyticsActive:n}=YW(),[r,o]=bW(),i=Number(r.get("tab"))||0;return mc(fF,{colorScheme:"purple",index:i,onChange:e=>{o(t=>(t.set("tab",e.toString()),t))},variant:"soft-rounded",children:[mc(pF,{backdropFilter:"blur(10px)",bg:e,flexWrap:"wrap",gap:["1","2"],position:"sticky",py:"2",top:"32px",zIndex:2,children:[gc(AF,{label:__("Back to widget list","bit-assist"),placement:"top",children:gc(hW,{to:"/",children:gc(uP,{"aria-label":__("Back to widget list","bit-assist"),icon:gc(q7,{})})})}),mc(qB,{marginInline:"auto",children:[gc(hF,{rounded:"md",textColor:t,children:__("Channels","bit-assist")}),gc(hF,{rounded:"md",textColor:t,children:__("Customizations","bit-assist")}),gc(hF,{rounded:"md",textColor:t,children:__("Settings","bit-assist")}),gc(hF,{rounded:"md",textColor:t,children:__("External publish","bit-assist")}),1===n&&zq.IS_PRO&&gc(hF,{rounded:"md",textColor:t,children:__("Analytics","bit-assist")})]})]}),mc(mF,{borderWidth:"1px",mt:"2",mx:"auto",p:[0,4],rounded:"lg",shadow:"md",children:[gc(gF,{children:gc(Y7,{})}),gc(gF,{children:gc(jK,{})}),gc(gF,{children:gc(vQ,{})}),gc(gF,{children:gc(tQ,{})}),1===n&&zq.IS_PRO&&gc(gF,{children:gc(zK,{})})]})]})}},Symbol.toStringTag,{value:"Module"}));function K7({children:e,pageLimit:t,pageNumber:n,setPageLimit:r,setPageNumber:o,totalResponses:i}){const a=Math.ceil(i/t);return mc(FB,{alignItems:"center",direction:"row",flexWrap:"wrap",gap:"3",justifyContent:["center","space-between"],mt:"4",w:"full",children:[mc(qB,{children:[mc(_B,{id:"page_limit",maxW:"20",onChange:e=>{const t=Number(e.target.value),a=Math.ceil(i/t);r(t),o(n>a?a:n)},value:t,children:[gc("option",{value:10,children:"10"}),gc("option",{value:20,children:"20"}),gc("option",{value:30,children:"30"}),gc("option",{value:40,children:"40"}),gc("option",{value:50,children:"50"})]}),gc(TF,{whiteSpace:"nowrap",children:__("Row per page","bit-assist")})]}),mc(qB,{children:[e,gc(iP,{disabled:1===n||0===a,leftIcon:gc(EW,{}),onClick:()=>o(e=>e-1),rounded:"full",size:"sm",children:__("Prev","bit-assist")}),gc(iP,{disabled:n===a||0===a,onClick:()=>o(e=>e+1),rightIcon:gc(AW,{}),rounded:"full",size:"sm",children:__("Next","bit-assist")}),gc(TF,{whiteSpace:"nowrap",children:sprintf(__("%1$s / %2$s page","bit-assist"),n,a)})]})]})}const Q7=(e,t)=>(null==e?void 0:e.length)>t?`${e.slice(0,Math.max(0,t))}...`:e||"-",Z7=(e,t="-")=>e.toLowerCase().replaceAll(" ",t),X7="_downloadLink_coyad_1",J7="_fileDownloadIcon_coyad_1";function e8({files:e,widgetChannelId:t}){const n=Ad("gray.200","gray.600");return gc(pc,{children:e.map(e=>{const{AJAX_URL:r,NONCE:o,ROUTE_PREFIX:i}=zq,a=new URL(r);return a.searchParams.append("action",`${i}downloadResponseFile`),a.searchParams.append("_ajax_nonce",o),a.searchParams.append("widgetChannelID",t),a.searchParams.append("fileID",e.uniqueName),a.searchParams.append("fileName",e.originalName),gc(AF,{label:e.originalName,placement:"top",children:mc(iM,{className:X7,gap:"0.5",children:[mc(SD,{alignItems:"center",display:"flex",gap:"1",h:"7",href:a.href,target:"_blank",children:[gc(LW,{fontSize:"0.875rem"}),Q7(e.originalName,6)]}),gc(SD,{_hover:{backgroundColor:n},className:J7,href:`${a.href}&download`,p:"1.5",rounded:"full",children:gc(NW,{fontSize:"0.875rem"})})]})},Math.random())})})}function t8({closeDelModal:e,handleDeleteWidget:t,isOpen:n,isResponsesDeleting:r}){return mc($j,{isCentered:!0,isOpen:n,onClose:e,children:[gc(Bz,{}),mc(Pz,{children:[gc(Iz,{children:__("Confirmation","bit-assist")}),gc(Lz,{disabled:r}),gc(Mz,{children:__("Are you sure want to delete selected responses?","bit-assist")}),mc(Dz,{children:[gc(iP,{disabled:r,mr:3,onClick:e,children:__("Cancel","bit-assist")}),gc(iP,{colorScheme:"red",isLoading:r,loadingText:__("Deleting...","bit-assist"),onClick:t,shadow:"md",children:__("Delete","bit-assist")})]})]})]})}function n8({btnRef:e,drawerResponse:t,handleDrawerClose:n,isDrawerOpen:r}){return mc(Wz,{finalFocusRef:e,isOpen:r,onClose:n,placement:"right",children:[gc(Bz,{bg:"blackAlpha.400"}),mc(Gz,{marginTop:"32px",children:[gc(Lz,{}),gc(Iz,{children:__("Response Details","bit-assist")}),gc(Mz,{children:t&&Object.entries(t.response).map(([e,n])=>mc(eP,{children:[gc(TF,{fontSize:"md",fontWeight:"bold",mb:"2",children:e.toUpperCase().replaceAll("_"," ")}),"object"==typeof n?gc(qB,{flexWrap:"wrap",gap:"1",maxW:"300px",mb:"2",spacing:"0",children:gc(e8,{files:n,widgetChannelId:t.widget_channel_id})}):gc(TF,{fontSize:"sm",mb:"2",children:n})]},e+Math.random()))})]})]})}const r8=e=>{const t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString()}`};const o8=Object.freeze(Object.defineProperty({__proto__:null,default:function(){var e;const[t,n]=K.exports.useState(10),[r,o]=K.exports.useState(1),{othersData:i}=function(){const{widgetChannelId:e}=VU(),{data:t,isLoading:n}=Mq(["responses/othersData",e],async()=>HW(`responses/${e}/othersData`,void 0,void 0,"GET"),{enabled:!!e,staleTime:36e5});return{isOthersDataLoading:n,othersData:null==t?void 0:t.data}}(),{isFetched:a,isFetching:s,isResponsesLoading:l,refresh:c,widgetResponses:u}=function(e,t){const{widgetChannelId:n}=VU(),{data:r,isFetched:o,isFetching:i,isLoading:a,refetch:s}=Mq(["responses",[n,t,e]],async()=>HW(`responses/${n}/${t}/${e}`,void 0,void 0,"GET"),{enabled:!!n&&!!e&&!!t,keepPreviousData:!0,refetchInterval:3e3,staleTime:36e5});return{isFetched:o,isFetching:i,isResponsesLoading:a,refresh:s,widgetResponses:null==r?void 0:r.data}}(t,r),{deleteResponses:d,isResponsesDeleting:f}=function(e,t){const n=Eq(),{widgetChannelId:r}=VU(),{isLoading:o,mutateAsync:i}=Rq(async e=>HW("responsesDelete",{responseIds:e}),{onSuccess:()=>{n.invalidateQueries(["responses",[r,t,e]]),n.invalidateQueries(["responses/othersData",r])}});return{deleteResponses:e=>i(e),isResponsesDeleting:o}}(t,r),{isOpen:h,onClose:p,onOpen:g}=st(),[m,v]=K.exports.useState([]),b=WU(),{isOpen:y,onClose:x,onOpen:w}=st(),k=K.exports.useRef(null),_=K.exports.useRef();return K.exports.useEffect(()=>{(null==m?void 0:m.length)<1||v([])},[r,t]),mc(pc,{children:[mc(qB,{flexWrap:"wrap",mb:"4",children:[mc(qB,{alignItems:"center",children:[gc(AF,{label:__("Back to channel list","bit-assist"),placement:"top",children:gc(uP,{"aria-label":__("Back to widget channel settings","bit-assist"),icon:gc(q7,{}),onClick:()=>b(-1)})}),mc(TF,{as:"h2",fontSize:"lg",textTransform:"none",children:[__("Response List","bit-assist")," ",(null==i?void 0:i.channelName)&&`- ${i.channelName}`]}),gc(uP,s?{"aria-label":__("Loading","bit-assist"),icon:gc(ex,{size:"sm"}),rounded:"full",size:"sm",variant:"ghost"}:{"aria-label":__("Refresh","bit-assist"),icon:gc(jW,{}),onClick:()=>c(),rounded:"full",size:"sm",variant:"ghost"})]}),(null==m?void 0:m.length)?mc(qB,{spacing:1,children:[gc(uP,{"aria-label":__("Delete","bit-assist"),fontSize:"1rem",icon:gc(zW,{}),onClick:g,rounded:"full",size:"sm",variant:"ghost"}),mc(JR,{textTransform:"lowercase",children:[m.length," ",__("items selected","bit-assist")]})]}):void 0]}),gc(GB,{borderWidth:"1px",rounded:"lg",shadow:"md",children:mc(HB,{variant:"simple",children:[gc(XB,{children:mc(JB,{children:[gc(ZB,{w:"4",children:gc(KP,{"aria-label":__("Select all","bit-assist"),colorScheme:"purple",isChecked:(null==u?void 0:u.length)&&u.length===(null==m?void 0:m.length),isIndeterminate:!!((null==m?void 0:m.length)&&m.length<(null==u?void 0:u.length)),onChange:e=>{const{checked:t}=e.target;v(()=>t?null==u?void 0:u.map(e=>e.id):[])}})}),null==(e=null==i?void 0:i.formFields)?void 0:e.map(e=>gc(ZB,{children:Q7(e.label,20)},`${e.id}th`)),gc(ZB,{w:"6",children:__("Created At","bit-assist")})]})}),mc(KB,{children:[Array.isArray(u)&&u.map(e=>{var t;return mc(JB,{children:[gc(QB,{py:"2",children:mc(qB,{spacing:3,children:[gc(KP,{"aria-label":__("Select","bit-assist"),colorScheme:"purple",isChecked:!!m.includes(e.id),onChange:t=>((e,t)=>{const{checked:n}=e.target;v(e=>n?[...e,t]:e.filter(e=>e!==t))})(t,e.id)}),gc(uP,{"aria-label":__("View details","bit-assist"),h:"auto",icon:gc(PW,{fontSize:"1rem"}),onClick:()=>(e=>{_.current=e,w()})(e),ref:k,size:"sm",variant:"unstyled"})]})}),null==(t=null==i?void 0:i.formFields)?void 0:t.map(t=>{const n="object"==typeof e.response[Z7(t.label,"_")];return gc(QB,{maxW:n?"300px":"auto",py:"2",children:n?gc(qB,{overflow:"hidden",spacing:1,children:gc(e8,{files:e.response[Z7(t.label,"_")],widgetChannelId:e.widget_channel_id})}):Q7(e.response[Z7(t.label,"_")],40)},`${t.id}td`)}),gc(QB,{py:"2",children:r8(e.created_at)})]},e.id)}),(null==u?void 0:u.length)<1&&gc(JB,{children:gc(QB,{rowSpan:3,children:__("No responses","bit-assist")})})]})]})}),(null==u?void 0:u.length)>0&&!l&&gc(K7,{pageLimit:t,pageNumber:r,setPageLimit:n,setPageNumber:o,totalResponses:(null==i?void 0:i.totalResponses)||0,children:!a&&s&&gc(ex,{size:"sm"})}),gc(n8,{btnRef:k,drawerResponse:_.current,handleDrawerClose:()=>{_.current=void 0,x()},isDrawerOpen:y}),gc(t8,{closeDelModal:p,handleDeleteWidget:async()=>{await d(m),v([]),p()},isOpen:h,isResponsesDeleting:f})]})}},Symbol.toStringTag,{value:"Module"})),i8=""+new URL("space.svg",import.meta.url).href;const a8=Object.freeze(Object.defineProperty({__proto__:null,default:function(){const[e,t]=K.exports.useState(9),n=WU();return K.exports.useEffect(()=>{setTimeout(()=>{0===e&&n("/",{replace:!0}),t(e-1)},1e3)},[e]),mc("div",{className:"error-404",children:[mc("div",{children:[gc("div",{className:"four",children:"404"}),gc("div",{className:"t",children:__("Lost In Space","bit-assist")}),gc("br",{}),__("Redirecting Home in","bit-assist")," ",e,gc("br",{}),gc("br",{}),gc(hW,{className:"btn dp-blue btcd-btn-lg",to:"/",children:__("Go Home","bit-assist")})]}),gc("img",{alt:__("404 not found","bit-assist"),src:i8})]})}},Symbol.toStringTag,{value:"Module"}));