Files
IPB/applications/core/interface/pagebuilder/assets/main-6937ae1a.js
T
2025-12-19 16:47:22 -08:00

79 lines
288 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var v2=Object.defineProperty;var w2=(e,t,r)=>t in e?v2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Qh=(e,t,r)=>(w2(e,typeof t!="symbol"?t+"":t,r),r);const y2="modulepreload",_2=function(e){return"/"+e},qh={},S2=function(t,r,l){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=_2(s),s in qh)return;qh[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!l)for(let y=o.length-1;y>=0;y--){const w=o[y];if(w.href===s&&(!c||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":y2,c||(m.as="script",m.crossOrigin=""),m.href=s,document.head.appendChild(m),c)return new Promise((y,w)=>{m.addEventListener("load",y),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s})};var fl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o0={exports:{}},ss={},u0={exports:{}},he={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var no=Symbol.for("react.element"),C2=Symbol.for("react.portal"),E2=Symbol.for("react.fragment"),k2=Symbol.for("react.strict_mode"),L2=Symbol.for("react.profiler"),R2=Symbol.for("react.provider"),I2=Symbol.for("react.context"),T2=Symbol.for("react.forward_ref"),O2=Symbol.for("react.suspense"),A2=Symbol.for("react.memo"),P2=Symbol.for("react.lazy"),Kh=Symbol.iterator;function N2(e){return e===null||typeof e!="object"?null:(e=Kh&&e[Kh]||e["@@iterator"],typeof e=="function"?e:null)}var s0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},a0=Object.assign,c0={};function Di(e,t,r){this.props=e,this.context=t,this.refs=c0,this.updater=r||s0}Di.prototype.isReactComponent={};Di.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Di.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function f0(){}f0.prototype=Di.prototype;function mf(e,t,r){this.props=e,this.context=t,this.refs=c0,this.updater=r||s0}var vf=mf.prototype=new f0;vf.constructor=mf;a0(vf,Di.prototype);vf.isPureReactComponent=!0;var Yh=Array.isArray,d0=Object.prototype.hasOwnProperty,wf={current:null},p0={key:!0,ref:!0,__self:!0,__source:!0};function h0(e,t,r){var l,o={},s=null,c=null;if(t!=null)for(l in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(s=""+t.key),t)d0.call(t,l)&&!p0.hasOwnProperty(l)&&(o[l]=t[l]);var f=arguments.length-2;if(f===1)o.children=r;else if(1<f){for(var p=Array(f),m=0;m<f;m++)p[m]=arguments[m+2];o.children=p}if(e&&e.defaultProps)for(l in f=e.defaultProps,f)o[l]===void 0&&(o[l]=f[l]);return{$$typeof:no,type:e,key:s,ref:c,props:o,_owner:wf.current}}function M2(e,t){return{$$typeof:no,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yf(e){return typeof e=="object"&&e!==null&&e.$$typeof===no}function B2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Zh=/\/+/g;function Ga(e,t){return typeof e=="object"&&e!==null&&e.key!=null?B2(""+e.key):t.toString(36)}function Su(e,t,r,l,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case no:case C2:c=!0}}if(c)return c=e,o=o(c),e=l===""?"."+Ga(c,0):l,Yh(o)?(r="",e!=null&&(r=e.replace(Zh,"$&/")+"/"),Su(o,t,r,"",function(m){return m})):o!=null&&(yf(o)&&(o=M2(o,r+(!o.key||c&&c.key===o.key?"":(""+o.key).replace(Zh,"$&/")+"/")+e)),t.push(o)),1;if(c=0,l=l===""?".":l+":",Yh(e))for(var f=0;f<e.length;f++){s=e[f];var p=l+Ga(s,f);c+=Su(s,t,r,p,o)}else if(p=N2(e),typeof p=="function")for(e=p.call(e),f=0;!(s=e.next()).done;)s=s.value,p=l+Ga(s,f++),c+=Su(s,t,r,p,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function nu(e,t,r){if(e==null)return e;var l=[],o=0;return Su(e,l,"","",function(s){return t.call(r,s,o++)}),l}function W2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var wt={current:null},xu={transition:null},z2={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:xu,ReactCurrentOwner:wf};he.Children={map:nu,forEach:function(e,t,r){nu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return nu(e,function(){t++}),t},toArray:function(e){return nu(e,function(t){return t})||[]},only:function(e){if(!yf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=Di;he.Fragment=E2;he.Profiler=L2;he.PureComponent=mf;he.StrictMode=k2;he.Suspense=O2;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z2;he.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l=a0({},e.props),o=e.key,s=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,c=wf.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(p in t)d0.call(t,p)&&!p0.hasOwnProperty(p)&&(l[p]=t[p]===void 0&&f!==void 0?f[p]:t[p])}var p=arguments.length-2;if(p===1)l.children=r;else if(1<p){f=Array(p);for(var m=0;m<p;m++)f[m]=arguments[m+2];l.children=f}return{$$typeof:no,type:e.type,key:o,ref:s,props:l,_owner:c}};he.createContext=function(e){return e={$$typeof:I2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:R2,_context:e},e.Consumer=e};he.createElement=h0;he.createFactory=function(e){var t=h0.bind(null,e);return t.type=e,t};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:T2,render:e}};he.isValidElement=yf;he.lazy=function(e){return{$$typeof:P2,_payload:{_status:-1,_result:e},_init:W2}};he.memo=function(e,t){return{$$typeof:A2,type:e,compare:t===void 0?null:t}};he.startTransition=function(e){var t=xu.transition;xu.transition={};try{e()}finally{xu.transition=t}};he.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};he.useCallback=function(e,t){return wt.current.useCallback(e,t)};he.useContext=function(e){return wt.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return wt.current.useDeferredValue(e)};he.useEffect=function(e,t){return wt.current.useEffect(e,t)};he.useId=function(){return wt.current.useId()};he.useImperativeHandle=function(e,t,r){return wt.current.useImperativeHandle(e,t,r)};he.useInsertionEffect=function(e,t){return wt.current.useInsertionEffect(e,t)};he.useLayoutEffect=function(e,t){return wt.current.useLayoutEffect(e,t)};he.useMemo=function(e,t){return wt.current.useMemo(e,t)};he.useReducer=function(e,t,r){return wt.current.useReducer(e,t,r)};he.useRef=function(e){return wt.current.useRef(e)};he.useState=function(e){return wt.current.useState(e)};he.useSyncExternalStore=function(e,t,r){return wt.current.useSyncExternalStore(e,t,r)};he.useTransition=function(){return wt.current.useTransition()};he.version="18.2.0";u0.exports=he;var X=u0.exports;const D2=x2(X);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $2=X,F2=Symbol.for("react.element"),U2=Symbol.for("react.fragment"),j2=Object.prototype.hasOwnProperty,H2=$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V2={key:!0,ref:!0,__self:!0,__source:!0};function g0(e,t,r){var l,o={},s=null,c=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(c=t.ref);for(l in t)j2.call(t,l)&&!V2.hasOwnProperty(l)&&(o[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps,t)o[l]===void 0&&(o[l]=t[l]);return{$$typeof:F2,type:e,key:s,ref:c,props:o,_owner:H2.current}}ss.Fragment=U2;ss.jsx=g0;ss.jsxs=g0;o0.exports=ss;var I=o0.exports,yc={},m0={exports:{}},Ft={},v0={exports:{}},w0={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(j,q){var G=j.length;j.push(q);e:for(;0<G;){var Z=G-1>>>1,ve=j[Z];if(0<o(ve,q))j[Z]=q,j[G]=ve,G=Z;else break e}}function r(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var q=j[0],G=j.pop();if(G!==q){j[0]=G;e:for(var Z=0,ve=j.length,je=ve>>>1;Z<je;){var Ee=2*(Z+1)-1,ft=j[Ee],dt=Ee+1,Tt=j[dt];if(0>o(ft,G))dt<ve&&0>o(Tt,ft)?(j[Z]=Tt,j[dt]=G,Z=dt):(j[Z]=ft,j[Ee]=G,Z=Ee);else if(dt<ve&&0>o(Tt,G))j[Z]=Tt,j[dt]=G,Z=dt;else break e}}return q}function o(j,q){var G=j.sortIndex-q.sortIndex;return G!==0?G:j.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],m=[],y=1,w=null,_=3,k=!1,A=!1,T=!1,B=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(j){for(var q=r(m);q!==null;){if(q.callback===null)l(m);else if(q.startTime<=j)l(m),q.sortIndex=q.expirationTime,t(p,q);else break;q=r(m)}}function O(j){if(T=!1,C(j),!A)if(r(p)!==null)A=!0,it(M);else{var q=r(m);q!==null&&fe(O,q.startTime-j)}}function M(j,q){A=!1,T&&(T=!1,v(z),z=-1),k=!0;var G=_;try{for(C(q),w=r(p);w!==null&&(!(w.expirationTime>q)||j&&!ee());){var Z=w.callback;if(typeof Z=="function"){w.callback=null,_=w.priorityLevel;var ve=Z(w.expirationTime<=q);q=e.unstable_now(),typeof ve=="function"?w.callback=ve:w===r(p)&&l(p),C(q)}else l(p);w=r(p)}if(w!==null)var je=!0;else{var Ee=r(m);Ee!==null&&fe(O,Ee.startTime-q),je=!1}return je}finally{w=null,_=G,k=!1}}var F=!1,P=null,z=-1,J=5,H=-1;function ee(){return!(e.unstable_now()-H<J)}function le(){if(P!==null){var j=e.unstable_now();H=j;var q=!0;try{q=P(!0,j)}finally{q?ae():(F=!1,P=null)}}else F=!1}var ae;if(typeof S=="function")ae=function(){S(le)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,me=_e.port2;_e.port1.onmessage=le,ae=function(){me.postMessage(null)}}else ae=function(){B(le,0)};function it(j){P=j,F||(F=!0,ae())}function fe(j,q){z=B(function(){j(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){A||k||(A=!0,it(M))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(j){switch(_){case 1:case 2:case 3:var q=3;break;default:q=_}var G=_;_=q;try{return j()}finally{_=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=_;_=j;try{return q()}finally{_=G}},e.unstable_scheduleCallback=function(j,q,G){var Z=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Z+G:Z):G=Z,j){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=G+ve,j={id:y++,callback:q,priorityLevel:j,startTime:G,expirationTime:ve,sortIndex:-1},G>Z?(j.sortIndex=G,t(m,j),r(p)===null&&j===r(m)&&(T?(v(z),z=-1):T=!0,fe(O,G-Z))):(j.sortIndex=ve,t(p,j),A||k||(A=!0,it(M))),j},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(j){var q=_;return function(){var G=_;_=q;try{return j.apply(this,arguments)}finally{_=G}}}})(w0);v0.exports=w0;var G2=v0.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var y0=X,$t=G2;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _0=new Set,zl={};function Qr(e,t){Ai(e,t),Ai(e+"Capture",t)}function Ai(e,t){for(zl[e]=t,e=0;e<t.length;e++)_0.add(t[e])}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=Object.prototype.hasOwnProperty,Q2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xh={},Jh={};function q2(e){return _c.call(Jh,e)?!0:_c.call(Xh,e)?!1:Q2.test(e)?Jh[e]=!0:(Xh[e]=!0,!1)}function K2(e,t,r,l){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Y2(e,t,r,l){if(t===null||typeof t>"u"||K2(e,t,r,l))return!0;if(l)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yt(e,t,r,l,o,s,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=c}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rt[e]=new yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rt[t]=new yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rt[e]=new yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rt[e]=new yt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rt[e]=new yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rt[e]=new yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rt[e]=new yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rt[e]=new yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rt[e]=new yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var _f=/[\-:]([a-z])/g;function Sf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_f,Sf);rt[t]=new yt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_f,Sf);rt[t]=new yt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_f,Sf);rt[t]=new yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rt[e]=new yt(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rt[e]=new yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xf(e,t,r,l){var o=rt.hasOwnProperty(t)?rt[t]:null;(o!==null?o.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Y2(t,r,o,l)&&(r=null),l||o===null?q2(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,l=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,l?e.setAttributeNS(l,t,r):e.setAttribute(t,r))))}var Gn=y0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ru=Symbol.for("react.element"),pi=Symbol.for("react.portal"),hi=Symbol.for("react.fragment"),Cf=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),S0=Symbol.for("react.provider"),x0=Symbol.for("react.context"),Ef=Symbol.for("react.forward_ref"),xc=Symbol.for("react.suspense"),Cc=Symbol.for("react.suspense_list"),kf=Symbol.for("react.memo"),rr=Symbol.for("react.lazy"),C0=Symbol.for("react.offscreen"),bh=Symbol.iterator;function dl(e){return e===null||typeof e!="object"?null:(e=bh&&e[bh]||e["@@iterator"],typeof e=="function"?e:null)}var We=Object.assign,Qa;function Cl(e){if(Qa===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Qa=t&&t[1]||""}return`
`+Qa+e}var qa=!1;function Ka(e,t){if(!e||qa)return"";qa=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(m){var l=m}Reflect.construct(e,[],t)}else{try{t.call()}catch(m){l=m}e.call(t.prototype)}else{try{throw Error()}catch(m){l=m}e()}}catch(m){if(m&&l&&typeof m.stack=="string"){for(var o=m.stack.split(`
`),s=l.stack.split(`
`),c=o.length-1,f=s.length-1;1<=c&&0<=f&&o[c]!==s[f];)f--;for(;1<=c&&0<=f;c--,f--)if(o[c]!==s[f]){if(c!==1||f!==1)do if(c--,f--,0>f||o[c]!==s[f]){var p=`
`+o[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=c&&0<=f);break}}}finally{qa=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Cl(e):""}function Z2(e){switch(e.tag){case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 2:case 15:return e=Ka(e.type,!1),e;case 11:return e=Ka(e.type.render,!1),e;case 1:return e=Ka(e.type,!0),e;default:return""}}function Ec(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hi:return"Fragment";case pi:return"Portal";case Sc:return"Profiler";case Cf:return"StrictMode";case xc:return"Suspense";case Cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x0:return(e.displayName||"Context")+".Consumer";case S0:return(e._context.displayName||"Context")+".Provider";case Ef:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kf:return t=e.displayName||null,t!==null?t:Ec(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return Ec(e(t))}catch{}}return null}function X2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ec(t);case 8:return t===Cf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function E0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function J2(e){var t=E0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(c){l=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function iu(e){e._valueTracker||(e._valueTracker=J2(e))}function k0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=E0(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function Nu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function kc(e,t){var r=t.checked;return We({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function eg(e,t){var r=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;r=_r(t.value!=null?t.value:r),e._wrapperState={initialChecked:l,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function L0(e,t){t=t.checked,t!=null&&xf(e,"checked",t,!1)}function Lc(e,t){L0(e,t);var r=_r(t.value),l=t.type;if(r!=null)l==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Rc(e,t.type,_r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tg(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Rc(e,t,r){(t!=="number"||Nu(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var El=Array.isArray;function ki(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+_r(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ic(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return We({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ng(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(V(92));if(El(r)){if(1<r.length)throw Error(V(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:_r(r)}}function R0(e,t){var r=_r(t.value),l=_r(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),l!=null&&(e.defaultValue=""+l)}function rg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function I0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?I0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var lu,T0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,l,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,l,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(lu=lu||document.createElement("div"),lu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=lu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Il={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b2=["Webkit","ms","Moz","O"];Object.keys(Il).forEach(function(e){b2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Il[t]=Il[e]})});function O0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Il.hasOwnProperty(e)&&Il[e]?(""+t).trim():t+"px"}function A0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var l=r.indexOf("--")===0,o=O0(r,t[r],l);r==="float"&&(r="cssFloat"),l?e.setProperty(r,o):e[r]=o}}var eE=We({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oc(e,t){if(t){if(eE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Ac(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pc=null;function Lf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nc=null,Li=null,Ri=null;function ig(e){if(e=lo(e)){if(typeof Nc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ps(t),Nc(e.stateNode,e.type,t))}}function P0(e){Li?Ri?Ri.push(e):Ri=[e]:Li=e}function N0(){if(Li){var e=Li,t=Ri;if(Ri=Li=null,ig(e),t)for(e=0;e<t.length;e++)ig(t[e])}}function M0(e,t){return e(t)}function B0(){}var Ya=!1;function W0(e,t,r){if(Ya)return e(t,r);Ya=!0;try{return M0(e,t,r)}finally{Ya=!1,(Li!==null||Ri!==null)&&(B0(),N0())}}function $l(e,t){var r=e.stateNode;if(r===null)return null;var l=ps(r);if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(V(231,t,typeof r));return r}var Mc=!1;if(Un)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){Mc=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{Mc=!1}function tE(e,t,r,l,o,s,c,f,p){var m=Array.prototype.slice.call(arguments,3);try{t.apply(r,m)}catch(y){this.onError(y)}}var Tl=!1,Mu=null,Bu=!1,Bc=null,nE={onError:function(e){Tl=!0,Mu=e}};function rE(e,t,r,l,o,s,c,f,p){Tl=!1,Mu=null,tE.apply(nE,arguments)}function iE(e,t,r,l,o,s,c,f,p){if(rE.apply(this,arguments),Tl){if(Tl){var m=Mu;Tl=!1,Mu=null}else throw Error(V(198));Bu||(Bu=!0,Bc=m)}}function qr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function z0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function lg(e){if(qr(e)!==e)throw Error(V(188))}function lE(e){var t=e.alternate;if(!t){if(t=qr(e),t===null)throw Error(V(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var s=o.alternate;if(s===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===r)return lg(o),e;if(s===l)return lg(o),t;s=s.sibling}throw Error(V(188))}if(r.return!==l.return)r=o,l=s;else{for(var c=!1,f=o.child;f;){if(f===r){c=!0,r=o,l=s;break}if(f===l){c=!0,l=o,r=s;break}f=f.sibling}if(!c){for(f=s.child;f;){if(f===r){c=!0,r=s,l=o;break}if(f===l){c=!0,l=s,r=o;break}f=f.sibling}if(!c)throw Error(V(189))}}if(r.alternate!==l)throw Error(V(190))}if(r.tag!==3)throw Error(V(188));return r.stateNode.current===r?e:t}function D0(e){return e=lE(e),e!==null?$0(e):null}function $0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$0(e);if(t!==null)return t;e=e.sibling}return null}var F0=$t.unstable_scheduleCallback,og=$t.unstable_cancelCallback,oE=$t.unstable_shouldYield,uE=$t.unstable_requestPaint,Ue=$t.unstable_now,sE=$t.unstable_getCurrentPriorityLevel,Rf=$t.unstable_ImmediatePriority,U0=$t.unstable_UserBlockingPriority,Wu=$t.unstable_NormalPriority,aE=$t.unstable_LowPriority,j0=$t.unstable_IdlePriority,as=null,Cn=null;function cE(e){if(Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(as,e,void 0,(e.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:pE,fE=Math.log,dE=Math.LN2;function pE(e){return e>>>=0,e===0?32:31-(fE(e)/dE|0)|0}var ou=64,uu=4194304;function kl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zu(e,t){var r=e.pendingLanes;if(r===0)return 0;var l=0,o=e.suspendedLanes,s=e.pingedLanes,c=r&268435455;if(c!==0){var f=c&~o;f!==0?l=kl(f):(s&=c,s!==0&&(l=kl(s)))}else c=r&~o,c!==0?l=kl(c):s!==0&&(l=kl(s));if(l===0)return 0;if(t!==0&&t!==l&&!(t&o)&&(o=l&-l,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(l&4&&(l|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)r=31-hn(t),o=1<<r,l|=e[r],t&=~o;return l}function hE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gE(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-hn(s),f=1<<c,p=o[c];p===-1?(!(f&r)||f&l)&&(o[c]=hE(f,t)):p<=t&&(e.expiredLanes|=f),s&=~f}}function Wc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function H0(){var e=ou;return ou<<=1,!(ou&4194240)&&(ou=64),e}function Za(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ro(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-hn(t),e[t]=r}function mE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-hn(r),s=1<<o;t[o]=0,l[o]=-1,e[o]=-1,r&=~s}}function If(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-hn(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}var Ce=0;function V0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var G0,Tf,Q0,q0,K0,zc=!1,su=[],cr=null,fr=null,dr=null,Fl=new Map,Ul=new Map,lr=[],vE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ug(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":dr=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(t.pointerId)}}function hl(e,t,r,l,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:s,targetContainers:[o]},t!==null&&(t=lo(t),t!==null&&Tf(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function wE(e,t,r,l,o){switch(t){case"focusin":return cr=hl(cr,e,t,r,l,o),!0;case"dragenter":return fr=hl(fr,e,t,r,l,o),!0;case"mouseover":return dr=hl(dr,e,t,r,l,o),!0;case"pointerover":var s=o.pointerId;return Fl.set(s,hl(Fl.get(s)||null,e,t,r,l,o)),!0;case"gotpointercapture":return s=o.pointerId,Ul.set(s,hl(Ul.get(s)||null,e,t,r,l,o)),!0}return!1}function Y0(e){var t=Wr(e.target);if(t!==null){var r=qr(t);if(r!==null){if(t=r.tag,t===13){if(t=z0(r),t!==null){e.blockedOn=t,K0(e.priority,function(){Q0(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Dc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);Pc=l,r.target.dispatchEvent(l),Pc=null}else return t=lo(r),t!==null&&Tf(t),e.blockedOn=r,!1;t.shift()}return!0}function sg(e,t,r){Cu(e)&&r.delete(t)}function yE(){zc=!1,cr!==null&&Cu(cr)&&(cr=null),fr!==null&&Cu(fr)&&(fr=null),dr!==null&&Cu(dr)&&(dr=null),Fl.forEach(sg),Ul.forEach(sg)}function gl(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,yE)))}function jl(e){function t(o){return gl(o,e)}if(0<su.length){gl(su[0],e);for(var r=1;r<su.length;r++){var l=su[r];l.blockedOn===e&&(l.blockedOn=null)}}for(cr!==null&&gl(cr,e),fr!==null&&gl(fr,e),dr!==null&&gl(dr,e),Fl.forEach(t),Ul.forEach(t),r=0;r<lr.length;r++)l=lr[r],l.blockedOn===e&&(l.blockedOn=null);for(;0<lr.length&&(r=lr[0],r.blockedOn===null);)Y0(r),r.blockedOn===null&&lr.shift()}var Ii=Gn.ReactCurrentBatchConfig,Du=!0;function _E(e,t,r,l){var o=Ce,s=Ii.transition;Ii.transition=null;try{Ce=1,Of(e,t,r,l)}finally{Ce=o,Ii.transition=s}}function SE(e,t,r,l){var o=Ce,s=Ii.transition;Ii.transition=null;try{Ce=4,Of(e,t,r,l)}finally{Ce=o,Ii.transition=s}}function Of(e,t,r,l){if(Du){var o=Dc(e,t,r,l);if(o===null)oc(e,t,l,$u,r),ug(e,l);else if(wE(o,e,t,r,l))l.stopPropagation();else if(ug(e,l),t&4&&-1<vE.indexOf(e)){for(;o!==null;){var s=lo(o);if(s!==null&&G0(s),s=Dc(e,t,r,l),s===null&&oc(e,t,l,$u,r),s===o)break;o=s}o!==null&&l.stopPropagation()}else oc(e,t,l,null,r)}}var $u=null;function Dc(e,t,r,l){if($u=null,e=Lf(l),e=Wr(e),e!==null)if(t=qr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=z0(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $u=e,null}function Z0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(sE()){case Rf:return 1;case U0:return 4;case Wu:case aE:return 16;case j0:return 536870912;default:return 16}default:return 16}}var sr=null,Af=null,Eu=null;function X0(){if(Eu)return Eu;var e,t=Af,r=t.length,l,o="value"in sr?sr.value:sr.textContent,s=o.length;for(e=0;e<r&&t[e]===o[e];e++);var c=r-e;for(l=1;l<=c&&t[r-l]===o[s-l];l++);return Eu=o.slice(e,1<l?1-l:void 0)}function ku(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function au(){return!0}function ag(){return!1}function Ut(e){function t(r,l,o,s,c){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(r=e[f],this[f]=r?r(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?au:ag,this.isPropagationStopped=ag,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=au)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=au)},persist:function(){},isPersistent:au}),t}var $i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pf=Ut($i),io=We({},$i,{view:0,detail:0}),xE=Ut(io),Xa,Ja,ml,cs=We({},io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ml&&(ml&&e.type==="mousemove"?(Xa=e.screenX-ml.screenX,Ja=e.screenY-ml.screenY):Ja=Xa=0,ml=e),Xa)},movementY:function(e){return"movementY"in e?e.movementY:Ja}}),cg=Ut(cs),CE=We({},cs,{dataTransfer:0}),EE=Ut(CE),kE=We({},io,{relatedTarget:0}),ba=Ut(kE),LE=We({},$i,{animationName:0,elapsedTime:0,pseudoElement:0}),RE=Ut(LE),IE=We({},$i,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TE=Ut(IE),OE=We({},$i,{data:0}),fg=Ut(OE),AE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},NE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ME(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NE[e])?!!t[e]:!1}function Nf(){return ME}var BE=We({},io,{key:function(e){if(e.key){var t=AE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ku(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?PE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nf,charCode:function(e){return e.type==="keypress"?ku(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ku(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WE=Ut(BE),zE=We({},cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dg=Ut(zE),DE=We({},io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nf}),$E=Ut(DE),FE=We({},$i,{propertyName:0,elapsedTime:0,pseudoElement:0}),UE=Ut(FE),jE=We({},cs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),HE=Ut(jE),VE=[9,13,27,32],Mf=Un&&"CompositionEvent"in window,Ol=null;Un&&"documentMode"in document&&(Ol=document.documentMode);var GE=Un&&"TextEvent"in window&&!Ol,J0=Un&&(!Mf||Ol&&8<Ol&&11>=Ol),pg=String.fromCharCode(32),hg=!1;function b0(e,t){switch(e){case"keyup":return VE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gi=!1;function QE(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(hg=!0,pg);case"textInput":return e=t.data,e===pg&&hg?null:e;default:return null}}function qE(e,t){if(gi)return e==="compositionend"||!Mf&&b0(e,t)?(e=X0(),Eu=Af=sr=null,gi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return J0&&t.locale!=="ko"?null:t.data;default:return null}}var KE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!KE[e.type]:t==="textarea"}function tm(e,t,r,l){P0(l),t=Fu(t,"onChange"),0<t.length&&(r=new Pf("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var Al=null,Hl=null;function YE(e){dm(e,0)}function fs(e){var t=wi(e);if(k0(t))return e}function ZE(e,t){if(e==="change")return t}var nm=!1;if(Un){var ec;if(Un){var tc="oninput"in document;if(!tc){var mg=document.createElement("div");mg.setAttribute("oninput","return;"),tc=typeof mg.oninput=="function"}ec=tc}else ec=!1;nm=ec&&(!document.documentMode||9<document.documentMode)}function vg(){Al&&(Al.detachEvent("onpropertychange",rm),Hl=Al=null)}function rm(e){if(e.propertyName==="value"&&fs(Hl)){var t=[];tm(t,Hl,e,Lf(e)),W0(YE,t)}}function XE(e,t,r){e==="focusin"?(vg(),Al=t,Hl=r,Al.attachEvent("onpropertychange",rm)):e==="focusout"&&vg()}function JE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fs(Hl)}function bE(e,t){if(e==="click")return fs(t)}function ek(e,t){if(e==="input"||e==="change")return fs(t)}function tk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mn=typeof Object.is=="function"?Object.is:tk;function Vl(e,t){if(mn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!_c.call(t,o)||!mn(e[o],t[o]))return!1}return!0}function wg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yg(e,t){var r=wg(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wg(r)}}function im(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?im(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lm(){for(var e=window,t=Nu();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Nu(e.document)}return t}function Bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nk(e){var t=lm(),r=e.focusedElem,l=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&im(r.ownerDocument.documentElement,r)){if(l!==null&&Bf(r)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,s=Math.min(l.start,o);l=l.end===void 0?s:Math.min(l.end,o),!e.extend&&s>l&&(o=l,l=s,s=o),o=yg(r,s);var c=yg(r,l);o&&c&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>l?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var rk=Un&&"documentMode"in document&&11>=document.documentMode,mi=null,$c=null,Pl=null,Fc=!1;function _g(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fc||mi==null||mi!==Nu(l)||(l=mi,"selectionStart"in l&&Bf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Pl&&Vl(Pl,l)||(Pl=l,l=Fu($c,"onSelect"),0<l.length&&(t=new Pf("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=mi)))}function cu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vi={animationend:cu("Animation","AnimationEnd"),animationiteration:cu("Animation","AnimationIteration"),animationstart:cu("Animation","AnimationStart"),transitionend:cu("Transition","TransitionEnd")},nc={},om={};Un&&(om=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function ds(e){if(nc[e])return nc[e];if(!vi[e])return e;var t=vi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in om)return nc[e]=t[r];return e}var um=ds("animationend"),sm=ds("animationiteration"),am=ds("animationstart"),cm=ds("transitionend"),fm=new Map,Sg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xr(e,t){fm.set(e,t),Qr(t,[e])}for(var rc=0;rc<Sg.length;rc++){var ic=Sg[rc],ik=ic.toLowerCase(),lk=ic[0].toUpperCase()+ic.slice(1);xr(ik,"on"+lk)}xr(um,"onAnimationEnd");xr(sm,"onAnimationIteration");xr(am,"onAnimationStart");xr("dblclick","onDoubleClick");xr("focusin","onFocus");xr("focusout","onBlur");xr(cm,"onTransitionEnd");Ai("onMouseEnter",["mouseout","mouseover"]);Ai("onMouseLeave",["mouseout","mouseover"]);Ai("onPointerEnter",["pointerout","pointerover"]);Ai("onPointerLeave",["pointerout","pointerover"]);Qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ll="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ok=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ll));function xg(e,t,r){var l=e.type||"unknown-event";e.currentTarget=r,iE(l,t,void 0,e),e.currentTarget=null}function dm(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var c=l.length-1;0<=c;c--){var f=l[c],p=f.instance,m=f.currentTarget;if(f=f.listener,p!==s&&o.isPropagationStopped())break e;xg(o,f,m),s=p}else for(c=0;c<l.length;c++){if(f=l[c],p=f.instance,m=f.currentTarget,f=f.listener,p!==s&&o.isPropagationStopped())break e;xg(o,f,m),s=p}}}if(Bu)throw e=Bc,Bu=!1,Bc=null,e}function Te(e,t){var r=t[Gc];r===void 0&&(r=t[Gc]=new Set);var l=e+"__bubble";r.has(l)||(pm(t,e,2,!1),r.add(l))}function lc(e,t,r){var l=0;t&&(l|=4),pm(r,e,l,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Gl(e){if(!e[fu]){e[fu]=!0,_0.forEach(function(r){r!=="selectionchange"&&(ok.has(r)||lc(r,!1,e),lc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,lc("selectionchange",!1,t))}}function pm(e,t,r,l){switch(Z0(t)){case 1:var o=_E;break;case 4:o=SE;break;default:o=Of}r=o.bind(null,t,r,e),o=void 0,!Mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function oc(e,t,r,l,o){var s=l;if(!(t&1)&&!(t&2)&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var f=l.stateNode.containerInfo;if(f===o||f.nodeType===8&&f.parentNode===o)break;if(c===4)for(c=l.return;c!==null;){var p=c.tag;if((p===3||p===4)&&(p=c.stateNode.containerInfo,p===o||p.nodeType===8&&p.parentNode===o))return;c=c.return}for(;f!==null;){if(c=Wr(f),c===null)return;if(p=c.tag,p===5||p===6){l=s=c;continue e}f=f.parentNode}}l=l.return}W0(function(){var m=s,y=Lf(r),w=[];e:{var _=fm.get(e);if(_!==void 0){var k=Pf,A=e;switch(e){case"keypress":if(ku(r)===0)break e;case"keydown":case"keyup":k=WE;break;case"focusin":A="focus",k=ba;break;case"focusout":A="blur",k=ba;break;case"beforeblur":case"afterblur":k=ba;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=cg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=EE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=$E;break;case um:case sm:case am:k=RE;break;case cm:k=UE;break;case"scroll":k=xE;break;case"wheel":k=HE;break;case"copy":case"cut":case"paste":k=TE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=dg}var T=(t&4)!==0,B=!T&&e==="scroll",v=T?_!==null?_+"Capture":null:_;T=[];for(var S=m,C;S!==null;){C=S;var O=C.stateNode;if(C.tag===5&&O!==null&&(C=O,v!==null&&(O=$l(S,v),O!=null&&T.push(Ql(S,O,C)))),B)break;S=S.return}0<T.length&&(_=new k(_,A,null,r,y),w.push({event:_,listeners:T}))}}if(!(t&7)){e:{if(_=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",_&&r!==Pc&&(A=r.relatedTarget||r.fromElement)&&(Wr(A)||A[jn]))break e;if((k||_)&&(_=y.window===y?y:(_=y.ownerDocument)?_.defaultView||_.parentWindow:window,k?(A=r.relatedTarget||r.toElement,k=m,A=A?Wr(A):null,A!==null&&(B=qr(A),A!==B||A.tag!==5&&A.tag!==6)&&(A=null)):(k=null,A=m),k!==A)){if(T=cg,O="onMouseLeave",v="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(T=dg,O="onPointerLeave",v="onPointerEnter",S="pointer"),B=k==null?_:wi(k),C=A==null?_:wi(A),_=new T(O,S+"leave",k,r,y),_.target=B,_.relatedTarget=C,O=null,Wr(y)===m&&(T=new T(v,S+"enter",A,r,y),T.target=C,T.relatedTarget=B,O=T),B=O,k&&A)t:{for(T=k,v=A,S=0,C=T;C;C=ci(C))S++;for(C=0,O=v;O;O=ci(O))C++;for(;0<S-C;)T=ci(T),S--;for(;0<C-S;)v=ci(v),C--;for(;S--;){if(T===v||v!==null&&T===v.alternate)break t;T=ci(T),v=ci(v)}T=null}else T=null;k!==null&&Cg(w,_,k,T,!1),A!==null&&B!==null&&Cg(w,B,A,T,!0)}}e:{if(_=m?wi(m):window,k=_.nodeName&&_.nodeName.toLowerCase(),k==="select"||k==="input"&&_.type==="file")var M=ZE;else if(gg(_))if(nm)M=ek;else{M=JE;var F=XE}else(k=_.nodeName)&&k.toLowerCase()==="input"&&(_.type==="checkbox"||_.type==="radio")&&(M=bE);if(M&&(M=M(e,m))){tm(w,M,r,y);break e}F&&F(e,_,m),e==="focusout"&&(F=_._wrapperState)&&F.controlled&&_.type==="number"&&Rc(_,"number",_.value)}switch(F=m?wi(m):window,e){case"focusin":(gg(F)||F.contentEditable==="true")&&(mi=F,$c=m,Pl=null);break;case"focusout":Pl=$c=mi=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,_g(w,r,y);break;case"selectionchange":if(rk)break;case"keydown":case"keyup":_g(w,r,y)}var P;if(Mf)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else gi?b0(e,r)&&(z="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(z="onCompositionStart");z&&(J0&&r.locale!=="ko"&&(gi||z!=="onCompositionStart"?z==="onCompositionEnd"&&gi&&(P=X0()):(sr=y,Af="value"in sr?sr.value:sr.textContent,gi=!0)),F=Fu(m,z),0<F.length&&(z=new fg(z,e,null,r,y),w.push({event:z,listeners:F}),P?z.data=P:(P=em(r),P!==null&&(z.data=P)))),(P=GE?QE(e,r):qE(e,r))&&(m=Fu(m,"onBeforeInput"),0<m.length&&(y=new fg("onBeforeInput","beforeinput",null,r,y),w.push({event:y,listeners:m}),y.data=P))}dm(w,t)})}function Ql(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Fu(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=$l(e,r),s!=null&&l.unshift(Ql(e,s,o)),s=$l(e,t),s!=null&&l.push(Ql(e,s,o))),e=e.return}return l}function ci(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cg(e,t,r,l,o){for(var s=t._reactName,c=[];r!==null&&r!==l;){var f=r,p=f.alternate,m=f.stateNode;if(p!==null&&p===l)break;f.tag===5&&m!==null&&(f=m,o?(p=$l(r,s),p!=null&&c.unshift(Ql(r,p,f))):o||(p=$l(r,s),p!=null&&c.push(Ql(r,p,f)))),r=r.return}c.length!==0&&e.push({event:t,listeners:c})}var uk=/\r\n?/g,sk=/\u0000|\uFFFD/g;function Eg(e){return(typeof e=="string"?e:""+e).replace(uk,`
`).replace(sk,"")}function du(e,t,r){if(t=Eg(t),Eg(e)!==t&&r)throw Error(V(425))}function Uu(){}var Uc=null,jc=null;function Hc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vc=typeof setTimeout=="function"?setTimeout:void 0,ak=typeof clearTimeout=="function"?clearTimeout:void 0,kg=typeof Promise=="function"?Promise:void 0,ck=typeof queueMicrotask=="function"?queueMicrotask:typeof kg<"u"?function(e){return kg.resolve(null).then(e).catch(fk)}:Vc;function fk(e){setTimeout(function(){throw e})}function uc(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(l===0){e.removeChild(o),jl(t);return}l--}else r!=="$"&&r!=="$?"&&r!=="$!"||l++;r=o}while(r);jl(t)}function pr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Lg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Fi=Math.random().toString(36).slice(2),xn="__reactFiber$"+Fi,ql="__reactProps$"+Fi,jn="__reactContainer$"+Fi,Gc="__reactEvents$"+Fi,dk="__reactListeners$"+Fi,pk="__reactHandles$"+Fi;function Wr(e){var t=e[xn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[jn]||r[xn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Lg(e);e!==null;){if(r=e[xn])return r;e=Lg(e)}return t}e=r,r=e.parentNode}return null}function lo(e){return e=e[xn]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function ps(e){return e[ql]||null}var Qc=[],yi=-1;function Cr(e){return{current:e}}function Oe(e){0>yi||(e.current=Qc[yi],Qc[yi]=null,yi--)}function Re(e,t){yi++,Qc[yi]=e.current,e.current=t}var Sr={},ct=Cr(Sr),Lt=Cr(!1),Ur=Sr;function Pi(e,t){var r=e.type.contextTypes;if(!r)return Sr;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in r)o[s]=t[s];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Rt(e){return e=e.childContextTypes,e!=null}function ju(){Oe(Lt),Oe(ct)}function Rg(e,t,r){if(ct.current!==Sr)throw Error(V(168));Re(ct,t),Re(Lt,r)}function hm(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return r;l=l.getChildContext();for(var o in l)if(!(o in t))throw Error(V(108,X2(e)||"Unknown",o));return We({},r,l)}function Hu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,Ur=ct.current,Re(ct,e),Re(Lt,Lt.current),!0}function Ig(e,t,r){var l=e.stateNode;if(!l)throw Error(V(169));r?(e=hm(e,t,Ur),l.__reactInternalMemoizedMergedChildContext=e,Oe(Lt),Oe(ct),Re(ct,e)):Oe(Lt),Re(Lt,r)}var zn=null,hs=!1,sc=!1;function gm(e){zn===null?zn=[e]:zn.push(e)}function hk(e){hs=!0,gm(e)}function Er(){if(!sc&&zn!==null){sc=!0;var e=0,t=Ce;try{var r=zn;for(Ce=1;e<r.length;e++){var l=r[e];do l=l(!0);while(l!==null)}zn=null,hs=!1}catch(o){throw zn!==null&&(zn=zn.slice(e+1)),F0(Rf,Er),o}finally{Ce=t,sc=!1}}return null}var _i=[],Si=0,Vu=null,Gu=0,Zt=[],Xt=0,jr=null,Dn=1,$n="";function Mr(e,t){_i[Si++]=Gu,_i[Si++]=Vu,Vu=e,Gu=t}function mm(e,t,r){Zt[Xt++]=Dn,Zt[Xt++]=$n,Zt[Xt++]=jr,jr=e;var l=Dn;e=$n;var o=32-hn(l)-1;l&=~(1<<o),r+=1;var s=32-hn(t)+o;if(30<s){var c=o-o%5;s=(l&(1<<c)-1).toString(32),l>>=c,o-=c,Dn=1<<32-hn(t)+o|r<<o|l,$n=s+e}else Dn=1<<s|r<<o|l,$n=e}function Wf(e){e.return!==null&&(Mr(e,1),mm(e,1,0))}function zf(e){for(;e===Vu;)Vu=_i[--Si],_i[Si]=null,Gu=_i[--Si],_i[Si]=null;for(;e===jr;)jr=Zt[--Xt],Zt[Xt]=null,$n=Zt[--Xt],Zt[Xt]=null,Dn=Zt[--Xt],Zt[Xt]=null}var Dt=null,zt=null,Pe=!1,pn=null;function vm(e,t){var r=Jt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Tg(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dt=e,zt=pr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=jr!==null?{id:Dn,overflow:$n}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Jt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Dt=e,zt=null,!0):!1;default:return!1}}function qc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kc(e){if(Pe){var t=zt;if(t){var r=t;if(!Tg(e,t)){if(qc(e))throw Error(V(418));t=pr(r.nextSibling);var l=Dt;t&&Tg(e,t)?vm(l,r):(e.flags=e.flags&-4097|2,Pe=!1,Dt=e)}}else{if(qc(e))throw Error(V(418));e.flags=e.flags&-4097|2,Pe=!1,Dt=e}}}function Og(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function pu(e){if(e!==Dt)return!1;if(!Pe)return Og(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hc(e.type,e.memoizedProps)),t&&(t=zt)){if(qc(e))throw wm(),Error(V(418));for(;t;)vm(e,t),t=pr(t.nextSibling)}if(Og(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){zt=pr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Dt?pr(e.stateNode.nextSibling):null;return!0}function wm(){for(var e=zt;e;)e=pr(e.nextSibling)}function Ni(){zt=Dt=null,Pe=!1}function Df(e){pn===null?pn=[e]:pn.push(e)}var gk=Gn.ReactCurrentBatchConfig;function fn(e,t){if(e&&e.defaultProps){t=We({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Qu=Cr(null),qu=null,xi=null,$f=null;function Ff(){$f=xi=qu=null}function Uf(e){var t=Qu.current;Oe(Qu),e._currentValue=t}function Yc(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function Ti(e,t){qu=e,$f=xi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(kt=!0),e.firstContext=null)}function en(e){var t=e._currentValue;if($f!==e)if(e={context:e,memoizedValue:t,next:null},xi===null){if(qu===null)throw Error(V(308));xi=e,qu.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var zr=null;function jf(e){zr===null?zr=[e]:zr.push(e)}function ym(e,t,r,l){var o=t.interleaved;return o===null?(r.next=r,jf(t)):(r.next=o.next,o.next=r),t.interleaved=r,Hn(e,l)}function Hn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ir=!1;function Hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _m(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hr(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,we&2){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,Hn(e,r)}return o=l.interleaved,o===null?(t.next=t,jf(l)):(t.next=o.next,o.next=t),l.interleaved=t,Hn(e,r)}function Lu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,If(e,r)}}function Ag(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var c={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?o=s=c:s=s.next=c,r=r.next}while(r!==null);s===null?o=s=t:s=s.next=t}else o=s=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:l.shared,effects:l.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ku(e,t,r,l){var o=e.updateQueue;ir=!1;var s=o.firstBaseUpdate,c=o.lastBaseUpdate,f=o.shared.pending;if(f!==null){o.shared.pending=null;var p=f,m=p.next;p.next=null,c===null?s=m:c.next=m,c=p;var y=e.alternate;y!==null&&(y=y.updateQueue,f=y.lastBaseUpdate,f!==c&&(f===null?y.firstBaseUpdate=m:f.next=m,y.lastBaseUpdate=p))}if(s!==null){var w=o.baseState;c=0,y=m=p=null,f=s;do{var _=f.lane,k=f.eventTime;if((l&_)===_){y!==null&&(y=y.next={eventTime:k,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var A=e,T=f;switch(_=t,k=r,T.tag){case 1:if(A=T.payload,typeof A=="function"){w=A.call(k,w,_);break e}w=A;break e;case 3:A.flags=A.flags&-65537|128;case 0:if(A=T.payload,_=typeof A=="function"?A.call(k,w,_):A,_==null)break e;w=We({},w,_);break e;case 2:ir=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,_=o.effects,_===null?o.effects=[f]:_.push(f))}else k={eventTime:k,lane:_,tag:f.tag,payload:f.payload,callback:f.callback,next:null},y===null?(m=y=k,p=w):y=y.next=k,c|=_;if(f=f.next,f===null){if(f=o.shared.pending,f===null)break;_=f,f=_.next,_.next=null,o.lastBaseUpdate=_,o.shared.pending=null}}while(1);if(y===null&&(p=w),o.baseState=p,o.firstBaseUpdate=m,o.lastBaseUpdate=y,t=o.shared.interleaved,t!==null){o=t;do c|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Vr|=c,e.lanes=c,e.memoizedState=w}}function Pg(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],o=l.callback;if(o!==null){if(l.callback=null,l=r,typeof o!="function")throw Error(V(191,o));o.call(l)}}}var Sm=new y0.Component().refs;function Zc(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:We({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gs={isMounted:function(e){return(e=e._reactInternals)?qr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var l=vt(),o=mr(e),s=Fn(l,o);s.payload=t,r!=null&&(s.callback=r),t=hr(e,s,o),t!==null&&(gn(t,e,o,l),Lu(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=vt(),o=mr(e),s=Fn(l,o);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=hr(e,s,o),t!==null&&(gn(t,e,o,l),Lu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vt(),l=mr(e),o=Fn(r,l);o.tag=2,t!=null&&(o.callback=t),t=hr(e,o,l),t!==null&&(gn(t,e,l,r),Lu(t,e,l))}};function Ng(e,t,r,l,o,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,c):t.prototype&&t.prototype.isPureReactComponent?!Vl(r,l)||!Vl(o,s):!0}function xm(e,t,r){var l=!1,o=Sr,s=t.contextType;return typeof s=="object"&&s!==null?s=en(s):(o=Rt(t)?Ur:ct.current,l=t.contextTypes,s=(l=l!=null)?Pi(e,o):Sr),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gs,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Mg(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&gs.enqueueReplaceState(t,t.state,null)}function Xc(e,t,r,l){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Sm,Hf(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=en(s):(s=Rt(t)?Ur:ct.current,o.context=Pi(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Zc(e,t,s,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&gs.enqueueReplaceState(o,o.state,null),Ku(e,r,o,l),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function vl(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(V(309));var l=r.stateNode}if(!l)throw Error(V(147,e));var o=l,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(c){var f=o.refs;f===Sm&&(f=o.refs={}),c===null?delete f[s]:f[s]=c},t._stringRef=s,t)}if(typeof e!="string")throw Error(V(284));if(!r._owner)throw Error(V(290,e))}return e}function hu(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bg(e){var t=e._init;return t(e._payload)}function Cm(e){function t(v,S){if(e){var C=v.deletions;C===null?(v.deletions=[S],v.flags|=16):C.push(S)}}function r(v,S){if(!e)return null;for(;S!==null;)t(v,S),S=S.sibling;return null}function l(v,S){for(v=new Map;S!==null;)S.key!==null?v.set(S.key,S):v.set(S.index,S),S=S.sibling;return v}function o(v,S){return v=vr(v,S),v.index=0,v.sibling=null,v}function s(v,S,C){return v.index=C,e?(C=v.alternate,C!==null?(C=C.index,C<S?(v.flags|=2,S):C):(v.flags|=2,S)):(v.flags|=1048576,S)}function c(v){return e&&v.alternate===null&&(v.flags|=2),v}function f(v,S,C,O){return S===null||S.tag!==6?(S=gc(C,v.mode,O),S.return=v,S):(S=o(S,C),S.return=v,S)}function p(v,S,C,O){var M=C.type;return M===hi?y(v,S,C.props.children,O,C.key):S!==null&&(S.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===rr&&Bg(M)===S.type)?(O=o(S,C.props),O.ref=vl(v,S,C),O.return=v,O):(O=Pu(C.type,C.key,C.props,null,v.mode,O),O.ref=vl(v,S,C),O.return=v,O)}function m(v,S,C,O){return S===null||S.tag!==4||S.stateNode.containerInfo!==C.containerInfo||S.stateNode.implementation!==C.implementation?(S=mc(C,v.mode,O),S.return=v,S):(S=o(S,C.children||[]),S.return=v,S)}function y(v,S,C,O,M){return S===null||S.tag!==7?(S=Fr(C,v.mode,O,M),S.return=v,S):(S=o(S,C),S.return=v,S)}function w(v,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return S=gc(""+S,v.mode,C),S.return=v,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ru:return C=Pu(S.type,S.key,S.props,null,v.mode,C),C.ref=vl(v,null,S),C.return=v,C;case pi:return S=mc(S,v.mode,C),S.return=v,S;case rr:var O=S._init;return w(v,O(S._payload),C)}if(El(S)||dl(S))return S=Fr(S,v.mode,C,null),S.return=v,S;hu(v,S)}return null}function _(v,S,C,O){var M=S!==null?S.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return M!==null?null:f(v,S,""+C,O);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ru:return C.key===M?p(v,S,C,O):null;case pi:return C.key===M?m(v,S,C,O):null;case rr:return M=C._init,_(v,S,M(C._payload),O)}if(El(C)||dl(C))return M!==null?null:y(v,S,C,O,null);hu(v,C)}return null}function k(v,S,C,O,M){if(typeof O=="string"&&O!==""||typeof O=="number")return v=v.get(C)||null,f(S,v,""+O,M);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case ru:return v=v.get(O.key===null?C:O.key)||null,p(S,v,O,M);case pi:return v=v.get(O.key===null?C:O.key)||null,m(S,v,O,M);case rr:var F=O._init;return k(v,S,C,F(O._payload),M)}if(El(O)||dl(O))return v=v.get(C)||null,y(S,v,O,M,null);hu(S,O)}return null}function A(v,S,C,O){for(var M=null,F=null,P=S,z=S=0,J=null;P!==null&&z<C.length;z++){P.index>z?(J=P,P=null):J=P.sibling;var H=_(v,P,C[z],O);if(H===null){P===null&&(P=J);break}e&&P&&H.alternate===null&&t(v,P),S=s(H,S,z),F===null?M=H:F.sibling=H,F=H,P=J}if(z===C.length)return r(v,P),Pe&&Mr(v,z),M;if(P===null){for(;z<C.length;z++)P=w(v,C[z],O),P!==null&&(S=s(P,S,z),F===null?M=P:F.sibling=P,F=P);return Pe&&Mr(v,z),M}for(P=l(v,P);z<C.length;z++)J=k(P,v,z,C[z],O),J!==null&&(e&&J.alternate!==null&&P.delete(J.key===null?z:J.key),S=s(J,S,z),F===null?M=J:F.sibling=J,F=J);return e&&P.forEach(function(ee){return t(v,ee)}),Pe&&Mr(v,z),M}function T(v,S,C,O){var M=dl(C);if(typeof M!="function")throw Error(V(150));if(C=M.call(C),C==null)throw Error(V(151));for(var F=M=null,P=S,z=S=0,J=null,H=C.next();P!==null&&!H.done;z++,H=C.next()){P.index>z?(J=P,P=null):J=P.sibling;var ee=_(v,P,H.value,O);if(ee===null){P===null&&(P=J);break}e&&P&&ee.alternate===null&&t(v,P),S=s(ee,S,z),F===null?M=ee:F.sibling=ee,F=ee,P=J}if(H.done)return r(v,P),Pe&&Mr(v,z),M;if(P===null){for(;!H.done;z++,H=C.next())H=w(v,H.value,O),H!==null&&(S=s(H,S,z),F===null?M=H:F.sibling=H,F=H);return Pe&&Mr(v,z),M}for(P=l(v,P);!H.done;z++,H=C.next())H=k(P,v,z,H.value,O),H!==null&&(e&&H.alternate!==null&&P.delete(H.key===null?z:H.key),S=s(H,S,z),F===null?M=H:F.sibling=H,F=H);return e&&P.forEach(function(le){return t(v,le)}),Pe&&Mr(v,z),M}function B(v,S,C,O){if(typeof C=="object"&&C!==null&&C.type===hi&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ru:e:{for(var M=C.key,F=S;F!==null;){if(F.key===M){if(M=C.type,M===hi){if(F.tag===7){r(v,F.sibling),S=o(F,C.props.children),S.return=v,v=S;break e}}else if(F.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===rr&&Bg(M)===F.type){r(v,F.sibling),S=o(F,C.props),S.ref=vl(v,F,C),S.return=v,v=S;break e}r(v,F);break}else t(v,F);F=F.sibling}C.type===hi?(S=Fr(C.props.children,v.mode,O,C.key),S.return=v,v=S):(O=Pu(C.type,C.key,C.props,null,v.mode,O),O.ref=vl(v,S,C),O.return=v,v=O)}return c(v);case pi:e:{for(F=C.key;S!==null;){if(S.key===F)if(S.tag===4&&S.stateNode.containerInfo===C.containerInfo&&S.stateNode.implementation===C.implementation){r(v,S.sibling),S=o(S,C.children||[]),S.return=v,v=S;break e}else{r(v,S);break}else t(v,S);S=S.sibling}S=mc(C,v.mode,O),S.return=v,v=S}return c(v);case rr:return F=C._init,B(v,S,F(C._payload),O)}if(El(C))return A(v,S,C,O);if(dl(C))return T(v,S,C,O);hu(v,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,S!==null&&S.tag===6?(r(v,S.sibling),S=o(S,C),S.return=v,v=S):(r(v,S),S=gc(C,v.mode,O),S.return=v,v=S),c(v)):r(v,S)}return B}var Mi=Cm(!0),Em=Cm(!1),oo={},En=Cr(oo),Kl=Cr(oo),Yl=Cr(oo);function Dr(e){if(e===oo)throw Error(V(174));return e}function Vf(e,t){switch(Re(Yl,t),Re(Kl,e),Re(En,oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tc(t,e)}Oe(En),Re(En,t)}function Bi(){Oe(En),Oe(Kl),Oe(Yl)}function km(e){Dr(Yl.current);var t=Dr(En.current),r=Tc(t,e.type);t!==r&&(Re(Kl,e),Re(En,r))}function Gf(e){Kl.current===e&&(Oe(En),Oe(Kl))}var Me=Cr(0);function Yu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ac=[];function Qf(){for(var e=0;e<ac.length;e++)ac[e]._workInProgressVersionPrimary=null;ac.length=0}var Ru=Gn.ReactCurrentDispatcher,cc=Gn.ReactCurrentBatchConfig,Hr=0,Be=null,Qe=null,Ye=null,Zu=!1,Nl=!1,Zl=0,mk=0;function ut(){throw Error(V(321))}function qf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!mn(e[r],t[r]))return!1;return!0}function Kf(e,t,r,l,o,s){if(Hr=s,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ru.current=e===null||e.memoizedState===null?_k:Sk,e=r(l,o),Nl){s=0;do{if(Nl=!1,Zl=0,25<=s)throw Error(V(301));s+=1,Ye=Qe=null,t.updateQueue=null,Ru.current=xk,e=r(l,o)}while(Nl)}if(Ru.current=Xu,t=Qe!==null&&Qe.next!==null,Hr=0,Ye=Qe=Be=null,Zu=!1,t)throw Error(V(300));return e}function Yf(){var e=Zl!==0;return Zl=0,e}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Be.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function tn(){if(Qe===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=Ye===null?Be.memoizedState:Ye.next;if(t!==null)Ye=t,Qe=e;else{if(e===null)throw Error(V(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},Ye===null?Be.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function Xl(e,t){return typeof t=="function"?t(e):t}function fc(e){var t=tn(),r=t.queue;if(r===null)throw Error(V(311));r.lastRenderedReducer=e;var l=Qe,o=l.baseQueue,s=r.pending;if(s!==null){if(o!==null){var c=o.next;o.next=s.next,s.next=c}l.baseQueue=o=s,r.pending=null}if(o!==null){s=o.next,l=l.baseState;var f=c=null,p=null,m=s;do{var y=m.lane;if((Hr&y)===y)p!==null&&(p=p.next={lane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),l=m.hasEagerState?m.eagerState:e(l,m.action);else{var w={lane:y,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};p===null?(f=p=w,c=l):p=p.next=w,Be.lanes|=y,Vr|=y}m=m.next}while(m!==null&&m!==s);p===null?c=l:p.next=f,mn(l,t.memoizedState)||(kt=!0),t.memoizedState=l,t.baseState=c,t.baseQueue=p,r.lastRenderedState=l}if(e=r.interleaved,e!==null){o=e;do s=o.lane,Be.lanes|=s,Vr|=s,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function dc(e){var t=tn(),r=t.queue;if(r===null)throw Error(V(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,s=t.memoizedState;if(o!==null){r.pending=null;var c=o=o.next;do s=e(s,c.action),c=c.next;while(c!==o);mn(s,t.memoizedState)||(kt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,l]}function Lm(){}function Rm(e,t){var r=Be,l=tn(),o=t(),s=!mn(l.memoizedState,o);if(s&&(l.memoizedState=o,kt=!0),l=l.queue,Zf(Om.bind(null,r,l,e),[e]),l.getSnapshot!==t||s||Ye!==null&&Ye.memoizedState.tag&1){if(r.flags|=2048,Jl(9,Tm.bind(null,r,l,o,t),void 0,null),Xe===null)throw Error(V(349));Hr&30||Im(r,t,o)}return o}function Im(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Tm(e,t,r,l){t.value=r,t.getSnapshot=l,Am(t)&&Pm(e)}function Om(e,t,r){return r(function(){Am(t)&&Pm(e)})}function Am(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mn(e,r)}catch{return!0}}function Pm(e){var t=Hn(e,1);t!==null&&gn(t,e,1,-1)}function Wg(e){var t=Sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:e},t.queue=e,e=e.dispatch=yk.bind(null,Be,e),[t.memoizedState,e]}function Jl(e,t,r,l){return e={tag:e,create:t,destroy:r,deps:l,next:null},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e)),e}function Nm(){return tn().memoizedState}function Iu(e,t,r,l){var o=Sn();Be.flags|=e,o.memoizedState=Jl(1|t,r,void 0,l===void 0?null:l)}function ms(e,t,r,l){var o=tn();l=l===void 0?null:l;var s=void 0;if(Qe!==null){var c=Qe.memoizedState;if(s=c.destroy,l!==null&&qf(l,c.deps)){o.memoizedState=Jl(t,r,s,l);return}}Be.flags|=e,o.memoizedState=Jl(1|t,r,s,l)}function zg(e,t){return Iu(8390656,8,e,t)}function Zf(e,t){return ms(2048,8,e,t)}function Mm(e,t){return ms(4,2,e,t)}function Bm(e,t){return ms(4,4,e,t)}function Wm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zm(e,t,r){return r=r!=null?r.concat([e]):null,ms(4,4,Wm.bind(null,t,e),r)}function Xf(){}function Dm(e,t){var r=tn();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&qf(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function $m(e,t){var r=tn();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&qf(t,l[1])?l[0]:(e=e(),r.memoizedState=[e,t],e)}function Fm(e,t,r){return Hr&21?(mn(r,t)||(r=H0(),Be.lanes|=r,Vr|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kt=!0),e.memoizedState=r)}function vk(e,t){var r=Ce;Ce=r!==0&&4>r?r:4,e(!0);var l=cc.transition;cc.transition={};try{e(!1),t()}finally{Ce=r,cc.transition=l}}function Um(){return tn().memoizedState}function wk(e,t,r){var l=mr(e);if(r={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null},jm(e))Hm(t,r);else if(r=ym(e,t,r,l),r!==null){var o=vt();gn(r,e,l,o),Vm(r,t,l)}}function yk(e,t,r){var l=mr(e),o={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null};if(jm(e))Hm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,f=s(c,r);if(o.hasEagerState=!0,o.eagerState=f,mn(f,c)){var p=t.interleaved;p===null?(o.next=o,jf(t)):(o.next=p.next,p.next=o),t.interleaved=o;return}}catch{}finally{}r=ym(e,t,o,l),r!==null&&(o=vt(),gn(r,e,l,o),Vm(r,t,l))}}function jm(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Hm(e,t){Nl=Zu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Vm(e,t,r){if(r&4194240){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,If(e,r)}}var Xu={readContext:en,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},_k={readContext:en,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:en,useEffect:zg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Iu(4194308,4,Wm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Iu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Iu(4,2,e,t)},useMemo:function(e,t){var r=Sn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var l=Sn();return t=r!==void 0?r(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=wk.bind(null,Be,e),[l.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:Wg,useDebugValue:Xf,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=Wg(!1),t=e[0];return e=vk.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var l=Be,o=Sn();if(Pe){if(r===void 0)throw Error(V(407));r=r()}else{if(r=t(),Xe===null)throw Error(V(349));Hr&30||Im(l,t,r)}o.memoizedState=r;var s={value:r,getSnapshot:t};return o.queue=s,zg(Om.bind(null,l,s,e),[e]),l.flags|=2048,Jl(9,Tm.bind(null,l,s,r,t),void 0,null),r},useId:function(){var e=Sn(),t=Xe.identifierPrefix;if(Pe){var r=$n,l=Dn;r=(l&~(1<<32-hn(l)-1)).toString(32)+r,t=":"+t+"R"+r,r=Zl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=mk++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sk={readContext:en,useCallback:Dm,useContext:en,useEffect:Zf,useImperativeHandle:zm,useInsertionEffect:Mm,useLayoutEffect:Bm,useMemo:$m,useReducer:fc,useRef:Nm,useState:function(){return fc(Xl)},useDebugValue:Xf,useDeferredValue:function(e){var t=tn();return Fm(t,Qe.memoizedState,e)},useTransition:function(){var e=fc(Xl)[0],t=tn().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:Rm,useId:Um,unstable_isNewReconciler:!1},xk={readContext:en,useCallback:Dm,useContext:en,useEffect:Zf,useImperativeHandle:zm,useInsertionEffect:Mm,useLayoutEffect:Bm,useMemo:$m,useReducer:dc,useRef:Nm,useState:function(){return dc(Xl)},useDebugValue:Xf,useDeferredValue:function(e){var t=tn();return Qe===null?t.memoizedState=e:Fm(t,Qe.memoizedState,e)},useTransition:function(){var e=dc(Xl)[0],t=tn().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:Rm,useId:Um,unstable_isNewReconciler:!1};function Wi(e,t){try{var r="",l=t;do r+=Z2(l),l=l.return;while(l);var o=r}catch(s){o=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function pc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Jc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Ck=typeof WeakMap=="function"?WeakMap:Map;function Gm(e,t,r){r=Fn(-1,r),r.tag=3,r.payload={element:null};var l=t.value;return r.callback=function(){bu||(bu=!0,af=l),Jc(e,t)},r}function Qm(e,t,r){r=Fn(-1,r),r.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var o=t.value;r.payload=function(){return l(o)},r.callback=function(){Jc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Jc(e,t),typeof l!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),r}function Dg(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new Ck;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(o.add(r),e=zk.bind(null,e,t,r),t.then(e,e))}function $g(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Fg(e,t,r,l,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Fn(-1,1),t.tag=2,hr(r,t,1))),r.lanes|=1),e)}var Ek=Gn.ReactCurrentOwner,kt=!1;function mt(e,t,r,l){t.child=e===null?Em(t,null,r,l):Mi(t,e.child,r,l)}function Ug(e,t,r,l,o){r=r.render;var s=t.ref;return Ti(t,o),l=Kf(e,t,r,l,s,o),r=Yf(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vn(e,t,o)):(Pe&&r&&Wf(t),t.flags|=1,mt(e,t,l,o),t.child)}function jg(e,t,r,l,o){if(e===null){var s=r.type;return typeof s=="function"&&!ld(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,qm(e,t,s,l,o)):(e=Pu(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var c=s.memoizedProps;if(r=r.compare,r=r!==null?r:Vl,r(c,l)&&e.ref===t.ref)return Vn(e,t,o)}return t.flags|=1,e=vr(s,l),e.ref=t.ref,e.return=t,t.child=e}function qm(e,t,r,l,o){if(e!==null){var s=e.memoizedProps;if(Vl(s,l)&&e.ref===t.ref)if(kt=!1,t.pendingProps=l=s,(e.lanes&o)!==0)e.flags&131072&&(kt=!0);else return t.lanes=e.lanes,Vn(e,t,o)}return bc(e,t,r,l,o)}function Km(e,t,r){var l=t.pendingProps,o=l.children,s=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(Ei,Wt),Wt|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Re(Ei,Wt),Wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=s!==null?s.baseLanes:r,Re(Ei,Wt),Wt|=l}else s!==null?(l=s.baseLanes|r,t.memoizedState=null):l=r,Re(Ei,Wt),Wt|=l;return mt(e,t,o,r),t.child}function Ym(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bc(e,t,r,l,o){var s=Rt(r)?Ur:ct.current;return s=Pi(t,s),Ti(t,o),r=Kf(e,t,r,l,s,o),l=Yf(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vn(e,t,o)):(Pe&&l&&Wf(t),t.flags|=1,mt(e,t,r,o),t.child)}function Hg(e,t,r,l,o){if(Rt(r)){var s=!0;Hu(t)}else s=!1;if(Ti(t,o),t.stateNode===null)Tu(e,t),xm(t,r,l),Xc(t,r,l,o),l=!0;else if(e===null){var c=t.stateNode,f=t.memoizedProps;c.props=f;var p=c.context,m=r.contextType;typeof m=="object"&&m!==null?m=en(m):(m=Rt(r)?Ur:ct.current,m=Pi(t,m));var y=r.getDerivedStateFromProps,w=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function";w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==l||p!==m)&&Mg(t,c,l,m),ir=!1;var _=t.memoizedState;c.state=_,Ku(t,l,c,o),p=t.memoizedState,f!==l||_!==p||Lt.current||ir?(typeof y=="function"&&(Zc(t,r,y,l),p=t.memoizedState),(f=ir||Ng(t,r,f,l,_,p,m))?(w||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=p),c.props=l,c.state=p,c.context=m,l=f):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,_m(e,t),f=t.memoizedProps,m=t.type===t.elementType?f:fn(t.type,f),c.props=m,w=t.pendingProps,_=c.context,p=r.contextType,typeof p=="object"&&p!==null?p=en(p):(p=Rt(r)?Ur:ct.current,p=Pi(t,p));var k=r.getDerivedStateFromProps;(y=typeof k=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==w||_!==p)&&Mg(t,c,l,p),ir=!1,_=t.memoizedState,c.state=_,Ku(t,l,c,o);var A=t.memoizedState;f!==w||_!==A||Lt.current||ir?(typeof k=="function"&&(Zc(t,r,k,l),A=t.memoizedState),(m=ir||Ng(t,r,m,l,_,A,p)||!1)?(y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,A,p),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,A,p)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=A),c.props=l,c.state=A,c.context=p,l=m):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),l=!1)}return ef(e,t,r,l,s,o)}function ef(e,t,r,l,o,s){Ym(e,t);var c=(t.flags&128)!==0;if(!l&&!c)return o&&Ig(t,r,!1),Vn(e,t,s);l=t.stateNode,Ek.current=t;var f=c&&typeof r.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&c?(t.child=Mi(t,e.child,null,s),t.child=Mi(t,null,f,s)):mt(e,t,f,s),t.memoizedState=l.state,o&&Ig(t,r,!0),t.child}function Zm(e){var t=e.stateNode;t.pendingContext?Rg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rg(e,t.context,!1),Vf(e,t.containerInfo)}function Vg(e,t,r,l,o){return Ni(),Df(o),t.flags|=256,mt(e,t,r,l),t.child}var tf={dehydrated:null,treeContext:null,retryLane:0};function nf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xm(e,t,r){var l=t.pendingProps,o=Me.current,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(o&2)!==0),f?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Re(Me,o&1),e===null)return Kc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=l.children,e=l.fallback,s?(l=t.mode,s=t.child,c={mode:"hidden",children:c},!(l&1)&&s!==null?(s.childLanes=0,s.pendingProps=c):s=ys(c,l,0,null),e=Fr(e,l,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=nf(r),t.memoizedState=tf,e):Jf(t,c));if(o=e.memoizedState,o!==null&&(f=o.dehydrated,f!==null))return kk(e,t,c,l,f,o,r);if(s){s=l.fallback,c=t.mode,o=e.child,f=o.sibling;var p={mode:"hidden",children:l.children};return!(c&1)&&t.child!==o?(l=t.child,l.childLanes=0,l.pendingProps=p,t.deletions=null):(l=vr(o,p),l.subtreeFlags=o.subtreeFlags&14680064),f!==null?s=vr(f,s):(s=Fr(s,c,r,null),s.flags|=2),s.return=t,l.return=t,l.sibling=s,t.child=l,l=s,s=t.child,c=e.child.memoizedState,c=c===null?nf(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=tf,l}return s=e.child,e=s.sibling,l=vr(s,{mode:"visible",children:l.children}),!(t.mode&1)&&(l.lanes=r),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l}function Jf(e,t){return t=ys({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gu(e,t,r,l){return l!==null&&Df(l),Mi(t,e.child,null,r),e=Jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kk(e,t,r,l,o,s,c){if(r)return t.flags&256?(t.flags&=-257,l=pc(Error(V(422))),gu(e,t,c,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=l.fallback,o=t.mode,l=ys({mode:"visible",children:l.children},o,0,null),s=Fr(s,o,c,null),s.flags|=2,l.return=t,s.return=t,l.sibling=s,t.child=l,t.mode&1&&Mi(t,e.child,null,c),t.child.memoizedState=nf(c),t.memoizedState=tf,s);if(!(t.mode&1))return gu(e,t,c,null);if(o.data==="$!"){if(l=o.nextSibling&&o.nextSibling.dataset,l)var f=l.dgst;return l=f,s=Error(V(419)),l=pc(s,l,void 0),gu(e,t,c,l)}if(f=(c&e.childLanes)!==0,kt||f){if(l=Xe,l!==null){switch(c&-c){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(l.suspendedLanes|c)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Hn(e,o),gn(l,e,o,-1))}return id(),l=pc(Error(V(421))),gu(e,t,c,l)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Dk.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,zt=pr(o.nextSibling),Dt=t,Pe=!0,pn=null,e!==null&&(Zt[Xt++]=Dn,Zt[Xt++]=$n,Zt[Xt++]=jr,Dn=e.id,$n=e.overflow,jr=t),t=Jf(t,l.children),t.flags|=4096,t)}function Gg(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Yc(e.return,t,r)}function hc(e,t,r,l,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=r,s.tailMode=o)}function Jm(e,t,r){var l=t.pendingProps,o=l.revealOrder,s=l.tail;if(mt(e,t,l.children,r),l=Me.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gg(e,r,t);else if(e.tag===19)Gg(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(Re(Me,l),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Yu(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),hc(t,!1,o,r,s);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Yu(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}hc(t,!0,r,null,s);break;case"together":hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Vr|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,r=vr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=vr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Lk(e,t,r){switch(t.tag){case 3:Zm(t),Ni();break;case 5:km(t);break;case 1:Rt(t.type)&&Hu(t);break;case 4:Vf(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,o=t.memoizedProps.value;Re(Qu,l._currentValue),l._currentValue=o;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Re(Me,Me.current&1),t.flags|=128,null):r&t.child.childLanes?Xm(e,t,r):(Re(Me,Me.current&1),e=Vn(e,t,r),e!==null?e.sibling:null);Re(Me,Me.current&1);break;case 19:if(l=(r&t.childLanes)!==0,e.flags&128){if(l)return Jm(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Re(Me,Me.current),l)break;return null;case 22:case 23:return t.lanes=0,Km(e,t,r)}return Vn(e,t,r)}var bm,rf,ev,tv;bm=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};rf=function(){};ev=function(e,t,r,l){var o=e.memoizedProps;if(o!==l){e=t.stateNode,Dr(En.current);var s=null;switch(r){case"input":o=kc(e,o),l=kc(e,l),s=[];break;case"select":o=We({},o,{value:void 0}),l=We({},l,{value:void 0}),s=[];break;case"textarea":o=Ic(e,o),l=Ic(e,l),s=[];break;default:typeof o.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Uu)}Oc(r,l);var c;r=null;for(m in o)if(!l.hasOwnProperty(m)&&o.hasOwnProperty(m)&&o[m]!=null)if(m==="style"){var f=o[m];for(c in f)f.hasOwnProperty(c)&&(r||(r={}),r[c]="")}else m!=="dangerouslySetInnerHTML"&&m!=="children"&&m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(zl.hasOwnProperty(m)?s||(s=[]):(s=s||[]).push(m,null));for(m in l){var p=l[m];if(f=o!=null?o[m]:void 0,l.hasOwnProperty(m)&&p!==f&&(p!=null||f!=null))if(m==="style")if(f){for(c in f)!f.hasOwnProperty(c)||p&&p.hasOwnProperty(c)||(r||(r={}),r[c]="");for(c in p)p.hasOwnProperty(c)&&f[c]!==p[c]&&(r||(r={}),r[c]=p[c])}else r||(s||(s=[]),s.push(m,r)),r=p;else m==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,f=f?f.__html:void 0,p!=null&&f!==p&&(s=s||[]).push(m,p)):m==="children"?typeof p!="string"&&typeof p!="number"||(s=s||[]).push(m,""+p):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&(zl.hasOwnProperty(m)?(p!=null&&m==="onScroll"&&Te("scroll",e),s||f===p||(s=[])):(s=s||[]).push(m,p))}r&&(s=s||[]).push("style",r);var m=s;(t.updateQueue=m)&&(t.flags|=4)}};tv=function(e,t,r,l){r!==l&&(t.flags|=4)};function wl(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags&14680064,l|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function Rk(e,t,r){var l=t.pendingProps;switch(zf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return Rt(t.type)&&ju(),st(t),null;case 3:return l=t.stateNode,Bi(),Oe(Lt),Oe(ct),Qf(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(pu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pn!==null&&(df(pn),pn=null))),rf(e,t),st(t),null;case 5:Gf(t);var o=Dr(Yl.current);if(r=t.type,e!==null&&t.stateNode!=null)ev(e,t,r,l,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(V(166));return st(t),null}if(e=Dr(En.current),pu(t)){l=t.stateNode,r=t.type;var s=t.memoizedProps;switch(l[xn]=t,l[ql]=s,e=(t.mode&1)!==0,r){case"dialog":Te("cancel",l),Te("close",l);break;case"iframe":case"object":case"embed":Te("load",l);break;case"video":case"audio":for(o=0;o<Ll.length;o++)Te(Ll[o],l);break;case"source":Te("error",l);break;case"img":case"image":case"link":Te("error",l),Te("load",l);break;case"details":Te("toggle",l);break;case"input":eg(l,s),Te("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!s.multiple},Te("invalid",l);break;case"textarea":ng(l,s),Te("invalid",l)}Oc(r,s),o=null;for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];c==="children"?typeof f=="string"?l.textContent!==f&&(s.suppressHydrationWarning!==!0&&du(l.textContent,f,e),o=["children",f]):typeof f=="number"&&l.textContent!==""+f&&(s.suppressHydrationWarning!==!0&&du(l.textContent,f,e),o=["children",""+f]):zl.hasOwnProperty(c)&&f!=null&&c==="onScroll"&&Te("scroll",l)}switch(r){case"input":iu(l),tg(l,s,!0);break;case"textarea":iu(l),rg(l);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(l.onclick=Uu)}l=o,t.updateQueue=l,l!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=I0(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=c.createElement(r,{is:l.is}):(e=c.createElement(r),r==="select"&&(c=e,l.multiple?c.multiple=!0:l.size&&(c.size=l.size))):e=c.createElementNS(e,r),e[xn]=t,e[ql]=l,bm(e,t,!1,!1),t.stateNode=e;e:{switch(c=Ac(r,l),r){case"dialog":Te("cancel",e),Te("close",e),o=l;break;case"iframe":case"object":case"embed":Te("load",e),o=l;break;case"video":case"audio":for(o=0;o<Ll.length;o++)Te(Ll[o],e);o=l;break;case"source":Te("error",e),o=l;break;case"img":case"image":case"link":Te("error",e),Te("load",e),o=l;break;case"details":Te("toggle",e),o=l;break;case"input":eg(e,l),o=kc(e,l),Te("invalid",e);break;case"option":o=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},o=We({},l,{value:void 0}),Te("invalid",e);break;case"textarea":ng(e,l),o=Ic(e,l),Te("invalid",e);break;default:o=l}Oc(r,o),f=o;for(s in f)if(f.hasOwnProperty(s)){var p=f[s];s==="style"?A0(e,p):s==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,p!=null&&T0(e,p)):s==="children"?typeof p=="string"?(r!=="textarea"||p!=="")&&Dl(e,p):typeof p=="number"&&Dl(e,""+p):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(zl.hasOwnProperty(s)?p!=null&&s==="onScroll"&&Te("scroll",e):p!=null&&xf(e,s,p,c))}switch(r){case"input":iu(e),tg(e,l,!1);break;case"textarea":iu(e),rg(e);break;case"option":l.value!=null&&e.setAttribute("value",""+_r(l.value));break;case"select":e.multiple=!!l.multiple,s=l.value,s!=null?ki(e,!!l.multiple,s,!1):l.defaultValue!=null&&ki(e,!!l.multiple,l.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Uu)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return st(t),null;case 6:if(e&&t.stateNode!=null)tv(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(V(166));if(r=Dr(Yl.current),Dr(En.current),pu(t)){if(l=t.stateNode,r=t.memoizedProps,l[xn]=t,(s=l.nodeValue!==r)&&(e=Dt,e!==null))switch(e.tag){case 3:du(l.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&du(l.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else l=(r.nodeType===9?r:r.ownerDocument).createTextNode(l),l[xn]=t,t.stateNode=l}return st(t),null;case 13:if(Oe(Me),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&zt!==null&&t.mode&1&&!(t.flags&128))wm(),Ni(),t.flags|=98560,s=!1;else if(s=pu(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(V(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(V(317));s[xn]=t}else Ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;st(t),s=!1}else pn!==null&&(df(pn),pn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,t.mode&1&&(e===null||Me.current&1?qe===0&&(qe=3):id())),t.updateQueue!==null&&(t.flags|=4),st(t),null);case 4:return Bi(),rf(e,t),e===null&&Gl(t.stateNode.containerInfo),st(t),null;case 10:return Uf(t.type._context),st(t),null;case 17:return Rt(t.type)&&ju(),st(t),null;case 19:if(Oe(Me),s=t.memoizedState,s===null)return st(t),null;if(l=(t.flags&128)!==0,c=s.rendering,c===null)if(l)wl(s,!1);else{if(qe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Yu(e),c!==null){for(t.flags|=128,wl(s,!1),l=c.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=r,r=t.child;r!==null;)s=r,e=l,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Re(Me,Me.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ue()>zi&&(t.flags|=128,l=!0,wl(s,!1),t.lanes=4194304)}else{if(!l)if(e=Yu(c),e!==null){if(t.flags|=128,l=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),wl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Pe)return st(t),null}else 2*Ue()-s.renderingStartTime>zi&&r!==1073741824&&(t.flags|=128,l=!0,wl(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(r=s.last,r!==null?r.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ue(),t.sibling=null,r=Me.current,Re(Me,l?r&1|2:r&1),t):(st(t),null);case 22:case 23:return rd(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?Wt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function Ik(e,t){switch(zf(t),t.tag){case 1:return Rt(t.type)&&ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bi(),Oe(Lt),Oe(ct),Qf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gf(t),null;case 13:if(Oe(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Me),null;case 4:return Bi(),null;case 10:return Uf(t.type._context),null;case 22:case 23:return rd(),null;case 24:return null;default:return null}}var mu=!1,at=!1,Tk=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Ci(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(l){De(e,t,l)}else r.current=null}function lf(e,t,r){try{r()}catch(l){De(e,t,l)}}var Qg=!1;function Ok(e,t){if(Uc=Du,e=lm(),Bf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var c=0,f=-1,p=-1,m=0,y=0,w=e,_=null;t:for(;;){for(var k;w!==r||o!==0&&w.nodeType!==3||(f=c+o),w!==s||l!==0&&w.nodeType!==3||(p=c+l),w.nodeType===3&&(c+=w.nodeValue.length),(k=w.firstChild)!==null;)_=w,w=k;for(;;){if(w===e)break t;if(_===r&&++m===o&&(f=c),_===s&&++y===l&&(p=c),(k=w.nextSibling)!==null)break;w=_,_=w.parentNode}w=k}r=f===-1||p===-1?null:{start:f,end:p}}else r=null}r=r||{start:0,end:0}}else r=null;for(jc={focusedElem:e,selectionRange:r},Du=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var A=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(A!==null){var T=A.memoizedProps,B=A.memoizedState,v=t.stateNode,S=v.getSnapshotBeforeUpdate(t.elementType===t.type?T:fn(t.type,T),B);v.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(O){De(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return A=Qg,Qg=!1,A}function Ml(e,t,r){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var o=l=l.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&lf(t,r,s)}o=o.next}while(o!==l)}}function vs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var l=r.create;r.destroy=l()}r=r.next}while(r!==t)}}function of(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function nv(e){var t=e.alternate;t!==null&&(e.alternate=null,nv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xn],delete t[ql],delete t[Gc],delete t[dk],delete t[pk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rv(e){return e.tag===5||e.tag===3||e.tag===4}function qg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uf(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Uu));else if(l!==4&&(e=e.child,e!==null))for(uf(e,t,r),e=e.sibling;e!==null;)uf(e,t,r),e=e.sibling}function sf(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(sf(e,t,r),e=e.sibling;e!==null;)sf(e,t,r),e=e.sibling}var tt=null,dn=!1;function nr(e,t,r){for(r=r.child;r!==null;)iv(e,t,r),r=r.sibling}function iv(e,t,r){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(as,r)}catch{}switch(r.tag){case 5:at||Ci(r,t);case 6:var l=tt,o=dn;tt=null,nr(e,t,r),tt=l,dn=o,tt!==null&&(dn?(e=tt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):tt.removeChild(r.stateNode));break;case 18:tt!==null&&(dn?(e=tt,r=r.stateNode,e.nodeType===8?uc(e.parentNode,r):e.nodeType===1&&uc(e,r),jl(e)):uc(tt,r.stateNode));break;case 4:l=tt,o=dn,tt=r.stateNode.containerInfo,dn=!0,nr(e,t,r),tt=l,dn=o;break;case 0:case 11:case 14:case 15:if(!at&&(l=r.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){o=l=l.next;do{var s=o,c=s.destroy;s=s.tag,c!==void 0&&(s&2||s&4)&&lf(r,t,c),o=o.next}while(o!==l)}nr(e,t,r);break;case 1:if(!at&&(Ci(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=r.memoizedProps,l.state=r.memoizedState,l.componentWillUnmount()}catch(f){De(r,t,f)}nr(e,t,r);break;case 21:nr(e,t,r);break;case 22:r.mode&1?(at=(l=at)||r.memoizedState!==null,nr(e,t,r),at=l):nr(e,t,r);break;default:nr(e,t,r)}}function Kg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Tk),t.forEach(function(l){var o=$k.bind(null,e,l);r.has(l)||(r.add(l),l.then(o,o))})}}function an(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l];try{var s=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 5:tt=f.stateNode,dn=!1;break e;case 3:tt=f.stateNode.containerInfo,dn=!0;break e;case 4:tt=f.stateNode.containerInfo,dn=!0;break e}f=f.return}if(tt===null)throw Error(V(160));iv(s,c,o),tt=null,dn=!1;var p=o.alternate;p!==null&&(p.return=null),o.return=null}catch(m){De(o,t,m)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lv(t,e),t=t.sibling}function lv(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(an(t,e),_n(e),l&4){try{Ml(3,e,e.return),vs(3,e)}catch(T){De(e,e.return,T)}try{Ml(5,e,e.return)}catch(T){De(e,e.return,T)}}break;case 1:an(t,e),_n(e),l&512&&r!==null&&Ci(r,r.return);break;case 5:if(an(t,e),_n(e),l&512&&r!==null&&Ci(r,r.return),e.flags&32){var o=e.stateNode;try{Dl(o,"")}catch(T){De(e,e.return,T)}}if(l&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,c=r!==null?r.memoizedProps:s,f=e.type,p=e.updateQueue;if(e.updateQueue=null,p!==null)try{f==="input"&&s.type==="radio"&&s.name!=null&&L0(o,s),Ac(f,c);var m=Ac(f,s);for(c=0;c<p.length;c+=2){var y=p[c],w=p[c+1];y==="style"?A0(o,w):y==="dangerouslySetInnerHTML"?T0(o,w):y==="children"?Dl(o,w):xf(o,y,w,m)}switch(f){case"input":Lc(o,s);break;case"textarea":R0(o,s);break;case"select":var _=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var k=s.value;k!=null?ki(o,!!s.multiple,k,!1):_!==!!s.multiple&&(s.defaultValue!=null?ki(o,!!s.multiple,s.defaultValue,!0):ki(o,!!s.multiple,s.multiple?[]:"",!1))}o[ql]=s}catch(T){De(e,e.return,T)}}break;case 6:if(an(t,e),_n(e),l&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(T){De(e,e.return,T)}}break;case 3:if(an(t,e),_n(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{jl(t.containerInfo)}catch(T){De(e,e.return,T)}break;case 4:an(t,e),_n(e);break;case 13:an(t,e),_n(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(td=Ue())),l&4&&Kg(e);break;case 22:if(y=r!==null&&r.memoizedState!==null,e.mode&1?(at=(m=at)||y,an(t,e),at=m):an(t,e),_n(e),l&8192){if(m=e.memoizedState!==null,(e.stateNode.isHidden=m)&&!y&&e.mode&1)for(Y=e,y=e.child;y!==null;){for(w=Y=y;Y!==null;){switch(_=Y,k=_.child,_.tag){case 0:case 11:case 14:case 15:Ml(4,_,_.return);break;case 1:Ci(_,_.return);var A=_.stateNode;if(typeof A.componentWillUnmount=="function"){l=_,r=_.return;try{t=l,A.props=t.memoizedProps,A.state=t.memoizedState,A.componentWillUnmount()}catch(T){De(l,r,T)}}break;case 5:Ci(_,_.return);break;case 22:if(_.memoizedState!==null){Zg(w);continue}}k!==null?(k.return=_,Y=k):Zg(w)}y=y.sibling}e:for(y=null,w=e;;){if(w.tag===5){if(y===null){y=w;try{o=w.stateNode,m?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(f=w.stateNode,p=w.memoizedProps.style,c=p!=null&&p.hasOwnProperty("display")?p.display:null,f.style.display=O0("display",c))}catch(T){De(e,e.return,T)}}}else if(w.tag===6){if(y===null)try{w.stateNode.nodeValue=m?"":w.memoizedProps}catch(T){De(e,e.return,T)}}else if((w.tag!==22&&w.tag!==23||w.memoizedState===null||w===e)&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===e)break e;for(;w.sibling===null;){if(w.return===null||w.return===e)break e;y===w&&(y=null),w=w.return}y===w&&(y=null),w.sibling.return=w.return,w=w.sibling}}break;case 19:an(t,e),_n(e),l&4&&Kg(e);break;case 21:break;default:an(t,e),_n(e)}}function _n(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(rv(r)){var l=r;break e}r=r.return}throw Error(V(160))}switch(l.tag){case 5:var o=l.stateNode;l.flags&32&&(Dl(o,""),l.flags&=-33);var s=qg(e);sf(e,s,o);break;case 3:case 4:var c=l.stateNode.containerInfo,f=qg(e);uf(e,f,c);break;default:throw Error(V(161))}}catch(p){De(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ak(e,t,r){Y=e,ov(e)}function ov(e,t,r){for(var l=(e.mode&1)!==0;Y!==null;){var o=Y,s=o.child;if(o.tag===22&&l){var c=o.memoizedState!==null||mu;if(!c){var f=o.alternate,p=f!==null&&f.memoizedState!==null||at;f=mu;var m=at;if(mu=c,(at=p)&&!m)for(Y=o;Y!==null;)c=Y,p=c.child,c.tag===22&&c.memoizedState!==null?Xg(o):p!==null?(p.return=c,Y=p):Xg(o);for(;s!==null;)Y=s,ov(s),s=s.sibling;Y=o,mu=f,at=m}Yg(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,Y=s):Yg(e)}}function Yg(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||vs(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!at)if(r===null)l.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:fn(t.type,r.memoizedProps);l.componentDidUpdate(o,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Pg(t,s,l);break;case 3:var c=t.updateQueue;if(c!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Pg(t,c,r)}break;case 5:var f=t.stateNode;if(r===null&&t.flags&4){r=f;var p=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":p.autoFocus&&r.focus();break;case"img":p.src&&(r.src=p.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var m=t.alternate;if(m!==null){var y=m.memoizedState;if(y!==null){var w=y.dehydrated;w!==null&&jl(w)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}at||t.flags&512&&of(t)}catch(_){De(t,t.return,_)}}if(t===e){Y=null;break}if(r=t.sibling,r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Zg(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Xg(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{vs(4,t)}catch(p){De(t,r,p)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var o=t.return;try{l.componentDidMount()}catch(p){De(t,o,p)}}var s=t.return;try{of(t)}catch(p){De(t,s,p)}break;case 5:var c=t.return;try{of(t)}catch(p){De(t,c,p)}}}catch(p){De(t,t.return,p)}if(t===e){Y=null;break}var f=t.sibling;if(f!==null){f.return=t.return,Y=f;break}Y=t.return}}var Pk=Math.ceil,Ju=Gn.ReactCurrentDispatcher,bf=Gn.ReactCurrentOwner,bt=Gn.ReactCurrentBatchConfig,we=0,Xe=null,He=null,nt=0,Wt=0,Ei=Cr(0),qe=0,bl=null,Vr=0,ws=0,ed=0,Bl=null,Et=null,td=0,zi=1/0,Wn=null,bu=!1,af=null,gr=null,vu=!1,ar=null,es=0,Wl=0,cf=null,Ou=-1,Au=0;function vt(){return we&6?Ue():Ou!==-1?Ou:Ou=Ue()}function mr(e){return e.mode&1?we&2&&nt!==0?nt&-nt:gk.transition!==null?(Au===0&&(Au=H0()),Au):(e=Ce,e!==0||(e=window.event,e=e===void 0?16:Z0(e.type)),e):1}function gn(e,t,r,l){if(50<Wl)throw Wl=0,cf=null,Error(V(185));ro(e,r,l),(!(we&2)||e!==Xe)&&(e===Xe&&(!(we&2)&&(ws|=r),qe===4&&or(e,nt)),It(e,l),r===1&&we===0&&!(t.mode&1)&&(zi=Ue()+500,hs&&Er()))}function It(e,t){var r=e.callbackNode;gE(e,t);var l=zu(e,e===Xe?nt:0);if(l===0)r!==null&&og(r),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(r!=null&&og(r),t===1)e.tag===0?hk(Jg.bind(null,e)):gm(Jg.bind(null,e)),ck(function(){!(we&6)&&Er()}),r=null;else{switch(V0(l)){case 1:r=Rf;break;case 4:r=U0;break;case 16:r=Wu;break;case 536870912:r=j0;break;default:r=Wu}r=hv(r,uv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function uv(e,t){if(Ou=-1,Au=0,we&6)throw Error(V(327));var r=e.callbackNode;if(Oi()&&e.callbackNode!==r)return null;var l=zu(e,e===Xe?nt:0);if(l===0)return null;if(l&30||l&e.expiredLanes||t)t=ts(e,l);else{t=l;var o=we;we|=2;var s=av();(Xe!==e||nt!==t)&&(Wn=null,zi=Ue()+500,$r(e,t));do try{Bk();break}catch(f){sv(e,f)}while(1);Ff(),Ju.current=s,we=o,He!==null?t=0:(Xe=null,nt=0,t=qe)}if(t!==0){if(t===2&&(o=Wc(e),o!==0&&(l=o,t=ff(e,o))),t===1)throw r=bl,$r(e,0),or(e,l),It(e,Ue()),r;if(t===6)or(e,l);else{if(o=e.current.alternate,!(l&30)&&!Nk(o)&&(t=ts(e,l),t===2&&(s=Wc(e),s!==0&&(l=s,t=ff(e,s))),t===1))throw r=bl,$r(e,0),or(e,l),It(e,Ue()),r;switch(e.finishedWork=o,e.finishedLanes=l,t){case 0:case 1:throw Error(V(345));case 2:Br(e,Et,Wn);break;case 3:if(or(e,l),(l&130023424)===l&&(t=td+500-Ue(),10<t)){if(zu(e,0)!==0)break;if(o=e.suspendedLanes,(o&l)!==l){vt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Vc(Br.bind(null,e,Et,Wn),t);break}Br(e,Et,Wn);break;case 4:if(or(e,l),(l&4194240)===l)break;for(t=e.eventTimes,o=-1;0<l;){var c=31-hn(l);s=1<<c,c=t[c],c>o&&(o=c),l&=~s}if(l=o,l=Ue()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Pk(l/1960))-l,10<l){e.timeoutHandle=Vc(Br.bind(null,e,Et,Wn),l);break}Br(e,Et,Wn);break;case 5:Br(e,Et,Wn);break;default:throw Error(V(329))}}}return It(e,Ue()),e.callbackNode===r?uv.bind(null,e):null}function ff(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&($r(e,t).flags|=256),e=ts(e,t),e!==2&&(t=Et,Et=r,t!==null&&df(t)),e}function df(e){Et===null?Et=e:Et.push.apply(Et,e)}function Nk(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var l=0;l<r.length;l++){var o=r[l],s=o.getSnapshot;o=o.value;try{if(!mn(s(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function or(e,t){for(t&=~ed,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-hn(t),l=1<<r;e[r]=-1,t&=~l}}function Jg(e){if(we&6)throw Error(V(327));Oi();var t=zu(e,0);if(!(t&1))return It(e,Ue()),null;var r=ts(e,t);if(e.tag!==0&&r===2){var l=Wc(e);l!==0&&(t=l,r=ff(e,l))}if(r===1)throw r=bl,$r(e,0),or(e,t),It(e,Ue()),r;if(r===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Br(e,Et,Wn),It(e,Ue()),null}function nd(e,t){var r=we;we|=1;try{return e(t)}finally{we=r,we===0&&(zi=Ue()+500,hs&&Er())}}function Gr(e){ar!==null&&ar.tag===0&&!(we&6)&&Oi();var t=we;we|=1;var r=bt.transition,l=Ce;try{if(bt.transition=null,Ce=1,e)return e()}finally{Ce=l,bt.transition=r,we=t,!(we&6)&&Er()}}function rd(){Wt=Ei.current,Oe(Ei)}function $r(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,ak(r)),He!==null)for(r=He.return;r!==null;){var l=r;switch(zf(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&ju();break;case 3:Bi(),Oe(Lt),Oe(ct),Qf();break;case 5:Gf(l);break;case 4:Bi();break;case 13:Oe(Me);break;case 19:Oe(Me);break;case 10:Uf(l.type._context);break;case 22:case 23:rd()}r=r.return}if(Xe=e,He=e=vr(e.current,null),nt=Wt=t,qe=0,bl=null,ed=ws=Vr=0,Et=Bl=null,zr!==null){for(t=0;t<zr.length;t++)if(r=zr[t],l=r.interleaved,l!==null){r.interleaved=null;var o=l.next,s=r.pending;if(s!==null){var c=s.next;s.next=o,l.next=c}r.pending=l}zr=null}return e}function sv(e,t){do{var r=He;try{if(Ff(),Ru.current=Xu,Zu){for(var l=Be.memoizedState;l!==null;){var o=l.queue;o!==null&&(o.pending=null),l=l.next}Zu=!1}if(Hr=0,Ye=Qe=Be=null,Nl=!1,Zl=0,bf.current=null,r===null||r.return===null){qe=1,bl=t,He=null;break}e:{var s=e,c=r.return,f=r,p=t;if(t=nt,f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){var m=p,y=f,w=y.tag;if(!(y.mode&1)&&(w===0||w===11||w===15)){var _=y.alternate;_?(y.updateQueue=_.updateQueue,y.memoizedState=_.memoizedState,y.lanes=_.lanes):(y.updateQueue=null,y.memoizedState=null)}var k=$g(c);if(k!==null){k.flags&=-257,Fg(k,c,f,s,t),k.mode&1&&Dg(s,m,t),t=k,p=m;var A=t.updateQueue;if(A===null){var T=new Set;T.add(p),t.updateQueue=T}else A.add(p);break e}else{if(!(t&1)){Dg(s,m,t),id();break e}p=Error(V(426))}}else if(Pe&&f.mode&1){var B=$g(c);if(B!==null){!(B.flags&65536)&&(B.flags|=256),Fg(B,c,f,s,t),Df(Wi(p,f));break e}}s=p=Wi(p,f),qe!==4&&(qe=2),Bl===null?Bl=[s]:Bl.push(s),s=c;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=Gm(s,p,t);Ag(s,v);break e;case 1:f=p;var S=s.type,C=s.stateNode;if(!(s.flags&128)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(gr===null||!gr.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t;var O=Qm(s,f,t);Ag(s,O);break e}}s=s.return}while(s!==null)}fv(r)}catch(M){t=M,He===r&&r!==null&&(He=r=r.return);continue}break}while(1)}function av(){var e=Ju.current;return Ju.current=Xu,e===null?Xu:e}function id(){(qe===0||qe===3||qe===2)&&(qe=4),Xe===null||!(Vr&268435455)&&!(ws&268435455)||or(Xe,nt)}function ts(e,t){var r=we;we|=2;var l=av();(Xe!==e||nt!==t)&&(Wn=null,$r(e,t));do try{Mk();break}catch(o){sv(e,o)}while(1);if(Ff(),we=r,Ju.current=l,He!==null)throw Error(V(261));return Xe=null,nt=0,qe}function Mk(){for(;He!==null;)cv(He)}function Bk(){for(;He!==null&&!oE();)cv(He)}function cv(e){var t=pv(e.alternate,e,Wt);e.memoizedProps=e.pendingProps,t===null?fv(e):He=t,bf.current=null}function fv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Ik(r,t),r!==null){r.flags&=32767,He=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qe=6,He=null;return}}else if(r=Rk(r,t,Wt),r!==null){He=r;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);qe===0&&(qe=5)}function Br(e,t,r){var l=Ce,o=bt.transition;try{bt.transition=null,Ce=1,Wk(e,t,r,l)}finally{bt.transition=o,Ce=l}return null}function Wk(e,t,r,l){do Oi();while(ar!==null);if(we&6)throw Error(V(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(mE(e,s),e===Xe&&(He=Xe=null,nt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||vu||(vu=!0,hv(Wu,function(){return Oi(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=bt.transition,bt.transition=null;var c=Ce;Ce=1;var f=we;we|=4,bf.current=null,Ok(e,r),lv(r,e),nk(jc),Du=!!Uc,jc=Uc=null,e.current=r,Ak(r),uE(),we=f,Ce=c,bt.transition=s}else e.current=r;if(vu&&(vu=!1,ar=e,es=o),s=e.pendingLanes,s===0&&(gr=null),cE(r.stateNode),It(e,Ue()),t!==null)for(l=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],l(o.value,{componentStack:o.stack,digest:o.digest});if(bu)throw bu=!1,e=af,af=null,e;return es&1&&e.tag!==0&&Oi(),s=e.pendingLanes,s&1?e===cf?Wl++:(Wl=0,cf=e):Wl=0,Er(),null}function Oi(){if(ar!==null){var e=V0(es),t=bt.transition,r=Ce;try{if(bt.transition=null,Ce=16>e?16:e,ar===null)var l=!1;else{if(e=ar,ar=null,es=0,we&6)throw Error(V(331));var o=we;for(we|=4,Y=e.current;Y!==null;){var s=Y,c=s.child;if(Y.flags&16){var f=s.deletions;if(f!==null){for(var p=0;p<f.length;p++){var m=f[p];for(Y=m;Y!==null;){var y=Y;switch(y.tag){case 0:case 11:case 15:Ml(8,y,s)}var w=y.child;if(w!==null)w.return=y,Y=w;else for(;Y!==null;){y=Y;var _=y.sibling,k=y.return;if(nv(y),y===m){Y=null;break}if(_!==null){_.return=k,Y=_;break}Y=k}}}var A=s.alternate;if(A!==null){var T=A.child;if(T!==null){A.child=null;do{var B=T.sibling;T.sibling=null,T=B}while(T!==null)}}Y=s}}if(s.subtreeFlags&2064&&c!==null)c.return=s,Y=c;else e:for(;Y!==null;){if(s=Y,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ml(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,Y=v;break e}Y=s.return}}var S=e.current;for(Y=S;Y!==null;){c=Y;var C=c.child;if(c.subtreeFlags&2064&&C!==null)C.return=c,Y=C;else e:for(c=S;Y!==null;){if(f=Y,f.flags&2048)try{switch(f.tag){case 0:case 11:case 15:vs(9,f)}}catch(M){De(f,f.return,M)}if(f===c){Y=null;break e}var O=f.sibling;if(O!==null){O.return=f.return,Y=O;break e}Y=f.return}}if(we=o,Er(),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(as,e)}catch{}l=!0}return l}finally{Ce=r,bt.transition=t}}return!1}function bg(e,t,r){t=Wi(r,t),t=Gm(e,t,1),e=hr(e,t,1),t=vt(),e!==null&&(ro(e,1,t),It(e,t))}function De(e,t,r){if(e.tag===3)bg(e,e,r);else for(;t!==null;){if(t.tag===3){bg(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(gr===null||!gr.has(l))){e=Wi(r,e),e=Qm(t,e,1),t=hr(t,e,1),e=vt(),t!==null&&(ro(t,1,e),It(t,e));break}}t=t.return}}function zk(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&r,Xe===e&&(nt&r)===r&&(qe===4||qe===3&&(nt&130023424)===nt&&500>Ue()-td?$r(e,0):ed|=r),It(e,t)}function dv(e,t){t===0&&(e.mode&1?(t=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):t=1);var r=vt();e=Hn(e,t),e!==null&&(ro(e,t,r),It(e,r))}function Dk(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),dv(e,r)}function $k(e,t){var r=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(V(314))}l!==null&&l.delete(t),dv(e,r)}var pv;pv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)kt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return kt=!1,Lk(e,t,r);kt=!!(e.flags&131072)}else kt=!1,Pe&&t.flags&1048576&&mm(t,Gu,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;Tu(e,t),e=t.pendingProps;var o=Pi(t,ct.current);Ti(t,r),o=Kf(null,t,l,e,o,r);var s=Yf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rt(l)?(s=!0,Hu(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hf(t),o.updater=gs,t.stateNode=o,o._reactInternals=t,Xc(t,l,e,r),t=ef(null,t,l,!0,s,r)):(t.tag=0,Pe&&s&&Wf(t),mt(null,t,o,r),t=t.child),t;case 16:l=t.elementType;e:{switch(Tu(e,t),e=t.pendingProps,o=l._init,l=o(l._payload),t.type=l,o=t.tag=Uk(l),e=fn(l,e),o){case 0:t=bc(null,t,l,e,r);break e;case 1:t=Hg(null,t,l,e,r);break e;case 11:t=Ug(null,t,l,e,r);break e;case 14:t=jg(null,t,l,fn(l.type,e),r);break e}throw Error(V(306,l,""))}return t;case 0:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),bc(e,t,l,o,r);case 1:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),Hg(e,t,l,o,r);case 3:e:{if(Zm(t),e===null)throw Error(V(387));l=t.pendingProps,s=t.memoizedState,o=s.element,_m(e,t),Ku(t,l,null,r);var c=t.memoizedState;if(l=c.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Wi(Error(V(423)),t),t=Vg(e,t,l,r,o);break e}else if(l!==o){o=Wi(Error(V(424)),t),t=Vg(e,t,l,r,o);break e}else for(zt=pr(t.stateNode.containerInfo.firstChild),Dt=t,Pe=!0,pn=null,r=Em(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ni(),l===o){t=Vn(e,t,r);break e}mt(e,t,l,r)}t=t.child}return t;case 5:return km(t),e===null&&Kc(t),l=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,c=o.children,Hc(l,o)?c=null:s!==null&&Hc(l,s)&&(t.flags|=32),Ym(e,t),mt(e,t,c,r),t.child;case 6:return e===null&&Kc(t),null;case 13:return Xm(e,t,r);case 4:return Vf(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Mi(t,null,l,r):mt(e,t,l,r),t.child;case 11:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),Ug(e,t,l,o,r);case 7:return mt(e,t,t.pendingProps,r),t.child;case 8:return mt(e,t,t.pendingProps.children,r),t.child;case 12:return mt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(l=t.type._context,o=t.pendingProps,s=t.memoizedProps,c=o.value,Re(Qu,l._currentValue),l._currentValue=c,s!==null)if(mn(s.value,c)){if(s.children===o.children&&!Lt.current){t=Vn(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var f=s.dependencies;if(f!==null){c=s.child;for(var p=f.firstContext;p!==null;){if(p.context===l){if(s.tag===1){p=Fn(-1,r&-r),p.tag=2;var m=s.updateQueue;if(m!==null){m=m.shared;var y=m.pending;y===null?p.next=p:(p.next=y.next,y.next=p),m.pending=p}}s.lanes|=r,p=s.alternate,p!==null&&(p.lanes|=r),Yc(s.return,r,t),f.lanes|=r;break}p=p.next}}else if(s.tag===10)c=s.type===t.type?null:s.child;else if(s.tag===18){if(c=s.return,c===null)throw Error(V(341));c.lanes|=r,f=c.alternate,f!==null&&(f.lanes|=r),Yc(c,r,t),c=s.sibling}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===t){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}mt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,l=t.pendingProps.children,Ti(t,r),o=en(o),l=l(o),t.flags|=1,mt(e,t,l,r),t.child;case 14:return l=t.type,o=fn(l,t.pendingProps),o=fn(l.type,o),jg(e,t,l,o,r);case 15:return qm(e,t,t.type,t.pendingProps,r);case 17:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),Tu(e,t),t.tag=1,Rt(l)?(e=!0,Hu(t)):e=!1,Ti(t,r),xm(t,l,o),Xc(t,l,o,r),ef(null,t,l,!0,e,r);case 19:return Jm(e,t,r);case 22:return Km(e,t,r)}throw Error(V(156,t.tag))};function hv(e,t){return F0(e,t)}function Fk(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,r,l){return new Fk(e,t,r,l)}function ld(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uk(e){if(typeof e=="function")return ld(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ef)return 11;if(e===kf)return 14}return 2}function vr(e,t){var r=e.alternate;return r===null?(r=Jt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Pu(e,t,r,l,o,s){var c=2;if(l=e,typeof e=="function")ld(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case hi:return Fr(r.children,o,s,t);case Cf:c=8,o|=8;break;case Sc:return e=Jt(12,r,t,o|2),e.elementType=Sc,e.lanes=s,e;case xc:return e=Jt(13,r,t,o),e.elementType=xc,e.lanes=s,e;case Cc:return e=Jt(19,r,t,o),e.elementType=Cc,e.lanes=s,e;case C0:return ys(r,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S0:c=10;break e;case x0:c=9;break e;case Ef:c=11;break e;case kf:c=14;break e;case rr:c=16,l=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Jt(c,r,t,o),t.elementType=e,t.type=l,t.lanes=s,t}function Fr(e,t,r,l){return e=Jt(7,e,l,t),e.lanes=r,e}function ys(e,t,r,l){return e=Jt(22,e,l,t),e.elementType=C0,e.lanes=r,e.stateNode={isHidden:!1},e}function gc(e,t,r){return e=Jt(6,e,null,t),e.lanes=r,e}function mc(e,t,r){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jk(e,t,r,l,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Za(0),this.expirationTimes=Za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.identifierPrefix=l,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function od(e,t,r,l,o,s,c,f,p){return e=new jk(e,t,r,f,p),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Jt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:l,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hf(s),e}function Hk(e,t,r){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pi,key:l==null?null:""+l,children:e,containerInfo:t,implementation:r}}function gv(e){if(!e)return Sr;e=e._reactInternals;e:{if(qr(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var r=e.type;if(Rt(r))return hm(e,r,t)}return t}function mv(e,t,r,l,o,s,c,f,p){return e=od(r,l,!0,e,o,s,c,f,p),e.context=gv(null),r=e.current,l=vt(),o=mr(r),s=Fn(l,o),s.callback=t??null,hr(r,s,o),e.current.lanes=o,ro(e,o,l),It(e,l),e}function _s(e,t,r,l){var o=t.current,s=vt(),c=mr(o);return r=gv(r),t.context===null?t.context=r:t.pendingContext=r,t=Fn(s,c),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=hr(o,t,c),e!==null&&(gn(e,o,c,s),Lu(e,o,c)),c}function ns(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function e0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ud(e,t){e0(e,t),(e=e.alternate)&&e0(e,t)}function Vk(){return null}var vv=typeof reportError=="function"?reportError:function(e){console.error(e)};function sd(e){this._internalRoot=e}Ss.prototype.render=sd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));_s(e,t,null,null)};Ss.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gr(function(){_s(null,e,null,null)}),t[jn]=null}};function Ss(e){this._internalRoot=e}Ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=q0();e={blockedOn:null,target:e,priority:t};for(var r=0;r<lr.length&&t!==0&&t<lr[r].priority;r++);lr.splice(r,0,e),r===0&&Y0(e)}};function ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function t0(){}function Gk(e,t,r,l,o){if(o){if(typeof l=="function"){var s=l;l=function(){var m=ns(c);s.call(m)}}var c=mv(t,l,e,0,null,!1,!1,"",t0);return e._reactRootContainer=c,e[jn]=c.current,Gl(e.nodeType===8?e.parentNode:e),Gr(),c}for(;o=e.lastChild;)e.removeChild(o);if(typeof l=="function"){var f=l;l=function(){var m=ns(p);f.call(m)}}var p=od(e,0,!1,null,null,!1,!1,"",t0);return e._reactRootContainer=p,e[jn]=p.current,Gl(e.nodeType===8?e.parentNode:e),Gr(function(){_s(t,p,r,l)}),p}function Cs(e,t,r,l,o){var s=r._reactRootContainer;if(s){var c=s;if(typeof o=="function"){var f=o;o=function(){var p=ns(c);f.call(p)}}_s(t,c,e,o)}else c=Gk(r,t,e,o,l);return ns(c)}G0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=kl(t.pendingLanes);r!==0&&(If(t,r|1),It(t,Ue()),!(we&6)&&(zi=Ue()+500,Er()))}break;case 13:Gr(function(){var l=Hn(e,1);if(l!==null){var o=vt();gn(l,e,1,o)}}),ud(e,1)}};Tf=function(e){if(e.tag===13){var t=Hn(e,134217728);if(t!==null){var r=vt();gn(t,e,134217728,r)}ud(e,134217728)}};Q0=function(e){if(e.tag===13){var t=mr(e),r=Hn(e,t);if(r!==null){var l=vt();gn(r,e,t,l)}ud(e,t)}};q0=function(){return Ce};K0=function(e,t){var r=Ce;try{return Ce=e,t()}finally{Ce=r}};Nc=function(e,t,r){switch(t){case"input":if(Lc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=ps(l);if(!o)throw Error(V(90));k0(l),Lc(l,o)}}}break;case"textarea":R0(e,r);break;case"select":t=r.value,t!=null&&ki(e,!!r.multiple,t,!1)}};M0=nd;B0=Gr;var Qk={usingClientEntryPoint:!1,Events:[lo,wi,ps,P0,N0,nd]},yl={findFiberByHostInstance:Wr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},qk={bundleType:yl.bundleType,version:yl.version,rendererPackageName:yl.rendererPackageName,rendererConfig:yl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=D0(e),e===null?null:e.stateNode},findFiberByHostInstance:yl.findFiberByHostInstance||Vk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wu.isDisabled&&wu.supportsFiber)try{as=wu.inject(qk),Cn=wu}catch{}}Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qk;Ft.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ad(t))throw Error(V(200));return Hk(e,t,null,r)};Ft.createRoot=function(e,t){if(!ad(e))throw Error(V(299));var r=!1,l="",o=vv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=od(e,1,!1,null,null,r,!1,l,o),e[jn]=t.current,Gl(e.nodeType===8?e.parentNode:e),new sd(t)};Ft.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=D0(t),e=e===null?null:e.stateNode,e};Ft.flushSync=function(e){return Gr(e)};Ft.hydrate=function(e,t,r){if(!xs(t))throw Error(V(200));return Cs(null,e,t,!0,r)};Ft.hydrateRoot=function(e,t,r){if(!ad(e))throw Error(V(405));var l=r!=null&&r.hydratedSources||null,o=!1,s="",c=vv;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),t=mv(t,null,e,1,r??null,o,!1,s,c),e[jn]=t.current,Gl(e),l)for(e=0;e<l.length;e++)r=l[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ss(t)};Ft.render=function(e,t,r){if(!xs(t))throw Error(V(200));return Cs(null,e,t,!1,r)};Ft.unmountComponentAtNode=function(e){if(!xs(e))throw Error(V(40));return e._reactRootContainer?(Gr(function(){Cs(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1};Ft.unstable_batchedUpdates=nd;Ft.unstable_renderSubtreeIntoContainer=function(e,t,r,l){if(!xs(r))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return Cs(e,t,r,!1,l)};Ft.version="18.2.0-next-9e3b772b8-20220608";function wv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wv)}catch(e){console.error(e)}}wv(),m0.exports=Ft;var cd=m0.exports,yv,n0=cd;yv=yc.createRoot=n0.createRoot,yc.hydrateRoot=n0.hydrateRoot;(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var rs={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/rs.exports;(function(e,t){(function(){var r,l="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,y="__lodash_placeholder__",w=1,_=2,k=4,A=1,T=2,B=1,v=2,S=4,C=8,O=16,M=32,F=64,P=128,z=256,J=512,H=30,ee="...",le=800,ae=16,_e=1,me=2,it=3,fe=1/0,j=9007199254740991,q=17976931348623157e292,G=0/0,Z=4294967295,ve=Z-1,je=Z>>>1,Ee=[["ary",P],["bind",B],["bindKey",v],["curry",C],["curryRight",O],["flip",J],["partial",M],["partialRight",F],["rearg",z]],ft="[object Arguments]",dt="[object Array]",Tt="[object AsyncFunction]",Hi="[object Boolean]",Vi="[object Date]",Nv="[object DOMException]",co="[object Error]",fo="[object Function]",gd="[object GeneratorFunction]",nn="[object Map]",Gi="[object Number]",Mv="[object Null]",Ln="[object Object]",md="[object Promise]",Bv="[object Proxy]",Qi="[object RegExp]",rn="[object Set]",qi="[object String]",po="[object Symbol]",Wv="[object Undefined]",Ki="[object WeakMap]",zv="[object WeakSet]",Yi="[object ArrayBuffer]",Yr="[object DataView]",Es="[object Float32Array]",ks="[object Float64Array]",Ls="[object Int8Array]",Rs="[object Int16Array]",Is="[object Int32Array]",Ts="[object Uint8Array]",Os="[object Uint8ClampedArray]",As="[object Uint16Array]",Ps="[object Uint32Array]",Dv=/\b__p \+= '';/g,$v=/\b(__p \+=) '' \+/g,Fv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vd=/&(?:amp|lt|gt|quot|#39);/g,wd=/[&<>"']/g,Uv=RegExp(vd.source),jv=RegExp(wd.source),Hv=/<%-([\s\S]+?)%>/g,Vv=/<%([\s\S]+?)%>/g,yd=/<%=([\s\S]+?)%>/g,Gv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qv=/^\w*$/,qv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ns=/[\\^$.*+?()[\]{}|]/g,Kv=RegExp(Ns.source),Ms=/^\s+/,Yv=/\s/,Zv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xv=/\{\n\/\* \[wrapped with (.+)\] \*/,Jv=/,? & /,bv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,e1=/[()=,{}\[\]\/\s]/,t1=/\\(\\)?/g,n1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_d=/\w*$/,r1=/^[-+]0x[0-9a-f]+$/i,i1=/^0b[01]+$/i,l1=/^\[object .+?Constructor\]$/,o1=/^0o[0-7]+$/i,u1=/^(?:0|[1-9]\d*)$/,s1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ho=/($^)/,a1=/['\n\r\u2028\u2029\\]/g,go="\\ud800-\\udfff",c1="\\u0300-\\u036f",f1="\\ufe20-\\ufe2f",d1="\\u20d0-\\u20ff",Sd=c1+f1+d1,xd="\\u2700-\\u27bf",Cd="a-z\\xdf-\\xf6\\xf8-\\xff",p1="\\xac\\xb1\\xd7\\xf7",h1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g1="\\u2000-\\u206f",m1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ed="A-Z\\xc0-\\xd6\\xd8-\\xde",kd="\\ufe0e\\ufe0f",Ld=p1+h1+g1+m1,Bs="['’]",v1="["+go+"]",Rd="["+Ld+"]",mo="["+Sd+"]",Id="\\d+",w1="["+xd+"]",Td="["+Cd+"]",Od="[^"+go+Ld+Id+xd+Cd+Ed+"]",Ws="\\ud83c[\\udffb-\\udfff]",y1="(?:"+mo+"|"+Ws+")",Ad="[^"+go+"]",zs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+Ed+"]",Pd="\\u200d",Nd="(?:"+Td+"|"+Od+")",_1="(?:"+Zr+"|"+Od+")",Md="(?:"+Bs+"(?:d|ll|m|re|s|t|ve))?",Bd="(?:"+Bs+"(?:D|LL|M|RE|S|T|VE))?",Wd=y1+"?",zd="["+kd+"]?",S1="(?:"+Pd+"(?:"+[Ad,zs,Ds].join("|")+")"+zd+Wd+")*",x1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",C1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dd=zd+Wd+S1,E1="(?:"+[w1,zs,Ds].join("|")+")"+Dd,k1="(?:"+[Ad+mo+"?",mo,zs,Ds,v1].join("|")+")",L1=RegExp(Bs,"g"),R1=RegExp(mo,"g"),$s=RegExp(Ws+"(?="+Ws+")|"+k1+Dd,"g"),I1=RegExp([Zr+"?"+Td+"+"+Md+"(?="+[Rd,Zr,"$"].join("|")+")",_1+"+"+Bd+"(?="+[Rd,Zr+Nd,"$"].join("|")+")",Zr+"?"+Nd+"+"+Md,Zr+"+"+Bd,C1,x1,Id,E1].join("|"),"g"),T1=RegExp("["+Pd+go+Sd+kd+"]"),O1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,A1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],P1=-1,Ie={};Ie[Es]=Ie[ks]=Ie[Ls]=Ie[Rs]=Ie[Is]=Ie[Ts]=Ie[Os]=Ie[As]=Ie[Ps]=!0,Ie[ft]=Ie[dt]=Ie[Yi]=Ie[Hi]=Ie[Yr]=Ie[Vi]=Ie[co]=Ie[fo]=Ie[nn]=Ie[Gi]=Ie[Ln]=Ie[Qi]=Ie[rn]=Ie[qi]=Ie[Ki]=!1;var Le={};Le[ft]=Le[dt]=Le[Yi]=Le[Yr]=Le[Hi]=Le[Vi]=Le[Es]=Le[ks]=Le[Ls]=Le[Rs]=Le[Is]=Le[nn]=Le[Gi]=Le[Ln]=Le[Qi]=Le[rn]=Le[qi]=Le[po]=Le[Ts]=Le[Os]=Le[As]=Le[Ps]=!0,Le[co]=Le[fo]=Le[Ki]=!1;var N1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},M1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},B1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},W1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},z1=parseFloat,D1=parseInt,$d=typeof fl=="object"&&fl&&fl.Object===Object&&fl,$1=typeof self=="object"&&self&&self.Object===Object&&self,Je=$d||$1||Function("return this")(),Fs=t&&!t.nodeType&&t,kr=Fs&&!0&&e&&!e.nodeType&&e,Fd=kr&&kr.exports===Fs,Us=Fd&&$d.process,jt=function(){try{var L=kr&&kr.require&&kr.require("util").types;return L||Us&&Us.binding&&Us.binding("util")}catch{}}(),Ud=jt&&jt.isArrayBuffer,jd=jt&&jt.isDate,Hd=jt&&jt.isMap,Vd=jt&&jt.isRegExp,Gd=jt&&jt.isSet,Qd=jt&&jt.isTypedArray;function Ot(L,W,N){switch(N.length){case 0:return L.call(W);case 1:return L.call(W,N[0]);case 2:return L.call(W,N[0],N[1]);case 3:return L.call(W,N[0],N[1],N[2])}return L.apply(W,N)}function F1(L,W,N,K){for(var ie=-1,ye=L==null?0:L.length;++ie<ye;){var Ve=L[ie];W(K,Ve,N(Ve),L)}return K}function Ht(L,W){for(var N=-1,K=L==null?0:L.length;++N<K&&W(L[N],N,L)!==!1;);return L}function U1(L,W){for(var N=L==null?0:L.length;N--&&W(L[N],N,L)!==!1;);return L}function qd(L,W){for(var N=-1,K=L==null?0:L.length;++N<K;)if(!W(L[N],N,L))return!1;return!0}function qn(L,W){for(var N=-1,K=L==null?0:L.length,ie=0,ye=[];++N<K;){var Ve=L[N];W(Ve,N,L)&&(ye[ie++]=Ve)}return ye}function vo(L,W){var N=L==null?0:L.length;return!!N&&Xr(L,W,0)>-1}function js(L,W,N){for(var K=-1,ie=L==null?0:L.length;++K<ie;)if(N(W,L[K]))return!0;return!1}function Ae(L,W){for(var N=-1,K=L==null?0:L.length,ie=Array(K);++N<K;)ie[N]=W(L[N],N,L);return ie}function Kn(L,W){for(var N=-1,K=W.length,ie=L.length;++N<K;)L[ie+N]=W[N];return L}function Hs(L,W,N,K){var ie=-1,ye=L==null?0:L.length;for(K&&ye&&(N=L[++ie]);++ie<ye;)N=W(N,L[ie],ie,L);return N}function j1(L,W,N,K){var ie=L==null?0:L.length;for(K&&ie&&(N=L[--ie]);ie--;)N=W(N,L[ie],ie,L);return N}function Vs(L,W){for(var N=-1,K=L==null?0:L.length;++N<K;)if(W(L[N],N,L))return!0;return!1}var H1=Gs("length");function V1(L){return L.split("")}function G1(L){return L.match(bv)||[]}function Kd(L,W,N){var K;return N(L,function(ie,ye,Ve){if(W(ie,ye,Ve))return K=ye,!1}),K}function wo(L,W,N,K){for(var ie=L.length,ye=N+(K?1:-1);K?ye--:++ye<ie;)if(W(L[ye],ye,L))return ye;return-1}function Xr(L,W,N){return W===W?rw(L,W,N):wo(L,Yd,N)}function Q1(L,W,N,K){for(var ie=N-1,ye=L.length;++ie<ye;)if(K(L[ie],W))return ie;return-1}function Yd(L){return L!==L}function Zd(L,W){var N=L==null?0:L.length;return N?qs(L,W)/N:G}function Gs(L){return function(W){return W==null?r:W[L]}}function Qs(L){return function(W){return L==null?r:L[W]}}function Xd(L,W,N,K,ie){return ie(L,function(ye,Ve,ke){N=K?(K=!1,ye):W(N,ye,Ve,ke)}),N}function q1(L,W){var N=L.length;for(L.sort(W);N--;)L[N]=L[N].value;return L}function qs(L,W){for(var N,K=-1,ie=L.length;++K<ie;){var ye=W(L[K]);ye!==r&&(N=N===r?ye:N+ye)}return N}function Ks(L,W){for(var N=-1,K=Array(L);++N<L;)K[N]=W(N);return K}function K1(L,W){return Ae(W,function(N){return[N,L[N]]})}function Jd(L){return L&&L.slice(0,np(L)+1).replace(Ms,"")}function At(L){return function(W){return L(W)}}function Ys(L,W){return Ae(W,function(N){return L[N]})}function Zi(L,W){return L.has(W)}function bd(L,W){for(var N=-1,K=L.length;++N<K&&Xr(W,L[N],0)>-1;);return N}function ep(L,W){for(var N=L.length;N--&&Xr(W,L[N],0)>-1;);return N}function Y1(L,W){for(var N=L.length,K=0;N--;)L[N]===W&&++K;return K}var Z1=Qs(N1),X1=Qs(M1);function J1(L){return"\\"+W1[L]}function b1(L,W){return L==null?r:L[W]}function Jr(L){return T1.test(L)}function ew(L){return O1.test(L)}function tw(L){for(var W,N=[];!(W=L.next()).done;)N.push(W.value);return N}function Zs(L){var W=-1,N=Array(L.size);return L.forEach(function(K,ie){N[++W]=[ie,K]}),N}function tp(L,W){return function(N){return L(W(N))}}function Yn(L,W){for(var N=-1,K=L.length,ie=0,ye=[];++N<K;){var Ve=L[N];(Ve===W||Ve===y)&&(L[N]=y,ye[ie++]=N)}return ye}function yo(L){var W=-1,N=Array(L.size);return L.forEach(function(K){N[++W]=K}),N}function nw(L){var W=-1,N=Array(L.size);return L.forEach(function(K){N[++W]=[K,K]}),N}function rw(L,W,N){for(var K=N-1,ie=L.length;++K<ie;)if(L[K]===W)return K;return-1}function iw(L,W,N){for(var K=N+1;K--;)if(L[K]===W)return K;return K}function br(L){return Jr(L)?ow(L):H1(L)}function ln(L){return Jr(L)?uw(L):V1(L)}function np(L){for(var W=L.length;W--&&Yv.test(L.charAt(W)););return W}var lw=Qs(B1);function ow(L){for(var W=$s.lastIndex=0;$s.test(L);)++W;return W}function uw(L){return L.match($s)||[]}function sw(L){return L.match(I1)||[]}var aw=function L(W){W=W==null?Je:ei.defaults(Je.Object(),W,ei.pick(Je,A1));var N=W.Array,K=W.Date,ie=W.Error,ye=W.Function,Ve=W.Math,ke=W.Object,Xs=W.RegExp,cw=W.String,Vt=W.TypeError,_o=N.prototype,fw=ye.prototype,ti=ke.prototype,So=W["__core-js_shared__"],xo=fw.toString,xe=ti.hasOwnProperty,dw=0,rp=function(){var n=/[^.]+$/.exec(So&&So.keys&&So.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Co=ti.toString,pw=xo.call(ke),hw=Je._,gw=Xs("^"+xo.call(xe).replace(Ns,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Eo=Fd?W.Buffer:r,Zn=W.Symbol,ko=W.Uint8Array,ip=Eo?Eo.allocUnsafe:r,Lo=tp(ke.getPrototypeOf,ke),lp=ke.create,op=ti.propertyIsEnumerable,Ro=_o.splice,up=Zn?Zn.isConcatSpreadable:r,Xi=Zn?Zn.iterator:r,Lr=Zn?Zn.toStringTag:r,Io=function(){try{var n=Ar(ke,"defineProperty");return n({},"",{}),n}catch{}}(),mw=W.clearTimeout!==Je.clearTimeout&&W.clearTimeout,vw=K&&K.now!==Je.Date.now&&K.now,ww=W.setTimeout!==Je.setTimeout&&W.setTimeout,To=Ve.ceil,Oo=Ve.floor,Js=ke.getOwnPropertySymbols,yw=Eo?Eo.isBuffer:r,sp=W.isFinite,_w=_o.join,Sw=tp(ke.keys,ke),Ge=Ve.max,lt=Ve.min,xw=K.now,Cw=W.parseInt,ap=Ve.random,Ew=_o.reverse,bs=Ar(W,"DataView"),Ji=Ar(W,"Map"),ea=Ar(W,"Promise"),ni=Ar(W,"Set"),bi=Ar(W,"WeakMap"),el=Ar(ke,"create"),Ao=bi&&new bi,ri={},kw=Pr(bs),Lw=Pr(Ji),Rw=Pr(ea),Iw=Pr(ni),Tw=Pr(bi),Po=Zn?Zn.prototype:r,tl=Po?Po.valueOf:r,cp=Po?Po.toString:r;function h(n){if(ze(n)&&!oe(n)&&!(n instanceof pe)){if(n instanceof Gt)return n;if(xe.call(n,"__wrapped__"))return fh(n)}return new Gt(n)}var ii=function(){function n(){}return function(i){if(!Ne(i))return{};if(lp)return lp(i);n.prototype=i;var u=new n;return n.prototype=r,u}}();function No(){}function Gt(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}h.templateSettings={escape:Hv,evaluate:Vv,interpolate:yd,variable:"",imports:{_:h}},h.prototype=No.prototype,h.prototype.constructor=h,Gt.prototype=ii(No.prototype),Gt.prototype.constructor=Gt;function pe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function Ow(){var n=new pe(this.__wrapped__);return n.__actions__=_t(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=_t(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=_t(this.__views__),n}function Aw(){if(this.__filtered__){var n=new pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Pw(){var n=this.__wrapped__.value(),i=this.__dir__,u=oe(n),a=i<0,d=u?n.length:0,g=Vy(0,d,this.__views__),x=g.start,E=g.end,R=E-x,D=a?E:x-1,$=this.__iteratees__,U=$.length,Q=0,b=lt(R,this.__takeCount__);if(!u||!a&&d==R&&b==R)return Mp(n,this.__actions__);var ne=[];e:for(;R--&&Q<b;){D+=i;for(var se=-1,re=n[D];++se<U;){var de=$[se],ge=de.iteratee,Mt=de.type,gt=ge(re);if(Mt==me)re=gt;else if(!gt){if(Mt==_e)continue e;break e}}ne[Q++]=re}return ne}pe.prototype=ii(No.prototype),pe.prototype.constructor=pe;function Rr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var a=n[i];this.set(a[0],a[1])}}function Nw(){this.__data__=el?el(null):{},this.size=0}function Mw(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function Bw(n){var i=this.__data__;if(el){var u=i[n];return u===p?r:u}return xe.call(i,n)?i[n]:r}function Ww(n){var i=this.__data__;return el?i[n]!==r:xe.call(i,n)}function zw(n,i){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=el&&i===r?p:i,this}Rr.prototype.clear=Nw,Rr.prototype.delete=Mw,Rr.prototype.get=Bw,Rr.prototype.has=Ww,Rr.prototype.set=zw;function Rn(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var a=n[i];this.set(a[0],a[1])}}function Dw(){this.__data__=[],this.size=0}function $w(n){var i=this.__data__,u=Mo(i,n);if(u<0)return!1;var a=i.length-1;return u==a?i.pop():Ro.call(i,u,1),--this.size,!0}function Fw(n){var i=this.__data__,u=Mo(i,n);return u<0?r:i[u][1]}function Uw(n){return Mo(this.__data__,n)>-1}function jw(n,i){var u=this.__data__,a=Mo(u,n);return a<0?(++this.size,u.push([n,i])):u[a][1]=i,this}Rn.prototype.clear=Dw,Rn.prototype.delete=$w,Rn.prototype.get=Fw,Rn.prototype.has=Uw,Rn.prototype.set=jw;function In(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var a=n[i];this.set(a[0],a[1])}}function Hw(){this.size=0,this.__data__={hash:new Rr,map:new(Ji||Rn),string:new Rr}}function Vw(n){var i=Qo(this,n).delete(n);return this.size-=i?1:0,i}function Gw(n){return Qo(this,n).get(n)}function Qw(n){return Qo(this,n).has(n)}function qw(n,i){var u=Qo(this,n),a=u.size;return u.set(n,i),this.size+=u.size==a?0:1,this}In.prototype.clear=Hw,In.prototype.delete=Vw,In.prototype.get=Gw,In.prototype.has=Qw,In.prototype.set=qw;function Ir(n){var i=-1,u=n==null?0:n.length;for(this.__data__=new In;++i<u;)this.add(n[i])}function Kw(n){return this.__data__.set(n,p),this}function Yw(n){return this.__data__.has(n)}Ir.prototype.add=Ir.prototype.push=Kw,Ir.prototype.has=Yw;function on(n){var i=this.__data__=new Rn(n);this.size=i.size}function Zw(){this.__data__=new Rn,this.size=0}function Xw(n){var i=this.__data__,u=i.delete(n);return this.size=i.size,u}function Jw(n){return this.__data__.get(n)}function bw(n){return this.__data__.has(n)}function ey(n,i){var u=this.__data__;if(u instanceof Rn){var a=u.__data__;if(!Ji||a.length<o-1)return a.push([n,i]),this.size=++u.size,this;u=this.__data__=new In(a)}return u.set(n,i),this.size=u.size,this}on.prototype.clear=Zw,on.prototype.delete=Xw,on.prototype.get=Jw,on.prototype.has=bw,on.prototype.set=ey;function fp(n,i){var u=oe(n),a=!u&&Nr(n),d=!u&&!a&&tr(n),g=!u&&!a&&!d&&si(n),x=u||a||d||g,E=x?Ks(n.length,cw):[],R=E.length;for(var D in n)(i||xe.call(n,D))&&!(x&&(D=="length"||d&&(D=="offset"||D=="parent")||g&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||Pn(D,R)))&&E.push(D);return E}function dp(n){var i=n.length;return i?n[fa(0,i-1)]:r}function ty(n,i){return qo(_t(n),Tr(i,0,n.length))}function ny(n){return qo(_t(n))}function ta(n,i,u){(u!==r&&!un(n[i],u)||u===r&&!(i in n))&&Tn(n,i,u)}function nl(n,i,u){var a=n[i];(!(xe.call(n,i)&&un(a,u))||u===r&&!(i in n))&&Tn(n,i,u)}function Mo(n,i){for(var u=n.length;u--;)if(un(n[u][0],i))return u;return-1}function ry(n,i,u,a){return Xn(n,function(d,g,x){i(a,d,u(d),x)}),a}function pp(n,i){return n&&wn(i,Ke(i),n)}function iy(n,i){return n&&wn(i,xt(i),n)}function Tn(n,i,u){i=="__proto__"&&Io?Io(n,i,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[i]=u}function na(n,i){for(var u=-1,a=i.length,d=N(a),g=n==null;++u<a;)d[u]=g?r:Wa(n,i[u]);return d}function Tr(n,i,u){return n===n&&(u!==r&&(n=n<=u?n:u),i!==r&&(n=n>=i?n:i)),n}function Qt(n,i,u,a,d,g){var x,E=i&w,R=i&_,D=i&k;if(u&&(x=d?u(n,a,d,g):u(n)),x!==r)return x;if(!Ne(n))return n;var $=oe(n);if($){if(x=Qy(n),!E)return _t(n,x)}else{var U=ot(n),Q=U==fo||U==gd;if(tr(n))return zp(n,E);if(U==Ln||U==ft||Q&&!d){if(x=R||Q?{}:nh(n),!E)return R?By(n,iy(x,n)):My(n,pp(x,n))}else{if(!Le[U])return d?n:{};x=qy(n,U,E)}}g||(g=new on);var b=g.get(n);if(b)return b;g.set(n,x),Ah(n)?n.forEach(function(re){x.add(Qt(re,i,u,re,n,g))}):Th(n)&&n.forEach(function(re,de){x.set(de,Qt(re,i,u,de,n,g))});var ne=D?R?xa:Sa:R?xt:Ke,se=$?r:ne(n);return Ht(se||n,function(re,de){se&&(de=re,re=n[de]),nl(x,de,Qt(re,i,u,de,n,g))}),x}function ly(n){var i=Ke(n);return function(u){return hp(u,n,i)}}function hp(n,i,u){var a=u.length;if(n==null)return!a;for(n=ke(n);a--;){var d=u[a],g=i[d],x=n[d];if(x===r&&!(d in n)||!g(x))return!1}return!0}function gp(n,i,u){if(typeof n!="function")throw new Vt(c);return al(function(){n.apply(r,u)},i)}function rl(n,i,u,a){var d=-1,g=vo,x=!0,E=n.length,R=[],D=i.length;if(!E)return R;u&&(i=Ae(i,At(u))),a?(g=js,x=!1):i.length>=o&&(g=Zi,x=!1,i=new Ir(i));e:for(;++d<E;){var $=n[d],U=u==null?$:u($);if($=a||$!==0?$:0,x&&U===U){for(var Q=D;Q--;)if(i[Q]===U)continue e;R.push($)}else g(i,U,a)||R.push($)}return R}var Xn=jp(vn),mp=jp(ia,!0);function oy(n,i){var u=!0;return Xn(n,function(a,d,g){return u=!!i(a,d,g),u}),u}function Bo(n,i,u){for(var a=-1,d=n.length;++a<d;){var g=n[a],x=i(g);if(x!=null&&(E===r?x===x&&!Nt(x):u(x,E)))var E=x,R=g}return R}function uy(n,i,u,a){var d=n.length;for(u=ue(u),u<0&&(u=-u>d?0:d+u),a=a===r||a>d?d:ue(a),a<0&&(a+=d),a=u>a?0:Nh(a);u<a;)n[u++]=i;return n}function vp(n,i){var u=[];return Xn(n,function(a,d,g){i(a,d,g)&&u.push(a)}),u}function be(n,i,u,a,d){var g=-1,x=n.length;for(u||(u=Yy),d||(d=[]);++g<x;){var E=n[g];i>0&&u(E)?i>1?be(E,i-1,u,a,d):Kn(d,E):a||(d[d.length]=E)}return d}var ra=Hp(),wp=Hp(!0);function vn(n,i){return n&&ra(n,i,Ke)}function ia(n,i){return n&&wp(n,i,Ke)}function Wo(n,i){return qn(i,function(u){return Nn(n[u])})}function Or(n,i){i=bn(i,n);for(var u=0,a=i.length;n!=null&&u<a;)n=n[yn(i[u++])];return u&&u==a?n:r}function yp(n,i,u){var a=i(n);return oe(n)?a:Kn(a,u(n))}function pt(n){return n==null?n===r?Wv:Mv:Lr&&Lr in ke(n)?Hy(n):n_(n)}function la(n,i){return n>i}function sy(n,i){return n!=null&&xe.call(n,i)}function ay(n,i){return n!=null&&i in ke(n)}function cy(n,i,u){return n>=lt(i,u)&&n<Ge(i,u)}function oa(n,i,u){for(var a=u?js:vo,d=n[0].length,g=n.length,x=g,E=N(g),R=1/0,D=[];x--;){var $=n[x];x&&i&&($=Ae($,At(i))),R=lt($.length,R),E[x]=!u&&(i||d>=120&&$.length>=120)?new Ir(x&&$):r}$=n[0];var U=-1,Q=E[0];e:for(;++U<d&&D.length<R;){var b=$[U],ne=i?i(b):b;if(b=u||b!==0?b:0,!(Q?Zi(Q,ne):a(D,ne,u))){for(x=g;--x;){var se=E[x];if(!(se?Zi(se,ne):a(n[x],ne,u)))continue e}Q&&Q.push(ne),D.push(b)}}return D}function fy(n,i,u,a){return vn(n,function(d,g,x){i(a,u(d),g,x)}),a}function il(n,i,u){i=bn(i,n),n=oh(n,i);var a=n==null?n:n[yn(Kt(i))];return a==null?r:Ot(a,n,u)}function _p(n){return ze(n)&&pt(n)==ft}function dy(n){return ze(n)&&pt(n)==Yi}function py(n){return ze(n)&&pt(n)==Vi}function ll(n,i,u,a,d){return n===i?!0:n==null||i==null||!ze(n)&&!ze(i)?n!==n&&i!==i:hy(n,i,u,a,ll,d)}function hy(n,i,u,a,d,g){var x=oe(n),E=oe(i),R=x?dt:ot(n),D=E?dt:ot(i);R=R==ft?Ln:R,D=D==ft?Ln:D;var $=R==Ln,U=D==Ln,Q=R==D;if(Q&&tr(n)){if(!tr(i))return!1;x=!0,$=!1}if(Q&&!$)return g||(g=new on),x||si(n)?bp(n,i,u,a,d,g):Uy(n,i,R,u,a,d,g);if(!(u&A)){var b=$&&xe.call(n,"__wrapped__"),ne=U&&xe.call(i,"__wrapped__");if(b||ne){var se=b?n.value():n,re=ne?i.value():i;return g||(g=new on),d(se,re,u,a,g)}}return Q?(g||(g=new on),jy(n,i,u,a,d,g)):!1}function gy(n){return ze(n)&&ot(n)==nn}function ua(n,i,u,a){var d=u.length,g=d,x=!a;if(n==null)return!g;for(n=ke(n);d--;){var E=u[d];if(x&&E[2]?E[1]!==n[E[0]]:!(E[0]in n))return!1}for(;++d<g;){E=u[d];var R=E[0],D=n[R],$=E[1];if(x&&E[2]){if(D===r&&!(R in n))return!1}else{var U=new on;if(a)var Q=a(D,$,R,n,i,U);if(!(Q===r?ll($,D,A|T,a,U):Q))return!1}}return!0}function Sp(n){if(!Ne(n)||Xy(n))return!1;var i=Nn(n)?gw:l1;return i.test(Pr(n))}function my(n){return ze(n)&&pt(n)==Qi}function vy(n){return ze(n)&&ot(n)==rn}function wy(n){return ze(n)&&bo(n.length)&&!!Ie[pt(n)]}function xp(n){return typeof n=="function"?n:n==null?Ct:typeof n=="object"?oe(n)?kp(n[0],n[1]):Ep(n):Vh(n)}function sa(n){if(!sl(n))return Sw(n);var i=[];for(var u in ke(n))xe.call(n,u)&&u!="constructor"&&i.push(u);return i}function yy(n){if(!Ne(n))return t_(n);var i=sl(n),u=[];for(var a in n)a=="constructor"&&(i||!xe.call(n,a))||u.push(a);return u}function aa(n,i){return n<i}function Cp(n,i){var u=-1,a=St(n)?N(n.length):[];return Xn(n,function(d,g,x){a[++u]=i(d,g,x)}),a}function Ep(n){var i=Ea(n);return i.length==1&&i[0][2]?ih(i[0][0],i[0][1]):function(u){return u===n||ua(u,n,i)}}function kp(n,i){return La(n)&&rh(i)?ih(yn(n),i):function(u){var a=Wa(u,n);return a===r&&a===i?za(u,n):ll(i,a,A|T)}}function zo(n,i,u,a,d){n!==i&&ra(i,function(g,x){if(d||(d=new on),Ne(g))_y(n,i,x,u,zo,a,d);else{var E=a?a(Ia(n,x),g,x+"",n,i,d):r;E===r&&(E=g),ta(n,x,E)}},xt)}function _y(n,i,u,a,d,g,x){var E=Ia(n,u),R=Ia(i,u),D=x.get(R);if(D){ta(n,u,D);return}var $=g?g(E,R,u+"",n,i,x):r,U=$===r;if(U){var Q=oe(R),b=!Q&&tr(R),ne=!Q&&!b&&si(R);$=R,Q||b||ne?oe(E)?$=E:$e(E)?$=_t(E):b?(U=!1,$=zp(R,!0)):ne?(U=!1,$=Dp(R,!0)):$=[]:cl(R)||Nr(R)?($=E,Nr(E)?$=Mh(E):(!Ne(E)||Nn(E))&&($=nh(R))):U=!1}U&&(x.set(R,$),d($,R,a,g,x),x.delete(R)),ta(n,u,$)}function Lp(n,i){var u=n.length;if(u)return i+=i<0?u:0,Pn(i,u)?n[i]:r}function Rp(n,i,u){i.length?i=Ae(i,function(g){return oe(g)?function(x){return Or(x,g.length===1?g[0]:g)}:g}):i=[Ct];var a=-1;i=Ae(i,At(te()));var d=Cp(n,function(g,x,E){var R=Ae(i,function(D){return D(g)});return{criteria:R,index:++a,value:g}});return q1(d,function(g,x){return Ny(g,x,u)})}function Sy(n,i){return Ip(n,i,function(u,a){return za(n,a)})}function Ip(n,i,u){for(var a=-1,d=i.length,g={};++a<d;){var x=i[a],E=Or(n,x);u(E,x)&&ol(g,bn(x,n),E)}return g}function xy(n){return function(i){return Or(i,n)}}function ca(n,i,u,a){var d=a?Q1:Xr,g=-1,x=i.length,E=n;for(n===i&&(i=_t(i)),u&&(E=Ae(n,At(u)));++g<x;)for(var R=0,D=i[g],$=u?u(D):D;(R=d(E,$,R,a))>-1;)E!==n&&Ro.call(E,R,1),Ro.call(n,R,1);return n}function Tp(n,i){for(var u=n?i.length:0,a=u-1;u--;){var d=i[u];if(u==a||d!==g){var g=d;Pn(d)?Ro.call(n,d,1):ha(n,d)}}return n}function fa(n,i){return n+Oo(ap()*(i-n+1))}function Cy(n,i,u,a){for(var d=-1,g=Ge(To((i-n)/(u||1)),0),x=N(g);g--;)x[a?g:++d]=n,n+=u;return x}function da(n,i){var u="";if(!n||i<1||i>j)return u;do i%2&&(u+=n),i=Oo(i/2),i&&(n+=n);while(i);return u}function ce(n,i){return Ta(lh(n,i,Ct),n+"")}function Ey(n){return dp(ai(n))}function ky(n,i){var u=ai(n);return qo(u,Tr(i,0,u.length))}function ol(n,i,u,a){if(!Ne(n))return n;i=bn(i,n);for(var d=-1,g=i.length,x=g-1,E=n;E!=null&&++d<g;){var R=yn(i[d]),D=u;if(R==="__proto__"||R==="constructor"||R==="prototype")return n;if(d!=x){var $=E[R];D=a?a($,R,E):r,D===r&&(D=Ne($)?$:Pn(i[d+1])?[]:{})}nl(E,R,D),E=E[R]}return n}var Op=Ao?function(n,i){return Ao.set(n,i),n}:Ct,Ly=Io?function(n,i){return Io(n,"toString",{configurable:!0,enumerable:!1,value:$a(i),writable:!0})}:Ct;function Ry(n){return qo(ai(n))}function qt(n,i,u){var a=-1,d=n.length;i<0&&(i=-i>d?0:d+i),u=u>d?d:u,u<0&&(u+=d),d=i>u?0:u-i>>>0,i>>>=0;for(var g=N(d);++a<d;)g[a]=n[a+i];return g}function Iy(n,i){var u;return Xn(n,function(a,d,g){return u=i(a,d,g),!u}),!!u}function Do(n,i,u){var a=0,d=n==null?a:n.length;if(typeof i=="number"&&i===i&&d<=je){for(;a<d;){var g=a+d>>>1,x=n[g];x!==null&&!Nt(x)&&(u?x<=i:x<i)?a=g+1:d=g}return d}return pa(n,i,Ct,u)}function pa(n,i,u,a){var d=0,g=n==null?0:n.length;if(g===0)return 0;i=u(i);for(var x=i!==i,E=i===null,R=Nt(i),D=i===r;d<g;){var $=Oo((d+g)/2),U=u(n[$]),Q=U!==r,b=U===null,ne=U===U,se=Nt(U);if(x)var re=a||ne;else D?re=ne&&(a||Q):E?re=ne&&Q&&(a||!b):R?re=ne&&Q&&!b&&(a||!se):b||se?re=!1:re=a?U<=i:U<i;re?d=$+1:g=$}return lt(g,ve)}function Ap(n,i){for(var u=-1,a=n.length,d=0,g=[];++u<a;){var x=n[u],E=i?i(x):x;if(!u||!un(E,R)){var R=E;g[d++]=x===0?0:x}}return g}function Pp(n){return typeof n=="number"?n:Nt(n)?G:+n}function Pt(n){if(typeof n=="string")return n;if(oe(n))return Ae(n,Pt)+"";if(Nt(n))return cp?cp.call(n):"";var i=n+"";return i=="0"&&1/n==-fe?"-0":i}function Jn(n,i,u){var a=-1,d=vo,g=n.length,x=!0,E=[],R=E;if(u)x=!1,d=js;else if(g>=o){var D=i?null:$y(n);if(D)return yo(D);x=!1,d=Zi,R=new Ir}else R=i?[]:E;e:for(;++a<g;){var $=n[a],U=i?i($):$;if($=u||$!==0?$:0,x&&U===U){for(var Q=R.length;Q--;)if(R[Q]===U)continue e;i&&R.push(U),E.push($)}else d(R,U,u)||(R!==E&&R.push(U),E.push($))}return E}function ha(n,i){return i=bn(i,n),n=oh(n,i),n==null||delete n[yn(Kt(i))]}function Np(n,i,u,a){return ol(n,i,u(Or(n,i)),a)}function $o(n,i,u,a){for(var d=n.length,g=a?d:-1;(a?g--:++g<d)&&i(n[g],g,n););return u?qt(n,a?0:g,a?g+1:d):qt(n,a?g+1:0,a?d:g)}function Mp(n,i){var u=n;return u instanceof pe&&(u=u.value()),Hs(i,function(a,d){return d.func.apply(d.thisArg,Kn([a],d.args))},u)}function ga(n,i,u){var a=n.length;if(a<2)return a?Jn(n[0]):[];for(var d=-1,g=N(a);++d<a;)for(var x=n[d],E=-1;++E<a;)E!=d&&(g[d]=rl(g[d]||x,n[E],i,u));return Jn(be(g,1),i,u)}function Bp(n,i,u){for(var a=-1,d=n.length,g=i.length,x={};++a<d;){var E=a<g?i[a]:r;u(x,n[a],E)}return x}function ma(n){return $e(n)?n:[]}function va(n){return typeof n=="function"?n:Ct}function bn(n,i){return oe(n)?n:La(n,i)?[n]:ch(Se(n))}var Ty=ce;function er(n,i,u){var a=n.length;return u=u===r?a:u,!i&&u>=a?n:qt(n,i,u)}var Wp=mw||function(n){return Je.clearTimeout(n)};function zp(n,i){if(i)return n.slice();var u=n.length,a=ip?ip(u):new n.constructor(u);return n.copy(a),a}function wa(n){var i=new n.constructor(n.byteLength);return new ko(i).set(new ko(n)),i}function Oy(n,i){var u=i?wa(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function Ay(n){var i=new n.constructor(n.source,_d.exec(n));return i.lastIndex=n.lastIndex,i}function Py(n){return tl?ke(tl.call(n)):{}}function Dp(n,i){var u=i?wa(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function $p(n,i){if(n!==i){var u=n!==r,a=n===null,d=n===n,g=Nt(n),x=i!==r,E=i===null,R=i===i,D=Nt(i);if(!E&&!D&&!g&&n>i||g&&x&&R&&!E&&!D||a&&x&&R||!u&&R||!d)return 1;if(!a&&!g&&!D&&n<i||D&&u&&d&&!a&&!g||E&&u&&d||!x&&d||!R)return-1}return 0}function Ny(n,i,u){for(var a=-1,d=n.criteria,g=i.criteria,x=d.length,E=u.length;++a<x;){var R=$p(d[a],g[a]);if(R){if(a>=E)return R;var D=u[a];return R*(D=="desc"?-1:1)}}return n.index-i.index}function Fp(n,i,u,a){for(var d=-1,g=n.length,x=u.length,E=-1,R=i.length,D=Ge(g-x,0),$=N(R+D),U=!a;++E<R;)$[E]=i[E];for(;++d<x;)(U||d<g)&&($[u[d]]=n[d]);for(;D--;)$[E++]=n[d++];return $}function Up(n,i,u,a){for(var d=-1,g=n.length,x=-1,E=u.length,R=-1,D=i.length,$=Ge(g-E,0),U=N($+D),Q=!a;++d<$;)U[d]=n[d];for(var b=d;++R<D;)U[b+R]=i[R];for(;++x<E;)(Q||d<g)&&(U[b+u[x]]=n[d++]);return U}function _t(n,i){var u=-1,a=n.length;for(i||(i=N(a));++u<a;)i[u]=n[u];return i}function wn(n,i,u,a){var d=!u;u||(u={});for(var g=-1,x=i.length;++g<x;){var E=i[g],R=a?a(u[E],n[E],E,u,n):r;R===r&&(R=n[E]),d?Tn(u,E,R):nl(u,E,R)}return u}function My(n,i){return wn(n,ka(n),i)}function By(n,i){return wn(n,eh(n),i)}function Fo(n,i){return function(u,a){var d=oe(u)?F1:ry,g=i?i():{};return d(u,n,te(a,2),g)}}function li(n){return ce(function(i,u){var a=-1,d=u.length,g=d>1?u[d-1]:r,x=d>2?u[2]:r;for(g=n.length>3&&typeof g=="function"?(d--,g):r,x&&ht(u[0],u[1],x)&&(g=d<3?r:g,d=1),i=ke(i);++a<d;){var E=u[a];E&&n(i,E,a,g)}return i})}function jp(n,i){return function(u,a){if(u==null)return u;if(!St(u))return n(u,a);for(var d=u.length,g=i?d:-1,x=ke(u);(i?g--:++g<d)&&a(x[g],g,x)!==!1;);return u}}function Hp(n){return function(i,u,a){for(var d=-1,g=ke(i),x=a(i),E=x.length;E--;){var R=x[n?E:++d];if(u(g[R],R,g)===!1)break}return i}}function Wy(n,i,u){var a=i&B,d=ul(n);function g(){var x=this&&this!==Je&&this instanceof g?d:n;return x.apply(a?u:this,arguments)}return g}function Vp(n){return function(i){i=Se(i);var u=Jr(i)?ln(i):r,a=u?u[0]:i.charAt(0),d=u?er(u,1).join(""):i.slice(1);return a[n]()+d}}function oi(n){return function(i){return Hs(jh(Uh(i).replace(L1,"")),n,"")}}function ul(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var u=ii(n.prototype),a=n.apply(u,i);return Ne(a)?a:u}}function zy(n,i,u){var a=ul(n);function d(){for(var g=arguments.length,x=N(g),E=g,R=ui(d);E--;)x[E]=arguments[E];var D=g<3&&x[0]!==R&&x[g-1]!==R?[]:Yn(x,R);if(g-=D.length,g<u)return Yp(n,i,Uo,d.placeholder,r,x,D,r,r,u-g);var $=this&&this!==Je&&this instanceof d?a:n;return Ot($,this,x)}return d}function Gp(n){return function(i,u,a){var d=ke(i);if(!St(i)){var g=te(u,3);i=Ke(i),u=function(E){return g(d[E],E,d)}}var x=n(i,u,a);return x>-1?d[g?i[x]:x]:r}}function Qp(n){return An(function(i){var u=i.length,a=u,d=Gt.prototype.thru;for(n&&i.reverse();a--;){var g=i[a];if(typeof g!="function")throw new Vt(c);if(d&&!x&&Go(g)=="wrapper")var x=new Gt([],!0)}for(a=x?a:u;++a<u;){g=i[a];var E=Go(g),R=E=="wrapper"?Ca(g):r;R&&Ra(R[0])&&R[1]==(P|C|M|z)&&!R[4].length&&R[9]==1?x=x[Go(R[0])].apply(x,R[3]):x=g.length==1&&Ra(g)?x[E]():x.thru(g)}return function(){var D=arguments,$=D[0];if(x&&D.length==1&&oe($))return x.plant($).value();for(var U=0,Q=u?i[U].apply(this,D):$;++U<u;)Q=i[U].call(this,Q);return Q}})}function Uo(n,i,u,a,d,g,x,E,R,D){var $=i&P,U=i&B,Q=i&v,b=i&(C|O),ne=i&J,se=Q?r:ul(n);function re(){for(var de=arguments.length,ge=N(de),Mt=de;Mt--;)ge[Mt]=arguments[Mt];if(b)var gt=ui(re),Bt=Y1(ge,gt);if(a&&(ge=Fp(ge,a,d,b)),g&&(ge=Up(ge,g,x,b)),de-=Bt,b&&de<D){var Fe=Yn(ge,gt);return Yp(n,i,Uo,re.placeholder,u,ge,Fe,E,R,D-de)}var sn=U?u:this,Bn=Q?sn[n]:n;return de=ge.length,E?ge=r_(ge,E):ne&&de>1&&ge.reverse(),$&&R<de&&(ge.length=R),this&&this!==Je&&this instanceof re&&(Bn=se||ul(Bn)),Bn.apply(sn,ge)}return re}function qp(n,i){return function(u,a){return fy(u,n,i(a),{})}}function jo(n,i){return function(u,a){var d;if(u===r&&a===r)return i;if(u!==r&&(d=u),a!==r){if(d===r)return a;typeof u=="string"||typeof a=="string"?(u=Pt(u),a=Pt(a)):(u=Pp(u),a=Pp(a)),d=n(u,a)}return d}}function ya(n){return An(function(i){return i=Ae(i,At(te())),ce(function(u){var a=this;return n(i,function(d){return Ot(d,a,u)})})})}function Ho(n,i){i=i===r?" ":Pt(i);var u=i.length;if(u<2)return u?da(i,n):i;var a=da(i,To(n/br(i)));return Jr(i)?er(ln(a),0,n).join(""):a.slice(0,n)}function Dy(n,i,u,a){var d=i&B,g=ul(n);function x(){for(var E=-1,R=arguments.length,D=-1,$=a.length,U=N($+R),Q=this&&this!==Je&&this instanceof x?g:n;++D<$;)U[D]=a[D];for(;R--;)U[D++]=arguments[++E];return Ot(Q,d?u:this,U)}return x}function Kp(n){return function(i,u,a){return a&&typeof a!="number"&&ht(i,u,a)&&(u=a=r),i=Mn(i),u===r?(u=i,i=0):u=Mn(u),a=a===r?i<u?1:-1:Mn(a),Cy(i,u,a,n)}}function Vo(n){return function(i,u){return typeof i=="string"&&typeof u=="string"||(i=Yt(i),u=Yt(u)),n(i,u)}}function Yp(n,i,u,a,d,g,x,E,R,D){var $=i&C,U=$?x:r,Q=$?r:x,b=$?g:r,ne=$?r:g;i|=$?M:F,i&=~($?F:M),i&S||(i&=~(B|v));var se=[n,i,d,b,U,ne,Q,E,R,D],re=u.apply(r,se);return Ra(n)&&uh(re,se),re.placeholder=a,sh(re,n,i)}function _a(n){var i=Ve[n];return function(u,a){if(u=Yt(u),a=a==null?0:lt(ue(a),292),a&&sp(u)){var d=(Se(u)+"e").split("e"),g=i(d[0]+"e"+(+d[1]+a));return d=(Se(g)+"e").split("e"),+(d[0]+"e"+(+d[1]-a))}return i(u)}}var $y=ni&&1/yo(new ni([,-0]))[1]==fe?function(n){return new ni(n)}:ja;function Zp(n){return function(i){var u=ot(i);return u==nn?Zs(i):u==rn?nw(i):K1(i,n(i))}}function On(n,i,u,a,d,g,x,E){var R=i&v;if(!R&&typeof n!="function")throw new Vt(c);var D=a?a.length:0;if(D||(i&=~(M|F),a=d=r),x=x===r?x:Ge(ue(x),0),E=E===r?E:ue(E),D-=d?d.length:0,i&F){var $=a,U=d;a=d=r}var Q=R?r:Ca(n),b=[n,i,u,a,d,$,U,g,x,E];if(Q&&e_(b,Q),n=b[0],i=b[1],u=b[2],a=b[3],d=b[4],E=b[9]=b[9]===r?R?0:n.length:Ge(b[9]-D,0),!E&&i&(C|O)&&(i&=~(C|O)),!i||i==B)var ne=Wy(n,i,u);else i==C||i==O?ne=zy(n,i,E):(i==M||i==(B|M))&&!d.length?ne=Dy(n,i,u,a):ne=Uo.apply(r,b);var se=Q?Op:uh;return sh(se(ne,b),n,i)}function Xp(n,i,u,a){return n===r||un(n,ti[u])&&!xe.call(a,u)?i:n}function Jp(n,i,u,a,d,g){return Ne(n)&&Ne(i)&&(g.set(i,n),zo(n,i,r,Jp,g),g.delete(i)),n}function Fy(n){return cl(n)?r:n}function bp(n,i,u,a,d,g){var x=u&A,E=n.length,R=i.length;if(E!=R&&!(x&&R>E))return!1;var D=g.get(n),$=g.get(i);if(D&&$)return D==i&&$==n;var U=-1,Q=!0,b=u&T?new Ir:r;for(g.set(n,i),g.set(i,n);++U<E;){var ne=n[U],se=i[U];if(a)var re=x?a(se,ne,U,i,n,g):a(ne,se,U,n,i,g);if(re!==r){if(re)continue;Q=!1;break}if(b){if(!Vs(i,function(de,ge){if(!Zi(b,ge)&&(ne===de||d(ne,de,u,a,g)))return b.push(ge)})){Q=!1;break}}else if(!(ne===se||d(ne,se,u,a,g))){Q=!1;break}}return g.delete(n),g.delete(i),Q}function Uy(n,i,u,a,d,g,x){switch(u){case Yr:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case Yi:return!(n.byteLength!=i.byteLength||!g(new ko(n),new ko(i)));case Hi:case Vi:case Gi:return un(+n,+i);case co:return n.name==i.name&&n.message==i.message;case Qi:case qi:return n==i+"";case nn:var E=Zs;case rn:var R=a&A;if(E||(E=yo),n.size!=i.size&&!R)return!1;var D=x.get(n);if(D)return D==i;a|=T,x.set(n,i);var $=bp(E(n),E(i),a,d,g,x);return x.delete(n),$;case po:if(tl)return tl.call(n)==tl.call(i)}return!1}function jy(n,i,u,a,d,g){var x=u&A,E=Sa(n),R=E.length,D=Sa(i),$=D.length;if(R!=$&&!x)return!1;for(var U=R;U--;){var Q=E[U];if(!(x?Q in i:xe.call(i,Q)))return!1}var b=g.get(n),ne=g.get(i);if(b&&ne)return b==i&&ne==n;var se=!0;g.set(n,i),g.set(i,n);for(var re=x;++U<R;){Q=E[U];var de=n[Q],ge=i[Q];if(a)var Mt=x?a(ge,de,Q,i,n,g):a(de,ge,Q,n,i,g);if(!(Mt===r?de===ge||d(de,ge,u,a,g):Mt)){se=!1;break}re||(re=Q=="constructor")}if(se&&!re){var gt=n.constructor,Bt=i.constructor;gt!=Bt&&"constructor"in n&&"constructor"in i&&!(typeof gt=="function"&&gt instanceof gt&&typeof Bt=="function"&&Bt instanceof Bt)&&(se=!1)}return g.delete(n),g.delete(i),se}function An(n){return Ta(lh(n,r,hh),n+"")}function Sa(n){return yp(n,Ke,ka)}function xa(n){return yp(n,xt,eh)}var Ca=Ao?function(n){return Ao.get(n)}:ja;function Go(n){for(var i=n.name+"",u=ri[i],a=xe.call(ri,i)?u.length:0;a--;){var d=u[a],g=d.func;if(g==null||g==n)return d.name}return i}function ui(n){var i=xe.call(h,"placeholder")?h:n;return i.placeholder}function te(){var n=h.iteratee||Fa;return n=n===Fa?xp:n,arguments.length?n(arguments[0],arguments[1]):n}function Qo(n,i){var u=n.__data__;return Zy(i)?u[typeof i=="string"?"string":"hash"]:u.map}function Ea(n){for(var i=Ke(n),u=i.length;u--;){var a=i[u],d=n[a];i[u]=[a,d,rh(d)]}return i}function Ar(n,i){var u=b1(n,i);return Sp(u)?u:r}function Hy(n){var i=xe.call(n,Lr),u=n[Lr];try{n[Lr]=r;var a=!0}catch{}var d=Co.call(n);return a&&(i?n[Lr]=u:delete n[Lr]),d}var ka=Js?function(n){return n==null?[]:(n=ke(n),qn(Js(n),function(i){return op.call(n,i)}))}:Ha,eh=Js?function(n){for(var i=[];n;)Kn(i,ka(n)),n=Lo(n);return i}:Ha,ot=pt;(bs&&ot(new bs(new ArrayBuffer(1)))!=Yr||Ji&&ot(new Ji)!=nn||ea&&ot(ea.resolve())!=md||ni&&ot(new ni)!=rn||bi&&ot(new bi)!=Ki)&&(ot=function(n){var i=pt(n),u=i==Ln?n.constructor:r,a=u?Pr(u):"";if(a)switch(a){case kw:return Yr;case Lw:return nn;case Rw:return md;case Iw:return rn;case Tw:return Ki}return i});function Vy(n,i,u){for(var a=-1,d=u.length;++a<d;){var g=u[a],x=g.size;switch(g.type){case"drop":n+=x;break;case"dropRight":i-=x;break;case"take":i=lt(i,n+x);break;case"takeRight":n=Ge(n,i-x);break}}return{start:n,end:i}}function Gy(n){var i=n.match(Xv);return i?i[1].split(Jv):[]}function th(n,i,u){i=bn(i,n);for(var a=-1,d=i.length,g=!1;++a<d;){var x=yn(i[a]);if(!(g=n!=null&&u(n,x)))break;n=n[x]}return g||++a!=d?g:(d=n==null?0:n.length,!!d&&bo(d)&&Pn(x,d)&&(oe(n)||Nr(n)))}function Qy(n){var i=n.length,u=new n.constructor(i);return i&&typeof n[0]=="string"&&xe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function nh(n){return typeof n.constructor=="function"&&!sl(n)?ii(Lo(n)):{}}function qy(n,i,u){var a=n.constructor;switch(i){case Yi:return wa(n);case Hi:case Vi:return new a(+n);case Yr:return Oy(n,u);case Es:case ks:case Ls:case Rs:case Is:case Ts:case Os:case As:case Ps:return Dp(n,u);case nn:return new a;case Gi:case qi:return new a(n);case Qi:return Ay(n);case rn:return new a;case po:return Py(n)}}function Ky(n,i){var u=i.length;if(!u)return n;var a=u-1;return i[a]=(u>1?"& ":"")+i[a],i=i.join(u>2?", ":" "),n.replace(Zv,`{
/* [wrapped with `+i+`] */
`)}function Yy(n){return oe(n)||Nr(n)||!!(up&&n&&n[up])}function Pn(n,i){var u=typeof n;return i=i??j,!!i&&(u=="number"||u!="symbol"&&u1.test(n))&&n>-1&&n%1==0&&n<i}function ht(n,i,u){if(!Ne(u))return!1;var a=typeof i;return(a=="number"?St(u)&&Pn(i,u.length):a=="string"&&i in u)?un(u[i],n):!1}function La(n,i){if(oe(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Nt(n)?!0:Qv.test(n)||!Gv.test(n)||i!=null&&n in ke(i)}function Zy(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function Ra(n){var i=Go(n),u=h[i];if(typeof u!="function"||!(i in pe.prototype))return!1;if(n===u)return!0;var a=Ca(u);return!!a&&n===a[0]}function Xy(n){return!!rp&&rp in n}var Jy=So?Nn:Va;function sl(n){var i=n&&n.constructor,u=typeof i=="function"&&i.prototype||ti;return n===u}function rh(n){return n===n&&!Ne(n)}function ih(n,i){return function(u){return u==null?!1:u[n]===i&&(i!==r||n in ke(u))}}function by(n){var i=Xo(n,function(a){return u.size===m&&u.clear(),a}),u=i.cache;return i}function e_(n,i){var u=n[1],a=i[1],d=u|a,g=d<(B|v|P),x=a==P&&u==C||a==P&&u==z&&n[7].length<=i[8]||a==(P|z)&&i[7].length<=i[8]&&u==C;if(!(g||x))return n;a&B&&(n[2]=i[2],d|=u&B?0:S);var E=i[3];if(E){var R=n[3];n[3]=R?Fp(R,E,i[4]):E,n[4]=R?Yn(n[3],y):i[4]}return E=i[5],E&&(R=n[5],n[5]=R?Up(R,E,i[6]):E,n[6]=R?Yn(n[5],y):i[6]),E=i[7],E&&(n[7]=E),a&P&&(n[8]=n[8]==null?i[8]:lt(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=d,n}function t_(n){var i=[];if(n!=null)for(var u in ke(n))i.push(u);return i}function n_(n){return Co.call(n)}function lh(n,i,u){return i=Ge(i===r?n.length-1:i,0),function(){for(var a=arguments,d=-1,g=Ge(a.length-i,0),x=N(g);++d<g;)x[d]=a[i+d];d=-1;for(var E=N(i+1);++d<i;)E[d]=a[d];return E[i]=u(x),Ot(n,this,E)}}function oh(n,i){return i.length<2?n:Or(n,qt(i,0,-1))}function r_(n,i){for(var u=n.length,a=lt(i.length,u),d=_t(n);a--;){var g=i[a];n[a]=Pn(g,u)?d[g]:r}return n}function Ia(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var uh=ah(Op),al=ww||function(n,i){return Je.setTimeout(n,i)},Ta=ah(Ly);function sh(n,i,u){var a=i+"";return Ta(n,Ky(a,i_(Gy(a),u)))}function ah(n){var i=0,u=0;return function(){var a=xw(),d=ae-(a-u);if(u=a,d>0){if(++i>=le)return arguments[0]}else i=0;return n.apply(r,arguments)}}function qo(n,i){var u=-1,a=n.length,d=a-1;for(i=i===r?a:i;++u<i;){var g=fa(u,d),x=n[g];n[g]=n[u],n[u]=x}return n.length=i,n}var ch=by(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(qv,function(u,a,d,g){i.push(d?g.replace(t1,"$1"):a||u)}),i});function yn(n){if(typeof n=="string"||Nt(n))return n;var i=n+"";return i=="0"&&1/n==-fe?"-0":i}function Pr(n){if(n!=null){try{return xo.call(n)}catch{}try{return n+""}catch{}}return""}function i_(n,i){return Ht(Ee,function(u){var a="_."+u[0];i&u[1]&&!vo(n,a)&&n.push(a)}),n.sort()}function fh(n){if(n instanceof pe)return n.clone();var i=new Gt(n.__wrapped__,n.__chain__);return i.__actions__=_t(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function l_(n,i,u){(u?ht(n,i,u):i===r)?i=1:i=Ge(ue(i),0);var a=n==null?0:n.length;if(!a||i<1)return[];for(var d=0,g=0,x=N(To(a/i));d<a;)x[g++]=qt(n,d,d+=i);return x}function o_(n){for(var i=-1,u=n==null?0:n.length,a=0,d=[];++i<u;){var g=n[i];g&&(d[a++]=g)}return d}function u_(){var n=arguments.length;if(!n)return[];for(var i=N(n-1),u=arguments[0],a=n;a--;)i[a-1]=arguments[a];return Kn(oe(u)?_t(u):[u],be(i,1))}var s_=ce(function(n,i){return $e(n)?rl(n,be(i,1,$e,!0)):[]}),a_=ce(function(n,i){var u=Kt(i);return $e(u)&&(u=r),$e(n)?rl(n,be(i,1,$e,!0),te(u,2)):[]}),c_=ce(function(n,i){var u=Kt(i);return $e(u)&&(u=r),$e(n)?rl(n,be(i,1,$e,!0),r,u):[]});function f_(n,i,u){var a=n==null?0:n.length;return a?(i=u||i===r?1:ue(i),qt(n,i<0?0:i,a)):[]}function d_(n,i,u){var a=n==null?0:n.length;return a?(i=u||i===r?1:ue(i),i=a-i,qt(n,0,i<0?0:i)):[]}function p_(n,i){return n&&n.length?$o(n,te(i,3),!0,!0):[]}function h_(n,i){return n&&n.length?$o(n,te(i,3),!0):[]}function g_(n,i,u,a){var d=n==null?0:n.length;return d?(u&&typeof u!="number"&&ht(n,i,u)&&(u=0,a=d),uy(n,i,u,a)):[]}function dh(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var d=u==null?0:ue(u);return d<0&&(d=Ge(a+d,0)),wo(n,te(i,3),d)}function ph(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var d=a-1;return u!==r&&(d=ue(u),d=u<0?Ge(a+d,0):lt(d,a-1)),wo(n,te(i,3),d,!0)}function hh(n){var i=n==null?0:n.length;return i?be(n,1):[]}function m_(n){var i=n==null?0:n.length;return i?be(n,fe):[]}function v_(n,i){var u=n==null?0:n.length;return u?(i=i===r?1:ue(i),be(n,i)):[]}function w_(n){for(var i=-1,u=n==null?0:n.length,a={};++i<u;){var d=n[i];a[d[0]]=d[1]}return a}function gh(n){return n&&n.length?n[0]:r}function y_(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var d=u==null?0:ue(u);return d<0&&(d=Ge(a+d,0)),Xr(n,i,d)}function __(n){var i=n==null?0:n.length;return i?qt(n,0,-1):[]}var S_=ce(function(n){var i=Ae(n,ma);return i.length&&i[0]===n[0]?oa(i):[]}),x_=ce(function(n){var i=Kt(n),u=Ae(n,ma);return i===Kt(u)?i=r:u.pop(),u.length&&u[0]===n[0]?oa(u,te(i,2)):[]}),C_=ce(function(n){var i=Kt(n),u=Ae(n,ma);return i=typeof i=="function"?i:r,i&&u.pop(),u.length&&u[0]===n[0]?oa(u,r,i):[]});function E_(n,i){return n==null?"":_w.call(n,i)}function Kt(n){var i=n==null?0:n.length;return i?n[i-1]:r}function k_(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var d=a;return u!==r&&(d=ue(u),d=d<0?Ge(a+d,0):lt(d,a-1)),i===i?iw(n,i,d):wo(n,Yd,d,!0)}function L_(n,i){return n&&n.length?Lp(n,ue(i)):r}var R_=ce(mh);function mh(n,i){return n&&n.length&&i&&i.length?ca(n,i):n}function I_(n,i,u){return n&&n.length&&i&&i.length?ca(n,i,te(u,2)):n}function T_(n,i,u){return n&&n.length&&i&&i.length?ca(n,i,r,u):n}var O_=An(function(n,i){var u=n==null?0:n.length,a=na(n,i);return Tp(n,Ae(i,function(d){return Pn(d,u)?+d:d}).sort($p)),a});function A_(n,i){var u=[];if(!(n&&n.length))return u;var a=-1,d=[],g=n.length;for(i=te(i,3);++a<g;){var x=n[a];i(x,a,n)&&(u.push(x),d.push(a))}return Tp(n,d),u}function Oa(n){return n==null?n:Ew.call(n)}function P_(n,i,u){var a=n==null?0:n.length;return a?(u&&typeof u!="number"&&ht(n,i,u)?(i=0,u=a):(i=i==null?0:ue(i),u=u===r?a:ue(u)),qt(n,i,u)):[]}function N_(n,i){return Do(n,i)}function M_(n,i,u){return pa(n,i,te(u,2))}function B_(n,i){var u=n==null?0:n.length;if(u){var a=Do(n,i);if(a<u&&un(n[a],i))return a}return-1}function W_(n,i){return Do(n,i,!0)}function z_(n,i,u){return pa(n,i,te(u,2),!0)}function D_(n,i){var u=n==null?0:n.length;if(u){var a=Do(n,i,!0)-1;if(un(n[a],i))return a}return-1}function $_(n){return n&&n.length?Ap(n):[]}function F_(n,i){return n&&n.length?Ap(n,te(i,2)):[]}function U_(n){var i=n==null?0:n.length;return i?qt(n,1,i):[]}function j_(n,i,u){return n&&n.length?(i=u||i===r?1:ue(i),qt(n,0,i<0?0:i)):[]}function H_(n,i,u){var a=n==null?0:n.length;return a?(i=u||i===r?1:ue(i),i=a-i,qt(n,i<0?0:i,a)):[]}function V_(n,i){return n&&n.length?$o(n,te(i,3),!1,!0):[]}function G_(n,i){return n&&n.length?$o(n,te(i,3)):[]}var Q_=ce(function(n){return Jn(be(n,1,$e,!0))}),q_=ce(function(n){var i=Kt(n);return $e(i)&&(i=r),Jn(be(n,1,$e,!0),te(i,2))}),K_=ce(function(n){var i=Kt(n);return i=typeof i=="function"?i:r,Jn(be(n,1,$e,!0),r,i)});function Y_(n){return n&&n.length?Jn(n):[]}function Z_(n,i){return n&&n.length?Jn(n,te(i,2)):[]}function X_(n,i){return i=typeof i=="function"?i:r,n&&n.length?Jn(n,r,i):[]}function Aa(n){if(!(n&&n.length))return[];var i=0;return n=qn(n,function(u){if($e(u))return i=Ge(u.length,i),!0}),Ks(i,function(u){return Ae(n,Gs(u))})}function vh(n,i){if(!(n&&n.length))return[];var u=Aa(n);return i==null?u:Ae(u,function(a){return Ot(i,r,a)})}var J_=ce(function(n,i){return $e(n)?rl(n,i):[]}),b_=ce(function(n){return ga(qn(n,$e))}),eS=ce(function(n){var i=Kt(n);return $e(i)&&(i=r),ga(qn(n,$e),te(i,2))}),tS=ce(function(n){var i=Kt(n);return i=typeof i=="function"?i:r,ga(qn(n,$e),r,i)}),nS=ce(Aa);function rS(n,i){return Bp(n||[],i||[],nl)}function iS(n,i){return Bp(n||[],i||[],ol)}var lS=ce(function(n){var i=n.length,u=i>1?n[i-1]:r;return u=typeof u=="function"?(n.pop(),u):r,vh(n,u)});function wh(n){var i=h(n);return i.__chain__=!0,i}function oS(n,i){return i(n),n}function Ko(n,i){return i(n)}var uS=An(function(n){var i=n.length,u=i?n[0]:0,a=this.__wrapped__,d=function(g){return na(g,n)};return i>1||this.__actions__.length||!(a instanceof pe)||!Pn(u)?this.thru(d):(a=a.slice(u,+u+(i?1:0)),a.__actions__.push({func:Ko,args:[d],thisArg:r}),new Gt(a,this.__chain__).thru(function(g){return i&&!g.length&&g.push(r),g}))});function sS(){return wh(this)}function aS(){return new Gt(this.value(),this.__chain__)}function cS(){this.__values__===r&&(this.__values__=Ph(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function fS(){return this}function dS(n){for(var i,u=this;u instanceof No;){var a=fh(u);a.__index__=0,a.__values__=r,i?d.__wrapped__=a:i=a;var d=a;u=u.__wrapped__}return d.__wrapped__=n,i}function pS(){var n=this.__wrapped__;if(n instanceof pe){var i=n;return this.__actions__.length&&(i=new pe(this)),i=i.reverse(),i.__actions__.push({func:Ko,args:[Oa],thisArg:r}),new Gt(i,this.__chain__)}return this.thru(Oa)}function hS(){return Mp(this.__wrapped__,this.__actions__)}var gS=Fo(function(n,i,u){xe.call(n,u)?++n[u]:Tn(n,u,1)});function mS(n,i,u){var a=oe(n)?qd:oy;return u&&ht(n,i,u)&&(i=r),a(n,te(i,3))}function vS(n,i){var u=oe(n)?qn:vp;return u(n,te(i,3))}var wS=Gp(dh),yS=Gp(ph);function _S(n,i){return be(Yo(n,i),1)}function SS(n,i){return be(Yo(n,i),fe)}function xS(n,i,u){return u=u===r?1:ue(u),be(Yo(n,i),u)}function yh(n,i){var u=oe(n)?Ht:Xn;return u(n,te(i,3))}function _h(n,i){var u=oe(n)?U1:mp;return u(n,te(i,3))}var CS=Fo(function(n,i,u){xe.call(n,u)?n[u].push(i):Tn(n,u,[i])});function ES(n,i,u,a){n=St(n)?n:ai(n),u=u&&!a?ue(u):0;var d=n.length;return u<0&&(u=Ge(d+u,0)),eu(n)?u<=d&&n.indexOf(i,u)>-1:!!d&&Xr(n,i,u)>-1}var kS=ce(function(n,i,u){var a=-1,d=typeof i=="function",g=St(n)?N(n.length):[];return Xn(n,function(x){g[++a]=d?Ot(i,x,u):il(x,i,u)}),g}),LS=Fo(function(n,i,u){Tn(n,u,i)});function Yo(n,i){var u=oe(n)?Ae:Cp;return u(n,te(i,3))}function RS(n,i,u,a){return n==null?[]:(oe(i)||(i=i==null?[]:[i]),u=a?r:u,oe(u)||(u=u==null?[]:[u]),Rp(n,i,u))}var IS=Fo(function(n,i,u){n[u?0:1].push(i)},function(){return[[],[]]});function TS(n,i,u){var a=oe(n)?Hs:Xd,d=arguments.length<3;return a(n,te(i,4),u,d,Xn)}function OS(n,i,u){var a=oe(n)?j1:Xd,d=arguments.length<3;return a(n,te(i,4),u,d,mp)}function AS(n,i){var u=oe(n)?qn:vp;return u(n,Jo(te(i,3)))}function PS(n){var i=oe(n)?dp:Ey;return i(n)}function NS(n,i,u){(u?ht(n,i,u):i===r)?i=1:i=ue(i);var a=oe(n)?ty:ky;return a(n,i)}function MS(n){var i=oe(n)?ny:Ry;return i(n)}function BS(n){if(n==null)return 0;if(St(n))return eu(n)?br(n):n.length;var i=ot(n);return i==nn||i==rn?n.size:sa(n).length}function WS(n,i,u){var a=oe(n)?Vs:Iy;return u&&ht(n,i,u)&&(i=r),a(n,te(i,3))}var zS=ce(function(n,i){if(n==null)return[];var u=i.length;return u>1&&ht(n,i[0],i[1])?i=[]:u>2&&ht(i[0],i[1],i[2])&&(i=[i[0]]),Rp(n,be(i,1),[])}),Zo=vw||function(){return Je.Date.now()};function DS(n,i){if(typeof i!="function")throw new Vt(c);return n=ue(n),function(){if(--n<1)return i.apply(this,arguments)}}function Sh(n,i,u){return i=u?r:i,i=n&&i==null?n.length:i,On(n,P,r,r,r,r,i)}function xh(n,i){var u;if(typeof i!="function")throw new Vt(c);return n=ue(n),function(){return--n>0&&(u=i.apply(this,arguments)),n<=1&&(i=r),u}}var Pa=ce(function(n,i,u){var a=B;if(u.length){var d=Yn(u,ui(Pa));a|=M}return On(n,a,i,u,d)}),Ch=ce(function(n,i,u){var a=B|v;if(u.length){var d=Yn(u,ui(Ch));a|=M}return On(i,a,n,u,d)});function Eh(n,i,u){i=u?r:i;var a=On(n,C,r,r,r,r,r,i);return a.placeholder=Eh.placeholder,a}function kh(n,i,u){i=u?r:i;var a=On(n,O,r,r,r,r,r,i);return a.placeholder=kh.placeholder,a}function Lh(n,i,u){var a,d,g,x,E,R,D=0,$=!1,U=!1,Q=!0;if(typeof n!="function")throw new Vt(c);i=Yt(i)||0,Ne(u)&&($=!!u.leading,U="maxWait"in u,g=U?Ge(Yt(u.maxWait)||0,i):g,Q="trailing"in u?!!u.trailing:Q);function b(Fe){var sn=a,Bn=d;return a=d=r,D=Fe,x=n.apply(Bn,sn),x}function ne(Fe){return D=Fe,E=al(de,i),$?b(Fe):x}function se(Fe){var sn=Fe-R,Bn=Fe-D,Gh=i-sn;return U?lt(Gh,g-Bn):Gh}function re(Fe){var sn=Fe-R,Bn=Fe-D;return R===r||sn>=i||sn<0||U&&Bn>=g}function de(){var Fe=Zo();if(re(Fe))return ge(Fe);E=al(de,se(Fe))}function ge(Fe){return E=r,Q&&a?b(Fe):(a=d=r,x)}function Mt(){E!==r&&Wp(E),D=0,a=R=d=E=r}function gt(){return E===r?x:ge(Zo())}function Bt(){var Fe=Zo(),sn=re(Fe);if(a=arguments,d=this,R=Fe,sn){if(E===r)return ne(R);if(U)return Wp(E),E=al(de,i),b(R)}return E===r&&(E=al(de,i)),x}return Bt.cancel=Mt,Bt.flush=gt,Bt}var $S=ce(function(n,i){return gp(n,1,i)}),FS=ce(function(n,i,u){return gp(n,Yt(i)||0,u)});function US(n){return On(n,J)}function Xo(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new Vt(c);var u=function(){var a=arguments,d=i?i.apply(this,a):a[0],g=u.cache;if(g.has(d))return g.get(d);var x=n.apply(this,a);return u.cache=g.set(d,x)||g,x};return u.cache=new(Xo.Cache||In),u}Xo.Cache=In;function Jo(n){if(typeof n!="function")throw new Vt(c);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function jS(n){return xh(2,n)}var HS=Ty(function(n,i){i=i.length==1&&oe(i[0])?Ae(i[0],At(te())):Ae(be(i,1),At(te()));var u=i.length;return ce(function(a){for(var d=-1,g=lt(a.length,u);++d<g;)a[d]=i[d].call(this,a[d]);return Ot(n,this,a)})}),Na=ce(function(n,i){var u=Yn(i,ui(Na));return On(n,M,r,i,u)}),Rh=ce(function(n,i){var u=Yn(i,ui(Rh));return On(n,F,r,i,u)}),VS=An(function(n,i){return On(n,z,r,r,r,i)});function GS(n,i){if(typeof n!="function")throw new Vt(c);return i=i===r?i:ue(i),ce(n,i)}function QS(n,i){if(typeof n!="function")throw new Vt(c);return i=i==null?0:Ge(ue(i),0),ce(function(u){var a=u[i],d=er(u,0,i);return a&&Kn(d,a),Ot(n,this,d)})}function qS(n,i,u){var a=!0,d=!0;if(typeof n!="function")throw new Vt(c);return Ne(u)&&(a="leading"in u?!!u.leading:a,d="trailing"in u?!!u.trailing:d),Lh(n,i,{leading:a,maxWait:i,trailing:d})}function KS(n){return Sh(n,1)}function YS(n,i){return Na(va(i),n)}function ZS(){if(!arguments.length)return[];var n=arguments[0];return oe(n)?n:[n]}function XS(n){return Qt(n,k)}function JS(n,i){return i=typeof i=="function"?i:r,Qt(n,k,i)}function bS(n){return Qt(n,w|k)}function ex(n,i){return i=typeof i=="function"?i:r,Qt(n,w|k,i)}function tx(n,i){return i==null||hp(n,i,Ke(i))}function un(n,i){return n===i||n!==n&&i!==i}var nx=Vo(la),rx=Vo(function(n,i){return n>=i}),Nr=_p(function(){return arguments}())?_p:function(n){return ze(n)&&xe.call(n,"callee")&&!op.call(n,"callee")},oe=N.isArray,ix=Ud?At(Ud):dy;function St(n){return n!=null&&bo(n.length)&&!Nn(n)}function $e(n){return ze(n)&&St(n)}function lx(n){return n===!0||n===!1||ze(n)&&pt(n)==Hi}var tr=yw||Va,ox=jd?At(jd):py;function ux(n){return ze(n)&&n.nodeType===1&&!cl(n)}function sx(n){if(n==null)return!0;if(St(n)&&(oe(n)||typeof n=="string"||typeof n.splice=="function"||tr(n)||si(n)||Nr(n)))return!n.length;var i=ot(n);if(i==nn||i==rn)return!n.size;if(sl(n))return!sa(n).length;for(var u in n)if(xe.call(n,u))return!1;return!0}function ax(n,i){return ll(n,i)}function cx(n,i,u){u=typeof u=="function"?u:r;var a=u?u(n,i):r;return a===r?ll(n,i,r,u):!!a}function Ma(n){if(!ze(n))return!1;var i=pt(n);return i==co||i==Nv||typeof n.message=="string"&&typeof n.name=="string"&&!cl(n)}function fx(n){return typeof n=="number"&&sp(n)}function Nn(n){if(!Ne(n))return!1;var i=pt(n);return i==fo||i==gd||i==Tt||i==Bv}function Ih(n){return typeof n=="number"&&n==ue(n)}function bo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=j}function Ne(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function ze(n){return n!=null&&typeof n=="object"}var Th=Hd?At(Hd):gy;function dx(n,i){return n===i||ua(n,i,Ea(i))}function px(n,i,u){return u=typeof u=="function"?u:r,ua(n,i,Ea(i),u)}function hx(n){return Oh(n)&&n!=+n}function gx(n){if(Jy(n))throw new ie(s);return Sp(n)}function mx(n){return n===null}function vx(n){return n==null}function Oh(n){return typeof n=="number"||ze(n)&&pt(n)==Gi}function cl(n){if(!ze(n)||pt(n)!=Ln)return!1;var i=Lo(n);if(i===null)return!0;var u=xe.call(i,"constructor")&&i.constructor;return typeof u=="function"&&u instanceof u&&xo.call(u)==pw}var Ba=Vd?At(Vd):my;function wx(n){return Ih(n)&&n>=-j&&n<=j}var Ah=Gd?At(Gd):vy;function eu(n){return typeof n=="string"||!oe(n)&&ze(n)&&pt(n)==qi}function Nt(n){return typeof n=="symbol"||ze(n)&&pt(n)==po}var si=Qd?At(Qd):wy;function yx(n){return n===r}function _x(n){return ze(n)&&ot(n)==Ki}function Sx(n){return ze(n)&&pt(n)==zv}var xx=Vo(aa),Cx=Vo(function(n,i){return n<=i});function Ph(n){if(!n)return[];if(St(n))return eu(n)?ln(n):_t(n);if(Xi&&n[Xi])return tw(n[Xi]());var i=ot(n),u=i==nn?Zs:i==rn?yo:ai;return u(n)}function Mn(n){if(!n)return n===0?n:0;if(n=Yt(n),n===fe||n===-fe){var i=n<0?-1:1;return i*q}return n===n?n:0}function ue(n){var i=Mn(n),u=i%1;return i===i?u?i-u:i:0}function Nh(n){return n?Tr(ue(n),0,Z):0}function Yt(n){if(typeof n=="number")return n;if(Nt(n))return G;if(Ne(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=Ne(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Jd(n);var u=i1.test(n);return u||o1.test(n)?D1(n.slice(2),u?2:8):r1.test(n)?G:+n}function Mh(n){return wn(n,xt(n))}function Ex(n){return n?Tr(ue(n),-j,j):n===0?n:0}function Se(n){return n==null?"":Pt(n)}var kx=li(function(n,i){if(sl(i)||St(i)){wn(i,Ke(i),n);return}for(var u in i)xe.call(i,u)&&nl(n,u,i[u])}),Bh=li(function(n,i){wn(i,xt(i),n)}),tu=li(function(n,i,u,a){wn(i,xt(i),n,a)}),Lx=li(function(n,i,u,a){wn(i,Ke(i),n,a)}),Rx=An(na);function Ix(n,i){var u=ii(n);return i==null?u:pp(u,i)}var Tx=ce(function(n,i){n=ke(n);var u=-1,a=i.length,d=a>2?i[2]:r;for(d&&ht(i[0],i[1],d)&&(a=1);++u<a;)for(var g=i[u],x=xt(g),E=-1,R=x.length;++E<R;){var D=x[E],$=n[D];($===r||un($,ti[D])&&!xe.call(n,D))&&(n[D]=g[D])}return n}),Ox=ce(function(n){return n.push(r,Jp),Ot(Wh,r,n)});function Ax(n,i){return Kd(n,te(i,3),vn)}function Px(n,i){return Kd(n,te(i,3),ia)}function Nx(n,i){return n==null?n:ra(n,te(i,3),xt)}function Mx(n,i){return n==null?n:wp(n,te(i,3),xt)}function Bx(n,i){return n&&vn(n,te(i,3))}function Wx(n,i){return n&&ia(n,te(i,3))}function zx(n){return n==null?[]:Wo(n,Ke(n))}function Dx(n){return n==null?[]:Wo(n,xt(n))}function Wa(n,i,u){var a=n==null?r:Or(n,i);return a===r?u:a}function $x(n,i){return n!=null&&th(n,i,sy)}function za(n,i){return n!=null&&th(n,i,ay)}var Fx=qp(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),n[i]=u},$a(Ct)),Ux=qp(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),xe.call(n,i)?n[i].push(u):n[i]=[u]},te),jx=ce(il);function Ke(n){return St(n)?fp(n):sa(n)}function xt(n){return St(n)?fp(n,!0):yy(n)}function Hx(n,i){var u={};return i=te(i,3),vn(n,function(a,d,g){Tn(u,i(a,d,g),a)}),u}function Vx(n,i){var u={};return i=te(i,3),vn(n,function(a,d,g){Tn(u,d,i(a,d,g))}),u}var Gx=li(function(n,i,u){zo(n,i,u)}),Wh=li(function(n,i,u,a){zo(n,i,u,a)}),Qx=An(function(n,i){var u={};if(n==null)return u;var a=!1;i=Ae(i,function(g){return g=bn(g,n),a||(a=g.length>1),g}),wn(n,xa(n),u),a&&(u=Qt(u,w|_|k,Fy));for(var d=i.length;d--;)ha(u,i[d]);return u});function qx(n,i){return zh(n,Jo(te(i)))}var Kx=An(function(n,i){return n==null?{}:Sy(n,i)});function zh(n,i){if(n==null)return{};var u=Ae(xa(n),function(a){return[a]});return i=te(i),Ip(n,u,function(a,d){return i(a,d[0])})}function Yx(n,i,u){i=bn(i,n);var a=-1,d=i.length;for(d||(d=1,n=r);++a<d;){var g=n==null?r:n[yn(i[a])];g===r&&(a=d,g=u),n=Nn(g)?g.call(n):g}return n}function Zx(n,i,u){return n==null?n:ol(n,i,u)}function Xx(n,i,u,a){return a=typeof a=="function"?a:r,n==null?n:ol(n,i,u,a)}var Dh=Zp(Ke),$h=Zp(xt);function Jx(n,i,u){var a=oe(n),d=a||tr(n)||si(n);if(i=te(i,4),u==null){var g=n&&n.constructor;d?u=a?new g:[]:Ne(n)?u=Nn(g)?ii(Lo(n)):{}:u={}}return(d?Ht:vn)(n,function(x,E,R){return i(u,x,E,R)}),u}function bx(n,i){return n==null?!0:ha(n,i)}function eC(n,i,u){return n==null?n:Np(n,i,va(u))}function tC(n,i,u,a){return a=typeof a=="function"?a:r,n==null?n:Np(n,i,va(u),a)}function ai(n){return n==null?[]:Ys(n,Ke(n))}function nC(n){return n==null?[]:Ys(n,xt(n))}function rC(n,i,u){return u===r&&(u=i,i=r),u!==r&&(u=Yt(u),u=u===u?u:0),i!==r&&(i=Yt(i),i=i===i?i:0),Tr(Yt(n),i,u)}function iC(n,i,u){return i=Mn(i),u===r?(u=i,i=0):u=Mn(u),n=Yt(n),cy(n,i,u)}function lC(n,i,u){if(u&&typeof u!="boolean"&&ht(n,i,u)&&(i=u=r),u===r&&(typeof i=="boolean"?(u=i,i=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&i===r?(n=0,i=1):(n=Mn(n),i===r?(i=n,n=0):i=Mn(i)),n>i){var a=n;n=i,i=a}if(u||n%1||i%1){var d=ap();return lt(n+d*(i-n+z1("1e-"+((d+"").length-1))),i)}return fa(n,i)}var oC=oi(function(n,i,u){return i=i.toLowerCase(),n+(u?Fh(i):i)});function Fh(n){return Da(Se(n).toLowerCase())}function Uh(n){return n=Se(n),n&&n.replace(s1,Z1).replace(R1,"")}function uC(n,i,u){n=Se(n),i=Pt(i);var a=n.length;u=u===r?a:Tr(ue(u),0,a);var d=u;return u-=i.length,u>=0&&n.slice(u,d)==i}function sC(n){return n=Se(n),n&&jv.test(n)?n.replace(wd,X1):n}function aC(n){return n=Se(n),n&&Kv.test(n)?n.replace(Ns,"\\$&"):n}var cC=oi(function(n,i,u){return n+(u?"-":"")+i.toLowerCase()}),fC=oi(function(n,i,u){return n+(u?" ":"")+i.toLowerCase()}),dC=Vp("toLowerCase");function pC(n,i,u){n=Se(n),i=ue(i);var a=i?br(n):0;if(!i||a>=i)return n;var d=(i-a)/2;return Ho(Oo(d),u)+n+Ho(To(d),u)}function hC(n,i,u){n=Se(n),i=ue(i);var a=i?br(n):0;return i&&a<i?n+Ho(i-a,u):n}function gC(n,i,u){n=Se(n),i=ue(i);var a=i?br(n):0;return i&&a<i?Ho(i-a,u)+n:n}function mC(n,i,u){return u||i==null?i=0:i&&(i=+i),Cw(Se(n).replace(Ms,""),i||0)}function vC(n,i,u){return(u?ht(n,i,u):i===r)?i=1:i=ue(i),da(Se(n),i)}function wC(){var n=arguments,i=Se(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var yC=oi(function(n,i,u){return n+(u?"_":"")+i.toLowerCase()});function _C(n,i,u){return u&&typeof u!="number"&&ht(n,i,u)&&(i=u=r),u=u===r?Z:u>>>0,u?(n=Se(n),n&&(typeof i=="string"||i!=null&&!Ba(i))&&(i=Pt(i),!i&&Jr(n))?er(ln(n),0,u):n.split(i,u)):[]}var SC=oi(function(n,i,u){return n+(u?" ":"")+Da(i)});function xC(n,i,u){return n=Se(n),u=u==null?0:Tr(ue(u),0,n.length),i=Pt(i),n.slice(u,u+i.length)==i}function CC(n,i,u){var a=h.templateSettings;u&&ht(n,i,u)&&(i=r),n=Se(n),i=tu({},i,a,Xp);var d=tu({},i.imports,a.imports,Xp),g=Ke(d),x=Ys(d,g),E,R,D=0,$=i.interpolate||ho,U="__p += '",Q=Xs((i.escape||ho).source+"|"+$.source+"|"+($===yd?n1:ho).source+"|"+(i.evaluate||ho).source+"|$","g"),b="//# sourceURL="+(xe.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++P1+"]")+`
`;n.replace(Q,function(re,de,ge,Mt,gt,Bt){return ge||(ge=Mt),U+=n.slice(D,Bt).replace(a1,J1),de&&(E=!0,U+=`' +
__e(`+de+`) +
'`),gt&&(R=!0,U+=`';
`+gt+`;
__p += '`),ge&&(U+=`' +
((__t = (`+ge+`)) == null ? '' : __t) +
'`),D=Bt+re.length,re}),U+=`';
`;var ne=xe.call(i,"variable")&&i.variable;if(!ne)U=`with (obj) {
`+U+`
}
`;else if(e1.test(ne))throw new ie(f);U=(R?U.replace(Dv,""):U).replace($v,"$1").replace(Fv,"$1;"),U="function("+(ne||"obj")+`) {
`+(ne?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(R?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+U+`return __p
}`;var se=Hh(function(){return ye(g,b+"return "+U).apply(r,x)});if(se.source=U,Ma(se))throw se;return se}function EC(n){return Se(n).toLowerCase()}function kC(n){return Se(n).toUpperCase()}function LC(n,i,u){if(n=Se(n),n&&(u||i===r))return Jd(n);if(!n||!(i=Pt(i)))return n;var a=ln(n),d=ln(i),g=bd(a,d),x=ep(a,d)+1;return er(a,g,x).join("")}function RC(n,i,u){if(n=Se(n),n&&(u||i===r))return n.slice(0,np(n)+1);if(!n||!(i=Pt(i)))return n;var a=ln(n),d=ep(a,ln(i))+1;return er(a,0,d).join("")}function IC(n,i,u){if(n=Se(n),n&&(u||i===r))return n.replace(Ms,"");if(!n||!(i=Pt(i)))return n;var a=ln(n),d=bd(a,ln(i));return er(a,d).join("")}function TC(n,i){var u=H,a=ee;if(Ne(i)){var d="separator"in i?i.separator:d;u="length"in i?ue(i.length):u,a="omission"in i?Pt(i.omission):a}n=Se(n);var g=n.length;if(Jr(n)){var x=ln(n);g=x.length}if(u>=g)return n;var E=u-br(a);if(E<1)return a;var R=x?er(x,0,E).join(""):n.slice(0,E);if(d===r)return R+a;if(x&&(E+=R.length-E),Ba(d)){if(n.slice(E).search(d)){var D,$=R;for(d.global||(d=Xs(d.source,Se(_d.exec(d))+"g")),d.lastIndex=0;D=d.exec($);)var U=D.index;R=R.slice(0,U===r?E:U)}}else if(n.indexOf(Pt(d),E)!=E){var Q=R.lastIndexOf(d);Q>-1&&(R=R.slice(0,Q))}return R+a}function OC(n){return n=Se(n),n&&Uv.test(n)?n.replace(vd,lw):n}var AC=oi(function(n,i,u){return n+(u?" ":"")+i.toUpperCase()}),Da=Vp("toUpperCase");function jh(n,i,u){return n=Se(n),i=u?r:i,i===r?ew(n)?sw(n):G1(n):n.match(i)||[]}var Hh=ce(function(n,i){try{return Ot(n,r,i)}catch(u){return Ma(u)?u:new ie(u)}}),PC=An(function(n,i){return Ht(i,function(u){u=yn(u),Tn(n,u,Pa(n[u],n))}),n});function NC(n){var i=n==null?0:n.length,u=te();return n=i?Ae(n,function(a){if(typeof a[1]!="function")throw new Vt(c);return[u(a[0]),a[1]]}):[],ce(function(a){for(var d=-1;++d<i;){var g=n[d];if(Ot(g[0],this,a))return Ot(g[1],this,a)}})}function MC(n){return ly(Qt(n,w))}function $a(n){return function(){return n}}function BC(n,i){return n==null||n!==n?i:n}var WC=Qp(),zC=Qp(!0);function Ct(n){return n}function Fa(n){return xp(typeof n=="function"?n:Qt(n,w))}function DC(n){return Ep(Qt(n,w))}function $C(n,i){return kp(n,Qt(i,w))}var FC=ce(function(n,i){return function(u){return il(u,n,i)}}),UC=ce(function(n,i){return function(u){return il(n,u,i)}});function Ua(n,i,u){var a=Ke(i),d=Wo(i,a);u==null&&!(Ne(i)&&(d.length||!a.length))&&(u=i,i=n,n=this,d=Wo(i,Ke(i)));var g=!(Ne(u)&&"chain"in u)||!!u.chain,x=Nn(n);return Ht(d,function(E){var R=i[E];n[E]=R,x&&(n.prototype[E]=function(){var D=this.__chain__;if(g||D){var $=n(this.__wrapped__),U=$.__actions__=_t(this.__actions__);return U.push({func:R,args:arguments,thisArg:n}),$.__chain__=D,$}return R.apply(n,Kn([this.value()],arguments))})}),n}function jC(){return Je._===this&&(Je._=hw),this}function ja(){}function HC(n){return n=ue(n),ce(function(i){return Lp(i,n)})}var VC=ya(Ae),GC=ya(qd),QC=ya(Vs);function Vh(n){return La(n)?Gs(yn(n)):xy(n)}function qC(n){return function(i){return n==null?r:Or(n,i)}}var KC=Kp(),YC=Kp(!0);function Ha(){return[]}function Va(){return!1}function ZC(){return{}}function XC(){return""}function JC(){return!0}function bC(n,i){if(n=ue(n),n<1||n>j)return[];var u=Z,a=lt(n,Z);i=te(i),n-=Z;for(var d=Ks(a,i);++u<n;)i(u);return d}function e2(n){return oe(n)?Ae(n,yn):Nt(n)?[n]:_t(ch(Se(n)))}function t2(n){var i=++dw;return Se(n)+i}var n2=jo(function(n,i){return n+i},0),r2=_a("ceil"),i2=jo(function(n,i){return n/i},1),l2=_a("floor");function o2(n){return n&&n.length?Bo(n,Ct,la):r}function u2(n,i){return n&&n.length?Bo(n,te(i,2),la):r}function s2(n){return Zd(n,Ct)}function a2(n,i){return Zd(n,te(i,2))}function c2(n){return n&&n.length?Bo(n,Ct,aa):r}function f2(n,i){return n&&n.length?Bo(n,te(i,2),aa):r}var d2=jo(function(n,i){return n*i},1),p2=_a("round"),h2=jo(function(n,i){return n-i},0);function g2(n){return n&&n.length?qs(n,Ct):0}function m2(n,i){return n&&n.length?qs(n,te(i,2)):0}return h.after=DS,h.ary=Sh,h.assign=kx,h.assignIn=Bh,h.assignInWith=tu,h.assignWith=Lx,h.at=Rx,h.before=xh,h.bind=Pa,h.bindAll=PC,h.bindKey=Ch,h.castArray=ZS,h.chain=wh,h.chunk=l_,h.compact=o_,h.concat=u_,h.cond=NC,h.conforms=MC,h.constant=$a,h.countBy=gS,h.create=Ix,h.curry=Eh,h.curryRight=kh,h.debounce=Lh,h.defaults=Tx,h.defaultsDeep=Ox,h.defer=$S,h.delay=FS,h.difference=s_,h.differenceBy=a_,h.differenceWith=c_,h.drop=f_,h.dropRight=d_,h.dropRightWhile=p_,h.dropWhile=h_,h.fill=g_,h.filter=vS,h.flatMap=_S,h.flatMapDeep=SS,h.flatMapDepth=xS,h.flatten=hh,h.flattenDeep=m_,h.flattenDepth=v_,h.flip=US,h.flow=WC,h.flowRight=zC,h.fromPairs=w_,h.functions=zx,h.functionsIn=Dx,h.groupBy=CS,h.initial=__,h.intersection=S_,h.intersectionBy=x_,h.intersectionWith=C_,h.invert=Fx,h.invertBy=Ux,h.invokeMap=kS,h.iteratee=Fa,h.keyBy=LS,h.keys=Ke,h.keysIn=xt,h.map=Yo,h.mapKeys=Hx,h.mapValues=Vx,h.matches=DC,h.matchesProperty=$C,h.memoize=Xo,h.merge=Gx,h.mergeWith=Wh,h.method=FC,h.methodOf=UC,h.mixin=Ua,h.negate=Jo,h.nthArg=HC,h.omit=Qx,h.omitBy=qx,h.once=jS,h.orderBy=RS,h.over=VC,h.overArgs=HS,h.overEvery=GC,h.overSome=QC,h.partial=Na,h.partialRight=Rh,h.partition=IS,h.pick=Kx,h.pickBy=zh,h.property=Vh,h.propertyOf=qC,h.pull=R_,h.pullAll=mh,h.pullAllBy=I_,h.pullAllWith=T_,h.pullAt=O_,h.range=KC,h.rangeRight=YC,h.rearg=VS,h.reject=AS,h.remove=A_,h.rest=GS,h.reverse=Oa,h.sampleSize=NS,h.set=Zx,h.setWith=Xx,h.shuffle=MS,h.slice=P_,h.sortBy=zS,h.sortedUniq=$_,h.sortedUniqBy=F_,h.split=_C,h.spread=QS,h.tail=U_,h.take=j_,h.takeRight=H_,h.takeRightWhile=V_,h.takeWhile=G_,h.tap=oS,h.throttle=qS,h.thru=Ko,h.toArray=Ph,h.toPairs=Dh,h.toPairsIn=$h,h.toPath=e2,h.toPlainObject=Mh,h.transform=Jx,h.unary=KS,h.union=Q_,h.unionBy=q_,h.unionWith=K_,h.uniq=Y_,h.uniqBy=Z_,h.uniqWith=X_,h.unset=bx,h.unzip=Aa,h.unzipWith=vh,h.update=eC,h.updateWith=tC,h.values=ai,h.valuesIn=nC,h.without=J_,h.words=jh,h.wrap=YS,h.xor=b_,h.xorBy=eS,h.xorWith=tS,h.zip=nS,h.zipObject=rS,h.zipObjectDeep=iS,h.zipWith=lS,h.entries=Dh,h.entriesIn=$h,h.extend=Bh,h.extendWith=tu,Ua(h,h),h.add=n2,h.attempt=Hh,h.camelCase=oC,h.capitalize=Fh,h.ceil=r2,h.clamp=rC,h.clone=XS,h.cloneDeep=bS,h.cloneDeepWith=ex,h.cloneWith=JS,h.conformsTo=tx,h.deburr=Uh,h.defaultTo=BC,h.divide=i2,h.endsWith=uC,h.eq=un,h.escape=sC,h.escapeRegExp=aC,h.every=mS,h.find=wS,h.findIndex=dh,h.findKey=Ax,h.findLast=yS,h.findLastIndex=ph,h.findLastKey=Px,h.floor=l2,h.forEach=yh,h.forEachRight=_h,h.forIn=Nx,h.forInRight=Mx,h.forOwn=Bx,h.forOwnRight=Wx,h.get=Wa,h.gt=nx,h.gte=rx,h.has=$x,h.hasIn=za,h.head=gh,h.identity=Ct,h.includes=ES,h.indexOf=y_,h.inRange=iC,h.invoke=jx,h.isArguments=Nr,h.isArray=oe,h.isArrayBuffer=ix,h.isArrayLike=St,h.isArrayLikeObject=$e,h.isBoolean=lx,h.isBuffer=tr,h.isDate=ox,h.isElement=ux,h.isEmpty=sx,h.isEqual=ax,h.isEqualWith=cx,h.isError=Ma,h.isFinite=fx,h.isFunction=Nn,h.isInteger=Ih,h.isLength=bo,h.isMap=Th,h.isMatch=dx,h.isMatchWith=px,h.isNaN=hx,h.isNative=gx,h.isNil=vx,h.isNull=mx,h.isNumber=Oh,h.isObject=Ne,h.isObjectLike=ze,h.isPlainObject=cl,h.isRegExp=Ba,h.isSafeInteger=wx,h.isSet=Ah,h.isString=eu,h.isSymbol=Nt,h.isTypedArray=si,h.isUndefined=yx,h.isWeakMap=_x,h.isWeakSet=Sx,h.join=E_,h.kebabCase=cC,h.last=Kt,h.lastIndexOf=k_,h.lowerCase=fC,h.lowerFirst=dC,h.lt=xx,h.lte=Cx,h.max=o2,h.maxBy=u2,h.mean=s2,h.meanBy=a2,h.min=c2,h.minBy=f2,h.stubArray=Ha,h.stubFalse=Va,h.stubObject=ZC,h.stubString=XC,h.stubTrue=JC,h.multiply=d2,h.nth=L_,h.noConflict=jC,h.noop=ja,h.now=Zo,h.pad=pC,h.padEnd=hC,h.padStart=gC,h.parseInt=mC,h.random=lC,h.reduce=TS,h.reduceRight=OS,h.repeat=vC,h.replace=wC,h.result=Yx,h.round=p2,h.runInContext=L,h.sample=PS,h.size=BS,h.snakeCase=yC,h.some=WS,h.sortedIndex=N_,h.sortedIndexBy=M_,h.sortedIndexOf=B_,h.sortedLastIndex=W_,h.sortedLastIndexBy=z_,h.sortedLastIndexOf=D_,h.startCase=SC,h.startsWith=xC,h.subtract=h2,h.sum=g2,h.sumBy=m2,h.template=CC,h.times=bC,h.toFinite=Mn,h.toInteger=ue,h.toLength=Nh,h.toLower=EC,h.toNumber=Yt,h.toSafeInteger=Ex,h.toString=Se,h.toUpper=kC,h.trim=LC,h.trimEnd=RC,h.trimStart=IC,h.truncate=TC,h.unescape=OC,h.uniqueId=t2,h.upperCase=AC,h.upperFirst=Da,h.each=yh,h.eachRight=_h,h.first=gh,Ua(h,function(){var n={};return vn(h,function(i,u){xe.call(h.prototype,u)||(n[u]=i)}),n}(),{chain:!1}),h.VERSION=l,Ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){h[n].placeholder=h}),Ht(["drop","take"],function(n,i){pe.prototype[n]=function(u){u=u===r?1:Ge(ue(u),0);var a=this.__filtered__&&!i?new pe(this):this.clone();return a.__filtered__?a.__takeCount__=lt(u,a.__takeCount__):a.__views__.push({size:lt(u,Z),type:n+(a.__dir__<0?"Right":"")}),a},pe.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Ht(["filter","map","takeWhile"],function(n,i){var u=i+1,a=u==_e||u==it;pe.prototype[n]=function(d){var g=this.clone();return g.__iteratees__.push({iteratee:te(d,3),type:u}),g.__filtered__=g.__filtered__||a,g}}),Ht(["head","last"],function(n,i){var u="take"+(i?"Right":"");pe.prototype[n]=function(){return this[u](1).value()[0]}}),Ht(["initial","tail"],function(n,i){var u="drop"+(i?"":"Right");pe.prototype[n]=function(){return this.__filtered__?new pe(this):this[u](1)}}),pe.prototype.compact=function(){return this.filter(Ct)},pe.prototype.find=function(n){return this.filter(n).head()},pe.prototype.findLast=function(n){return this.reverse().find(n)},pe.prototype.invokeMap=ce(function(n,i){return typeof n=="function"?new pe(this):this.map(function(u){return il(u,n,i)})}),pe.prototype.reject=function(n){return this.filter(Jo(te(n)))},pe.prototype.slice=function(n,i){n=ue(n);var u=this;return u.__filtered__&&(n>0||i<0)?new pe(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),i!==r&&(i=ue(i),u=i<0?u.dropRight(-i):u.take(i-n)),u)},pe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},pe.prototype.toArray=function(){return this.take(Z)},vn(pe.prototype,function(n,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),a=/^(?:head|last)$/.test(i),d=h[a?"take"+(i=="last"?"Right":""):i],g=a||/^find/.test(i);d&&(h.prototype[i]=function(){var x=this.__wrapped__,E=a?[1]:arguments,R=x instanceof pe,D=E[0],$=R||oe(x),U=function(de){var ge=d.apply(h,Kn([de],E));return a&&Q?ge[0]:ge};$&&u&&typeof D=="function"&&D.length!=1&&(R=$=!1);var Q=this.__chain__,b=!!this.__actions__.length,ne=g&&!Q,se=R&&!b;if(!g&&$){x=se?x:new pe(this);var re=n.apply(x,E);return re.__actions__.push({func:Ko,args:[U],thisArg:r}),new Gt(re,Q)}return ne&&se?n.apply(this,E):(re=this.thru(U),ne?a?re.value()[0]:re.value():re)})}),Ht(["pop","push","shift","sort","splice","unshift"],function(n){var i=_o[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",a=/^(?:pop|shift)$/.test(n);h.prototype[n]=function(){var d=arguments;if(a&&!this.__chain__){var g=this.value();return i.apply(oe(g)?g:[],d)}return this[u](function(x){return i.apply(oe(x)?x:[],d)})}}),vn(pe.prototype,function(n,i){var u=h[i];if(u){var a=u.name+"";xe.call(ri,a)||(ri[a]=[]),ri[a].push({name:i,func:u})}}),ri[Uo(r,v).name]=[{name:"wrapper",func:r}],pe.prototype.clone=Ow,pe.prototype.reverse=Aw,pe.prototype.value=Pw,h.prototype.at=uS,h.prototype.chain=sS,h.prototype.commit=aS,h.prototype.next=cS,h.prototype.plant=dS,h.prototype.reverse=pS,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=hS,h.prototype.first=h.prototype.head,Xi&&(h.prototype[Xi]=fS),h},ei=aw();kr?((kr.exports=ei)._=ei,Fs._=ei):Je._=ei}).call(fl)})(rs,rs.exports);var Qn=rs.exports;const wr={};["wrap","carousel","grid","grid-carousel","center","columnLeft","columnRight","featured","featured-carousel","wallpaper","wallpaper-carousel","table","table-carousel","minimal","minimal-carousel","mini-grid","mini-grid-carousel"].forEach(e=>wr[e]=`cWidgetContainer--${e}`);const fd=2,dd=new Set(["table","table-carousel","grid-carousel","list","minimal","minimal-carousel","featured","featured-carousel","mini-grid","mini-grid-carousel","wallpaper","wallpaper-carousel"]),pf=new Set([...dd,"grid"]),yr={grid:"grid-carousel",minimal:"minimal-carousel","mini-grid":"mini-grid-carousel",table:"table-carousel",wallpaper:"wallpaper-carousel",featured:"featured-carousel"},Ze={};for(const e in yr)Ze[yr[e]]=e;const vc={"mini-grid":290,grid:300,carousel:"100%","table-carousel":"100%","featured-carousel":"100%",featured:"100%"},_v=new Set(["table-carousel","stack","list","minimal","table","featured","featured-carousel"]),pd=new Set(["grid","grid-carousel","table","table-carousel","minimal","minimal-carousel","mini-grid","mini-grid-carousel","featured","featured-carousel","carousel"]),Sv=new Set(["grid","grid-carousel","featured","featured-carousel","table","table-carousel","minimal","minimal-carousel","mini-grid","mini-grid-carousel"]),Kk=`.cBuilderSvg__box--secondaryColoring{color:color-mix(in srgb,var(--i-svg--st) 25%,var(--i-svg--co) 75%)}.cBuilderSvg__arrow,.cBuilderSvg__path{color:var(--i-svg--st)}.cBuilderSvg__marker{fill:var( --i-svg--st )}.cBuilderSvg__box--outlined{stroke:var(--i-svg--st);stroke-width:var(--i-svg--st-wi);color:var(--i-svg--co)}.cBuilderSvg text{fill:var(--i-svg--st)}.cBuilderSvg *:not(#x){transform-origin:center}.cBuilderSvg__image-icon{color:var(--i-svg--st)}.cBuilderSvg__solid{fill:var(--i-svg--st);stroke:var(--i-svg--st)}
`;function ur({blocks:e=[],arrows:t=[],arrowId:r,rotate:l=!1,rotateNegative:o=!1,flip:s=!1,lines:c=[],children:f=[],includeInlineStyle:p=!1,effect:m,...y}){X.useEffect(()=>m==null?void 0:m()),r=r||Math.floor(Math.random()*Math.pow(2,4*8)).toString(16),f?Symbol.iterator in f||(f=[f]):f=[],y.className||(y.className=""),y.className+=" cBuilderSvg";const w=()=>p?I.jsx("style",{children:Kk}):I.jsx(I.Fragment,{});return I.jsxs("svg",{viewBox:"0 0 100 100",...y,children:[I.jsx(w,{}),I.jsxs("defs",{children:[I.jsx("marker",{id:`arrow_${r}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"2.5",markerHeight:"2.5",orient:"auto-start-reverse",fill:"currentColor",className:"cBuilderSvg__marker",markerUnits:"strokeWidth",children:I.jsx("path",{d:"M 0 0 L 10 5 L 0 10 Z"})}),I.jsx("clipPath",{id:`main_clip_${r}`,clipPathUnits:"userSpaceOnUse",children:I.jsx("rect",{x:5,y:5,width:90,height:90,rx:11.75})}),I.jsx("clipPath",{id:`clip1_${r}`,clipPathUnits:"userSpaceOnUse",children:I.jsx("path",{d:"M 0 0 L 25 0 L 25 100 L 0 100 Z"})}),I.jsx("clipPath",{id:`clip2_${r}`,clipPathUnits:"userSpaceOnUse",children:I.jsx("path",{d:"M72.5 0 L 97.5 0 L 97.5 100 L 72.5 100 Z"})}),I.jsx("clipPath",{id:`clip3_${r}`,clipPathUnits:"userSpaceOnUse",children:I.jsx("path",{d:"M75 25 L 80 25 A 5 5 0 0 0 85 30 L 85 80 A 5 5 0 0 0 80 85 L 30 85 A 5 5 0 0 0 25 80 L 25 75 L 70 75 A 5 5 0 0 0 75 70 Z"})}),I.jsx("clipPath",{id:`clip4_${r}`,clipPathUnits:"userSpaceOnUse",children:I.jsx("rect",{x:20,y:70,width:60,height:15,rx:5})})]}),I.jsx("g",{transform:l?void 0:`rotate(${o?"-":""}90)`,x:0,y:0,width:100,height:100,children:I.jsxs("g",{transform:l?void 0:`scale(${s?"1,-1":"1,1"})`,x:0,y:0,width:100,height:100,children:[I.jsx("rect",{width:95,height:95,x:2.5,y:2.5,rx:15,fill:"none",stroke:"none",strokeWidth:5,"data-role":"background"}),I.jsxs("g",{id:"mainarea",clipPath:`url(#main_clip_${r})`,children:[e.map((_,k)=>I.jsx("rect",{fill:"currentColor",rx:5,..._},k)),t.map(_=>I.jsx("path",{d:"M "+(_ instanceof Array?_:_.points).map(({x:k,y:A})=>`${k} ${A}`).join(" L "),rx:20,fill:"none",strokeWidth:6,stroke:"currentColor",strokeLinejoin:"round",markerStart:["both","start"].includes(_.marker)?`url(#arrow_${r})`:void 0,markerEnd:["both","end",void 0].includes(_.marker)?`url(#arrow_${r})`:void 0,className:"cBuilderSvg__arrow"},JSON.stringify(_))),c.map(_=>I.jsx("path",{d:"M "+(_ instanceof Array?_:_.points).map(({x:k,y:A})=>`${k} ${A}`).join(" L "),rx:20,fill:"none",strokeWidth:6,stroke:"currentColor",strokeLinejoin:"round",className:_.className||void 0},JSON.stringify(_))),f]}),I.jsx("rect",{width:95,height:95,x:2.5,y:2.5,rx:15,fill:"none",stroke:"currentColor",strokeWidth:5,"data-role":"outerborder"})]})})]})}function Yk({pattern:e="start",horizontal:t=!0,...r}){const o=[{width:60},{width:80},{width:40}].map((s,c)=>({...s,height:23.4,className:"cBuilderSvg__box--outlined",y:5+90*c/3+1.3+2,x:(()=>e==="end"?97.5-s.width:e==="center"?50-s.width/2:2.5)()}));return I.jsx(ur,{blocks:o,rotate:t,...r})}function cn({...e}){return e.className=[e.className||"","cBuilderSvg__image-icon"].join(" ").trim().replace(/\s+/," "),I.jsxs("svg",{...e,viewBox:"0 0 90 90",children:[I.jsx("rect",{x:0,y:0,className:"cBuilderSvg__box--secondaryColoring",width:90,height:90,rx:10,fill:"currentColor"}),I.jsx("path",{d:"M4 86 L 25 28 L 55 68 L 69 50 L 84 86Z",stroke:"currentColor",strokeWidth:"6",fill:"currentColor",strokeLinejoin:"round"}),I.jsx("circle",{r:"10",cx:"70",cy:"20",fill:"currentColor",stroke:"currentColor"})]})}const _l=[[{x:35,y:84},{x:16,y:84}],[{x:65,y:84},{x:84,y:84}]];function Zk({behavior:e="wrap",horizontal:t=!1,...r}){r.className=r.className||"",r.className+=" cBuilderSvg--wrap-icon";const l=[],o=[],s=[];let c=4,f=c,p=[57,31],m,y,w,_,k,A;switch(e){case"carousel":l.push({width:15,height:40,x:0,y:20,className:"cBuilderSvg__box--outlined"}),l.push({width:66,height:60,x:17,y:10,className:"cBuilderSvg__box--outlined"}),l.push({width:15,height:40,x:85,y:20,className:"cBuilderSvg__box--outlined"}),l.push({height:3,width:40,y:25,x:22,rx:0}),l.push({height:3,width:30,y:32,x:22,rx:0}),l.push({height:3,width:52,y:39,x:22,rx:0}),l.push({height:3,width:22,y:46,x:22,rx:0}),o.push([{x:35,y:84},{x:16,y:84}]),o.push([{x:65,y:84},{x:84,y:84}]);break;case"table":case"table-carousel":c=1.3,w=e==="table-carousel"?78:70,_=e==="table-carousel"?11:15,m=e==="table-carousel"?20:0,y=e==="table-carousel"?1:3;for(let T=0;T<y;T++)l.push({height:85/3-4-2*c,width:w,y:7.5+85*T/3+c+2+m,x:_,className:"cBuilderSvg__box--outlined"});e==="table-carousel"&&o.splice(0,0,..._l.map(T=>T.map(B=>({x:B.x,y:B.y-15}))));break;case"mini-grid":case"grid-carousel":case"mini-grid-carousel":case"grid":k=e.startsWith("mini")?3:2,y=e.startsWith("mini")?3:2,A=88,m=e==="grid-carousel"?7:0,e.startsWith("mini")&&(f=10,c=5),e==="grid-carousel"&&(y=1,k=3),e.endsWith("carousel")&&(A=e.startsWith("mini")?68:54,o.splice(o.length,0,..._l.map(T=>T.map(B=>({x:B.x,y:B.y-5}))))),e==="mini-grid"&&(m=10,A=68),e==="mini-grid-carousel"&&(A=68*2/3,m=5,y=2);for(let T=0;T<y;T++)for(let B=0;B<k;B++)l.push({x:6+88*B/k+c,y:6+m+A*T/y+f,width:88/k-2*c,height:A/y-2*f,className:((T+B)%2,"cBuilderSvg__box--outlined")});break;case"center":return I.jsx(Yk,{horizontal:t,pattern:e,...r});case"columnLeft":case"columnRight":c=1.5,e==="columnLeft"&&(p=p.reverse());for(let T=0;T<3;T++)for(let B=0;B<p.length;B++)l.push({x:p.slice(0,B).reduce((v,S)=>v+S,8+c),y:6+88*T/3+c+1.5,width:p[B]-2*c-4,height:88/3-2*c-3,className:"cBuilderSvg__box--outlined"});break;case"image-grid":case"wallpaper":return I.jsxs(ur,{...r,rotate:!0,children:[I.jsx(cn,{x:12,y:12,width:35,height:35}),I.jsx(cn,{x:53,y:12,width:35,height:35}),I.jsx(cn,{x:12,y:53,width:35,height:35}),I.jsx(cn,{x:53,y:53,width:35,height:35})]});case"image-carousel":case"wallpaper-carousel":return o.splice(o.length,0,..._l),I.jsxs(ur,{...r,arrows:o,rotate:!0,children:[I.jsx(cn,{x:17,y:10,height:60,width:66}),I.jsx(cn,{x:-25,y:20,height:40,width:40}),I.jsx(cn,{x:85,y:20,height:40,width:40})]});case"featured":for(let T=0;T<2;T++)l.push({x:12,y:12+41*T,height:35,width:80}),l.push({width:37,height:6,x:51,y:16.5+41*T,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:18,height:3,x:52,y:26.5+41*T,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:28,height:3,x:52,y:34.5+41*T,className:"cBuilderSvg__box--secondaryColoring"});return I.jsxs(ur,{...r,blocks:l,rotate:!0,children:[I.jsx(cn,{x:12,y:12,height:35,width:35}),I.jsx(cn,{x:12,y:53,height:35,width:35})]});case"featured-carousel":return l.push({width:38,height:6,x:51,y:25,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:20,height:3,x:52,y:35,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:30,height:3,x:52,y:43,className:"cBuilderSvg__box--secondaryColoring"}),l.push({x:12,y:19.5,height:41,width:80}),I.jsx(ur,{...r,arrows:_l.map(T=>T.map(B=>({y:B.y-5,x:B.x}))),blocks:l,rotate:!0,children:I.jsx(cn,{x:12,y:22.5,height:35,width:35})});case"minimal":case"minimal-carousel":for(let T=20;T<=(e==="minimal"?80:60);T+=20)s.push({points:[{x:20,y:T},{x:80,y:T}],className:"cBuilderSvg__path"});e==="minimal-carousel"&&o.splice(o.length,0,..._l);break;default:l.push({x:4,y:7,width:53,height:100/3-10,className:"cBuilderSvg__box--outlined"}),l.push({x:63,y:7,width:34,height:100/3-10,className:"cBuilderSvg__box--outlined"}),l.push({x:0,y:100/3+3,width:17,height:100/3+2,className:"cBuilderSvg__box--outlined"}),l.push({x:23,y:100/3+3,width:49,height:100/3+2,className:"cBuilderSvg__box--outlined"}),l.push({x:78,y:100/3+3,width:22,height:100/3+2,className:"cBuilderSvg__box--outlined"}),l.push({x:4,y:2*100/3+12,width:43,height:100/3-18,className:"cBuilderSvg__box--outlined"}),l.push({x:53,y:2*100/3+12,width:44,height:100/3-18,className:"cBuilderSvg__box--outlined"})}return I.jsx(ur,{blocks:l,arrows:o,rotate:t,lines:s,flip:!0,...r})}function Xk({noGap:e=!1,horizontal:t=!0,...r}){const l=[{points:[{y:65,x:35},{y:65,x:65}],marker:"both"}],o=[{x:0,y:15,width:30,height:70,className:"cBuilderSvg__box--outlined"},{x:70,y:15,width:30,height:70,className:"cBuilderSvg__box--outlined"}],s=[];if(e){const c=t?"y":"x",f=t?"x":"y";s.push({points:[{[c]:10,[f]:10},{[c]:90,[f]:90}],className:"cBuilderSvg__path"})}return I.jsx(ur,{rotate:t,arrows:l,lines:s,blocks:o,...r,children:I.jsx("text",{x:38,y:50,height:18,fontSize:20,width:18,fontWeight:800,color:"currentColor",children:"px"})})}function kn({icon:e,horizontal:t=!1,children:r=[],...l}){if(l["data-icon-name"]=e,l.className=l.className||"",l.className+=` cBuilderSvg--${e}`,e in wr)return I.jsx(Zk,{...l,behavior:e,horizontal:t,children:r});if(["gap","nogap"].includes(e))return I.jsx(Xk,{...l,noGap:e==="nogap",horizontal:t,children:r});const o={blocks:[],arrows:[],lines:[],rotate:!!t,arrowId:Math.round(Math.random()*Math.pow(16,8)).toString(16)};switch(e){case"minSize":o.blocks.push({x:16,y:48,width:68,height:52,className:"cBuilderSvg__box--outlined"}),r.push(I.jsx("text",{x:39.5,y:23,height:21,fontSize:23,width:21,fontWeight:800,color:"currentColor",children:"px"})),r.push(I.jsx("path",{d:"M17, 44 Q17,34 27,34 L44,34 Q49,33 50, 27 Q51, 33 56,34 L73,34 Q83,34 83, 44",fill:"none",stroke:"currentColor",strokeWidth:4,strokeLinejoin:"miter",className:"cBuilderSvg__path"}));break;case"box":case"nobox":for(let w=0;w<18;w++)r.push(I.jsx("path",{d:`M${200*w/18-100}, 0 l 100, 100`,fill:"none",strokeWidth:"4px",stroke:"currentColor",clipPath:`url(#clip3_${o.arrowId})`}));r.push(I.jsx("rect",{x:15,y:15,width:60,height:60,rx:5,fill:"currentColor",className:"cBuilderSvg__box--outlined"})),o.rotate=!0;break;case"paddingInline":case"paddingBlock":e==="paddingBlock"&&(o.rotate=!o.rotate);for(let w=0;w<16;w++)r.push(I.jsx("path",{d:`M${200*w/16-100}, 0 l 100, 100`,fill:"none",strokeWidth:4,stroke:"currentColor",clipPath:`url(#clip1_${o.arrowId})`,className:"cBuilderSvg__path"}));for(let w=0;w<16;w++)r.push(I.jsx("path",{d:`M${200*w/16-100}, 0 l 100, 100`,fill:"none",strokeWidth:4,stroke:"currentColor",clipPath:`url(#clip2_${o.arrowId})`,className:"cBuilderSvg__path"}));for(let w=0;w<2;w++)for(let _=0;_<2;_++)o.blocks.push({x:27.5+_*25,y:25+30*w,width:20,height:20,className:"cBuilderSvg__box--outlined"});break;case"interval":case"nointerval":const s=30,c=(s-5)/Math.cos(30*Math.PI/180),f=Math.PI*320/180,p=50+s*Math.cos(f),m=50-Math.abs(s*Math.sin(f)),y=2;r.push(I.jsx("path",{d:`M40 ${(100-c)/2} L 40 ${c+(100-c)/2} L 65 50 Z`,strokeLinejoin:"round",strokeWidth:6,stroke:"currentColor",fill:"currentColor",className:"cBuilderSvg__solid"})),r.push(I.jsx("path",{d:`M${s+50} 50 A ${s} ${s} 0 1 1 ${p} ${m} L ${p-Math.tan(f+-5*Math.PI/180)*y} ${m-y/Math.tan(f+-5*Math.PI/180)}`,fill:"none",stroke:"currentColor",strokeWidth:8,className:"cBuilderSvg__path",markerEnd:`url(#arrow_${o.arrowId})`}));break;case"noimages":case"images":r.push(I.jsx(cn,{x:20,y:20,width:60,height:60}));break;default:throw new RangeError(`The icon ${e} is not recognized`)}return["noimages","nogap","nointerval","nobox"].includes(e)&&r.push(I.jsx("path",{d:"M15,15 L85,85",fill:"none",stroke:"currentColor",strokeWidth:6,strokeLinecap:"round",className:"cBuilderSvg__path"})),I.jsx(ur,{...l,...o,children:r.map((s,c)=>I.jsx("g",{children:s},c))})}document.addEventListener("click",e=>{var l;const t=new WeakSet;let r=e.target.parentElement;for(;r instanceof Element;)t.add(r),r=r.parentElement;for(const[o,s]of hf.entries()){const c=o.current;c instanceof Element&&!t.has(c)&&c.classList.contains("cWidgetContainer__menu_dropout--open")&&(e.stopPropagation(),(l=e.stopImmediatePropagation)==null||l.call(e),s())}});const hf=new Map;function Jk(e,t,r){X.useMemo(()=>{t?hf.set(e,()=>r(!1)):hf.delete(e)},[t,r,e])}function bk(e,t){X.useEffect(()=>{if(t&&e.current){const r=e.current.querySelector(".cWidgetContainer__other_children");if(r){const l=e.current.getBoundingClientRect();let o=r.getBoundingClientRect();r.style.left=`${(o.width-l.width)/-2}px`,o=r.getBoundingClientRect(),o.left<10&&(r.style.left=`${(o.width-l.width)/-2+10-o.left}px`)}}},[t])}function e3({children:e=[],direction:t="right",className:r,hidden:l=!1,...o},s){const[c,f]=X.useState(!1),p=X.useRef(null);Jk(p,c,f),bk(p,c),X.useImperativeHandle(s,()=>p.current);const m=[],y=[];let w;e.forEach(k=>{Array.isArray(k)?k[2]?w=k[0]:(k[1]?y:m).push(k[0]):m.push(k)}),e=m;const _=w||e[0];return I.jsxs("div",{className:`cWidgetContainer__menu_dropout cWidgetContainer__menu_dropout--${t} ${r||""}${c?"cWidgetContainer__menu_dropout--open":""}`,...o,hidden:l||!_,ref:p,onClick:k=>{var A,T;(T=(A=k.target)==null?void 0:A.closest)!=null&&T.call(A,".cWidgetContainer__other_children")||setTimeout(()=>f(!c))},children:[y,_,I.jsx("div",{className:"cWidgetContainer__other_children","data-role":`${e.length?"otherChildren":"emptyPlaceholder"}`,style:void 0,children:e})]})}const t3=X.forwardRef(e3);function n3({list:e=[],field:t,onChange:r,children:l=[],root:o,hideWhenEmpty:s=!1,...c},f){let p={};if(s&&(!l.length&&!e.length||l.length+e.length<=1))return I.jsx(I.Fragment,{});if(e.length&&!Array.isArray(e[0])){let y=[];for(const w of e)y.push([w,w]);e=y}const m=e.map(([y,w,_={}])=>I.jsx("button",{type:"button",className:"cWidgetContainer__menu-icon",onClick:k=>{y!==e[0]?r(y):(k.stopPropagation(),k.preventDefault())},title:t&&window.ips.haveString(`core_pagebuilder_${t}__${y}`)?window.ips.getString(`core_pagebuilder_${t}__${y}`):y,..._,children:w},y));return m.splice(0,0,[I.jsx("div",{hidden:!p.title,children:I.jsx("i",{...p,className:"fa-solid fa-info-circle ipsTitle--h4",style:{position:"absolute",backgroundColor:"#fff",borderRadius:"50%",zIndex:"3",marginTop:"37px",marginLeft:"3px",padding:"2px"}})},`info_${e.length}`),!0]),o&&m.splice(1,0,[I.jsx("span",{children:o},"menudropout_label"),!1,!0]),l&&!(Symbol.iterator in l)?l=[l]:l||(l=[]),I.jsx(t3,{...c,ref:f,children:[...m,...l]})}const Ui=X.forwardRef(n3);function r3({wrapBehavior:e,onChange:t,allowedBehaviors:r,menuOptions:l,getParent:o,otherOptions:s,widgets:c}){const f=X.useRef(null),p=X.useRef(null),m=r.includes(e)?e:r[0],y=m in Ze&&r.includes(Ze[m])?Ze[m]:m,w=()=>{p.current&&f.current&&(f.current.querySelectorAll(`.cWidgetContainer__other_children [data-active][data-value]:not([data-value='${p.current}'])`).forEach(_=>_.removeAttribute("data-active")),f.current.querySelectorAll(`.cWidgetContainer__other_children [data-value='${p.current}']`).forEach(_=>_.setAttribute("data-active","")))};return X.useEffect(w),I.jsxs(Ui,{ref:f,list:r.filter(_=>!(_ in Ze)).map(_=>[_,I.jsxs(I.Fragment,{children:[I.jsx(kn,{icon:_,horizontal:!0}),I.jsx("p",{children:window.ips.getString(`core_pagebuilder_wrap__${_}`)})]}),{"data-active":_===y||y!=null&&y.endsWith("-carousel")&&Ze[y]===_?"":void 0,"data-value":_}]),root:I.jsx(kn,{icon:y||"wrap",horizontal:!0}),"data-role":"wrapBehavior",field:"wrap",onChange:_=>{let k=_;if(m in Ze&&_ in yr&&r.includes(yr[_])&&(_=yr[_]),p.current=k,_===e){w();return}t({newState:{wrapBehavior:_},reloadWidget:!0})},hidden:!l.has("wrap"),title:window.ips.getString("core_pagebuilder_wrapBehavior"),children:[I.jsx(i3,{wrapBehavior:m,allowedBehaviors:r,onChange:t,getParent:o}),I.jsx(l3,{otherOptions:s,widgets:c,onChange:t,wrapBehavior:e})]})}function i3({wrapBehavior:e,allowedBehaviors:t,onChange:r,getParent:l}){var y;const o=X.useRef(null),s=((y=l==null?void 0:l())==null?void 0:y.wrapBehavior)==="carousel";X.useEffect(()=>{if(!o.current)return;const w=window.$(o.current.parentElement);window.ips.cleanContentsOf(w),s&&window.$(document).trigger("contentChange",[w])});let c=e in Ze?e:yr[e];if((c===void 0||!t.includes(c))&&(c=t.find(w=>w in Ze)),!c)return o.current=null,I.jsx(I.Fragment,{});let f=!1;const p=()=>{if(f)return;f=!0;let w;t.includes(Ze[e])?w=Ze[e]:t.includes(yr[e])?w=yr[e]:e in Ze?w=t.find(_=>!(_ in Ze))||e:w=c,r({newState:{wrapBehavior:w},reloadWidget:!0})},m=e in Ze;return I.jsxs("button",{ref:o,disabled:s,"data-ipstooltip":s?"":void 0,title:s?window.ips.getString("core_pagebuilder_wrap__nested-carousel-info"):window.ips.getString("core_pagebuilder_wrap__toggle-carousel"),className:"cWidgetContainer__menu-icon cWidgetContainer__menu-icon--carousel-toggle",onClick:w=>{w.preventDefault(),!s&&p()},children:[I.jsx(kn,{icon:c,horizontal:!0}),I.jsx("p",{children:window.ips.getString("core_pagebuilder_wrap__toggle-carousel")}),I.jsx("span",{"data-checked":m?"":void 0,className:"cWidgetContainer__menu-checkbox"})]})}function l3({wrapBehavior:e,otherOptions:t,onChange:r,widgets:l}){if(!l.length)return I.jsx(I.Fragment,{});const o=!t.showImages,s=!Sv.has(e);return I.jsxs("button",{disabled:s,className:"cWidgetContainer__menu-icon cWidgetContainer__menu-icon--images-toggle",onClick:s?void 0:c=>{c.preventDefault(),r({newState:{otherOptions:{showImages:!t.showImages}}})},children:[I.jsx(kn,{icon:"noimages",horizontal:!0}),I.jsx("p",{children:window.ips.getString("core_pagebuilder_wrap__hide-images")}),I.jsx("span",{"data-checked":o?"":void 0,className:"cWidgetContainer__menu-checkbox"})]})}function uo({value:e,onChange:t,onInput:r,interval:l=2e3,formatter:o,name:s,min:c,max:f,step:p=1,...m}){const[y,w]=X.useState(e),_=X.useMemo(()=>Qn.debounce(t,l),[t,l]),k=async(...A)=>_(...A);return I.jsxs("div",{"data-role":`${s}rangecontainer`,className:"rangecontainer",children:[I.jsx("label",{"data-role":`${s}display`,disabled:m.disabled,children:o instanceof Function?o(y):y}),I.jsx("input",{type:"range",min:c,max:f,step:p,defaultValue:e,onInput:A=>{A.stopPropagation(),w(parseFloat(A.target.value)),r==null||r(parseFloat(A.target.value)),k(parseFloat(A.target.value))},...m})]})}function o3({menuOptions:e,otherOptions:t,onChange:r,areaId:l}){return I.jsxs(Ui,{hidden:!e.has("carousel"),"data-role":"area-carousel_interval",title:window.ips.getString("core_pagebuilder_area-carousel_interval"),root:I.jsx(kn,{icon:t.interval?"interval":"nointerval",horizontal:!0}),children:[I.jsxs("div",{children:[I.jsx("label",{htmlFor:`area_option_has_interval${l}`,children:window.ips.getString("core_pagebuilder_area-autoplay")}),I.jsx("input",{id:`area_option_has_interval${l}`,type:"checkbox",checked:!!(t.interval&&t.interval>=1),onChange:()=>r({newState:{otherOptions:{interval:t.interval?void 0:5}}})})]}),I.jsx(uo,{name:"carousel_interval",value:t.interval||5,onChange:o=>{r({newState:{otherOptions:{interval:Math.round(o)}},reloadWidget:!0})},formatter:o=>`Every ${o} second${o===1?"":"s"}`,onInput:o=>{o=Math.round(o),t.interval=o},min:2,max:10,step:1,disabled:!t.interval||t.interval<=1})]})}function u3({menuOptions:e,otherOptions:t,onChange:r,widgets:l,areaRef:o}){return I.jsx(Ui,{hidden:!e.has("gap"),"data-role":"area-gaps",title:window.ips.getString("core_pagebuilder_area-gap_size"),root:I.jsx(kn,{icon:(t.gapSize,"gap"),horizontal:!0}),children:I.jsx(uo,{name:"gap_size",value:t.gapSize||20,formatter:s=>I.jsxs(I.Fragment,{children:[s,"px"]}),onChange:s=>{r({newState:{otherOptions:{gapSize:Math.round(s)}}})},min:0,max:50,onInput:s=>{s=Math.round(s),t.gapSize=s,o.current instanceof HTMLElement&&(l.length?o.current.style.setProperty("--i-widget--gap",`${s}px`):o.current.style.setProperty("--i-block--gap",`${s}px`),o.current.dataset.widgetGapSize=`${s}`)}})})}function s3({otherOptions:e,wrapBehavior:t,areaId:r,areaRef:l,onChange:o,widgets:s,menuOptions:c}){const f=!Number.isNaN(e.minSize)&&e.minSize?e.minSize:300;return I.jsxs(Ui,{hidden:!c.has("min_size"),title:window.ips.getString("core_pagebuilder_area-min_size"),"data-role":"area-min_size",root:I.jsx(kn,{icon:"minSize",horizontal:!0}),children:[I.jsxs("div",{hidden:!t.match(/carousel$/i),children:[I.jsx("label",{htmlFor:`area_option_full_width_items${r}`,children:window.ips.getString("core_pagebuilder_area-full_width")}),I.jsx("input",{id:`area_option_full_width_items${r}`,type:"checkbox",value:e.fullWidthItems?1:0,checked:!!e.fullWidthItems,onChange:()=>o({newState:{otherOptions:{fullWidthItems:!e.fullWidthItems,minSize:f}}})})]}),I.jsx(uo,{disabled:t.match(/carousel$/i)&&!!e.fullWidthItems,name:"min_size",value:f,onChange:p=>{o({newState:{otherOptions:{minSize:Math.round(p)}}})},formatter:p=>`${p}px`,onInput:p=>{p=Math.round(p),e.minSize=p,l.current instanceof HTMLElement&&(s.length?l.current.style.setProperty("--i-widget--size",`${p}px`):l.current.style.setProperty("--i-block--size",`${p}px`),l.current.dataset.widgetMinSize=`${p}`)},min:250,max:900,step:5})]})}function a3({otherOptions:e,onChange:t,menuOptions:r,areaRef:l,widgets:o}){return I.jsx(Ui,{title:window.ips.getString("core_pagebuilder_area-padding_block"),"data-role":"area-padding_block",hidden:!r.has("padding_block"),root:I.jsx(kn,{icon:"paddingBlock",horizontal:!0}),children:I.jsx(uo,{name:"padding_block",value:e.paddingBlock||0,onChange:s=>t({newState:{otherOptions:{...e,paddingBlock:Math.round(s)}}}),formatter:s=>`${s}px`,onInput:s=>{s=Math.round(s),e.paddingBlock=s,l.current instanceof HTMLElement&&(o.length?l.current.style.setProperty("--i-widget--padding-block",`${s}`):l.current.style.setProperty("--i-block--padding-block",`${s}`),l.current.dataset.widgetPaddingBlock=`${s}`)},min:0,max:50,step:1})})}function c3({otherOptions:e,onChange:t,widgets:r,menuOptions:l,areaRef:o}){return I.jsx(Ui,{title:window.ips.getString("core_pagebuilder_area-padding_inline"),"data-role":"area-padding_inline",root:I.jsx(kn,{icon:"paddingInline",horizontal:!0}),hidden:!l.has("padding_inline"),children:I.jsx(uo,{name:"padding_inline",value:e.paddingInline||0,onChange:s=>t({newState:{otherOptions:{...e,paddingInline:Math.round(s)}}}),formatter:s=>`${s}px`,onInput:s=>{s=Math.round(s),e.paddingInline=s,o.current instanceof HTMLElement&&(r.length?o.current.style.setProperty("--i-widget--padding-inline",`${s}`):o.current.style.setProperty("--i-block--padding-inline",`${s}`),o.current.dataset.widgetPaddingInline=`${s}`)},min:0,max:50,step:1})})}function f3({menuOptions:e}){return I.jsx("div",{hidden:!!e.size,className:"cBuilderMenuText",children:window.ips.getString("core_pagebuilder_area-no_options")})}function d3({moveUp:e,moveDown:t,menuOptions:r}){return I.jsxs(I.Fragment,{children:[I.jsx("button",{className:"cWidgetContainer__menu_item cWidgetContainer__menu_item--reposition",hidden:!(r!=null&&r.has("reposition")),type:"button","data-role":"moveup",disabled:!(e instanceof Function),"data-ipstooltip":"",title:window.ips.getString("core_pagebuilder_area-move-up"),onClick:()=>{e==null||e()},children:I.jsx("i",{className:"fa-solid fa-chevron-up"})}),I.jsx("button",{className:"cWidgetContainer__menu_item cWidgetContainer__menu_item--reposition",hidden:!(r!=null&&r.has("reposition")),type:"button",disabled:!(t instanceof Function),"data-ipstooltip":"",title:window.ips.getString("core_pagebuilder_area-move-down"),onClick:()=>{t==null||t()},"data-role":"movedown",children:I.jsx("i",{className:"fa-solid fa-chevron-down"})})]})}const p3=X.forwardRef(function(t,r){var z,J;let{editing:l,setEditing:o,getParent:s,isLeaf:c=!1,onChange:f,wrapBehavior:p="wrap",otherOptions:m,widgets:y,menuRef:w,depth:_}=t;const k=X.useRef(l),A=X.useRef(0),T=({newState:H,...ee})=>{H.otherOptions&&Object.assign(m,H.otherOptions),H.otherOptions={...m},p=H.wrapBehavior||p,f({newState:H,...ee})},B=X.useRef();X.useEffect(()=>{var H,ee,le,ae,_e,me,it;if(!l&&m.shouldBeEditing){delete m.shouldBeEditing,document.body.dispatchEvent(new is(r.current)),o(!0);return}if(delete m.shouldBeEditing,B.current&&document.body.removeEventListener("click",B.current),B.current=fe=>{l&&!Object.is(fe.root,r.current)&&o(!1)},document.body.addEventListener("ips.widgetAreaMenuOpened",B.current),l&&!k.current)A.current=0,(le=(ee=(H=r.current)==null?void 0:H.querySelectorAll)==null?void 0:ee.call(H,".cWidgetContainer__menu_dropout"))==null||le.forEach(fe=>{var q,G;(q=fe.classList)==null||q.add("dropoutNoShow"),(G=fe.querySelector('[data-role="otherChildren"]'))==null||G.setAttribute("hidden","true");const j=Qn.debounce(()=>{var Z,ve,je;A.current++>1&&((je=(ve=(Z=r.current)==null?void 0:Z.querySelectorAll)==null?void 0:ve.call(Z,".cWidgetContainer__menu_dropout"))==null||je.forEach(Ee=>{Ee.removeEventListener("mousemove",j),Ee.classList.remove("dropoutNoShow")}))},50);setTimeout(()=>{var Z;(Z=fe.querySelector('[data-role="otherChildren"]'))==null||Z.removeAttribute("hidden"),fe.addEventListener("mousemove",j)},750)}),(ae=r.current)==null||ae.animate(r0,{duration:140,easing:"ease-in-out"});else if(!l&&k.current){const fe=(_e=r.current)==null?void 0:_e.querySelector(":scope > .cWidgetContainer__menu");fe instanceof Element&&((me=r.current.querySelector(":scope > button"))==null||me.setAttribute("hidden","true"),fe.removeAttribute("hidden"),(it=r.current)==null||it.animate(r0.reverse(),{duration:140}),setTimeout(()=>{var j;k.current||(c&&((j=r.current.querySelector(":scope > button"))==null||j.removeAttribute("hidden")),fe.setAttribute("hidden","true"))},100))}k.current=l});const v=((z=t.otherOptions)==null?void 0:z.area)==="sidebar",S=!(v&&!y.length)&&(!y.length||["1","true"].includes((J=ji(y[0].blockID))==null?void 0:J.dataset.widgetCustomizable))&&!(v&&t.depth>1),C=y.length&&hd(y[0].blockID),O=H=>!(!c&&dd.has(H)||C!=null&&C.size&&!(C!=null&&C.has(H))),M=S?[...Object.keys(wr)].filter(O):[],F=h3({allowedBehaviors:M,customizable:S,wrapBehavior:p,widgets:y,isSidebar:v,getParent:s,depth:_}),P={otherOptions:m,wrapBehavior:p,onChange:T,menuOptions:F,widgets:y,getParent:s,areaId:t.areaId,areaRef:t.areaRef,depth:_,moveUp:t.moveUp,moveDown:t.moveDown};return I.jsx("div",{className:"cWidgetContainer__menu_region",ref:r,children:cd.createPortal(I.jsxs("form",{ref:w,"data-current":l?"yes":"no",hidden:!l,"data-role":"widgetAreaConfigForm",className:`cWidgetContainer__menu ${l?"ipsMenu":""} ${F.size?"":"cWidgetContainer__menu--empty"}`,onSubmit:H=>{H.preventDefault(),H.stopPropagation(),window.Debug.warn("Closing a widget area form because it was submitted; these forms should never be submitted"),o(!1)},children:[I.jsx(r3,{...P,allowedBehaviors:M}),I.jsx(o3,{...P}),I.jsx(u3,{...P}),I.jsx(s3,{...P}),I.jsx(a3,{...P}),I.jsx(c3,{...P}),I.jsx(f3,{menuOptions:F}),I.jsx(d3,{...P})]}),document.body,"area_menu")})});function h3({customizable:e,allowedBehaviors:t,wrapBehavior:r,widgets:l,isSidebar:o,getParent:s,depth:c}){var p,m;const f=new Set;return e&&t.length>1&&f.add("wrap"),e&&r.match(/carousel$/)&&((p=s())==null?void 0:p.wrapBehavior)!=="carousel"&&f.add("carousel"),r!=="carousel"&&!(l.length&&pd.has(r))&&e&&f.add("gap"),!o&&!_v.has(r)&&(e||!l.length)&&f.add("min_size"),!o&&!(l.length&&!x3(l[0].blockID))&&(f.add("padding_block"),r.match(/carousel$/)||f.add("padding_inline")),c===1&&((m=s())==null?void 0:m.children.length)>1&&f.add("reposition"),f}class is extends Event{constructor(t){super("ips.widgetAreaMenuOpened"),this.root=t}}const r0=[{transform:"scaleY(0)",transformOrigin:"top"},{transform:"scaleY(1)",transformOrigin:"top"}],Kr=X.createContext({area:void 0}),xv=/^(?:ipsHide|cWidgetContainer(?:--.+)?)$/;function Cv(e,t=null){const r={orientation:kv(e)?"horizontal":"vertical",children:[],wrapBehavior:"wrap",otherOptions:{},widgets:[]};if(t!=null&&t.orientation&&(r.orientation=t.orientation==="vertical"?"horizontal":"vertical"),e.dataset.widgetLayout in wr)r.wrapBehavior=e.dataset.widgetLayout;else for(const o in wr)if(e.classList.contains(wr[o])){r.wrapBehavior=o;break}r.areaClasses=[];for(const o of e.classList)xv.test(o)||r.areaClasses.push(o);for(const o in e.dataset)if(o.match(/^widget[A-Z0-9_]+$/i)){const s=o.match(/^(?:widget)+([A-Z0-9_]+)$/i)[1].replace(/^(.)/i,(c,f)=>f.toLowerCase());r.otherOptions[s]=e.dataset[o]}delete r.otherOptions.shouldBeEditing,e.querySelectorAll('[data-controller="core.front.widgets.area"],[data-controller="core.front.widgets.block"]').forEach(o=>{delete o.dataset.dataController});for(const o of e.querySelectorAll(":scope > .cWidgetContainer"))r.children.push(Cv(o,r));let l=[];for(const o of e.querySelectorAll(":scope > .ipsWidget__content--wrap > :is(.ipsWidget, [data-blocktitle], [data-blockid])"))l.push({title:o.dataset.blocktitle,blockID:o.dataset.blockid,config:!!o.dataset.blockconfig,blank:!!o.querySelector(":scope > .ipsWidgetBlank"),contentRaw:[...o.querySelectorAll(":scope > :not(.ipsWidgetBlank,.cSidebarBlock_managing)")].map(s=>s.outerHTML).join("")});return l.length<2?r.widgets=l:r.children=l.map(o=>({orientation:r.orientation==="horizontal"?"vertical":"horizontal",areaClasses:[],children:[],wrapBehavior:r.wrapBehavior,otherOptions:{},widgets:[o]})),r}function ls(e,t=null,r=[],l=0,o=void 0){var c;t!==null&&(e.orientation=t==="horizontal"?"vertical":"horizontal"),delete e.otherOptions.layout,!o&&l===0&&((c=e.otherOptions)!=null&&c.area)?o=e.otherOptions.area:o&&(e.otherOptions=e.otherOptions||{},e.otherOptions.area=o,o==="sidebar"&&l===1&&e.children.length&&!["carousel"].includes(e.wrapBehavior)&&(e.wrapBehavior="carousel")),e.areaClasses=(e.areaClasses instanceof Array?e.areaClasses:[]).filter(f=>typeof f=="string"&&!xv.test(f));for(const[f,p]of Object.entries({gapSize:20,areaId:void 0}))(typeof e.otherOptions[f]!="number"||Number.isNaN(e.otherOptions[f]))&&(e.otherOptions[f]=typeof e.otherOptions[f]=="string"?Number(e.otherOptions[f]):void 0,Number.isNaN(e.otherOptions[f])&&p!==void 0&&(e.otherOptions[f]=p));for(const[f,p]of Object.entries({fullWidthItems:!1,showImages:!0}))typeof e.otherOptions[f]!="boolean"&&(f in e.otherOptions?e.otherOptions[f]=!["0","false",""].includes(e.otherOptions[f]):e.otherOptions[f]=p);for(let f=0;f<e.children.length;f++){let p=e.children[f];for(p.children=p.children.filter(m=>!r.includes(m.areaId)&&(m.children.length||m.widgets.length));p.children.length===1&&!r.includes(p.areaId);)p=p.children[0],p.children=p.children.filter(m=>!r.includes(m.areaId)&&(m.children.length||m.widgets.length));if(r.includes(p.areaId)||p.children.length===0&&p.widgets.length===0)e.children.splice(f--,1);else if(p.children.length===1||p.children.length&&p.orientation===e.orientation){const m=p.children.filter(y=>!r.includes(y.areaId)&&(y.children.length||y.widgets.length)).map(y=>ls(y,e.orientation,r,l+1));e.children.splice(f--,1,...m),f+=m.length}else e.children.splice(f,1,ls(p,e.orientation,r,l+1,o))}if(l>=fd&&e.children.length){const f=[];for(const p of e.children)f.splice(f.length,0,...p.widgets);e.children=[]}const s=new Set;if(e.children=e.children.filter(f=>f.widgets.length&&s.has(f.widgets[0].blockID)?!1:!!(!f.widgets.length||s.add(f.widgets[0].blockID)||!0)),!e.widgets.length&&dd.has(e.wrapBehavior)&&(e.wrapBehavior="wrap"),"gapSize"in e.otherOptions||(e.widgets.length&&pd.has(e.wrapBehavior)?e.otherOptions.gapSize=0:e.otherOptions.gapSize=20),delete e.otherOptions.hasGaps,e.widgets.length){const f=hd(e.widgets[0].blockID);f.size&&!f.has(e.wrapBehavior)?e.wrapBehavior=f.values().next().value:!f.size&&!pf.has(e.wrapBehavior)&&(e.wrapBehavior="table")}else if(e.wrapBehavior==="carousel"&&e.children.length)for(const f of e.children)f.wrapBehavior in Ze&&(f.wrapBehavior=Ze[f.wrapBehavior],f.widgets.length&&(f.widgets[0].blank=!0,f.widgets[0].contentRaw=`<div class="ipsLoading">${f.widgets[0].contentRaw||""}</div>`));return e.children.length&&(delete e.otherOptions.showImages,e.areaClasses=[]),Ev(e),e}function Ev(e,t={current:0}){e.otherOptions=e.otherOptions||{},e.areaId=e.otherOptions.areaId=t.current++;for(const r of e.children)Ev(r,t)}function kv(e){if(!(e instanceof Element))return!1;for(const t of["stack","accordion","main"])if(e.classList.contains(`cWidgetContainer--${t}`))return!1;return!0}function Lv(e,t,r){var _,k,A,T;const l=kv(e.closest(".cWidgetContainer")),o=Sl(e.getBoundingClientRect()),s=((_=e.lastElementChild)==null?void 0:_.getBoundingClientRect())||o,c=Math.min(45,window.innerHeight/10,Math.max(15,(l?s.height:s.width)*.15));if((k=e.parentElement)!=null&&k.closest(".cWidgetContainer")&&(l&&r<o.top+c||!l&&t<o.left+c))return"before";if((A=e.parentElement)!=null&&A.closest(".cWidgetContainer")&&(l&&r>o.bottom-c||!l&&t>o.right-c))return"after";const f=[...e.querySelectorAll(":scope > :is(.cWidgetContainer__accordionWrapper, .cWidgetContainer)")];if(!f.length){if(e.querySelector(".ipsWidget__content--wrap")){const v=(e.querySelector(".ipsWidget__content--wrap .cSidebarBlock_managing")||e.querySelector(".ipsWidget__content--wrap")).getBoundingClientRect(),S=l?"x":"y",C=l?"right":"bottom",O=(v[S]+v[C])/2;return{x:t,y:r}[S]>O?1:0}return 0}let p={left:void 0,top:void 0,height:0,width:0},m=0,y,w;for(y=0;y<f.length;y++){if(f[y].hidden)continue;const B=Sl(f[y].getBoundingClientRect());if(g3(B,{x:t,y:r})){const v=(l?B.left+B.right:B.top+B.bottom)/2;return(l?t:r)>=v?y+1:y}if(p.left!==void 0&&p.top!==void 0&&w&&(l&&(B.left<=w.left||B.top+20>=p.top+p.height)||!l&&(B.top<=w.top+10||B.left+20>=p.left+p.width))){w=void 0,l?p.height=(p.height+Math.max(p.height,B.top-p.top))/2:p.width=(p.width+Math.max(p.width,B.right-p.right))/2;let v=Sl(new DOMRect(p.left,p.top,p.width,p.height));if(l&&v.top<=r&&v.bottom>=r||!l&&v.left<=t&&v.right>=t){y=Math.max(0,y-1);break}m=y,p={left:l?B.left:v.right,top:l?v.bottom:B.top,height:B.height,width:B.width}}(p.left===void 0||B.left<p.left)&&(p.left!==void 0&&(p.width+=p.left-B.left),p.left=B.left),B.right>p.left+p.width&&(p.width=B.right-p.left),(p.top===void 0||B.top<p.top)&&(p.top!==void 0&&(p.height+=p.top-B.top),p.top=B.top),B.bottom>p.top+p.height&&(p.height=B.bottom-p.top),w=B}if(l&&t<=p.left||!l&&r<=p.top)return m;if(l&&t>=p.left+p.width||!l&&r>=p.top+p.height)return y+1;for(let B=m;B<=y;B++){const v=Sl(f[B].getBoundingClientRect()),S=Sl((T=f[B+1])==null?void 0:T.getBoundingClientRect());if(B===y||!S){const C=(l?v.left+v.right:v.top+v.bottom)/2;return(l?t:r)>C?B+1:B}else if(l&&v.left<t&&(S.right+S.left)/2>t||!l&&v.top<r&&(S.bottom+S.top)/2>r)return l?t>(v.left+v.right)/2?B+1:B:r>(v.top+v.bottom)/2?B+1:B}return window.Debug.warn(new Error("Something went wrong when evaluating which child is being hovered over based on the client x and y position. A default value of the last element is returned so as to not break things, however this is a bug which may need further investigation.")),f.length}function Sl(e){if(e)for(const t of["width","height"])t in e&&isNaN(e[t])&&(e[t]=0);return e}const g3=(e,t)=>{if(t instanceof DOMRect){const r=t.left>=e.left&&t.right<=e.right,l=t.top>=e.top&&t.bottom<=e.bottom;return r&&l}else{const{x:r,y:l}=t;return r>=e.left&&r<=e.right&&l>=e.top&&l<=e.bottom}};async function m3(e,t){try{await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"POST",data:{...so(),do:"removeBlock",blockIDs:e,pageArea:t,area:t,pageApp:document.body.dataset.pageapp,pageModule:document.body.dataset.pagemodule,pageController:document.body.dataset.pagecontroller}})}catch(r){window.Debug.log("An error occurred when attempting to remove the block from the page"),window.Debug.error(r)}}function Rv(e){e=JSON.parse(JSON.stringify(e)),"areaId"in e&&(e.otherOptions=e.otherOptions||{},e.otherOptions.areaId=e.areaId);for(const t in e.widgets)delete e.widgets[t].contentRaw,delete e.widgets[t].blank;for(const t in e.children)e.children[t]=Rv(e.children[t]);return e}const yu={},fi={};function Iv(e,t,r=!0){return new Promise(async l=>{if(yu[t]){if(r){fi[t]&&await fi[t](!1),fi[t]=e instanceof Function?e:async o=>(l(o),e);return}e instanceof Function&&e(!1).then(()=>{}),l(!1);return}try{if(yu[t]=!0,e instanceof Function&&(e=await e(!0)),l(!0),await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"POST",data:{...so(),do:"saveWidgetTree",tree:JSON.stringify(Rv(e)),pageApp:document.body.dataset.pageapp,pageModule:document.body.dataset.pagemodule,pageController:document.body.dataset.pagecontroller,pageArea:t,area:t}}),yu[t]=!1,fi[t]){let o=fi[t];fi[t]=null,Iv(o,t,!1).then(()=>{})}return}catch(o){yu[t]=!1,window.Debug.log("An error occurred when attempting to update the page tree"),window.Debug.error(o)}l(!1)})}function v3(){var e,t,r;return((t=(e=window.ips)==null?void 0:e.getSetting)==null?void 0:t.call(e,"pageID"))||((r=window.document.querySelector("#elCmsPageWrap"))==null?void 0:r.dataset.pageid)||""}function so(){const e=v3();return{app:e?"cms":"core",module:e?"pages":"system",controller:e?"builder":"widgets",pageID:e}}function w3(e,t){do{if(e===t)return!0;e=e.parentElement}while(e);return!1}function y3({blockID:e,setState:t,state:r,title:l,blockArea:o,reloadContent:s},c){const[f,p]=X.useState({}),[m,y]=X.useState(null),w=X.useRef(null),_=X.useRef(null),k=X.useRef(null),A=X.useRef(null);r==="editing"&&!A.current&&(A.current=document.createElement("div")),X.useEffect(()=>()=>{var v;r==="editing"&&((v=A.current)==null||v.remove(),A.current=null)},[r]);const T=_3();X.useEffect(()=>{if(r==="editing"&&c.current){const v=c.current.querySelector(":scope > .ipsWidget");v&&!v.querySelector(".ipsForm")&&f.element.parentElement!==v&&(v.innerHTML="",v.classList.add("ipsLoading"),v.appendChild(f.element),B(f.element),window.$(document).trigger("contentChange",[window.$(f.element),window.$(c.current.querySelector(".cSidebarBlock_managing"))]),v.classList.remove("ipsLoading")),k.current&&(k.current.storage.ipsInlineEditing.applyStickyStyles=!0)}w.current=r}),X.useEffect(()=>{},[T,e]);function B(v,S=!1){var O,M;const C=new Set;if(console.log("hiding stuff"),v.querySelectorAll(".ipsComposeArea_editor").forEach(F=>{let P=F.parentElement;for(;P&&P!==v;)P.querySelectorAll(":scope > *").forEach(z=>{S?(z.ipsShow(),C.add(z)):C.has(z)||z.ipsHide()}),P=P.parentElement;for(P=S?F.parentElement:F,S&&F.ipsHide();P&&P!==v;)C.add(P),P.style.display==="none"&&(P.style.display=""),P.ipsShow(),P=P.parentElement}),S){(O=v.querySelector("#ipsTabs_tabs_form_form_tab_settings_panel"))==null||O.ipsHide(),v.querySelectorAll('[id="form_tab_settings"]').forEach(P=>{P.parentElement.ipsHide()});const F=v.querySelectorAll('#tabs_form > ul[role="tablist"] > li:not([hidden]) a');F[0]&&(F[0].click(),F.length===1&&((M=F[0].closest("#tabs_form"))==null||M.ipsHide()))}else _.current&&!v.querySelector(".tiptap.ProseMirror")&&(c.current.style.height=_.current+"px",v.addEventListener("ips:editorAfterInit",F=>{var P;c.current&&setTimeout(()=>c.current.style.height="",100),k.current=((P=F.detail)==null?void 0:P.instance)||k.current},{once:!0}))}return{toolList:m,blockUsesInlineEditing:T,editForm:f,tiptapRef:k,toolListWrap:A,captureHeight(){_.current=c.current.getBoundingClientRect().height},async setEditing(){if(!(r!=="default"||!T)){if(!f.configId||!f.element){const v=`${window.ips.getSetting("baseURL")}index.php?${Object.entries(so()).map(([F,P])=>`${encodeURIComponent(F)}=${encodeURIComponent(P)}`).join("&")}&do=getConfiguration&block=${encodeURIComponent(e)}&pageApp=${encodeURIComponent(document.body.dataset.pageapp)}&pageModule=${encodeURIComponent(document.body.dataset.pagemodule)}&pageController=${encodeURIComponent(document.body.dataset.pagecontroller)}&pageArea=${encodeURIComponent(o)}&area=${encodeURIComponent(o)}`,S=window.ips.ui.dialog.create({title:l,forceReload:!1,content:'<div><div class="ipsLoading" style="width: 100%;height: 100%;"></div></div>',destructOnClose:!1,remoteSubmit:!1,remoteVerify:!1});t("loading");const C=await window.ips.fetch(v,{method:"GET"}),O=window.ips.uid(),M=document.createElement("div");M.setAttribute("data-ipsconfigform",O),M.innerHTML=C,M.querySelectorAll("form").forEach(F=>F.addEventListener("submit",P=>{var _e;P.preventDefault();const z=[...new FormData(F).entries()],J=Object.fromEntries(z),H=window.ips.ui.editorv5.getObj(c.current.querySelector("[data-ipseditorv5]")),ee=(H==null?void 0:H.getInstance())||k.current,le=J.content||(ee==null?void 0:ee.getHTML());(_e=ee==null?void 0:ee.commands)==null||_e.resetStickyAncestorStyles(),H==null||H.destruct();try{window.ips.cleanContentsOf(M)}catch(me){window.Debug.warn(me)}k.current=null;const ae=le!==void 0?c.current.querySelector(":scope > .ipsWidget").getBoundingClientRect():c.current.getBoundingClientRect();if(le!==void 0){c.current.classList.remove("ipsWidget__content--wrap--editing");const me=c.current.querySelector(":scope > .ipsWidget");me&&(me.innerHTML=`
<div
class="ipsLoading"
style="width:${ae.width}px; height:${ae.height}px; position:static !important;"
>
<div class="ipsRichText ipsWidget__content ipsWidget__padding">
${le}
</div>
</div>`)}else c.current.style.height=`${ae.height}px`,c.current.style.width=`${ae.width}px`;setTimeout(async()=>{let me;try{me=await window.ips.fetch(F.action,{data:J,method:"post",bypassRedirect:!0})}catch(it){window.Debug.error(it)}S.hide(),M.remove(),t("default"),p({}),s(me)},100)})),S.addContentProcessor(F=>{var J,H;const P=(J=M.parentElement)==null?void 0:J.getBoundingClientRect();if(P){const ee=M.parentElement;ee.style.width=P.width+"px",ee.style.height=P.height+"px";const le=(H=F.closest(".ipsDialog"))==null?void 0:H.getAttribute("id");if(le){const ae=(_e,{dialogID:me})=>{le===me&&(ee.style.width="",ee.style.height="",ee.appendChild(M),B(M),window.$(document).off("hideDialog",ae))};window.$(document).on("hideDialog",ae)}}let z=M;for(;z;){if(z.parentElement===F)return;z=z.parentElement}F.innerHTML="",F.appendChild(M),B(M,!0)}),p({element:M,configId:O,dialogRef:S})}t("editing")}}}}function eo(e){return(e instanceof Element?e:document).querySelector("[data-ipsconfigform]")}function _3(e){return!1}function S3({blockID:e,title:t,config:r,update:l,defaultConfiguration:o,blank:s,getArea:c,contentRaw:f,selectArea:p},m){const[y,w]=X.useState("default"),_=X.useRef(null),k=H=>{y==="default"&&H==="editing"&&e.startsWith("app_cms_Wysiwyg")&&(S==null||S()),w(H)};let A=!1;const{area:T}=X.useContext(Kr),{setEditing:B,editForm:v,captureHeight:S,blockUsesInlineEditing:C,toolList:O,tiptapRef:M,toolListWrap:F}=y3({blockID:e,setState:k,state:y,blockArea:T,title:t,reloadContent:z,contentRaw:f},m);X.useEffect(()=>{if(y==="default"){const H=e.split("_");(!H[3]||s)&&(A=!H[3],A&&(e+=`_${Math.random().toString(36).slice(2,9)}`),z(),k("loading"))}}),X.useEffect(()=>{var H;r&&_.current&&((H=_.current)==null?void 0:H.dataset.menuListenerSet)!=="true"&&(_.current.dataset.menuListenerSet="true",window.$(document).trigger("contentChange",[window.$(_.current.parentElement)]),_.current.addEventListener("ipsMenuOpened",async ee=>{if(await new Promise(ae=>setTimeout(ae,1)),C){await p(),J(),await B();return}let le=`${window.ips.getSetting("baseURL")}index.php?${Object.entries(so()).map(([ae,_e])=>`${encodeURIComponent(ae)}=${encodeURIComponent(_e)}`).join("&")}&do=getConfiguration&block=${encodeURIComponent(e)}&pageApp=${encodeURIComponent(document.body.dataset.pageapp)}&pageModule=${encodeURIComponent(document.body.dataset.pagemodule)}&pageController=${encodeURIComponent(document.body.dataset.pagecontroller)}&pageArea=${encodeURIComponent(T)}&area=${encodeURIComponent(T)}`;try{if(P()==="modal"){J();const ae=window.ips.ui.dialog.create({title:t,url:le,forceReload:!0,destructOnClose:!0,remoteSubmit:!0});ae.show(),document.querySelectorAll(`[id="${e}_edit_menu"]`).ipsHide();const _e=Qn.throttle(me=>{me.dialogID===ae.dialogID&&(me.stopImmediatePropagation(),me.preventDefault(),z(me.response))},200);document.addEventListener("dialogSubmission",_e,{once:!0})}else ee.menu.html(window.$("<div/>").addClass("ipsLoading").css({height:"100px"})),setTimeout(async()=>{const ae=await window.ips.fetch(le),_e=ee.menu.get(0);if(_e.id)for(const me of document.querySelectorAll(`[id="${_e.id}"]`))me!==_e&&me.remove();ee.menu.html(ae).find("form").on("submit",async me=>{var it;me.preventDefault();try{const fe=await window.ips.fetch(window.$(me.currentTarget).attr("action"),{data:window.$(me.currentTarget).serialize(),type:"post"});typeof fe=="object"||((it=fe==null?void 0:fe.toLowerCase)==null?void 0:it.call(fe))==="ok"?(await z(fe),ee.menu.trigger("closeMenu")):typeof fe=="string"&&ee.menu.html(fe)}catch(fe){window.Debug.warn(fe),window.ips.ui.alert.show({type:"alert",icon:"warn",message:window.ips.getString("sidebarConfigError"),callbacks:{}})}}),ee.menu.trigger("contentChange",[ee.menu])},10);document.body.dispatchEvent(new is(null))}catch(ae){window.Debug.warn(ae),window.ips.ui.alert("Something went wrong when loading the configuration settings")}await p()}))});function P(){var H;return((H=ji(e))==null?void 0:H.dataset.menustyle)||"none"}async function z(H){const ee={blockID:e,title:t,config:r,blank:!1,contentRaw:"Error"};(H==null?void 0:H.areaClasses)instanceof Array&&(ee.areaClasses=Array.from(new Set(H.areaClasses)));try{const le=await Tv(e,o,T,A,c().wrapBehavior);ee.contentRaw=le,ee.defaultConfiguration=void 0,l==null||l(ee),k("default")}catch(le){l==null||l(ee),k("contentLoadError"),window.Debug.log("something went wrong when loading a block's content."),window.Debug.error(le)}}function J(){document.querySelectorAll(`[id="${e}_edit_menu"]`).ipsHide()}return{reloadContent:z,state:y,setState:k,editForm:v,blockUsesInlineEditing:C,manageBlockRef:_,toolList:O,tiptapRef:M,toolListWrap:F}}function ao(e){return e.split("_").slice(0,3).join("_")}function ji(e){if(typeof e!="string")return window.Debug.warn("Could not get a block base because the id is not a string"),null;const t=ao(e);return t?document.querySelector(`[data-role="availableBlocks"] :is([data-blockID="${t}"],[data-blockID*="${t}_"])`):(window.Debug.warn(`The block id ${JSON.stringify(e)} does not have a valid base identifier (expecting an id of the format '{"app"|"plugin"}_{appname}_{widgetkey}*')`),null)}const _u={};function hd(e){if(typeof e!="string")return window.Debug.warn("Could not get a block base because the id is not a string"),new Set(pf);const t=ao(e);if(!(t in _u)){const r=ji(e);if(r!=null&&r.dataset.widgetLayouts){_u[t]=new Set;for(const l of r.dataset.widgetLayouts.split(","))_u[t].add(l.trim())}else return new Set(pf)}return _u[t]}const wc={};function x3(e){var r;const t=ao(e);if(!t)return!1;if(!(t in wc)){const l=ji(e);if(!l)return!1;wc[t]=["1","true",""].includes((r=l.dataset)==null?void 0:r.widgetPaddingallowed)}return wc[t]}async function Tv(e,t,r,l,o){const s={...so(),do:"getBlock",blockID:e,pageApp:document.body.dataset.pageapp,pageModule:document.body.dataset.pagemodule,pageController:document.body.dataset.pagecontroller,pageArea:r,area:r,orientation:"vertical",createIfDoesNotExist:l?!0:void 0,defaultConfiguration:JSON.stringify(t||""),currentURL:window.location.href};o&&(s.layout=o);const c=await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"POST",data:s});if(typeof c!="string")throw new TypeError("The response is not a string");return new DOMParser().parseFromString(c,"text/html").querySelector("body").innerHTML}const us=class us extends CustomEvent{constructor({widget:t,area:r}){super(us.key,{bubbles:!0}),this.blockID=t.blockID,this.area=r}};Qh(us,"key","ips_widget_drop");let to=us;const Rl={};document.addEventListener(to.key,e=>{var t;!(e instanceof to)||typeof e.blockID!="string"||typeof e.area!="string"||((t=Rl[e.blockID])==null||t.call(Rl,e),delete Rl[e.blockID])});function C3({remove:e,blockID:t}){const{area:r}=X.useContext(Kr);t!==ao(t)&&(Rl[t]=l=>{l.area!==r&&e({shallow:!0})})}const i0=new Set;let xl;function Ov(){return new Promise(e=>{var t,r,l;if(xl)e(xl);else if(((l=(r=(t=window==null?void 0:window.ips)==null?void 0:t.utils)==null?void 0:r.crypto)==null?void 0:l.md5)instanceof Function){xl=window.ips.utils.crypto.md5(Date.now()+Math.round(Math.random()*1e4).toString(16));for(const o of i0)o(xl);e(xl)}else i0.add(e)})}function E3({children:e,parentRef:t,state:r,blockID:l,blockUsesInlineEditing:o,toolList:s,tiptapRef:c,toolListWrap:f}){const p=X.useRef(null),m=X.useRef(null);X.useEffect(()=>{m.current&&f.current&&f.current.parentElement!==m.current&&(m.current.appendChild(f.current),f.current.dataset.role="tiptap-messages-portal-root")});const y=w=>{if(w=w||t.current,!w){p.current.setAttribute("hidden","");return}const _=w.getBoundingClientRect();let k=p.current.parentElement;for(;k&&!["relative","absolute","fixed","sticky"].includes(getComputedStyle(k).position.toLowerCase());)k=k.parentElement;const A=(k||document.documentElement).getBoundingClientRect();p.current.style.left=`calc(${_.right-A.left}px + var(--i-hz-offset, 20px))`,p.current.style.top=`${_.top-A.top}px`;let T=!1;const B=p.current.getBoundingClientRect();B.right>window.innerWidth-10&&(p.current.style.left=`calc(${_.left-A.left-B.width}px - var(--i-hz-offset, 20px))`,T=!0);const v=p.current.querySelector('[data-role="toollist-wrap"]');s?(s.parentElement!==v&&(v.innerHTML="",v.appendChild(s)),v.style.top=`calc(${_.height}px + var(--i-hz-offset, 20px))`,v.style.width=`${_.width}px`,T?(v.style.right="revert",v.style.left="calc(100% + var(--i-hz-offset, 20px))"):(v.style.right="",v.style.left="")):v.innerHTML=""};return X.useEffect(()=>{var F;if(!o||r!=="editing")return;const w=t.current;let _=Date.now();const k=P=>{var z,J,H;Date.now()-_<100||(_=Date.now(),y((J=(z=P.detail)==null?void 0:z.instance)==null?void 0:J.view.dom),c.current=((H=P.detail)==null?void 0:H.instance)||c.current)};w==null||w.addEventListener("ips:editorUpdated",k);let A=0;const T=2e3,B=100,v=setInterval(()=>{if(A>=T){clearInterval(A);return}A+=B,y()},B),S=window._.debounce(()=>{var P,z;p.current.removeAttribute("hidden"),(P=c.current)==null||P.commands.showMenu(),y(((z=c.current)==null?void 0:z.view.dom)||w),document.dispatchEvent(new CustomEvent("ipsAnchorPosition"))},200),C=()=>{var P,z;if(c.current&&!((P=c.current.storage.ipsInlineEditing)!=null&&P.stickyAncestor)){document.removeEventListener("scroll",C);return}(z=c.current)==null||z.commands.hideMenu(),p.current.setAttribute("hidden",""),S()};(!c.current||(F=c.current.storage.ipsInlineEditing)!=null&&F.stickyAncestor)&&document.addEventListener("scroll",C);const O=P=>{var z,J;(J=c.current||((z=P==null?void 0:P.detail)==null?void 0:z.instance))==null||J.commands.hideMenu(),p.current.setAttribute("hidden","")},M=P=>{var z,J,H,ee,le;(J=c.current||((z=P==null?void 0:P.detail)==null?void 0:z.instance))==null||J.commands.showMenu(),p.current.removeAttribute("hidden"),y((le=(ee=(H=P==null?void 0:P.detail)==null?void 0:H.instance)==null?void 0:ee.view)==null?void 0:le.dom)};return w==null||w.addEventListener("ips:editorHidePanes",O),w==null||w.addEventListener("ips:editorShowPanes",M),()=>{w==null||w.removeEventListener("ips:editorUpdated",k),w==null||w.removeEventListener("ips:editorHidePanes",O),w==null||w.removeEventListener("ips:editorShowPanes",M),document.removeEventListener("scroll",C),clearInterval(v)}}),cd.createPortal(I.jsxs("div",{className:"cWidgetContainer__portal-menu",id:`pagebuilder_portal_menu--${l}`,hidden:r!=="editing",ref:p,children:[e,I.jsx("div",{"data-role":"toollist-wrap",ref:m})]}),document.body)}function k3({blockID:e,state:t,title:r,config:l,editForm:o,setState:s,remove:c,blockUsesInlineEditing:f,parentRef:p,manageBlockRef:m,toolList:y,tiptapRef:w,toolListWrap:_,getArea:k}){const{area:A}=X.useContext(Kr);return I.jsxs(I.Fragment,{children:[I.jsxs("div",{className:"cSidebarBlock_managing",hidden:t==="editing"&&f,id:`elWidgetMenu--${e}`,children:[I.jsx("h4",{className:"cSidebarBlock_managing__heading",hidden:t==="editing",children:r}),I.jsx("button",{ref:m,"data-ipsmenu":"","data-ipsmenu-closeonclick":"false",id:e+"_edit","data-action":"manageBlock",className:"ipsButton ipsButton--primary ipsButton--icon","data-ipstooltip":"",title:window.ips.getString("editBlock"),hidden:!l||t==="editing","data-ipsmenu-appendto":`[data-widget-area-id="${k().areaId}"][data-widgetarea="${A}"]`,children:I.jsx("i",{className:"fa-solid fa-pencil"})}),I.jsx("button",{className:"ipsButton ipsButton--icon ipsButton--inherit","data-action":"removeBlock","data-ipstooltip":"",title:window.ips.getString("removeBlock"),onClick:c,children:I.jsx("i",{className:"fa-solid fa-xmark"})}),I.jsx("div",{className:"ipsMenu ipsMenu_wide ipsHide",id:`${e}_edit_menu`})]}),I.jsxs(E3,{parentRef:p,state:t,blockID:e,blockUsesInlineEditing:f,toolList:y,tiptapRef:w,toolListWrap:_,children:[I.jsx("button",{id:e+"_save","data-action":"saveBlock",className:"ipsButton ipsButton--positive ipsButton--icon","data-ipstooltip":"",title:window.ips.getString("save"),hidden:t!=="editing",onClick:()=>{var T;(T=p.current.querySelector(".ipsWidget [data-ipsconfigform] form"))==null||T.dispatchEvent(new Event("submit"))},children:I.jsx("i",{className:"fa-solid fa-save"})}),I.jsx("button",{id:e+"_edit_more","data-action":"manageBlock",className:"ipsButton ipsButton--primary ipsButton--icon","data-ipstooltip":"",title:"More Options",hidden:t!=="editing",onClick:()=>{var T;(T=o.dialogRef)==null||T.show()},children:I.jsx("i",{className:"fa-solid fa-ellipsis"})}),I.jsx("button",{className:"ipsButton ipsButton--icon ipsButton--inherit","data-action":"cancel","data-ipstooltip":"",title:window.ips.getString("cancel"),onClick:()=>{var T;w.current&&(w.current.storage.ipsInlineEditing.applyStickyStyles=!1,w.current.commands.resetStickyAncestorStyles()),(T=o.dialogRef)==null||T.hide(),o.element&&(window.ips.cleanContentsOf(o.element),w.current=null),s("default")},children:I.jsx("i",{className:"fa-solid fa-xmark"})})]})]})}function L3(e){let{blockID:t,title:r,config:l,blank:o,contentRaw:s,areaId:c,remove:f,getArea:p}=e;const m=X.useRef(null),{state:y,setState:w,editForm:_,blockUsesInlineEditing:k,manageBlockRef:A,toolList:T,tiptapRef:B,toolListWrap:v}=S3(e,m),{area:S}=X.useContext(Kr);C3({remove:f,blockID:t});const C=!["loading","editing"].includes(y),O=Qn.debounce(()=>{var M;return(M=eo(m.current.closest(".pageBuilderRoot, body")))==null?void 0:M.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},300);return I.jsxs("div",{ref:m,className:`ipsWidget__content--wrap ${{editing:"ipsWidget__content--wrap--editing",loading:"ipsLoading"}[y]||""}`,draggable:C,onDragStart:async M=>{if(!C||!m.current)return;if(eo(m.current.closest(".pageBuilderRoot, body"))){M.preventDefault(),window.ips.ui.flashMsg.show(window.ips.getString("core_pagebuilder_widget-cannot-drag")),O();return}const F=await Ov(),P=p();document.querySelectorAll(".cWidgetContainer__menu_region.ipsMenu").forEach(z=>z.style.display="none"),M.dataTransfer.setData("application/x.ipsblock",JSON.stringify({areaDetails:{wrapBehavior:P.wrapBehavior,otherOptions:P.otherOptions},blockID:t,blockTitle:r,config:l,blank:o,contentRaw:s,areaId:c,area:S,pageHash:F})),setTimeout(()=>{var z,J;(J=(z=m.current)==null?void 0:z.closest("section.cWidgetContainer"))==null||J.setAttribute("hidden","")},100)},onDragEnd:()=>{setTimeout(()=>{var M,F;document.querySelectorAll(".cWidgetContainer__menu_region.ipsMenu").forEach(P=>P.style.display=""),(F=(M=m.current)==null?void 0:M.closest("section.cWidgetContainer"))==null||F.removeAttribute("hidden")},200)},children:[I.jsx("div",{className:"ipsWidgetBlank",hidden:!o||!!s,children:"This widget is empty"}),I.jsx("div",{className:"ipsWidget",dangerouslySetInnerHTML:y==="editing"?void 0:{__html:s||""},"data-blocktitle":r,"data-blockid":t,"data-blockerrormessage":o?window.ips.getString("core_pagebuilder_widget-load_error"):void 0,"data-blockconfig":l?"true":void 0}),I.jsx(k3,{...e,editForm:_,setState:w,state:y,parentRef:m,blockUsesInlineEditing:k,manageBlockRef:A,toolList:T,tiptapRef:B,toolListWrap:v,getArea:p})]})}function R3({orientation:e="vertical",children:t=[],wrapBehavior:r,onChange:l=()=>{},otherOptions:o={},widgets:s=[],insertSibling:c=()=>{},areaId:f,getParent:p,depth:m=0},y){r===void 0&&(r=s.length?"table":"wrap");const{area:w}=X.useContext(Kr);if(m>=fd)return{};const _=Qn.debounce(()=>{var k;(k=eo(y.current.closest(".pageBuilderRoot, body")))==null||k.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},300);return{onDragEnter:k=>k.preventDefault(),onDrop:async k=>{var A,T,B,v,S,C;if(eo(y.current.closest(".pageBuilderRoot"))){k.preventDefault(),k.stopPropagation(),window.ips.ui.flashMsg.show(window.ips.getString("core_pagebuilder_widget-cannot-drag")),_();return}k.stopPropagation(),k.preventDefault();try{let O;const M=JSON.parse(k.dataTransfer.getData("application/x.ipsblock")||"null");for(const P of["blockTitle","blockID","config","blank"])if(!M||typeof M!="object"||!(P in M)){let z=k.dataTransfer.getData("text/html")||k.dataTransfer.getData("text/plain")||"";k.dataTransfer.types.includes("text/uri-list")&&!z&&(z=k.dataTransfer.getData("text/uri-list").split(/\s*\n\s*/).filter(ae=>!ae.match(/^#/)).map(ae=>`${ae}`).join(`
`)),await window.ips.ui.editorv5.whenLoaded();const J=document.createElement("div");J.setAttribute("hidden",""),document.body.appendChild(J);const[H,ee]=await window.ips.utils.tiptap.editorInstance(J,{...window.ips.ui.editorv5.buildConfig({}),content:z});if(await new Promise(le=>setTimeout(le)),z=H.getHTML(),H.destroy(),ee.unmount(),J.remove(),z){O={orientation:e==="horizontal"?"vertical":"horizontal",children:[],wrapBehavior:"table",otherOptions:{},widgets:[{title:"WYSIWYG Editor",blockID:"app_cms_Wysiwyg",config:!0,blank:!1,contentRaw:z,defaultConfiguration:{content:z}}]};break}throw new Error(`The data from the drop event did not include ${P}, so the block could not be inserted in the widget area tree`)}const F=y.current;if(F){if(M.blockID.startsWith("app_cms_Blocks:")){const le=ji(M.blockID),ae=le==null?void 0:le.dataset.customblockid;if(!ae)throw new Error("The dropped block is a custom block but the block id is invalid");const _e=await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"get",data:{app:"cms",module:"pages",controller:"builder",do:"getCustomBlockContent",id:ae}});if(typeof _e.content!="string"||typeof _e.block_key!="string"||typeof((A=_e.configuration)==null?void 0:A.blocktitle)!="string")throw new TypeError("Could not add a custom block because the server didn't return a string for it's content, blocktitle data attribute, or block key (as in the key of the custom block)");M.contentRaw=_e.content,M.defaultConfiguration={cms_widget_custom_block:_e.block_key},M.blockID=`app_cms_Blocks_${Math.round(Math.random()*Math.pow(16,8)).toString(16)}`,M.blockTitle=_e.configuration.blocktitle}const P=Lv(F,k.clientX,k.clientY),z=M.areaDetails,J={title:M.blockTitle,blockID:M.blockID,config:M.config,blank:M.blank,contentRaw:M.contentRaw||"<div class='ipsLoading'></div>"};M.defaultConfiguration&&(J.defaultConfiguration=J.configuration=M.defaultConfiguration),O=O||{orientation:e==="horizontal"?"vertical":"horizontal",children:[],wrapBehavior:(z==null?void 0:z.wrapBehavior)||M.ipsWrapBehavior||((v=(B=(T=hd(M.blockID))==null?void 0:T.values())==null?void 0:B.next())==null?void 0:v.value)||"table",otherOptions:{...z==null?void 0:z.otherOptions},widgets:[J]};const H=await Ov(),ee=[];if(Number.isInteger(M==null?void 0:M.areaId)&&M.area===w&&M.pageHash===H&&ee.push(M.areaId),ee.includes(f))return;if(ao(O.widgets[0].blockID)===O.widgets[0].blockID){O.widgets[0].blockID+="_";for(let le=0;le<6;le++)O.widgets[0].blockID+=Math.round(Math.random()*16).toString(16);O.widgets[0].contentRaw=await Tv(O.widgets[0].blockID,O.widgets[0].defaultConfiguration,w,!0,O.wrapBehavior),O.widgets[0].blank=!1}if((S=y==null?void 0:y.current)!=null&&S.closest(".cWidgetContainer--carousel")&&O.wrapBehavior in Ze&&(O.wrapBehavior=Ze[O.wrapBehavior],O.widgets.length&&(O.widgets[0].blank=!0,O.widgets[0].contentRaw=`<div class="ipsLoading">${O.widgets[0].contentRaw||""}</div>`)),["before","after"].includes(P))O.orientation=e,c==null||c(O,P==="before",ee);else if(!t.length&&s.length){const le={orientation:e==="horizontal"?"vertical":"horizontal",children:[],wrapBehavior:r,otherOptions:o,widgets:s,areaId:f};l({newState:{children:P===0?[O,le]:[le,O],wrapBehavior:"wrap",widgets:[],otherOptions:{}},toRemove:ee})}else t.splice(P,0,O),l({newState:{children:t},toRemove:ee});(C=y.current)==null||C.dispatchEvent(new to({widget:O.widgets[0],area:w}))}}catch(O){window.Debug.warn(O),window.Debug.log("Could not insert the content dropped inside a widget area"),window.ips.ui.alert.show({message:"This content cannot be dropped in the page"})}document.querySelectorAll("section.cWidgetContainer:not([data-controller])").forEach(O=>{O.removeAttribute("hidden"),O.querySelectorAll(":scope > .cWidgetContainer__menu_region").forEach(M=>M.style.display="")})},onDragOver:k=>{k.preventDefault(),k.stopPropagation(),O3({ref:y,orientation:e,wrapBehavior:r,getParent:p,children:t,clientX:k.clientX,clientY:k.clientY})}}}function I3(e,t){if(e!=null&&e.classList.contains("cWidgetContainer--dragInside")){const r=e.getBoundingClientRect();let l;if(e.scrollWidth<=r.width)return!1;if(t<r.left+Math.min(r.width/10,70))l="prev";else if(t>r.right-Math.max(r.width/10,70))l="next";else return!1;if(l&&!window.ips.ui.carousel.containerAtEnd(e,l))return T3(e,l),!0}return!1}const T3=Qn.throttle((e,t)=>{e.dispatchEvent(new CustomEvent("scrollPanels",{detail:{direction:t,loop:!1}}))},1e3),O3=Qn.throttle(function({ref:e,orientation:t,wrapBehavior:r,getParent:l,children:o,clientX:s,clientY:c}){var f,p;if(e.current){if(eo(e.current.closest(".pageBuilderRoot")))return;const m=l==null?void 0:l();try{let y,w,_=e.current,k=Lv(_,s,c),A=t;if(["stack","accordion"].includes(r)&&(t="vertical"),["before","after"].includes(k)){A=t==="horizontal"?"vertical":"horizontal";const v=k;if(_=(f=e.current.parentElement)==null?void 0:f.closest(".pageBuilderRoot .cWidgetContainer"),_){let S=_.querySelectorAll(":is(:scope, :scope > .cWidgetContainer__accordionWrapper) > :is(.cWidgetContainer, .ipsWidget)");for(k=0,k=0;k<S.length;k++){const C=S[k];if(Object.is(C,e.current))break;if(k===S.length-1)return}v!=="before"&&k++}else return}else!o.length&&m&&(k===0?(y=null,w=_.querySelector(".ipsWidget__content--wrap .cSidebarBlock_managing")||_):(y=_.querySelector(".ipsWidget__content--wrap .cSidebarBlock_managing")||_,w=null),di(_,"cWidgetContainer--dragInside"),_=null);(p=_==null?void 0:_.querySelector(":scope > :first-child"))!=null&&p.classList.contains("cWidgetContainer__menu_region")&&(k+=1);let T=1,B=k*T;if(_&&(k>0&&(y=_.querySelector(`:scope > :is(.cWidgetContainer,.ipsWidget, .cWidgetContainer__accordionWrapper):nth-child(${B})`)),w=_.querySelector(`:scope > :is(.cWidgetContainer, .ipsWidget, .cWidgetContainer__accordionWrapper):nth-child(${B+T})`),di(_,"cWidgetContainer--dragInside"),_.classList.contains("cWidgetContainer--carousel")&&(y?w||di(_,"cWidgetContainer--dragAfterLast"):di(_,"cWidgetContainer--dragBeforeFirst"),_.classList.contains("ipsScrolling")||I3(_,s))))return;y&&di(y,A==="horizontal"?"cWidgetContainer--dragLeft":"cWidgetContainer--dragBelow"),w&&di(w,A==="horizontal"?"cWidgetContainer--dragRight":"cWidgetContainer--dragAbove")}catch(y){y.message=`An unexpected error occurred when handling the drag over event
`+y.message,window.Debug.warn(y)}}},200);function di(e,t,r=400){var l;et.has(e)||et.set(e,new Map);for(const o of t.split(/\s+/).filter(s=>!!s)){et.get(e).has(o)&&(clearTimeout(et.get(e).get(o)),et.get(e).delete(o)),e.classList.add(o),document.querySelectorAll(`.${o}`).forEach(c=>{var f;if(c!==e){c.classList.remove(o);const p=(f=et.get(c))==null?void 0:f.get(o);p&&(clearTimeout(p),et.get(c).delete(o))}});const s=setTimeout(()=>{var f;e.classList.remove(o);const c=(f=et.get(e))==null?void 0:f.get(o);c&&(clearTimeout(c),et.get(e).delete(o),et.get(e).size||et.delete(e))},r);et.get(e).set(o,s)}(l=et.get(e))!=null&&l.size||et.delete(e)}setInterval(()=>{for(const e of et.keys())if(e.closest("body")!==document.body){for(const t of et.get(e).values())clearTimeout(t);et.delete(e)}},5e3);const et=new Map;function A3({wrapBehavior:e,widgets:t,scrollRef:r}){const l=X.useRef(null),o=e==="carousel"&&!t.length;X.useEffect(()=>{if(o&&(p(),r.current)){const y=r.current;os.set(y,p);const w=k=>{var O;const[A,T,B]=c(),v=((O=k==null?void 0:k.detail)==null?void 0:O.direction)||"next",S=v!=="prev"&&(A>=T-1||B[T-1].getBoundingClientRect().right<=y.getBoundingClientRect().right);if(v==="prev"&&A===0||v!=="prev"&&S)return;const C=y.querySelector(`[data-carousel-arrow="${v}"]`);C instanceof HTMLElement&&m({target:C})};y.addEventListener("scrollPanels",w);const _=new ResizeObserver(Qn.debounce(p,100));return _.observe(r.current),()=>{os.delete(y),y.removeEventListener("scrollPanels",w),_.disconnect()}}});function s(){var y;return(y=r.current)!=null&&y.classList.contains("cWidgetContainer--carousel")?r.current:null}function c(){var T;const y=s(),w=y==null?void 0:y.querySelectorAll(":scope > .cWidgetContainer");if(!w)throw new ReferenceError;const _=w.length;if(gf.has(y))return[parseInt(((T=l.current)==null?void 0:T.dataset.actualOffset)||"0"),_,w];const k=y.getBoundingClientRect();let A;for(A=0;A<_;A++)if(w[A].getBoundingClientRect().left>=k.left-1)return[A,_,w];return[_-1,_,w]}function f(){var k,A;const y=(k=r.current)==null?void 0:k.getBoundingClientRect(),w=(A=r.current)==null?void 0:A.querySelectorAll(":scope > .cWidgetContainer");if(!y||!(w!=null&&w.length)||w.length===1)return 1;const _=Math.abs(w[w.length-1].getBoundingClientRect().right-w[0].getBoundingClientRect().left);if(_){let T=Math.ceil(_/y.width);return w.length>2&&w[w.length-1].getBoundingClientRect().right-w[w.length-2].getBoundingClientRect().left>y.width&&T++,T}return 1}function p(){if(!l.current)return;let[y,w]=c();const _=f();y=Math.min(y,_),w=Math.min(w,_),l.current.innerText=`${y+1}/${w}`,l.current.closest(".cWidgetContainer__carousel-buttons").querySelectorAll("button").forEach(k=>w<=1?k.setAttribute("disabled",""):k.removeAttribute("disabled"))}function m(y){const w=s();if(!w)return;const _=y.target instanceof HTMLElement&&y.target.dataset.carouselArrow||"next",[k,A,T]=c();if(T.length<=1)return;const B=w.getBoundingClientRect(),v=_!=="prev"&&(k+1>=A||T[A-1].getBoundingClientRect().right<=B.right),S=(_==="prev"&&k===0?A-1:v?0:k+(_==="prev"?-1:1))%A;let C=(S===A-1?T[S].getBoundingClientRect().right:T[S].getBoundingClientRect().left)-B.left;l.current.dataset.actualOffset=`${S}`,gf.add(w),w.scrollTo({left:r.current.scrollLeft+C,behavior:"smooth"}),p()}return{indicatorRef:l,scroll:m}}const gf=new WeakSet,os=new WeakMap;function Av(e,t=!1){var r,l;if((r=e.classList)!=null&&r.contains("cWidgetContainer--carousel")&&e.querySelector(".ipsWidget__content--wrap--editing")){const o=e.querySelector(".ipsWidget__content--wrap--editing"),s=(l=window.ips.ui.editorv5.getObj(window.$(o.querySelector("[data-ipseditorv5]"))))==null?void 0:l.getInstance();t?o==null||o.dispatchEvent(new CustomEvent("ips:editorHidePanes",{detail:{instance:s},bubbles:!0,cancelable:!0})):o.dispatchEvent(new CustomEvent("ips:editorShowPanes",{detail:{instance:s},bubbles:!0,cancelable:!0}))}}function l0(e){let t=e.target;for(;t instanceof HTMLElement;){if(Av(t),os.has(t)){let r=!1;const l=e.stopPropagation;if(e.stopPropagation=(function(){r=!0,l.call(this)}).bind(e),os.get(t)(e),gf.delete(t),r)break;e.stopPropagation=l.bind(e)}t=t.parentElement}}"onscrollend"in HTMLElement.prototype?window.addEventListener("scrollend",l0,{capture:!0}):window.addEventListener("scroll",Qn.debounce(l0,200),{capture:!0});window.addEventListener("scroll",e=>{var r;let t=e.target;(r=t==null?void 0:t.classList)!=null&&r.contains("cWidgetContainer--carousel")&&Av(t,!0)},{capture:!0});function P3({widgets:e,scrollRef:t,wrapBehavior:r}){const{indicatorRef:l,scroll:o}=A3({widgets:e,scrollRef:t,wrapBehavior:r});return I.jsxs("div",{className:"cWidgetContainer__carousel-buttons","data-controller":"core.front.widgets.carouselControls",children:[I.jsx("div",{className:"cWidgetContainer__carousel-indicator",ref:l}),[["prev","left"],["next","right"]].map(([s,c])=>I.jsx("button",{onClick:o,"data-carousel-arrow":s,children:I.jsx("i",{className:`fa-solid fa-chevron-${c}`})},s))]})}function Pv({...e}){var P,z,J,H,ee,le,ae,_e,me,it,fe;const{onChange:t=({...j})=>window.Debug.warn({...j,message:"An area was changed but cannot propagate to its parent because its neglectful child protection services widget area parent didn't provide an onChange prop"}),areaId:r,depth:l=0}=e,{area:o}=X.useContext(Kr),s=X.useRef({});Object.assign(s.current,{children:e.children||[],widgets:e.widgets||[],otherOptions:e.otherOptions||{},wrapBehavior:e.wrapBehavior||"wrap",areaClasses:e.areaClasses});const c=X.useRef(null),f=(P=e.getParent)==null?void 0:P.call(e),[p,m]=X.useState(!1),[y,w]=X.useState(0);s.current.wrapBehavior in wr||(s.current.wrapBehavior=e.wrapBehavior="wrap");const _=X.useRef(null),k=X.useRef(null),A=R3(e,_),T=(J=(z=s.current.widgets)==null?void 0:z[0])==null?void 0:J.blockID,B=X.useMemo(()=>T?ji(T):null,[T]),v=["cWidgetContainer","cWidgetContainer_managing"];(H=e.getParent)!=null&&H.call(e)&&!((le=(ee=e.getParent()).getParent)!=null&&le.call(ee))&&v.push("cWidgetContainer--editable"),!s.current.widgets.length&&f&&v.push("cWidgetContainer--isGroup"),s.current.widgets.length||v.push(wr[s.current.wrapBehavior]),s.current.widgets.length&&(s.current.children=[],v.push("cWidgetContainer--isWidget"));let S=!1;f||(v.push("cWidgetContainer--main"),s.current.widgets.length||(S=!0)),p&&v.push("cWidgetContainer--menu_open"),s.current.areaClasses instanceof Array&&v.push(...s.current.areaClasses),s.current.otherOptions.showImages===!1&&s.current.widgets.length&&Sv.has(s.current.wrapBehavior)&&v.push("cWidgetContainer--noImages");const C={},O=s.current.widgets.length?"widget":"block";if((f&&!s.current.widgets.length||f&&((ae=B==null?void 0:B.dataset.widgetLayouts)==null?void 0:ae.split(",").length)>1)&&(s.current.widgets.length||Object.assign(C,{"--i-block--padding-block":s.current.otherOptions.paddingBlock||0,"--i-block--padding-inline":s.current.otherOptions.paddingInline||0})),!pd.has(s.current.wrapBehavior)||!s.current.widgets.length?C[`--i-${O}--gap`]=(typeof s.current.otherOptions.gapSize=="number"?s.current.otherOptions.gapSize:20)+"px":C[`--i-${O}--gap`]="0px",s.current.otherOptions.fullWidthItems&&s.current.wrapBehavior.match(/carousel$/)?C[`--i-${O}--size`]="100%":(_v.has(s.current.wrapBehavior)?s.current.wrapBehavior in vc&&(C[`--i-${O}--size`]=`${vc[s.current.wrapBehavior]}`):C[`--i-${O}--size`]=`${s.current.otherOptions.minSize||vc[s.current.wrapBehavior]||300}`,(_e=C[`--i-${O}--size`])!=null&&_e.match(/^\d+(?:\.\d*)?$|^\.\d+$/)&&(C[`--i-${O}--size`]+="px")),C[`--i-${O}--size`]==="100%"&&s.current.wrapBehavior.match(/carousel$/)&&(s.current.otherOptions.fullWidthItems=!0,e.otherOptions.fullWidthItems=!0),s.current.widgets.length){const j={paddingBlock:"padding-block",paddingInline:"padding-inline"};for(const q in j)C[`--i-widget--${j[q]}`]=s.current.otherOptions[q]||"0"}const F={"data-widget-layout":s.current.wrapBehavior};for(const j in s.current.otherOptions){const q=j.replaceAll(/([A-Z])/g,(G,Z)=>`-${Z}`.toLowerCase()).toLowerCase().trim().replaceAll(/[^0-9a-z_]+/g,"-").replaceAll(/^[^0-9a-z_]+|[^0-9a-z_]+$/g,"");F["data-widget-"+q]=((it=(me=s.current.otherOptions[j])==null?void 0:me.toString)==null?void 0:it.call(me).toLowerCase())||void 0}return S&&!((fe=s.current.children)!=null&&fe.length)&&window.ips.haveString("page_editor_cta")&&(F["data-pageeditor-empty-message"]=window.ips.getString("page_editor_cta")),I.jsxs("section",{"data-depth":l,"data-max-depth":fd,className:v.join(" "),ref:_,...F,"data-widget-area-id":r,"data-widget-area":o,"data-widgetarea":o,style:C,onMouseDown:j=>{var q,G,Z,ve,je,Ee;if(c.current&&w3(j.target,c.current)){j.stopPropagation();return}(Z=(G=(q=j.currentTarget)==null?void 0:q.closest)==null?void 0:G.call(q,".pageBuilderRoot"))!=null&&Z.querySelector("[data-ipsconfigform]")||(!p&&k.current&&(l<=1||e.parentIsEditing||(je=(ve=_.current)==null?void 0:ve.parentElement)!=null&&je.querySelector(".cWidgetContainer--menu_open.cWidgetContainer"))?(j.stopPropagation(),document.body.dispatchEvent(new is(k.current)),setTimeout(()=>m(!0),10)):p&&l!==1&&((Ee=e.setParentEditing)==null||Ee.call(e,!0)))},...A,children:[S?I.jsx(I.Fragment,{}):I.jsx(p3,{...e,areaRef:_,depth:l,editing:p,setEditing:m,setParentEditing:e.setParentEditing,isLeaf:s.current.widgets.length&&!s.current.children.length,ref:k,menuRef:c}),s.current.children.map((j,q)=>X.createElement(Pv,{...j,key:j.areaId,onChange:({newState:G,toRemove:Z=[],removedBlocks:ve=[],reloadWidget:je=!1})=>{var ft,dt;let Ee=s.current.children.findIndex(Tt=>Tt.areaId===j.areaId&&Tt.areaId!==void 0);if(Ee>=0&&Number.isInteger(Ee)){if(G.otherOptions&&Object.assign(s.current.children[Ee].otherOptions,G.otherOptions),Object.assign(s.current.children[Ee],G),je&&s.current.children[Ee].widgets.length){s.current.children[Ee].widgets[0].blank=!0;const Tt=(dt=(ft=document.querySelector(`[data-blockid="${s.current.children[Ee].widgets[0].blockID}"]`))==null?void 0:ft.getBoundingClientRect)==null?void 0:dt.call(ft);Tt instanceof DOMRect&&(s.current.children[Ee].widgets[0].contentRaw=`<div class="ipsLoading" data-role="widget_loading_placeholder" style="width:${Tt.width}px;height:${Tt.height}px;"></div>`)}t({newState:{children:s.current.children},toRemove:Z,removedBlocks:ve,reloadWidget:je})}},insertSibling:(G,Z=!1,ve=[])=>{let je=s.current.children.findIndex(Ee=>Ee.areaId===j.areaId&&Ee.areaId);je||(je=0),s.current.children.splice(Z?je:je+1,0,G),t({newState:{children:s.current.children},toRemove:ve})},setParentEditing:m,parentIsEditing:!!p,getParent:()=>e,isCurrent:q===y,setCurrent:()=>w(q),depth:l+1,moveUp:q===0?void 0:()=>{const[G,Z]=s.current.children.slice(q-1,q+1);Z.otherOptions=Z.otherOptions||{},Z.otherOptions.shouldBeEditing=!0,G.otherOptions.shouldBeEditing&&delete G.otherOptions.shouldBeEditing,s.current.children.splice(q-1,2,Z,G),t({newState:{children:s.current.children}})},moveDown:q===s.current.children.length-1?void 0:()=>{const[G,Z]=s.current.children.slice(q,q+2);G.otherOptions=G.otherOptions||{},G.otherOptions.shouldBeEditing=!0,Z.otherOptions.shouldBeEditing&&delete Z.otherOptions.shouldBeEditing,s.current.children.splice(q,2,Z,G),t({newState:{children:s.current.children}})}})),s.current.widgets.map((j,q)=>I.jsx(L3,{...j,areaId:r,remove:({shallow:G=!1})=>{var Z;s.current.widgets.splice(q,1),t({newState:{widgets:((Z=s.current)==null?void 0:Z.widgets)||[]},toRemove:G?[r]:[],removedBlocks:G?[]:[j.blockID]})},update:G=>{let Z;G.areaClasses instanceof Array&&(Z=G.areaClasses),delete G.areaClasses,Object.assign(s.current.widgets[q],G);const ve={newState:{widgets:s.current.widgets},toRemove:[]};Z&&(s.current.areaClasses=ve.newState.areaClasses=Z),t(ve)},parentOptions:s.current.otherOptions,getArea:()=>({...e,...s.current}),selectArea:()=>new Promise(G=>{document.body.dispatchEvent(new is(k.current)),setTimeout(()=>{m(!0),G()})})},j.blockID+q)),s.current.wrapBehavior==="carousel"?I.jsx(P3,{widgets:s.current.widgets,scrollRef:_,wrapBehavior:s.current.wrapBehavior}):I.jsx(I.Fragment,{})]})}function N3({tree:e,onChange:t,area:r,effect:l}){const[o,s]=X.useState(e),[c,f]=X.useState(()=>!!document.querySelector('[data-role="availableBlocks"] [data-blockid]')),{Provider:p}=Kr;return X.useEffect(()=>l==null?void 0:l()),X.useEffect(()=>{c||document.addEventListener("ipsWidgetManagerLoaded",()=>f(!0))},[c]),I.jsx(p,{value:{area:r},children:I.jsx(Pv,{...o,onChange:async({newState:m,toRemove:y=[],removedBlocks:w=[],reloadWidget:_=!0})=>{w.length&&await m3(w,r),Object.assign(o,m),m=JSON.parse(JSON.stringify({...ls(o,null,y)})),Iv(m,r).then(k=>{k&&(t==null||t({newState:m}))}),s(m)}})})}window.ips.createModule("ips.utils.pagebuilder",()=>{const e={};return{initializePageBuilderTree(t,r,l){var p,m;const o=ls(Cv(r)),s=((p=r.closest("[data-widget-area]"))==null?void 0:p.dataset.widgetArea)||((m=r.closest("[data-widgetarea]"))==null?void 0:m.dataset.widgetarea),c=yc.createRoot(t);let f;return new Promise(y=>{c.render(I.jsx(D2.StrictMode,{children:I.jsx(N3,{tree:o,area:s,onChange:l,effect:()=>{f||(f=!0,y({root:c,domRoot:t}))}})}))})},fillSemanticIcon(t,r){return S2(()=>Promise.resolve({}),["assets/main-51be5621.css"]).then(()=>window.Debug.log("Loaded SVG css file")),new Promise(l=>{e[r]?(t.innerHTML=e[r],l()):yv(t).render(I.jsx(kn,{icon:r,className:"ipsButton ipsButton--icon pagebuildericon",includeInlineStyle:!0,horizontal:!0,width:"88px",effect:()=>{e[r]=t.innerHTML,t.innerHTML=e[r],l()}}))})}}});