whoami7 - Manager
:
/
home
/
analuakl
/
somethingsmushy.com
/
wp-content
/
plugins
/
user-registration
/
chunks
/
Upload File:
files >> /home/analuakl/somethingsmushy.com/wp-content/plugins/user-registration/chunks/form_templates.js
(()=>{var e={1035(e,t,r){"use strict";var n=r(5959),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||n&&n[g]||m&&m[g]||s&&s[g])){var b=f(r,g);try{c(t,g,b)}catch(e){}}}}return t}},2889(e){var t=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),c=Object.prototype.toString,u=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(p(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=p(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=n.test(e);return s||o.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,r){var n,o,i,a,s,l,c=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=n,i=o;return n=o=void 0,c=t,a=e.apply(i,r)}function y(e){var r=e-l;return void 0===l||r>=t||r<0||v&&e-c>=i}function x(){var e=f();if(y(e))return w(e);s=setTimeout(x,function(e){var r=t-(e-l);return v?d(r,i-(e-c)):r}(e))}function w(e){return s=void 0,g&&n?b(e):(n=o=void 0,a)}function S(){var e=f(),r=y(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),m?b(e):a}(l);if(v)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=h(t)||0,p(r)&&(m=!!r.leading,i=(v="maxWait"in r)?u(h(r.maxWait)||0,t):i,g="trailing"in r?!!r.trailing:g),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},S.flush=function(){return void 0===s?a:w(f())},S}},4072(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},5739(e,t,r){"use strict";r.d(t,{A:()=>o});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/;const o=(i={},function(e){return void 0===i[e]&&(i[e]=(t=e,n.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),i[e];var t});var i},5795(e){"use strict";e.exports=window.ReactDOM},5843(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},5959(e,t,r){"use strict";e.exports=r(5843)},8061(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[i]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[a]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d,f,p,h="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,m="object"==typeof self&&self&&self.Object===Object&&self,v=h||m||Function("return this")(),g=t&&!t.nodeType&&t,b=g&&e&&!e.nodeType&&e,y=b&&b.exports===g,x=y&&h.process,w=function(){try{return b&&b.require&&b.require("util").types||x&&x.binding&&x.binding("util")}catch(e){}}(),S=w&&w.isTypedArray,k=Array.prototype,C=Function.prototype,_=Object.prototype,E=v["__core-js_shared__"],A=C.toString,T=_.hasOwnProperty,P=(d=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",j=_.toString,R=A.call(Object),O=RegExp("^"+A.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=y?v.Buffer:void 0,z=v.Symbol,F=v.Uint8Array,I=(M&&M.allocUnsafe,f=Object.getPrototypeOf,p=Object,function(e){return f(p(e))}),D=Object.create,B=_.propertyIsEnumerable,N=k.splice,L=z?z.toStringTag:void 0,$=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),W=M?M.isBuffer:void 0,V=Math.max,q=Date.now,H=se(v,"Map"),U=se(Object,"create"),Q=function(){function e(){}return function(t){if(!ye(t))return{};if(D)return D(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function G(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function K(e){var t=this.__data__=new X(e);this.size=t.size}function Z(e,t,r){(void 0!==r&&!fe(e[t],r)||void 0===r&&!(t in e))&&te(e,t,r)}function J(e,t,r){var n=e[t];T.call(e,t)&&fe(n,r)&&(void 0!==r||t in e)||te(e,t,r)}function ee(e,t){for(var r=e.length;r--;)if(fe(e[r][0],t))return r;return-1}function te(e,t,r){"__proto__"==t&&$?$(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}G.prototype.clear=function(){this.__data__=U?U(null):{},this.size=0},G.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},G.prototype.get=function(e){var t=this.__data__;if(U){var r=t[e];return r===n?void 0:r}return T.call(t,e)?t[e]:void 0},G.prototype.has=function(e){var t=this.__data__;return U?void 0!==t[e]:T.call(t,e)},G.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=U&&void 0===t?n:t,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(e){var t=this.__data__,r=ee(t,e);return!(r<0||(r==t.length-1?t.pop():N.call(t,r,1),--this.size,0))},X.prototype.get=function(e){var t=this.__data__,r=ee(t,e);return r<0?void 0:t[r][1]},X.prototype.has=function(e){return ee(this.__data__,e)>-1},X.prototype.set=function(e,t){var r=this.__data__,n=ee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(H||X),string:new G}},Y.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},Y.prototype.get=function(e){return ae(this,e).get(e)},Y.prototype.has=function(e){return ae(this,e).has(e)},Y.prototype.set=function(e,t){var r=ae(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,t){var r=this.__data__;if(r instanceof X){var n=r.__data__;if(!H||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Y(n)}return r.set(e,t),this.size=r.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":L&&L in Object(e)?function(e){var t=T.call(e,L),r=e[L];try{e[L]=void 0;var n=!0}catch(e){}var o=j.call(e);return n&&(t?e[L]=r:delete e[L]),o}(e):function(e){return j.call(e)}(e)}function ne(e){return xe(e)&&re(e)==i}function oe(e,t,r,n,o){e!==t&&function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}}(t,function(i,a){if(o||(o=new K),ye(i))!function(e,t,r,n,o,i,a){var l=ue(e,r),c=ue(t,r),u=a.get(c);if(u)Z(e,r,u);else{var d,f,p,h,m,v=i?i(l,c,r+"",e,t,a):void 0,g=void 0===v;if(g){var b=he(c),y=!b&&ve(c),x=!b&&!y&&we(c);v=c,b||y||x?he(l)?v=l:xe(m=l)&&me(m)?v=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(l):y?(g=!1,v=function(e){return e.slice()}(c)):x?(g=!1,h=new(p=(d=c).buffer).constructor(p.byteLength),new F(h).set(new F(p)),f=h,v=new d.constructor(f,d.byteOffset,d.length)):v=[]:function(e){if(!xe(e)||re(e)!=s)return!1;var t=I(e);if(null===t)return!0;var r=T.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&A.call(r)==R}(c)||pe(c)?(v=l,pe(l)?v=function(e){return function(e,t,r){var n=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=void 0;void 0===s&&(s=e[a]),n?te(r,a,s):J(r,a,s)}return r}(e,Se(e))}(l):ye(l)&&!ge(l)||(v=function(e){return"function"!=typeof e.constructor||ce(e)?{}:Q(I(e))}(c))):g=!1}g&&(a.set(c,v),o(v,c,n,i,a),a.delete(c)),Z(e,r,v)}}(e,t,a,r,oe,n,o);else{var l=n?n(ue(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),Z(e,a,l)}},Se)}var ie=$?function(e,t){return $(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:_e;function ae(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function se(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ye(e)||function(e){return!!P&&P in e}(e))&&(ge(e)?O:l).test(function(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function le(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&c.test(e))&&e>-1&&e%1==0&&e<t}function ce(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_)}function ue(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,r=0;return function(){var n=q(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function fe(e,t){return e===t||e!=e&&t!=t}var pe=ne(function(){return arguments}())?ne:function(e){return xe(e)&&T.call(e,"callee")&&!B.call(e,"callee")},he=Array.isArray;function me(e){return null!=e&&be(e.length)&&!ge(e)}var ve=W||function(){return!1};function ge(e){if(!ye(e))return!1;var t=re(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=S?function(e){return function(t){return e(t)}}(S):function(e){return xe(e)&&be(e.length)&&!!u[re(e)]};function Se(e){return me(e)?function(e,t){var r=he(e),n=!r&&pe(e),o=!r&&!n&&ve(e),i=!r&&!n&&!o&&we(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!T.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||le(c,l))||s.push(c);return s}(e,!0):function(e){if(!ye(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ce(e),r=[];for(var n in e)("constructor"!=n||!t&&T.call(e,n))&&r.push(n);return r}(e)}var ke,Ce=(ke=function(e,t,r,n){oe(e,t,r,n)},function(e,t){return de(function(e,t,r){return t=V(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=V(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,_e),e+"")}(function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=ke.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!ye(r))return!1;var n=typeof t;return!!("number"==n?me(r)&&le(t,r.length):"string"==n&&t in r)&&fe(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&ke(e,a,r,o)}return e}));function _e(e){return e}e.exports=Ce},9576(e,t,r){"use strict";var n=r(5795);t.createRoot=n.createRoot,n.hydrateRoot}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0,(()=>{"use strict";const e=window.React;var t=r.n(e),n=r(9576);const o=window.wp.i18n;var i=(...e)=>e.filter(Boolean).join(" ");function a(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function s(e,...t){return l(e)?e(...t):e}var l=e=>"function"==typeof e,c=e=>e?"":void 0,u=e=>!!e||void 0;function d(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var f=Object.freeze(["base","sm","md","lg","xl","2xl"]);function p(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):a(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):null!=e?t(e):null}var h=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:e.useEffect;const m=window.ReactJSXRuntime;var v=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function g(t){const{children:r,environment:n,disabled:o}=t,i=(0,e.useRef)(null),a=(0,e.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument.defaultView)?t:window}},[n]),s=!o||!n;return(0,m.jsxs)(v.Provider,{value:a,children:[r,s&&(0,m.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}v.displayName="EnvironmentContext",g.displayName="EnvironmentProvider";var b=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=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{r.insertRule(e,r.cssRules.length)}catch(e){}}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}(),y=Math.abs,x=String.fromCharCode,w=Object.assign;function S(e){return e.trim()}function k(e,t,r){return e.replace(t,r)}function C(e,t){return e.indexOf(t)}function _(e,t){return 0|e.charCodeAt(t)}function E(e,t,r){return e.slice(t,r)}function A(e){return e.length}function T(e){return e.length}function P(e,t){return t.push(e),e}var j=1,R=1,O=0,M=0,z=0,F="";function I(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:j,column:R,length:a,return:""}}function D(e,t){return w(I("",null,null,"",null,null,0),e,{length:-e.length},t)}function B(){return z=M>0?_(F,--M):0,R--,10===z&&(R=1,j--),z}function N(){return z=M<O?_(F,M++):0,R++,10===z&&(R=1,j++),z}function L(){return _(F,M)}function $(){return M}function W(e,t){return E(F,e,t)}function V(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 q(e){return j=R=1,O=A(F=e),M=0,[]}function H(e){return F="",e}function U(e){return S(W(M-1,X(91===e?e+2:40===e?e+1:e)))}function Q(e){for(;(z=L())&&z<33;)N();return V(e)>2||V(z)>3?"":" "}function G(e,t){for(;--t&&N()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return W(e,$()+(t<6&&32==L()&&32==N()))}function X(e){for(;N();)switch(z){case e:return M;case 34:case 39:34!==e&&39!==e&&X(z);break;case 40:41===e&&X(e);break;case 92:N()}return M}function Y(e,t){for(;N()&&e+z!==57&&(e+z!==84||47!==L()););return"/*"+W(t,M-1)+"*"+x(47===e?e:N())}function K(e){for(;!V(L());)N();return W(e,M)}var Z="-ms-",J="-moz-",ee="-webkit-",te="comm",re="rule",ne="decl",oe="@keyframes";function ie(e,t){for(var r="",n=T(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ae(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ne:return e.return=e.return||e.value;case te:return"";case oe:return e.return=e.value+"{"+ie(e.children,n)+"}";case re:e.value=e.props.join(",")}return A(r=ie(e.children,n))?e.return=e.value+"{"+r+"}":""}function se(e){return H(le("",null,null,null,[""],e=q(e),0,[0],e))}function le(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,v=1,g=1,b=0,y="",w=o,S=i,E=n,T=y;v;)switch(h=b,b=N()){case 40:if(108!=h&&58==_(T,d-1)){-1!=C(T+=k(U(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:T+=U(b);break;case 9:case 10:case 13:case 32:T+=Q(h);break;case 92:T+=G($()-1,7);continue;case 47:switch(L()){case 42:case 47:P(ue(Y(N(),$()),t,r),l);break;default:T+="/"}break;case 123*m:s[c++]=A(T)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==g&&(T=k(T,/\f/g,"")),p>0&&A(T)-d&&P(p>32?de(T+";",n,r,d-1):de(k(T," ","")+";",n,r,d-2),l);break;case 59:T+=";";default:if(P(E=ce(T,t,r,c,u,o,s,y,w=[],S=[],d),i),123===b)if(0===u)le(T,t,E,E,w,i,d,s,S);else switch(99===f&&110===_(T,3)?100:f){case 100:case 108:case 109:case 115:le(e,E,E,n&&P(ce(e,E,E,0,0,o,s,y,o,w=[],d),S),o,S,d,s,n?w:S);break;default:le(T,E,E,E,[""],S,0,s,S)}}c=u=p=0,m=g=1,y=T="",d=a;break;case 58:d=1+A(T),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==B())continue;switch(T+=x(b),b*m){case 38:g=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(A(T)-1)*g,g=1;break;case 64:45===L()&&(T+=U(N())),f=L(),u=d=A(y=T+=K($())),b++;break;case 45:45===h&&2==A(T)&&(m=0)}}return i}function ce(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=T(f),h=0,m=0,v=0;h<n;++h)for(var g=0,b=E(e,d+1,d=y(m=a[h])),x=e;g<p;++g)(x=S(m>0?f[g]+" "+b:k(b,/&\f/g,f[g])))&&(l[v++]=x);return I(e,t,r,0===o?re:s,l,c,u)}function ue(e,t,r){return I(e,t,r,te,x(z),E(e,2,-2),0)}function de(e,t,r,n){return I(e,t,r,ne,E(e,0,n),E(e,n+1,-1),n)}var fe=function(e,t,r){for(var n=0,o=0;n=o,o=L(),38===n&&12===o&&(t[r]=1),!V(o);)N();return W(e,M)},pe=new WeakMap,he=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pe.get(r))&&!n){pe.set(e,!0);for(var o=[],i=function(e,t){return H(function(e,t){var r=-1,n=44;do{switch(V(n)){case 0:38===n&&12===L()&&(t[r]=1),e[r]+=fe(M-1,t,r);break;case 2:e[r]+=U(n);break;case 4:if(44===n){e[++r]=58===L()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=x(n)}}while(n=N());return e}(q(e),t))}(t,o),a=r.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]}}},me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ve(e,t){switch(function(e,t){return 45^_(e,0)?(((t<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}(e,t)){case 5103:return ee+"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 ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+J+e+Z+e+e;case 6828:case 4268:return ee+e+Z+e+e;case 6165:return ee+e+Z+"flex-"+e+e;case 5187:return ee+e+k(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return ee+e+Z+"flex-item-"+k(e,/flex-|-self/,"")+e;case 4675:return ee+e+Z+"flex-line-pack"+k(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+Z+k(e,"shrink","negative")+e;case 5292:return ee+e+Z+k(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+k(e,"-grow","")+ee+e+Z+k(e,"grow","positive")+e;case 4554:return ee+k(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return k(k(k(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return k(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return k(k(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return k(e,/(.+)-inline(.+)/,ee+"$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(A(e)-1-t>6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return k(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+J+(108==_(e,t+3)?"$3":"$2-$3"))+e;case 115:return~C(e,"stretch")?ve(k(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_(e,t+1))break;case 6444:switch(_(e,A(e)-3-(~C(e,"!important")&&10))){case 107:return k(e,":",":"+ee)+e;case 101:return k(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(45===_(e,14)?"inline-":"")+"box$3$1"+ee+"$2$3$1"+Z+"$2box$3")+e}break;case 5936:switch(_(e,t+11)){case 114:return ee+e+Z+k(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+Z+k(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+Z+k(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+Z+e+e}return e}var ge=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ne:e.return=ve(e.value,e.length);break;case oe:return ie([D(e,{value:k(e.value,"@","@"+ee)})],n);case re:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ie([D(e,{props:[k(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return ie([D(e,{props:[k(t,/:(plac\w+)/,":"+ee+"input-$1")]}),D(e,{props:[k(t,/:(plac\w+)/,":-moz-$1")]}),D(e,{props:[k(t,/:(plac\w+)/,Z+"input-$1")]})],n)}return""})}}],be=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,i=e.stylisPlugins||ge,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)});var l,c,u,d,f=[ae,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[he,me].concat(i,f),u=T(c),function(e,t,r,n){for(var o="",i=0;i<u;i++)o+=c[i](e,t,r,n)||"";return o});o=function(e,t,r,n){l=r,function(e){ie(se(e),p)}(e?e+"{"+t.styles+"}":t.styles),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new b({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h};function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ye.apply(null,arguments)}var xe=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function we(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var Se=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ke=function(e,t,r){Se(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},Ce={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function _e(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Ee=/[A-Z]|^ms/g,Ae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Te=function(e){return 45===e.charCodeAt(1)},Pe=function(e){return null!=e&&"boolean"!=typeof e},je=_e(function(e){return Te(e)?e:e.replace(Ee,"-$&").toLowerCase()}),Re=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ae,function(e,t,r){return Me={name:t,styles:r,next:Me},t})}return 1===Ce[e]||Te(e)||"number"!=typeof t||0===t?t:t+"px"};function Oe(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Me={name:o.name,styles:o.styles,next:Me},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Me={name:a.name,styles:a.styles,next:Me},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Oe(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":Pe(s)&&(n+=je(i)+":"+Re(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Oe(e,t,a);switch(i){case"animation":case"animationName":n+=je(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Pe(a[c])&&(n+=je(i)+":"+Re(i,a[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=Me,l=r(e);return Me=s,Oe(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Me,ze=/label:\s*([^\s;{]+)\s*(;|$)/g;function Fe(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Me=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=Oe(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Oe(r,t,e[a]),n&&(o+=i[a]);ze.lastIndex=0;for(var s,l="";null!==(s=ze.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Me}}var Ie=!!e.useInsertionEffect&&e.useInsertionEffect,De=Ie||function(e){return e()},Be=Ie||e.useLayoutEffect,Ne=e.createContext("undefined"!=typeof HTMLElement?be({key:"css"}):null),Le=(Ne.Provider,function(t){return(0,e.forwardRef)(function(r,n){var o=(0,e.useContext)(Ne);return t(r,o,n)})}),$e=e.createContext({}),We=xe(function(e){return xe(function(t){return function(e,t){return"function"==typeof t?t(e):ye({},e,t)}(e,t)})}),Ve=function(t){var r=e.useContext($e);return t.theme!==r&&(r=We(r)(t.theme)),e.createElement($e.Provider,{value:r},t.children)},qe={}.hasOwnProperty,He="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ue=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Se(t,r,n),De(function(){return ke(t,r,n)}),null},Qe=Le(function(t,r,n){var o=t.css;"string"==typeof o&&void 0!==r.registered[o]&&(o=r.registered[o]);var i=t[He],a=[o],s="";"string"==typeof t.className?s=we(r.registered,a,t.className):null!=t.className&&(s=t.className+" ");var l=Fe(a,void 0,e.useContext($e));s+=r.key+"-"+l.name;var c={};for(var u in t)qe.call(t,u)&&"css"!==u&&u!==He&&(c[u]=t[u]);return c.className=s,n&&(c.ref=n),e.createElement(e.Fragment,null,e.createElement(Ue,{cache:r,serialized:l,isStringTag:"string"==typeof i}),e.createElement(i,c))});function Ge(){const t=(0,e.useContext)($e);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}function Xe(t,r){var n;const o=function(t){var r,n;const o=a(t)?t:{fallback:null!=t?t:"base"},i=Ge().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),s=i.map(e=>e.breakpoint===o.fallback),l=function(t,r={}){const{ssr:n=!0,fallback:o}=r,{getWindow:i}=function({defer:t}={}){const[,r]=(0,e.useReducer)(e=>e+1,0);return h(()=>{t&&r()},[t]),(0,e.useContext)(v)}(),a=Array.isArray(t)?t:[t];let s=Array.isArray(o)?o:[o];s=s.filter(e=>null!=e);const[l,c]=(0,e.useState)(()=>a.map((e,t)=>({media:e,matches:n?!!s[t]:i().matchMedia(e).matches})));return(0,e.useEffect)(()=>{const e=i();c(a.map(t=>({media:t,matches:e.matchMedia(t).matches})));const t=a.map(t=>e.matchMedia(t)),r=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(r):e.addEventListener("change",r)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)})}},[i]),l.map(e=>e.matches)}(i.map(e=>e.query),{fallback:s,ssr:o.ssr});return null!=(n=null==(r=i[l.findIndex(e=>1==e)])?void 0:r.breakpoint)?n:o.fallback}(a(r)?r:{fallback:null!=r?r:"base"}),i=Ge();if(!o)return;const s=Array.from((null==(n=i.__breakpoints)?void 0:n.keys)||[]),l=Array.isArray(t)?Object.fromEntries(Object.entries(function(e,t=f){const r={};return e.forEach((e,n)=>{const o=t[n];null!=e&&(r[o]=e)}),r}(t,s)).map(([e,t])=>[e,t])):t;return function(e,t,r=f){let n=Object.keys(e).indexOf(t);if(-1!==n)return e[t];let o=r.indexOf(t);for(;o>=0;){const t=r[o];if(e.hasOwnProperty(t)){n=o;break}o-=1}return-1!==n?e[r[n]]:void 0}(l,o,s)}function Ye(t){return(0,e.forwardRef)(t)}var Ke=r(8061),Ze=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function Je(e){const{scale:t,transform:r,compose:n}=e;return(e,o)=>{var i;const s=((e,t)=>r=>{const n=String(t),o=(e=>/!(important)?$/.test(e))(n),i=Ze(n),s=e?`${e}.${i}`:i;let l=a(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return l=Ze(l),o?`${l} !important`:l})(t,e)(o);let l=null!=(i=null==r?void 0:r(s,o))?i:s;return n&&(l=n(l,o)),l}}var et=(...e)=>t=>e.reduce((e,t)=>t(e),t);function tt(e,t){return r=>{const n={property:r,scale:e};return n.transform=Je({scale:e,transform:t}),n}}var rt=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,nt=["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))"],ot={"--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(" ")},it={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,/*!*/ /*!*/)"},at={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},st={"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"},lt=new Set(Object.values(st)),ct=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),ut=e=>e.trim(),dt=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),ft=e=>t=>`${e}(${t})`,pt={filter:e=>"auto"!==e?e:ot,backdropFilter:e=>"auto"!==e?e:it,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(", ")}}(pt.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))",...nt].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...nt].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()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}})(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||ct.has(e))return e;if(!dt(e)&&!ct.has(e))return`url('${e}')`;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],o=null==r?void 0:r[2];if(!n||!o)return e;const i=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=o.split(",").map(ut).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=a in st?st[a]:a;return s.unshift(l),`${i}(${s.map(e=>{if(lt.has(e))return e;const r=e.indexOf(" "),[n,o]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],i=dt(o)?o:o&&o.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s}).join(", ")})`}(e,null!=t?t:{}),blur:ft("blur"),opacity:ft("opacity"),brightness:ft("brightness"),contrast:ft("contrast"),dropShadow:ft("drop-shadow"),grayscale:ft("grayscale"),hueRotate:e=>ft("hue-rotate")(pt.degree(e)),invert:ft("invert"),saturate:ft("saturate"),sepia:ft("sepia"),bgImage:e=>null==e||dt(e)||ct.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:r,divide:n}=null!=(t=at[e])?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},ht={borderWidths:tt("borderWidths"),borderStyles:tt("borderStyles"),colors:tt("colors"),borders:tt("borders"),gradients:tt("gradients",pt.gradient),radii:tt("radii",pt.px),space:tt("space",et(pt.vh,pt.px)),spaceT:tt("space",et(pt.vh,pt.px)),degreeT:e=>({property:e,transform:pt.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:Je({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:tt("sizes",et(pt.vh,pt.px)),sizesT:tt("sizes",et(pt.vh,pt.fraction)),shadows:tt("shadows"),logical:function(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:rt(t),transform:r?Je({scale:r,compose:n}):n}},blur:tt("blur",pt.blur)},mt={background:ht.colors("background"),backgroundColor:ht.colors("backgroundColor"),backgroundImage:ht.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:pt.bgClip},bgSize:ht.prop("backgroundSize"),bgPosition:ht.prop("backgroundPosition"),bg:ht.colors("background"),bgColor:ht.colors("backgroundColor"),bgPos:ht.prop("backgroundPosition"),bgRepeat:ht.prop("backgroundRepeat"),bgAttachment:ht.prop("backgroundAttachment"),bgGradient:ht.gradients("backgroundImage"),bgClip:{transform:pt.bgClip}};Object.assign(mt,{bgImage:mt.backgroundImage,bgImg:mt.backgroundImage});var vt={border:ht.borders("border"),borderWidth:ht.borderWidths("borderWidth"),borderStyle:ht.borderStyles("borderStyle"),borderColor:ht.colors("borderColor"),borderRadius:ht.radii("borderRadius"),borderTop:ht.borders("borderTop"),borderBlockStart:ht.borders("borderBlockStart"),borderTopLeftRadius:ht.radii("borderTopLeftRadius"),borderStartStartRadius:ht.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ht.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ht.radii("borderTopRightRadius"),borderStartEndRadius:ht.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ht.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ht.borders("borderRight"),borderInlineEnd:ht.borders("borderInlineEnd"),borderBottom:ht.borders("borderBottom"),borderBlockEnd:ht.borders("borderBlockEnd"),borderBottomLeftRadius:ht.radii("borderBottomLeftRadius"),borderBottomRightRadius:ht.radii("borderBottomRightRadius"),borderLeft:ht.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ht.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ht.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ht.borders(["borderLeft","borderRight"]),borderInline:ht.borders("borderInline"),borderY:ht.borders(["borderTop","borderBottom"]),borderBlock:ht.borders("borderBlock"),borderTopWidth:ht.borderWidths("borderTopWidth"),borderBlockStartWidth:ht.borderWidths("borderBlockStartWidth"),borderTopColor:ht.colors("borderTopColor"),borderBlockStartColor:ht.colors("borderBlockStartColor"),borderTopStyle:ht.borderStyles("borderTopStyle"),borderBlockStartStyle:ht.borderStyles("borderBlockStartStyle"),borderBottomWidth:ht.borderWidths("borderBottomWidth"),borderBlockEndWidth:ht.borderWidths("borderBlockEndWidth"),borderBottomColor:ht.colors("borderBottomColor"),borderBlockEndColor:ht.colors("borderBlockEndColor"),borderBottomStyle:ht.borderStyles("borderBottomStyle"),borderBlockEndStyle:ht.borderStyles("borderBlockEndStyle"),borderLeftWidth:ht.borderWidths("borderLeftWidth"),borderInlineStartWidth:ht.borderWidths("borderInlineStartWidth"),borderLeftColor:ht.colors("borderLeftColor"),borderInlineStartColor:ht.colors("borderInlineStartColor"),borderLeftStyle:ht.borderStyles("borderLeftStyle"),borderInlineStartStyle:ht.borderStyles("borderInlineStartStyle"),borderRightWidth:ht.borderWidths("borderRightWidth"),borderInlineEndWidth:ht.borderWidths("borderInlineEndWidth"),borderRightColor:ht.colors("borderRightColor"),borderInlineEndColor:ht.colors("borderInlineEndColor"),borderRightStyle:ht.borderStyles("borderRightStyle"),borderInlineEndStyle:ht.borderStyles("borderInlineEndStyle"),borderTopRadius:ht.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ht.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ht.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ht.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(vt,{rounded:vt.borderRadius,roundedTop:vt.borderTopRadius,roundedTopLeft:vt.borderTopLeftRadius,roundedTopRight:vt.borderTopRightRadius,roundedTopStart:vt.borderStartStartRadius,roundedTopEnd:vt.borderStartEndRadius,roundedBottom:vt.borderBottomRadius,roundedBottomLeft:vt.borderBottomLeftRadius,roundedBottomRight:vt.borderBottomRightRadius,roundedBottomStart:vt.borderEndStartRadius,roundedBottomEnd:vt.borderEndEndRadius,roundedLeft:vt.borderLeftRadius,roundedRight:vt.borderRightRadius,roundedStart:vt.borderInlineStartRadius,roundedEnd:vt.borderInlineEndRadius,borderStart:vt.borderInlineStart,borderEnd:vt.borderInlineEnd,borderTopStartRadius:vt.borderStartStartRadius,borderTopEndRadius:vt.borderStartEndRadius,borderBottomStartRadius:vt.borderEndStartRadius,borderBottomEndRadius:vt.borderEndEndRadius,borderStartRadius:vt.borderInlineStartRadius,borderEndRadius:vt.borderInlineEndRadius,borderStartWidth:vt.borderInlineStartWidth,borderEndWidth:vt.borderInlineEndWidth,borderStartColor:vt.borderInlineStartColor,borderEndColor:vt.borderInlineEndColor,borderStartStyle:vt.borderInlineStartStyle,borderEndStyle:vt.borderInlineEndStyle});var gt={color:ht.colors("color"),textColor:ht.colors("color"),fill:ht.colors("fill"),stroke:ht.colors("stroke")},bt={boxShadow:ht.shadows("boxShadow"),mixBlendMode:!0,blendMode:ht.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ht.prop("backgroundBlendMode"),opacity:!0};Object.assign(bt,{shadow:bt.boxShadow});var yt={filter:{transform:pt.filter},blur:ht.blur("--chakra-blur"),brightness:ht.propT("--chakra-brightness",pt.brightness),contrast:ht.propT("--chakra-contrast",pt.contrast),hueRotate:ht.propT("--chakra-hue-rotate",pt.hueRotate),invert:ht.propT("--chakra-invert",pt.invert),saturate:ht.propT("--chakra-saturate",pt.saturate),dropShadow:ht.propT("--chakra-drop-shadow",pt.dropShadow),backdropFilter:{transform:pt.backdropFilter},backdropBlur:ht.blur("--chakra-backdrop-blur"),backdropBrightness:ht.propT("--chakra-backdrop-brightness",pt.brightness),backdropContrast:ht.propT("--chakra-backdrop-contrast",pt.contrast),backdropHueRotate:ht.propT("--chakra-backdrop-hue-rotate",pt.hueRotate),backdropInvert:ht.propT("--chakra-backdrop-invert",pt.invert),backdropSaturate:ht.propT("--chakra-backdrop-saturate",pt.saturate)},xt={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:pt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ht.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ht.space("gap"),rowGap:ht.space("rowGap"),columnGap:ht.space("columnGap")};Object.assign(xt,{flexDir:xt.flexDirection});var wt={gridGap:ht.space("gridGap"),gridColumnGap:ht.space("gridColumnGap"),gridRowGap:ht.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},St={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:pt.outline},outlineOffset:!0,outlineColor:ht.colors("outlineColor")},kt={width:ht.sizesT("width"),inlineSize:ht.sizesT("inlineSize"),height:ht.sizes("height"),blockSize:ht.sizes("blockSize"),boxSize:ht.sizes(["width","height"]),minWidth:ht.sizes("minWidth"),minInlineSize:ht.sizes("minInlineSize"),minHeight:ht.sizes("minHeight"),minBlockSize:ht.sizes("minBlockSize"),maxWidth:ht.sizes("maxWidth"),maxInlineSize:ht.sizes("maxInlineSize"),maxHeight:ht.sizes("maxHeight"),maxBlockSize:ht.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 r,n,o;const i=`@media screen and (min-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?o:e})`;return{[i]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;const i=`@media screen and (max-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?o:e})`;return{[i]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ht.propT("float",pt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(kt,{w:kt.width,h:kt.height,minW:kt.minWidth,maxW:kt.maxWidth,minH:kt.minHeight,maxH:kt.maxHeight,overscroll:kt.overscrollBehavior,overscrollX:kt.overscrollBehaviorX,overscrollY:kt.overscrollBehaviorY});var Ct={listStyleType:!0,listStylePosition:!0,listStylePos:ht.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ht.prop("listStyleImage")},_t=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})(function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e}),Et={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},At={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Tt=(e,t,r)=>{const n={},o=_t(e,t,{});for(const e in o)e in r&&null!=r[e]||(n[e]=o[e]);return n},Pt={srOnly:{transform:e=>!0===e?Et:"focusable"===e?At:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>Tt(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Tt(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Tt(t,e,r)}},jt={position:!0,pos:ht.prop("position"),zIndex:ht.prop("zIndex","zIndices"),inset:ht.spaceT("inset"),insetX:ht.spaceT(["left","right"]),insetInline:ht.spaceT("insetInline"),insetY:ht.spaceT(["top","bottom"]),insetBlock:ht.spaceT("insetBlock"),top:ht.spaceT("top"),insetBlockStart:ht.spaceT("insetBlockStart"),bottom:ht.spaceT("bottom"),insetBlockEnd:ht.spaceT("insetBlockEnd"),left:ht.spaceT("left"),insetInlineStart:ht.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ht.spaceT("right"),insetInlineEnd:ht.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(jt,{insetStart:jt.insetInlineStart,insetEnd:jt.insetInlineEnd});var Rt={ring:{transform:pt.ring},ringColor:ht.colors("--chakra-ring-color"),ringOffset:ht.prop("--chakra-ring-offset-width"),ringOffsetColor:ht.colors("--chakra-ring-offset-color"),ringInset:ht.prop("--chakra-ring-inset")},Ot={margin:ht.spaceT("margin"),marginTop:ht.spaceT("marginTop"),marginBlockStart:ht.spaceT("marginBlockStart"),marginRight:ht.spaceT("marginRight"),marginInlineEnd:ht.spaceT("marginInlineEnd"),marginBottom:ht.spaceT("marginBottom"),marginBlockEnd:ht.spaceT("marginBlockEnd"),marginLeft:ht.spaceT("marginLeft"),marginInlineStart:ht.spaceT("marginInlineStart"),marginX:ht.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ht.spaceT("marginInline"),marginY:ht.spaceT(["marginTop","marginBottom"]),marginBlock:ht.spaceT("marginBlock"),padding:ht.space("padding"),paddingTop:ht.space("paddingTop"),paddingBlockStart:ht.space("paddingBlockStart"),paddingRight:ht.space("paddingRight"),paddingBottom:ht.space("paddingBottom"),paddingBlockEnd:ht.space("paddingBlockEnd"),paddingLeft:ht.space("paddingLeft"),paddingInlineStart:ht.space("paddingInlineStart"),paddingInlineEnd:ht.space("paddingInlineEnd"),paddingX:ht.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ht.space("paddingInline"),paddingY:ht.space(["paddingTop","paddingBottom"]),paddingBlock:ht.space("paddingBlock")};Object.assign(Ot,{m:Ot.margin,mt:Ot.marginTop,mr:Ot.marginRight,me:Ot.marginInlineEnd,marginEnd:Ot.marginInlineEnd,mb:Ot.marginBottom,ml:Ot.marginLeft,ms:Ot.marginInlineStart,marginStart:Ot.marginInlineStart,mx:Ot.marginX,my:Ot.marginY,p:Ot.padding,pt:Ot.paddingTop,py:Ot.paddingY,px:Ot.paddingX,pb:Ot.paddingBottom,pl:Ot.paddingLeft,ps:Ot.paddingInlineStart,paddingStart:Ot.paddingInlineStart,pr:Ot.paddingRight,pe:Ot.paddingInlineEnd,paddingEnd:Ot.paddingInlineEnd});var Mt={textDecorationColor:ht.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ht.shadows("textShadow")},zt={clipPath:!0,transform:ht.propT("transform",pt.transform),transformOrigin:!0,translateX:ht.spaceT("--chakra-translate-x"),translateY:ht.spaceT("--chakra-translate-y"),skewX:ht.degreeT("--chakra-skew-x"),skewY:ht.degreeT("--chakra-skew-y"),scaleX:ht.prop("--chakra-scale-x"),scaleY:ht.prop("--chakra-scale-y"),scale:ht.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ht.degreeT("--chakra-rotate")},Ft={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ht.prop("transitionDuration","transition.duration"),transitionProperty:ht.prop("transitionProperty","transition.property"),transitionTimingFunction:ht.prop("transitionTimingFunction","transition.easing")},It={fontFamily:ht.prop("fontFamily","fonts"),fontSize:ht.prop("fontSize","fontSizes",pt.px),fontWeight:ht.prop("fontWeight","fontWeights"),lineHeight:ht.prop("lineHeight","lineHeights"),letterSpacing:ht.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"}},Dt={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ht.spaceT("scrollMargin"),scrollMarginTop:ht.spaceT("scrollMarginTop"),scrollMarginBottom:ht.spaceT("scrollMarginBottom"),scrollMarginLeft:ht.spaceT("scrollMarginLeft"),scrollMarginRight:ht.spaceT("scrollMarginRight"),scrollMarginX:ht.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ht.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ht.spaceT("scrollPadding"),scrollPaddingTop:ht.spaceT("scrollPaddingTop"),scrollPaddingBottom:ht.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ht.spaceT("scrollPaddingLeft"),scrollPaddingRight:ht.spaceT("scrollPaddingRight"),scrollPaddingX:ht.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ht.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Bt(e){return a(e)&&e.reference?e.reference:String(e)}var Nt=(e,...t)=>t.map(Bt).join(` ${e} `).replace(/calc/g,""),Lt=(...e)=>`calc(${Nt("+",...e)})`,$t=(...e)=>`calc(${Nt("-",...e)})`,Wt=(...e)=>`calc(${Nt("*",...e)})`,Vt=(...e)=>`calc(${Nt("/",...e)})`,qt=e=>{const t=Bt(e);return null==t||Number.isNaN(parseFloat(t))?Wt(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Ht=Object.assign(e=>({add:(...t)=>Ht(Lt(e,...t)),subtract:(...t)=>Ht($t(e,...t)),multiply:(...t)=>Ht(Wt(e,...t)),divide:(...t)=>Ht(Vt(e,...t)),negate:()=>Ht(qt(e)),toString:()=>e.toString()}),{add:Lt,subtract:$t,multiply:Wt,divide:Vt,negate:qt});function Ut(e,t){return`var(${e}${t?`, ${t}`:""})`}function Qt(e,t=""){return function(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){return e.includes("\\.")||Number.isInteger(parseFloat(e.toString()))?e:e.replace(".","\\.")}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function Gt(e,t,r){const n=Qt(e,r);return{variable:n,reference:Ut(n,t)}}function Xt(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function Yt(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var Kt=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Zt=e=>Object.fromEntries(Object.entries(e).sort(Kt));function Jt(e){const t=Zt(e);return Object.assign(Object.values(t),t)}function er(e){var t;return e?"number"==typeof(e=null!=(t=Yt(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function tr(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Yt(e)})`),t&&r.push("and",`(max-width: ${Yt(t)})`),r.join(" ")}function rr(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const r=Jt(e),n=Object.entries(e).sort(Kt).map(([e,t],r,n)=>{var o;let[,i]=null!=(o=n[r+1])?o:[];return i=parseFloat(i)>0?er(i):void 0,{_minW:er(t),breakpoint:e,minW:t,maxW:i,maxWQuery:tr(null,i),minWQuery:tr(t),minMaxQuery:tr(t,i)}}),o=function(e){const t=Object.keys(Zt(e));return new Set(t)}(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:Zt(e),asArray:Jt(e),details:n,get:e=>n.find(t=>t.breakpoint===e),media:[null,...r.map(e=>tr(e)).slice(1)],toArrayValue(e){if(!a(e))throw new Error("toArrayValue: value must be an object");const t=i.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===Xt(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,r)=>{const n=i[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}var nr=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,or=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ir=(e,t)=>`${e}:focus-visible ${t}`,ar=(e,t)=>`${e}:focus-within ${t}`,sr=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,lr=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,cr=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,ur=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,dr=e=>pr(t=>e(t,"&"),"[role=group]","[data-group]",".group"),fr=e=>pr(t=>e(t,"~ &"),"[data-peer]",".peer"),pr=(e,...t)=>t.map(e).join(", "),hr={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&: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",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-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]",_groupHover:dr(nr),_peerHover:fr(nr),_groupFocus:dr(or),_peerFocus:fr(or),_groupFocusVisible:dr(ir),_peerFocusVisible:fr(ir),_groupActive:dr(sr),_peerActive:fr(sr),_groupDisabled:dr(lr),_peerDisabled:fr(lr),_groupInvalid:dr(cr),_peerInvalid:fr(cr),_groupChecked:dr(ur),_peerChecked:fr(ur),_groupFocusWithin:dr(ar),_peerFocusWithin:fr(ar),_peerPlaceholderShown:fr((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&: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]"},mr=Object.keys(hr);function vr(e,t){return Gt(String(e).replace(/\./g,"-"),void 0,t)}function gr(e,t,r={}){const{stop:n,getKey:o}=r;return function e(r,i=[]){var a;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(r)||Array.isArray(r)){const s={};for(const[l,c]of Object.entries(r)){const u=null!=(a=null==o?void 0:o(l))?a:l,d=[...i,u];if(null==n?void 0:n(r,d))return t(r,i);s[u]=e(c,d)}return s}return t(r,i)}(e)}var br=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],yr=e=>mr.includes(e)||"default"===e;var xr=Ke({},mt,vt,gt,xt,kt,yt,Rt,St,wt,Pt,jt,bt,Ot,Dt,It,Mt,zt,Ct,Ft),wr=Object.assign({},Ot,kt,xt,wt,jt),Sr=(Object.keys(wr),[...Object.keys(xr),...mr]),kr={...xr,...hr},Cr=e=>e in kr,_r=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Er=(e,t)=>{var r,n;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,s]=function(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(n=!0,r+=i):")"===i?(n=!1,r+=i):","!==i||n?r+=i:(t.push(r),r="")}return r=r.trim(),r&&t.push(r),t}(t);return null!=(n=null!=(r=o(a))?r:i(s))?n:i(t)};var Ar=e=>t=>function(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(e,i=!1)=>{var l,c,u;const d=s(e,n),f=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const l in e){let c=s(e[l],t);if(null==c)continue;if(c=a(c)&&r(c)?n(c):c,!Array.isArray(c)){i[l]=c;continue}const u=c.slice(0,o.length).length;for(let e=0;e<u;e+=1){const t=null==o?void 0:o[e];t?(i[t]=i[t]||{},null!=c[e]&&(i[t][l]=c[e])):i[l]=c[e]}}return i})(d)(n);let p={};for(let e in f){let h=s(f[e],n);e in r&&(e=r[e]),_r(e,h)&&(h=Er(n,h));let m=t[e];if(!0===m&&(m={property:e}),a(h)){p[e]=null!=(l=p[e])?l:{},p[e]=Ke({},p[e],o(h,!0));continue}let v=null!=(u=null==(c=null==m?void 0:m.transform)?void 0:c.call(m,h,n,d))?u:h;v=(null==m?void 0:m.processResult)?o(v,!0):v;const g=s(null==m?void 0:m.property,n);if(!i&&(null==m?void 0:m.static)){const e=s(m.static,n);p=Ke({},p,e)}if(g&&Array.isArray(g))for(const e of g)p[e]=v;else g?"&"===g&&a(v)?p=Ke({},p,v):p[g]=v:a(v)?p=Ke({},p,v):p[e]=v}return p};return o}({theme:t,pseudos:hr,configs:xr})(e);function Tr(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function Pr(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}function jr(e){return function(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}var Rr=new Set([...Sr,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Or=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Mr(e){return Or.has(e)||!Rr.has(e)}var zr=(0,e.createContext)({});function Fr(){const t=(0,e.useContext)(zr);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}zr.displayName="ColorModeContext";var Ir=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})(function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e});function Dr(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var Br=e=>Dr(e,e=>null!=e);function Nr(e,...t){return"function"==typeof e?e(...t):e}function Lr(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var $r,Wr=/^((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)-.*))$/,Vr=_e(function(e){return Wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),qr=function(e){return"theme"!==e},Hr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Vr:qr},Ur=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Qr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Se(t,r,n),De(function(){return ke(t,r,n)}),null},Gr=function t(r,n){var o,i,a=r.__emotion_real===r,s=a&&r.__emotion_base||r;void 0!==n&&(o=n.label,i=n.target);var l=Ur(r,n,a),c=l||Hr(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,m=1;m<h;m++)f.push(d[m],p[m])}var v=Le(function(t,r,n){var o=u&&t.as||s,a="",d=[],p=t;if(null==t.theme){for(var h in p={},t)p[h]=t[h];p.theme=e.useContext($e)}"string"==typeof t.className?a=we(r.registered,d,t.className):null!=t.className&&(a=t.className+" ");var m=Fe(f.concat(d),r.registered,p);a+=r.key+"-"+m.name,void 0!==i&&(a+=" "+i);var v=u&&void 0===l?Hr(o):c,g={};for(var b in t)u&&"as"===b||v(b)&&(g[b]=t[b]);return g.className=a,n&&(g.ref=n),e.createElement(e.Fragment,null,e.createElement(Qr,{cache:r,serialized:m,isStringTag:"string"==typeof o}),e.createElement(o,g))});return v.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",v.defaultProps=r.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=f,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(e,r){return t(e,ye({},n,r,{shouldForwardProp:Ur(v,r,!0)})).apply(void 0,f)},v}}.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){Gr[e]=Gr(e)});var Xr=null!=($r=Gr.default)?$r:Gr;function Yr(t,r){const{baseStyle:n,...o}=null!=r?r:{};o.shouldForwardProp||(o.shouldForwardProp=Mr);const i=(({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=Dr(a,(e,t)=>Cr(t)),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},o,Nr(e,t),Br(s),i),c=Ar(l)(t.theme);return n?[c,n]:c})({baseStyle:n}),a=Xr(t,o)(i);return e.forwardRef(function(t,r){const{colorMode:n,forced:o}=Fr();return e.createElement(a,{ref:r,"data-theme":o?n:void 0,...t})})}var Kr=function(){const e=new Map;return new Proxy(Yr,{apply:(e,t,r)=>Yr(...r),get:(t,r)=>(e.has(r)||e.set(r,Yr(r)),e.get(r))})}(),Zr=Ye(function(e,t){const{direction:r,align:n,justify:o,wrap:i,basis:a,grow:s,shrink:l,...c}=e,u={display:"flex",flexDirection:r,alignItems:n,justifyContent:o,flexWrap:i,flexBasis:a,flexGrow:s,flexShrink:l};return(0,m.jsx)(Kr.div,{ref:t,__css:u,...c})});Zr.displayName="Flex",r(1035);var Jr,en,tn=function(t,r){var n=arguments;if(null==r||!qe.call(r,"css"))return e.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Qe,i[1]=function(e,t){var r={};for(var n in t)qe.call(t,n)&&(r[n]=t[n]);return r[He]=e,r}(t,r);for(var a=2;a<o;a++)i[a]=n[a];return e.createElement.apply(null,i)};Jr=tn||(tn={}),en||(en=Jr.JSX||(Jr.JSX={}));var rn=Le(function(t,r){var n=Fe([t.styles],void 0,e.useContext($e)),o=e.useRef();return Be(function(){var e=r.key+"-global",t=new r.sheet.constructor({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),o.current=[t,i],function(){t.flush()}},[r]),Be(function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&ke(r,n.next,!0),t.tags.length){var i=t.tags[t.tags.length-1].nextElementSibling;t.before=i,t.flush()}r.insert("",n,t,!1)}},[r,n.name]),null});function nn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Fe(t)}function on(){return{...Fr(),theme:Ge()}}var an=r(4072);function sn(t,r={}){var n;const{styleConfig:o,...i}=r,{theme:l,colorMode:c}=on(),u=t?Ir(l,`components.${t}`):void 0,d=o||u,f=Ke({theme:l,colorMode:c},null!=(n=null==d?void 0:d.defaultProps)?n:{},Br(function(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}(i,["children"]))),p=(0,e.useRef)({});if(d){const e=function(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,l=function(e){const t=e.__breakpoints;return function(e,r,n,o){var i,l;if(!t)return;const c={},u=function(e,t){return Array.isArray(e)?e:a(e)?t(e):null!=e?[e]:void 0}(n,t.toArrayValue);if(!u)return c;const d=u.length,f=1===d,p=!!e.parts;for(let n=0;n<d;n++){const a=t.details[n],d=t.details[Pr(u,n)],h=tr(a.minW,null==d?void 0:d._minW),m=s(null==(i=e[r])?void 0:i[u[n]],o);m&&(p?null==(l=e.parts)||l.forEach(e=>{Ke(c,{[e]:f?m[e]:{[h]:m[e]}})}):p?c[h]=m:f?Ke(c,m):c[h]=m)}return c}}(i);return Ke({},s(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",o,t),l(e,"variants",n,t))}}(d),t=e(f);an(p.current,t)||(p.current=t)}return p.current}function ln(e,t={}){return sn(e,t)}function cn(e,t={}){return sn(e,t)}var un=function(){var e=nn.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_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),dn=Ye((e,t)=>{const r=ln("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:s="transparent",className:l,...c}=jr(e),u=i("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${un} ${a} linear infinite`,...r};return(0,m.jsx)(Kr.div,{ref:t,__css:d,className:u,...c,children:n&&(0,m.jsx)(Kr.span,{srOnly:!0,children:n})})});dn.displayName="Spinner";var fn=Kr("div");fn.displayName="Box";var pn=Ye(function(e,t){const{size:r,centerContent:n=!0,...o}=e,i=n?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,m.jsx)(fn,{ref:t,boxSize:r,__css:{...i,flexShrink:0,flexGrow:0},...o})});pn.displayName="Square";var hn=Ye(function(e,t){const{size:r,...n}=e;return(0,m.jsx)(pn,{size:r,ref:t,borderRadius:"9999px",...n})});function mn(t={}){const{name:r,strict:n=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=t,l=(0,e.createContext)(s);return l.displayName=r,[l.Provider,function t(){var r;const s=(0,e.useContext)(l);if(!s&&n){const e=new Error(null!=a?a:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw e.name="ContextError",null==(r=Error.captureStackTrace)||r.call(Error,e,t),e}return s},l]}function vn(t){return e.Children.toArray(t).filter(t=>(0,e.isValidElement)(t))}function gn(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}hn.displayName="Circle";var[bn,yn]=mn({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),xn=Ye(function(t,r){const n=cn("Input",t),{children:o,className:a,...s}=jr(t),l=i("chakra-input__group",a),c={},u=vn(o),d=n.field;u.forEach(e=>{var t,r;n&&(d&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=d.height)?t:d.h),d&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(r=d.height)?r:d.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))});const f=u.map(r=>{var n,o;const i=gn({size:(null==(n=r.props)?void 0:n.size)||t.size,variant:(null==(o=r.props)?void 0:o.variant)||t.variant});return"Input"!==r.type.id?(0,e.cloneElement)(r,i):(0,e.cloneElement)(r,Object.assign(i,c,r.props))});return(0,m.jsx)(Kr.div,{className:l,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...s,children:(0,m.jsx)(bn,{value:n,children:f})})});xn.displayName="InputGroup";var wn=Kr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Sn=Ye(function(e,t){var r,n;const{placement:o="left",...i}=e,a=yn(),s=a.field,l="left"===o?"insetStart":"insetEnd",c={[l]:"0",width:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,height:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...a.element};return(0,m.jsx)(wn,{ref:t,__css:c,...i})});Sn.id="InputElement",Sn.displayName="InputElement";var kn=Ye(function(e,t){const{className:r,...n}=e,o=i("chakra-input__left-element",r);return(0,m.jsx)(Sn,{ref:t,placement:"left",className:o,...n})});kn.id="InputLeftElement",kn.displayName="InputLeftElement";var Cn=Ye(function(e,t){const{className:r,...n}=e,o=i("chakra-input__right-element",r);return(0,m.jsx)(Sn,{ref:t,placement:"right",className:o,...n})});function En(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function An(...t){return(0,e.useMemo)(()=>En(...t),t)}Cn.id="InputRightElement",Cn.displayName="InputRightElement";var[Tn,Pn]=mn({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[jn,Rn]=mn({strict:!1,name:"FormControlContext"}),On=Ye(function(t,r){const n=cn("Form",t),o=jr(t),{getRootProps:a,htmlProps:s,...l}=function(t){const{id:r,isRequired:n,isInvalid:o,isDisabled:i,isReadOnly:a,...s}=t,l=(0,e.useId)(),u=r||`field-${l}`,d=`${u}-label`,f=`${u}-feedback`,p=`${u}-helptext`,[h,m]=(0,e.useState)(!1),[v,g]=(0,e.useState)(!1),[b,y]=(0,e.useState)(!1),x=(0,e.useCallback)((e={},t=null)=>({id:p,...e,ref:En(t,e=>{e&&g(!0)})}),[p]),w=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":c(b),"data-disabled":c(i),"data-invalid":c(o),"data-readonly":c(a),id:void 0!==e.id?e.id:d,htmlFor:void 0!==e.htmlFor?e.htmlFor:u}),[u,i,b,o,a,d]),S=(0,e.useCallback)((e={},t=null)=>({id:f,...e,ref:En(t,e=>{e&&m(!0)}),"aria-live":"polite"}),[f]),k=(0,e.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":c(b),"data-disabled":c(i),"data-invalid":c(o),"data-readonly":c(a)}),[s,i,b,o,a]),C=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!a,isDisabled:!!i,isFocused:!!b,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:h,setHasFeedbackText:m,hasHelpText:v,setHasHelpText:g,id:u,labelId:d,feedbackId:f,helpTextId:p,htmlProps:s,getHelpTextProps:x,getErrorMessageProps:S,getRootProps:k,getLabelProps:w,getRequiredIndicatorProps:C}}(o),u=i("chakra-form-control",t.className);return(0,m.jsx)(jn,{value:l,children:(0,m.jsx)(Tn,{value:n,children:(0,m.jsx)(Kr.div,{...a({},r),className:u,__css:n.container})})})});On.displayName="FormControl";var Mn=Ye(function(e,t){const r=Rn(),n=Pn(),o=i("chakra-form__helper-text",e.className);return(0,m.jsx)(Kr.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:o})});Mn.displayName="FormHelperText";var zn=Ye(function(e,t){const{htmlSize:r,...n}=e,o=cn("Input",n),a=function(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=function(e){var t,r,n;const o=Rn(),{id:i,disabled:a,readOnly:s,required:l,isRequired:c,isInvalid:u,isReadOnly:f,isDisabled:p,onFocus:h,onBlur:m,...v}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&g.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&g.push(o.helpTextId),{...v,"aria-describedby":g.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(t=null!=a?a:p)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(r=null!=s?s:f)?r:null==o?void 0:o.isReadOnly,isRequired:null!=(n=null!=l?l:c)?n:null==o?void 0:o.isRequired,isInvalid:null!=u?u:null==o?void 0:o.isInvalid,onFocus:d(null==o?void 0:o.onFocus,h),onBlur:d(null==o?void 0:o.onBlur,m)}}(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":u(r),"aria-required":u(o),"aria-readonly":u(n)}}(jr(n)),s=i("chakra-input",e.className);return(0,m.jsx)(Kr.input,{size:r,...a,__css:o.field,ref:t,className:s})});zn.displayName="Input",zn.id="Input";var Fn=e=>(0,m.jsx)(Kr.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Fn.displayName="StackItem";var In=Ye((t,r)=>{const{isInline:n,direction:o,align:a,justify:s,spacing:l="0.5rem",wrap:c,children:u,divider:d,className:f,shouldWrapChildren:h,...v}=t,g=n?"row":null!=o?o:"column",b=(0,e.useMemo)(()=>function(e){const{spacing:t,direction:r}=e,n={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{"&":p(r,e=>n[e])}}({spacing:l,direction:g}),[l,g]),y=!!d,x=!h&&!y,w=(0,e.useMemo)(()=>{const t=vn(u);return x?t:t.map((r,n)=>{const o=void 0!==r.key?r.key:n,i=n+1===t.length,a=h?(0,m.jsx)(Fn,{children:r},o):r;if(!y)return a;const s=(0,e.cloneElement)(d,{__css:b}),l=i?null:s;return(0,m.jsxs)(e.Fragment,{children:[a,l]},o)})},[d,b,y,x,h,u]),S=i("chakra-stack",f);return(0,m.jsx)(Kr.div,{ref:r,display:"flex",alignItems:a,justifyContent:s,flexDirection:g,flexWrap:c,gap:y?void 0:l,className:S,...v,children:w})});In.displayName="Stack";var Dn=Ye((e,t)=>(0,m.jsx)(In,{align:"center",...e,direction:"column",ref:t}));Dn.displayName="VStack";var Bn=Ye((e,t)=>(0,m.jsx)(In,{align:"center",...e,direction:"row",ref:t}));Bn.displayName="HStack";var Nn=Ye(function(e,t){const r=ln("Text",e),{className:n,align:o,decoration:a,casing:s,...l}=jr(e),c=gn({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,m.jsx)(Kr.p,{ref:t,className:i("chakra-text",e.className),...c,...l,__css:r})});Nn.displayName="Text";var Ln=Ye(function(e,t){const r=ln("Badge",e),{className:n,...o}=jr(e);return(0,m.jsx)(Kr.span,{ref:t,className:i("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});function $n(t={}){const{strict:r=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=t,i=(0,e.createContext)(void 0);return i.displayName=o,[i.Provider,function t(){var o;const a=(0,e.useContext)(i);if(!a&&r){const e=new Error(n);throw e.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,e,t),e}return a},i]}function Wn(t){const{cssVarsRoot:r,theme:n,children:o}=t,i=(0,e.useMemo)(()=>function(e){var t;const r=function(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}(e),n=function(e){return function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e,br)}(r),o=function(e){return e.semanticTokens}(r),i=function({tokens:e,semanticTokens:t}){const r={};return gr(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),gr(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(yr)}),r}({tokens:n,semanticTokens:o}),s=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:l,cssVars:c}=function(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:l}=i,{variable:c,reference:u}=vr(o,null==t?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const e=o.split("."),[t,...r]=e,i=`${t}.-${r.join(".")}`,a=Ht.negate(l),s=Ht.negate(u);n[i]={value:a,var:c,varRef:s}}r[c]=l,n[o]={value:l,var:c,varRef:u};continue}const d=r=>{const n=[String(o).split(".")[0],r].join(".");if(!e[n])return r;const{reference:i}=vr(n,null==t?void 0:t.cssVarPrefix);return i},f=a(l)?l:{default:l};r=Ke(r,Object.entries(f).reduce((e,[t,r])=>{var n,o;if(!r)return e;const i=d(`${r}`);return"default"===t?(e[c]=i,e):(e[null!=(o=null==(n=hr)?void 0:n[t])?o:t]={[c]:i},e)},{})),n[o]={value:u,var:c,varRef:u}}return{cssVars:r,cssMap:n}}(i,{cssVarPrefix:s});return Object.assign(r,{__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",...c},__cssMap:l,__breakpoints:rr(r.breakpoints)}),r}(n),[n]);return(0,m.jsxs)(Ve,{theme:i,children:[(0,m.jsx)(Vn,{root:r}),o]})}function Vn({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,m.jsx)(rn,{styles:e=>({[t]:e.__cssVars})})}Ln.displayName="Badge";var[qn,Hn]=$n({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Un(){const{colorMode:e}=Fr();return(0,m.jsx)(rn,{styles:t=>{const r=Nr(Ir(t,"styles.global"),{theme:t,colorMode:e});if(r)return Ar(r)(t)}})}var[Qn,Gn]=$n({name:"Card"+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Card />" '}),Xn=Ye(function(e,t){const{className:r,children:n,direction:o="column",justify:a,align:s,...l}=jr(e),c=cn("Card",e);return(0,m.jsx)(Kr.div,{ref:t,className:i("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...l,children:(0,m.jsx)(Qn,{value:c,children:n})})}),Yn=Ye(function(e,t){const{className:r,...n}=e,o=Gn();return(0,m.jsx)(Kr.div,{ref:t,className:i("chakra-card__header",r),__css:o.header,...n})}),Kn=Ye(function(e,t){const r=ln("Heading",e),{className:n,...o}=jr(e);return(0,m.jsx)(Kr.h2,{ref:t,className:i("chakra-heading",e.className),...o,__css:r})});Kn.displayName="Heading";var Zn=Ye(function(e,t){const{className:r,justify:n,...o}=e,a=Gn();return(0,m.jsx)(Kr.div,{ref:t,className:i("chakra-card__footer",r),__css:{display:"flex",justifyContent:n,...a.footer},...o})}),[Jn,eo]=mn({strict:!1,name:"ButtonGroupContext"});function to(t){const{children:r,className:n,...o}=t,a=(0,e.isValidElement)(r)?(0,e.cloneElement)(r,{"aria-hidden":!0,focusable:!1}):r,s=i("chakra-button__icon",n);return(0,m.jsx)(Kr.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:s,children:a})}function ro(t){const{label:r,placement:n,spacing:o="0.5rem",children:a=(0,m.jsx)(dn,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:l,...c}=t,u=i("chakra-button__spinner",s),d="start"===n?"marginEnd":"marginStart",f=(0,e.useMemo)(()=>({display:"flex",alignItems:"center",position:r?"relative":"absolute",[d]:r?o:0,fontSize:"1em",lineHeight:"normal",...l}),[l,r,d,o]);return(0,m.jsx)(Kr.div,{className:u,...c,__css:f,children:a})}to.displayName="ButtonIcon",ro.displayName="ButtonSpinner";var no=Ye((t,r)=>{const n=eo(),o=ln("Button",{...n,...t}),{isDisabled:a=(null==n?void 0:n.isDisabled),isLoading:s,isActive:l,children:u,leftIcon:d,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:v,spinner:g,spinnerPlacement:b="start",className:y,as:x,...w}=jr(t),S=(0,e.useMemo)(()=>{const e={...null==o?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!n&&{_focus:e}}},[o,n]),{ref:k,type:C}=function(t){const[r,n]=(0,e.useState)(!t),o=(0,e.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:o,type:r?"button":void 0}}(x),_={rightIcon:f,leftIcon:d,iconSpacing:h,children:u};return(0,m.jsxs)(Kr.button,{ref:An(r,k),as:x,type:null!=v?v:C,"data-active":c(l),"data-loading":c(s),__css:S,className:i("chakra-button",y),...w,disabled:a||s,children:[s&&"start"===b&&(0,m.jsx)(ro,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:g}),s?p||(0,m.jsx)(Kr.span,{opacity:0,children:(0,m.jsx)(oo,{..._})}):(0,m.jsx)(oo,{..._}),s&&"end"===b&&(0,m.jsx)(ro,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:g})]})});function oo(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return(0,m.jsxs)(m.Fragment,{children:[t&&(0,m.jsx)(to,{marginEnd:o,children:t}),n,r&&(0,m.jsx)(to,{marginStart:o,children:r})]})}no.displayName="Button";var io={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ao=e.createContext&&e.createContext(io),so=["attr","size","title"];function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lo.apply(this,arguments)}function co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?co(Object(r),!0).forEach(function(t){fo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):co(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fo(e,t,r){return t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function po(t){return t&&t.map((t,r)=>e.createElement(t.tag,uo({key:r},t.attr),po(t.child)))}function ho(t){return r=>e.createElement(mo,lo({attr:uo({},t.attr)},r),po(t.child))}function mo(t){var r=r=>{var n,{attr:o,size:i,title:a}=t,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,so),l=i||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",lo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:uo(uo({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==ao?e.createElement(ao.Consumer,null,e=>r(e)):r(io)}function vo(e){return ho({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z"},child:[]}]})(e)}function go(e){return ho({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M338.29 338.29 448 448"},child:[]}]})(e)}var bo=r(2889),yo=r.n(bo);const xo=t().memo(({categories:t,selectedCategory:r,onCategorySelect:n,onSearchChange:i})=>{const[a,s]=(0,e.useState)(""),l=(0,e.useCallback)(yo()(e=>{i(e)},300),[i]),c=t.find(e=>"Favorites"===e.name),u=c&&c.count>0?[c,...t.filter(e=>"Favorites"!==e.name)]:t;return(0,m.jsxs)(fn,{children:[(0,m.jsxs)(xn,{mb:"26px",children:[(0,m.jsx)(kn,{pointerEvents:"none",padding:"0px 0px 0px 8px",children:(0,m.jsx)(go,{style:{width:"18px",height:"18px"},color:"#737373"})}),(0,m.jsx)(zn,{placeholder:(0,o.__)("Search Templates","user-registration"),value:a,onChange:e=>{const t=e.target.value;s(t),l(t)},minHeight:"38px",border:"1px solid #e1e1e1",fontSize:"14px",fontWeight:"400",lineHeight:"24px",color:"#383838",borderRadius:"4px",_focus:{borderColor:"#475bb2",outline:"none",boxShadow:"none"},_placeholder:{color:"#737373"}})]}),(0,m.jsxs)(Dn,{align:"stretch",gap:"2px",children:[u.map(e=>(0,m.jsxs)(Bn,{p:"12px",_hover:{bg:"#EDEFF7",color:"#475bb2","& > .badge":{bg:(e.name,"#FFFFFF")}},borderRadius:"md",cursor:"pointer",bg:r===e.name?"#EDEFF7":"transparent",onClick:()=>n(e.name),justifyContent:"space-between",children:[(0,m.jsx)(Nn,{color:r===e.name?"#475bb2":"",fontWeight:"500",margin:"0px",fontSize:"16px",lineHeight:"20px",alignItems:"center",children:e.name}),(0,m.jsx)(Ln,{className:"badge",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",padding:"6px",borderRadius:"8px",gap:"10px",color:r===e.name?"#475bb2":"",bg:r===e.name?"white":"#F2F2F2",children:e.count})]},e.name)),(0,m.jsxs)(Xn,{align:"center",background:"linear-gradient(70deg, #475bb2, #94A7E7B2)",padding:"40px 24px",marginTop:"26px",children:[(0,m.jsx)(Yn,{padding:"0px",children:(0,m.jsx)(Kn,{fontSize:"18px",color:"#ffffff",lineHeight:"28px",padding:"0px 20px",textAlign:"center",children:(0,o.__)("Can't Find The Form Template You Need?","user-registration")})}),(0,m.jsx)(Zn,{padding:"0",width:"100%",children:(0,m.jsx)("a",{href:"https://wpuserregistration.com/request-template",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"},children:(0,m.jsx)(no,{backgroundColor:"#FFFFFF",color:"#475bb2",padding:"12px 10px",borderRadius:"4px",width:"inherit",fontWeight:"500",_hover:{backgroundColor:"#475BB2",color:"white !important"},children:(0,o.__)("Request Template","user-registration")})})})]})]})]})});var wo={path:(0,m.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,m.jsx)("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"}),(0,m.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,m.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},So=Ye((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:a=!1,children:s,className:l,__css:c,...u}=e,d={ref:t,focusable:a,className:i("chakra-icon",l),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c,...ln("Icon",e)}},f=null!=n?n:wo.viewBox;if(r&&"string"!=typeof r)return(0,m.jsx)(Kr.svg,{as:r,...d,...u});const p=null!=s?s:wo.path;return(0,m.jsx)(Kr.svg,{verticalAlign:"middle",viewBox:f,...d,...u,children:p})});function ko(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}So.displayName="Icon";var Co=ko()?e.useLayoutEffect:e.useEffect;function _o(t,r=[]){const n=(0,e.useRef)(t);return Co(()=>{n.current=t}),(0,e.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},r)}var Eo=(e,t)=>e.find(e=>e.id===t);function Ao(e,t){const r=To(e,t);return{position:r,index:r?e[r].findIndex(e=>e.id===t):-1}}function To(e,t){for(const[r,n]of Object.entries(e))if(Eo(n,t))return r}function Po(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)"}}function jo(t,r=[]){const n=(0,e.useRef)(t);return(0,e.useEffect)(()=>{n.current=t}),(0,e.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},r)}function Ro(t,r){const n=(0,e.useRef)(!1),o=(0,e.useRef)(!1);(0,e.useEffect)(()=>{if(n.current&&o.current)return t();o.current=!0},r),(0,e.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}var Oo=(0,e.createContext)(null);function Mo(t){var r=(0,e.useRef)(null);return null===r.current&&(r.current=t()),r.current}function zo(){var t=(0,e.useContext)(Oo);if(null===t)return[!0,null];var r=t.isPresent,n=t.onExitComplete,o=t.register,i=No();return(0,e.useEffect)(function(){return o(i)},[]),!r&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function Fo(){return Io((0,e.useContext)(Oo))}function Io(e){return null===e||e.isPresent}var Do=0,Bo=function(){return Do++},No=function(){return Mo(Bo)},Lo=function(e,t){return Lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Lo(e,t)};function $o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}Lo(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Wo=function(){return Wo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wo.apply(this,arguments)};function Vo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function qo(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Ho(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Uo=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},Qo={measureLayout:Uo(["layout","layoutId","drag","_layoutResetTransform"]),animation:Uo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:Uo(["exit"]),drag:Uo(["drag","dragControls"]),focus:Uo(["whileFocus"]),hover:Uo(["whileHover","onHoverStart","onHoverEnd"]),tap:Uo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Uo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:Uo(["layout","layoutId"])},Go=(0,e.createContext)({strict:!1}),Xo=Object.keys(Qo),Yo=Xo.length,Ko=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Zo=(0,e.createContext)({}),Jo=(0,e.createContext)(null),ei="undefined"!=typeof window,ti=ei?e.useLayoutEffect:e.useEffect;function ri(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ni(e){return Array.isArray(e)}function oi(e){return"string"==typeof e||ni(e)}function ii(e,t,r,n,o){var i;return void 0===n&&(n={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t?t(null!=r?r:e.custom,n,o):t}function ai(e,t,r){var n=e.getProps();return ii(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.get()}),t}(e),function(e){var t={};return e.forEachValue(function(e,r){return t[r]=e.getVelocity()}),t}(e))}function si(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||oi(e.initial)||oi(e.animate)||oi(e.whileHover)||oi(e.whileDrag)||oi(e.whileTap)||oi(e.whileFocus)||oi(e.exit)}function li(e){return Boolean(si(e)||e.variants)}function ci(e){return Array.isArray(e)?e.join(" "):e}function ui(t){var r=t.preloadedFeatures,n=t.createVisualElement,o=t.useRender,i=t.useVisualState,a=t.Component;return r&&function(e){for(var t in e){var r=e[t];null!==r&&(Qo[t].Component=r)}}(r),(0,e.forwardRef)(function(t,r){var s=(0,e.useContext)(Ko).isStatic,l=null,c=function(t,r){var n=function(e,t){if(si(e)){var r=e.initial,n=e.animate;return{initial:!1===r||oi(r)?r:void 0,animate:oi(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Zo)),o=n.initial,i=n.animate;return(0,e.useMemo)(function(){return{initial:o,animate:i}},r?[ci(o),ci(i)]:[])}(t,s),u=i(t,s);return!s&&ei&&(c.visualElement=function(t,r,n,o){var i=(0,e.useContext)(Ko),a=(0,e.useContext)(Go),s=(0,e.useContext)(Zo).visualElement,l=(0,e.useContext)(Oo),c=function(t){var r=t.layoutId,n=(0,e.useContext)(Jo);return n&&void 0!==r?n+"-"+r:r}(n),u=(0,e.useRef)(void 0);o||(o=a.renderer),!u.current&&o&&(u.current=o(t,{visualState:r,parent:s,props:Wo(Wo({},n),{layoutId:c}),presenceId:null==l?void 0:l.id,blockInitialAnimation:!1===(null==l?void 0:l.initial)}));var d=u.current;return ti(function(){d&&(d.setProps(Wo(Wo(Wo({},i),n),{layoutId:c})),d.isPresent=Io(l),d.isPresenceRoot=!s||s.presenceId!==(null==l?void 0:l.id),d.syncRender())}),(0,e.useEffect)(function(){var e;d&&(null===(e=d.animationState)||void 0===e||e.animateChanges())}),ti(function(){return function(){return null==d?void 0:d.notifyUnmount()}},[]),d}(a,u,t,n),l=function(t,r){var n=[];if((0,e.useContext)(Go),!r)return null;for(var o=0;o<Yo;o++){var i=Xo[o],a=Qo[i],s=a.isEnabled,l=a.Component;s(t)&&l&&n.push(e.createElement(l,Wo({key:i},t,{visualElement:r})))}return n}(t,c.visualElement)),e.createElement(e.Fragment,null,e.createElement(Zo.Provider,{value:c},o(a,t,function(t,r,n){return(0,e.useCallback)(function(e){var o;e&&(null===(o=t.mount)||void 0===o||o.call(t,e)),r&&(e?r.mount(e):r.unmount()),n&&("function"==typeof n?n(e):ri(n)&&(n.current=e))},[r])}(u,c.visualElement,r),u,s)),l)})}function di(e){function t(t,r){return void 0===r&&(r={}),ui(e(t,r))}var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}var fi=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function pi(e){return"string"==typeof e&&!e.includes("-")&&!!(fi.indexOf(e)>-1||/[A-Z]/.test(e))}var hi={},mi=["","X","Y","Z"],vi=["transformPerspective","x","y","z"];function gi(e,t){return vi.indexOf(e)-vi.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return mi.forEach(function(t){return vi.push(e+t)})});var bi=new Set(vi);function yi(e){return bi.has(e)}var xi=new Set(["originX","originY","originZ"]);function wi(e){return xi.has(e)}function Si(e,t){var r=t.layout,n=t.layoutId;return yi(e)||wi(e)||(r||void 0!==n)&&(!!hi[e]||"opacity"===e)}var ki=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Ci={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function _i(e){return e.startsWith("--")}var Ei=function(e,t){return t&&"number"==typeof e?t.transform(e):e},Ai=function(e,t){return function(r){return Math.max(Math.min(r,t),e)}},Ti=function(e){return e%1?Number(e.toFixed(5)):e},Pi=/(-)?([\d]*\.?[\d])+/g,ji=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ri=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Oi(e){return"string"==typeof e}var Mi=function(e){return{test:function(t){return Oi(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},zi=Mi("deg"),Fi=Mi("%"),Ii=Mi("px"),Di=Mi("vh"),Bi=Mi("vw"),Ni=Wo(Wo({},Fi),{parse:function(e){return Fi.parse(e)/100},transform:function(e){return Fi.transform(100*e)}}),Li={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},$i=Wo(Wo({},Li),{transform:Ai(0,1)}),Wi=Wo(Wo({},Li),{default:1}),Vi=Wo(Wo({},Li),{transform:Math.round}),qi={borderWidth:Ii,borderTopWidth:Ii,borderRightWidth:Ii,borderBottomWidth:Ii,borderLeftWidth:Ii,borderRadius:Ii,radius:Ii,borderTopLeftRadius:Ii,borderTopRightRadius:Ii,borderBottomRightRadius:Ii,borderBottomLeftRadius:Ii,width:Ii,maxWidth:Ii,height:Ii,maxHeight:Ii,size:Ii,top:Ii,right:Ii,bottom:Ii,left:Ii,padding:Ii,paddingTop:Ii,paddingRight:Ii,paddingBottom:Ii,paddingLeft:Ii,margin:Ii,marginTop:Ii,marginRight:Ii,marginBottom:Ii,marginLeft:Ii,rotate:zi,rotateX:zi,rotateY:zi,rotateZ:zi,scale:Wi,scaleX:Wi,scaleY:Wi,scaleZ:Wi,skew:zi,skewX:zi,skewY:zi,distance:Ii,translateX:Ii,translateY:Ii,translateZ:Ii,x:Ii,y:Ii,z:Ii,perspective:Ii,transformPerspective:Ii,opacity:$i,originX:Ni,originY:Ni,originZ:Ii,zIndex:Vi,fillOpacity:$i,strokeOpacity:$i,numOctaves:Vi};function Hi(e,t,r,n,o,i,a,s){var l,c=e.style,u=e.vars,d=e.transform,f=e.transformKeys,p=e.transformOrigin;f.length=0;var h=!1,m=!1,v=!0;for(var g in t){var b=t[g];if(_i(g))u[g]=b;else{var y=qi[g],x=Ei(b,y);if(yi(g)){if(h=!0,d[g]=x,f.push(g),!v)continue;b!==(null!==(l=y.default)&&void 0!==l?l:0)&&(v=!1)}else if(wi(g))p[g]=x,m=!0;else if((null==r?void 0:r.isHydrated)&&(null==n?void 0:n.isHydrated)&&hi[g]){var w=hi[g].process(b,n,r),S=hi[g].applyTo;if(S)for(var k=S.length,C=0;C<k;C++)c[S[C]]=w;else c[g]=w}else c[g]=x}}n&&r&&a&&s?(c.transform=a(n.deltaFinal,n.treeScale,h?d:void 0),i&&(c.transform=i(d,c.transform)),c.transformOrigin=s(n)):(h&&(c.transform=function(e,t,r,n){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";i.sort(gi);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];u+=(Ci[h]||h)+"("+o[h]+") ","z"===h&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),n?u=n(o,r?"":u):c&&r&&(u="none"),u}(e,o,v,i)),m&&(c.transformOrigin=function(e){var t=e.originX,r=void 0===t?"50%":t,n=e.originY,o=void 0===n?"50%":n,i=e.originZ;return r+" "+o+" "+(void 0===i?0:i)}(p)))}function Ui(e,t,r){for(var n in t)ki(t[n])||Si(n,r)||(e[n]=t[n])}function Qi(t,r,n){var o={},i=function(t,r,n){var o={};return Ui(o,t.style||{},t),Object.assign(o,function(t,r,n){var o=t.transformTemplate;return(0,e.useMemo)(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Hi(e,r,void 0,void 0,{enableHardwareAcceleration:!n},o);var t=e.style;return Wo(Wo({},e.vars),t)},[r])}(t,r,n)),t.transformValues&&(o=t.transformValues(o)),o}(t,r,n);return Boolean(t.drag)&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=i,o}var Gi=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function Xi(e){return Gi.has(e)}var Yi=function(e){return!Xi(e)};try{var Ki=r(5739).A;Yi=function(e){return e.startsWith("on")?!Xi(e):Ki(e)}}catch($r){}function Zi(e,t,r){return"string"==typeof e?e:Ii.transform(t+r*e)}var Ji=function(e,t){return Ii.transform(e*t)},ea={offset:"stroke-dashoffset",array:"stroke-dasharray"},ta={offset:"strokeDashoffset",array:"strokeDasharray"};function ra(e,t,r,n,o,i,a,s){var l=t.attrX,c=t.attrY,u=t.originX,d=t.originY,f=t.pathLength,p=t.pathSpacing,h=void 0===p?1:p,m=t.pathOffset,v=void 0===m?0:m;Hi(e,Vo(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n,o,i,a,s),e.attrs=e.style,e.style={};var g=e.attrs,b=e.style,y=e.dimensions,x=e.totalPathLength;g.transform&&(y&&(b.transform=g.transform),delete g.transform),y&&(void 0!==u||void 0!==d||b.transform)&&(b.transformOrigin=function(e,t,r){return Zi(t,e.x,e.width)+" "+Zi(r,e.y,e.height)}(y,void 0!==u?u:.5,void 0!==d?d:.5)),void 0!==l&&(g.x=l),void 0!==c&&(g.y=c),void 0!==x&&void 0!==f&&function(e,t,r,n,o,i){void 0===n&&(n=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?ea:ta;e[a.offset]=Ji(-o,t);var s=Ji(r,t),l=Ji(n,t);e[a.array]=s+" "+l}(g,x,f,h,v,!1)}var na=function(){return Wo(Wo({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function oa(t,r){var n=(0,e.useMemo)(function(){var e=na();return ra(e,r,void 0,void 0,{enableHardwareAcceleration:!1},t.transformTemplate),Wo(Wo({},e.attrs),{style:Wo({},e.style)})},[r]);if(t.style){var o={};Ui(o,t.style,t),n.style=Wo(Wo({},o),n.style)}return n}function ia(t){return void 0===t&&(t=!1),function(r,n,o,i,a){var s=i.latestValues,l=(pi(r)?oa:Qi)(n,s,a),c=function(e,t,r){var n={};for(var o in e)(Yi(o)||!0===r&&Xi(o)||!t&&!Xi(o))&&(n[o]=e[o]);return n}(n,"string"==typeof r,t),u=Wo(Wo(Wo({},c),l),{ref:o});return(0,e.createElement)(r,u)}}var aa=/([a-z])([A-Z])/g,sa=function(e){return e.replace(aa,"$1-$2").toLowerCase()};function la(e,t){var r=t.style,n=t.vars;for(var o in Object.assign(e.style,r),n)e.style.setProperty(o,n[o])}var ca=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function ua(e,t){for(var r in la(e,t),t.attrs)e.setAttribute(ca.has(r)?r:sa(r),t.attrs[r])}function da(e){var t=e.style,r={};for(var n in t)(ki(t[n])||Si(n,e))&&(r[n]=t[n]);return r}function fa(e){var t=da(e);for(var r in e)ki(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function pa(e){return"object"==typeof e&&"function"==typeof e.start}var ha=function(e){return Array.isArray(e)},ma=function(e){return ha(e)?e[e.length-1]||0:e};function va(e){var t,r=ki(e)?e.get():e;return t=r,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?r.toValue():r}function ga(e,t,r,n){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:ya(t,r,n,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var ba=function(t){return function(r,n){var o=(0,e.useContext)(Zo),i=(0,e.useContext)(Oo);return n?ga(t,r,o,i):Mo(function(){return ga(t,r,o,i)})}};function ya(e,t,r,n){var o={},i=!1===(null==r?void 0:r.initial),a=n(e);for(var s in a)o[s]=va(a[s]);var l=e.initial,c=e.animate,u=si(e),d=li(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=i||!1===l?c:l;return f&&"boolean"!=typeof f&&!pa(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var r=ii(e,t);if(r){var n=r.transitionEnd;r.transition;var i=Vo(r,["transitionEnd","transition"]);for(var a in i)o[a]=i[a];for(var a in n)o[a]=n[a]}}),o}var xa,wa={useVisualState:ba({scrapeMotionValuesFromProps:fa,createRenderState:na,onMount:function(e,t,r){var n=r.renderState,o=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(n.totalPathLength=t.getTotalLength()),ra(n,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),ua(t,n)}})},Sa={useVisualState:ba({scrapeMotionValuesFromProps:da,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function ka(e,t,r,n){return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}function Ca(t,r,n,o){(0,e.useEffect)(function(){var e=t.current;if(n&&e)return ka(e,r,n,o)},[t,r,n,o])}function _a(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ea(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(xa||(xa={}));var Aa={pageX:0,pageY:0};function Ta(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||Aa;return{x:r[t+"X"],y:r[t+"Y"]}}function Pa(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ja(e,t){return void 0===t&&(t="page"),{point:Ea(e)?Ta(e,t):Pa(e,t)}}var Ra=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,ja(t))};return t?(r=n,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},Oa={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ma={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function za(e){return ei&&null===window.onpointerdown?e:ei&&null===window.ontouchstart?Ma[e]:ei&&null===window.onmousedown?Oa[e]:e}function Fa(e,t,r,n){return ka(e,za(t),Ra(r,"pointerdown"===t),n)}function Ia(e,t,r,n){return Ca(e,za(t),r&&Ra(r,"pointerdown"===t),n)}function Da(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ba=Da("dragHorizontal"),Na=Da("dragVertical");function La(e){var t=!1;if("y"===e)t=Na();else if("x"===e)t=Ba();else{var r=Ba(),n=Na();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function $a(){var e=La(!0);return!e||(e(),!1)}function Wa(e,t,r){return function(n,o){var i;_a(n)&&!$a()&&(null==r||r(n,o),null===(i=e.animationState)||void 0===i||i.setActive(xa.Hover,t))}}var Va=function(e,t){return!!t&&(e===t||Va(e,t.parentElement))};function qa(t){return(0,e.useEffect)(function(){return function(){return t()}},[])}var Ha=function(e,t){return function(r){return t(e(r))}},Ua=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(Ha)},Qa=function(e){return function(t){return e(t),null}},Ga={tap:Qa(function(t){var r=t.onTap,n=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=t.visualElement,s=r||n||o||i,l=(0,e.useRef)(!1),c=(0,e.useRef)(null);function u(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function d(){var e;return u(),l.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(xa.Tap,!1),!$a()}function f(e,t){d()&&(Va(a.getInstance(),e.target)?null==r||r(e,t):null==o||o(e,t))}function p(e,t){d()&&(null==o||o(e,t))}Ia(a,"pointerdown",s?function(e,t){var r;u(),l.current||(l.current=!0,c.current=Ua(Fa(window,"pointerup",f),Fa(window,"pointercancel",p)),null==n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(xa.Tap,!0))}:void 0),qa(u)}),focus:Qa(function(e){var t=e.whileFocus,r=e.visualElement;Ca(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(xa.Focus,!0)}:void 0),Ca(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(xa.Focus,!1)}:void 0)}),hover:Qa(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,o=e.visualElement;Ia(o,"pointerenter",t||n?Wa(o,!0,t):void 0),Ia(o,"pointerleave",r||n?Wa(o,!1,r):void 0)})};function Xa(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var Ya=function(){},Ka=function(e,t,r){return Math.min(Math.max(r,e),t)};var Za=12;function Ja(e,t){return e*Math.sqrt(1-t*t)}var es=["duration","bounce"],ts=["stiffness","damping","mass"];function rs(e,t){return t.some(function(t){return void 0!==e[t]})}function ns(e){var t=e.from,r=void 0===t?0:t,n=e.to,o=void 0===n?1:n,i=e.restSpeed,a=void 0===i?2:i,s=e.restDelta,l=Vo(e,["from","to","restSpeed","restDelta"]),c={done:!1,value:r},u=function(e){var t=Wo({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!rs(e,ts)&&rs(e,es)){var r=function(e){var t,r,n=e.duration,o=void 0===n?800:n,i=e.bounce,a=void 0===i?.25:i,s=e.velocity,l=void 0===s?0:s,c=e.mass,u=void 0===c?1:c,d=1-a;d=Ka(.05,1,d),o=Ka(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,r=t*o;return.001-(t-l)/Ja(e,d)*Math.exp(-r)},r=function(e){var r=e*d*o,n=r*l+l,i=Math.pow(d,2)*Math.pow(e,2)*o,a=Math.exp(-r),s=Ja(Math.pow(e,2),d);return(.001-t(e)>0?-1:1)*((n-i)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-l)*o+1)-.001},r=function(e){return Math.exp(-e*o)*(o*o*(l-e))});var f=function(e,t,r){for(var n=r,o=1;o<Za;o++)n-=e(n)/t(n);return n}(t,r,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var p=Math.pow(f,2)*u;return{stiffness:p,damping:2*d*Math.sqrt(u*p),duration:o}}(e);(t=Wo(Wo(Wo({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(l),d=u.stiffness,f=u.damping,p=u.mass,h=u.velocity,m=u.duration,v=u.isResolvedFromDuration,g=os,b=os;function y(){var e=h?-h/1e3:0,t=o-r,n=f/(2*Math.sqrt(d*p)),i=Math.sqrt(d/p)/1e3;if(null!=s||(s=Math.abs(o-r)<=1?.01:.4),n<1){var a=Ja(i,n);g=function(r){var s=Math.exp(-n*i*r);return o-s*((e+n*i*t)/a*Math.sin(a*r)+t*Math.cos(a*r))},b=function(r){var o=Math.exp(-n*i*r);return n*i*o*(Math.sin(a*r)*(e+n*i*t)/a+t*Math.cos(a*r))-o*(Math.cos(a*r)*(e+n*i*t)-a*t*Math.sin(a*r))}}else if(1===n)g=function(r){return o-Math.exp(-i*r)*(t+(e+i*t)*r)};else{var l=i*Math.sqrt(n*n-1);g=function(r){var a=Math.exp(-n*i*r),s=Math.min(l*r,300);return o-a*((e+n*i*t)*Math.sinh(s)+l*t*Math.cosh(s))/l}}}return y(),{next:function(e){var t=g(e);if(v)c.done=e>=m;else{var r=1e3*b(e),n=Math.abs(r)<=a,i=Math.abs(o-t)<=s;c.done=n&&i}return c.value=c.done?o:t,c},flipTarget:function(){var e;h=-h,r=(e=[o,r])[0],o=e[1],y()}}}ns.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var os=function(e){return 0},is=function(e,t,r){var n=t-e;return 0===n?1:(r-e)/n},as=function(e,t,r){return-r*e+r*t+e},ss=function(e,t){return function(r){return Boolean(Oi(r)&&Ri.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t))}},ls=function(e,t,r){return function(n){var o;if(!Oi(n))return n;var i=n.match(Pi),a=i[0],s=i[1],l=i[2],c=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[r]=parseFloat(l),o.alpha=void 0!==c?parseFloat(c):1,o}},cs=Ai(0,255),us=Wo(Wo({},Li),{transform:function(e){return Math.round(cs(e))}}),ds={test:ss("rgb","red"),parse:ls("red","green","blue"),transform:function(e){var t=e.red,r=e.green,n=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+us.transform(t)+", "+us.transform(r)+", "+us.transform(n)+", "+Ti($i.transform(i))+")"}},fs={test:ss("#"),parse:function(e){var t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:ds.transform},ps={test:ss("hsl","hue"),parse:ls("hue","saturation","lightness"),transform:function(e){var t=e.hue,r=e.saturation,n=e.lightness,o=e.alpha,i=void 0===o?1:o;return"hsla("+Math.round(t)+", "+Fi.transform(Ti(r))+", "+Fi.transform(Ti(n))+", "+Ti($i.transform(i))+")"}},hs=function(e,t,r){var n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},ms=[fs,ds,ps],vs=function(e){return ms.find(function(t){return t.test(e)})},gs=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},bs=function(e,t){var r=vs(e),n=vs(t);gs(e),gs(t),r.transform,n.transform;var o=r.parse(e),i=n.parse(t),a=Wo({},o),s=r===ps?as:hs;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=as(o.alpha,i.alpha,e),r.transform(a)}},ys={test:function(e){return ds.test(e)||fs.test(e)||ps.test(e)},parse:function(e){return ds.test(e)?ds.parse(e):ps.test(e)?ps.parse(e):fs.parse(e)},transform:function(e){return Oi(e)?e:e.hasOwnProperty("red")?ds.transform(e):ps.transform(e)}},xs="${c}",ws="${n}";function Ss(e){var t=[],r=0,n=e.match(ji);n&&(r=n.length,e=e.replace(ji,xs),t.push.apply(t,n.map(ys.parse)));var o=e.match(Pi);return o&&(e=e.replace(Pi,ws),t.push.apply(t,o.map(Li.parse))),{values:t,numColors:r,tokenised:e}}function ks(e){return Ss(e).values}function Cs(e){var t=Ss(e),r=t.values,n=t.numColors,o=t.tokenised,i=r.length;return function(e){for(var t=o,r=0;r<i;r++)t=t.replace(r<n?xs:ws,r<n?ys.transform(e[r]):Ti(e[r]));return t}}var _s=function(e){return"number"==typeof e?0:e},Es={test:function(e){var t,r,n,o;return isNaN(e)&&Oi(e)&&(null!==(r=null===(t=e.match(Pi))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(o=null===(n=e.match(ji))||void 0===n?void 0:n.length)&&void 0!==o?o:0)>0},parse:ks,createTransformer:Cs,getAnimatableNone:function(e){var t=ks(e);return Cs(e)(t.map(_s))}},As=function(e){return"number"==typeof e};function Ts(e,t){return As(e)?function(r){return as(e,t,r)}:ys.test(e)?bs(e,t):Os(e,t)}var Ps=function(e,t){var r=Ho([],e),n=r.length,o=e.map(function(e,r){return Ts(e,t[r])});return function(e){for(var t=0;t<n;t++)r[t]=o[t](e);return r}},js=function(e,t){var r=Wo(Wo({},e),t),n={};for(var o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=Ts(e[o],t[o]));return function(e){for(var t in n)r[t]=n[t](e);return r}};function Rs(e){for(var t=Es.parse(e),r=t.length,n=0,o=0,i=0,a=0;a<r;a++)n||"number"==typeof t[a]?n++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:n,numRGB:o,numHSL:i}}var Os=function(e,t){var r=Es.createTransformer(t),n=Rs(e),o=Rs(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&(n.numNumbers,o.numNumbers),Ua(Ps(n.parsed,o.parsed),r)},Ms=function(e,t){return function(r){return as(e,t,r)}};function zs(e,t,r){var n=void 0===r?{}:r,o=n.clamp,i=void 0===o||o,a=n.ease,s=n.mixer,l=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[l-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=function(e,t,r){for(var n,o=[],i=r||("number"==typeof(n=e[0])?Ms:"string"==typeof n?ys.test(n)?bs:Os:Array.isArray(n)?Ps:"object"==typeof n?js:void 0),a=e.length-1,s=0;s<a;s++){var l=i(e[s],e[s+1]);if(t){var c=Array.isArray(t)?t[s]:t;l=Ua(c,l)}o.push(l)}return o}(t,a,s),u=2===l?function(e,t){var r=e[0],n=e[1],o=t[0];return function(e){return o(is(r,n,e))}}(e,c):function(e,t){var r=e.length,n=r-1;return function(o){var i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){for(var s=1;s<r&&!(e[s]>o||s===n);s++);i=s-1}var l=is(e[i],e[i+1],o);return t[i](l)}}(e,c);return i?function(t){return u(Ka(e[0],e[l-1],t))}:u}var Fs,Is=function(e){return function(t){return 1-e(1-t)}},Ds=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Bs=function(e){return function(t){return t*t*((e+1)*t-e)}},Ns=4/11,Ls=8/11,$s=function(e){return e},Ws=function(e){return Math.pow(e,2)},Vs=Is(Ws),qs=Ds(Ws),Hs=function(e){return 1-Math.sin(Math.acos(e))},Us=Is(Hs),Qs=Ds(Us),Gs=Bs(1.525),Xs=Is(Gs),Ys=Ds(Gs),Ks=(Fs=Bs(1.525),function(e){return(e*=2)<1?.5*Fs(e):.5*(2-Math.pow(2,-10*(e-1)))}),Zs=4356/361,Js=35442/1805,el=16061/1805,tl=function(e){if(1===e||0===e)return e;var t=e*e;return e<Ns?7.5625*t:e<Ls?9.075*t-9.9*e+3.4:e<.9?Zs*t-Js*e+el:10.8*e*e-20.52*e+10.72},rl=Is(tl);function nl(e,t){return e.map(function(){return t||qs}).splice(0,e.length-1)}function ol(e){var t=e.from,r=void 0===t?0:t,n=e.to,o=void 0===n?1:n,i=e.ease,a=e.offset,s=e.duration,l=void 0===s?300:s,c={done:!1,value:r},u=Array.isArray(o)?o:[r,o],d=function(e,t){return e.map(function(e){return e*t})}(a&&a.length===u.length?a:function(e){var t=e.length;return e.map(function(e,r){return 0!==r?r/(t-1):0})}(u),l);function f(){return zs(d,u,{ease:Array.isArray(i)?i:nl(u,i)})}var p=f();return{next:function(e){return c.value=p(e),c.done=e>=l,c},flipTarget:function(){u.reverse(),p=f()}}}var il={keyframes:ol,spring:ns,decay:function(e){var t=e.velocity,r=void 0===t?0:t,n=e.from,o=void 0===n?0:n,i=e.power,a=void 0===i?.8:i,s=e.timeConstant,l=void 0===s?350:s,c=e.restDelta,u=void 0===c?.5:c,d=e.modifyTarget,f={done:!1,value:o},p=a*r,h=o+p,m=void 0===d?h:d(h);return m!==h&&(p=m-o),{next:function(e){var t=-p*Math.exp(-e/l);return f.done=!(t>u||t<-u),f.value=f.done?m:m+t,f},flipTarget:function(){}}}},al=1/60*1e3,sl="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},ll="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(sl())},al)},cl=!0,ul=!1,dl=!1,fl={delta:0,timestamp:0},pl=["read","update","preRender","render","postRender"],hl=pl.reduce(function(e,t){return e[t]=function(e){var t=[],r=[],n=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var l=s&&o,c=l?t:r;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(n=t.length)),e},cancel:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),i.delete(e)},process:function(s){var l;if(o=!0,t=(l=[r,t])[0],(r=l[1]).length=0,n=t.length)for(var c=0;c<n;c++){var u=t[c];u(s),i.has(u)&&(a.schedule(u),e())}o=!1}};return a}(function(){return ul=!0}),e},{}),ml=pl.reduce(function(e,t){var r=hl[t];return e[t]=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),ul||xl(),r.schedule(e,t,n)},e},{}),vl=pl.reduce(function(e,t){return e[t]=hl[t].cancel,e},{}),gl=pl.reduce(function(e,t){return e[t]=function(){return hl[t].process(fl)},e},{}),bl=function(e){return hl[e].process(fl)},yl=function(e){ul=!1,fl.delta=cl?al:Math.max(Math.min(e-fl.timestamp,40),1),fl.timestamp=e,dl=!0,pl.forEach(bl),dl=!1,ul&&(cl=!1,ll(yl))},xl=function(){ul=!0,cl=!0,dl||ll(yl)},wl=function(){return fl};const Sl=ml;function kl(e,t,r){return void 0===r&&(r=0),e-t-r}var Cl=function(e){var t=function(t){var r=t.delta;return e(r)};return{start:function(){return Sl.update(t,!0)},stop:function(){return vl.update(t)}}};function _l(e){var t,r,n,o,i,a=e.from,s=e.autoplay,l=void 0===s||s,c=e.driver,u=void 0===c?Cl:c,d=e.elapsed,f=void 0===d?0:d,p=e.repeat,h=void 0===p?0:p,m=e.repeatType,v=void 0===m?"loop":m,g=e.repeatDelay,b=void 0===g?0:g,y=e.onPlay,x=e.onStop,w=e.onComplete,S=e.onRepeat,k=e.onUpdate,C=Vo(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),_=C.to,E=0,A=C.duration,T=!1,P=!0,j=function(e){if(Array.isArray(e.to))return ol;if(il[e.type])return il[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ol:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ns:ol}(C);(null===(r=(t=j).needsInterpolation)||void 0===r?void 0:r.call(t,a,_))&&(i=zs([0,100],[a,_],{clamp:!1}),a=0,_=100);var R=j(Wo(Wo({},C),{from:a,to:_}));return l&&(null==y||y(),(n=u(function(e){if(P||(e=-e),f+=e,!T){var t=R.next(Math.max(0,f));o=t.value,i&&(o=i(o)),T=P?t.done:f<=0}null==k||k(o),T&&(0===E&&(null!=A||(A=f)),E<h?function(e,t,r,n){return n?e>=t+r:e<=-r}(f,A,b,P)&&(E++,"reverse"===v?f=function(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=!0),n?kl(t+-e,t,r):t-(e-t)+r}(f,A,b,P=E%2==0):(f=kl(f,A,b),"mirror"===v&&R.flipTarget()),T=!1,S&&S()):(n.stop(),w&&w()))})).start()),{stop:function(){null==x||x(),n.stop()}}}function El(e,t){return t?e*(1e3/t):0}var Al=function(e){return 1e3*e},Tl=function(e,t){return 1-3*t+3*e},Pl=function(e,t){return 3*t-6*e},jl=function(e){return 3*e},Rl=function(e,t,r){return((Tl(t,r)*e+Pl(t,r))*e+jl(t))*e},Ol=function(e,t,r){return 3*Tl(t,r)*e*e+2*Pl(t,r)*e+jl(t)},Ml=.1;function zl(e,t,r,n){if(e===t&&r===n)return $s;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=Rl(i*Ml,e,r);return function(i){return 0===i||1===i?i:Rl(function(t){for(var n=0,i=1;10!==i&&o[i]<=t;++i)n+=Ml;--i;var a=n+(t-o[i])/(o[i+1]-o[i])*Ml,s=Ol(a,e,r);return s>=.001?function(e,t,r,n){for(var o=0;o<8;++o){var i=Ol(t,r,n);if(0===i)return t;t-=(Rl(t,r,n)-e)/i}return t}(t,a,e,r):0===s?a:function(e,t,r,n,o){var i,a,s=0;do{(i=Rl(a=t+(r-t)/2,n,o)-e)>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,n,n+Ml,e,r)}(i),t,n)}}var Fl={linear:$s,easeIn:Ws,easeInOut:qs,easeOut:Vs,circIn:Hs,circInOut:Qs,circOut:Us,backIn:Gs,backInOut:Ys,backOut:Xs,anticipate:Ks,bounceIn:rl,bounceInOut:function(e){return e<.5?.5*(1-tl(1-2*e)):.5*tl(2*e-1)+.5},bounceOut:tl},Il=function(e){if(Array.isArray(e)){e.length;var t=qo(e,4);return zl(t[0],t[1],t[2],t[3])}return"string"==typeof e?Fl[e]:e},Dl=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Es.test(t)||t.startsWith("url(")))},Bl=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Nl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Ll=function(){return{type:"keyframes",ease:"linear",duration:.3}},$l=function(e){return{type:"keyframes",duration:.8,values:e}},Wl={x:Bl,y:Bl,z:Bl,rotate:Bl,rotateX:Bl,rotateY:Bl,rotateZ:Bl,scaleX:Nl,scaleY:Nl,scale:Nl,opacity:Ll,backgroundColor:Ll,color:Ll,default:Nl},Vl=new Set(["brightness","contrast","saturate","opacity"]);function ql(e){var t=e.slice(0,-1).split("("),r=t[0],n=t[1];if("drop-shadow"===r)return e;var o=(n.match(Pi)||[])[0];if(!o)return e;var i=n.replace(o,""),a=Vl.has(r)?1:0;return o!==n&&(a*=100),r+"("+a+i+")"}var Hl=/([a-z-]*)\(.*?\)/g,Ul=Wo(Wo({},Es),{getAnimatableNone:function(e){var t=e.match(Hl);return t?t.map(ql).join(" "):e}}),Ql=Wo(Wo({},qi),{color:ys,backgroundColor:ys,outlineColor:ys,fill:ys,stroke:ys,borderColor:ys,borderTopColor:ys,borderRightColor:ys,borderBottomColor:ys,borderLeftColor:ys,filter:Ul,WebkitFilter:Ul}),Gl=function(e){return Ql[e]};function Xl(e,t){var r,n=Gl(e);return n!==Ul&&(n=Es),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}function Yl(e,t,r){var n,o,i,a;return Array.isArray(t.to)&&(null!==(n=e.duration)&&void 0!==n||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Ho([],qo(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Vo(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Wo(Wo({},e),(o=r,i=t.to,a=ha(i)?$l:Wl[o]||Wl.default,Wo({to:i},a(i))))),Wo(Wo({},t),function(e){var t=e.ease,r=e.times,n=e.yoyo,o=e.flip,i=e.loop,a=Vo(e,["ease","times","yoyo","flip","loop"]),s=Wo({},a);return r&&(s.offset=r),a.duration&&(s.duration=Al(a.duration)),a.repeatDelay&&(s.repeatDelay=Al(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Il):Il(t)),"tween"===a.type&&(s.type="keyframes"),(n||i||o)&&(n?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||n||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Kl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Zl(e){return"number"==typeof e?0:Xl("",e)}function Jl(e,t){return e[t]||e.default||e}function ec(e,t,r,n){return void 0===n&&(n={}),t.start(function(o){var i,a,s=function(e,t,r,n,o){var i,a=Jl(n,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=Dl(e,r);return"none"===s&&l&&"string"==typeof r?s=Xl(e,r):Kl(s)&&"string"==typeof r?s=Zl(r):!Array.isArray(r)&&Kl(r)&&"string"==typeof s&&(r=Zl(s)),Dl(e,s)&&l&&!1!==a.type?function(){var n={from:s,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){var t,r=e.from,n=void 0===r?0:r,o=e.velocity,i=void 0===o?0:o,a=e.min,s=e.max,l=e.power,c=void 0===l?.8:l,u=e.timeConstant,d=void 0===u?750:u,f=e.bounceStiffness,p=void 0===f?500:f,h=e.bounceDamping,m=void 0===h?10:h,v=e.restDelta,g=void 0===v?1:v,b=e.modifyTarget,y=e.driver,x=e.onUpdate,w=e.onComplete;function S(e){return void 0!==a&&e<a||void 0!==s&&e>s}function k(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function C(e){null==t||t.stop(),t=_l(Wo(Wo({},e),{driver:y,onUpdate:function(t){var r;null==x||x(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:w}))}function _(e){C(Wo({type:"spring",stiffness:p,damping:m,restDelta:g},e))}if(S(n))_({from:n,velocity:i,to:k(n)});else{var E=c*i+n;void 0!==b&&(E=b(E));var A,T,P=k(E),j=P===a?-1:1;C({type:"decay",from:n,velocity:i,timeConstant:d,power:c,restDelta:g,modifyTarget:b,onUpdate:S(E)?function(e){A=T,T=e,i=El(e-A,wl().delta),(1===j&&e>P||-1===j&&e<P)&&_({from:e,to:P,velocity:i})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(Wo(Wo({},n),a)):_l(Wo(Wo({},Yl(a,n,e)),{onUpdate:function(e){var t;n.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;n.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e;return t.set(r),o(),null===(e=null==a?void 0:a.onComplete)||void 0===e||e.call(a),{stop:function(){}}}}(e,t,r,n,o),l=function(e,t){var r;return null!==(r=(Jl(e,t)||{}).delay)&&void 0!==r?r:0}(n,e),c=function(){return a=s()};return l?i=setTimeout(c,Al(l)):c(),function(){clearTimeout(i),null==a||a.stop()}})}var tc=function(e){return/^\-?\d*\.?\d+$/.test(e)};function rc(e,t){-1===e.indexOf(t)&&e.push(t)}function nc(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var oc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return rc(this.subscriptions,e),function(){return nc(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(var o=0;o<n;o++){var i=this.subscriptions[o];i&&i(e,t,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ic=function(){function e(e){var t,r=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oc,this.velocityUpdateSubscribers=new oc,this.renderSubscribers=new oc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),r.prev=r.current,r.current=e;var n=wl(),o=n.delta,i=n.timestamp;r.lastUpdated!==i&&(r.timeDelta=o,r.lastUpdated=i,Sl.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),t&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return Sl.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?El(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function ac(e){return new ic(e)}var sc=function(e){return function(t){return t.test(e)}},lc=[Li,Ii,Fi,zi,Bi,Di,{test:function(e){return"auto"===e},parse:function(e){return e}}],cc=function(e){return lc.find(sc(e))},uc=Ho(Ho([],qo(lc)),[ys,Es]),dc=function(e){return uc.find(sc(e))};function fc(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ac(r))}function pc(e,t){if(t)return(t[e]||t.default||t).from}function hc(e,t,r){var n;void 0===r&&(r={});var o=ai(e,t,r.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;r.transitionOverride&&(a=r.transitionOverride);var s=o?function(){return mc(e,o,r)}:function(){return Promise.resolve()},l=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,r,n,o,i){void 0===r&&(r=0),void 0===n&&(n=0),void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*n,l=1===o?function(e){return void 0===e&&(e=0),e*n}:function(e){return void 0===e&&(e=0),s-e*n};return Array.from(e.variantChildren).sort(vc).forEach(function(e,n){a.push(hc(e,t,Wo(Wo({},i),{delay:r+l(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(a)}(e,t,i+n,s,l,r)}:function(){return Promise.resolve()},c=a.when;if(c){var u=qo("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],f=u[1];return d().then(f)}return Promise.all([s(),l(r.delay)])}function mc(e,t,r){var n,o=void 0===r?{}:r,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=Vo(c,["transition","transitionEnd"]);s&&(d=s);var h=[],m=l&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[l]);for(var v in p){var g=e.getValue(v),b=p[v];if(!(!g||void 0===b||m&&gc(m,v))){var y=ec(v,g,b,Wo({delay:a},d));h.push(y)}}return Promise.all(h).then(function(){f&&function(e,t){var r=ai(e,t),n=r?e.makeTargetAnimatable(r,!1):{},o=n.transitionEnd,i=void 0===o?{}:o;n.transition;var a=Vo(n,["transitionEnd","transition"]);for(var s in a=Wo(Wo({},a),i))fc(e,s,ma(a[s]))}(e,f)})}function vc(e,t){return e.sortNodePosition(t)}function gc(e,t){var r=e.protectedKeys,n=e.needsAnimating,o=r.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,o}var bc=[xa.Animate,xa.Hover,xa.Tap,xa.Drag,xa.Focus,xa.Exit],yc=Ho([],qo(bc)).reverse(),xc=bc.length;function wc(e){var t=function(e){return function(t){return Promise.all(t.map(function(t){var r=t.animation,n=t.options;return function(e,t,r){var n;if(void 0===r&&(r={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map(function(t){return hc(e,t,r)});n=Promise.all(o)}else if("string"==typeof t)n=hc(e,t,r);else{var i="function"==typeof t?ai(e,t,r.custom):t;n=mc(e,i,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,r,n)}))}}(e),r=function(){var e;return(e={})[xa.Animate]=Sc(!0),e[xa.Hover]=Sc(),e[xa.Tap]=Sc(),e[xa.Drag]=Sc(),e[xa.Focus]=Sc(),e[xa.Exit]=Sc(),e}(),n={},o=!0,i=function(t,r){var n=ai(e,r);if(n){n.transition;var o=n.transitionEnd,i=Vo(n,["transition","transitionEnd"]);t=Wo(Wo(Wo({},t),i),o)}return t};function a(a,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0,m=function(t){var n=yc[t],m=r[n],v=null!==(l=c[n])&&void 0!==l?l:u[n],g=oi(v),b=n===s?m.isActive:null;!1===b&&(h=t);var y=v===u[n]&&v!==c[n]&&g;if(y&&o&&e.manuallyAnimateOnMount&&(y=!1),m.protectedKeys=Wo({},p),!m.isActive&&null===b||!v&&!m.prevProp||pa(v)||"boolean"==typeof v)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!ni(t)&&!Xa(t,e)}(m.prevProp,v)||n===s&&m.isActive&&!y&&g||t>h&&g,w=Array.isArray(v)?v:[v],S=w.reduce(i,{});!1===b&&(S={});var k=m.prevResolvedValues,C=void 0===k?{}:k,_=Wo(Wo({},C),S),E=function(e){x=!0,f.delete(e),m.needsAnimating[e]=!0};for(var A in _){var T=S[A],P=C[A];p.hasOwnProperty(A)||(T!==P?ha(T)&&ha(P)?Xa(T,P)?m.protectedKeys[A]=!0:E(A):void 0!==T?E(A):f.add(A):void 0!==T&&f.has(A)?E(A):m.protectedKeys[A]=!0)}m.prevProp=v,m.prevResolvedValues=S,m.isActive&&(p=Wo(Wo({},p),S)),o&&e.blockInitialAnimation&&(x=!1),x&&!y&&d.push.apply(d,Ho([],qo(w.map(function(e){return{animation:e,options:Wo({type:n},a)}}))))},v=0;v<xc;v++)m(v);if(n=Wo({},p),f.size){var g={};f.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(g[t]=r)}),d.push({animation:g})}var b=Boolean(d.length);return o&&!1===c.initial&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,b?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==n[e]},animateChanges:a,setActive:function(t,n,o){var i;return r[t].isActive===n?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n,a(o,t))},setAnimateFunction:function(r){t=r(e)},getState:function(){return r}}}function Sc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var kc={animation:Qa(function(t){var r=t.visualElement,n=t.animate;r.animationState||(r.animationState=wc(r)),pa(n)&&(0,e.useEffect)(function(){return n.subscribe(r)},[n])}),exit:Qa(function(t){var r=t.custom,n=t.visualElement,o=qo(zo(),2),i=o[0],a=o[1],s=(0,e.useContext)(Oo);(0,e.useEffect)(function(){var e,t,o=null===(e=n.animationState)||void 0===e?void 0:e.setActive(xa.Exit,!i,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:r});!i&&(null==o||o.then(a))},[i])})},Cc=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},_c=function(e){return Cc(e)&&e.hasOwnProperty("z")},Ec=function(e,t){return Math.abs(e-t)};function Ac(e,t){if(As(e)&&As(t))return Ec(e,t);if(Cc(e)&&Cc(t)){var r=Ec(e.x,t.x),n=Ec(e.y,t.y),o=_c(e)&&_c(t)?Ec(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}var Tc=function(){function e(e,t,r){var n=this,o=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=Rc(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=Ac(e.offset,{x:0,y:0})>=3;if(t||r){var o=e.point,i=wl().timestamp;n.history.push(Wo(Wo({},o),{timestamp:i}));var a=n.handlers,s=a.onStart,l=a.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),l&&l(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){n.lastMoveEvent=e,n.lastMoveEventInfo=Pc(t,n.transformPagePoint),_a(e)&&0===e.buttons?n.handlePointerUp(e,t):Sl.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,o=r.onEnd,i=r.onSessionEnd,a=Rc(Pc(t,n.transformPagePoint),n.history);n.startEvent&&o&&o(e,a),i&&i(e,a)},!(Ea(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=Pc(ja(e),this.transformPagePoint),a=i.point,s=wl().timestamp;this.history=[Wo(Wo({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Rc(i,this.history)),this.removeListeners=Ua(Fa(window,"pointermove",this.handlePointerMove),Fa(window,"pointerup",this.handlePointerUp),Fa(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),vl.update(this.updatePoint)},e}();function Pc(e,t){return t?{point:t(e.point)}:e}function jc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rc(e,t){var r=e.point;return{point:r,delta:jc(r,Mc(t)),offset:jc(r,Oc(t)),velocity:zc(t,.1)}}function Oc(e){return e[0]}function Mc(e){return e[e.length-1]}function zc(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,o=Mc(e);r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Al(t)));)r--;if(!n)return{x:0,y:0};var i=(o.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Fc(e){return e}function Ic(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var Dc={translate:0,scale:1,origin:0,originPoint:0};function Bc(){return{x:Wo({},Dc),y:Wo({},Dc)}}function Nc(e){return[e("x"),e("y")]}function Lc(e,t,r){var n=t.min,o=t.max;return void 0!==n&&e<n?e=r?as(n,e,r.min):Math.max(e,n):void 0!==o&&e>o&&(e=r?as(o,e,r.max):Math.min(e,o)),e}function $c(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Wc(e,t){var r,n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=qo([o,n],2))[0],o=r[1]),{min:e.min+n,max:e.min+o}}function Vc(e,t,r){return{min:qc(e,t),max:qc(e,r)}}function qc(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}function Hc(e,t){return Ic(function(e,t){var r=e.top,n=e.left,o=e.bottom,i=e.right;void 0===t&&(t=Fc);var a=t({x:n,y:r}),s=t({x:i,y:o});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}function Uc(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),Ac(e,t)<r}function Qc(e){return e.max-e.min}function Gc(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=as(t.min,t.max,e.origin),e.scale=Qc(r)/Qc(t),Uc(e.scale,1,1e-4)&&(e.scale=1),e.translate=as(r.min,r.max,e.origin)-e.originPoint,Uc(e.translate)&&(e.translate=0)}function Xc(e,t,r,n){Gc(e.x,t.x,r.x,Yc(n.originX)),Gc(e.y,t.y,r.y,Yc(n.originY))}function Yc(e){return"number"==typeof e?e:.5}function Kc(e,t,r){e.min=r.min+t.min,e.max=e.min+Qc(t)}var Zc=function(e,t){return e.depth-t.depth};function Jc(e){return e.projection.isEnabled||e.shouldResetTransform()}function eu(e,t){void 0===t&&(t=[]);var r=e.parent;return r&&eu(r,t),Jc(e)&&t.push(e),t}function tu(e){if(!e.shouldResetTransform()){var t,r=e.getLayoutState();e.notifyBeforeLayoutMeasure(r.layout),r.isHydrated=!0,r.layout=e.measureViewportBox(),r.layoutCorrected=(t=r.layout,{x:Wo({},t.x),y:Wo({},t.y)}),e.notifyLayoutMeasure(r.layout,e.prevViewportBox||r.layout),Sl.update(function(){return e.rebaseProjectionTarget()})}}function ru(e,t){return{min:t.min-e.min,max:t.max-e.min}}function nu(e,t){return{x:ru(e.x,t.x),y:ru(e.y,t.y)}}function ou(e){var t=e.getProps(),r=t.drag,n=t._dragX;return r&&!n}function iu(e,t){e.min=t.min,e.max=t.max}function au(e,t,r){return r+t*(e-r)}function su(e,t,r,n,o){return void 0!==o&&(e=au(e,o,n)),au(e,r,n)+t}function lu(e,t,r,n,o){void 0===t&&(t=0),void 0===r&&(r=1),e.min=su(e.min,t,r,n,o),e.max=su(e.max,t,r,n,o)}function cu(e,t){var r=t.x,n=t.y;lu(e.x,r.translate,r.scale,r.originPoint),lu(e.y,n.translate,n.scale,n.originPoint)}function uu(e,t,r,n){var o=qo(n,3),i=o[0],a=o[1],s=o[2];e.min=t.min,e.max=t.max;var l=void 0!==r[s]?r[s]:.5,c=as(t.min,t.max,l);lu(e,r[i],r[a],c,r.scale)}var du=["x","scaleX","originX"],fu=["y","scaleY","originY"];function pu(e,t,r){uu(e.x,t.x,r,du),uu(e.y,t.y,r,fu)}function hu(e,t,r,n,o){return e=au(e-=t,1/r,n),void 0!==o&&(e=au(e,1/o,n)),e}function mu(e,t,r){var n=qo(r,3),o=n[0],i=n[1],a=n[2];!function(e,t,r,n,o){void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5);var i=as(e.min,e.max,n)-t;e.min=hu(e.min,t,r,i,o),e.max=hu(e.max,t,r,i,o)}(e,t[o],t[i],t[a],t.scale)}function vu(e,t){mu(e.x,t,du),mu(e.y,t,fu)}var gu=new Set;function bu(e,t,r){e[r]||(e[r]=[]),e[r].push(t)}function yu(e){return gu.add(e),function(){return gu.delete(e)}}function xu(){if(gu.size){var e=0,t=[[]],r=[],n=function(r){return bu(t,r,e)},o=function(t){bu(r,t,e),e++};gu.forEach(function(t){t(n,o),e=0}),gu.clear();for(var i=r.length,a=0;a<=i;a++)t[a]&&t[a].forEach(Su),r[a]&&r[a].forEach(Su)}}var wu,Su=function(e){return e()},ku=new WeakMap,Cu=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),ku.set(t,this)}return e.prototype.start=function(e,t){var r=this,n=void 0===t?{}:t,o=n.snapToCursor,i=void 0!==o&&o,a=n.cursorProgress,s=this.props.transformPagePoint;this.panSession=new Tc(e,{onSessionStart:function(e){var t;r.stopMotion();var n=function(e){return ja(e,"client")}(e).point;null===(t=r.cancelLayout)||void 0===t||t.call(r),r.cancelLayout=yu(function(e,t){var o=eu(r.visualElement),s=function(e){var t=[],r=function(e){Jc(e)&&t.push(e),e.children.forEach(r)};return e.children.forEach(r),t.sort(Zc)}(r.visualElement),l=Ho(Ho([],qo(o)),qo(s)),c=!1;r.isLayoutDrag()&&r.visualElement.lockProjectionTarget(),t(function(){l.forEach(function(e){return e.resetTransform()})}),e(function(){tu(r.visualElement),s.forEach(tu)}),t(function(){l.forEach(function(e){return e.restoreTransform()}),i&&(c=r.snapToCursor(n))}),e(function(){Boolean(r.getAxisMotionValue("x")&&!r.isExternalDrag())||r.visualElement.rebaseProjectionTarget(!0,r.visualElement.measureViewportBox(!1)),r.visualElement.scheduleUpdateLayoutProjection();var e=r.visualElement.projection;Nc(function(t){if(!c){var o=e.target[t],i=o.min,s=o.max;r.cursorProgress[t]=a?a[t]:is(i,s,n[t])}var l=r.getAxisMotionValue(t);l&&(r.originPoint[t]=l.get())})}),t(function(){gl.update(),gl.preRender(),gl.render(),gl.postRender()}),e(function(){return r.resolveDragConstraints()})})},onStart:function(e,t){var n,o,i,a=r.props,s=a.drag,l=a.dragPropagation;(!s||l||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=La(s),r.openGlobalLock))&&(xu(),r.isDragging=!0,r.currentDirection=null,null===(o=(n=r.props).onDragStart)||void 0===o||o.call(n,e,t),null===(i=r.visualElement.animationState)||void 0===i||i.setActive(xa.Drag,!0))},onMove:function(e,t){var n,o,i,a,s=r.props,l=s.dragPropagation,c=s.dragDirectionLock;if(l||r.openGlobalLock){var u=t.offset;if(c&&null===r.currentDirection)return r.currentDirection=function(e,t){void 0===t&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(u),void(null!==r.currentDirection&&(null===(o=(n=r.props).onDirectionLock)||void 0===o||o.call(n,r.currentDirection)));r.updateAxis("x",t.point,u),r.updateAxis("y",t.point,u),null===(a=(i=r.props).onDrag)||void 0===a||a.call(i,e,t),wu=e}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:s})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,r=t.dragConstraints,n=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!r&&(ri(r)?this.resolveRefConstraints(o,r):function(e,t){var r=t.top,n=t.left,o=t.bottom,i=t.right;return{x:$c(e.x,n,i),y:$c(e.y,r,o)}}(o,r)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:Vc(e,"left","right"),y:Vc(e,"top","bottom")}}(n),this.constraints&&!this.hasMutatedConstraints&&Nc(function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(o[t],e.constraints[t]))})},e.prototype.resolveRefConstraints=function(e,t){var r=this.props,n=r.onMeasureDragConstraints,o=r.transformPagePoint,i=t.current;this.constraintsBox=Hc(i,o);var a=function(e,t){return{x:Wc(e.x,t.x),y:Wc(e.y,t.y)}}(e,this.constraintsBox);if(n){var s=n(function(e){var t=e.x,r=e.y;return{top:r.min,bottom:r.max,left:t.min,right:t.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=Ic(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(xa.Drag,!1)},e.prototype.stop=function(e,t){var r,n,o;null===(r=this.panSession)||void 0===r||r.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=t.velocity;this.animateDragEnd(a),null===(o=(n=this.props).onDragEnd)||void 0===o||o.call(n,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return Nc(function(r){if(_u(r,t.props.drag,t.currentDirection)){var n=t.getAxisMotionValue(r);if(!n)return t.cursorProgress[r]=.5,!0;var o=t.visualElement.getLayoutState().layout,i=o[r].max-o[r].min,a=o[r].min+i/2,s=e[r]-a;t.originPoint[r]=e[r],n.set(s)}}).includes(!0)},e.prototype.updateAxis=function(e,t,r){if(_u(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,r):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var r=this.getAxisMotionValue(e);if(t&&r){var n=this.originPoint[e]+t[e],o=this.constraints?Lc(n,this.constraints[e],this.elastic[e]):n;r.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var r,n=this.visualElement.getLayoutState().layout[e],o=n.max-n.min,i=this.cursorProgress[e],a=function(e,t,r,n,o){var i=e-t*r;return n?Lc(i,n,o):i}(t[e],o,i,null===(r=this.constraints)||void 0===r?void 0:r[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+o)},e.prototype.setProps=function(e){var t=e.drag,r=void 0!==t&&t,n=e.dragDirectionLock,o=void 0!==n&&n,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?.35:c,d=e.dragMomentum,f=void 0===d||d,p=Vo(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Wo({drag:r,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,r=t.layout,n=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:r||void 0!==n?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,r=e._dragY;return t||r},e.prototype.animateDragEnd=function(e){var t=this,r=this.props,n=r.drag,o=r.dragMomentum,i=r.dragElastic,a=r.dragTransition,s=function(e,t){void 0===t&&(t=!0);var r,n=e.getProjectionParent();return!!n&&(t?vu(r=nu(n.projection.target,e.projection.target),n.getLatestValues()):r=nu(n.getLayoutState().layout,e.getLayoutState().layout),Nc(function(t){return e.setProjectionTargetAxis(t,r[t].min,r[t].max,!0)}),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),l=this.constraints||{};if(s&&Object.keys(l).length&&this.isLayoutDrag()){var c=this.visualElement.getProjectionParent();if(c){var u=nu(c.projection.targetFinal,l);Nc(function(e){var t=u[e],r=t.min,n=t.max;l[e]={min:isNaN(r)?void 0:r,max:isNaN(n)?void 0:n}})}}var d=Nc(function(r){var c;if(_u(r,n,t.currentDirection)){var u=null!==(c=null==l?void 0:l[r])&&void 0!==c?c:{},d=i?200:1e6,f=i?40:1e7,p=Wo(Wo({type:"inertia",velocity:o?e[r]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.getAxisMotionValue(r)?t.startAxisValueAnimation(r,p):t.visualElement.startLayoutAnimation(r,p,s)}});return Promise.all(d).then(function(){var e,r;null===(r=(e=t.props).onDragTransitionEnd)||void 0===r||r.call(e)})},e.prototype.stopMotion=function(){var e=this;Nc(function(t){var r=e.getAxisMotionValue(t);r?r.stop():e.visualElement.stopLayoutAnimation()})},e.prototype.startAxisValueAnimation=function(e,t){var r=this.getAxisMotionValue(e);if(r){var n=r.get();return r.set(n),r.set(n),ec(e,r,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,r=t.drag;if(ri(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var n={x:0,y:0};Nc(function(t){var r,o,i,a,s;n[t]=(r=e.visualElement.projection.target[t],o=e.constraintsBox[t],i=.5,a=Qc(r),(s=Qc(o))>a?i=is(o.min,o.max-a,r.min):a>s&&(i=is(r.min,r.max-s,o.min)),Ka(0,1,i))}),this.updateConstraints(function(){Nc(function(t){if(_u(t,r,null)){var o=function(e,t,r){var n=e.max-e.min,o=as(t.min,t.max-n,r);return{min:o,max:o+n}}(e.visualElement.projection.target[t],e.constraintsBox[t],n[t]),i=o.min,a=o.max;e.visualElement.setProjectionTargetAxis(t,i,a)}})}),setTimeout(xu,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=yu(function(r,n){var o=eu(t.visualElement);n(function(){return o.forEach(function(e){return e.resetTransform()})}),r(function(){return tu(t.visualElement)}),n(function(){return o.forEach(function(e){return e.restoreTransform()})}),r(function(){t.resolveDragConstraints()}),e&&n(e)})},e.prototype.mount=function(e){var t=this,r=Fa(e.getInstance(),"pointerdown",function(e){var r=t.props,n=r.drag,o=r.dragListener;n&&(void 0===o||o)&&t.start(e)}),n=ka(window,"resize",function(){t.scalePoint()}),o=e.onLayoutUpdate(function(){t.isDragging&&t.resolveDragConstraints()}),i=e.prevDragCursor;return i&&this.start(wu,{cursorProgress:i}),function(){null==r||r(),null==n||n(),null==o||o(),t.cancelDrag()}},e}();function _u(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}var Eu,Au,Tu={pan:Qa(function(t){var r=t.onPan,n=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=r||n||o||i,l=(0,e.useRef)(null),c=(0,e.useContext)(Ko).transformPagePoint,u={onSessionStart:i,onStart:n,onMove:r,onEnd:function(e,t){l.current=null,o&&o(e,t)}};(0,e.useEffect)(function(){null!==l.current&&l.current.updateHandlers(u)}),Ia(a,"pointerdown",s&&function(e){l.current=new Tc(e,u,{transformPagePoint:c})}),qa(function(){return l.current&&l.current.end()})}),drag:Qa(function(t){var r=t.dragControls,n=t.visualElement,o=(0,e.useContext)(Ko).transformPagePoint,i=Mo(function(){return new Cu({visualElement:n})});i.setProps(Wo(Wo({},t),{transformPagePoint:o})),(0,e.useEffect)(function(){return r&&r.subscribe(i)},[i]),(0,e.useEffect)(function(){return i.mount(n)},[])})};function Pu(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(Eu||(Eu={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(Au||(Au={}));var ju=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ru(e,t,r){void 0===r&&(r=1);var n=qo(function(e){var t=ju.exec(e);if(!t)return[,];var r=qo(t,3);return[r[1],r[2]]}(e),2),o=n[0],i=n[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Pu(i)?Ru(i,t,r+1):i}}function Ou(e,t){return e/(t.max-t.min)*100}var Mu="_$css",zu={process:function(e,t,r){var n=r.target;if("string"==typeof e){if(!Ii.test(e))return e;e=parseFloat(e)}return Ou(e,n.x)+"% "+Ou(e,n.y)+"%"}},Fu={borderRadius:Wo(Wo({},zu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:zu,borderTopRightRadius:zu,borderBottomLeftRadius:zu,borderBottomRightRadius:zu,boxShadow:{process:function(e,t){var r=t.delta,n=t.treeScale,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(ju,function(e){return a.push(e),Mu}));var s=Es.parse(e);if(s.length>5)return o;var l=Es.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=as(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(i){var h=0;p=p.replace(Mu,function(){var e=a[h];return h++,e})}return p}}},Iu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,r,n){void 0===n&&(n={});var o=n.originBox,i=n.targetBox,a=n.visibilityAction,s=n.shouldStackAnimate,l=n.onComplete,c=n.prevParent,u=Vo(n,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,f=d.visualElement,p=d.layout;if(!1===s)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===s){s&&(t.isAnimatingTree=!0),r=o||r,e=i||e;var h=!1,m=f.getProjectionParent();if(m){var v=m.prevViewportBox,g=m.getLayoutState().layout;c&&(i&&(g=c.getLayoutState().layout),o&&!function(e,t){var r=e.getLayoutId(),n=t.getLayoutId();return r!==n||void 0===n&&e!==t}(c,m)&&c.prevViewportBox&&(v=c.prevViewportBox)),v&&function(e,t,r){return e||!e&&!(t||r)}(c,o,i)&&(h=!0,r=nu(v,r),e=nu(g,e))}var b=function(e,t){return!(Bu(e)||Bu(t)||Nu(e.x,t.x)&&Nu(e.y,t.y))}(r,e),y=Nc(function(n){var o,i;if("position"===p){var s=e[n].max-e[n].min;r[n].max=r[n].min+s}if(!f.projection.isTargetLocked)return void 0===a?b?t.animateAxis(n,e[n],r[n],Wo(Wo({},u),{isRelative:h})):(null===(i=(o=t.stopAxisAnimation)[n])||void 0===i||i.call(o),f.setProjectionTargetAxis(n,e[n].min,e[n].max,h)):void f.setVisibility(a===Au.Show)});return f.syncRender(),Promise.all(y).then(function(){t.isAnimatingTree=!1,l&&l(),f.notifyLayoutAnimationComplete()})}},t}return $o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=ec,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)hi[t]=e[t]}(Fu)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Nc(function(t){var r,n;return null===(n=(r=e.stopAxisAnimation)[t])||void 0===n?void 0:n.call(r)})},t.prototype.animateAxis=function(e,t,r,n){var o,i,a=this,s=void 0===n?{}:n,l=s.transition,c=s.isRelative;if(!this.isAnimating[e]||!Nu(t,this.currentAnimationTarget[e])){null===(i=(o=this.stopAxisAnimation)[e])||void 0===i||i.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],f=u.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var p=function(){var n=f.get()/1e3;!function(e,t,r,n){e.min=as(t.min,r.min,n),e.max=as(t.max,r.max,n)}(d,r,t,n),u.setProjectionTargetAxis(e,d.min,d.max,c)};p();var h=f.onChange(p);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,f.stop(),h()},this.currentAnimationTarget[e]=t;var m=l||u.getDefaultTransition()||Lu;return ec("x"===e?"layoutX":"layoutY",f,1e3,m&&Jl(m,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(e.Component),Du={min:0,max:0};function Bu(e){return Nu(e.x,Du)&&Nu(e.y,Du)}function Nu(e,t){return e.min===t.min&&e.max===t.max}var Lu={duration:.45,ease:[.4,0,.1,1]},$u={layoutReady:function(e){return e.notifyLayoutReady()}};function Wu(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var r=void 0===t?$u:t,n=r.layoutReady,o=r.parent;yu(function(t,r){var i=Array.from(e).sort(Zc),a=o?eu(o):[];r(function(){Ho(Ho([],qo(a)),qo(i)).forEach(function(e){return e.resetTransform()})}),t(function(){i.forEach(tu)}),r(function(){a.forEach(function(e){return e.restoreTransform()}),i.forEach(n)}),t(function(){i.forEach(function(e){e.isPresent&&(e.presence=Eu.Present)})}),r(function(){gl.preRender(),gl.render()}),t(function(){Sl.postRender(function(){return i.forEach(Vu)}),e.clear()})}),xu()}}}function Vu(e){e.prevViewportBox=e.projection.target}var qu=(0,e.createContext)(Wu()),Hu=(0,e.createContext)(Wu());function Uu(e){return!!e.forceUpdate}var Qu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,r=e.framerSyncLayout,n=e.visualElement;Uu(t)&&t.register(n),Uu(r)&&r.register(n),n.onUnmount(function(){Uu(t)&&t.remove(n),Uu(r)&&r.remove(n)})},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,r=e.visualElement;return Uu(t)?t.syncUpdate():(function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(r),t.add(r)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;Uu(e)||e.flush()},t.prototype.render=function(){return null},t}(t().Component),Gu={measureLayout:function(r){var n=(0,e.useContext)(qu),o=(0,e.useContext)(Hu);return t().createElement(Qu,Wo({},r,{syncLayout:n,framerSyncLayout:o}))},layoutAnimation:function(t){var r=qo(zo(),2)[1];return e.createElement(Iu,Wo({},t,{safeToRemove:r}))}};function Xu(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:Bc(),deltaFinal:Bc(),deltaTransform:""}}var Yu=Xu();function Ku(e,t,r){var n=e.x,o=e.y,i="translate3d("+n.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(r){var a=r.rotate,s=r.rotateX,l=r.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),l&&(i+="rotateY("+l+") ")}return i+="scale("+n.scale+", "+o.scale+")",r||i!==Ju?i:""}function Zu(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Ju=Ku(Yu.delta,Yu.treeScale,{x:1,y:1}),ed=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var td=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){rc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){nc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Zc),this.isDirty=!1,this.children.forEach(e)},e}(),rd=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,f=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var h=e.parent,m=e.props,v=e.presenceId,g=e.blockInitialAnimation,b=e.visualState;void 0===t&&(t={});var y,x,w,S,k,C,_=b.latestValues,E=b.renderState,A=function(){var e=ed.map(function(){return new oc}),t={},r={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){return ed.forEach(function(n){var o;null===(o=t[n])||void 0===o||o.call(t);var i="on"+n,a=e[i];a&&(t[n]=r[i](a))})}};return e.forEach(function(e,t){r["on"+ed[t]]=function(t){return e.add(t)},r["notify"+ed[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,Ho([],qo(t)))}}),r}(),T={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},P=T,j=_,R=Xu(),O=!1,M=new Map,z=new Map,F={},I=Wo({},_);function D(){y&&(U.isProjectionReady()&&(pu(P.targetFinal,P.target,j),Xc(R.deltaFinal,R.layoutCorrected,P.targetFinal,_)),B(),s(y,E))}function B(){var e=_;if(S&&S.isActive()){var r=S.getCrossfadeState(U);r&&(e=r)}n(U,E,e,P,R,t,m)}function N(){A.notifyUpdate(_)}function L(){U.layoutTree.forEach(od)}var $=p(m);for(var W in $){var V=$[W];void 0!==_[W]&&ki(V)&&V.set(_[W],!1)}var q=si(m),H=li(m),U=Wo(Wo({treeType:r,current:null,depth:h?h.depth+1:0,parent:h,children:new Set,path:h?Ho(Ho([],qo(h.path)),[h]):[],layoutTree:h?h.layoutTree:new td,presenceId:v,projection:T,variantChildren:H?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==h?void 0:h.isMounted()),blockInitialAnimation:g,isMounted:function(){return Boolean(y)},mount:function(e){y=U.current=e,U.pointTo(U),H&&h&&!q&&(C=null==h?void 0:h.addVariantChild(U)),null==h||h.children.add(U)},unmount:function(){vl.update(N),vl.render(D),vl.preRender(U.updateLayoutProjection),z.forEach(function(e){return e()}),U.stopLayoutAnimation(),U.layoutTree.remove(U),null==C||C(),null==h||h.children.delete(U),null==w||w(),A.clearAllListeners()},addVariantChild:function(e){var t,r=U.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&r===e.treeType?f(U.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return H?U:null==h?void 0:h.getClosestVariantNode()},scheduleUpdateLayoutProjection:h?h.scheduleUpdateLayoutProjection:function(){return Sl.preRender(U.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return m.layoutId},getInstance:function(){return y},getStaticValue:function(e){return _[e]},setStaticValue:function(e,t){return _[e]=t},getLatestValues:function(){return _},setVisibility:function(e){U.isVisible!==e&&(U.isVisible=e,U.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(U,e,m,t)},addValue:function(e,t){U.hasValue(e)&&U.removeValue(e),M.set(e,t),_[e]=t.get(),function(e,t){var r=t.onChange(function(t){_[e]=t,m.onUpdate&&Sl.update(N,!1,!0)}),n=t.onRenderRequest(U.scheduleRender);z.set(e,function(){r(),n()})}(e,t)},removeValue:function(e){var t;M.delete(e),null===(t=z.get(e))||void 0===t||t(),z.delete(e),delete _[e],d(e,E)},hasValue:function(e){return M.has(e)},getValue:function(e,t){var r=M.get(e);return void 0===r&&void 0!==t&&(r=ac(t),U.addValue(e,r)),r},forEachValue:function(e){return M.forEach(e)},readValue:function(e){var r;return null!==(r=_[e])&&void 0!==r?r:l(y,e,t)},setBaseTarget:function(e,t){I[e]=t},getBaseTarget:function(e){if(o){var t=o(m,e);if(void 0!==t&&!ki(t))return t}return I[e]}},A),{build:function(){return B(),E},scheduleRender:function(){Sl.render(D,!1,!0)},syncRender:D,setProps:function(e){m=e,A.updatePropListeners(e),F=function(e,t,r){var n;for(var o in t){var i=t[o],a=r[o];if(ki(i))e.addValue(o,i);else if(ki(a))e.addValue(o,ac(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,ac(null!==(n=e.getStaticValue(o))&&void 0!==n?n:i))}for(var o in r)void 0===t[o]&&e.removeValue(o);return t}(U,p(m),F)},getProps:function(){return m},getVariant:function(e){var t;return null===(t=m.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return m.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==h?void 0:h.getVariantContext();if(!q){var t=(null==h?void 0:h.getVariantContext())||{};return void 0!==m.initial&&(t.initial=m.initial),t}for(var r={},n=0;n<sd;n++){var o=ad[n],i=m[o];(oi(i)||!1===i)&&(r[o]=i)}return r},enableLayoutProjection:function(){T.isEnabled=!0,U.layoutTree.add(U)},lockProjectionTarget:function(){T.isTargetLocked=!0},unlockProjectionTarget:function(){U.stopLayoutAnimation(),T.isTargetLocked=!1},getLayoutState:function(){return R},setCrossfader:function(e){S=e},isProjectionReady:function(){return T.isEnabled&&T.isHydrated&&R.isHydrated},startLayoutAnimation:function(e,t,r){void 0===r&&(r=!1);var n=U.getProjectionAnimationProgress()[e],o=r?T.relativeTarget[e]:T.target[e],i=o.min,a=o.max-i;return n.clearListeners(),n.set(i),n.set(i),n.onChange(function(t){U.setProjectionTargetAxis(e,t,t+a,r)}),U.animateMotionValue(e,n,0,t)},stopLayoutAnimation:function(){Nc(function(e){return U.getProjectionAnimationProgress()[e].stop()})},measureViewportBox:function(e){void 0===e&&(e=!0);var r=a(y,t);return e||vu(r,_),r},getProjectionAnimationProgress:function(){return k||(k={x:ac(0),y:ac(0)}),k},setProjectionTargetAxis:function(e,t,r,n){var o;void 0===n&&(n=!1),n?(T.relativeTarget||(T.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=T.relativeTarget[e]):(T.relativeTarget=void 0,o=T.target[e]),T.isHydrated=!0,o.min=t,o.max=r,O=!0,A.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=R.layout);var r=U.getProjectionAnimationProgress(),n=r.x,o=r.y,i=!(T.relativeTarget||T.isTargetLocked||n.isAnimating()||o.isAnimating());(e||i)&&Nc(function(e){var r=t[e],n=r.min,o=r.max;U.setProjectionTargetAxis(e,n,o)})},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var r=nu(t.getLayoutState().layout,e.getLayoutState().layout);Nc(function(t){e.setProjectionTargetAxis(t,r[t].min,r[t].max,!0)})}else e.rebaseProjectionTarget()}(U),U.notifyLayoutUpdate(R.layout,U.prevViewportBox||R.layout,e)},resetTransform:function(){return c(U,y,m)},restoreTransform:function(){return u(y,E)},updateLayoutProjection:function(){if(U.isProjectionReady()){var e=R.delta,t=R.treeScale,r=t.x,n=t.y,o=R.deltaTransform;(function(e,t,r,n){var o,i,a=e.delta,s=e.layout,l=e.layoutCorrected,c=e.treeScale,u=t.target;i=s,iu((o=l).x,i.x),iu(o.y,i.y),function(e,t,r){var n=r.length;if(n){var o,i;t.x=t.y=1;for(var a=0;a<n;a++)i=(o=r[a]).getLayoutState().delta,t.x*=i.x.scale,t.y*=i.y.scale,cu(e,i),ou(o)&&pu(e,e,o.getLatestValues())}}(l,c,r),Xc(a,l,u,n)})(R,P,U.path,_),O&&U.notifyViewportBoxUpdate(P.target,e),O=!1;var i=Ku(e,t);i===o&&r===t.x&&n===t.y||U.scheduleRender(),R.deltaTransform=i}},updateTreeLayoutProjection:function(){U.layoutTree.forEach(nd),Sl.preRender(L,!1,!0)},getProjectionParent:function(){if(void 0===x){for(var e=!1,t=U.path.length-1;t>=0;t--){var r=U.path[t];if(r.projection.isEnabled){e=r;break}}x=e}return x},resolveRelativeTargetBox:function(){var e=U.getProjectionParent();if(T.relativeTarget&&e&&(function(e,t){Kc(e.target.x,e.relativeTarget.x,t.target.x),Kc(e.target.y,e.relativeTarget.y,t.target.y)}(T,e.projection),ou(e))){var t=T.target;pu(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(m._layoutResetTransform)},pointTo:function(e){P=e.projection,j=e.getLatestValues(),null==w||w(),w=Ua(e.onSetAxisTarget(U.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete(function(){var e;U.isPresent?U.presence=Eu.Present:null===(e=U.layoutSafeToRemove)||void 0===e||e.call(U)}))},isPresent:!0,presence:Eu.Entering});return U}};function nd(e){e.resolveRelativeTargetBox()}function od(e){e.updateLayoutProjection()}var id,ad=Ho(["initial"],qo(bc)),sd=ad.length,ld=new Set(["width","height","top","left","right","bottom","x","y"]),cd=function(e){return ld.has(e)},ud=function(e,t){e.set(t,!1),e.set(t)},dd=function(e){return e===Li||e===Ii};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(id||(id={}));var fd=function(e,t){return parseFloat(e.split(", ")[t])},pd=function(e,t){return function(r,n){var o=n.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return fd(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?fd(a[1],e):0}},hd=new Set(["x","y","z"]),md=vi.filter(function(e){return!hd.has(e)}),vd={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:pd(4,13),y:pd(5,14)};function gd(e,t,r,n){return function(e){return Object.keys(e).some(cd)}(t)?function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=Wo({},t),n=Wo({},n);var o=Object.keys(t).filter(cd),i=[],a=!1,s=[];if(o.forEach(function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=r[o],d=t[o],f=cc(u);if(ha(d))for(var p=d.length,h=null===d[0]?1:0;h<p;h++)c?Ya(cc(d[h])):(c=cc(d[h]),Ya(c===f||dd(f)&&dd(c)));else c=cc(d);if(f!==c)if(dd(f)&&dd(c)){var m=l.get();"string"==typeof m&&l.set(parseFloat(m)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&c===Ii&&(t[o]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==c?void 0:c.transform)&&(0===u||0===d)?0===u?l.set(c.transform(u)):t[o]=f.transform(d):(a||(i=function(e){var t=[];return md.forEach(function(r){var n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),n[o]=void 0!==n[o]?n[o]:t[o],ud(l,d))}}),s.length){var l=function(e,t,r){var n=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var l=t.measureViewportBox();return r.forEach(function(r){var o=t.getValue(r);ud(o,vd[r](n,s)),e[r]=vd[r](l,i)}),e}(t,e,s);return i.length&&i.forEach(function(t){var r=qo(t,2),n=r[0],o=r[1];e.getValue(n).set(o)}),e.syncRender(),{target:l,transitionEnd:n}}return{target:t,transitionEnd:n}}(e,t,r,n):{target:t,transitionEnd:n}}var bd={treeType:"dom",readValueFromInstance:function(e,t){if(yi(t)){var r=Gl(t);return r&&r.default||0}var n,o=(n=e,window.getComputedStyle(n));return(_i(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return Hc(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var o=r.transformValues;void 0===n&&(n=!0);var i=t.transition,a=t.transitionEnd,s=Vo(t,["transition","transitionEnd"]),l=function(e,t,r){var n,o,i={};for(var a in e)i[a]=null!==(n=pc(a,t))&&void 0!==n?n:null===(o=r.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),n){!function(e,t,r){var n,o,i,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(n=r[u])&&void 0!==n?n:e.readValue(u))&&void 0!==o?o:t[u]),null!=f&&("string"==typeof f&&tc(f)?f=parseFloat(f):!dc(f)&&Es.test(d)&&(f=Xl(u,d)),e.addValue(u,ac(f)),null!==(i=(a=r)[u])&&void 0!==i||(a[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=function(e,t,r,n){var o=function(e,t,r){var n,o=Vo(t,[]),i=e.getInstance();if(!(i instanceof HTMLElement))return{target:o,transitionEnd:r};for(var a in r&&(r=Wo({},r)),e.forEachValue(function(e){var t=e.get();if(Pu(t)){var r=Ru(t,i);r&&e.set(r)}}),o){var s=o[a];if(Pu(s)){var l=Ru(s,i);l&&(o[a]=l,r&&(null!==(n=r[a])&&void 0!==n||(r[a]=s)))}}return{target:o,transitionEnd:r}}(e,t,n);return gd(e,t=o.target,r,n=o.transitionEnd)}(e,s,l,a);a=c.transitionEnd,s=c.target}return Wo({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:da,build:function(e,t,r,n,o,i,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=n.isEnabled&&o.isHydrated;Hi(t,r,n,o,i,a.transformTemplate,s?Ku:void 0,s?Zu:void 0)},render:la},yd=rd(bd),xd=rd(Wo(Wo({},bd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return yi(t)?(null===(r=Gl(t))||void 0===r?void 0:r.default)||0:(t=ca.has(t)?t:sa(t),e.getAttribute(t))},scrapeMotionValuesFromProps:fa,build:function(e,t,r,n,o,i,a){var s=n.isEnabled&&o.isHydrated;ra(t,r,n,o,i,a.transformTemplate,s?Ku:void 0,s?Zu:void 0)},render:ua})),wd=function(e,t){return pi(e)?xd(t,{enableHardwareAcceleration:!1}):yd(t,{enableHardwareAcceleration:!0})},Sd=Wo(Wo(Wo(Wo({},kc),Ga),Tu),Gu),kd=di(function(e,t){return function(e,t,r,n){var o=t.forwardMotionProps,i=void 0!==o&&o,a=pi(e)?wa:Sa;return Wo(Wo({},a),{preloadedFeatures:r,useRender:ia(i),createVisualElement:n,Component:e})}(e,t,Sd,wd)}),Cd={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},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]}}},_d=(0,e.memo)(t=>{const{id:r,message:n,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:l="bottom",duration:c=5e3,containerStyle:u,motionVariants:d=Cd,toastSpacing:f="0.5rem"}=t,[p,h]=(0,e.useState)(c),v=Fo();Ro(()=>{v||null==o||o()},[v]),Ro(()=>{h(c)},[c]);const g=()=>{v&&i()};(0,e.useEffect)(()=>{v&&a&&i()},[v,a,i]),function(t,r){const n=jo(t);(0,e.useEffect)(()=>{if(null==r)return;let e=null;return e=window.setTimeout(()=>{n()},r),()=>{e&&window.clearTimeout(e)}},[r,n])}(g,p);const b=(0,e.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:f,...u}),[u,f]),y=(0,e.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}}(l),[l]);return(0,m.jsx)(kd.div,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>h(null),onHoverEnd:()=>h(c),custom:{position:l},style:y,children:(0,m.jsx)(Kr.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:s(n,{id:r,onClose:g})})})});function Ed(e,t){var r;const n=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"}}[n];return null!=(r=null==o?void 0:o[t])?r:n}function Ad(e){return(0,m.jsx)(So,{viewBox:"0 0 24 24",...e,children:(0,m.jsx)("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"})})}_d.displayName="ToastComponent";var[Td,Pd]=mn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[jd,Rd]=mn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Od={info:{icon:function(e){return(0,m.jsx)(So,{viewBox:"0 0 24 24",...e,children:(0,m.jsx)("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:Ad,colorScheme:"orange"},success:{icon:function(e){return(0,m.jsx)(So,{viewBox:"0 0 24 24",...e,children:(0,m.jsx)("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:Ad,colorScheme:"red"},loading:{icon:dn,colorScheme:"blue"}},Md=Ye(function(e,t){var r;const{status:n="info",addRole:o=!0,...a}=jr(e),s=null!=(r=e.colorScheme)?r:function(e){return Od[e].colorScheme}(n),l=cn("Alert",{...e,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,m.jsx)(Td,{value:{status:n},children:(0,m.jsx)(jd,{value:l,children:(0,m.jsx)(Kr.div,{"data-status":n,role:o?"alert":void 0,ref:t,...a,className:i("chakra-alert",e.className),__css:c})})})});function zd(e){const{status:t}=Pd(),r=function(e){return Od[e].icon}(t),n=Rd(),o="loading"===t?n.spinner:n.icon;return(0,m.jsx)(Kr.span,{display:"inherit","data-status":t,...e,className:i("chakra-alert__icon",e.className),__css:o,children:e.children||(0,m.jsx)(r,{h:"100%",w:"100%"})})}Md.displayName="Alert",zd.displayName="AlertIcon";var Fd=Ye(function(e,t){const r=Rd(),{status:n}=Pd();return(0,m.jsx)(Kr.div,{ref:t,"data-status":n,...e,className:i("chakra-alert__title",e.className),__css:r.title})});Fd.displayName="AlertTitle";var Id=Ye(function(e,t){const r=Rd(),{status:n}=Pd(),o={display:"inline",...r.description};return(0,m.jsx)(Kr.div,{ref:t,"data-status":n,...e,className:i("chakra-alert__desc",e.className),__css:o})});function Dd(e){return(0,m.jsx)(So,{focusable:"false","aria-hidden":!0,...e,children:(0,m.jsx)("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"})})}Id.displayName="AlertDescription";var Bd=Ye(function(e,t){const r=ln("CloseButton",e),{children:n,isDisabled:o,__css:i,...a}=jr(e);return(0,m.jsx)(Kr.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...i},...a,children:n||(0,m.jsx)(Dd,{width:"1em",height:"1em"})})});Bd.displayName="CloseButton";var Nd=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n(()=>e),r.delete(t)}),removeToast:(e,t)=>{n(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{const r=function(e,t={}){var r,n;Ld+=1;const o=null!=(r=t.id)?r:Ld,i=null!=(n=t.position)?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Nd.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=r;return n(e=>{var t,n;const i=o.includes("top")?[r,...null!=(t=e[o])?t:[]]:[...null!=(n=e[o])?n:[],r];return{...e,[o]:i}}),i},update:(e,t)=>{e&&n(r=>{const n={...r},{position:o,index:i}=Ao(n,e);return o&&-1!==i&&(n[o][i]={...n[o][i],...t,message:Wd(t)}),n})},closeAll:({positions:e}={})=>{n(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{n(t=>{const r=To(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>Boolean(Ao(Nd.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),Ld=0,$d=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,m.jsxs)(Md,{addRole:!1,status:t,variant:r,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,m.jsx)(zd,{children:c}),(0,m.jsxs)(Kr.div,{flex:"1",maxWidth:"100%",children:[o&&(0,m.jsx)(Fd,{id:null==u?void 0:u.title,children:o}),s&&(0,m.jsx)(Id,{id:null==u?void 0:u.description,display:"block",children:s})]}),i&&(0,m.jsx)(Bd,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Wd(e={}){const{render:t,toastComponent:r=$d}=e;return n=>"function"==typeof t?t({...n,...e}):(0,m.jsx)(r,{...n,...e})}var Vd=0;function qd(){var e=Vd;return Vd++,e}var Hd=function(t){var r=t.children,n=t.initial,o=t.isPresent,i=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=Mo(Ud),c=Mo(qd),u=(0,e.useMemo)(function(){return{id:c,initial:n,isPresent:o,custom:a,onExitComplete:function(e){l.set(e,!0);var t=!0;l.forEach(function(e){e||(t=!1)}),t&&(null==i||i())},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}},s?void 0:[o]);return(0,e.useMemo)(function(){l.forEach(function(e,t){return l.set(t,!1)})},[o]),e.useEffect(function(){!o&&!l.size&&(null==i||i())},[o]),e.createElement(Oo.Provider,{value:u},r)};function Ud(){return new Map}function Qd(e){return e.key||""}var Gd=function(t){var r=t.children,n=t.custom,o=t.initial,i=void 0===o||o,a=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,c=void 0===l||l,u=function(){var t=(0,e.useRef)(!1),r=qo((0,e.useState)(0),2),n=r[0],o=r[1];return qa(function(){return t.current=!0}),(0,e.useCallback)(function(){!t.current&&o(n+1)},[n])}(),d=(0,e.useContext)(qu);Uu(d)&&(u=d.forceUpdate);var f=(0,e.useRef)(!0),p=function(t){var r=[];return e.Children.forEach(t,function(t){(0,e.isValidElement)(t)&&r.push(t)}),r}(r),h=(0,e.useRef)(p),m=(0,e.useRef)(new Map).current,v=(0,e.useRef)(new Set).current;if(function(e,t){e.forEach(function(e){var r=Qd(e);t.set(r,e)})}(p,m),f.current)return f.current=!1,e.createElement(e.Fragment,null,p.map(function(t){return e.createElement(Hd,{key:Qd(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:c},t)}));for(var g=Ho([],qo(p)),b=h.current.map(Qd),y=p.map(Qd),x=b.length,w=0;w<x;w++){var S=b[w];-1===y.indexOf(S)?v.add(S):v.delete(S)}return s&&v.size&&(g=[]),v.forEach(function(t){if(-1===y.indexOf(t)){var r=m.get(t);if(r){var o=b.indexOf(t);g.splice(o,0,e.createElement(Hd,{key:Qd(r),isPresent:!1,onExitComplete:function(){m.delete(t),v.delete(t);var e=h.current.findIndex(function(e){return e.key===t});h.current.splice(e,1),v.size||(h.current=p,u(),a&&a())},custom:n,presenceAffectsLayout:c},r))}}}),g=g.map(function(t){var r=t.key;return v.has(r)?t:e.createElement(Hd,{key:Qd(t),isPresent:!0,presenceAffectsLayout:c},t)}),h.current=g,e.createElement(e.Fragment,null,v.size?g:g.map(function(t){return(0,e.cloneElement)(t)}))},[Xd,Yd]=mn({strict:!1,name:"PortalManagerContext"});function Kd(e){const{children:t,zIndex:r}=e;return(0,m.jsx)(Xd,{value:{zIndex:r},children:t})}Kd.displayName="PortalManager";var Zd=r(5795),[Jd,ef]=mn({strict:!1,name:"PortalContext"}),tf="chakra-portal",rf=e=>(0,m.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),nf=t=>{const{appendToParentPortal:r,children:n}=t,[o,i]=(0,e.useState)(null),a=(0,e.useRef)(null),[,s]=(0,e.useState)({});(0,e.useEffect)(()=>s({}),[]);const l=ef(),c=Yd();h(()=>{if(!o)return;const e=o.ownerDocument,t=r&&null!=l?l:e.body;if(!t)return;a.current=e.createElement("div"),a.current.className=tf,t.appendChild(a.current),s({});const n=a.current;return()=>{t.contains(n)&&t.removeChild(n)}},[o]);const u=(null==c?void 0:c.zIndex)?(0,m.jsx)(rf,{zIndex:null==c?void 0:c.zIndex,children:n}):n;return a.current?(0,Zd.createPortal)((0,m.jsx)(Jd,{value:a.current,children:u}),a.current):(0,m.jsx)("span",{ref:e=>{e&&i(e)}})},of=t=>{const{children:r,containerRef:n,appendToParentPortal:o}=t,i=n.current,a=null!=i?i:"undefined"!=typeof window?document.body:void 0,s=(0,e.useMemo)(()=>{const e=null==i?void 0:i.ownerDocument.createElement("div");return e&&(e.className=tf),e},[i]),[,l]=(0,e.useState)({});return h(()=>l({}),[]),h(()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s?(0,Zd.createPortal)((0,m.jsx)(Jd,{value:o?s:null,children:r}),s):null};function af(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,m.jsx)(of,{containerRef:r,...n}):(0,m.jsx)(nf,{...n})}af.className=tf,af.selector=".chakra-portal",af.displayName="Portal";var[sf,lf]=mn({name:"ToastOptionsContext",strict:!1}),cf=t=>{const r=(0,e.useSyncExternalStore)(Nd.subscribe,Nd.getState,Nd.getState),{motionVariants:n,component:o=_d,portalProps:i}=t,a=Object.keys(r).map(e=>{const t=r[e];return(0,m.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:Po(e),children:(0,m.jsx)(Gd,{initial:!1,children:t.map(e=>(0,m.jsx)(o,{motionVariants:n,...e},e.id))})},e)});return(0,m.jsx)(af,{...i,children:a})};function uf(t){const{theme:r}=on(),n=lf();return(0,e.useMemo)(()=>function(e,t){const r=r=>{var n;return{...t,...r,position:Ed(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{const t=r(e),n=Wd(t);return Nd.notify(n,t)};return n.update=(e,t)=>{Nd.update(e,r(t))},n.promise=(e,t)=>{const r=n({...t.loading,status:"loading",duration:null});e.then(e=>n.update(r,{status:"success",duration:5e3,...s(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...s(t.error,e)}))},n.closeAll=Nd.closeAll,n.close=Nd.close,n.isActive=Nd.isActive,n}(r.direction,{...n,...t}),[t,r.direction,n])}var df=Ye(function(e,t){const{templateAreas:r,gap:n,rowGap:o,columnGap:i,column:a,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:f,...p}=e,h={display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:o,gridColumnGap:i,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:f};return(0,m.jsx)(Kr.div,{ref:t,__css:h,...p})});df.displayName="Grid";var ff=Ye(function(e,t){const{columns:r,spacingX:n,spacingY:o,spacing:i,minChildWidth:a,...s}=e,l=Ge(),c=a?function(e,t){return p(e,e=>{const r=function(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return r=>{const i=o.filter(Boolean),a=n.map((t,n)=>{var o,a;return"breakpoints"===e?function(e,t,r){var n,o;if(null==t)return t;const i=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(o=null!=(n=i(t))?n:i(r))?o:r}(r,t,null!=(o=i[n])?o:t):function(e,t,r){var n,o;if(null==t)return t;const i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(o=null!=(n=i(t))?n:i(r))?o:r}(r,`${e}.${t}`,null!=(a=i[n])?a:t)});return Array.isArray(t)?a:a[0]}}("sizes",e,"number"==typeof(n=e)?`${n}px`:n)(t);var n;return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}(a,l):p(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,m.jsx)(df,{ref:t,gap:i,columnGap:n,rowGap:o,templateColumns:c,...s})});ff.displayName="SimpleGrid";var pf=Kr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});pf.displayName="Center";var hf={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},mf=(Ye(function(e,t){const{axis:r="both",...n}=e;return(0,m.jsx)(Kr.div,{ref:t,__css:hf[r],...n,position:"absolute"})}),Ye(function(e,t){const{htmlWidth:r,htmlHeight:n,alt:o,...i}=e;return(0,m.jsx)("img",{width:r,height:n,ref:t,alt:o,...i})}));function vf(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}mf.displayName="NativeImage";var gf=Ye(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:c,ignoreFallback:u,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...v}=t,g=null!=c||u||!(void 0!==n||void 0!==o),b=function(t){const{loading:r,src:n,srcSet:o,onLoad:i,onError:a,crossOrigin:s,sizes:l,ignoreFallback:c}=t,[u,d]=(0,e.useState)("pending");(0,e.useEffect)(()=>{d(n?"loading":"pending")},[n]);const f=(0,e.useRef)(),p=(0,e.useCallback)(()=>{if(!n)return;m();const e=new Image;e.src=n,s&&(e.crossOrigin=s),o&&(e.srcset=o),l&&(e.sizes=l),r&&(e.loading=r),e.onload=e=>{m(),d("loaded"),null==i||i(e)},e.onerror=e=>{m(),d("failed"),null==a||a(e)},f.current=e},[n,s,o,l,i,a,r]),m=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return h(()=>{if(!c)return"loading"===u&&p(),()=>{m()}},[u,p,c]),c?"loaded":u}({...t,crossOrigin:d,ignoreFallback:g}),y=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(b,f),x={ref:r,objectFit:l,objectPosition:s,...g?v:vf(v,["onError","onLoad"])};return y?o||(0,m.jsx)(Kr.img,{as:mf,className:"chakra-image__placeholder",src:n,...x}):(0,m.jsx)(Kr.img,{as:mf,src:i,srcSet:a,crossOrigin:d,loading:c,referrerPolicy:p,className:"chakra-image",...x})});gf.displayName="Image";var bf=Object.defineProperty,yf=new class{constructor(){((e,t,r)=>{((e,t,r)=>{t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r)})(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function xf(t,r){const[n,o]=(0,e.useState)(0);return(0,e.useEffect)(()=>{const e=t.current;if(e){if(r){const t=yf.add(e);o(t)}return()=>{yf.remove(e),o(0)}}},[r,t]),n}var wf=new WeakMap,Sf=new WeakMap,kf={},Cf=0,_f=function(e){return e&&(e.host||_f(e.parentNode))},Ef=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=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?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=_f(t);return r&&e.contains(r)?r:(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]);kf[r]||(kf[r]=new WeakMap);var i=kf[r],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(n),o=null!==t&&"false"!==t,l=(wf.get(e)||0)+1,c=(i.get(e)||0)+1;wf.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Sf.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),Cf++,function(){a.forEach(function(e){var t=wf.get(e)-1,o=i.get(e)-1;wf.set(e,t),i.set(e,o),t||(Sf.has(e)||e.removeAttribute(n),Sf.delete(e)),o||e.removeAttribute(r)}),--Cf||(wf=new WeakMap,wf=new WeakMap,Sf=new WeakMap,kf={})}}(n,o,r,"aria-hidden")):function(){return null}};function Af(t){const{isOpen:r,onClose:n,id:o,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:l,onEsc:c}=t,u=(0,e.useRef)(null),f=(0,e.useRef)(null),[p,h,m]=function(t,...r){const n=(0,e.useId)(),o=t||n;return(0,e.useMemo)(()=>r.map(e=>`${e}-${o}`),[o,r])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,r){const n=t.current;(0,e.useEffect)(()=>{if(t.current&&r)return Ef(t.current)},[r,t,n])}(u,r&&s);const v=xf(u,r),g=(0,e.useRef)(null),b=(0,e.useCallback)(e=>{g.current=e.target},[]),y=(0,e.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==n||n()),null==c||c())},[a,n,c]),[x,w]=(0,e.useState)(!1),[S,k]=(0,e.useState)(!1),C=(0,e.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:En(t,u),id:p,tabIndex:-1,"aria-modal":!0,"aria-labelledby":x?h:void 0,"aria-describedby":S?m:void 0,onClick:d(e.onClick,e=>e.stopPropagation())}),[m,S,p,h,x]),_=(0,e.useCallback)(e=>{e.stopPropagation(),g.current===e.target&&yf.isTopModal(u.current)&&(i&&(null==n||n()),null==l||l())},[n,i,l]),E=(0,e.useCallback)((e={},t=null)=>({...e,ref:En(t,f),onClick:d(e.onClick,_),onKeyDown:d(e.onKeyDown,y),onMouseDown:d(e.onMouseDown,b)}),[y,b,_]);return{isOpen:r,onClose:n,headerId:h,bodyId:m,setBodyMounted:k,setHeaderMounted:w,dialogRef:u,overlayRef:f,getDialogProps:C,getDialogContainerProps:E,index:v}}var[Tf,Pf]=mn({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[jf,Rf]=mn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Of=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,onCloseComplete:h}=t,v=cn("Modal",t),g={...Af(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return(0,m.jsx)(jf,{value:g,children:(0,m.jsx)(Tf,{value:v,children:(0,m.jsx)(Gd,{onExitComplete:h,children:g.isOpen&&(0,m.jsx)(af,{...r,children:n})})})})};Of.displayName="Modal";var Mf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},zf={enter:{duration:.2,ease:Mf.easeOut},exit:{duration:.1,ease:Mf.easeIn}},Ff=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),If=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),Df={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:Ff(zf.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:If(zf.exit,r),transitionEnd:null==t?void 0:t.exit}}},Bf={initial:"exit",animate:"enter",exit:"exit",variants:Df},Nf=(0,e.forwardRef)(function(e,t){const{unmountOnExit:r,in:n,className:o,transition:a,transitionEnd:s,delay:l,...c}=e,u=n||r?"enter":"exit",d=!r||n&&r,f={transition:a,transitionEnd:s,delay:l};return(0,m.jsx)(Gd,{custom:f,children:d&&(0,m.jsx)(kd.div,{ref:t,className:i("chakra-fade",o),custom:f,...Bf,animate:u,...c})})});Nf.displayName="Fade";var Lf=Kr(kd.div),$f=Ye((e,t)=>{const{className:r,transition:n,motionProps:o,...a}=e,s=i("chakra-modal__overlay",r),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Pf().overlay},{motionPreset:c}=Rf(),u=o||("none"===c?{}:Bf);return(0,m.jsx)(Lf,{...u,__css:l,ref:t,className:s,...a})});$f.displayName="ModalOverlay";var Wf={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:null!=(i=null==r?void 0:r.exit)?i:If(zf.exit,o),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:Ff(zf.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:i})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==r?void 0:r.exit)?a:If(zf.exit,i),...o?{...s,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...s,...null==n?void 0:n.exit}}}}},Vf={initial:"initial",animate:"enter",exit:"exit",variants:Wf},qf=(0,e.forwardRef)(function(e,t){const{unmountOnExit:r,in:n,reverse:o=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:u,delay:d,...f}=e,p=!r||n&&r,h=n||r?"enter":"exit",v={offsetX:s,offsetY:l,reverse:o,transition:c,transitionEnd:u,delay:d};return(0,m.jsx)(Gd,{custom:v,children:p&&(0,m.jsx)(kd.div,{ref:t,className:i("chakra-offset-slide",a),custom:v,...Vf,animate:h,...f})})});qf.displayName="SlideFade";var Hf={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(i=null==r?void 0:r.exit)?i:If(zf.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:Ff(zf.enter,r),transitionEnd:null==e?void 0:e.enter}}},Uf={initial:"exit",animate:"enter",exit:"exit",variants:Hf},Qf=(0,e.forwardRef)(function(e,t){const{unmountOnExit:r,in:n,reverse:o=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:u,...d}=e,f=!r||n&&r,p=n||r?"enter":"exit",h={initialScale:a,reverse:o,transition:l,transitionEnd:c,delay:u};return(0,m.jsx)(Gd,{custom:h,children:f&&(0,m.jsx)(kd.div,{ref:t,className:i("chakra-offset-slide",s),...Uf,animate:p,custom:h,...d})})});Qf.displayName="ScaleFade";var Gf={slideInBottom:{...Vf,custom:{offsetY:16,reverse:!0}},slideInRight:{...Vf,custom:{offsetX:16,reverse:!0}},slideInTop:{...Vf,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Vf,custom:{offsetX:-16,reverse:!0}},scale:{...Uf,custom:{initialScale:.95,reverse:!0}},none:{}},Xf=Kr(kd.section),Yf=e=>Gf[e||"none"],Kf=(0,e.forwardRef)((e,t)=>{const{preset:r,motionProps:n=Yf(r),...o}=e;return(0,m.jsx)(Xf,{ref:t,...n,...o})});Kf.displayName="ModalTransition";var Zf="data-focus-lock",Jf="data-focus-lock-disabled";function ep(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tp="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,rp=new WeakMap;function np(t,r){var n,o,i,a=(n=r||null,o=function(e){return t.forEach(function(t){return ep(t,e)})},(i=(0,e.useState)(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return tp(function(){var e=rp.get(a);if(e){var r=new Set(e),n=new Set(t),o=a.current;r.forEach(function(e){n.has(e)||ep(e,null)}),n.forEach(function(e){r.has(e)||ep(e,o)})}rp.set(a,t)},[t]),a}var op={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function ip(e){return e}function ap(e,t){void 0===t&&(t=ip);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return o}function sp(e,t){return void 0===t&&(t=ip),ap(e,t)}function lp(e){void 0===e&&(e={});var t=ap(null);return t.options=Wo({async:!0,ssr:!1},e),t}var cp=sp({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),up=sp(),dp=sp(),fp=lp({async:!0,ssr:"undefined"!=typeof document}),pp=(0,e.createContext)(void 0),hp=[],mp=(0,e.forwardRef)(function(r,n){var o,i=(0,e.useState)(),a=i[0],s=i[1],l=(0,e.useRef)(),c=(0,e.useRef)(!1),u=(0,e.useRef)(null),d=(0,e.useState)({})[1],f=r.children,p=r.disabled,h=void 0!==p&&p,m=r.noFocusGuards,v=void 0!==m&&m,g=r.persistentFocus,b=void 0!==g&&g,y=r.crossFrame,x=void 0===y||y,w=r.autoFocus,S=void 0===w||w,k=(r.allowTextSelection,r.group),C=r.className,_=r.whiteList,E=r.hasPositiveIndices,A=r.shards,T=void 0===A?hp:A,P=r.as,j=void 0===P?"div":P,R=r.lockProps,O=void 0===R?{}:R,M=r.sideCar,z=r.returnFocus,F=void 0!==z&&z,I=r.focusOptions,D=r.onActivation,B=r.onDeactivation,N=(0,e.useState)({})[0],L=(0,e.useCallback)(function(e){var t=e.captureFocusRestore;if(!u.current){var r,n=null==(r=document)?void 0:r.activeElement;u.current=n,n!==document.body&&(u.current=t(n))}l.current&&D&&D(l.current),c.current=!0,d()},[D]),$=(0,e.useCallback)(function(){c.current=!1,B&&B(l.current),d()},[B]),W=(0,e.useCallback)(function(e){var t=u.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof F?F(r):F;if(n){var o="object"==typeof n?n:void 0;u.current=null,e?Promise.resolve().then(function(){return r.focus(o)}):r.focus(o)}}},[F]),V=(0,e.useCallback)(function(e){c.current&&cp.useMedium(e)},[]),q=up.useMedium,H=(0,e.useCallback)(function(e){l.current!==e&&(l.current=e,s(e))},[]),U=ye(((o={})[Jf]=h&&"disabled",o[Zf]=k,o),O),Q=!0!==v,G=Q&&"tail"!==v,X=np([n,H]),Y=(0,e.useMemo)(function(){return{observed:l,shards:T,enabled:!h,get active(){return c.current}}},[h,c,T,l]);return t().createElement(e.Fragment,null,Q&&[t().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:op}),E?t().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:op}):null],!h&&t().createElement(M,{id:N,sideCar:fp,observed:a,disabled:h,persistentFocus:b,crossFrame:x,autoFocus:S,whiteList:_,shards:T,onActivation:L,onDeactivation:$,returnFocus:W,focusOptions:I,noFocusGuards:v}),t().createElement(j,ye({ref:X},U,{className:C,onBlur:q,onFocus:V}),t().createElement(pp.Provider,{value:Y},f)),G&&t().createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:op}))});mp.propTypes={};const vp=mp;function gp(e,t){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gp(e,t)}function bp(e){return bp="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},bp(e)}var yp=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},xp=function(e){return Array.isArray(e)?e:[e]},wp=function(e){return Array.isArray(e)?e[0]:e},Sp=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},kp=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Cp=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!e||kp(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(Sp(e))}(t,Cp.bind(void 0,e));return e.set(t,n),n},_p=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!(e&&!kp(e))||!!Pp(e)&&t(Sp(e))}(t,_p.bind(void 0,e));return e.set(t,n),n},Ep=function(e){return e.dataset},Ap=function(e){return"INPUT"===e.tagName},Tp=function(e){return Ap(e)&&"radio"===e.type},Pp=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},jp=function(e){var t;return Boolean(e&&(null===(t=Ep(e))||void 0===t?void 0:t.focusGuard))},Rp=function(e){return!jp(e)},Op=function(e){return Boolean(e)},Mp=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),o=r-n,i=e.index-t.index;if(o){if(!r)return 1;if(!n)return-1}return o||i},zp=function(e,t,r){return yp(e).map(function(e,t){var n=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:r&&-1===n?(e.dataset||{}).focusGuard?0:-1:n}}).filter(function(e){return!t||e.tabIndex>=0}).sort(Mp)},Fp=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Ip="".concat(Fp,", [data-focus-guard]"),Dp=function(e,t){return yp((e.shadowRoot||e).children).reduce(function(e,r){return e.concat(r.matches(t?Ip:Fp)?[r]:[],Dp(r))},[])},Bp=function(e,t){return e.reduce(function(e,r){var n,o=Dp(r,t),i=(n=[]).concat.apply(n,o.map(function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?Bp([e.contentDocument.body],t):[e]}(e,t)}));return e.concat(i,r.parentNode?yp(r.parentNode.querySelectorAll(Fp)).filter(function(e){return e===r}):[])},[])},Np=function(e,t){return yp(e).filter(function(e){return Cp(t,e)}).filter(function(e){return function(e){return!((Ap(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)})},Lp=function(e,t){return void 0===t&&(t=new Map),yp(e).filter(function(e){return _p(t,e)})},$p=function(e,t,r){return zp(Np(Bp(e,r),t),!0,r)},Wp=function(e,t){return zp(Np(Bp(e),t),!1)},Vp=function(e,t){return e.shadowRoot?Vp(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||yp(e.children).some(function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&Vp(n,t)}return Vp(e,t)})},qp=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?qp(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?qp(t.contentWindow.document):t}},Hp=function(e){return e.parentNode?Hp(e.parentNode):e},Up=function(e){return xp(e).filter(Boolean).reduce(function(e,t){var r=t.getAttribute(Zf);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var i=e[n].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(e,r){return!t.has(r)})}(yp(Hp(t).querySelectorAll("[".concat(Zf,'="').concat(r,'"]:not([').concat(Jf,'="disabled"])')))):[t]),e},[])},Qp=function(e,t){return void 0===t&&(t=qp(wp(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&Up(e).some(function(e){return Vp(e,t)||function(e,t){return Boolean(yp(e.querySelectorAll("iframe")).some(function(e){return function(e,t){return e===t}(e,t)}))}(e,t)})},Gp=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Xp=function(e,t){return Tp(e)&&e.name?function(e,t){return t.filter(Tp).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e}(e,t):e},Yp=function(e){return e[0]&&e.length>1?Xp(e[0],e):e[0]},Kp=function(e,t){return e.indexOf(Xp(t,e))},Zp="NEW_FOCUS",Jp=function(e,t,r){var n,o=e.map(function(e){return e.node}),i=Lp(o.filter((n=r,function(e){var t,r=null===(t=Ep(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return i&&i.length?Yp(i):Yp(Lp(t))},eh=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&eh(e.parentNode.host||e.parentNode,t),t},th=function(e,t){for(var r=eh(e),n=eh(t),o=0;o<r.length;o+=1){var i=r[o];if(n.indexOf(i)>=0)return i}return!1},rh=function(e,t,r){var n=xp(e),o=xp(t),i=n[0],a=!1;return o.filter(Boolean).forEach(function(e){a=th(a||e,e)||a,r.filter(Boolean).forEach(function(e){var t=th(i,e);t&&(a=!a||Vp(t,a)?t:th(t,a))})}),a},nh=function(e,t){return e.reduce(function(e,r){return e.concat(function(e,t){return Np((r=e.querySelectorAll("[".concat("data-autofocus-inside","]")),yp(r).map(function(e){return Bp([e])}).reduce(function(e,t){return e.concat(t)},[])),t);var r}(r,t))},[])},oh=function(e,t){var r=qp(xp(e).length>0?document:wp(e).ownerDocument),n=Up(e).filter(Rp),o=rh(r||e,e,n),i=new Map,a=Wp(n,i),s=a.filter(function(e){var t=e.node;return Rp(t)});if(s[0]){var l,c,u,d=Wp([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(Op)),p=f.map(function(e){return e.node}),h=f.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),m=function(e,t,r,n,o){var i=e.length,a=e[0],s=e[i-1],l=jp(n);if(!(n&&e.indexOf(n)>=0)){var c=void 0!==n?r.indexOf(n):-1,u=o?r.indexOf(o):c,d=o?e.indexOf(o):-1;if(-1===c)return-1!==d?d:Zp;if(-1===d)return Zp;var f,p,h=c-u,m=r.indexOf(a),v=r.indexOf(s),g=(f=r,p=new Set,f.forEach(function(e){return p.add(Xp(e,f))}),f.filter(function(e){return p.has(e)})),b=void 0!==n?g.indexOf(n):-1,y=o?g.indexOf(o):b,x=g.filter(function(e){return e.tabIndex>=0}),w=void 0!==n?x.indexOf(n):-1,S=o?x.indexOf(o):w,k=w>=0&&S>=0?S-w:y-b;if(!h&&d>=0)return d;if(0===t.length)return d;var C=Kp(e,t[0]),_=Kp(e,t[t.length-1]);return c<=m&&l&&Math.abs(h)>1?_:c>=v&&l&&Math.abs(h)>1?C:h&&Math.abs(k)>1?d:c<=m?_:c>v?C:h?Math.abs(h)>1?d:(i+d+h)%i:void 0}}(p,h,d,r,t);if(m===Zp){var v=Jp(a,h,nh(n,i))||Jp(a,p,nh(n,i));return v?{node:v}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:f[m]}},ih=0,ah=!1,sh=function(e,t,r){void 0===r&&(r={});var n=oh(e,t);if(!ah&&n){if(ih>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"),ah=!0,void setTimeout(function(){ah=!1},1);ih++,Gp(n.node,r.focusOptions),ih--}};function lh(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 ch=function(e){var t=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:lh(r),parent:lh(r.parentElement),left:lh(r.previousElementSibling),right:lh(r.nextElementSibling)}),r=r.parentElement;return{element:lh(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,r,n,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 p=null===(r=d.left)||void 0===r?void 0:r.call(d),h=d.current(),m=f.contains(h)?h:void 0,v=null===(n=d.right)||void 0===n?void 0:n.call(d),g=$p([f],l),b=null!==(i=null!==(o=null!=m?m:null==p?void 0:p.nextElementSibling)&&void 0!==o?o:v)&&void 0!==i?i:p;b;){for(var y=0,x=g;y<x.length;y++){var w=x[y];if(null==b?void 0:b.contains(w.node))return w.node}b=b.nextElementSibling}if(g.length)return g[0].node}}}(t)}},uh=function(e,t,r){void 0===t&&(t={});var n=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=xp(t);if(n.every(function(t){return!Vp(t,e)}))return console.error("Active element is not contained in the scope"),{};var o=r?$p(n,new Map):Wp(n,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,n.scope,n.onlyTabbable);if(o){var i=r(o,n.cycle);i&&Gp(i.node,n.focusOptions)}},dh=function(e,t,r){var n,o,i,a,s=(o=e,i=null===(n=t.onlyTabbable)||void 0===n||n,{first:(a=i?$p(xp(o),new Map):Wp(xp(o),new Map))[0],last:a[a.length-1]})[r];s&&Gp(s.node,t.focusOptions)};function fh(e){setTimeout(e,1)}var ph=function(e){return e&&"current"in e?e.current:e},hh=function(){return document&&document.activeElement===document.body},mh=null,vh=null,gh=function(){return null},bh=null,yh=!1,xh=!1,wh=function(){return!0};function Sh(e,t,r,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=r)!==t);o&&(o.node.tabIndex=0)}var kh=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Ch=function(e){return Wp(e,new Map)},_h=function(){var e,t,r,n,o,i,a=!1;if(mh){var s=mh,l=s.observed,c=s.persistentFocus,u=s.autoFocus,d=s.shards,f=s.crossFrame,p=s.focusOptions,h=s.noFocusGuards,m=l||bh&&bh.portaledElement;if(hh()&&vh&&vh!==document.body&&(!document.body.contains(vh)||function(e){return!Ch([e.parentNode]).some(function(t){return t.node===e})}(vh))){var v=gh();v&&v.focus()}var g=document&&document.activeElement;if(m){var b=[m].concat(d.map(ph).filter(Boolean));if(g&&!function(e){return(mh.whiteList||wh)(e)}(g)||(c||function(){if(!(f?Boolean(yh):"meanwhile"===yh)||!h||!vh||xh)return!1;var e=Ch(b),t=e.findIndex(function(e){return e.node===vh});return 0===t||t===e.length-1}()||!(hh()||function(e){void 0===e&&(e=document);var t=qp(e);return!!t&&yp(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Vp(e,t)})}())||!vh&&u)&&(m&&!(Qp(b)||g&&function(e,t){return t.some(function(t){return kh(e,t,t)})}(g,b)||(i=g,bh&&bh.portaledElement===i))&&(document&&!vh&&g&&!u?(g.blur&&g.blur(),document.body.focus()):(a=sh(b,vh,{focusOptions:p}),bh={})),(vh=document&&document.activeElement)!==document.body&&(gh=ch(vh)),yh=!1),document&&g!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,x=(t=Up(e=b).filter(Rp),r=rh(e,e,t),n=zp(Bp([r],!0),!0,!0),o=Bp(t,!1),n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:jp(t)}})),w=x.map(function(e){return e.node}).indexOf(y);w>-1&&(x.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),Sh(w,x.length,1,x),Sh(w,-1,-1,x))}}}return a},Eh=function(e){_h()&&e&&(e.stopPropagation(),e.preventDefault())},Ah=function(){return fh(_h)},Th=function(){xh=!0},Ph=function(){xh=!1,yh="just",fh(function(){yh="meanwhile"})},jh={moveFocusInside:sh,focusInside:Qp,focusNextElement:function(e,t){void 0===t&&(t={}),uh(e,t,function(e,t){var r=e.next,n=e.first;return r||t&&n})},focusPrevElement:function(e,t){void 0===t&&(t={}),uh(e,t,function(e,t){var r=e.prev,n=e.last;return r||t&&n})},focusFirstElement:function(e,t){void 0===t&&(t={}),dh(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),dh(e,t,"last")},captureFocusRestore:ch};cp.assignSyncMedium(function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(bh={observerNode:r,portaledElement:t})}),up.assignMedium(Ah),dp.assignMedium(function(e){return e(jh)});const Rh=(Oh=function(e){return e.filter(function(e){return!e.disabled})},Mh=function(e){var t=e.slice(-1)[0];t&&!mh&&(document.addEventListener("focusin",Eh),document.addEventListener("focusout",Ah),window.addEventListener("focus",Th),window.addEventListener("blur",Ph));var r=mh,n=r&&t&&t.id===r.id;mh=t,r&&!n&&(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(vh=null,n&&r.observed===t.observed||t.onActivation(jh),_h(),fh(_h)):(document.removeEventListener("focusin",Eh),document.removeEventListener("focusout",Ah),window.removeEventListener("focus",Th),window.removeEventListener("blur",Ph),vh=null)},function(r){var n,o=[];function i(){n=Oh(o.map(function(e){return e.props})),Mh(n)}var a=function(e){function a(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gp(e,t)}(a,e),a.peek=function(){return n};var s=a.prototype;return s.componentDidMount=function(){o.push(this),i()},s.componentDidUpdate=function(){i()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},s.render=function(){return t().createElement(r,this.props)},a}(e.PureComponent);return function(e,t,r){(t=function(e){var t=function(e){if("object"!=bp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=bp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a})(function(){return null});var Oh,Mh,zh=(0,e.forwardRef)(function(e,r){return t().createElement(vp,ye({sideCar:Rh,ref:r},e))}),Fh=vp.propTypes||{};Fh.sideCar,function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}}(Fh,["sideCar"]),zh.propTypes={};const Ih=zh;function Dh(e){return!(!e.parentElement||!Dh(e.parentElement))||e.hidden}function Bh(e){if(!function(e){var t;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}(e)||Dh(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 r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||(e=>e.hasAttribute("tabindex"))(e)}var Nh,Lh=["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();var $h=null!=(Nh=Ih.default)?Nh:Ih,Wh=t=>{const{initialFocusRef:r,finalFocusRef:n,contentRef:o,restoreFocus:i,children:a,isDisabled:s,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:u}=t,d=(0,e.useCallback)(()=>{(null==r?void 0:r.current)?r.current.focus():(null==o?void 0:o.current)&&0===function(e){const t=Array.from(e.querySelectorAll(Lh));return t.unshift(e),t.filter(e=>Bh(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e))}(o.current).length&&requestAnimationFrame(()=>{var e;null==(e=o.current)||e.focus()})},[r,o]),f=(0,e.useCallback)(()=>{var e;null==(e=null==n?void 0:n.current)||e.focus()},[n]),p=i&&!n;return(0,m.jsx)($h,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p,children:a})};Wh.displayName="FocusLock";var Vh="right-scroll-bar-position",qh="width-before-scroll-bar",Hh=lp(),Uh=function(){},Qh=e.forwardRef(function(t,r){var n=e.useRef(null),o=e.useState({onScrollCapture:Uh,onWheelCapture:Uh,onTouchMoveCapture:Uh}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,h=t.noRelative,m=t.noIsolation,v=t.inert,g=t.allowPinchZoom,b=t.as,y=void 0===b?"div":b,x=t.gapMode,w=Vo(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,k=np([n,r]),C=Wo(Wo({},w),i);return e.createElement(e.Fragment,null,d&&e.createElement(S,{sideCar:Hh,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:x}),s?e.cloneElement(e.Children.only(l),Wo(Wo({},C),{ref:k})):e.createElement(y,Wo({},C,{className:c,ref:k}),l))});Qh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qh.classNames={fullWidth:qh,zeroRight:Vh};var Gh=function(t){var r=t.sideCar,n=Vo(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Wo({},n))};Gh.isSideCarExport=!0;var Xh=function(){var e=0,t=null;return{add:function(n){var o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yh=function(){var t,r=(t=Xh(),function(r,n){e.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&n])});return function(e){var t=e.styles,n=e.dynamic;return r(t,n),null}},Kh={left:0,top:0,right:0,gap:0},Zh=function(e){return parseInt(e||"",10)||0},Jh=Yh(),em="data-scroll-locked",tm=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(em,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\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(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Vh," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(qh," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(Vh," .").concat(Vh," {\n right: 0 ").concat(n,";\n }\n \n .").concat(qh," .").concat(qh," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(em,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},rm=function(){var e=parseInt(document.body.getAttribute(em)||"0",10);return isFinite(e)?e:0},nm=function(t){var r=t.noRelative,n=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(em,(rm()+1).toString()),function(){var e=rm()-1;e<=0?document.body.removeAttribute(em):document.body.setAttribute(em,e.toString())}},[]);var a=e.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Kh;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Zh(r),Zh(n),Zh(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}}(i)},[i]);return e.createElement(Jh,{styles:tm(a,!r,i,n?"":"!important")})},om=!1;if("undefined"!=typeof window)try{var im=Object.defineProperty({},"passive",{get:function(){return om=!0,!0}});window.addEventListener("test",im,im),window.removeEventListener("test",im,im)}catch(e){om=!1}var am=!!om&&{passive:!1},sm=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},lm=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),cm(e,n)){var o=um(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},cm=function(e,t){return"v"===e?function(e){return sm(e,"overflowY")}(t):function(e){return sm(e,"overflowX")}(t)},um=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},dm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fm=function(e){return[e.deltaX,e.deltaY]},pm=function(e){return e&&"current"in e?e.current:e},hm=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},mm=0,vm=[];function gm(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bm=(ym=function(t){var r=e.useRef([]),n=e.useRef([0,0]),o=e.useRef(),i=e.useState(mm++)[0],a=e.useState(Yh)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=Ho([t.lockRef.current],(t.shards||[]).map(pm),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=dm(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[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(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=lm(d,u);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=lm(d,u)),!h)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var m=o.current||r;return function(e,t,r,n){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,s=t.contains(a),l=!1,c=i>0,u=0,d=0;do{if(!a)break;var f=um(e,a),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&cm(e,a)&&(u+=h,d+=p);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=e.useCallback(function(e){var t=e;if(vm.length&&vm[vm.length-1]===a){var n="deltaY"in t?fm(t):dm(t),o=r.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta,o=n,r[0]===o[0]&&r[1]===o[1]);var r,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(pm).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,n,o){var i={name:e,delta:t,target:n,should:o,shadowParent:gm(n)};r.current.push(i),setTimeout(function(){r.current=r.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){n.current=dm(e),o.current=void 0},[]),f=e.useCallback(function(e){u(e.type,fm(e),e.target,l(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,dm(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return vm.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,am),document.addEventListener("touchmove",c,am),document.addEventListener("touchstart",d,am),function(){vm=vm.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,am),document.removeEventListener("touchmove",c,am),document.removeEventListener("touchstart",d,am)}},[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(a,{styles:hm(i)}):null,h?e.createElement(nm,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Hh.useMedium(ym),Gh);var ym,xm=e.forwardRef(function(t,r){return e.createElement(Qh,Wo({},t,{ref:r,sideCar:bm}))});xm.classNames=Qh.classNames;const wm=xm;function Sm(t){const{autoFocus:r,trapFocus:n,dialogRef:o,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=Rf(),[p,h]=zo();(0,e.useEffect)(()=>{!p&&h&&setTimeout(h)},[p,h]);const v=xf(o,f);return(0,m.jsx)(Wh,{autoFocus:r,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:o,lockFocusAcrossFrames:d,children:(0,m.jsx)(wm,{removeScrollBar:!u,allowPinchZoom:s,enabled:1===v&&a,forwardProps:!0,children:t.children})})}var km=Ye((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:a,...s}=e,{getDialogProps:l,getDialogContainerProps:c}=Rf(),u=l(s,t),d=c(o),f=i("chakra-modal__content",r),p=Pf(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},v={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:g}=Rf();return(0,m.jsx)(Sm,{children:(0,m.jsx)(Kr.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:(0,m.jsx)(Kf,{preset:g,motionProps:a,className:f,...u,__css:h,children:n})})})});km.displayName="ModalContent";var Cm=Ye((t,r)=>{const{className:n,...o}=t,{headerId:a,setHeaderMounted:s}=Rf();(0,e.useEffect)(()=>(s(!0),()=>s(!1)),[s]);const l=i("chakra-modal__header",n),c={flex:0,...Pf().header};return(0,m.jsx)(Kr.header,{ref:r,className:l,id:a,...o,__css:c})});Cm.displayName="ModalHeader";var _m=Ye((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:a}=Rf(),s=i("chakra-modal__close-btn",n),l=Pf();return(0,m.jsx)(Bd,{ref:t,__css:l.closeButton,className:s,onClick:d(r,e=>{e.stopPropagation(),a()}),...o})});_m.displayName="ModalCloseButton";var Em=Ye((t,r)=>{const{className:n,...o}=t,{bodyId:a,setBodyMounted:s}=Rf();(0,e.useEffect)(()=>(s(!0),()=>s(!1)),[s]);const l=i("chakra-modal__body",n),c=Pf();return(0,m.jsx)(Kr.div,{ref:r,className:l,id:a,...o,__css:c.body})});Em.displayName="ModalBody";var Am=Ye((e,t)=>{const{className:r,...n}=e,o=i("chakra-modal__footer",r),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...Pf().footer};return(0,m.jsx)(Kr.footer,{ref:t,...n,__css:a,className:o})});Am.displayName="ModalFooter";const Tm=window.wp.apiFetch;var Pm=r.n(Tm),jm=Ye(function(e,t){const{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:o,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:c,...u}=ln("Divider",e),{className:d,orientation:f="horizontal",__css:p,...h}=jr(e),v={vertical:{borderLeftWidth:r||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:n||o||s||"1px",width:"100%"}};return(0,m.jsx)(Kr.hr,{ref:t,"aria-orientation":f,...h,__css:{...u,border:"0",borderColor:c,borderStyle:l,...v[f],...p},className:i("chakra-divider",d)})});jm.displayName="Divider";var[Rm,Om]=mn({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),Mm=Ye((e,t)=>{const r=cn("Table",e),{className:n,layout:o,...a}=jr(e);return(0,m.jsx)(Rm,{value:r,children:(0,m.jsx)(Kr.table,{ref:t,__css:{tableLayout:o,...r.table},className:i("chakra-table",n),...a})})});Mm.displayName="Table";var zm=Ye((e,t)=>{const r=Om();return(0,m.jsx)(Kr.tbody,{...e,ref:t,__css:r.tbody})}),Fm=Ye((e,t)=>{const r=Om();return(0,m.jsx)(Kr.tr,{...e,ref:t,__css:r.tr})}),Im=Ye(({isNumeric:e,...t},r)=>{const n=Om();return(0,m.jsx)(Kr.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})});function Dm(t){const{viewBox:r="0 0 24 24",d:n,displayName:o,defaultProps:i={}}=t,a=e.Children.toArray(t.path),s=Ye((e,t)=>(0,m.jsx)(So,{ref:t,viewBox:r,...i,...e,children:a.length?a:(0,m.jsx)("path",{fill:"currentColor",d:n})}));return s.displayName=o,s}const Bm=Dm({displayName:"CheckCircleIcon",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"}),Nm=Dm({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",displayName:"WarningIcon"}),{security:Lm}=ur_templates_script,$m=({requiredPlugins:t,onActivateAndContinue:r})=>{const[n,i]=(0,e.useState)({}),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[f,p]=(0,e.useState)(""),h=uf();(0,e.useEffect)(()=>{(async()=>{try{const e=await Pm()({path:"user-registration/v1/plugin/status",method:"GET",headers:{"X-WP-Nonce":Lm}});if(e?.success&&e?.plugin_status)return i(e.plugin_status),void v(e.plugin_status);h({title:(0,o.__)("Error","user-registration"),description:(0,o.__)("Invalid response format.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}catch(e){h({title:(0,o.__)("Error","user-registration"),description:e?.message||(0,o.__)("Unable to check plugin status.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}})()},[h,t]);const v=e=>{const r=t.every(t=>"active"===e[t.key]),n=t.some(t=>"not-installed"===e[t.key]),i=t.some(t=>"inactive"===e[t.key]);r?(p((0,o.__)("Continue","user-registration")),d(!0)):n?(p((0,o.__)("Install & Activate","user-registration")),d(!1)):i?(p((0,o.__)("Activate and Continue","user-registration")),d(!1)):(p((0,o.__)("Continue","user-registration")),d(!1))};return(0,m.jsxs)(Dn,{spacing:4,align:"stretch",children:[t?.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(jm,{color:"gray.200",mb:0}),(0,m.jsx)(Nn,{my:0,fontSize:16,color:"gray.700",children:"This form template requires the following addons:"}),(0,m.jsx)(fn,{borderWidth:"1px",borderRadius:"md",overflow:"hidden",w:"100%",children:(0,m.jsx)(Mm,{variant:"simple",children:(0,m.jsx)(zm,{children:t.map(e=>(0,m.jsxs)(Fm,{children:[(0,m.jsx)(Im,{children:e.value}),(0,m.jsx)(Im,{textAlign:"right",children:"active"===n[e.key]?(0,m.jsx)(So,{as:Bm,color:"green"}):"inactive"===n[e.key]||"not-installed"===n[e.key]?(0,m.jsx)(So,{as:Nm,color:"yellow"}):(0,m.jsx)(dn,{size:"sm"})})]},e.key))})})})]}),f&&(0,m.jsx)(no,{marginLeft:"auto",onClick:async()=>{if(u)r();else{const e=t.some(e=>"not-installed"===n[e.key]);if(t.some(e=>"inactive"===n[e.key])||e){s(!0),c(!0);let e="",r="",a="";for(const s of t)try{const t=await Pm()({path:"user-registration/v1/plugin/activate",method:"POST",body:JSON.stringify({addonData:{name:s.value,slug:s.key,type:(n[s.key],"addon")}}),headers:{"Content-Type":"application/json","X-WP-Nonce":Lm}});t.success?(i(e=>({...e,[s.key]:"active"})),e=t.message||(0,o.__)("Plugin activated successfully.","user-registration"),r=(0,o.__)("Success","user-registration"),a="success"):(i(e=>({...e,[s.key]:"error"})),e=t.message||(0,o.sprintf)((0,o.__)("Failed to activate plugin: %s.","user-registration"),s.value),r=(0,o.__)("Error","user-registration"),a="error")}catch(t){i(e=>({...e,[s.key]:"error"})),e=t.message||(0,o.sprintf)((0,o.__)("Unable to activate %s.","user-registration"),s.value),r=(0,o.__)("Error","user-registration"),a="error"}s(!1),c(!1),d(!0),p("Continue"),h({title:r,description:e,status:a,position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}else r()}},size:"md",isLoading:a,isDisabled:l,style:{backgroundColor:"#475BB2",color:"#FFFFFF"},children:f})]})};function Wm(e){return ho({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}function Vm(e){return ho({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"},child:[]}]})(e)}var qm=e.createContext(void 0),Hm=t=>{const r=e.useContext(qm);if(t)return t;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Um=({client:t,children:r})=>(e.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,m.jsx)(qm.Provider,{value:t,children:r})),Qm={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Gm=new class{#e=Qm;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Xm=function(e){setTimeout(e,0)},Ym=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=Xm;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),Km="undefined"==typeof window||"Deno"in globalThis;function Zm(){}function Jm(e){return"number"==typeof e&&e>=0&&e!==1/0}function ev(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tv(e,t){return"function"==typeof e?e(t):e}function rv(e,t){return"function"==typeof e?e(t):e}function nv(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==iv(a,t.options))return!1}else if(!sv(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function ov(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(av(t.options.mutationKey)!==av(i))return!1}else if(!sv(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function iv(e,t){return(t?.queryKeyHashFn||av)(e)}function av(e){return JSON.stringify(e,(e,t)=>fv(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function sv(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>sv(e[r],t[r]))}var lv=Object.prototype.hasOwnProperty;function cv(e,t){if(e===t)return e;const r=dv(e)&&dv(t);if(!(r||fv(e)&&fv(t)))return t;const n=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),i=o.length,a=r?new Array(i):{};let s=0;for(let l=0;l<i;l++){const i=r?l:o[l],c=e[i],u=t[i];if(c===u){a[i]=c,(r?l<n:lv.call(e,i))&&s++;continue}if(null===c||null===u||"object"!=typeof c||"object"!=typeof u){a[i]=u;continue}const d=cv(c,u);a[i]=d,d===c&&s++}return n===i&&s===n?e:a}function uv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function dv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fv(e){if(!pv(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!pv(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function pv(e){return"[object Object]"===Object.prototype.toString.call(e)}function hv(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?cv(e,t):t}function mv(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function vv(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var gv=Symbol();function bv(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==gv?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function yv(e,t){return"function"==typeof e?e(...t):!!e}var xv=class{#r;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jm(this.gcTime)&&(this.#r=Gm.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Km?1/0:3e5))}clearGcTimeout(){this.#r&&(Gm.clearTimeout(this.#r),this.#r=void 0)}},wv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sv=new class extends wv{#n;#o;#i;constructor(){super(),this.#i=e=>{if(!Km&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#o||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(e){this.#i=e,this.#o?.(),this.#o=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#n?this.#n:"hidden"!==globalThis.document?.visibilityState}},kv=new class extends wv{#a=!0;#o;#i;constructor(){super(),this.#i=e=>{if(!Km&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#o||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(e){this.#i=e,this.#o?.(),this.#o=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}};function Cv(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function _v(e){return Math.min(1e3*2**e,3e4)}function Ev(e){return"online"!==(e??"online")||kv.isOnline()}var Av=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Tv(e){let t,r=!1,n=0;const o=Cv(),i=()=>"pending"!==o.status,a=()=>Sv.isFocused()&&("always"===e.networkMode||kv.isOnline())&&e.canRun(),s=()=>Ev(e.networkMode)&&e.canRun(),l=e=>{i()||(t?.(),o.resolve(e))},c=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(i()||a())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),d=()=>{if(i())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(i())return;const o=e.retry??(Km?0:3),s=e.retryDelay??_v,l="function"==typeof s?s(n,t):s,f=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);var p;!r&&f?(n++,e.onFail?.(n,t),(p=l,new Promise(e=>{Gm.setTimeout(e,p)})).then(()=>a()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const r=new Av(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var Pv=class extends xv{#s;#l;#c;#u;constructor(e){super(),this.#s=e.client,this.mutationId=e.mutationId,this.#c=e.mutationCache,this.#l=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#l.includes(e)||(this.#l.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#l=this.#l.filter(t=>t!==e),this.scheduleGc(),this.#c.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#l.length||("pending"===this.state.status?this.scheduleGc():this.#c.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#d({type:"continue"})},r={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#u=Tv({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#c.canRun(this)});const n="pending"===this.state.status,o=!this.#u.canStart();try{if(n)t();else{this.#d({type:"pending",variables:e,isPaused:o}),await(this.#c.config.onMutate?.(e,this,r));const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:o})}const i=await this.#u.start();return await(this.#c.config.onSuccess?.(i,e,this.state.context,this,r)),await(this.options.onSuccess?.(i,e,this.state.context,r)),await(this.#c.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(i,null,e,this.state.context,r)),this.#d({type:"success",data:i}),i}catch(t){try{await(this.#c.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#c.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#d({type:"error",error:t}),t}finally{this.#c.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Ym.batch(()=>{this.#l.forEach(t=>{t.onMutationUpdate(e)}),this.#c.notify({mutation:this,type:"updated",action:e})})}},jv=class extends wv{#s;#f=void 0;#p;#h;constructor(e,t){super(),this.#s=e,this.setOptions(t),this.bindMethods(),this.#m()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#s.defaultMutationOptions(e),uv(this.options,t)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&av(t.mutationKey)!==av(this.options.mutationKey)?this.reset():"pending"===this.#p?.state.status&&this.#p.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#m(),this.#v(e)}getCurrentResult(){return this.#f}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#m(),this.#v()}mutate(e,t){return this.#h=t,this.#p?.removeObserver(this),this.#p=this.#s.getMutationCache().build(this.#s,this.options),this.#p.addObserver(this),this.#p.execute(e)}#m(){const e=this.#p?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#f={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#v(e){Ym.batch(()=>{if(this.#h&&this.hasListeners()){const t=this.#f.variables,r=this.#f.context,n={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#h.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#h.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{this.#h.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#h.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#f)})})}};function Rv(e){return ho({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 6.5a9.77 9.77 0 0 1 8.82 5.5c-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12A9.77 9.77 0 0 1 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5z"},child:[]}]})(e)}const{security:Ov,siteURL:Mv}=ur_templates_script,zv=e=>(0,m.jsx)(So,{viewBox:"0 0 24 24",...e,children:(0,m.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 54 54",children:[(0,m.jsx)("rect",{width:"54",height:"54",fill:"#FA5252",rx:"27"}),(0,m.jsx)("path",{fill:"#fff",d:"M34 22.334h-1.166v-1.167A5.84 5.84 0 0 0 27 15.334a5.84 5.84 0 0 0-5.833 5.833v1.167H20a2.333 2.333 0 0 0-2.333 2.333v11.667A2.333 2.333 0 0 0 20 38.667h14a2.333 2.333 0 0 0 2.334-2.333V24.667A2.333 2.333 0 0 0 34 22.334Zm-10.5-1.167c0-1.93 1.57-3.5 3.5-3.5s3.5 1.57 3.5 3.5v1.167h-7v-1.167Zm4.667 10.177v2.657h-2.333v-2.657a2.323 2.323 0 0 1-.484-3.66 2.333 2.333 0 0 1 3.984 1.65c0 .861-.473 1.605-1.167 2.01Z"})]})}),Fv=({selectedCategory:t,templates:r})=>{const[n,i]=(0,e.useState)(null),[a,s]=(0,e.useState)(""),[l,c]=(0,e.useState)([]),[u,d]=(0,e.useState)(""),[f,p]=(0,e.useState)(""),{isOpen:h,onOpen:v,onClose:g}=function(t={}){const{onClose:r,onOpen:n,isOpen:o,id:i}=t,a=_o(n),s=_o(r),[l,c]=(0,e.useState)(t.defaultIsOpen||!1),[u,d]=function(e,t){const r=void 0!==e;return[r,r&&void 0!==e?e:t]}(o,l),f=function(t,r){const n=(0,e.useId)();return(0,e.useMemo)(()=>t||[r,n].filter(Boolean).join("-"),[t,r,n])}(i,"disclosure"),p=(0,e.useCallback)(()=>{u||c(!1),null==s||s()},[u,s]),h=(0,e.useCallback)(()=>{u||c(!0),null==a||a()},[u,a]),m=(0,e.useCallback)(()=>{(d?p:h)()},[d,h,p]);return{isOpen:!!d,onOpen:h,onClose:p,onToggle:m,isControlled:u,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":f,onClick:Lr(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:f})}}(),[b,y]=(0,e.useState)(null),[x,w]=(0,e.useState)([]),S=uf(),k=Hm(),[C,_]=(0,e.useState)(!1),[E,A]=(0,e.useState)(!1);(0,e.useEffect)(()=>{(async()=>{try{const e=await Pm()({path:"user-registration/v1/form-templates/favorite_forms",method:"GET",headers:{"X-WP-Nonce":Ov}});if(e&&e.success){let t=Object.keys(e.favorites).map(t=>e.favorites[t]);w(t)}}catch(e){console.error("Error fetching favorites:",e)}})(),(async()=>{try{const e=await Pm()({path:"user-registration/v1/plugin/get_plan",method:"GET",headers:{"X-WP-Nonce":Ov}});e.license_plan&&(c(!0),d(e.license_plan))}catch(e){}})()},[]);const T=function(t){const r=Hm(void 0),[n]=e.useState(()=>new jv(r,t));e.useEffect(()=>{n.setOptions(t)},[n,t]);const o=e.useSyncExternalStore(e.useCallback(e=>n.subscribe(Ym.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=e.useCallback((e,t)=>{n.mutate(e,t).catch(Zm)},[n]);if(o.error&&yv(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}({mutationFn:async e=>{const t=x.includes(e)?x.filter(t=>t!==e):[...x,e];return w(t),await Pm()({path:"user-registration/v1/form-templates/favorite",method:"POST",body:JSON.stringify({action:t.includes(e)?"add_favorite":"remove_favorite",slug:e}),headers:{"Content-Type":"application/json","X-WP-Nonce":Ov}}),t},onError:e=>{S({title:(0,o.__)("Error","user-registration"),description:(0,o.__)("An error occurred while updating favorites.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})},onSuccess:e=>{k.invalidateQueries(["templates"]),w(e),k.invalidateQueries(["favorites"])}}),P=e=>{const t=e.split("/"),r=t.pop();return"blank.png"===r?e:[...t,`user-registration-${r}`].join("/")},j=(n?.addons?Object.entries(n.addons).map(([e,t])=>({key:e,value:t})):[]).map(e=>({key:e.key,value:e.value}));return(0,m.jsxs)(fn,{children:[(0,m.jsx)(Kn,{as:"h3",fontSize:"18px",lineHeight:"26px",fontWeight:"semibold",m:"0px 0px 32px",color:"#26262E",borderBottom:"1px solid #e1e1e1",paddingBottom:"20px",mb:"30px !important",children:t.toUpperCase()}),r?.length?(0,m.jsx)(ff,{columns:{base:1,md:2,lg:2,xl:3,"2xl":4},spacing:6,children:r.map(e=>(0,m.jsxs)(fn,{borderWidth:"2px",borderRadius:"8px",borderColor:"#F6F4FA",overflow:"hidden",position:"relative",onMouseOver:()=>y(e.id),onMouseLeave:()=>y(null),textAlign:"center",bg:"white",p:0,transition:"all .3s",_hover:{boxShadow:"0px 5px 24px rgba(58, 34, 93, 0.12)","::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"207px",bg:"rgba(0, 0, 0, 0.4)",zIndex:1},"& > div > .template-title":{color:"#475bb2"}},children:[(0,m.jsx)(pf,{mb:0,height:"207px",children:(0,m.jsxs)(fn,{position:"relative",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",bg:"#ECECF6",borderRadius:"4px 4px 0px 0px",overflow:"hidden",transition:"all .3s",children:[(0,m.jsx)(gf,{boxShadow:"blank"==e.slug?"none":"0px 3px 12px rgba(58, 34, 93, 0.12)",src:P(e.imageUrl),alt:e.title,objectFit:"contain",height:"100%"}),e.isPro?l?(0,m.jsx)(Ln,{bg:"#4BCE61",color:"white",position:"absolute",bottom:"12px",right:"12px",borderRadius:"4px",fontSize:"12px",p:"2px 6px",textTransform:"capitalize",zIndex:"2",fontWeight:"500",children:e.plan?.[0]||(0,o.__)("Pro","user-registration")}):(0,m.jsx)(Ln,{bg:"#4BCE61",color:"white",position:"absolute",bottom:"12px",right:"12px",borderRadius:"4px",fontSize:"12px",p:"2px 6px",textTransform:"capitalize",zIndex:"2",fontWeight:"500",children:(0,o.__)("Pro","user-registration")}):null,b===e.id&&(0,m.jsxs)(Dn,{spacing:4,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,children:[(0,m.jsx)(no,{borderRadius:"50px",leftIcon:(0,m.jsx)(vo,{}),style:{borderColor:"#475bb2",color:"white"},onClick:()=>(async e=>{const t=e.addons?Object.keys(e.addons):[];if(e.isPro){let t=u.toLocaleLowerCase().replace("user registration","").replace("lifetime","").trim(),r={};switch(e.plan[0]){case"personal":r=["personal","plus","professional","themegrill agency"];break;case"plus":r=["plus","professional","themegrill agency"]}r.indexOf(t)<0?(A(!0),_(!0)):(A(!1),_(!1))}else A(!1);try{const r=await Pm()({path:"user-registration/v1/plugin/upgrade",method:"POST",body:JSON.stringify({requiredPlugins:t}),headers:{"Content-Type":"application/json","X-WP-Nonce":Ov}}),{plugin_status:n}=r;if(!n)return s(e.title),void _(!0);p(e.slug),i(e),s(e.title),v()}catch(e){console.log(e),S({title:(0,o.__)("Error","user-registration"),description:(0,o.__)("An error occurred while checking the plugin status. Please try again.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}})(e),bg:"#475bb2",_hover:{bg:"#4153A2"},width:"100%",children:(0,o.__)("Get Started","user-registration")}),e.preview_link&&(0,m.jsx)(no,{borderRadius:"50px",leftIcon:(0,m.jsx)(Rv,{}),color:"#4D4D4D",variant:"outline",onClick:()=>window.open(e.preview_link,"_blank"),_hover:{color:"#4D4D4D",bg:"#EFEFEF"},bg:"#FFFFFF",width:"100%",children:(0,o.__)("Preview","user-registration")})]})]})}),b===e.id&&(0,m.jsx)(fn,{as:"button",onClick:()=>{return t=e.slug,void T.mutate(t);var t},"aria-label":`Toggle favorite for ${e.title}`,position:"absolute",top:2,right:2,zIndex:3,bg:"transparent",border:"none",_hover:{color:"red.600"},children:(0,m.jsx)(So,{as:x.includes(e.slug)?Wm:Vm,boxSize:6,color:x.includes(e.slug)?"red":"white"})}),(0,m.jsxs)(Dn,{padding:"8px 16px 16px 16px",gap:"10px",children:[(0,m.jsx)(Kn,{className:"template-title",width:"100%",textAlign:"left",fontWeight:"500",fontSize:"16px",margin:"0px",lineHeight:"22px",children:e.title}),(0,m.jsx)(Nn,{textAlign:"left",margin:"0px",fontSize:"14px",fontWeight:"400",color:"gray.600",lineHeight:"25px",children:e.description})]})]},e.slug))}):(0,m.jsxs)(fn,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"80vh",width:"100%",children:[(0,m.jsx)(gf,{src:Mv+"/wp-content/plugins/user-registration/assets/images/empty-table.png",alt:(0,o.__)("Not Found","user-registration"),boxSize:"300px",objectFit:"cover"}),(0,m.jsx)(Nn,{mt:4,fontSize:"lg",fontWeight:"bold",textAlign:"center",children:(0,o.__)("No Templates Found","user-registration")}),(0,m.jsx)(Nn,{margin:0,fontSize:"sm",textAlign:"center",color:"gray.600",children:(0,o.__)("Sorry, we didn't find any templates that match your criteria","user-registration")})]}),(0,m.jsxs)(Of,{isCentered:!0,isOpen:C,onClose:()=>_(!1),size:"lg",children:[(0,m.jsx)($f,{}),(0,m.jsxs)(km,{borderRadius:"8px",padding:"20px",children:[(0,m.jsxs)(Cm,{padding:"0px",textAlign:"center",fontSize:"20px",lineHeight:"28px",color:"#26262E",children:[(0,m.jsx)(zv,{boxSize:10}),(0,m.jsx)(Kn,{as:"h2",margin:"10px 0px 0px 0px",fontSize:"20px",lineHeight:"28px",fontWeight:"bold",children:E?(0,o.sprintf)((0,o.__)("%s Requires License Upgrade","user-registration"),a):(0,o.sprintf)((0,o.__)("%s is a Premium Template","user-registration"),a)})]}),(0,m.jsx)(_m,{top:"12px",right:"12px"}),(0,m.jsx)(Em,{padding:"0px",marginTop:"16px",textAlign:"center",children:(0,m.jsx)(Nn,{margin:"0px",fontSize:"16px",lineHeight:"24px",mb:"20px",children:E?(0,o.__)("This template requires plus and above plan. Please upgrade to the Plus and above to unlock all these awesome templates.","user-registration"):(0,o.__)("This template requires premium addons. Please upgrade to the Premium to unlock all these awesome templates.","user-registration")})}),(0,m.jsxs)(Am,{justifyContent:"flex-end",padding:"0px",children:[(0,m.jsx)(no,{variant:"ghost",onClick:()=>_(!1),border:"1px solid #DFDFDF",children:(0,o.__)("OK","user-registration")}),(0,m.jsx)("a",{href:"https://wpuserregistration.com/upgrade/?utm_source=form-template&utm_medium=premium-form-templates-popup&utm_campaign=lite-version",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"},children:(0,m.jsx)(no,{style:{backgroundColor:"#475BB2",color:"#FFFFFF"},ml:3,children:(0,o.__)("Upgrade Plan","user-registration")})})]})]})]}),(0,m.jsxs)(Of,{isCentered:!0,isOpen:h&&!E,onClose:g,size:"xl",children:[(0,m.jsx)($f,{}),(0,m.jsxs)(km,{borderRadius:"8px",padding:"40px",children:[(0,m.jsx)(Cm,{padding:"0px",textAlign:"left",fontSize:"20px",lineHeight:"28px",color:"#26262E",children:(0,o.__)("Uplift your form experience to the next level.","user-registration")}),(0,m.jsx)(_m,{top:"12px",right:"12px"}),(0,m.jsxs)(Em,{padding:"0px",marginTop:"16px",children:[(0,m.jsxs)(fn,{mb:"20px",padding:"0px",children:[(0,m.jsx)(Nn,{margin:"0px 0px 6px",fontSize:"16px",lineHeight:"29px",children:(0,o.__)("Give it a name","user-registration")}),(0,m.jsx)(zn,{width:"full",value:a,onChange:e=>s(e.target.value),placeholder:"Give it a name.",size:"md",_focus:{borderColor:"#475BB2",outline:"none",boxShadow:"none"}})]}),(0,m.jsx)(fn,{overflow:"hidden",mb:"0px",padding:"0px",children:(0,m.jsx)($m,{requiredPlugins:j,onActivateAndContinue:async()=>{if(a)try{const e=await Pm()({path:"user-registration/v1/form-templates/create",method:"POST",body:JSON.stringify({title:a,slug:f}),headers:{"Content-Type":"application/json","X-WP-Nonce":Ov}});e.success&&e.data?window.location.href=e.data.redirect:S({title:(0,o.__)("Error","user-registration"),description:e.message||(0,o.__)("Failed to create form template.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}catch(e){S({title:(0,o.__)("Error","user-registration"),description:(0,o.__)("An error occurred while creating the form template.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}else S({title:(0,o.__)("Form name required","user-registration"),description:(0,o.__)("Please provide a name for your form.","user-registration"),status:"warning",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}})})]})]})]})]})};var Iv=class extends xv{#g;#b;#y;#s;#u;#x;#w;constructor(e){super(),this.#w=!1,this.#x=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#y=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#g=Nv(this.options),this.state=e.state??this.#g,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#x,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=Nv(this.options);void 0!==e.data&&(this.setState(Bv(e.data,e.dataUpdatedAt)),this.#g=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#y.remove(this)}setData(e,t){const r=hv(this.state.data,e,this.options);return this.#d({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(Zm).catch(Zm):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#g)}isActive(){return this.observers.some(e=>!1!==rv(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===tv(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!ev(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#y.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#w?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#y.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#u?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#w=!0,r.signal)})},o=()=>{const e=bv(this.options,t),r=(()=>{const e={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#w=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return n(e),e})();this.options.behavior?.onFetch(i,this),this.#b=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta}),this.#u=Tv({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof Av&&e.revert&&this.setState({...this.#b,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#u.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#y.config.onSuccess?.(e,this),this.#y.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Av){if(e.silent)return this.#u.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#d({type:"error",error:e}),this.#y.config.onError?.(e,this),this.#y.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Dv(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...Bv(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#b=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ym.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#y.notify({query:this,type:"updated",action:e})})}};function Dv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ev(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function Bv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Nv(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Lv=class extends wv{constructor(e,t){super(),this.options=t,this.#s=e,this.#S=null,this.#k=Cv(),this.bindMethods(),this.setOptions(t)}#s;#C=void 0;#_=void 0;#f=void 0;#E;#A;#k;#S;#T;#P;#j;#R;#O;#M;#z=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#C.addObserver(this),$v(this.#C,this.options)?this.#F():this.updateResult(),this.#I())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wv(this.#C,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wv(this.#C,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#D(),this.#B(),this.#C.removeObserver(this)}setOptions(e){const t=this.options,r=this.#C;if(this.options=this.#s.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof rv(this.options.enabled,this.#C))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#N(),this.#C.setOptions(this.options),t._defaulted&&!uv(this.options,t)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#C,observer:this});const n=this.hasListeners();n&&Vv(this.#C,r,this.options,t)&&this.#F(),this.updateResult(),!n||this.#C===r&&rv(this.options.enabled,this.#C)===rv(t.enabled,this.#C)&&tv(this.options.staleTime,this.#C)===tv(t.staleTime,this.#C)||this.#L();const o=this.#$();!n||this.#C===r&&rv(this.options.enabled,this.#C)===rv(t.enabled,this.#C)&&o===this.#M||this.#W(o)}getOptimisticResult(e){const t=this.#s.getQueryCache().build(this.#s,e),r=this.createResult(t,e);return n=r,!uv(this.getCurrentResult(),n)&&(this.#f=r,this.#A=this.options,this.#E=this.#C.state),r;var n}getCurrentResult(){return this.#f}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#k.status||this.#k.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#z.add(e)}getCurrentQuery(){return this.#C}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#s.defaultQueryOptions(e),r=this.#s.getQueryCache().build(this.#s,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#F({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#f))}#F(e){this.#N();let t=this.#C.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zm)),t}#L(){this.#D();const e=tv(this.options.staleTime,this.#C);if(Km||this.#f.isStale||!Jm(e))return;const t=ev(this.#f.dataUpdatedAt,e)+1;this.#R=Gm.setTimeout(()=>{this.#f.isStale||this.updateResult()},t)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#C):this.options.refetchInterval)??!1}#W(e){this.#B(),this.#M=e,!Km&&!1!==rv(this.options.enabled,this.#C)&&Jm(this.#M)&&0!==this.#M&&(this.#O=Gm.setInterval(()=>{(this.options.refetchIntervalInBackground||Sv.isFocused())&&this.#F()},this.#M))}#I(){this.#L(),this.#W(this.#$())}#D(){this.#R&&(Gm.clearTimeout(this.#R),this.#R=void 0)}#B(){this.#O&&(Gm.clearInterval(this.#O),this.#O=void 0)}createResult(e,t){const r=this.#C,n=this.options,o=this.#f,i=this.#E,a=this.#A,s=e!==r?e.state:this.#_,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&$v(e,t),a=o&&Vv(e,r,t,n);(i||a)&&(u={...u,...Dv(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=u;c=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#j?.state.data,this.#j):t.placeholderData,void 0!==e&&(h="success",c=hv(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!m)if(o&&c===i?.data&&t.select===this.#T)c=this.#P;else try{this.#T=t.select,c=t.select(c),c=hv(o?.data,c,t),this.#P=c,this.#S=null}catch(e){this.#S=e}this.#S&&(f=this.#S,c=this.#P,p=Date.now(),h="error");const v="fetching"===u.fetchStatus,g="pending"===h,b="error"===h,y=g&&v,x=void 0!==c,w={status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:b,isInitialLoading:y,isLoading:y,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:b&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:b&&x,isStale:qv(e,t),refetch:this.refetch,promise:this.#k,isEnabled:!1!==rv(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===w.status?e.reject(w.error):void 0!==w.data&&e.resolve(w.data)},n=()=>{const e=this.#k=w.promise=Cv();t(e)},o=this.#k;switch(o.status){case"pending":e.queryHash===r.queryHash&&t(o);break;case"fulfilled":"error"!==w.status&&w.data===o.value||n();break;case"rejected":"error"===w.status&&w.error===o.reason||n()}}return w}updateResult(){const e=this.#f,t=this.createResult(this.#C,this.options);this.#E=this.#C.state,this.#A=this.options,void 0!==this.#E.data&&(this.#j=this.#C),uv(t,e)||(this.#f=t,this.#v({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#z.size)return!0;const n=new Set(r??this.#z);return this.options.throwOnError&&n.add("error"),Object.keys(this.#f).some(t=>{const r=t;return this.#f[r]!==e[r]&&n.has(r)})})()}))}#N(){const e=this.#s.getQueryCache().build(this.#s,this.options);if(e===this.#C)return;const t=this.#C;this.#C=e,this.#_=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#I()}#v(e){Ym.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#f)}),this.#s.getQueryCache().notify({query:this.#C,type:"observerResultsUpdated"})})}};function $v(e,t){return function(e,t){return!1!==rv(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Wv(e,t,t.refetchOnMount)}function Wv(e,t,r){if(!1!==rv(t.enabled,e)&&"static"!==tv(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&qv(e,t)}return!1}function Vv(e,t,r,n){return(e!==t||!1===rv(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&qv(e,r)}function qv(e,t){return!1!==rv(t.enabled,e)&&e.isStaleByTime(tv(t.staleTime,e))}var Hv=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Uv=e.createContext(!1),Qv=(Uv.Provider,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}));const{security:Gv}=ur_templates_script,Xv=async()=>{const e=await Pm()({path:"user-registration/v1/form-templates"});if(e&&Array.isArray(e.templates))return e.templates.flatMap(e=>e.templates);throw new Error((0,o.__)("Unexpected response format.","user-registration"))},Yv=({filter:t})=>{const[r,n]=(0,e.useState)({selectedCategory:(0,o.__)("All Forms","user-registration"),searchTerm:""}),{selectedCategory:i,searchTerm:a}=r,{data:s=[],isLoading:l,error:c}=function(t){return function(t,r,n){const o=e.useContext(Uv),i=e.useContext(Hv),a=Hm(n),s=a.defaultQueryOptions(t);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s);const l=a.getQueryCache().get(s.queryHash);s._optimisticResults=o?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?yv(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(s,i,l),(t=>{e.useEffect(()=>{t.clearReset()},[t])})(i);const c=!a.getQueryCache().get(s.queryHash),[u]=e.useState(()=>new r(a,s)),d=u.getOptimisticResult(s),f=!o&&!1!==t.subscribed;if(e.useSyncExternalStore(e.useCallback(e=>{const t=f?u.subscribe(Ym.batchCalls(e)):Zm;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),e.useEffect(()=>{u.setOptions(s)},[s,u]),((e,t)=>e?.suspense&&t.isPending)(s,d))throw Qv(s,u,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||yv(r,[e.error,n])))({result:d,errorResetBoundary:i,throwOnError:s.throwOnError,query:l,suspense:s.suspense}))throw d.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!Km&&((e,t)=>e.isLoading&&e.isFetching&&!t)(d,o)){const e=c?Qv(s,u,i):l?.promise;e?.catch(Zm).finally(()=>{u.updateResult()})}return s.notifyOnChangeProps?d:u.trackResult(d)}(t,Lv,void 0)}({queryKey:["templates"],queryFn:Xv}),u=(0,e.useMemo)(()=>{const e=new Set;return s.forEach(t=>{t.categories.forEach(t=>e.add(t))}),[{name:(0,o.__)("All Forms","user-registration"),count:s.length},...Array.from(e).map(e=>({name:e,count:s.filter(t=>t.categories.includes(e)).length}))]},[s]),d=(0,e.useMemo)(()=>s.filter(e=>(i===(0,o.__)("All Forms","user-registration")||e.categories.includes(i))&&e.title.toLowerCase().includes(a.toLowerCase())&&("All"===t||"Free"===t&&!e.isPro||"Premium"===t&&e.isPro)),[i,a,s,t]),f=(0,e.useCallback)(e=>{"undefined"!=typeof window&&window.scrollTo(0,0),n(t=>({...t,selectedCategory:e}))},[]),p=(0,e.useCallback)(e=>{n(t=>({...t,searchTerm:e}))},[]),h=Xe({base:"100%",md:"250px"});return l?(0,m.jsx)(Zr,{justify:"center",align:"center",height:"100vh",children:(0,m.jsx)(dn,{size:"xl"})}):c?(0,m.jsx)("div",{children:c.message}):(0,m.jsx)(fn,{children:(0,m.jsxs)(Zr,{direction:{base:"column",md:"row"},children:[(0,m.jsx)(fn,{width:h,mr:{base:0,md:4},mb:{base:4,md:0},children:(0,m.jsx)(xo,{categories:u,selectedCategory:r.selectedCategory,onCategorySelect:f,onSearchChange:p})}),(0,m.jsx)(fn,{width:"1px",bg:"linear-gradient(90deg, #CDD0D8 0%, rgba(255, 255, 255, 0) 158.04%)",mx:"4",marginRight:"28px"}),(0,m.jsx)(fn,{flex:1,children:(0,m.jsx)(Fv,{selectedCategory:i,templates:d})})]})})};function Kv(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==n}function Zv(t={}){const{ref:r,isDisabled:n,isFocusable:o,clickOnEnter:i=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:l,onClick:u,onKeyDown:d,onKeyUp:f,tabIndex:p,onMouseOver:h,onMouseLeave:m,...v}=t,[g,b]=(0,e.useState)(!0),[y,x]=(0,e.useState)(!1),w=function(){const t=(0,e.useRef)(new Map),r=t.current,n=(0,e.useCallback)((e,r,n,o)=>{t.current.set(n,{type:r,el:e,options:o}),e.addEventListener(r,n,o)},[]),o=(0,e.useCallback)((e,r,n,o)=>{e.removeEventListener(r,n,o),t.current.delete(n)},[]);return(0,e.useEffect)(()=>()=>{r.forEach((e,t)=>{o(e.el,e.type,t,e.options)})},[o,r]),{add:n,remove:o}}(),S=g?p:p||0,k=n&&!o,C=(0,e.useCallback)(e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)},[n,u]),_=(0,e.useCallback)(e=>{y&&Kv(e)&&(e.preventDefault(),e.stopPropagation(),x(!1),w.remove(document,"keyup",_,!1))},[y,w]),E=(0,e.useCallback)(e=>{if(null==d||d(e),n||e.defaultPrevented||e.metaKey)return;if(!Kv(e.nativeEvent)||g)return;const t=i&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),x(!0)),t&&(e.preventDefault(),e.currentTarget.click()),w.add(document,"keyup",_,!1)},[n,g,d,i,a,w,_]),A=(0,e.useCallback)(e=>{null==f||f(e),n||e.defaultPrevented||e.metaKey||Kv(e.nativeEvent)&&!g&&a&&" "===e.key&&(e.preventDefault(),x(!1),e.currentTarget.click())},[a,g,n,f]),T=(0,e.useCallback)(e=>{0===e.button&&(x(!1),w.remove(document,"mouseup",T,!1))},[w]),P=(0,e.useCallback)(e=>{if(0===e.button){if(n)return e.stopPropagation(),void e.preventDefault();g||x(!0),e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",T,!1),null==s||s(e)}},[n,g,s,w,T]),j=(0,e.useCallback)(e=>{0===e.button&&(g||x(!1),null==l||l(e))},[l,g]),R=(0,e.useCallback)(e=>{n?e.preventDefault():null==h||h(e)},[n,h]),O=(0,e.useCallback)(e=>{y&&(e.preventDefault(),x(!1)),null==m||m(e)},[y,m]),M=En(r,e=>{e&&"BUTTON"!==e.tagName&&b(!1)});return g?{...v,ref:M,type:"button","aria-disabled":k?void 0:n,disabled:k,onClick:C,onMouseDown:s,onMouseUp:l,onKeyUp:f,onKeyDown:d,onMouseOver:h,onMouseLeave:m}:{...v,ref:M,role:"button","data-active":c(y),"aria-disabled":n?"true":void 0,tabIndex:k?void 0:S,onClick:C,onMouseDown:P,onMouseUp:j,onKeyUp:A,onKeyDown:E,onMouseOver:R,onMouseLeave:O}}var Jv=Object.defineProperty,eg=(e,t,r)=>(((e,t,r)=>{t in e?Jv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);function tg(e){return e.sort((e,t)=>{const r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function rg(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function ng(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var og="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ig=class{constructor(){eg(this,"descendants",new Map),eg(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)}}),eg(this,"unregister",e=>{this.descendants.delete(e);const t=tg(Array.from(this.descendants.keys()));this.assignIndex(t)}),eg(this,"destroy",()=>{this.descendants.clear()}),eg(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),eg(this,"count",()=>this.descendants.size),eg(this,"enabledCount",()=>this.enabledValues().length),eg(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),eg(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),eg(this,"item",e=>{if(0!==this.count())return this.values()[e]}),eg(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),eg(this,"first",()=>this.item(0)),eg(this,"firstEnabled",()=>this.enabledItem(0)),eg(this,"last",()=>this.item(this.descendants.size-1)),eg(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),eg(this,"indexOf",e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1}),eg(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),eg(this,"next",(e,t=!0)=>{const r=rg(e,this.count(),t);return this.item(r)}),eg(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=rg(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)}),eg(this,"prev",(e,t=!0)=>{const r=ng(e,this.count()-1,t);return this.item(r)}),eg(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=ng(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)}),eg(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=tg(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)})}},[ag,sg]=mn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),[lg,cg,ug,dg]=[ag,()=>sg(),()=>function(){const t=(0,e.useRef)(new ig);return og(()=>()=>t.current.destroy()),t.current}(),t=>function(t){const r=sg(),[n,o]=(0,e.useState)(-1),i=(0,e.useRef)(null);og(()=>()=>{i.current&&r.unregister(i.current)},[]),og(()=>{if(!i.current)return;const e=Number(i.current.dataset.index);n==e||Number.isNaN(e)||o(e)});const a=t?r.register(t):r.register;return{descendants:r,index:n,enabledIndex:r.enabledIndexOf(i.current),register:En(a,i)}}(t)];var[fg,pg]=mn({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"}),[hg,mg]=mn({});function vg(e,t){return`${e}--tab-${t}`}function gg(e,t){return`${e}--tabpanel-${t}`}var[bg,yg]=mn({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),xg=Ye(function(t,r){const n=cn("Tabs",t),{children:o,className:a,...s}=jr(t),{htmlProps:l,descendants:c,...u}=function(t){var r;const{defaultIndex:n,onChange:o,index:i,isManual:a,isLazy:s,lazyBehavior:l="unmount",orientation:c="horizontal",direction:u="ltr",...d}=t,[f,p]=(0,e.useState)(null!=n?n:0),[h,m]=function(t){const{value:r,defaultValue:n,onChange:o,shouldUpdate:i=(e,t)=>e!==t}=t,a=jo(o),s=jo(i),[l,c]=(0,e.useState)(n),u=void 0!==r,d=u?r:l,f=jo(e=>{const t="function"==typeof e?e(d):e;s(d,t)&&(u||c(t),a(t))},[u,a,d,s]);return[d,f]}({defaultValue:null!=n?n:0,value:i,onChange:o});(0,e.useEffect)(()=>{null!=i&&p(i)},[i]);const v=ug(),g=(0,e.useId)();return{id:`tabs-${null!=(r=t.id)?r:g}`,selectedIndex:h,focusedIndex:f,setSelectedIndex:m,setFocusedIndex:p,isManual:a,isLazy:s,lazyBehavior:l,orientation:c,descendants:v,direction:u,htmlProps:d}}(s),d=(0,e.useMemo)(()=>u,[u]),{isFitted:f,...p}=l,h={position:"relative",...n.root};return(0,m.jsx)(lg,{value:c,children:(0,m.jsx)(fg,{value:d,children:(0,m.jsx)(bg,{value:n,children:(0,m.jsx)(Kr.div,{className:i("chakra-tabs",a),ref:r,...p,__css:h,children:o})})})})});xg.displayName="Tabs";var wg=Ye(function(t,r){const n=function(t){const{focusedIndex:r,orientation:n,direction:o}=pg(),i=cg(),a=(0,e.useCallback)(e=>{const t=()=>{var e;const t=i.nextEnabled(r);t&&(null==(e=t.node)||e.focus())},a=()=>{var e;const t=i.prevEnabled(r);t&&(null==(e=t.node)||e.focus())},s="horizontal"===n,l="vertical"===n,c=e.key,u="ltr"===o?"ArrowLeft":"ArrowRight",d="ltr"===o?"ArrowRight":"ArrowLeft",f={[u]:()=>s&&a(),[d]:()=>s&&t(),ArrowDown:()=>l&&t(),ArrowUp:()=>l&&a(),Home:()=>{var e;const t=i.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=i.lastEnabled();t&&(null==(e=t.node)||e.focus())}},p=f[c];p&&(e.preventDefault(),p(e))},[i,r,n,o]);return{...t,role:"tablist","aria-orientation":n,onKeyDown:d(t.onKeyDown,a)}}({...t,ref:r}),o={display:"flex",...yg().tablist};return(0,m.jsx)(Kr.div,{...n,className:i("chakra-tabs__tablist",t.className),__css:o})});wg.displayName="TabList";var Sg=Ye(function(e,t){const r=yg(),n=function(e){const{isDisabled:t=!1,isFocusable:r=!1,...n}=e,{setSelectedIndex:o,isManual:i,id:a,setFocusedIndex:s,selectedIndex:l}=pg(),{index:c,register:u}=dg({disabled:t&&!r}),f=c===l;return{...Zv({...n,ref:En(u,e.ref),isDisabled:t,isFocusable:r,onClick:d(e.onClick,()=>{o(c)})}),id:vg(a,c),role:"tab",tabIndex:f?0:-1,type:"button","aria-selected":f,"aria-controls":gg(a,c),onFocus:t?void 0:d(e.onFocus,()=>{s(c),!i&&(!t||!r)&&o(c)})}}({...e,ref:t}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return(0,m.jsx)(Kr.button,{...n,className:i("chakra-tabs__tab",e.className),__css:o})});Sg.displayName="Tab";var kg,Cg=String.raw,_g=Cg` :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; } } `,Eg=()=>(0,m.jsx)(rn,{styles:_g}),Ag=({scope:e=""})=>(0,m.jsx)(rn,{styles:Cg` 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; } ${_g} `}),Tg="chakra-ui-light",Pg="chakra-ui-dark",jg="chakra-ui-color-mode",Rg=(kg=jg,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(kg)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(kg,e)}catch(e){}}});var Og=()=>{};function Mg(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function zg(t){const{value:r,children:n,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=Rg}=t,l="dark"===i?"dark":"light",[c,u]=(0,e.useState)(()=>Mg(s,l)),[d,f]=(0,e.useState)(()=>Mg(s)),{getSystemTheme:p,setClassName:v,setDataset:g,addListener:b}=(0,e.useMemo)(()=>function(e={}){const{preventTransition:t=!0}=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?Pg:Tg),document.body.classList.remove(e?Tg:Pg)},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}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r}({preventTransition:a}),[a]),y="system"!==i||c?c:d,x=(0,e.useCallback)(e=>{const t="system"===e?p():e;u(t),v("dark"===t),g(t),s.set(t)},[s,p,v,g]);h(()=>{"system"===i&&f(p())},[]),(0,e.useEffect)(()=>{const e=s.get();x(e||("system"!==i?l:"system"))},[s,l,i,x]);const w=(0,e.useCallback)(()=>{x("dark"===y?"light":"dark")},[y,x]);(0,e.useEffect)(()=>{if(o)return b(x)},[o,b,x]);const S=(0,e.useMemo)(()=>({colorMode:null!=r?r:y,toggleColorMode:r?Og:w,setColorMode:r?Og:x,forced:void 0!==r}),[y,w,x,r]);return(0,m.jsx)(zr.Provider,{value:S,children:n})}zg.displayName="ColorModeProvider";var Fg=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=(0,m.jsx)(g,{environment:s,disabled:c,children:t});return(0,m.jsx)(Wn,{theme:a,cssVarsRoot:l,children:(0,m.jsxs)(zg,{colorModeManager:r,options:a.config,children:[i?(0,m.jsx)(Ag,{scope:o}):(0,m.jsx)(Eg,{}),!u&&(0,m.jsx)(Un,{}),n?(0,m.jsx)(Kd,{zIndex:n,children:d}):d]})})},Ig={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"}},Dg={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"},Bg={...Dg,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"}},Ng={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"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...Ig,sizes:Bg,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:Dg,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{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"}}},{defineMultiStyleConfig:Lg,definePartsStyle:$g}=Tr(["stepper","step","title","description","indicator","separator","icon","number"]),Wg=Gt("stepper-indicator-size"),Vg=Gt("stepper-icon-size"),qg=Gt("stepper-title-font-size"),Hg=Gt("stepper-description-font-size"),Ug=Gt("stepper-accent-color"),Qg=$g(({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"},[Ug.variable]:`colors.${e}.500`,_dark:{[Ug.variable]:`colors.${e}.200`}},title:{fontSize:qg.reference,fontWeight:"medium"},description:{fontSize:Hg.reference,color:"chakra-subtle-text"},number:{fontSize:qg.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:Vg.reference,height:Vg.reference},indicator:{flexShrink:0,borderRadius:"full",width:Wg.reference,height:Wg.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ug.reference},"&[data-status=complete]":{bg:Ug.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ug.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Wg.reference} - 8px)`,top:`calc(${Wg.reference} + 4px)`,insetStart:`calc(${Wg.reference} / 2 - 1px)`}}})),Gg=Lg({baseStyle:Qg,sizes:{xs:$g({stepper:{[Wg.variable]:"sizes.4",[Vg.variable]:"sizes.3",[qg.variable]:"fontSizes.xs",[Hg.variable]:"fontSizes.xs"}}),sm:$g({stepper:{[Wg.variable]:"sizes.6",[Vg.variable]:"sizes.4",[qg.variable]:"fontSizes.sm",[Hg.variable]:"fontSizes.xs"}}),md:$g({stepper:{[Wg.variable]:"sizes.8",[Vg.variable]:"sizes.5",[qg.variable]:"fontSizes.md",[Hg.variable]:"fontSizes.sm"}}),lg:$g({stepper:{[Wg.variable]:"sizes.10",[Vg.variable]:"sizes.6",[qg.variable]:"fontSizes.lg",[Hg.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Xg(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of o)t[e]=n(e);return Xg(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return Xg(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:{}}}var Yg=Xg("accordion").parts("root","container","button","panel").extend("icon"),Kg=Xg("alert").parts("title","description","container").extend("icon","spinner"),Zg=Xg("avatar").parts("label","badge","container").extend("excessLabel","group"),Jg=Xg("breadcrumb").parts("link","item","container").extend("separator"),eb=(Xg("button").parts(),Xg("checkbox").parts("control","icon","container").extend("label")),tb=(Xg("progress").parts("track","filledTrack").extend("label"),Xg("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),rb=Xg("editable").parts("preview","input","textarea"),nb=Xg("form").parts("container","requiredIndicator","helperText"),ob=Xg("formError").parts("text","icon"),ib=Xg("input").parts("addon","field","element","group"),ab=Xg("list").parts("container","item","icon"),sb=Xg("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),lb=Xg("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),cb=Xg("numberinput").parts("root","field","stepperGroup","stepper"),ub=(Xg("pininput").parts("field"),Xg("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),db=Xg("progress").parts("label","filledTrack","track"),fb=Xg("radio").parts("container","control","label"),pb=Xg("select").parts("field","icon"),hb=Xg("slider").parts("container","track","thumb","filledTrack","mark"),mb=Xg("stat").parts("container","label","helpText","number","icon"),vb=Xg("switch").parts("container","track","thumb","label"),gb=Xg("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),bb=Xg("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),yb=Xg("tag").parts("container","label","closeButton"),xb=Xg("card").parts("container","header","body","footer");function wb(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 Sb(e,t){return`var(${wb(e)}${t?`, ${t}`:""})`}function kb(e,t){const r=function(e,t=""){return`--${function(e,t=""){return[t,wb(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:r,reference:Sb(r,(n=null==t?void 0:t.fallback,"string"==typeof n?n:null==n?void 0:n.reference))};var n}function Cb(e){return a(e)&&e.reference?e.reference:String(e)}Xg("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var _b=(e,...t)=>t.map(Cb).join(` ${e} `).replace(/calc/g,""),Eb=(...e)=>`calc(${_b("+",...e)})`,Ab=(...e)=>`calc(${_b("-",...e)})`,Tb=(...e)=>`calc(${_b("*",...e)})`,Pb=(...e)=>`calc(${_b("/",...e)})`,jb=e=>{const t=Cb(e);return null==t||Number.isNaN(parseFloat(t))?Tb(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Rb=Object.assign(e=>({add:(...t)=>Rb(Eb(e,...t)),subtract:(...t)=>Rb(Ab(e,...t)),multiply:(...t)=>Rb(Tb(e,...t)),divide:(...t)=>Rb(Pb(e,...t)),negate:()=>Rb(jb(e)),toString:()=>e.toString()}),{add:Eb,subtract:Ab,multiply:Tb,divide:Pb,negate:jb}),{defineMultiStyleConfig:Ob,definePartsStyle:Mb}=Tr(vb.keys),zb=kb("switch-track-width"),Fb=kb("switch-track-height"),Ib=kb("switch-track-diff"),Db=Rb.subtract(zb,Fb),Bb=kb("switch-thumb-x"),Nb=kb("switch-bg"),Lb=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[zb.reference],height:[Fb.reference],transitionProperty:"common",transitionDuration:"fast",[Nb.variable]:"colors.gray.300",_dark:{[Nb.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Nb.variable]:`colors.${t}.500`,_dark:{[Nb.variable]:`colors.${t}.200`}},bg:Nb.reference}},$b={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Fb.reference],height:[Fb.reference],_checked:{transform:`translateX(${Bb.reference})`}},Wb=Ob({baseStyle:Mb(e=>({container:{[Ib.variable]:Db,[Bb.variable]:Ib.reference,_rtl:{[Bb.variable]:Rb(Ib).negate().toString()}},track:Lb(e),thumb:$b})),sizes:{sm:Mb({container:{[zb.variable]:"1.375rem",[Fb.variable]:"sizes.3"}}),md:Mb({container:{[zb.variable]:"1.875rem",[Fb.variable]:"sizes.4"}}),lg:Mb({container:{[zb.variable]:"2.875rem",[Fb.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Vb(e,t){return r=>"dark"===r.colorMode?t:e}function qb(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:Hb,definePartsStyle:Ub}=Tr(gb.keys),Qb=Ub({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"}}),Gb={"&[data-is-numeric=true]":{textAlign:"end"}},Xb=Ub(e=>{const{colorScheme:t}=e;return{th:{color:Vb("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Vb(`${t}.100`,`${t}.700`)(e),...Gb},td:{borderBottom:"1px",borderColor:Vb(`${t}.100`,`${t}.700`)(e),...Gb},caption:{color:Vb("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Yb=Ub(e=>{const{colorScheme:t}=e;return{th:{color:Vb("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Vb(`${t}.100`,`${t}.700`)(e),...Gb},td:{borderBottom:"1px",borderColor:Vb(`${t}.100`,`${t}.700`)(e),...Gb},caption:{color:Vb("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Vb(`${t}.100`,`${t}.700`)(e)},td:{background:Vb(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Kb=Hb({baseStyle:Qb,variants:{simple:Xb,striped:Yb,unstyled:{}},sizes:{sm:Ub({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:Ub({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ub({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"}});function Zb(e,t,r){return Math.min(Math.max(e,r),t)}class Jb extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ey=Jb;function ty(e){if("string"!=typeof e)throw new ey(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=cy.test(e)?function(e){const t=e.toLowerCase().trim(),r=ny[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new ey(e);return`#${r}`}(e):e;const r=iy.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(oy(e,2),16)),parseInt(oy(e[3]||"f",2),16)/255]}const n=ay.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}const o=sy.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=ly.exec(t);if(i){const[t,r,n,o]=Array.from(i).slice(1).map(parseFloat);if(Zb(0,100,r)!==r)throw new ey(e);if(Zb(0,100,n)!==n)throw new ey(e);return[...dy(t,r,n),Number.isNaN(o)?1:o]}throw new ey(e)}const ry=e=>parseInt(e.replace(/_/g,""),36),ny="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 r=ry(t.substring(0,3)),n=ry(t.substring(3)).toString(16);let o="";for(let e=0;e<6-n.length;e++)o+="0";return e[r]=`${o}${n}`,e},{}),oy=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),iy=new RegExp(`^#${oy("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ay=new RegExp(`^#${oy("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),sy=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${oy(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ly=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,cy=/^[a-z]+$/i,uy=e=>Math.round(255*e),dy=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(uy);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-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=n-i/2;return[s+u,l+u,c+u].map(uy)};function fy(e,t){const[r,n,o,i]=ty(e);return function(e,t,r,n){return`rgba(${Zb(0,255,e).toFixed()}, ${Zb(0,255,t).toFixed()}, ${Zb(0,255,r).toFixed()}, ${parseFloat(Zb(0,1,n).toFixed(3))})`}(r,n,o,i-t)}var py=(e,t,r)=>{const n=function(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}(e,`colors.${t}`,t);try{return function(e){const[t,r,n,o]=ty(e);let i=e=>{const t=Zb(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(r),i(n),o<1&&i(Math.round(255*o))}(n),n}catch{return null!=r?r:"#000000"}},hy=(e,t)=>r=>fy(py(r,e),1-t);function my(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}`}}var vy=Gt("tabs-color"),gy=Gt("tabs-bg"),by=Gt("tabs-border-color"),{defineMultiStyleConfig:yy,definePartsStyle:xy}=Tr(bb.keys),wy=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Sy=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}}},ky=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}},Cy={p:4},_y=xy(e=>({root:wy(e),tab:Sy(e),tablist:ky(e),tabpanel:Cy})),Ey={sm:xy({tab:{py:1,px:4,fontSize:"sm"}}),md:xy({tab:{fontSize:"md",py:2,px:4}}),lg:xy({tab:{fontSize:"lg",py:3,px:4}})},Ay=xy(e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[vy.variable]:`colors.${t}.600`,_dark:{[vy.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[gy.variable]:"colors.gray.200",_dark:{[gy.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:vy.reference,bg:gy.reference}}}),Ty=xy(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[by.variable]:"transparent",_selected:{[vy.variable]:`colors.${t}.600`,[by.variable]:"colors.white",_dark:{[vy.variable]:`colors.${t}.300`,[by.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:by.reference},color:vy.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Py=xy(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[gy.variable]:"colors.gray.50",_dark:{[gy.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[gy.variable]:"colors.white",[vy.variable]:`colors.${t}.600`,_dark:{[gy.variable]:"colors.gray.800",[vy.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:vy.reference,bg:gy.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jy=xy(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:py(r,`${t}.700`),bg:py(r,`${t}.100`)}}}}),Ry=xy(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[vy.variable]:"colors.gray.600",_dark:{[vy.variable]:"inherit"},_selected:{[vy.variable]:"colors.white",[gy.variable]:`colors.${t}.600`,_dark:{[vy.variable]:"colors.gray.800",[gy.variable]:`colors.${t}.300`}},color:vy.reference,bg:gy.reference}}}),Oy=yy({baseStyle:_y,sizes:Ey,variants:{line:Ay,enclosed:Ty,"enclosed-colored":Py,"soft-rounded":jy,"solid-rounded":Ry,unstyled:xy({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),My=function(e){const t={};for(const r of["bg","color","shadow"]){if(Array.isArray(r)){const[n,o]=r;t[n]=Gt(`${e}-${n}`,o);continue}t[r]=Gt(`${e}-${r}`)}return t}("badge"),zy={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:My.bg.reference,color:My.color.reference,boxShadow:My.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:r}=e,n=hy(`${t}.500`,.6)(r);return{[My.bg.variable]:`colors.${t}.500`,[My.color.variable]:"colors.white",_dark:{[My.bg.variable]:n,[My.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:r}=e,n=hy(`${t}.200`,.16)(r);return{[My.bg.variable]:`colors.${t}.100`,[My.color.variable]:`colors.${t}.800`,_dark:{[My.bg.variable]:n,[My.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:r}=e,n=hy(`${t}.200`,.8)(r);return{[My.color.variable]:`colors.${t}.500`,_dark:{[My.color.variable]:n},[My.shadow.variable]:`inset 0 0 0px 1px ${My.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Fy,definePartsStyle:Iy}=Tr(yb.keys),Dy=Gt("tag-bg"),By=Gt("tag-color"),Ny=Gt("tag-shadow"),Ly=Gt("tag-min-height"),$y=Gt("tag-min-width"),Wy=Gt("tag-font-size"),Vy=Gt("tag-padding-inline"),qy=Iy({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[By.variable]:My.color.reference,[Dy.variable]:My.bg.reference,[Ny.variable]:My.shadow.reference,color:By.reference,bg:Dy.reference,boxShadow:Ny.reference,borderRadius:"md",minH:Ly.reference,minW:$y.reference,fontSize:Wy.reference,px:Vy.reference,_focusVisible:{[Ny.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}}}),Hy={sm:Iy({container:{[Ly.variable]:"sizes.5",[$y.variable]:"sizes.5",[Wy.variable]:"fontSizes.xs",[Vy.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Iy({container:{[Ly.variable]:"sizes.6",[$y.variable]:"sizes.6",[Wy.variable]:"fontSizes.sm",[Vy.variable]:"space.2"}}),lg:Iy({container:{[Ly.variable]:"sizes.8",[$y.variable]:"sizes.8",[Wy.variable]:"fontSizes.md",[Vy.variable]:"space.3"}})},Uy={subtle:Iy(e=>{var t;return{container:null==(t=zy.variants)?void 0:t.subtle(e)}}),solid:Iy(e=>{var t;return{container:null==(t=zy.variants)?void 0:t.solid(e)}}),outline:Iy(e=>{var t;return{container:null==(t=zy.variants)?void 0:t.outline(e)}})},Qy=Fy({variants:Uy,baseStyle:qy,sizes:Hy,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Gy,defineMultiStyleConfig:Xy}=Tr(ib.keys),Yy=Gt("input-height"),Ky=Gt("input-font-size"),Zy=Gt("input-padding"),Jy=Gt("input-border-radius"),ex=Gy({addon:{height:Yy.reference,fontSize:Ky.reference,px:Zy.reference,borderRadius:Jy.reference},field:{width:"100%",height:Yy.reference,fontSize:Ky.reference,px:Zy.reference,borderRadius:Jy.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),tx={lg:{[Ky.variable]:"fontSizes.lg",[Zy.variable]:"space.4",[Jy.variable]:"radii.md",[Yy.variable]:"sizes.12"},md:{[Ky.variable]:"fontSizes.md",[Zy.variable]:"space.4",[Jy.variable]:"radii.md",[Yy.variable]:"sizes.10"},sm:{[Ky.variable]:"fontSizes.sm",[Zy.variable]:"space.3",[Jy.variable]:"radii.sm",[Yy.variable]:"sizes.8"},xs:{[Ky.variable]:"fontSizes.xs",[Zy.variable]:"space.2",[Jy.variable]:"radii.sm",[Yy.variable]:"sizes.6"}},rx={lg:Gy({field:tx.lg,group:tx.lg}),md:Gy({field:tx.md,group:tx.md}),sm:Gy({field:tx.sm,group:tx.sm}),xs:Gy({field:tx.xs,group:tx.xs})};function nx(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||Vb("blue.500","blue.300")(e),errorBorderColor:r||Vb("red.500","red.300")(e)}}var ox,ix,ax,sx,lx,cx,ux,dx,fx,px,hx,mx=Gy(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=nx(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Vb("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:py(t,n),boxShadow:`0 0 0 1px ${py(t,n)}`},_focusVisible:{zIndex:1,borderColor:py(t,r),boxShadow:`0 0 0 1px ${py(t,r)}`}},addon:{border:"1px solid",borderColor:Vb("inherit","whiteAlpha.50")(e),bg:Vb("gray.100","whiteAlpha.300")(e)}}}),vx=Gy(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=nx(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Vb("gray.100","whiteAlpha.50")(e),_hover:{bg:Vb("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:py(t,n)},_focusVisible:{bg:"transparent",borderColor:py(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Vb("gray.100","whiteAlpha.50")(e)}}}),gx=Gy(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=nx(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:py(t,n),boxShadow:`0px 1px 0px 0px ${py(t,n)}`},_focusVisible:{borderColor:py(t,r),boxShadow:`0px 1px 0px 0px ${py(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),bx=Xy({baseStyle:ex,sizes:rx,variants:{outline:mx,filled:vx,flushed:gx,unstyled:Gy({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),yx={...null==(ox=bx.baseStyle)?void 0:ox.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},xx={outline:e=>{var t,r;return null!=(r=null==(t=bx.variants)?void 0:t.outline(e).field)?r:{}},flushed:e=>{var t,r;return null!=(r=null==(t=bx.variants)?void 0:t.flushed(e).field)?r:{}},filled:e=>{var t,r;return null!=(r=null==(t=bx.variants)?void 0:t.filled(e).field)?r:{}},unstyled:null!=(ax=null==(ix=bx.variants)?void 0:ix.unstyled.field)?ax:{}},wx={baseStyle:yx,sizes:{xs:null!=(lx=null==(sx=bx.sizes)?void 0:sx.xs.field)?lx:{},sm:null!=(ux=null==(cx=bx.sizes)?void 0:cx.sm.field)?ux:{},md:null!=(fx=null==(dx=bx.sizes)?void 0:dx.md.field)?fx:{},lg:null!=(hx=null==(px=bx.sizes)?void 0:px.lg.field)?hx:{}},variants:xx,defaultProps:{size:"md",variant:"outline"}},Sx=kb("tooltip-bg"),kx=kb("tooltip-fg"),Cx=kb("popper-arrow-bg"),Ex={baseStyle:{bg:Sx.reference,color:kx.reference,[Sx.variable]:"colors.gray.700",[kx.variable]:"colors.whiteAlpha.900",_dark:{[Sx.variable]:"colors.gray.300",[kx.variable]:"colors.gray.900"},[Cx.variable]:Sx.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:Ax,definePartsStyle:Tx}=Tr(db.keys),Px=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=Vb(my(),my("1rem","rgba(0,0,0,0.1)"))(e),a=Vb(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${py(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},jx={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Rx=e=>({bg:Vb("gray.100","whiteAlpha.300")(e)}),Ox=e=>({transitionProperty:"common",transitionDuration:"slow",...Px(e)}),Mx=Tx(e=>({label:jx,filledTrack:Ox(e),track:Rx(e)})),zx=Ax({sizes:{xs:Tx({track:{h:"1"}}),sm:Tx({track:{h:"2"}}),md:Tx({track:{h:"3"}}),lg:Tx({track:{h:"4"}})},baseStyle:Mx,defaultProps:{size:"md",colorScheme:"blue"}});function Fx(e,...t){return"function"==typeof e?e(...t):e}var Ix,Dx,Bx,Nx,Lx,$x,Wx,Vx,qx,{definePartsStyle:Hx,defineMultiStyleConfig:Ux}=Tr(eb.keys),Qx=Gt("checkbox-size"),Gx=e=>{const{colorScheme:t}=e;return{w:Qx.reference,h:Qx.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Vb(`${t}.500`,`${t}.200`)(e),borderColor:Vb(`${t}.500`,`${t}.200`)(e),color:Vb("white","gray.900")(e),_hover:{bg:Vb(`${t}.600`,`${t}.300`)(e),borderColor:Vb(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Vb("gray.200","transparent")(e),bg:Vb("gray.200","whiteAlpha.300")(e),color:Vb("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Vb(`${t}.500`,`${t}.200`)(e),borderColor:Vb(`${t}.500`,`${t}.200`)(e),color:Vb("white","gray.900")(e)},_disabled:{bg:Vb("gray.100","whiteAlpha.100")(e),borderColor:Vb("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Vb("red.500","red.300")(e)}}},Xx={_disabled:{cursor:"not-allowed"}},Yx={userSelect:"none",_disabled:{opacity:.4}},Kx={transitionProperty:"transform",transitionDuration:"normal"},Zx=Ux({baseStyle:Hx(e=>({icon:Kx,container:Xx,control:Fx(Gx,e),label:Yx})),sizes:{sm:Hx({control:{[Qx.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Hx({control:{[Qx.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Hx({control:{[Qx.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Jx,definePartsStyle:ew}=Tr(fb.keys),tw=e=>{var t;const r=null==(t=Fx(Zx.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},rw=ew(e=>{var t,r,n,o;return{label:null==(r=(t=Zx).baseStyle)?void 0:r.call(t,e).label,container:null==(o=(n=Zx).baseStyle)?void 0:o.call(n,e).container,control:tw(e)}}),nw=Jx({baseStyle:rw,sizes:{md:ew({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ew({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ew({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ow,definePartsStyle:iw}=Tr(pb.keys),aw=Gt("select-bg"),sw={paddingInlineEnd:"8"},lw=ow({baseStyle:iw({field:{...null==(Ix=bx.baseStyle)?void 0:Ix.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:aw.reference,[aw.variable]:"colors.white",_dark:{[aw.variable]:"colors.gray.700"},"> option, > optgroup":{bg:aw.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(Dx=bx.sizes)?void 0:Dx.lg,field:{...null==(Bx=bx.sizes)?void 0:Bx.lg.field,...sw}},md:{...null==(Nx=bx.sizes)?void 0:Nx.md,field:{...null==(Lx=bx.sizes)?void 0:Lx.md.field,...sw}},sm:{...null==($x=bx.sizes)?void 0:$x.sm,field:{...null==(Wx=bx.sizes)?void 0:Wx.sm.field,...sw}},xs:{...null==(Vx=bx.sizes)?void 0:Vx.xs,field:{...null==(qx=bx.sizes)?void 0:qx.xs.field,...sw},icon:{insetEnd:"1"}}},variants:bx.variants,defaultProps:bx.defaultProps}),cw=Gt("skeleton-start-color"),uw=Gt("skeleton-end-color"),dw={baseStyle:{[cw.variable]:"colors.gray.100",[uw.variable]:"colors.gray.400",_dark:{[cw.variable]:"colors.gray.800",[uw.variable]:"colors.gray.600"},background:cw.reference,borderColor:uw.reference,opacity:.7,borderRadius:"sm"}},fw=Gt("skip-link-bg"),pw={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[fw.variable]:"colors.white",_dark:{[fw.variable]:"colors.gray.700"},bg:fw.reference}}},{defineMultiStyleConfig:hw,definePartsStyle:mw}=Tr(hb.keys),vw=Gt("slider-thumb-size"),gw=Gt("slider-track-size"),bw=Gt("slider-bg"),yw=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...qb({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},xw=e=>({...qb({orientation:e.orientation,horizontal:{h:gw.reference},vertical:{w:gw.reference}}),overflow:"hidden",borderRadius:"sm",[bw.variable]:"colors.gray.200",_dark:{[bw.variable]:"colors.whiteAlpha.200"},_disabled:{[bw.variable]:"colors.gray.300",_dark:{[bw.variable]:"colors.whiteAlpha.300"}},bg:bw.reference}),ww=e=>{const{orientation:t}=e;return{...qb({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:vw.reference,h:vw.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"},_disabled:{bg:"gray.300"}}},Sw=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[bw.variable]:`colors.${t}.500`,_dark:{[bw.variable]:`colors.${t}.200`},bg:bw.reference}},kw=hw({baseStyle:mw(e=>({container:yw(e),track:xw(e),thumb:ww(e),filledTrack:Sw(e)})),sizes:{lg:mw({container:{[vw.variable]:"sizes.4",[gw.variable]:"sizes.1"}}),md:mw({container:{[vw.variable]:"sizes.3.5",[gw.variable]:"sizes.1"}}),sm:mw({container:{[vw.variable]:"sizes.2.5",[gw.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Cw=kb("spinner-size"),_w={baseStyle:{width:[Cw.reference],height:[Cw.reference]},sizes:{xs:{[Cw.variable]:"sizes.3"},sm:{[Cw.variable]:"sizes.4"},md:{[Cw.variable]:"sizes.6"},lg:{[Cw.variable]:"sizes.8"},xl:{[Cw.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Ew,definePartsStyle:Aw}=Tr(mb.keys),Tw=Ew({baseStyle:Aw({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:Aw({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Pw=Gt("kbd-bg"),jw={baseStyle:{[Pw.variable]:"colors.gray.100",_dark:{[Pw.variable]:"colors.whiteAlpha.100"},bg:Pw.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:Rw,definePartsStyle:Ow}=Tr(ab.keys),Mw=Rw({baseStyle:Ow({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:zw,definePartsStyle:Fw}=Tr(sb.keys),Iw=Gt("menu-bg"),Dw=Gt("menu-shadow"),Bw=zw({baseStyle:Fw({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[Iw.variable]:"#fff",[Dw.variable]:"shadows.sm",_dark:{[Iw.variable]:"colors.gray.700",[Dw.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Iw.reference,boxShadow:Dw.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Iw.variable]:"colors.gray.100",_dark:{[Iw.variable]:"colors.whiteAlpha.100"}},_active:{[Iw.variable]:"colors.gray.200",_dark:{[Iw.variable]:"colors.whiteAlpha.200"}},_expanded:{[Iw.variable]:"colors.gray.100",_dark:{[Iw.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Iw.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:Nw,definePartsStyle:Lw}=Tr(lb.keys),$w=Gt("modal-bg"),Ww=Gt("modal-shadow"),Vw={bg:"blackAlpha.600",zIndex:"modal"},qw=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}},Hw=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[$w.variable]:"colors.white",[Ww.variable]:"shadows.lg",_dark:{[$w.variable]:"colors.gray.700",[Ww.variable]:"shadows.dark-lg"},bg:$w.reference,boxShadow:Ww.reference}},Uw={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Qw={position:"absolute",top:"2",insetEnd:"3"},Gw=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},Xw={px:"6",py:"4"};function Yw(e){return Lw("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Kw=Nw({baseStyle:Lw(e=>({overlay:Vw,dialogContainer:Fx(qw,e),dialog:Fx(Hw,e),header:Uw,closeButton:Qw,body:Fx(Gw,e),footer:Xw})),sizes:{xs:Yw("xs"),sm:Yw("sm"),md:Yw("md"),lg:Yw("lg"),xl:Yw("xl"),"2xl":Yw("2xl"),"3xl":Yw("3xl"),"4xl":Yw("4xl"),"5xl":Yw("5xl"),"6xl":Yw("6xl"),full:Yw("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:Zw,definePartsStyle:Jw}=Tr(cb.keys),eS=kb("number-input-stepper-width"),tS=kb("number-input-input-padding"),rS=Rb(eS).add("0.5rem").toString(),nS=kb("number-input-bg"),oS=kb("number-input-color"),iS=kb("number-input-border-color"),aS={[eS.variable]:"sizes.6",[tS.variable]:rS},sS=e=>{var t,r;return null!=(r=null==(t=Fx(bx.baseStyle,e))?void 0:t.field)?r:{}},lS={width:eS.reference},cS={borderStart:"1px solid",borderStartColor:iS.reference,color:oS.reference,bg:nS.reference,[oS.variable]:"colors.chakra-body-text",[iS.variable]:"colors.chakra-border-color",_dark:{[oS.variable]:"colors.whiteAlpha.800",[iS.variable]:"colors.whiteAlpha.300"},_active:{[nS.variable]:"colors.gray.200",_dark:{[nS.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},uS=Jw(e=>{var t;return{root:aS,field:null!=(t=Fx(sS,e))?t:{},stepperGroup:lS,stepper:cS}});function dS(e){var t,r,n;const o=null==(t=bx.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=o.field)?void 0:r.fontSize)?n:"md",s=Ig.fontSizes[a];return Jw({field:{...o.field,paddingInlineEnd:tS.reference,verticalAlign:"top"},stepper:{fontSize:Rb(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var fS,pS,hS,mS=Zw({baseStyle:uS,sizes:{xs:dS("xs"),sm:dS("sm"),md:dS("md"),lg:dS("lg")},variants:bx.variants,defaultProps:bx.defaultProps}),vS={...null==(fS=bx.baseStyle)?void 0:fS.field,textAlign:"center"},gS={outline:e=>{var t,r,n;return null!=(n=null==(r=Fx(null==(t=bx.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}},flushed:e=>{var t,r,n;return null!=(n=null==(r=Fx(null==(t=bx.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}},filled:e=>{var t,r,n;return null!=(n=null==(r=Fx(null==(t=bx.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}},unstyled:null!=(hS=null==(pS=bx.variants)?void 0:pS.unstyled.field)?hS:{}},bS={baseStyle:vS,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:gS,defaultProps:bx.defaultProps},{defineMultiStyleConfig:yS,definePartsStyle:xS}=Tr(ub.keys),wS=kb("popper-bg"),SS=kb("popper-arrow-bg"),kS=kb("popper-arrow-shadow-color"),CS=yS({baseStyle:xS({popper:{zIndex:10},content:{[wS.variable]:"colors.white",bg:wS.reference,[SS.variable]:wS.reference,[kS.variable]:"colors.gray.200",_dark:{[wS.variable]:"colors.gray.700",[kS.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}})}),{definePartsStyle:_S,defineMultiStyleConfig:ES}=Tr(tb.keys),AS=Gt("drawer-bg"),TS=Gt("drawer-box-shadow");function PS(e){return _S("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var jS={bg:"blackAlpha.600",zIndex:"modal"},RS={display:"flex",zIndex:"modal",justifyContent:"center"},OS=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[AS.variable]:"colors.white",[TS.variable]:"shadows.lg",_dark:{[AS.variable]:"colors.gray.700",[TS.variable]:"shadows.dark-lg"},bg:AS.reference,boxShadow:TS.reference}},MS={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},zS={position:"absolute",top:"2",insetEnd:"3"},FS={px:"6",py:"2",flex:"1",overflow:"auto"},IS={px:"6",py:"4"},DS=ES({baseStyle:_S(e=>({overlay:jS,dialogContainer:RS,dialog:Fx(OS,e),header:MS,closeButton:zS,body:FS,footer:IS})),sizes:{xs:PS("xs"),sm:PS("md"),md:PS("lg"),lg:PS("2xl"),xl:PS("4xl"),full:PS("full")},defaultProps:{size:"xs"}}),{definePartsStyle:BS,defineMultiStyleConfig:NS}=Tr(rb.keys),LS=NS({baseStyle:BS({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:$S,defineMultiStyleConfig:WS}=Tr(nb.keys),VS=Gt("form-control-color"),qS=WS({baseStyle:$S({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[VS.variable]:"colors.red.500",_dark:{[VS.variable]:"colors.red.300"},color:VS.reference},helperText:{mt:"2",[VS.variable]:"colors.gray.600",_dark:{[VS.variable]:"colors.whiteAlpha.600"},color:VS.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:HS,defineMultiStyleConfig:US}=Tr(ob.keys),QS=Gt("form-error-color"),GS=US({baseStyle:HS({text:{[QS.variable]:"colors.red.500",_dark:{[QS.variable]:"colors.red.300"},color:QS.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[QS.variable]:"colors.red.500",_dark:{[QS.variable]:"colors.red.300"},color:QS.reference}})}),{defineMultiStyleConfig:XS,definePartsStyle:YS}=Tr(Jg.keys),KS=Gt("breadcrumb-link-decor"),ZS=XS({baseStyle:YS({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:KS.reference,[KS.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[KS.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),JS=e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:Vb("gray.800","whiteAlpha.900")(e),_hover:{bg:Vb("gray.100","whiteAlpha.200")(e)},_active:{bg:Vb("gray.200","whiteAlpha.300")(e)}};const n=hy(`${t}.200`,.12)(r),o=hy(`${t}.200`,.24)(r);return{color:Vb(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Vb(`${t}.50`,n)(e)},_active:{bg:Vb(`${t}.100`,o)(e)}}},ek={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},tk={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:JS,outline:e=>{const{colorScheme:t}=e,r=Vb("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"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"},...Fx(JS,e)}},solid:e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=Vb("gray.100","whiteAlpha.200")(e);return{bg:t,color:Vb("gray.800","whiteAlpha.900")(e),_hover:{bg:Vb("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Vb("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=ek[r])?t:{},s=Vb(n,`${r}.200`)(e);return{bg:s,color:Vb(o,"gray.800")(e),_hover:{bg:Vb(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:Vb(a,`${r}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Vb(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Vb(`${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:rk,defineMultiStyleConfig:nk}=Tr(xb.keys),ok=Gt("card-bg"),ik=Gt("card-padding"),ak=Gt("card-shadow"),sk=Gt("card-radius"),lk=Gt("card-border-width","0"),ck=Gt("card-border-color"),uk=rk({container:{[ok.variable]:"colors.chakra-body-bg",backgroundColor:ok.reference,boxShadow:ak.reference,borderRadius:sk.reference,color:"chakra-body-text",borderWidth:lk.reference,borderColor:ck.reference},body:{padding:ik.reference,flex:"1 1 0%"},header:{padding:ik.reference},footer:{padding:ik.reference}}),dk={sm:rk({container:{[sk.variable]:"radii.base",[ik.variable]:"space.3"}}),md:rk({container:{[sk.variable]:"radii.md",[ik.variable]:"space.5"}}),lg:rk({container:{[sk.variable]:"radii.xl",[ik.variable]:"space.7"}})},fk=nk({baseStyle:uk,variants:{elevated:rk({container:{[ak.variable]:"shadows.base",_dark:{[ok.variable]:"colors.gray.700"}}}),outline:rk({container:{[lk.variable]:"1px",[ck.variable]:"colors.chakra-border-color"}}),filled:rk({container:{[ok.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ik.variable]:0},header:{[ik.variable]:0},footer:{[ik.variable]:0}}},sizes:dk,defaultProps:{variant:"elevated",size:"md"}}),pk=kb("close-button-size"),hk=kb("close-button-bg"),mk={baseStyle:{w:[pk.reference],h:[pk.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[hk.variable]:"colors.blackAlpha.100",_dark:{[hk.variable]:"colors.whiteAlpha.100"}},_active:{[hk.variable]:"colors.blackAlpha.200",_dark:{[hk.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:hk.reference},sizes:{lg:{[pk.variable]:"sizes.10",fontSize:"md"},md:{[pk.variable]:"sizes.8",fontSize:"xs"},sm:{[pk.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:vk,defaultProps:gk}=zy,bk={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:My.bg.reference,color:My.color.reference,boxShadow:My.shadow.reference},variants:vk,defaultProps:gk},{definePartsStyle:yk,defineMultiStyleConfig:xk}=Tr(Yg.keys),wk=xk({baseStyle:yk({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"}})}),{definePartsStyle:Sk,defineMultiStyleConfig:kk}=Tr(Kg.keys),Ck=Gt("alert-fg"),_k=Gt("alert-bg"),Ek=Sk({container:{bg:_k.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ck.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ck.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ak(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:hy(`${r}.200`,.16)(t)}}var Tk=Sk(e=>{const{colorScheme:t}=e,r=Ak(e);return{container:{[Ck.variable]:`colors.${t}.600`,[_k.variable]:r.light,_dark:{[Ck.variable]:`colors.${t}.200`,[_k.variable]:r.dark}}}}),Pk=Sk(e=>{const{colorScheme:t}=e,r=Ak(e);return{container:{[Ck.variable]:`colors.${t}.600`,[_k.variable]:r.light,_dark:{[Ck.variable]:`colors.${t}.200`,[_k.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ck.reference}}}),jk=Sk(e=>{const{colorScheme:t}=e,r=Ak(e);return{container:{[Ck.variable]:`colors.${t}.600`,[_k.variable]:r.light,_dark:{[Ck.variable]:`colors.${t}.200`,[_k.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ck.reference}}}),Rk=Sk(e=>{const{colorScheme:t}=e;return{container:{[Ck.variable]:"colors.white",[_k.variable]:`colors.${t}.600`,_dark:{[Ck.variable]:"colors.gray.900",[_k.variable]:`colors.${t}.200`},color:Ck.reference}}}),Ok=kk({baseStyle:Ek,variants:{subtle:Tk,"left-accent":Pk,"top-accent":jk,solid:Rk},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Mk,defineMultiStyleConfig:zk}=Tr(Zg.keys),Fk=Gt("avatar-border-color"),Ik=Gt("avatar-bg"),Dk=Gt("avatar-font-size"),Bk=Gt("avatar-size"),Nk={borderRadius:"full",border:"0.2em solid",borderColor:Fk.reference,[Fk.variable]:"white",_dark:{[Fk.variable]:"colors.gray.800"}},Lk={bg:Ik.reference,fontSize:Dk.reference,width:Bk.reference,height:Bk.reference,lineHeight:"1",[Ik.variable]:"colors.gray.200",_dark:{[Ik.variable]:"colors.whiteAlpha.400"}},$k=e=>{const{name:t,theme:r}=e,n=t?function(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(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 r="#";for(let e=0;e<3;e+=1)r+=`00${(t>>8*e&255).toString(16)}`.substr(-2);return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var r}({string:t}):"colors.gray.400",o=(e=>t=>"dark"===(e=>t=>{const r=(e=>{const[t,r,n]=ty(e);return(299*t+587*r+114*n)/1e3})(py(t,e));return r<128?"dark":"light"})(e)(t))(n)(r);let i="white";return o||(i="gray.800"),{bg:Ik.reference,fontSize:Dk.reference,color:i,borderColor:Fk.reference,verticalAlign:"top",width:Bk.reference,height:Bk.reference,"&:not([data-loaded])":{[Ik.variable]:n},[Fk.variable]:"colors.white",_dark:{[Fk.variable]:"colors.gray.800"}}},Wk={fontSize:Dk.reference,lineHeight:"1"};function Vk(e){const t="100%"!==e?Bg[e]:void 0;return Mk({container:{[Bk.variable]:null!=t?t:e,[Dk.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Bk.variable]:null!=t?t:e,[Dk.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var qk={Accordion:wk,Alert:Ok,Avatar:zk({baseStyle:Mk(e=>({badge:Fx(Nk,e),excessLabel:Fx(Lk,e),container:Fx($k,e),label:Wk})),sizes:{"2xs":Vk(4),xs:Vk(6),sm:Vk(8),md:Vk(12),lg:Vk(16),xl:Vk(24),"2xl":Vk(32),full:Vk("100%")},defaultProps:{size:"md"}}),Badge:zy,Breadcrumb:ZS,Button:tk,Checkbox:Zx,CloseButton:mk,Code:bk,Container:{baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Divider:{baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},Drawer:DS,Editable:LS,Form:qS,FormError:GS,FormLabel:{baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Heading:{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"}},Input:bx,Kbd:jw,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:Mw,Menu:Bw,Modal:Kw,NumberInput:mS,PinInput:bS,Popover:CS,Progress:zx,Radio:nw,Select:lw,Skeleton:dw,SkipLink:pw,Slider:kw,Spinner:_w,Stat:Tw,Switch:Wb,Table:Kb,Tabs:Oy,Tag:Qy,Textarea:wx,Tooltip:Ex,Card:fk,Stepper:Gg},Hk={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"}}},Uk={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"}}},Qk={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Gk={semanticTokens:Hk,direction:"ltr",...Ng,components:qk,styles:Uk,config:Qk},Xk={semanticTokens:Hk,direction:"ltr",components:{},...Ng,styles:Uk,config:Qk},Yk=e=>function({children:t,theme:r=e,toastOptions:n,...o}){return(0,m.jsxs)(Fg,{theme:r,...o,children:[(0,m.jsx)(sf,{value:null==n?void 0:n.defaultOptions,children:t}),(0,m.jsx)(cf,{...n})]})},Kk=Yk(Gk);Yk(Xk);const Zk=({onTabChange:t})=>{const r=(0,e.useMemo)(()=>[(0,o.__)("All","user-registration"),(0,o.__)("Free","user-registration"),(0,o.__)("Premium","user-registration")],[]);return(0,m.jsx)(xg,{variant:"unstyled",ml:"auto",onChange:t,children:(0,m.jsx)(wg,{gap:"8px",children:r.map(e=>(0,m.jsx)(Sg,{_selected:{color:"#475bb2",borderBottom:"2px solid",borderColor:"#475bb2"},color:"#383838",fontWeight:"500",fontSize:"16px",lineHeight:"20px",px:{base:1,md:2},boxShadow:"none !important",children:e},e))})})},Jk=()=>{const[t,r]=(0,e.useState)((0,o.__)("All","user-registration"));return(0,m.jsx)(Kk,{children:(0,m.jsx)(fn,{border:"1px solid #e1e1e1",borderRadius:"13px",backgroundColor:"white",padding:"24px 28px",children:(0,m.jsxs)(fn,{gap:"24px",display:"flex",flexDirection:"column",children:[(0,m.jsxs)(Bn,{align:"center",bg:"white",direction:{base:"column",md:"row"},borderBottom:"1px solid #e1e1e1",padding:"0 0 10px",boxShadow:"none",children:[(0,m.jsxs)(Bn,{gap:"24px",children:[(0,m.jsx)(Bn,{gap:"16px",children:(0,m.jsx)(Kn,{textAlign:{base:"center",md:"left"},lineHeight:"30px",fontWeight:"600",margin:"0",fontSize:{base:"16px",md:"18px",lg:"20px"},color:"#222222",children:(0,o.__)("Add New Form","user-registration")})}),(0,m.jsx)(no,{style:{border:"1px solid #475bb2",borderRadius:"4px",transition:"all .3s ease-in-out"},color:"#475bb2",backgroundColor:"#f6f7f7",fontWeight:"500",height:"34px",padding:"0 12px",alignContent:"center",fontSize:"14px",lineHeight:"20px",variant:"outline",onClick:()=>{const e=new URL(window.location.href);e.searchParams.set("refresh",Date.now().toString()),window.location.href=e.toString()},textDecoration:"none",boxSizing:"border-box",width:{base:"full",md:"auto"},className:"chakra-link ",display:{base:"none",md:"inline-flex"},gap:"4px",_hover:{backgroundColor:"#475BB2",color:"white"},children:(0,o.__)("Refresh Templates","user-registration")})]}),(0,m.jsx)(Zk,{onTabChange:e=>{const t=[(0,o.__)("All","user-registration"),(0,o.__)("Free","user-registration"),(0,o.__)("Premium","user-registration")];r(t[e])}})]}),(0,m.jsx)(fn,{bg:"white",p:"0",rounded:"md",gap:"24px",children:(0,m.jsxs)(Dn,{align:"start",gap:"4px",children:[(0,m.jsx)(Kn,{as:"h2",fontSize:"16px",lineHeight:"26px",m:0,color:"#26262E",fontWeight:"500",fontFamily:"inherit",children:(0,o.__)("Select a Template","user-registration")}),(0,m.jsx)(Nn,{fontSize:"14px",lineHeight:"25px",fontWeight:"400",color:"#4D4D4D",m:0,children:(0,o.__)("To get started quickly, you can pick from our ready-made templates, begin with a blank form, or design your own.","user-registration")})]})}),(0,m.jsx)(fn,{bg:"white",rounded:"md",gap:"24px",boxShadow:"none",children:(0,m.jsx)(Yv,{filter:t})})]})})})};var eC=class extends wv{constructor(e={}){super(),this.config=e,this.#V=new Map}#V;build(e,t,r){const n=t.queryKey,o=t.queryHash??iv(n,t);let i=this.get(o);return i||(i=new Iv({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#V.has(e.queryHash)||(this.#V.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#V.get(e.queryHash);t&&(e.destroy(),t===e&&this.#V.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ym.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#V.get(e)}getAll(){return[...this.#V.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>nv(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>nv(e,t)):t}notify(e){Ym.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ym.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ym.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},tC=class extends wv{constructor(e={}){super(),this.config=e,this.#q=new Set,this.#H=new Map,this.#U=0}#q;#H;#U;build(e,t,r){const n=new Pv({client:e,mutationCache:this,mutationId:++this.#U,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#q.add(e);const t=rC(e);if("string"==typeof t){const r=this.#H.get(t);r?r.push(e):this.#H.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#q.delete(e)){const t=rC(e);if("string"==typeof t){const r=this.#H.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#H.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=rC(e);if("string"==typeof t){const r=this.#H.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=rC(e);if("string"==typeof t){const r=this.#H.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Ym.batch(()=>{this.#q.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#q.clear(),this.#H.clear()})}getAll(){return Array.from(this.#q)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>ov(t,e))}findAll(e={}){return this.getAll().filter(t=>ov(e,t))}notify(e){Ym.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Ym.batch(()=>Promise.all(e.map(e=>e.continue().catch(Zm))))}};function rC(e){return e.options.scope?.id}function nC(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=e=>{!function(e,r,n){let o,i=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t.signal,i||(i=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)})}(e,0,()=>r=!0)},u=bv(t.options,t.fetchOptions),d=async(e,n,o)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return c(e),e})(),a=await u(i),{maxPages:s}=t.options,l=o?vv:mv;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,n,s)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:a},r=(e?iC:oC)(n,t);s=await d(t,r,e)}else{const t=e??i.length;do{const e=0===l?a[0]??n.initialPageParam:oC(n,s);if(l>0&&null==e)break;s=await d(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function oC(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function iC(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var aC=function(){return null};const sC=new class{#Q;#c;#x;#G;#X;#Y;#K;#Z;constructor(e={}){this.#Q=e.queryCache||new eC,this.#c=e.mutationCache||new tC,this.#x=e.defaultOptions||{},this.#G=new Map,this.#X=new Map,this.#Y=0}mount(){this.#Y++,1===this.#Y&&(this.#K=Sv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#Q.onFocus())}),this.#Z=kv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#Q.onOnline())}))}unmount(){this.#Y--,0===this.#Y&&(this.#K?.(),this.#K=void 0,this.#Z?.(),this.#Z=void 0)}isFetching(e){return this.#Q.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#c.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#Q.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#Q.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(tv(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#Q.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#Q.get(n.queryHash),i=o?.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==a)return this.#Q.build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Ym.batch(()=>this.#Q.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#Q.get(t.queryHash)?.state}removeQueries(e){const t=this.#Q;Ym.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#Q;return Ym.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ym.batch(()=>this.#Q.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Zm).catch(Zm)}invalidateQueries(e,t={}){return Ym.batch(()=>(this.#Q.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ym.batch(()=>this.#Q.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Zm)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(Zm)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#Q.build(this,t);return r.isStaleByTime(tv(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zm).catch(Zm)}fetchInfiniteQuery(e){return e.behavior=nC(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zm).catch(Zm)}ensureInfiniteQueryData(e){return e.behavior=nC(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kv.isOnline()?this.#c.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#Q}getMutationCache(){return this.#c}getDefaultOptions(){return this.#x}setDefaultOptions(e){this.#x=e}setQueryDefaults(e,t){this.#G.set(av(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#G.values()],r={};return t.forEach(t=>{sv(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#X.set(av(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#X.values()],r={};return t.forEach(t=>{sv(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#x.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=iv(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gv&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#x.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#Q.clear(),this.#c.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}}});(0,n.createRoot)(document.getElementById("user-registration-form-templates")).render((0,m.jsxs)(Um,{client:sC,children:[(0,m.jsx)(Jk,{}),(0,m.jsx)(aC,{initialIsOpen:!1})]}))})()})();
Copyright ©2021 || Defacer Indonesia