(()=>{var e={151:(e,t,n)=>{var i=n(690),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?o:a[e.$$typeof]||s}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(m){var s=h(n);s&&s!==m&&e(t,s,i)}var o=u(n);d&&(o=o.concat(d(n)));for(var a=l(t),f=l(n),g=0;g<o.length;++g){var v=o[g];if(!(r[v]||i&&i[v]||f&&f[v]||a&&a[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},829:(e,t,n)=>{var i=n(550);function s(){}function r(){}r.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,r,o){if(o!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:s};return n.PropTypes=n,n}},713:(e,t,n)=>{e.exports=n(829)()},550:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},230:(e,t,n)=>{var i=n(471),s=n(817);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)o.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},m={};function f(e,t,n,i,s,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new f(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){g[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,i){var s=g.hasOwnProperty(t)?g[t]:null;(null!==s?0!==s.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,s,i)&&(n=null),i||null===s?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=null===n?3!==s.type&&"":n:(t=s.attributeName,i=s.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(s=s.type)||4===s&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new f(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(v,y);g[t]=new f(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(v,y);g[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var q,R=Object.assign;function B(e){if(void 0===q)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||""}return"\n"+q+e}var F=!1;function M(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(t){if(t&&i&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),r=i.stack.split("\n"),o=s.length-1,a=r.length-1;1<=o&&0<=a&&s[o]!==r[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==r[a]){if(1!==o||1!==a)do{if(o--,0>--a||s[o]!==r[a]){var l="\n"+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function j(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1);case 11:return e=M(e.type.render,!1);case 1:return e=M(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case N:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case L:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var s=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(e){i=""+e,r.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=W(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){K(e,t);var n=U(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&i&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,s=0;s<e.length;s++){if(e[s].value===n)return e[s].selected=!0,void(i&&(e[s].defaultSelected=!0));null!==t||e[s].disabled||(t=e[s])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(r(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(r(92));if(te(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function re(e,t){var n=U(t.value),i=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},me=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),s=fe(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,s):e[n]=s}}Object.keys(he).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=R({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(r(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(r(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(r(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ee=null,xe=null;function Ne(e){if(e=bs(e)){if("function"!=typeof _e)throw Error(r(280));var t=e.stateNode;t&&(t=Ss(t),_e(e.stateNode,e.type,t))}}function Le(e){Ee?xe?xe.push(e):xe=[e]:Ee=e}function ke(){if(Ee){var e=Ee,t=xe;if(xe=Ee=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Ce(e,t){return e(t)}function Pe(){}var Te=!1;function Ae(e,t,n){if(Te)return e(t,n);Te=!0;try{return Ce(e,t,n)}finally{Te=!1,(null!==Ee||null!==xe)&&(Pe(),ke())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var i=Ss(n);if(null===i)return null;n=i[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":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var ze=!1;if(u)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ue){ze=!1}function De(e,t,n,i,s,r,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var qe=!1,Re=null,Be=!1,Fe=null,Me={onError:function(e){qe=!0,Re=e}};function je(e,t,n,i,s,r,o,a,l){qe=!1,Re=null,De.apply(Me,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(r(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var s=n.return;if(null===s)break;var o=s.alternate;if(null===o){if(null!==(i=s.return)){n=i;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Ue(s),e;if(o===i)return Ue(s),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=s,i=o;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,i=o;break}if(l===i){a=!0,i=s,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,i=s;break}if(l===i){a=!0,i=o,n=s;break}l=l.sibling}if(!a)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ze=s.unstable_scheduleCallback,Ge=s.unstable_cancelCallback,Qe=s.unstable_shouldYield,Ye=s.unstable_requestPaint,Ke=s.unstable_now,Xe=s.unstable_getCurrentPriorityLevel,Je=s.unstable_ImmediatePriority,et=s.unstable_UserBlockingPriority,tt=s.unstable_NormalPriority,nt=s.unstable_LowPriority,it=s.unstable_IdlePriority,st=null,rt=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,s=e.suspendedLanes,r=e.pingedLanes,o=268435455&n;if(0!==o){var a=o&~s;0!==a?i=dt(a):0!==(r&=o)&&(i=dt(r))}else 0!==(o=n&~s)?i=dt(o):0!==r&&(i=dt(r));if(0===i)return 0;if(0!==t&&t!==i&&!(t&s)&&((s=i&-i)>=(r=t&-t)||16===s&&4194240&r))return t;if(4&i&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)s=1<<(n=31-ot(t)),i|=e[n],t&=~s;return i}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-ot(n),s=1<<i;s&t|e[i]&t&&(e[i]|=t),n&=~s}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var St,_t,Et,xt,Nt,Lt=!1,kt=[],Ct=null,Pt=null,Tt=null,At=new Map,It=new Map,zt=[],Ot="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 Dt(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function qt(e,t,n,i,s,r){return null===e||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[s]},null!==t&&(null!==(t=bs(t))&&_t(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==s&&-1===t.indexOf(s)&&t.push(s),e)}function Rt(e){var t=ys(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Nt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bs(n))&&_t(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);we=i,n.target.dispatchEvent(i),we=null,t.shift()}return!0}function Ft(e,t,n){Bt(e)&&n.delete(t)}function Mt(){Lt=!1,null!==Ct&&Bt(Ct)&&(Ct=null),null!==Pt&&Bt(Pt)&&(Pt=null),null!==Tt&&Bt(Tt)&&(Tt=null),At.forEach(Ft),It.forEach(Ft)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,Lt||(Lt=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Mt)))}function Ht(e){function t(t){return jt(t,e)}if(0<kt.length){jt(kt[0],e);for(var n=1;n<kt.length;n++){var i=kt[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Ct&&jt(Ct,e),null!==Pt&&jt(Pt,e),null!==Tt&&jt(Tt,e),At.forEach(t),It.forEach(t),n=0;n<zt.length;n++)(i=zt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<zt.length&&null===(n=zt[0]).blockedOn;)Rt(n),null===n.blockedOn&&zt.shift()}var $t=w.ReactCurrentBatchConfig,Ut=!0;function Wt(e,t,n,i){var s=bt,r=$t.transition;$t.transition=null;try{bt=1,Zt(e,t,n,i)}finally{bt=s,$t.transition=r}}function Vt(e,t,n,i){var s=bt,r=$t.transition;$t.transition=null;try{bt=4,Zt(e,t,n,i)}finally{bt=s,$t.transition=r}}function Zt(e,t,n,i){if(Ut){var s=Qt(e,t,n,i);if(null===s)Ui(e,t,i,Gt,n),Dt(e,i);else if(function(e,t,n,i,s){switch(t){case"focusin":return Ct=qt(Ct,e,t,n,i,s),!0;case"dragenter":return Pt=qt(Pt,e,t,n,i,s),!0;case"mouseover":return Tt=qt(Tt,e,t,n,i,s),!0;case"pointerover":var r=s.pointerId;return At.set(r,qt(At.get(r)||null,e,t,n,i,s)),!0;case"gotpointercapture":return r=s.pointerId,It.set(r,qt(It.get(r)||null,e,t,n,i,s)),!0}return!1}(s,e,t,n,i))i.stopPropagation();else if(Dt(e,i),4&t&&-1<Ot.indexOf(e)){for(;null!==s;){var r=bs(s);if(null!==r&&St(r),null===(r=Qt(e,t,n,i))&&Ui(e,t,i,Gt,n),r===s)break;s=r}null!==s&&i.stopPropagation()}else Ui(e,t,i,null,n)}}var Gt=null;function Qt(e,t,n,i){if(Gt=null,null!==(e=ys(e=Se(i))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(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(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,i=n.length,s="value"in Kt?Kt.value:Kt.textContent,r=s.length;for(e=0;e<i&&n[e]===s[e];e++);var o=i-e;for(t=1;t<=o&&n[i-t]===s[r-t];t++);return Jt=s.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function sn(){return!1}function rn(e){function t(t,n,i,s,r){for(var o in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(s):s[o]);return this.isDefaultPrevented=(null!=s.defaultPrevented?s.defaultPrevented:!1===s.returnValue)?nn:sn,this.isPropagationStopped=sn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,an,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(cn),dn=R({},cn,{view:0,detail:0}),pn=rn(dn),hn=R({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:an}}),mn=rn(hn),fn=rn(R({},hn,{dataTransfer:0})),gn=rn(R({},dn,{relatedTarget:0})),vn=rn(R({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=R({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=rn(yn),wn=rn(R({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Nn(){return xn}var Ln=R({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=rn(Ln),Cn=rn(R({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=rn(R({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),Tn=rn(R({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=R({},hn,{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}),In=rn(An),zn=[9,13,27,32],On=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var qn=u&&"TextEvent"in window&&!Dn,Rn=u&&(!On||Dn&&8<Dn&&11>=Dn),Bn=String.fromCharCode(32),Fn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var $n={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Wn(e,t,n,i){Le(i),0<(t=Vi(t,"onChange")).length&&(n=new un("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Vn=null,Zn=null;function Gn(e){Bi(e,0)}function Qn(e){if(Z(ws(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),Jn="function"==typeof ei.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function ti(){Vn&&(Vn.detachEvent("onpropertychange",ni),Zn=Vn=null)}function ni(e){if("value"===e.propertyName&&Qn(Zn)){var t=[];Wn(t,Zn,e,Se(e)),Ae(Gn,t)}}function ii(e,t,n){"focusin"===e?(ti(),Zn=n,(Vn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function si(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Zn)}function ri(e,t){if("click"===e)return Qn(t)}function oi(e,t){if("input"===e||"change"===e)return Qn(t)}var ai="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function li(e,t){if(ai(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!d.call(t,s)||!ai(e[s],t[s]))return!1}return!0}function ci(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ui(e,t){var n,i=ci(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ci(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pi(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mi(e){var t=pi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&hi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var s=n.textContent.length,r=Math.min(i.start,s);i=void 0===i.end?r:Math.min(i.end,s),!e.extend&&r>i&&(s=i,i=r,r=s),s=ui(n,r);var o=ui(n,i);s&&o&&(1!==e.rangeCount||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(s.node,s.offset),e.removeAllRanges(),r>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fi=u&&"documentMode"in document&&11>=document.documentMode,gi=null,vi=null,yi=null,bi=!1;function wi(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bi||null==gi||gi!==G(i)||("selectionStart"in(i=gi)&&hi(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},yi&&li(yi,i)||(yi=i,0<(i=Vi(vi,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=gi)))}function Si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _i={animationend:Si("Animation","AnimationEnd"),animationiteration:Si("Animation","AnimationIteration"),animationstart:Si("Animation","AnimationStart"),transitionend:Si("Transition","TransitionEnd")},Ei={},xi={};function Ni(e){if(Ei[e])return Ei[e];if(!_i[e])return e;var t,n=_i[e];for(t in n)if(n.hasOwnProperty(t)&&t in xi)return Ei[e]=n[t];return e}u&&(xi=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);var Li=Ni("animationend"),ki=Ni("animationiteration"),Ci=Ni("animationstart"),Pi=Ni("transitionend"),Ti=new Map,Ai="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 Ii(e,t){Ti.set(e,t),l(t,[e])}for(var zi=0;zi<Ai.length;zi++){var Oi=Ai[zi];Ii(Oi.toLowerCase(),"on"+(Oi[0].toUpperCase()+Oi.slice(1)))}Ii(Li,"onAnimationEnd"),Ii(ki,"onAnimationIteration"),Ii(Ci,"onAnimationStart"),Ii("dblclick","onDoubleClick"),Ii("focusin","onFocus"),Ii("focusout","onBlur"),Ii(Pi,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),qi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Di));function Ri(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,s,o,a,l,c){if(je.apply(this,arguments),qe){if(!qe)throw Error(r(198));var u=Re;qe=!1,Re=null,Be||(Be=!0,Fe=u)}}(i,t,void 0,e),e.currentTarget=null}function Bi(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var i=e[n],s=i.event;i=i.listeners;e:{var r=void 0;if(t)for(var o=i.length-1;0<=o;o--){var a=i[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==r&&s.isPropagationStopped())break e;Ri(s,a,c),r=l}else for(o=0;o<i.length;o++){if(l=(a=i[o]).instance,c=a.currentTarget,a=a.listener,l!==r&&s.isPropagationStopped())break e;Ri(s,a,c),r=l}}}if(Be)throw e=Fe,Be=!1,Fe=null,e}function Fi(e,t){var n=t[fs];void 0===n&&(n=t[fs]=new Set);var i=e+"__bubble";n.has(i)||($i(t,e,2,!1),n.add(i))}function Mi(e,t,n){var i=0;t&&(i|=4),$i(n,e,i,t)}var ji="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[ji]){e[ji]=!0,o.forEach((function(t){"selectionchange"!==t&&(qi.has(t)||Mi(t,!1,e),Mi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ji]||(t[ji]=!0,Mi("selectionchange",!1,t))}}function $i(e,t,n,i){switch(Yt(t)){case 1:var s=Wt;break;case 4:s=Vt;break;default:s=Zt}n=s.bind(null,t,n,e),s=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(s=!0),i?void 0!==s?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):void 0!==s?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ui(e,t,n,i,s){var r=i;if(!(1&t||2&t||null===i))e:for(;;){if(null===i)return;var o=i.tag;if(3===o||4===o){var a=i.stateNode.containerInfo;if(a===s||8===a.nodeType&&a.parentNode===s)break;if(4===o)for(o=i.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===s||8===l.nodeType&&l.parentNode===s))return;o=o.return}for(;null!==a;){if(null===(o=ys(a)))return;if(5===(l=o.tag)||6===l){i=r=o;continue e}a=a.parentNode}}i=i.return}Ae((function(){var i=r,s=Se(n),o=[];e:{var a=Ti.get(e);if(void 0!==a){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=kn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Li:case ki:case Ci:l=vn;break;case Pi:l=Tn;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==a?a+"Capture":null:a;u=[];for(var h,m=i;null!==m;){var f=(h=m).stateNode;if(5===h.tag&&null!==f&&(h=f,null!==p&&(null!=(f=Ie(m,p))&&u.push(Wi(m,f,h)))),d)break;m=m.return}0<u.length&&(a=new l(a,c,null,n,s),o.push({event:a,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!ys(c)&&!c[ms])&&(l||a)&&(a=s.window===s?s:(a=s.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=i,null!==(c=(c=n.relatedTarget||n.toElement)?ys(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=i),l!==c)){if(u=mn,f="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Cn,f="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?a:ws(l),h=null==c?a:ws(c),(a=new u(f,m+"leave",l,n,s)).target=d,a.relatedTarget=h,f=null,ys(s)===i&&((u=new u(p,m+"enter",c,n,s)).target=h,u.relatedTarget=d,f=u),d=f,l&&c)e:{for(p=c,m=0,h=u=l;h;h=Zi(h))m++;for(h=0,f=p;f;f=Zi(f))h++;for(;0<m-h;)u=Zi(u),m--;for(;0<h-m;)p=Zi(p),h--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Zi(u),p=Zi(p)}u=null}else u=null;null!==l&&Gi(o,a,l,u,!1),null!==c&&null!==d&&Gi(o,d,c,u,!0)}if("select"===(l=(a=i?ws(i):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Yn;else if(Un(a))if(Kn)g=oi;else{g=si;var v=ii}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ri);switch(g&&(g=g(e,i))?Wn(o,g,n,s):(v&&v(e,a,i),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=i?ws(i):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gi=v,vi=i,yi=null);break;case"focusout":yi=vi=gi=null;break;case"mousedown":bi=!0;break;case"contextmenu":case"mouseup":case"dragend":bi=!1,wi(o,n,s);break;case"selectionchange":if(fi)break;case"keydown":case"keyup":wi(o,n,s)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Xt="value"in(Kt=s)?Kt.value:Kt.textContent,Hn=!0)),0<(v=Vi(i,b)).length&&(b=new wn(b,e,null,n,s),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=jn(n))&&(b.data=y))),(y=qn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!On&&Mn(e,t)?(e=en(),Jt=Xt=Kt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=Vi(i,"onBeforeInput")).length&&(s=new wn("onBeforeInput","beforeinput",null,n,s),o.push({event:s,listeners:i}),s.data=y))}Bi(o,t)}))}function Wi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vi(e,t){for(var n=t+"Capture",i=[];null!==e;){var s=e,r=s.stateNode;5===s.tag&&null!==r&&(s=r,null!=(r=Ie(e,n))&&i.unshift(Wi(e,r,s)),null!=(r=Ie(e,t))&&i.push(Wi(e,r,s))),e=e.return}return i}function Zi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gi(e,t,n,i,s){for(var r=t._reactName,o=[];null!==n&&n!==i;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===i)break;5===a.tag&&null!==c&&(a=c,s?null!=(l=Ie(n,r))&&o.unshift(Wi(n,l,a)):s||null!=(l=Ie(n,r))&&o.push(Wi(n,l,a))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Qi=/\r\n?/g,Yi=/\u0000|\uFFFD/g;function Ki(e){return("string"==typeof e?e:""+e).replace(Qi,"\n").replace(Yi,"")}function Xi(e,t,n){if(t=Ki(t),Ki(e)!==t&&n)throw Error(r(425))}function Ji(){}var es=null,ts=null;function ns(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var is="function"==typeof setTimeout?setTimeout:void 0,ss="function"==typeof clearTimeout?clearTimeout:void 0,rs="function"==typeof Promise?Promise:void 0,os="function"==typeof queueMicrotask?queueMicrotask:void 0!==rs?function(e){return rs.resolve(null).then(e).catch(as)}:is;function as(e){setTimeout((function(){throw e}))}function ls(e,t){var n=t,i=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&8===s.nodeType)if("/$"===(n=s.data)){if(0===i)return e.removeChild(s),void Ht(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=s}while(n);Ht(t)}function cs(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function us(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ds=Math.random().toString(36).slice(2),ps="__reactFiber$"+ds,hs="__reactProps$"+ds,ms="__reactContainer$"+ds,fs="__reactEvents$"+ds,gs="__reactListeners$"+ds,vs="__reactHandles$"+ds;function ys(e){var t=e[ps];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ms]||n[ps]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=us(e);null!==e;){if(n=e[ps])return n;e=us(e)}return t}n=(e=n).parentNode}return null}function bs(e){return!(e=e[ps]||e[ms])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ws(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function Ss(e){return e[hs]||null}var _s=[],Es=-1;function xs(e){return{current:e}}function Ns(e){0>Es||(e.current=_s[Es],_s[Es]=null,Es--)}function Ls(e,t){Es++,_s[Es]=e.current,e.current=t}var ks={},Cs=xs(ks),Ps=xs(!1),Ts=ks;function As(e,t){var n=e.type.contextTypes;if(!n)return ks;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var s,r={};for(s in n)r[s]=t[s];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Is(e){return null!=(e=e.childContextTypes)}function zs(){Ns(Ps),Ns(Cs)}function Os(e,t,n){if(Cs.current!==ks)throw Error(r(168));Ls(Cs,t),Ls(Ps,n)}function Ds(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var s in i=i.getChildContext())if(!(s in t))throw Error(r(108,$(e)||"Unknown",s));return R({},n,i)}function qs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ks,Ts=Cs.current,Ls(Cs,e),Ls(Ps,Ps.current),!0}function Rs(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=Ds(e,t,Ts),i.__reactInternalMemoizedMergedChildContext=e,Ns(Ps),Ns(Cs),Ls(Cs,e)):Ns(Ps),Ls(Ps,n)}var Bs=null,Fs=!1,Ms=!1;function js(e){null===Bs?Bs=[e]:Bs.push(e)}function Hs(){if(!Ms&&null!==Bs){Ms=!0;var e=0,t=bt;try{var n=Bs;for(bt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Bs=null,Fs=!1}catch(t){throw null!==Bs&&(Bs=Bs.slice(e+1)),Ze(Je,Hs),t}finally{bt=t,Ms=!1}}return null}var $s=[],Us=0,Ws=null,Vs=0,Zs=[],Gs=0,Qs=null,Ys=1,Ks="";function Xs(e,t){$s[Us++]=Vs,$s[Us++]=Ws,Ws=e,Vs=t}function Js(e,t,n){Zs[Gs++]=Ys,Zs[Gs++]=Ks,Zs[Gs++]=Qs,Qs=e;var i=Ys;e=Ks;var s=32-ot(i)-1;i&=~(1<<s),n+=1;var r=32-ot(t)+s;if(30<r){var o=s-s%5;r=(i&(1<<o)-1).toString(32),i>>=o,s-=o,Ys=1<<32-ot(t)+s|n<<s|i,Ks=r+e}else Ys=1<<r|n<<s|i,Ks=e}function er(e){null!==e.return&&(Xs(e,1),Js(e,1,0))}function tr(e){for(;e===Ws;)Ws=$s[--Us],$s[Us]=null,Vs=$s[--Us],$s[Us]=null;for(;e===Qs;)Qs=Zs[--Gs],Zs[Gs]=null,Ks=Zs[--Gs],Zs[Gs]=null,Ys=Zs[--Gs],Zs[Gs]=null}var nr=null,ir=null,sr=!1,rr=null;function or(e,t){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ar(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,nr=e,ir=cs(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,nr=e,ir=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qs?{id:Ys,overflow:Ks}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,nr=e,ir=null,!0);default:return!1}}function lr(e){return!(!(1&e.mode)||128&e.flags)}function cr(e){if(sr){var t=ir;if(t){var n=t;if(!ar(e,t)){if(lr(e))throw Error(r(418));t=cs(n.nextSibling);var i=nr;t&&ar(e,t)?or(i,n):(e.flags=-4097&e.flags|2,sr=!1,nr=e)}}else{if(lr(e))throw Error(r(418));e.flags=-4097&e.flags|2,sr=!1,nr=e}}}function ur(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;nr=e}function dr(e){if(e!==nr)return!1;if(!sr)return ur(e),sr=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ns(e.type,e.memoizedProps)),t&&(t=ir)){if(lr(e))throw pr(),Error(r(418));for(;t;)or(e,t),t=cs(t.nextSibling)}if(ur(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ir=cs(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ir=null}}else ir=nr?cs(e.stateNode.nextSibling):null;return!0}function pr(){for(var e=ir;e;)e=cs(e.nextSibling)}function hr(){ir=nr=null,sr=!1}function mr(e){null===rr?rr=[e]:rr.push(e)}var fr=w.ReactCurrentBatchConfig;function gr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var s=i,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=s.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function vr(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yr(e){return(0,e._init)(e._payload)}function br(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function s(e,t){return(e=Ic(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=qc(n,e.mode,i)).return=e,t):((t=s(t,n)).return=e,t)}function c(e,t,n,i){var r=n.type;return r===E?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===r||"object"==typeof r&&null!==r&&r.$$typeof===I&&yr(r)===t.type)?((i=s(t,n.props)).ref=gr(e,t,n),i.return=e,i):((i=zc(n.type,n.key,n.props,null,e.mode,i)).ref=gr(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Rc(n,e.mode,i)).return=e,t):((t=s(t,n.children||[])).return=e,t)}function d(e,t,n,i,r){return null===t||7!==t.tag?((t=Oc(n,e.mode,i,r)).return=e,t):((t=s(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=qc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=zc(t.type,t.key,t.props,null,e.mode,n)).ref=gr(e,null,t),n.return=e,n;case _:return(t=Rc(t,e.mode,n)).return=e,t;case I:return p(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Oc(t,e.mode,n,null)).return=e,t;vr(e,t)}return null}function h(e,t,n,i){var s=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==s?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===s?c(e,t,n,i):null;case _:return n.key===s?u(e,t,n,i):null;case I:return h(e,t,(s=n._init)(n._payload),i)}if(te(n)||D(n))return null!==s?null:d(e,t,n,i,null);vr(e,n)}return null}function m(e,t,n,i,s){if("string"==typeof i&&""!==i||"number"==typeof i)return l(t,e=e.get(n)||null,""+i,s);if("object"==typeof i&&null!==i){switch(i.$$typeof){case S:return c(t,e=e.get(null===i.key?n:i.key)||null,i,s);case _:return u(t,e=e.get(null===i.key?n:i.key)||null,i,s);case I:return m(e,t,n,(0,i._init)(i._payload),s)}if(te(i)||D(i))return d(t,e=e.get(n)||null,i,s,null);vr(t,i)}return null}function f(s,r,a,l){for(var c=null,u=null,d=r,f=r=0,g=null;null!==d&&f<a.length;f++){d.index>f?(g=d,d=null):g=d.sibling;var v=h(s,d,a[f],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(s,d),r=o(v,r,f),null===u?c=v:u.sibling=v,u=v,d=g}if(f===a.length)return n(s,d),sr&&Xs(s,f),c;if(null===d){for(;f<a.length;f++)null!==(d=p(s,a[f],l))&&(r=o(d,r,f),null===u?c=d:u.sibling=d,u=d);return sr&&Xs(s,f),c}for(d=i(s,d);f<a.length;f++)null!==(g=m(d,s,f,a[f],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?f:g.key),r=o(g,r,f),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(s,e)})),sr&&Xs(s,f),c}function g(s,a,l,c){var u=D(l);if("function"!=typeof u)throw Error(r(150));if(null==(l=u.call(l)))throw Error(r(151));for(var d=u=null,f=a,g=a=0,v=null,y=l.next();null!==f&&!y.done;g++,y=l.next()){f.index>g?(v=f,f=null):v=f.sibling;var b=h(s,f,y.value,c);if(null===b){null===f&&(f=v);break}e&&f&&null===b.alternate&&t(s,f),a=o(b,a,g),null===d?u=b:d.sibling=b,d=b,f=v}if(y.done)return n(s,f),sr&&Xs(s,g),u;if(null===f){for(;!y.done;g++,y=l.next())null!==(y=p(s,y.value,c))&&(a=o(y,a,g),null===d?u=y:d.sibling=y,d=y);return sr&&Xs(s,g),u}for(f=i(s,f);!y.done;g++,y=l.next())null!==(y=m(f,s,g,y.value,c))&&(e&&null!==y.alternate&&f.delete(null===y.key?g:y.key),a=o(y,a,g),null===d?u=y:d.sibling=y,d=y);return e&&f.forEach((function(e){return t(s,e)})),sr&&Xs(s,g),u}return function e(i,r,o,l){if("object"==typeof o&&null!==o&&o.type===E&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case S:e:{for(var c=o.key,u=r;null!==u;){if(u.key===c){if((c=o.type)===E){if(7===u.tag){n(i,u.sibling),(r=s(u,o.props.children)).return=i,i=r;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&yr(c)===u.type){n(i,u.sibling),(r=s(u,o.props)).ref=gr(i,u,o),r.return=i,i=r;break e}n(i,u);break}t(i,u),u=u.sibling}o.type===E?((r=Oc(o.props.children,i.mode,l,o.key)).return=i,i=r):((l=zc(o.type,o.key,o.props,null,i.mode,l)).ref=gr(i,r,o),l.return=i,i=l)}return a(i);case _:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(i,r.sibling),(r=s(r,o.children||[])).return=i,i=r;break e}n(i,r);break}t(i,r),r=r.sibling}(r=Rc(o,i.mode,l)).return=i,i=r}return a(i);case I:return e(i,r,(u=o._init)(o._payload),l)}if(te(o))return f(i,r,o,l);if(D(o))return g(i,r,o,l);vr(i,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==r&&6===r.tag?(n(i,r.sibling),(r=s(r,o)).return=i,i=r):(n(i,r),(r=qc(o,i.mode,l)).return=i,i=r),a(i)):n(i,r)}}var wr=br(!0),Sr=br(!1),_r=xs(null),Er=null,xr=null,Nr=null;function Lr(){Nr=xr=Er=null}function kr(e){var t=_r.current;Ns(_r),e._currentValue=t}function Cr(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Pr(e,t){Er=e,Nr=xr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ya=!0),e.firstContext=null)}function Tr(e){var t=e._currentValue;if(Nr!==e)if(e={context:e,memoizedValue:t,next:null},null===xr){if(null===Er)throw Error(r(308));xr=e,Er.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Ar=null;function Ir(e){null===Ar?Ar=[e]:Ar.push(e)}function zr(e,t,n,i){var s=t.interleaved;return null===s?(n.next=n,Ir(t)):(n.next=s.next,s.next=n),t.interleaved=n,Or(e,i)}function Or(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Dr=!1;function qr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rr(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 Br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fr(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,2&kl){var s=i.pending;return null===s?t.next=t:(t.next=s.next,s.next=t),i.pending=t,Or(e,n)}return null===(s=i.interleaved)?(t.next=t,Ir(i)):(t.next=s.next,s.next=t),i.interleaved=t,Or(e,n)}function Mr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}function jr(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var s=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===r?s=r=o:r=r.next=o,n=n.next}while(null!==n);null===r?s=r=t:r=r.next=t}else s=r=t;return n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hr(e,t,n,i){var s=e.updateQueue;Dr=!1;var r=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(null!==a){s.shared.pending=null;var l=a,c=l.next;l.next=null,null===o?r=c:o.next=c,o=l;var u=e.alternate;null!==u&&((a=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===a?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(null!==r){var d=s.baseState;for(o=0,u=c=l=null,a=r;;){var p=a.lane,h=a.eventTime;if((i&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,f=a;switch(p=t,h=n,f.tag){case 1:if("function"==typeof(m=f.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=f.payload)?m.call(h,d,p):m))break e;d=R({},d,p);break e;case 2:Dr=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(p=s.effects)?s.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,o|=p;if(null===(a=a.next)){if(null===(a=s.shared.pending))break;a=(p=a).next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}if(null===u&&(l=d),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,null!==(t=s.shared.interleaved)){s=t;do{o|=s.lane,s=s.next}while(s!==t)}else null===r&&(s.shared.lanes=0);Dl|=o,e.lanes=o,e.memoizedState=d}}function $r(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],s=i.callback;if(null!==s){if(i.callback=null,i=n,"function"!=typeof s)throw Error(r(191,s));s.call(i)}}}var Ur={},Wr=xs(Ur),Vr=xs(Ur),Zr=xs(Ur);function Gr(e){if(e===Ur)throw Error(r(174));return e}function Qr(e,t){switch(Ls(Zr,t),Ls(Vr,e),Ls(Wr,Ur),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ns(Wr),Ls(Wr,t)}function Yr(){Ns(Wr),Ns(Vr),Ns(Zr)}function Kr(e){Gr(Zr.current);var t=Gr(Wr.current),n=le(t,e.type);t!==n&&(Ls(Vr,e),Ls(Wr,n))}function Xr(e){Vr.current===e&&(Ns(Wr),Ns(Vr))}var Jr=xs(0);function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=[];function no(){for(var e=0;e<to.length;e++)to[e]._workInProgressVersionPrimary=null;to.length=0}var io=w.ReactCurrentDispatcher,so=w.ReactCurrentBatchConfig,ro=0,oo=null,ao=null,lo=null,co=!1,uo=!1,po=0,ho=0;function mo(){throw Error(r(321))}function fo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ai(e[n],t[n]))return!1;return!0}function go(e,t,n,i,s,o){if(ro=o,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,io.current=null===e||null===e.memoizedState?Jo:ea,e=n(i,s),uo){o=0;do{if(uo=!1,po=0,25<=o)throw Error(r(301));o+=1,lo=ao=null,t.updateQueue=null,io.current=ta,e=n(i,s)}while(uo)}if(io.current=Xo,t=null!==ao&&null!==ao.next,ro=0,lo=ao=oo=null,co=!1,t)throw Error(r(300));return e}function vo(){var e=0!==po;return po=0,e}function yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lo?oo.memoizedState=lo=e:lo=lo.next=e,lo}function bo(){if(null===ao){var e=oo.alternate;e=null!==e?e.memoizedState:null}else e=ao.next;var t=null===lo?oo.memoizedState:lo.next;if(null!==t)lo=t,ao=e;else{if(null===e)throw Error(r(310));e={memoizedState:(ao=e).memoizedState,baseState:ao.baseState,baseQueue:ao.baseQueue,queue:ao.queue,next:null},null===lo?oo.memoizedState=lo=e:lo=lo.next=e}return lo}function wo(e,t){return"function"==typeof t?t(e):t}function So(e){var t=bo(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=ao,s=i.baseQueue,o=n.pending;if(null!==o){if(null!==s){var a=s.next;s.next=o.next,o.next=a}i.baseQueue=s=o,n.pending=null}if(null!==s){o=s.next,i=i.baseState;var l=a=null,c=null,u=o;do{var d=u.lane;if((ro&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,a=i):c=c.next=p,oo.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==o);null===c?a=i:c.next=l,ai(i,t.memoizedState)||(ya=!0),t.memoizedState=i,t.baseState=a,t.baseQueue=c,n.lastRenderedState=i}if(null!==(e=n.interleaved)){s=e;do{o=s.lane,oo.lanes|=o,Dl|=o,s=s.next}while(s!==e)}else null===s&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _o(e){var t=bo(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,s=n.pending,o=t.memoizedState;if(null!==s){n.pending=null;var a=s=s.next;do{o=e(o,a.action),a=a.next}while(a!==s);ai(o,t.memoizedState)||(ya=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Eo(){}function xo(e,t){var n=oo,i=bo(),s=t(),o=!ai(i.memoizedState,s);if(o&&(i.memoizedState=s,ya=!0),i=i.queue,qo(ko.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||null!==lo&&1&lo.memoizedState.tag){if(n.flags|=2048,Ao(9,Lo.bind(null,n,i,s,t),void 0,null),null===Cl)throw Error(r(349));30&ro||No(n,t,s)}return s}function No(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Lo(e,t,n,i){t.value=n,t.getSnapshot=i,Co(t)&&Po(e)}function ko(e,t,n){return n((function(){Co(t)&&Po(e)}))}function Co(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ai(e,n)}catch(e){return!0}}function Po(e){var t=Or(e,1);null!==t&&tc(t,e,1,-1)}function To(e){var t=yo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:e},t.queue=e,e=e.dispatch=Go.bind(null,oo,e),[t.memoizedState,e]}function Ao(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Io(){return bo().memoizedState}function zo(e,t,n,i){var s=yo();oo.flags|=e,s.memoizedState=Ao(1|t,n,void 0,void 0===i?null:i)}function Oo(e,t,n,i){var s=bo();i=void 0===i?null:i;var r=void 0;if(null!==ao){var o=ao.memoizedState;if(r=o.destroy,null!==i&&fo(i,o.deps))return void(s.memoizedState=Ao(t,n,r,i))}oo.flags|=e,s.memoizedState=Ao(1|t,n,r,i)}function Do(e,t){return zo(8390656,8,e,t)}function qo(e,t){return Oo(2048,8,e,t)}function Ro(e,t){return Oo(4,2,e,t)}function Bo(e,t){return Oo(4,4,e,t)}function Fo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mo(e,t,n){return n=null!=n?n.concat([e]):null,Oo(4,4,Fo.bind(null,t,e),n)}function jo(){}function Ho(e,t){var n=bo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&fo(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function $o(e,t){var n=bo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&fo(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Uo(e,t,n){return 21&ro?(ai(n,t)||(n=ft(),oo.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ya=!0),e.memoizedState=n)}function Wo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var i=so.transition;so.transition={};try{e(!1),t()}finally{bt=n,so.transition=i}}function Vo(){return bo().memoizedState}function Zo(e,t,n){var i=ec(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Qo(e))Yo(t,n);else if(null!==(n=zr(e,t,n,i))){tc(n,e,i,Jl()),Ko(n,t,i)}}function Go(e,t,n){var i=ec(e),s={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qo(e))Yo(t,s);else{var r=e.alternate;if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var o=t.lastRenderedState,a=r(o,n);if(s.hasEagerState=!0,s.eagerState=a,ai(a,o)){var l=t.interleaved;return null===l?(s.next=s,Ir(t)):(s.next=l.next,l.next=s),void(t.interleaved=s)}}catch(e){}null!==(n=zr(e,t,s,i))&&(tc(n,e,i,s=Jl()),Ko(n,t,i))}}function Qo(e){var t=e.alternate;return e===oo||null!==t&&t===oo}function Yo(e,t){uo=co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ko(e,t,n){if(4194240&n){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xo={readContext:Tr,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useInsertionEffect:mo,useLayoutEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useMutableSource:mo,useSyncExternalStore:mo,useId:mo,unstable_isNewReconciler:!1},Jo={readContext:Tr,useCallback:function(e,t){return yo().memoizedState=[e,void 0===t?null:t],e},useContext:Tr,useEffect:Do,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zo(4194308,4,Fo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=yo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=yo();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Zo.bind(null,oo,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},yo().memoizedState=e},useState:To,useDebugValue:jo,useDeferredValue:function(e){return yo().memoizedState=e},useTransition:function(){var e=To(!1),t=e[0];return e=Wo.bind(null,e[1]),yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=oo,s=yo();if(sr){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===Cl)throw Error(r(349));30&ro||No(i,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Do(ko.bind(null,i,o,e),[e]),i.flags|=2048,Ao(9,Lo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=yo(),t=Cl.identifierPrefix;if(sr){var n=Ks;t=":"+t+"R"+(n=(Ys&~(1<<32-ot(Ys)-1)).toString(32)+n),0<(n=po++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ho++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ea={readContext:Tr,useCallback:Ho,useContext:Tr,useEffect:qo,useImperativeHandle:Mo,useInsertionEffect:Ro,useLayoutEffect:Bo,useMemo:$o,useReducer:So,useRef:Io,useState:function(){return So(wo)},useDebugValue:jo,useDeferredValue:function(e){return Uo(bo(),ao.memoizedState,e)},useTransition:function(){return[So(wo)[0],bo().memoizedState]},useMutableSource:Eo,useSyncExternalStore:xo,useId:Vo,unstable_isNewReconciler:!1},ta={readContext:Tr,useCallback:Ho,useContext:Tr,useEffect:qo,useImperativeHandle:Mo,useInsertionEffect:Ro,useLayoutEffect:Bo,useMemo:$o,useReducer:_o,useRef:Io,useState:function(){return _o(wo)},useDebugValue:jo,useDeferredValue:function(e){var t=bo();return null===ao?t.memoizedState=e:Uo(t,ao.memoizedState,e)},useTransition:function(){return[_o(wo)[0],bo().memoizedState]},useMutableSource:Eo,useSyncExternalStore:xo,useId:Vo,unstable_isNewReconciler:!1};function na(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ia(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var sa={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Jl(),s=ec(e),r=Br(i,s);r.payload=t,null!=n&&(r.callback=n),null!==(t=Fr(e,r,s))&&(tc(t,e,s,i),Mr(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Jl(),s=ec(e),r=Br(i,s);r.tag=1,r.payload=t,null!=n&&(r.callback=n),null!==(t=Fr(e,r,s))&&(tc(t,e,s,i),Mr(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jl(),i=ec(e),s=Br(n,i);s.tag=2,null!=t&&(s.callback=t),null!==(t=Fr(e,s,i))&&(tc(t,e,i,n),Mr(t,e,i))}};function ra(e,t,n,i,s,r,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,r,o):!t.prototype||!t.prototype.isPureReactComponent||(!li(n,i)||!li(s,r))}function oa(e,t,n){var i=!1,s=ks,r=t.contextType;return"object"==typeof r&&null!==r?r=Tr(r):(s=Is(t)?Ts:Cs.current,r=(i=null!=(i=t.contextTypes))?As(e,s):ks),t=new t(n,r),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=sa,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=r),t}function aa(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&sa.enqueueReplaceState(t,t.state,null)}function la(e,t,n,i){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},qr(e);var r=t.contextType;"object"==typeof r&&null!==r?s.context=Tr(r):(r=Is(t)?Ts:Cs.current,s.context=As(e,r)),s.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(ia(e,t,r,n),s.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(t=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),t!==s.state&&sa.enqueueReplaceState(s,s.state,null),Hr(e,n,s,i),s.state=e.memoizedState),"function"==typeof s.componentDidMount&&(e.flags|=4194308)}function ca(e,t){try{var n="",i=t;do{n+=j(i),i=i.return}while(i);var s=n}catch(e){s="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:s,digest:null}}function ua(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var da="function"==typeof WeakMap?WeakMap:Map;function pa(e,t,n){(n=Br(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){$l||($l=!0,Ul=i)},n}function ha(e,t,n){(n=Br(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var s=t.value;n.payload=function(){return i(s)},n.callback=function(){}}var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new da;var s=new Set;i.set(t,s)}else void 0===(s=i.get(t))&&(s=new Set,i.set(t,s));s.has(n)||(s.add(n),e=xc.bind(null,e,t,n),t.then(e,e))}function fa(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ga(e,t,n,i,s){return 1&e.mode?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Br(-1,1)).tag=2,Fr(n,t,1))),n.lanes|=1),e)}var va=w.ReactCurrentOwner,ya=!1;function ba(e,t,n,i){t.child=null===e?Sr(t,null,n,i):wr(t,e.child,n,i)}function wa(e,t,n,i,s){n=n.render;var r=t.ref;return Pr(t,s),i=go(e,t,n,i,r,s),n=vo(),null===e||ya?(sr&&n&&er(t),t.flags|=1,ba(e,t,i,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,$a(e,t,s))}function Sa(e,t,n,i,s){if(null===e){var r=n.type;return"function"!=typeof r||Ac(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zc(n.type,null,i,t,t.mode,s)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=r,_a(e,t,r,i,s))}if(r=e.child,!(e.lanes&s)){var o=r.memoizedProps;if((n=null!==(n=n.compare)?n:li)(o,i)&&e.ref===t.ref)return $a(e,t,s)}return t.flags|=1,(e=Ic(r,i)).ref=t.ref,e.return=t,t.child=e}function _a(e,t,n,i,s){if(null!==e){var r=e.memoizedProps;if(li(r,i)&&e.ref===t.ref){if(ya=!1,t.pendingProps=i=r,!(e.lanes&s))return t.lanes=e.lanes,$a(e,t,s);131072&e.flags&&(ya=!0)}}return Na(e,t,n,i,s)}function Ea(e,t,n){var i=t.pendingProps,s=i.children,r=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ls(Il,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==r?r.baseLanes:n,Ls(Il,Al),Al|=i}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ls(Il,Al),Al|=n;else null!==r?(i=r.baseLanes|n,t.memoizedState=null):i=n,Ls(Il,Al),Al|=i;return ba(e,t,s,n),t.child}function xa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Na(e,t,n,i,s){var r=Is(n)?Ts:Cs.current;return r=As(t,r),Pr(t,s),n=go(e,t,n,i,r,s),i=vo(),null===e||ya?(sr&&i&&er(t),t.flags|=1,ba(e,t,n,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,$a(e,t,s))}function La(e,t,n,i,s){if(Is(n)){var r=!0;qs(t)}else r=!1;if(Pr(t,s),null===t.stateNode)Ha(e,t),oa(t,n,i),la(t,n,i,s),i=!0;else if(null===e){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;"object"==typeof c&&null!==c?c=Tr(c):c=As(t,c=Is(n)?Ts:Cs.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==i||l!==c)&&aa(t,o,i,c),Dr=!1;var p=t.memoizedState;o.state=p,Hr(t,i,o,s),l=t.memoizedState,a!==i||p!==l||Ps.current||Dr?("function"==typeof u&&(ia(t,n,u,i),l=t.memoizedState),(a=Dr||ra(t,n,a,i,p,l,c))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),o.props=i,o.state=l,o.context=c,i=a):("function"==typeof o.componentDidMount&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,Rr(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:na(t.type,a),o.props=c,d=t.pendingProps,p=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=Tr(l):l=As(t,l=Is(n)?Ts:Cs.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||p!==l)&&aa(t,o,i,l),Dr=!1,p=t.memoizedState,o.state=p,Hr(t,i,o,s);var m=t.memoizedState;a!==d||p!==m||Ps.current||Dr?("function"==typeof h&&(ia(t,n,h,i),m=t.memoizedState),(c=Dr||ra(t,n,c,i,p,m,l)||!1)?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(i,m,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(i,m,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=l,i=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),i=!1)}return ka(e,t,n,i,r,s)}function ka(e,t,n,i,s,r){xa(e,t);var o=!!(128&t.flags);if(!i&&!o)return s&&Rs(t,n,!1),$a(e,t,r);i=t.stateNode,va.current=t;var a=o&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&o?(t.child=wr(t,e.child,null,r),t.child=wr(t,null,a,r)):ba(e,t,a,r),t.memoizedState=i.state,s&&Rs(t,n,!0),t.child}function Ca(e){var t=e.stateNode;t.pendingContext?Os(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Os(0,t.context,!1),Qr(e,t.containerInfo)}function Pa(e,t,n,i,s){return hr(),mr(s),t.flags|=256,ba(e,t,n,i),t.child}var Ta,Aa,Ia,za,Oa={dehydrated:null,treeContext:null,retryLane:0};function Da(e){return{baseLanes:e,cachePool:null,transitions:null}}function qa(e,t,n){var i,s=t.pendingProps,o=Jr.current,a=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&o)),i?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ls(Jr,1&o),null===e)return cr(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=s.children,e=s.fallback,a?(s=t.mode,a=t.child,l={mode:"hidden",children:l},1&s||null===a?a=Dc(l,s,0,null):(a.childLanes=0,a.pendingProps=l),e=Oc(e,s,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Da(n),t.memoizedState=Oa,e):Ra(t,l));if(null!==(o=e.memoizedState)&&null!==(i=o.dehydrated))return function(e,t,n,i,s,o,a){if(n)return 256&t.flags?(t.flags&=-257,Ba(e,t,a,i=ua(Error(r(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=i.fallback,s=t.mode,i=Dc({mode:"visible",children:i.children},s,0,null),(o=Oc(o,s,a,null)).flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,1&t.mode&&wr(t,e.child,null,a),t.child.memoizedState=Da(a),t.memoizedState=Oa,o);if(!(1&t.mode))return Ba(e,t,a,null);if("$!"===s.data){if(i=s.nextSibling&&s.nextSibling.dataset)var l=i.dgst;return i=l,Ba(e,t,a,i=ua(o=Error(r(419)),i,void 0))}if(l=!!(a&e.childLanes),ya||l){if(null!==(i=Cl)){switch(a&-a){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(s=s&(i.suspendedLanes|a)?0:s)&&s!==o.retryLane&&(o.retryLane=s,Or(e,s),tc(i,e,s,-1))}return mc(),Ba(e,t,a,i=ua(Error(r(421))))}return"$?"===s.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,ir=cs(s.nextSibling),nr=t,sr=!0,rr=null,null!==e&&(Zs[Gs++]=Ys,Zs[Gs++]=Ks,Zs[Gs++]=Qs,Ys=e.id,Ks=e.overflow,Qs=t),t=Ra(t,i.children),t.flags|=4096,t)}(e,t,l,s,i,o,n);if(a){a=s.fallback,l=t.mode,i=(o=e.child).sibling;var c={mode:"hidden",children:s.children};return 1&l||t.child===o?(s=Ic(o,c)).subtreeFlags=14680064&o.subtreeFlags:((s=t.child).childLanes=0,s.pendingProps=c,t.deletions=null),null!==i?a=Ic(i,a):(a=Oc(a,l,n,null)).flags|=2,a.return=t,s.return=t,s.sibling=a,t.child=s,s=a,a=t.child,l=null===(l=e.child.memoizedState)?Da(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Oa,s}return e=(a=e.child).sibling,s=Ic(a,{mode:"visible",children:s.children}),!(1&t.mode)&&(s.lanes=n),s.return=t,s.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Ra(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ba(e,t,n,i){return null!==i&&mr(i),wr(t,e.child,null,n),(e=Ra(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),Cr(e.return,t,n)}function Ma(e,t,n,i,s){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=n,r.tailMode=s)}function ja(e,t,n){var i=t.pendingProps,s=i.revealOrder,r=i.tail;if(ba(e,t,i.children,n),2&(i=Jr.current))i=1&i|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,n,t);else if(19===e.tag)Fa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Ls(Jr,i),1&t.mode)switch(s){case"forwards":for(n=t.child,s=null;null!==n;)null!==(e=n.alternate)&&null===eo(e)&&(s=n),n=n.sibling;null===(n=s)?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ma(t,!1,s,n,r);break;case"backwards":for(n=null,s=t.child,t.child=null;null!==s;){if(null!==(e=s.alternate)&&null===eo(e)){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ma(t,!0,n,null,r);break;case"together":Ma(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ha(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $a(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Ic(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ic(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ua(e,t){if(!sr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Wa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var s=e.child;null!==s;)n|=s.lanes|s.childLanes,i|=14680064&s.subtreeFlags,i|=14680064&s.flags,s.return=e,s=s.sibling;else for(s=e.child;null!==s;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Va(e,t,n){var i=t.pendingProps;switch(tr(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wa(t),null;case 1:case 17:return Is(t.type)&&zs(),Wa(t),null;case 3:return i=t.stateNode,Yr(),Ns(Ps),Ns(Cs),no(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(dr(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==rr&&(rc(rr),rr=null))),Aa(e,t),Wa(t),null;case 5:Xr(t);var s=Gr(Zr.current);if(n=t.type,null!==e&&null!=t.stateNode)Ia(e,t,n,i,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(r(166));return Wa(t),null}if(e=Gr(Wr.current),dr(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[ps]=t,i[hs]=o,e=!!(1&t.mode),n){case"dialog":Fi("cancel",i),Fi("close",i);break;case"iframe":case"object":case"embed":Fi("load",i);break;case"video":case"audio":for(s=0;s<Di.length;s++)Fi(Di[s],i);break;case"source":Fi("error",i);break;case"img":case"image":case"link":Fi("error",i),Fi("load",i);break;case"details":Fi("toggle",i);break;case"input":Y(i,o),Fi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Fi("invalid",i);break;case"textarea":se(i,o),Fi("invalid",i)}for(var l in ye(n,o),s=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"==typeof c?i.textContent!==c&&(!0!==o.suppressHydrationWarning&&Xi(i.textContent,c,e),s=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Xi(i.textContent,c,e),s=["children",""+c]):a.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fi("scroll",i)}switch(n){case"input":V(i),J(i,o,!0);break;case"textarea":V(i),oe(i);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(i.onclick=Ji)}i=s,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===s.nodeType?s:s.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[ps]=t,e[hs]=i,Ta(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,i),n){case"dialog":Fi("cancel",e),Fi("close",e),s=i;break;case"iframe":case"object":case"embed":Fi("load",e),s=i;break;case"video":case"audio":for(s=0;s<Di.length;s++)Fi(Di[s],e);s=i;break;case"source":Fi("error",e),s=i;break;case"img":case"image":case"link":Fi("error",e),Fi("load",e),s=i;break;case"details":Fi("toggle",e),s=i;break;case"input":Y(e,i),s=Q(e,i),Fi("invalid",e);break;case"option":default:s=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},s=R({},i,{value:void 0}),Fi("invalid",e);break;case"textarea":se(e,i),s=ie(e,i),Fi("invalid",e)}for(o in ye(n,s),c=s)if(c.hasOwnProperty(o)){var u=c[o];"style"===o?ge(e,u):"dangerouslySetInnerHTML"===o?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===o?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(a.hasOwnProperty(o)?null!=u&&"onScroll"===o&&Fi("scroll",e):null!=u&&b(e,o,u,l))}switch(n){case"input":V(e),J(e,i,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+U(i.value));break;case"select":e.multiple=!!i.multiple,null!=(o=i.value)?ne(e,!!i.multiple,o,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Wa(t),null;case 6:if(e&&null!=t.stateNode)za(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(r(166));if(n=Gr(Zr.current),Gr(Wr.current),dr(t)){if(i=t.stateNode,n=t.memoizedProps,i[ps]=t,(o=i.nodeValue!==n)&&null!==(e=nr))switch(e.tag){case 3:Xi(i.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xi(i.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[ps]=t,t.stateNode=i}return Wa(t),null;case 13:if(Ns(Jr),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(sr&&null!==ir&&1&t.mode&&!(128&t.flags))pr(),hr(),t.flags|=98560,o=!1;else if(o=dr(t),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(r(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(r(317));o[ps]=t}else hr(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wa(t),o=!1}else null!==rr&&(rc(rr),rr=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Jr.current?0===zl&&(zl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Wa(t),null);case 4:return Yr(),Aa(e,t),null===e&&Hi(t.stateNode.containerInfo),Wa(t),null;case 10:return kr(t.type._context),Wa(t),null;case 19:if(Ns(Jr),null===(o=t.memoizedState))return Wa(t),null;if(i=!!(128&t.flags),null===(l=o.rendering))if(i)Ua(o,!1);else{if(0!==zl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=eo(e))){for(t.flags|=128,Ua(o,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ls(Jr,1&Jr.current|2),t.child}e=e.sibling}null!==o.tail&&Ke()>jl&&(t.flags|=128,i=!0,Ua(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=eo(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ua(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!sr)return Wa(t),null}else 2*Ke()-o.renderingStartTime>jl&&1073741824!==n&&(t.flags|=128,i=!0,Ua(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=Jr.current,Ls(Jr,i?1&n|2:1&n),t):(Wa(t),null);case 22:case 23:return uc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Al)&&(Wa(t),6&t.subtreeFlags&&(t.flags|=8192)):Wa(t),null;case 24:case 25:return null}throw Error(r(156,t.tag))}function Za(e,t){switch(tr(t),t.tag){case 1:return Is(t.type)&&zs(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yr(),Ns(Ps),Ns(Cs),no(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xr(t),null;case 13:if(Ns(Jr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));hr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ns(Jr),null;case 4:return Yr(),null;case 10:return kr(t.type._context),null;case 22:case 23:return uc(),null;default:return null}}Ta=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Aa=function(){},Ia=function(e,t,n,i){var s=e.memoizedProps;if(s!==i){e=t.stateNode,Gr(Wr.current);var r,o=null;switch(n){case"input":s=Q(e,s),i=Q(e,i),o=[];break;case"select":s=R({},s,{value:void 0}),i=R({},i,{value:void 0}),o=[];break;case"textarea":s=ie(e,s),i=ie(e,i),o=[];break;default:"function"!=typeof s.onClick&&"function"==typeof i.onClick&&(e.onclick=Ji)}for(u in ye(n,i),n=null,s)if(!i.hasOwnProperty(u)&&s.hasOwnProperty(u)&&null!=s[u])if("style"===u){var l=s[u];for(r in l)l.hasOwnProperty(r)&&(n||(n={}),n[r]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var c=i[u];if(l=null!=s?s[u]:void 0,i.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||(n||(n={}),n[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&(n||(n={}),n[r]=c[r])}else n||(o||(o=[]),o.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(o=o||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fi("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},za=function(e,t,n,i){n!==i&&(t.flags|=4)};var Ga=!1,Qa=!1,Ya="function"==typeof WeakSet?WeakSet:Set,Ka=null;function Xa(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ec(e,t,n)}else n.current=null}function Ja(e,t,n){try{n()}catch(n){Ec(e,t,n)}}var el=!1;function tl(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var s=i=i.next;do{if((s.tag&e)===e){var r=s.destroy;s.destroy=void 0,void 0!==r&&Ja(t,n,r)}s=s.next}while(s!==i)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ps],delete t[hs],delete t[fs],delete t[gs],delete t[vs])),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 rl(e){return 5===e.tag||3===e.tag||4===e.tag}function ol(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function al(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ji));else if(4!==i&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}function ll(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var cl=null,ul=!1;function dl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(st,n)}catch(e){}switch(n.tag){case 5:Qa||Xa(n,t);case 6:var i=cl,s=ul;cl=null,dl(e,t,n),ul=s,null!==(cl=i)&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?ls(e.parentNode,n):1===e.nodeType&&ls(e,n),Ht(e)):ls(cl,n.stateNode));break;case 4:i=cl,s=ul,cl=n.stateNode.containerInfo,ul=!0,dl(e,t,n),cl=i,ul=s;break;case 0:case 11:case 14:case 15:if(!Qa&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){s=i=i.next;do{var r=s,o=r.destroy;r=r.tag,void 0!==o&&(2&r||4&r)&&Ja(n,t,o),s=s.next}while(s!==i)}dl(e,t,n);break;case 1:if(!Qa&&(Xa(n,t),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(e){Ec(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Qa=(i=Qa)||null!==n.memoizedState,dl(e,t,n),Qa=i):dl(e,t,n);break;default:dl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ya),t.forEach((function(t){var i=kc.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var s=n[i];try{var o=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,ul=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===cl)throw Error(r(160));pl(o,a,s),cl=null,ul=!1;var c=s.alternate;null!==c&&(c.return=null),s.return=null}catch(e){Ec(s,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)fl(t,e),t=t.sibling}function fl(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&i){try{tl(3,e,e.return),nl(3,e)}catch(t){Ec(e,e.return,t)}try{tl(5,e,e.return)}catch(t){Ec(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&i&&null!==n&&Xa(n,n.return);break;case 5:if(ml(t,e),gl(e),512&i&&null!==n&&Xa(n,n.return),32&e.flags){var s=e.stateNode;try{pe(s,"")}catch(t){Ec(e,e.return,t)}}if(4&i&&null!=(s=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===o.type&&null!=o.name&&K(s,o),be(l,a);var u=be(l,o);for(a=0;a<c.length;a+=2){var d=c[a],p=c[a+1];"style"===d?ge(s,p):"dangerouslySetInnerHTML"===d?de(s,p):"children"===d?pe(s,p):b(s,d,p,u)}switch(l){case"input":X(s,o);break;case"textarea":re(s,o);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var m=o.value;null!=m?ne(s,!!o.multiple,m,!1):h!==!!o.multiple&&(null!=o.defaultValue?ne(s,!!o.multiple,o.defaultValue,!0):ne(s,!!o.multiple,o.multiple?[]:"",!1))}s[hs]=o}catch(t){Ec(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&i){if(null===e.stateNode)throw Error(r(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(t){Ec(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Ec(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(s=e.child).flags&&(o=null!==s.memoizedState,s.stateNode.isHidden=o,!o||null!==s.alternate&&null!==s.alternate.memoizedState||(Ml=Ke())),4&i&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qa=(u=Qa)||d,ml(t,e),Qa=u):ml(t,e),gl(e),8192&i){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Ka=e,d=e.child;null!==d;){for(p=Ka=d;null!==Ka;){switch(m=(h=Ka).child,h.tag){case 0:case 11:case 14:case 15:tl(4,h,h.return);break;case 1:Xa(h,h.return);var f=h.stateNode;if("function"==typeof f.componentWillUnmount){i=h,n=h.return;try{t=i,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(e){Ec(i,n,e)}}break;case 5:Xa(h,h.return);break;case 22:if(null!==h.memoizedState){wl(p);continue}}null!==m?(m.return=h,Ka=m):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{s=p.stateNode,u?"function"==typeof(o=s.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=p.stateNode,a=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=fe("display",a))}catch(t){Ec(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Ec(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),gl(e),4&i&&hl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(rl(n)){var i=n;break e}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var s=i.stateNode;32&i.flags&&(pe(s,""),i.flags&=-33),ll(e,ol(e),s);break;case 3:case 4:var o=i.stateNode.containerInfo;al(e,ol(e),o);break;default:throw Error(r(161))}}catch(t){Ec(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Ka=e,yl(e,t,n)}function yl(e,t,n){for(var i=!!(1&e.mode);null!==Ka;){var s=Ka,r=s.child;if(22===s.tag&&i){var o=null!==s.memoizedState||Ga;if(!o){var a=s.alternate,l=null!==a&&null!==a.memoizedState||Qa;a=Ga;var c=Qa;if(Ga=o,(Qa=l)&&!c)for(Ka=s;null!==Ka;)l=(o=Ka).child,22===o.tag&&null!==o.memoizedState?Sl(s):null!==l?(l.return=o,Ka=l):Sl(s);for(;null!==r;)Ka=r,yl(r,t,n),r=r.sibling;Ka=s,Ga=a,Qa=c}bl(e)}else 8772&s.subtreeFlags&&null!==r?(r.return=s,Ka=r):bl(e)}}function bl(e){for(;null!==Ka;){var t=Ka;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qa||nl(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Qa)if(null===n)i.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:na(t.type,n.memoizedProps);i.componentDidUpdate(s,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&$r(t,o,i);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}$r(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(r(163))}Qa||512&t.flags&&il(t)}catch(e){Ec(t,t.return,e)}}if(t===e){Ka=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ka=n;break}Ka=t.return}}function wl(e){for(;null!==Ka;){var t=Ka;if(t===e){Ka=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ka=n;break}Ka=t.return}}function Sl(e){for(;null!==Ka;){var t=Ka;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){Ec(t,n,e)}break;case 1:var i=t.stateNode;if("function"==typeof i.componentDidMount){var s=t.return;try{i.componentDidMount()}catch(e){Ec(t,s,e)}}var r=t.return;try{il(t)}catch(e){Ec(t,r,e)}break;case 5:var o=t.return;try{il(t)}catch(e){Ec(t,o,e)}}}catch(e){Ec(t,t.return,e)}if(t===e){Ka=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ka=a;break}Ka=t.return}}var _l,El=Math.ceil,xl=w.ReactCurrentDispatcher,Nl=w.ReactCurrentOwner,Ll=w.ReactCurrentBatchConfig,kl=0,Cl=null,Pl=null,Tl=0,Al=0,Il=xs(0),zl=0,Ol=null,Dl=0,ql=0,Rl=0,Bl=null,Fl=null,Ml=0,jl=1/0,Hl=null,$l=!1,Ul=null,Wl=null,Vl=!1,Zl=null,Gl=0,Ql=0,Yl=null,Kl=-1,Xl=0;function Jl(){return 6&kl?Ke():-1!==Kl?Kl:Kl=Ke()}function ec(e){return 1&e.mode?2&kl&&0!==Tl?Tl&-Tl:null!==fr.transition?(0===Xl&&(Xl=ft()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function tc(e,t,n,i){if(50<Ql)throw Ql=0,Yl=null,Error(r(185));vt(e,n,i),2&kl&&e===Cl||(e===Cl&&(!(2&kl)&&(ql|=n),4===zl&&oc(e,Tl)),nc(e,i),1===n&&0===kl&&!(1&t.mode)&&(jl=Ke()+500,Fs&&Hs()))}function nc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,r=e.pendingLanes;0<r;){var o=31-ot(r),a=1<<o,l=s[o];-1===l?a&n&&!(a&i)||(s[o]=ht(a,t)):l<=t&&(e.expiredLanes|=a),r&=~a}}(e,t);var i=pt(e,e===Cl?Tl:0);if(0===i)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fs=!0,js(e)}(ac.bind(null,e)):js(ac.bind(null,e)),os((function(){!(6&kl)&&Hs()})),n=null;else{switch(wt(i)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Cc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Kl=-1,Xl=0,6&kl)throw Error(r(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var i=pt(e,e===Cl?Tl:0);if(0===i)return null;if(30&i||i&e.expiredLanes||t)t=fc(e,i);else{t=i;var s=kl;kl|=2;var o=hc();for(Cl===e&&Tl===t||(Hl=null,jl=Ke()+500,dc(e,t));;)try{vc();break}catch(t){pc(e,t)}Lr(),xl.current=o,kl=s,null!==Pl?t=0:(Cl=null,Tl=0,t=zl)}if(0!==t){if(2===t&&(0!==(s=mt(e))&&(i=s,t=sc(e,s))),1===t)throw n=Ol,dc(e,0),oc(e,i),nc(e,Ke()),n;if(6===t)oc(e,i);else{if(s=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var s=n[i],r=s.getSnapshot;s=s.value;try{if(!ai(r(),s))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(s)||(t=fc(e,i),2===t&&(o=mt(e),0!==o&&(i=o,t=sc(e,o))),1!==t)))throw n=Ol,dc(e,0),oc(e,i),nc(e,Ke()),n;switch(e.finishedWork=s,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:case 5:wc(e,Fl,Hl);break;case 3:if(oc(e,i),(130023424&i)===i&&10<(t=Ml+500-Ke())){if(0!==pt(e,0))break;if(((s=e.suspendedLanes)&i)!==i){Jl(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=is(wc.bind(null,e,Fl,Hl),t);break}wc(e,Fl,Hl);break;case 4:if(oc(e,i),(4194240&i)===i)break;for(t=e.eventTimes,s=-1;0<i;){var a=31-ot(i);o=1<<a,(a=t[a])>s&&(s=a),i&=~o}if(i=s,10<(i=(120>(i=Ke()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*El(i/1960))-i)){e.timeoutHandle=is(wc.bind(null,e,Fl,Hl),i);break}wc(e,Fl,Hl);break;default:throw Error(r(329))}}}return nc(e,Ke()),e.callbackNode===n?ic.bind(null,e):null}function sc(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),2!==(e=fc(e,t))&&(t=Fl,Fl=n,null!==t&&rc(t)),e}function rc(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function oc(e,t){for(t&=~Rl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),i=1<<n;e[n]=-1,t&=~i}}function ac(e){if(6&kl)throw Error(r(327));Sc();var t=pt(e,0);if(!(1&t))return nc(e,Ke()),null;var n=fc(e,t);if(0!==e.tag&&2===n){var i=mt(e);0!==i&&(t=i,n=sc(e,i))}if(1===n)throw n=Ol,dc(e,0),oc(e,t),nc(e,Ke()),n;if(6===n)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Fl,Hl),nc(e,Ke()),null}function lc(e,t){var n=kl;kl|=1;try{return e(t)}finally{0===(kl=n)&&(jl=Ke()+500,Fs&&Hs())}}function cc(e){null!==Zl&&0===Zl.tag&&!(6&kl)&&Sc();var t=kl;kl|=1;var n=Ll.transition,i=bt;try{if(Ll.transition=null,bt=1,e)return e()}finally{bt=i,Ll.transition=n,!(6&(kl=t))&&Hs()}}function uc(){Al=Il.current,Ns(Il)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ss(n)),null!==Pl)for(n=Pl.return;null!==n;){var i=n;switch(tr(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&zs();break;case 3:Yr(),Ns(Ps),Ns(Cs),no();break;case 5:Xr(i);break;case 4:Yr();break;case 13:case 19:Ns(Jr);break;case 10:kr(i.type._context);break;case 22:case 23:uc()}n=n.return}if(Cl=e,Pl=e=Ic(e.current,null),Tl=Al=t,zl=0,Ol=null,Rl=ql=Dl=0,Fl=Bl=null,null!==Ar){for(t=0;t<Ar.length;t++)if(null!==(i=(n=Ar[t]).interleaved)){n.interleaved=null;var s=i.next,r=n.pending;if(null!==r){var o=r.next;r.next=s,i.next=o}n.pending=i}Ar=null}return e}function pc(e,t){for(;;){var n=Pl;try{if(Lr(),io.current=Xo,co){for(var i=oo.memoizedState;null!==i;){var s=i.queue;null!==s&&(s.pending=null),i=i.next}co=!1}if(ro=0,lo=ao=oo=null,uo=!1,po=0,Nl.current=null,null===n||null===n.return){zl=1,Ol=t,Pl=null;break}e:{var o=e,a=n.return,l=n,c=t;if(t=Tl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=fa(a);if(null!==m){m.flags&=-257,ga(m,a,l,0,t),1&m.mode&&ma(o,u,t),c=u;var f=(t=m).updateQueue;if(null===f){var g=new Set;g.add(c),t.updateQueue=g}else f.add(c);break e}if(!(1&t)){ma(o,u,t),mc();break e}c=Error(r(426))}else if(sr&&1&l.mode){var v=fa(a);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ga(v,a,l,0,t),mr(ca(c,l));break e}}o=c=ca(c,l),4!==zl&&(zl=2),null===Bl?Bl=[o]:Bl.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,jr(o,pa(0,c,t));break e;case 1:l=c;var y=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wl&&Wl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,jr(o,ha(o,l,t));break e}}o=o.return}while(null!==o)}bc(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function hc(){var e=xl.current;return xl.current=Xo,null===e?Xo:e}function mc(){0!==zl&&3!==zl&&2!==zl||(zl=4),null===Cl||!(268435455&Dl)&&!(268435455&ql)||oc(Cl,Tl)}function fc(e,t){var n=kl;kl|=2;var i=hc();for(Cl===e&&Tl===t||(Hl=null,dc(e,t));;)try{gc();break}catch(t){pc(e,t)}if(Lr(),kl=n,xl.current=i,null!==Pl)throw Error(r(261));return Cl=null,Tl=0,zl}function gc(){for(;null!==Pl;)yc(Pl)}function vc(){for(;null!==Pl&&!Qe();)yc(Pl)}function yc(e){var t=_l(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?bc(e):Pl=t,Nl.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Za(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return zl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Va(n,t,Al)))return void(Pl=n);if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===zl&&(zl=5)}function wc(e,t,n){var i=bt,s=Ll.transition;try{Ll.transition=null,bt=1,function(e,t,n,i){do{Sc()}while(null!==Zl);if(6&kl)throw Error(r(327));n=e.finishedWork;var s=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-ot(n),r=1<<s;t[s]=0,i[s]=-1,e[s]=-1,n&=~r}}(e,o),e===Cl&&(Pl=Cl=null,Tl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Vl||(Vl=!0,Cc(tt,(function(){return Sc(),null}))),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=Ll.transition,Ll.transition=null;var a=bt;bt=1;var l=kl;kl|=4,Nl.current=null,function(e,t){if(es=Ut,hi(e=pi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var s=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var m;p!==n||0!==s&&3!==p.nodeType||(l=a+s),p!==o||0!==i&&3!==p.nodeType||(c=a+i),3===p.nodeType&&(a+=p.nodeValue.length),null!==(m=p.firstChild);)h=p,p=m;for(;;){if(p===e)break t;if(h===n&&++u===s&&(l=a),h===o&&++d===i&&(c=a),null!==(m=p.nextSibling))break;h=(p=h).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ts={focusedElem:e,selectionRange:n},Ut=!1,Ka=t;null!==Ka;)if(e=(t=Ka).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ka=e;else for(;null!==Ka;){t=Ka;try{var f=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var g=f.memoizedProps,v=f.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:na(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(r(163))}}catch(e){Ec(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ka=e;break}Ka=t.return}f=el,el=!1}(e,n),fl(n,e),mi(ts),Ut=!!es,ts=es=null,e.current=n,vl(n,e,s),Ye(),kl=l,bt=a,Ll.transition=o}else e.current=n;if(Vl&&(Vl=!1,Zl=e,Gl=s),o=e.pendingLanes,0===o&&(Wl=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(st,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nc(e,Ke()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],i(s.value,{componentStack:s.stack,digest:s.digest});if($l)throw $l=!1,e=Ul,Ul=null,e;!!(1&Gl)&&0!==e.tag&&Sc(),o=e.pendingLanes,1&o?e===Yl?Ql++:(Ql=0,Yl=e):Ql=0,Hs()}(e,t,n,i)}finally{Ll.transition=s,bt=i}return null}function Sc(){if(null!==Zl){var e=wt(Gl),t=Ll.transition,n=bt;try{if(Ll.transition=null,bt=16>e?16:e,null===Zl)var i=!1;else{if(e=Zl,Zl=null,Gl=0,6&kl)throw Error(r(331));var s=kl;for(kl|=4,Ka=e.current;null!==Ka;){var o=Ka,a=o.child;if(16&Ka.flags){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Ka=u;null!==Ka;){var d=Ka;switch(d.tag){case 0:case 11:case 15:tl(8,d,o)}var p=d.child;if(null!==p)p.return=d,Ka=p;else for(;null!==Ka;){var h=(d=Ka).sibling,m=d.return;if(sl(d),d===u){Ka=null;break}if(null!==h){h.return=m,Ka=h;break}Ka=m}}}var f=o.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Ka=o}}if(2064&o.subtreeFlags&&null!==a)a.return=o,Ka=a;else e:for(;null!==Ka;){if(2048&(o=Ka).flags)switch(o.tag){case 0:case 11:case 15:tl(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Ka=y;break e}Ka=o.return}}var b=e.current;for(Ka=b;null!==Ka;){var w=(a=Ka).child;if(2064&a.subtreeFlags&&null!==w)w.return=a,Ka=w;else e:for(a=b;null!==Ka;){if(2048&(l=Ka).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){Ec(l,l.return,e)}if(l===a){Ka=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,Ka=S;break e}Ka=l.return}}if(kl=s,Hs(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(st,e)}catch(e){}i=!0}return i}finally{bt=n,Ll.transition=t}}return!1}function _c(e,t,n){e=Fr(e,t=pa(0,t=ca(n,t),1),1),t=Jl(),null!==e&&(vt(e,1,t),nc(e,t))}function Ec(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Wl||!Wl.has(i))){t=Fr(t,e=ha(t,e=ca(n,e),1),1),e=Jl(),null!==t&&(vt(t,1,e),nc(t,e));break}}t=t.return}}function xc(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=Jl(),e.pingedLanes|=e.suspendedLanes&n,Cl===e&&(Tl&n)===n&&(4===zl||3===zl&&(130023424&Tl)===Tl&&500>Ke()-Ml?dc(e,0):Rl|=n),nc(e,t)}function Nc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=Jl();null!==(e=Or(e,t))&&(vt(e,t,n),nc(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nc(e,n)}function kc(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,s=e.memoizedState;null!==s&&(n=s.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}null!==i&&i.delete(t),Nc(e,n)}function Cc(e,t){return Ze(e,t)}function Pc(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(e,t,n,i){return new Pc(e,t,n,i)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ic(e,t){var n=e.alternate;return null===n?((n=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zc(e,t,n,i,s,o){var a=2;if(i=e,"function"==typeof e)Ac(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case E:return Oc(n.children,s,o,t);case x:a=8,s|=8;break;case N:return(e=Tc(12,n,t,2|s)).elementType=N,e.lanes=o,e;case P:return(e=Tc(13,n,t,s)).elementType=P,e.lanes=o,e;case T:return(e=Tc(19,n,t,s)).elementType=T,e.lanes=o,e;case z:return Dc(n,s,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case L:a=10;break e;case k:a=9;break e;case C:a=11;break e;case A:a=14;break e;case I:a=16,i=null;break e}throw Error(r(130,null==e?e:typeof e,""))}return(t=Tc(a,n,t,s)).elementType=e,t.type=i,t.lanes=o,t}function Oc(e,t,n,i){return(e=Tc(7,e,i,t)).lanes=n,e}function Dc(e,t,n,i){return(e=Tc(22,e,i,t)).elementType=z,e.lanes=n,e.stateNode={isHidden:!1},e}function qc(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function Rc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,i,s){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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=i,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,i,s,r,o,a,l){return e=new Bc(e,t,n,a,l),1===t?(t=1,!0===r&&(t|=8)):t=0,r=Tc(3,null,null,t),e.current=r,r.stateNode=e,r.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qr(r),e}function Mc(e){if(!e)return ks;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Is(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(r(171))}if(1===e.tag){var n=e.type;if(Is(n))return Ds(e,n,t)}return t}function jc(e,t,n,i,s,r,o,a,l){return(e=Fc(n,i,!0,e,0,r,0,a,l)).context=Mc(null),n=e.current,(r=Br(i=Jl(),s=ec(n))).callback=null!=t?t:null,Fr(n,r,s),e.current.lanes=s,vt(e,s,i),nc(e,i),e}function Hc(e,t,n,i){var s=t.current,r=Jl(),o=ec(s);return n=Mc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Br(r,o)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Fr(s,t,o))&&(tc(e,s,o,r),Mr(e,s,o)),o}function $c(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ps.current)ya=!0;else{if(!(e.lanes&n||128&t.flags))return ya=!1,function(e,t,n){switch(t.tag){case 3:Ca(t),hr();break;case 5:Kr(t);break;case 1:Is(t.type)&&qs(t);break;case 4:Qr(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,s=t.memoizedProps.value;Ls(_r,i._currentValue),i._currentValue=s;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Ls(Jr,1&Jr.current),t.flags|=128,null):n&t.child.childLanes?qa(e,t,n):(Ls(Jr,1&Jr.current),null!==(e=$a(e,t,n))?e.sibling:null);Ls(Jr,1&Jr.current);break;case 19:if(i=!!(n&t.childLanes),128&e.flags){if(i)return ja(e,t,n);t.flags|=128}if(null!==(s=t.memoizedState)&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ls(Jr,Jr.current),i)break;return null;case 22:case 23:return t.lanes=0,Ea(e,t,n)}return $a(e,t,n)}(e,t,n);ya=!!(131072&e.flags)}else ya=!1,sr&&1048576&t.flags&&Js(t,Vs,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Ha(e,t),e=t.pendingProps;var s=As(t,Cs.current);Pr(t,n),s=go(null,t,i,e,s,n);var o=vo();return t.flags|=1,"object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Is(i)?(o=!0,qs(t)):o=!1,t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,qr(t),s.updater=sa,t.stateNode=s,s._reactInternals=t,la(t,i,e,n),t=ka(null,t,i,!0,o,n)):(t.tag=0,sr&&o&&er(t),ba(null,t,s,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,i=(s=i._init)(i._payload),t.type=i,s=t.tag=function(e){if("function"==typeof e)return Ac(e)?1:0;if(null!=e){if((e=e.$$typeof)===C)return 11;if(e===A)return 14}return 2}(i),e=na(i,e),s){case 0:t=Na(null,t,i,e,n);break e;case 1:t=La(null,t,i,e,n);break e;case 11:t=wa(null,t,i,e,n);break e;case 14:t=Sa(null,t,i,na(i.type,e),n);break e}throw Error(r(306,i,""))}return t;case 0:return i=t.type,s=t.pendingProps,Na(e,t,i,s=t.elementType===i?s:na(i,s),n);case 1:return i=t.type,s=t.pendingProps,La(e,t,i,s=t.elementType===i?s:na(i,s),n);case 3:e:{if(Ca(t),null===e)throw Error(r(387));i=t.pendingProps,s=(o=t.memoizedState).element,Rr(e,t),Hr(t,i,null,n);var a=t.memoizedState;if(i=a.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Pa(e,t,i,n,s=ca(Error(r(423)),t));break e}if(i!==s){t=Pa(e,t,i,n,s=ca(Error(r(424)),t));break e}for(ir=cs(t.stateNode.containerInfo.firstChild),nr=t,sr=!0,rr=null,n=Sr(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hr(),i===s){t=$a(e,t,n);break e}ba(e,t,i,n)}t=t.child}return t;case 5:return Kr(t),null===e&&cr(t),i=t.type,s=t.pendingProps,o=null!==e?e.memoizedProps:null,a=s.children,ns(i,s)?a=null:null!==o&&ns(i,o)&&(t.flags|=32),xa(e,t),ba(e,t,a,n),t.child;case 6:return null===e&&cr(t),null;case 13:return qa(e,t,n);case 4:return Qr(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=wr(t,null,i,n):ba(e,t,i,n),t.child;case 11:return i=t.type,s=t.pendingProps,wa(e,t,i,s=t.elementType===i?s:na(i,s),n);case 7:return ba(e,t,t.pendingProps,n),t.child;case 8:case 12:return ba(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,s=t.pendingProps,o=t.memoizedProps,a=s.value,Ls(_r,i._currentValue),i._currentValue=a,null!==o)if(ai(o.value,a)){if(o.children===s.children&&!Ps.current){t=$a(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){a=o.child;for(var c=l.firstContext;null!==c;){if(c.context===i){if(1===o.tag){(c=Br(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),Cr(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(r(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Cr(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}ba(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,i=t.pendingProps.children,Pr(t,n),i=i(s=Tr(s)),t.flags|=1,ba(e,t,i,n),t.child;case 14:return s=na(i=t.type,t.pendingProps),Sa(e,t,i,s=na(i.type,s),n);case 15:return _a(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:na(i,s),Ha(e,t),t.tag=1,Is(i)?(e=!0,qs(t)):e=!1,Pr(t,n),oa(t,i,s),la(t,i,s,n),ka(null,t,i,!0,e,n);case 19:return ja(e,t,n);case 22:return Ea(e,t,n)}throw Error(r(156,t.tag))};var Vc="function"==typeof reportError?reportError:function(e){};function Zc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Kc(){}function Xc(e,t,n,i,s){var r=n._reactRootContainer;if(r){var o=r;if("function"==typeof s){var a=s;s=function(){var e=$c(o);a.call(e)}}Hc(t,o,e,s)}else o=function(e,t,n,i,s){if(s){if("function"==typeof i){var r=i;i=function(){var e=$c(o);r.call(e)}}var o=jc(t,i,e,0,null,!1,0,"",Kc);return e._reactRootContainer=o,e[ms]=o.current,Hi(8===e.nodeType?e.parentNode:e),cc(),o}for(;s=e.lastChild;)e.removeChild(s);if("function"==typeof i){var a=i;i=function(){var e=$c(l);a.call(e)}}var l=Fc(e,0,!1,null,0,!1,0,"",Kc);return e._reactRootContainer=l,e[ms]=l.current,Hi(8===e.nodeType?e.parentNode:e),cc((function(){Hc(t,l,n,i)})),l}(n,t,e,s,i);return $c(o)}Gc.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));Hc(e,t,null,null)},Gc.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cc((function(){Hc(null,e,null,null)})),t[ms]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&0!==t&&t<zt[n].priority;n++);zt.splice(n,0,e),0===n&&Rt(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),nc(t,Ke()),!(6&kl)&&(jl=Ke()+500,Hs()))}break;case 13:cc((function(){var t=Or(e,1);if(null!==t){var n=Jl();tc(t,e,1,n)}})),Wc(e,1)}},_t=function(e){if(13===e.tag){var t=Or(e,134217728);if(null!==t)tc(t,e,134217728,Jl());Wc(e,134217728)}},Et=function(e){if(13===e.tag){var t=ec(e),n=Or(e,t);if(null!==n)tc(n,e,t,Jl());Wc(e,t)}},xt=function(){return bt},Nt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var s=Ss(i);if(!s)throw Error(r(90));Z(i),X(i,s)}}}break;case"textarea":re(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ce=lc,Pe=cc;var Jc={usingClientEntryPoint:!1,Events:[bs,ws,Ss,Le,ke,lc]},eu={findFiberByHostInstance:ys,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{st=nu.inject(tu),rt=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(r(200));return function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(r(299));var n=!1,i="",s=Vc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=Fc(e,1,!1,null,0,n,0,i,s),e[ms]=t.current,Hi(8===e.nodeType?e.parentNode:e),new Zc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(r(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(r(405));var i=null!=n&&n.hydratedSources||null,s=!1,o="",a=Vc;if(null!=n&&(!0===n.unstable_strictMode&&(s=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=jc(t,null,e,1,null!=n?n:null,s,0,o,a),e[ms]=t.current,Hi(e),i)for(e=0;e<i.length;e++)s=(s=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Gc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(r(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(r(40));return!!e._reactRootContainer&&(cc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ms]=null}))})),!0)},t.unstable_batchedUpdates=lc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Yc(n))throw Error(r(200));if(null==e||void 0===e._reactInternals)throw Error(r(38));return Xc(e,t,n,!1,i)},t.version="18.3.1-next-f1338f8080-20240426"},723:(e,t,n)=>{var i=n(834);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},834:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(230)},542:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,s=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case r:case a:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case s:return t}}}function _(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=r,t.Lazy=g,t.Memo=f,t.Portal=s,t.Profiler=a,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||S(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===r},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===s},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===o},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===d||e===a||e===o||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},690:(e,t,n)=>{e.exports=n(542)},242:(e,t)=>{var n,i=Symbol.for("react.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case r:case a:case o:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case f:case m:case l:return e;default:return t}}case s:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},166:(e,t,n)=>{e.exports=n(242)},534:(e,t)=>{var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,f(w,v.prototype),w.isPureReactComponent=!0;var S=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,i){var s,r={},o=null,a=null;if(null!=t)for(s in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)_.call(t,s)&&!x.hasOwnProperty(s)&&(r[s]=t[s]);var l=arguments.length-2;if(1===l)r.children=i;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(e&&e.defaultProps)for(s in l=e.defaultProps)void 0===r[s]&&(r[s]=l[s]);return{$$typeof:n,type:e,key:o,ref:a,props:r,_owner:E.current}}function L(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,s,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case i:l=!0}}if(l)return o=o(l=e),e=""===r?"."+C(l,0):r,S(o)?(s="",null!=e&&(s=e.replace(k,"$&/")+"/"),P(o,t,s,"",(function(e){return e}))):null!=o&&(L(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,s+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(k,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",S(e))for(var c=0;c<e.length;c++){var u=r+C(a=e[c],c);l+=P(a,t,s,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=P(a=a.value,t,s,u=r+C(a,c++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var i=[],s=0;return P(e,i,"","",(function(e){return t.call(n,e,s++)})),i}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},z={transition:null},O={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:z,ReactCurrentOwner:E};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!L(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=s,t.Profiler=o,t.PureComponent=b,t.StrictMode=r,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.act=D,t.cloneElement=function(e,t,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=f({},e.props),r=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=E.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!x.hasOwnProperty(c)&&(s[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)s.children=i;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];s.children=l}return{$$typeof:n,type:e.type,key:r,ref:o,props:s,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=N,t.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=L,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=z.transition;z.transition={};try{e()}finally{z.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},471:(e,t,n)=>{e.exports=n(534)},582:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,s=e[i];if(!(0<r(s,t)))break e;e[i]=t,e[n]=s,n=i}}function i(e){return 0===e.length?null:e[0]}function s(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,s=e.length,o=s>>>1;i<o;){var a=2*(i+1)-1,l=e[a],c=a+1,u=e[c];if(0>r(l,n))c<s&&0>r(u,l)?(e[i]=u,e[c]=n,i=c):(e[i]=l,e[a]=n,i=a);else{if(!(c<s&&0>r(u,n)))break e;e[i]=u,e[c]=n,i=c}}}return t}function r(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,p=null,h=3,m=!1,f=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=i(u);null!==t;){if(null===t.callback)s(u);else{if(!(t.startTime<=e))break;s(u),t.sortIndex=t.expirationTime,n(c,t)}t=i(u)}}function S(e){if(g=!1,w(e),!f)if(null!==i(c))f=!0,z(_);else{var t=i(u);null!==t&&O(S,t.startTime-e)}}function _(e,n){f=!1,g&&(g=!1,y(L),L=-1),m=!0;var r=h;try{for(w(n),p=i(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var o=p.callback;if("function"==typeof o){p.callback=null,h=p.priorityLevel;var a=o(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?p.callback=a:p===i(c)&&s(c),w(n)}else s(c);p=i(c)}if(null!==p)var l=!0;else{var d=i(u);null!==d&&O(S,d.startTime-n),l=!1}return l}finally{p=null,h=r,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,x=!1,N=null,L=-1,k=5,C=-1;function P(){return!(t.unstable_now()-C<k)}function T(){if(null!==N){var e=t.unstable_now();C=e;var n=!0;try{n=N(!0,e)}finally{n?E():(x=!1,N=null)}}else x=!1}if("function"==typeof b)E=function(){b(T)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,I=A.port2;A.port1.onmessage=T,E=function(){I.postMessage(null)}}else E=function(){v(T,0)};function z(e){N=e,x||(x=!0,E())}function O(e,n){L=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){f||m||(f=!0,z(_))},t.unstable_forceFrameRate=function(e){0>e||125<e||(k=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return i(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,s,r){var o=t.unstable_now();switch("object"==typeof r&&null!==r?r="number"==typeof(r=r.delay)&&0<r?o+r:o:r=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:s,priorityLevel:e,startTime:r,expirationTime:a=r+a,sortIndex:-1},r>o?(e.sortIndex=r,n(u,e),null===i(c)&&e===i(u)&&(g?(y(L),L=-1):g=!0,O(S,r-o))):(e.sortIndex=a,n(c,e),f||m||(f=!0,z(_))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},817:(e,t,n)=>{e.exports=n(582)},64:(e,t,n)=>{var i=n(471);var s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=i.useState,o=i.useEffect,a=i.useLayoutEffect,l=i.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=r({inst:{value:n,getSnapshot:t}}),s=i[0].inst,u=i[1];return a((function(){s.value=n,s.getSnapshot=t,c(s)&&u({inst:s})}),[e,n,t]),o((function(){return c(s)&&u({inst:s}),e((function(){c(s)&&u({inst:s})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},347:(e,t,n)=>{var i=n(471),s=n(673);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=s.useSyncExternalStore,a=i.useRef,l=i.useEffect,c=i.useMemo,u=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,s){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,o=e,e=i(e),void 0!==s&&p.hasValue){var t=p.value;if(s(t,e))return a=t}return a=e}if(t=a,r(o,e))return t;var n=i(e);return void 0!==s&&s(t,n)?t:(o=e,a=n)}var o,a,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,i,s]);var h=o(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},673:(e,t,n)=>{e.exports=n(64)},204:(e,t,n)=>{e.exports=n(347)},6:(e,t,n)=>{"use strict";var i=n(730);class s{static defaults={title:"outside",title_class:".item-content",wrapper:".blog-container",item:".item",item_wrapper:".item-wrapper",video_thumb:".b-tb",bottom_line:"true",pager:".pager",resize_threshold:3,resize_min:20,resize_max:60};constructor(e,t){this.options={...s.defaults,...t},this.feedElm=e,this.feedWrapper=e.querySelector(this.options.wrapper),this.feedItems=this.feedElm.querySelectorAll(this.options.item),this.feedItems.length&&this.init()}analyzeFeedItems(){this.feedItems.forEach((e=>{const t={width:parseFloat(e.offsetWidth),paddingTop:parseFloat(window.getComputedStyle(e).paddingTop),paddingRight:parseFloat(window.getComputedStyle(e).paddingRight),paddingBottom:parseFloat(window.getComputedStyle(e).paddingBottom),paddingLeft:parseFloat(window.getComputedStyle(e).paddingLeft),imgWidth:0,imgHeight:0,titleHeight:0,top:0,left:0,height:0,column:0};if(e.classList.contains("wnd-video-thumbnail")){const n=e.querySelector(this.options.video_thumb);t.imgWidth=parseFloat(n.offsetWidth),t.imgHeight=parseInt(n.offsetHeight)}else{const n=e.querySelector("img");n&&(t.imgWidth=parseInt(n.getAttribute("width")),t.imgHeight=parseInt(n.getAttribute("height")))}if("outside"===this.options.title){const n=e.querySelector(this.options.title_class);t.titleHeight=n&&"none"!==window.getComputedStyle(n).display?parseFloat(n.offsetHeight):0}this.feedData.push(t)}))}positionFeedItems(){const e=Math.round(this.feedWidth/this.feedData[0].width);for(let t=0;t<e;t++)this.feedColumnHeight.push(0);e>1?(this.feedData.forEach(((t,n)=>{t.column=this.feedColumnIndex;const i=parseFloat(t.imgHeight/t.imgWidth*(t.width-t.paddingLeft-t.paddingRight));t.height=(isNaN(i)?0:i)+t.paddingTop+t.paddingBottom+t.titleHeight,1===this.feedRowCount?(t.top=0,t.left=0===n?0:this.feedData[n-1].left+this.feedData[n-1].width):(t.left=n/e==this.feedRowCount-1?0:this.feedData[n-1].left+this.feedData[n-1].width,t.top=this.feedColumnHeight[this.feedColumnIndex]),(n+1)/e===this.feedRowCount&&this.feedRowCount++,this.feedColumnHeight[this.feedColumnIndex]+=t.height,this.feedColumnIndex=(this.feedColumnIndex+1)%e,this.feedItems[n].style.top=`${t.top}px`,this.feedItems[n].style.left=`${t.left}px`})),this.bottomLine(),this.setFeedHeight()):this.resetFeedStyles()}bottomLine(){const e=[...this.feedColumnHeight];if("true"===this.options.bottom_line){e.sort(((e,t)=>t-e));const t=this.feedColumnHeight.indexOf(e[0]),n=e[0];e.sort(((e,t)=>e-t));const i=this.feedColumnHeight.indexOf(e[0]),s=e[0],r=n-s,o=this.getColumnIDs(t),a=o[o.length-1];if(r>=1.1*this.feedData[a].height){const e=s+this.feedData[a].height,r=n-this.feedData[a].height;this.feedData[a].top=s,this.feedData[a].left=this.feedData[a].width*i,this.feedItems[a].style.top=`${this.feedData[a].top}px`,this.feedItems[a].style.left=`${this.feedData[a].left}px`,this.feedColumnHeight[t]=r,this.feedColumnHeight[i]=e,this.updateColumnIDs(i,t,a),this.bottomLine()}}}getColumnIDs(e){return this.feedData.reduce(((t,n,i)=>(n.column===e&&t.push(i),t)),[])}updateColumnIDs(e,t,n){this.feedData[n].column=e}setFeedHeight(){this.feedColumnHeight.sort(((e,t)=>t-e)),this.feedWrapper.style.height=`${this.feedColumnHeight[0]}px`,this.feedElm.classList.add("feed-ready")}resetFeedStyles(){this.feedWrapper.removeAttribute("style"),this.feedElm.classList.remove("feed-ready"),this.feedItems.forEach((e=>{e.removeAttribute("style")}))}runFeed(){this.feedWidth=this.feedWrapper.offsetWidth,this.feedData=[],this.feedColumnHeight=[],this.feedColumnIndex=0,this.feedRowCount=1,this.analyzeFeedItems(),this.positionFeedItems(),(0,i.Zg)(this.feedElm)}resizeFeed(){this.runFeed()}init(){this.runFeed();let e=this.feedElm.offsetWidth,t=this.feedElm.offsetHeight;const n=()=>{const n=this.feedElm.offsetWidth,i=this.feedElm.offsetHeight;n===e&&i===t||(e=n,t=i,this.resizeFeed())};window.removeEventListener("resize",n),window.addEventListener("resize",n)}}const r=s;(0,i.Gc)((()=>{const e=e=>{(e.classList.contains("blog-feed")||e.classList.contains("blog-feed-board"))&&requestAnimationFrame((()=>new r(e,{})))};document.querySelectorAll(".blog").forEach((t=>e(t))),(0,i.a1)()&&(document.body.addEventListener("wnd-redraw",(t=>{t.target.closest(".blog")&&e(t.target.closest(".blog"))})),document.body.addEventListener("wnd-dynamic-content-change",(t=>{t.target.classList.contains("blog")&&e(t.target)})))}))},431:(e,t,n)=>{"use strict";var i=n(730);(0,i.Gc)((()=>{if(!document.querySelector(".cb"))return;const e=document.querySelector(".cb-bar"),t=document.querySelector(".cb-popup"),n=document.querySelector(".cb-button-popup"),s=document.querySelector(".l"),r=(e,t,n)=>{e.classList.remove(t),e.classList.add(n)};e.querySelectorAll(".cb-close-basic").forEach((t=>{t.addEventListener("click",(t=>{(0,i.u5)(t),r(e,"open","close")}))})),n&&n.addEventListener("click",(n=>{(0,i.u5)(n),r(e,"open","close"),r(t,"close","open"),s.style.overflowX="hidden"})),t.querySelector(".cb-close-popup").addEventListener("click",(n=>{(0,i.u5)(n),r(t,"open","close"),r(e,"close","open"),s.style.overflowY="initial"})),document.onkeydown=n=>{"Escape"!==n.key&&"Escape"!==n.code||(r(t,"open","close"),r(e,"close","open"),s.style.overflowY="initial")},t.querySelector(".cb-save-popup").addEventListener("click",(e=>{(0,i.u5)(e),r(t,"open","close"),s.style.overflowY="initial"}))}))},444:(e,t,n)=>{"use strict";var i=n(730);(0,i.Gc)((()=>{if((0,i.a1)()&&(0,i.Gw)()&&document.querySelector(".wnd-page").classList.contains("wnd-cart")){const e=new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.removedNodes.forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&e.classList.contains("cart-section")&&requestAnimationFrame((()=>{document.querySelector(".b-e-crt")?.closest(".s")?.classList.add("cart-section")}))}))}))})),t=document.querySelector(".l-m .sw-c");t&&e.observe(t,{childList:!0})}if(!(0,i.a1)()&&(0,i.Gw)()&&(document.querySelectorAll(".b-e-crt-qty-btn").forEach((function(e){e.addEventListener("click",(function(){let t=e.closest(".b-e-crt-qty").querySelector("input"),n=parseInt(t.value,10),i=parseInt(t.getAttribute("max"),10);isNaN(i)&&(i=999999),e.classList.contains("b-e-crt-qty-add")&&(n=Math.min(n+1,i+1),n>=i&&e.classList.add("disabled"),n>1&&e.closest(".b-e-crt-qty-c").querySelector(".b-e-crt-qty-rmv").classList.remove("disabled")),e.classList.contains("b-e-crt-qty-rmv")&&(n=Math.max(n-1,1),n<=i&&e.closest(".b-e-crt-qty-c").querySelector(".b-e-crt-qty-btn").classList.remove("disabled"),1===n&&e.classList.add("disabled")),t.value=n;const s=new Event("change",{bubbles:!0,cancellable:!0});t.dispatchEvent(s)}))})),document.querySelectorAll(".b-e-crt-qty-c input").forEach((function(e){let t=parseInt(e.value,10),n=parseInt(e.getAttribute("max"),10);1===t&&e.closest(".b-e-crt-qty-c").querySelector(".b-e-crt-qty-rmv").classList.add("disabled"),t>=n&&e.closest(".b-e-crt-qty-c").querySelector(".b-e-crt-qty-add").classList.add("disabled"),1===t&&1===n&&(e.disabled=!0),0===n&&e.closest(".b-e-crt-qty-c").querySelector(".b-e-crt-qty-btn").classList.add("disabled")}))),(0,i.Gw)()){const n=document.querySelector(".wnd-page"),s=document.querySelector(".l-w");if(!n.classList.contains("wnd-cart"))return;function r(){const e=document.querySelector(".b-e-crt-cho"),t=document.querySelector(".iub__us-widget"),i=(t&&t.offsetHeight,document.querySelector(".wnd-free-stripe")),r=i?i.offsetHeight:0;if(e&&"fixed"===getComputedStyle(e).position&&!n.classList.contains("wnd-cart-empty")){const n=e.offsetHeight;if(s.style.minHeight=`calc(100vh - ${n}px)`,s.style.paddingBottom=`${n}px`,t){let e=n+r;t.style.position="relative",t.style.top=`-${e}px`}}(e&&"fixed"!==getComputedStyle(e).position||n.classList.contains("wnd-cart-empty"))&&(s.removeAttribute("style"),t&&t.removeAttribute("style"))}r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),n.addEventListener("wnd-cart-empty",r)}}))},823:(e,t,n)=>{"use strict";var i=n(730),s=n(153);(0,i.Gc)((()=>{if(!document.body.classList.contains("wt-product"))return;function e(){const e=document.querySelector(".l-w"),t=document.querySelector(".prd-crt"),n=document.querySelector(".iub__us-widget"),i=(n&&n.offsetHeight,document.querySelector(".wnd-free-stripe")),s=i?i.offsetHeight:0;if(t&&"fixed"===getComputedStyle(t).position){const i=t.offsetHeight;if(e.style.minHeight=`calc(100vh - ${i}px)`,e.style.paddingBottom=`${i}px`,n){let e=i+s;n.style.position="relative",n.style.top=`-${e}px`}}else t&&"fixed"!==getComputedStyle(t).position&&(e.removeAttribute("style"),n&&n.removeAttribute("style"))}e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e);const t=document.querySelector(".prd-gal"),n=document.querySelector(".b-e-d");if(t&&(new s.A(n,{isCMS:(0,i.a1)(),autoplay:!1}),document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("b-e-d")&&new s.A(document.querySelector(".b-e-d"),{isCMS:(0,i.a1)(),autoplay:!1})}))),!(0,i.a1)()){const e=document.querySelector(".prd-crt");e.addEventListener("wnd-add-to-cart",(()=>{e.classList.add("wnd-waiting"),e.classList.remove("wnd-button-ready")})),e.addEventListener("wnd-add-to-cart-done",(e=>{const t=document.querySelector(".cart");t.classList.add("wnd-add-product"),setTimeout((()=>{e.target.parentNode.classList.add("wnd-waiting-done")}),500),setTimeout((()=>{e.target.parentNode.classList.remove("wnd-waiting-done"),e.target.parentNode.classList.remove("wnd-waiting"),e.target.parentNode.classList.add("wnd-button-ready"),t.classList.remove("wnd-add-product")}),1500)}))}}))},153:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(730);class s{static defaults={touchEvents:"click",autoplay:!1,timeout:5e3,cover:!1,isCMS:!1,blockClass:"prd-gal",eshopDetailElm:".b-e-d",contentBlockElm:".prd-gal-c",photoListElm:".prd-gal-list",photoItemElm:".prd-gal-photo",photoItemLinkElm:".prd-gal-link",photoItemImageDivElm:".prd-gal-img",photoItemImageElm:"img",navBlockWrapperElm:".prd-gal-nav",navBlockContentElm:".prd-gal-nav-c",bulletListElm:"ul",bulletItemElm:"li",navBlockPrevElm:".prd-gal-nav-arrow-prev",navBlockNextElm:".prd-gal-nav-arrow-next",slideshowPhotoClass:"prd-gal-photo"};constructor(e,t){if(this.options={...s.defaults,...t},this.eshopDetailBlock=e,this.eshopDetailBlock.querySelector(".prd-gal"))this.init();else{new MutationObserver(((e,t)=>{this.eshopDetailBlock.querySelector(".prd-gal")&&(t.disconnect(),this.init())})).observe(this.eshopDetailBlock,{childList:!0,subtree:!0})}}delayedConstructor(){this.galleryElm=this.eshopDetailBlock.querySelector(`.${this.options.blockClass}`),this.contentBlockElm=this.galleryElm.querySelector(this.options.contentBlockElm),this.photoListElm=this.contentBlockElm.querySelector(this.options.photoListElm),this.photoItems=this.photoListElm.querySelectorAll(this.options.photoItemElm),this.navBlockWrapperElm=this.galleryElm.querySelector(this.options.navBlockWrapperElm),this.navBlockContentElm=this.navBlockWrapperElm.querySelector(this.options.navBlockContentElm),this.bulletListElm=null,this.navBlockPrevElm=this.navBlockWrapperElm.querySelector(this.options.navBlockPrevElm),this.navBlockNextElm=this.navBlockWrapperElm.querySelector(this.options.navBlockNextElm),this.images=this.loadSlideShowImages(),this.imagesTotal=this.images.length,this.currentImageIndex=0,this.reelPosition=this.imagesTotal,this.autoplay=!1,this.animationFlag=!1,this.navAnimationFlag=!1,this.maxBullets=5}tooFastClick(){return this.animationFlag}tooFastClickNav(){return this.navAnimationFlag}getSourceType(e){return e.substr(e.lastIndexOf(".")+1)}getPictureSources(e){let t=[];return e.querySelectorAll("source").forEach((e=>{t.push({type:e.getAttribute("type"),srcset:e.getAttribute("srcset")})})),t}loadSlideShowImages(){const e=[];return this.photoItems.forEach((t=>{const n=t.querySelector(this.options.photoItemLinkElm),i=n.getAttribute("href");e.push({imageId:i.substring(i.lastIndexOf("/")+1,i.lastIndexOf(".")),imageSrc:i,imageTitle:n.getAttribute("data-litebox-text"),imageRatio:t.className.replace(this.options.slideshowPhotoClass,"").replace("active","").trim(),imageThumbnail:i,sourceType:this.getSourceType(i),sources:this.getPictureSources(t)})})),e}addActiveClass(){this.photoListElm.querySelectorAll("li.active").length||this.photoListElm.querySelectorAll("li")[this.currentImageIndex].classList.add("active")}updateReelPosition(){this.reelPosition=this.currentImageIndex+this.imagesTotal,this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition)}clearReel(){this.galleryElm.querySelectorAll(".clone").forEach((e=>e.remove())),this.navBlockContentElm.classList.remove("reel")}runAutoplay(){this.options.autoplay&&!this.options.isCMS&&(this.autoplay=setInterval((()=>{this.nextImage("fade",!1)}),this.options.timeout))}stopAutoplay(){this.options.autoplay&&!1!==this.autoplay&&(clearInterval(this.autoplay),this.autoplay=!1)}nextImage(e){this.currentImageIndex=this.currentImageIndex===this.imagesTotal-1?0:this.currentImageIndex+1,this.changePhoto(this.currentImageIndex,e)}prevImage(e){this.currentImageIndex=0===this.currentImageIndex?this.imagesTotal-1:this.currentImageIndex-1,this.changePhoto(this.currentImageIndex,e)}shiftReel(e){this.navAnimationFlag=!0;const t=this.bulletListElm;if(this.bulletListElm.querySelector("li.clicked")){const t=Array.from(this.bulletListElm.querySelectorAll("li")).indexOf(this.bulletListElm.querySelector("li.clicked"));this.bulletListElm.querySelector("li.clicked").classList.remove("clicked"),"forward"===e?t>=2*this.imagesTotal?(this.reelPosition=this.reelPosition-this.imagesTotal,this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition),this.reelPosition+=t-this.reelPosition-this.imagesTotal+1):this.reelPosition+=t-this.reelPosition+1:t>=2*this.imagesTotal?(this.reelPosition=this.reelPosition-this.imagesTotal,this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition),this.reelPosition+=t-this.reelPosition-this.imagesTotal-1):this.reelPosition+=t-this.reelPosition-1}else this.reelPosition="forward"===e?this.reelPosition+1:this.reelPosition-1;setTimeout((()=>{this.bulletListElm.classList.add("transition"),this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition),t.addEventListener("transitionend",(e=>{e.target===t&&(this.bulletListElm.classList.remove("transition"),this.reelPosition!==2*this.imagesTotal&&0!==this.reelPosition||(this.reelPosition=this.imagesTotal,this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition)),this.navAnimationFlag=!1)}),{once:!0})}),1)}changePhoto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fade";const n=this;this.animationFlag=!0;const i=Array.from(n.photoListElm.querySelectorAll("li")).indexOf(n.photoListElm.querySelector("li.active"));if(parseInt(e)!==i){n.currentImageIndex=parseInt(e);const i=n.photoListElm.offsetHeight;n.photoListElm.style.height=`${i}px`;const o=n.photoListElm.querySelector("li.active"),a=n.photoListElm.querySelectorAll("li")[parseInt(e)];if(a.addEventListener("transitionend",(()=>{n.animationFlag=!1,n.photoListElm.style.height="",n.photoListElm.classList.remove("transition"),"slideFromLeft"===t&&o.classList.remove("slide-to-right"),"slideFromRight"===t&&o.classList.remove("slide-to-left")}),{once:!0}),"slideFromLeft"===t&&a.classList.add("slide-from-left"),"slideFromRight"===t&&a.classList.add("slide-from-right"),requestAnimationFrame((()=>{n.photoListElm.classList.add("transition");const e=a.offsetHeight;i!==e&&(n.photoListElm.style.height=`${e}px`),"fade"===t&&(o.classList.remove("active"),a.classList.add("active")),"slideFromLeft"===t&&(o.classList.replace("active","slide-to-right"),a.classList.replace("slide-from-left","active")),"slideFromRight"===t&&(o.classList.replace("active","slide-to-left"),a.classList.replace("slide-from-right","active"))})),n.bulletListElm.querySelectorAll("li").forEach((e=>e.classList.remove("active"))),n.bulletListElm.querySelectorAll(`li[data-image-id="${e}"]`).forEach((e=>e.classList.add("active"))),n.isNavUsingBullets()&&n.imagesTotal>n.maxBullets){n.bulletListElm.querySelectorAll("li").forEach((e=>e.classList.remove("large")));var s=(n.currentImageIndex+1)%n.imagesTotal,r=n.currentImageIndex-1<0?n.imagesTotal-1:n.currentImageIndex-1;n.bulletListElm.querySelectorAll('li[data-image-id="'+s+'"]').forEach((e=>e.classList.add("large"))),n.bulletListElm.querySelectorAll('li[data-image-id="'+r+'"]').forEach((e=>e.classList.add("large")))}}}createClones(){const e=(e,t)=>{const n=t===this.currentImageIndex?" active":"",i=`clone ${e.imageRatio}${n}`,s=`<img src="${e.imageThumbnail}" alt="">`;if(e.sources.length>0){return`<li class="${i}" data-image-id="${t}"><picture>${e.sources.map((e=>`<source type="${e.type}" srcset="${e.srcset}" sizes="100px">`)).join("")}${s}</picture></li>`}return`<li class="${i}" data-image-id="${t}">${s}</li>`},t=this.images.map(((t,n)=>e(t,n))).join("");this.bulletListElm.insertAdjacentHTML("afterbegin",t),this.bulletListElm.insertAdjacentHTML("beforeend",t)}getReelDirection(){return this.navBlockWrapperElm.offsetWidth>this.navBlockWrapperElm.offsetHeight?"horizontal":"vertical"}hasMorePicturesThanReelCanFit(){const e=Math.max(this.navBlockWrapperElm.offsetWidth,this.navBlockWrapperElm.offsetHeight);return Math.max(this.bulletListElm.offsetWidth,this.bulletListElm.offsetHeight)>e}createNavReelItem(e,t,n){const i=`${e.imageRatio} original${t?" active":""}`,s=`<img src="${e.imageThumbnail}" alt="">`;if(e.sources.length>0){return`<li class="${i}" data-image-id="${n}"><picture>${e.sources.map((e=>`<source type="${e.type}" srcset="${e.srcset}" sizes="100px">`)).join("")}${s}</picture></li>`}return`<li class="${i}" data-image-id="${n}">${s}</li>`}isNavUsingBullets(){return"none"===getComputedStyle(this.navBlockContentElm.querySelector(".active picture")).display}calculateBulletsShift(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.reelPosition-2,t=0;return this.bulletListElm.querySelectorAll("li").forEach(((n,i)=>{if(i<e){const e=getComputedStyle(n);t+=n.offsetWidth+parseInt(e.marginLeft)+parseInt(e.marginRight)}})),t}buildNavReel(){this.navBlockWrapperElm.querySelector("ul")&&this.navBlockWrapperElm.querySelector("ul").remove();const e=document.createElement("ul");if(this.images.forEach(((t,n)=>{const i=n===this.currentImageIndex,s=this.createNavReelItem(t,i,n);e.insertAdjacentHTML("beforeend",s)})),this.navBlockContentElm.appendChild(e),this.bulletListElm=this.navBlockContentElm.querySelector(this.options.bulletListElm),this.isNavUsingBullets())if(this.navBlockContentElm.classList.add("bullets"),this.navBlockWrapperElm.classList.remove("show-arrows"),this.imagesTotal>this.maxBullets){this.createClones(),this.navBlockContentElm.classList.add("infinite"),this.navBlockContentElm.classList.remove("centered"),this.bulletListElm.style.setProperty("--gallery-items",3*this.imagesTotal),this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition);var t=(this.currentImageIndex+1)%this.imagesTotal,n=this.currentImageIndex-1<0?this.imagesTotal-1:this.currentImageIndex-1;this.bulletListElm.querySelectorAll('li[data-image-id="'+t+'"]')?.forEach((e=>e.classList.add("large"))),this.bulletListElm.querySelectorAll('li[data-image-id="'+n+'"]')?.forEach((e=>e.classList.add("large"))),this.bulletListElm.style.setProperty("--bullets-shift",this.calculateBulletsShift()+"px")}else this.navBlockContentElm.classList.add("centered"),this.navBlockContentElm.classList.remove("infinite"),this.bulletListElm.style.setProperty("--gallery-items",this.imagesTotal),this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition);else this.navBlockContentElm.classList.remove("bullets"),this.navBlockContentElm.classList.remove("infinite"),this.hasMorePicturesThanReelCanFit()?(this.createClones(),this.navBlockWrapperElm.classList.add("show-arrows"),this.navBlockContentElm.classList.add("reel"),this.navBlockContentElm.classList.remove("centered"),this.bulletListElm.style.setProperty("--gallery-items",3*this.imagesTotal),this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition)):(this.navBlockWrapperElm.classList.remove("show-arrows"),this.navBlockContentElm.classList.remove("reel"),this.navBlockContentElm.classList.add("centered"),this.bulletListElm.style.setProperty("--gallery-items",this.imagesTotal),this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition))}shiftBullets(e,t){void 0===e&&(e=1),this.navAnimationFlag=!0;const n=this.bulletListElm;let i=this.reelPosition-2;const s=this.imagesTotal,r=2*this.imagesTotal;"slideFromLeft"===t?0===i&&1===e||i<=1&&2===e?(i=s+i-e,this.reelPosition=i+2,n.style.setProperty("--bullets-shift",this.calculateBulletsShift(i+e)+"px")):(i-=e,this.reelPosition-=e):i===r&&1===e||(i===r-1||i===r)&&2===e?(i=s-(r-i)+e,this.reelPosition=i+2,n.style.setProperty("--bullets-shift",this.calculateBulletsShift(i-e)+"px")):(i+=e,this.reelPosition+=e);const o=this.calculateBulletsShift(i);this.bulletListElm.classList.add("transition"),this.bulletListElm.style.setProperty("--gallery-position",this.reelPosition),n.style.setProperty("--bullets-shift",o+"px"),n.addEventListener("transitionend",(e=>{e.target===n&&(this.bulletListElm.classList.remove("transition"),this.navAnimationFlag=!1)}),{once:!0})}bindNavPreviewClicks(){const e=this;this.bulletListElm.querySelectorAll("li").forEach((function(t){t.addEventListener("transitionend",(e=>{e.stopPropagation()})),t.addEventListener("click",(function(){if(!(t.classList.contains("active")||e.tooFastClickNav()||e.tooFastClick()))if(e.isNavUsingBullets()){const n=parseInt(t.getAttribute("data-image-id")),i=parseInt(e.bulletListElm.querySelector("li.active").getAttribute("data-image-id"));let s,r=1;0===n&&i===e.imagesTotal-1&&e.imagesTotal>2?s="slideFromRight":0===i&&n===e.imagesTotal-1&&e.imagesTotal>2?s="slideFromLeft":n<2&&i>e.imagesTotal-1-2&&e.imagesTotal>4?(s="slideFromRight",r=2):i<2&&n>e.imagesTotal-1-2&&e.imagesTotal>4?(s="slideFromLeft",r=2):n>i?(s="slideFromRight",r=n-i):(s="slideFromLeft",r=i-n),e.changePhoto(n,s),e.stopAutoplay(),e.imagesTotal>e.maxBullets?e.shiftBullets(r,s):(e.reelPosition=n+e.imagesTotal,e.bulletListElm.style.setProperty("--gallery-position",e.reelPosition))}else{e.bulletListElm.querySelectorAll("li").forEach((function(e){e.classList.remove("clicked")})),t.classList.add("clicked"),e.stopAutoplay();const n=parseInt(t.getAttribute("data-image-id"));e.changePhoto(n,"fade")}}))}))}bindControls(){const e=this;function t(e,t,n){if(t.tooFastClickNav()||t.tooFastClick())return;const i="photo"===n||"horizontal"===t.getReelDirection()?e.deltaX:e.deltaY;if(e.isFinal){if(Math.abs(e.deltaY)>Math.abs(e.deltaX)&&"photo"===n||Math.abs(e.deltaY)>Math.abs(e.deltaX)&&"reel"===n&&"horizontal"===t.getReelDirection()||Math.abs(e.deltaX)>Math.abs(e.deltaY)&&"reel"===n&&"vertical"===t.getReelDirection())return;0!==i&&(t.stopAutoplay(),i>0?t.prevImage(i>0?"slideFromLeft":"slideFromRight",!0):t.nextImage(i>0?"slideFromLeft":"slideFromRight",!0),t.isNavUsingBullets()?t.imagesTotal>t.maxBullets?t.shiftBullets(1,i>0?"slideFromLeft":"slideFromRight"):t.updateReelPosition():t.navBlockContentElm.classList.contains("reel")?t.shiftReel(i>0?"backward":"forward"):t.updateReelPosition())}}if(this.navBlockNextElm.addEventListener(this.options.touchEvents,(function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),e.tooFastClickNav()||e.tooFastClick()||(e.stopAutoplay(),e.nextImage("fade",!0),e.shiftReel("forward"))})),this.navBlockPrevElm.addEventListener(this.options.touchEvents,(function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),e.tooFastClickNav()||e.tooFastClick()||(e.stopAutoplay(),e.prevImage("fade",!0),e.shiftReel("backward"))})),document.addEventListener("keydown",(function(t){if(!(0,i.a1)()&&e.navBlockContentElm.classList.contains("reel")){let n,s;e.bulletListElm.offsetWidth<=e.bulletListElm.offsetHeight?(n="ArrowUp",s="ArrowDown"):(n="ArrowLeft",s="ArrowRight"),(0,i.YG)(e.galleryElm)>.3&&(e.tooFastClick()||(t.preventDefault(),e.stopAutoplay(),t.code===n?(e.prevImage("fade",!0),e.shiftReel("backward")):t.code===s&&(e.nextImage("fade",!0),e.shiftReel("forward"))))}})),this.photoItems.forEach((function(t){t.removeEventListener("click",(()=>e.stopAutoplay())),t.addEventListener("click",(()=>e.stopAutoplay()))})),this.bindNavPreviewClicks(),document.body.classList.contains("touched")){const n=new Hammer.Manager(e.navBlockContentElm);n.add(new Hammer.Pan({threshold:20,pointers:0})),n.on("panend",(n=>t(n,e,"reel")));const i=new Hammer.Manager(e.photoListElm);i.add(new Hammer.Pan({threshold:20,pointers:0,direction:Hammer.DIRECTION_HORIZONTAL})),i.on("panend",(n=>t(n,e,"photo")))}}resizeGallery(){this.buildNavReel(),this.bindNavPreviewClicks()}init(){this.delayedConstructor(),this.images.length<=1?this.clearReel():(this.addActiveClass(),this.buildNavReel(),this.bindControls(),this.runAutoplay()),(0,i.Zg)(this.eshopDetailBlock);let e=this.eshopDetailBlock.offsetWidth,t=this.eshopDetailBlock.offsetHeight;const n=()=>{const n=this.eshopDetailBlock.offsetWidth,i=this.eshopDetailBlock.offsetHeight;n===e&&i===t||(e=n,t=i,this.resizeGallery())};window.removeEventListener("resize",n),window.addEventListener("resize",n)}}const r=s},465:(e,t,n)=>{"use strict";var i=n(730);const s=class{constructor(e){this.eshopBlock=e,this.init()}createArrows(){if(this.eshopBlock.classList.contains("show-f")){this.eshopBlock.querySelectorAll(".b-e-f ul li.wnd-with-subcategory")?.forEach((e=>{const t=e.parentElement;if(t.classList.contains("ef-level-1")||t.classList.contains("ef-level-2")){if(!e.querySelector("ul + .ef-arrow")){const t=document.createElement("a");t.className="ef-arrow ef-down",t.href="#",e.appendChild(t)}(t.classList.contains("open")||e.classList.contains("hover"))&&e.querySelector(".ef-arrow").classList.replace("ef-down","ef-up")}t.classList.contains("ef-level-3")&&e.classList.remove("wnd-with-subcategory")}));const e=this.eshopBlock.querySelector("li.wnd-with-subcategory a.selected");e&&(e.nextElementSibling?.classList.add("open"),e.closest("ul.ef-level-2")?.classList.add("open"),e.closest("ul.ef-level-3")?.classList.add("open")),this.eshopBlock.querySelectorAll(".b-e-f ul").forEach((e=>{const t=e.nextElementSibling;t&&t.classList.contains("ef-arrow")&&(t.classList.toggle("ef-up",e.classList.contains("open")),t.classList.toggle("ef-down",!e.classList.contains("open")))}))}}dynamicMobileFilterHeight(e){const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom-20,i=e.getBoundingClientRect().top,s=e.closest(".b-e-f-c"),r=e.offsetHeight,o=s.querySelector(".ef-level-1");parseInt(n)<120?(o.style.top="auto",o.style.bottom=r+parseInt(getComputedStyle(s).paddingBottom)+"px",o.style.maxHeight=`${i}px`):(o.removeAttribute("style"),o.style.maxHeight=`${n}px`)}bindArrows(){const e=this.eshopBlock.querySelectorAll("li.wnd-with-subcategory a.ef-arrow"),t=function(){e.forEach((e=>{e.clickFlag=!1}))},n=this;function i(e){if(e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),this.clickFlag)return!1;this.clickFlag=!0,setTimeout(t,500);const i=this.parentElement.querySelector("ul");this.classList.contains("ef-down")?(this.parentElement.classList.add("hover"),this.classList.replace("ef-down","ef-up"),i.classList.add("open"),"none"===window.getComputedStyle(this.closest(".b-e-f")).float&&n.dynamicMobileFilterHeight(this.closest(".b-e-f").querySelector(".wnd-filter-select"))):this.classList.contains("ef-up")&&(this.parentElement.classList.remove("hover"),this.classList.replace("ef-up","ef-down"),i.classList.remove("open"))}e.forEach((e=>{["touchend","MSPointerDown","pointerdown","click"].forEach((t=>{e.addEventListener(t,i)}))}))}wndEvent(e){if((0,i.a1)()){const t=new Event(e,{bubbles:!0,cancellable:!0});document.querySelector("#menu > div").dispatchEvent(t)}}bodyClickListener(e){const t=document.querySelectorAll(".b-e-f.open");t.forEach((t=>{t.contains(e.target)||(t.classList.remove("open"),t.removeAttribute("style"),this.wndEvent("wnd-close-menu"))})),t.length>0&&document.body.removeEventListener("mousedown",this.bodyClickListener.bind(this))}dropdownControls(e){e.preventDefault(),e.stopPropagation();const t=e.target.closest(".b-e-f");if(t){document.querySelectorAll(".b-e-f.open").forEach((e=>{e!==t&&(e.classList.remove("open"),e.removeAttribute("style"),this.wndEvent("wnd-close-menu"))}));const n=function(){t&&"none"===window.getComputedStyle(t).float&&t.classList.remove("open")},i=t.querySelectorAll(".ef-level-1 a:not(.ef-arrow)");i?.forEach((e=>{e.removeEventListener("click",n),e.addEventListener("click",n)})),t.classList.contains("open")?(t.classList.remove("open"),document.body.removeEventListener("mousedown",this.bodyClickListener),this.wndEvent("wnd-close-menu"),t.querySelector(".ef-level-1").removeAttribute("style")):(this.dynamicMobileFilterHeight(e.target),this.wndEvent("wnd-open-menu"),t.classList.add("open"),document.body.removeEventListener("mousedown",this.bodyClickListener.bind(this)),document.body.addEventListener("mousedown",this.bodyClickListener.bind(this)))}}init(){this.eshopBlock.querySelectorAll(".clone").forEach((e=>e.remove()));const e=this.eshopBlock.querySelector(".b-e-f");let t=window.getComputedStyle(e).getPropertyValue("float");const n=new ResizeObserver((e=>{e.forEach((e=>{const n=window.getComputedStyle(e.target).getPropertyValue("float");if(n!==t&&(t=n,"left"===n)){e.target.classList.remove("open");const t=e.target.querySelector(".ef-level-1");t&&t.removeAttribute("style")}}))}));this.createArrows(),this.bindArrows();this.eshopBlock.querySelector(".wnd-filter-select").addEventListener("mousedown",this.dropdownControls.bind(this)),n.observe(e)}};class r{static defaults={touchEvents:"click",autoplay:!1,autoplayTimeout:5e3,navPrev:".b-e-s-prev",navNext:".b-e-s-next",navBlock:".b-e-s-nav",navBlockContentElm:".b-e-s-nav > .dots-content",isCMS:!1,maxBullets:5,clones:2};constructor(e,t){this.options={...r.defaults,...t},this.sliderElm=e,this.reelElm=e.querySelector(".b-e-box"),this.clearReel(),this.productsElements=e.querySelectorAll(".item"),this.navPrevElm=e.querySelector(this.options.navPrev),this.navNextElm=e.querySelector(this.options.navNext),this.navBlock=e.querySelector(this.options.navBlock),this.navBlockContentElm=e.querySelector(this.options.navBlockContentElm),this.bulletsUl=this.navBlock.querySelector("ul"),this.bullets=this.bulletsUl.querySelectorAll("li").length?this.bulletsUl.querySelectorAll("li"):null,this.productsTotal=this.reelElm.querySelectorAll(".item:not(.clone)").length,this.itemWidth=parseInt(this.sliderElm.offsetWidth),this.currentIndex=0,this.autoplay=!1,this.maxBullets=this.options.maxBullets,this.animationFlag=!1,this.navReelPosition=this.productsTotal,this.startOriginal=this.productsTotal,this.startClones=2*this.productsTotal;const n=getComputedStyle(this.sliderElm.querySelector(".dots")),i=parseInt(n.getPropertyValue("--nav-bullet-small-size")),s=parseInt(n.getPropertyValue("--nav-bullet-large-size")),o=parseInt(n.getPropertyValue("--nav-bullet-spacing"));if(this.smallBulletSize=i+2*o,this.largeBulletSize=s+2*o,this.sliderElm.querySelector(".prd-title"))this.init();else{new MutationObserver(((e,t)=>{this.sliderElm.querySelector(".prd-title")&&(t.disconnect(),this.init())})).observe(this.sliderElm,{childList:!0,subtree:!0})}}enoughContent(){return this.productsTotal<=1?(this.hideSliderControls(),!1):(this.showSliderControls(),!0)}calculateItemCount(){return this.productsTotal>1?this.productsTotal+4:this.productsTotal}calculateReelPosition(){let e=0;return this.productsTotal>1&&(e+=this.productsTotal>this.options.maxBullets?2:1),this.currentIndex+e}prepareReel(){this.reelElm.style.setProperty("--slider-position",this.calculateReelPosition()),this.reelElm.style.setProperty("--slider-items",this.calculateItemCount())}buildNav(){const e=this.bulletsUl;let t="";e.querySelectorAll(".clone").forEach((e=>e.remove()));for(let e=0;e<this.productsTotal;e++)t+=`<li class="original${e===this.currentIndex?" active":""}" data-slide-number="${e}"></li>`;if(e.innerHTML=t,this.bullets=e.querySelectorAll("li"),this.productsTotal<=this.maxBullets)this.navBlockContentElm.classList.remove("infinite"),this.navBlockContentElm.classList.add("centered");else{this.navBlockContentElm=this.sliderElm.querySelector(this.options.navBlockContentElm),this.createBulletClones(),this.navBlockContentElm.classList.contains("infinite")||(this.navReelPosition-=2),this.navBlockContentElm.classList.remove("centered"),this.navBlockContentElm.classList.add("infinite");let e=(this.currentIndex+1)%this.productsTotal,t=this.currentIndex-1<0?this.productsTotal-1:this.currentIndex-1;this.bulletsUl.querySelectorAll(`li[data-slide-number="${e}"], li[data-slide-number="${t}"]`).forEach((e=>{e.classList.add("large")}));let n=0,i=0,s=0,r=0;this.bulletsUl.querySelectorAll("li").forEach((e=>{r=e.classList.contains("active")||e.classList.contains("large")?this.largeBulletSize:this.smallBulletSize,i+=r,s++<this.navReelPosition&&(n+=r)})),this.bulletsUl.style.width=i+"px",this.bulletsUl.style.marginLeft=-1*n+"px",this.bulletsUl.style.marginTop="",this.bulletsUl.style.height=""}}clearInlineStyles(){this.sliderElm.querySelectorAll(".clone .item-content div").forEach((e=>e.removeAttribute("style")))}tooFastClick(){return this.animationFlag}bindControls(){this.navNextElm.addEventListener(this.options.touchEvents,(()=>{this.tooFastClick()||(this.stopAutoplay(),this.nextSlide())})),this.navPrevElm.addEventListener(this.options.touchEvents,(()=>{this.tooFastClick()||(this.stopAutoplay(),this.prevSlide())})),document.addEventListener("keydown",(e=>{37===e.keyCode&&(0,i.YG)(this.sliderElm)>.3?this.tooFastClick()||(this.stopAutoplay(),this.prevSlide()):39===e.keyCode&&(0,i.YG)(this.sliderElm)>.3&&(this.tooFastClick()||(this.stopAutoplay(),this.nextSlide()))})),null!==this.bullets&&this.bullets.forEach((e=>{e.addEventListener(this.options.touchEvents,(t=>{if(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!this.tooFastClick()&&!1===e.classList.contains("active")){this.stopAutoplay();let t=parseInt(this.bulletsUl.querySelector("li.active").dataset.slideNumber),n=parseInt(e.dataset.slideNumber),i=null,s=0;0===t&&n===this.productsTotal-1?(this.currentIndex-=1,i="forward",s=1):t===this.productsTotal-1&&0===n?(this.currentIndex+=1,i="backward",s=1):0===t&&n===this.productsTotal-2||1===t&&n===this.productsTotal-1&&this.navBlockContentElm.classList.contains("infinite")?(this.currentIndex-=2,i="forward",s=2):(t===this.productsTotal-1&&1===n||t===this.productsTotal-2&&0===n)&&this.navBlockContentElm.classList.contains("infinite")?(this.currentIndex+=2,i="backward",s=2):(this.currentIndex=n,i=t<n?"backward":"forward",s=Math.abs(t-n)),this.jumpToSlide(i,s)}}))}));const e=new Hammer(this.sliderElm);e.on("swiperight",(()=>{this.productsTotal>1&&this.navPrevElm.click()})),e.on("swipeleft",(()=>{this.productsTotal>1&&this.navNextElm.click()}))}shiftBullets(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.bulletsUl,i=this.navReelPosition,s=0,r=0,o=0,a=0;"backward"===e?this.navReelPosition===this.startClones&&1===t||(this.navReelPosition===this.startClones-1||this.navReelPosition===this.startClones)&&2===t?(i=this.navReelPosition=this.startOriginal-(this.startClones-this.navReelPosition)+t,this.bulletsUl.querySelectorAll("li").forEach((e=>{o=e.classList.contains("active")||e.classList.contains("large")?this.largeBulletSize:this.smallBulletSize,r++<i-t&&(s+=o)})),n.style.marginLeft=-1*s+"px"):i=this.navReelPosition+=t:0===this.navReelPosition&&1===t||this.navReelPosition<=1&&2===t?(i=this.navReelPosition=this.startOriginal+this.navReelPosition-t,this.bulletsUl.querySelectorAll("li").forEach((e=>{o=e.classList.contains("active")||e.classList.contains("large")?this.largeBulletSize:this.smallBulletSize,r++<i+t&&(s+=o)})),n.style.marginLeft=-1*s+"px"):i=this.navReelPosition-=t,r=0,n.classList.add("transition"),n.querySelectorAll("li").forEach((e=>{o=e.classList.contains("active")||e.classList.contains("large")?this.largeBulletSize:this.smallBulletSize,r++<this.navReelPosition&&(a+=o)})),n.addEventListener("transitionend",function(){n.classList.remove("transition")}.bind(this),{once:!0}),n.style.marginLeft=-1*a+"px"}jumpToSlide(e,t){this.animationFlag=!0,this.reelElm.classList.add("transition");let n=null;if(n=this.currentIndex<0?this.productsTotal+this.currentIndex:this.currentIndex>=this.productsTotal?this.currentIndex-this.productsTotal:this.currentIndex,this.bulletsUl.querySelectorAll("li").forEach((e=>e.classList.remove("active"))),this.bulletsUl.querySelectorAll(`li[data-slide-number="${n}"]`).forEach((e=>e.classList.add("active"))),this.navBlockContentElm.classList.contains("infinite")){this.bulletsUl.querySelectorAll("li").forEach((e=>e.classList.remove("large")));let i=(n+1)%this.productsTotal,s=n-1<0?this.productsTotal-1:n-1;this.bulletsUl.querySelectorAll(`li[data-slide-number="${i}"]`).forEach((e=>e.classList.add("large"))),this.bulletsUl.querySelectorAll(`li[data-slide-number="${s}"]`).forEach((e=>e.classList.add("large"))),this.shiftBullets(e,t)}this.reelElm.addEventListener("transitionend",function(){this.reelElm.classList.remove("transition"),this.currentIndex=n,this.reelElm.style.setProperty("--slider-position",this.calculateReelPosition()),this.animationFlag=!1}.bind(this),{once:!0}),this.reelElm.style.setProperty("--slider-position",this.calculateReelPosition())}nextSlide(){this.currentIndex+=1,this.jumpToSlide("backward",1)}prevSlide(){this.currentIndex-=1,this.jumpToSlide("forward",1)}runAutoplay(){this.options.autoplay&&(this.options.isCMS?this.autoplay=setTimeout((()=>{this.nextSlide(),this.stopAutoplay()}),this.options.autoplayTimeout):this.autoplay=setInterval((()=>{this.nextSlide()}),this.options.autoplayTimeout))}stopAutoplay(){this.options.autoplay&&!1!==this.autoplay&&(clearInterval(this.autoplay),this.autoplay=!1)}hideSliderControls(){this.navNextElm.classList.add("hide"),this.navNextElm.classList.remove("show"),this.navPrevElm.classList.add("hide"),this.navPrevElm.classList.remove("show"),this.navBlock.classList.add("hide"),this.navBlock.classList.remove("show")}showSliderControls(){this.navNextElm.classList.add("show"),this.navNextElm.classList.remove("hide"),this.navPrevElm.classList.add("show"),this.navPrevElm.classList.remove("hide"),this.navBlock.classList.add("show"),this.navBlock.classList.remove("hide")}cloneItem(e,t){const n=this.productsElements[e].className.replace("original","clone").trim(),i=document.createElement("article");i.className=n,i.setAttribute("data-clone-id",e),i.innerHTML=this.productsElements[e].querySelector(".item-wrapper").outerHTML,"before"===t?this.reelElm.prepend(i):this.reelElm.append(i),i.querySelector(".thumbnail")?.removeAttribute("id")}createClones(){this.productsElements=this.sliderElm.querySelectorAll(".item");for(let e=1;e<=this.options.clones;e++)this.cloneItem(this.productsTotal-e,"before");for(let e=0;e<this.options.clones;e++)this.cloneItem(e,"after");this.clearInlineStyles()}createBulletClones(){let e="";for(let t=0;t<this.productsTotal;t++)e+=`<li class="clone ${t===this.currentIndex?"active":""}" data-slide-number="${t}"></li>`;this.bulletsUl.insertAdjacentHTML("afterbegin",e),this.bulletsUl.insertAdjacentHTML("beforeend",e),this.bullets=this.bulletsUl.querySelectorAll("li")}clearReel(){this.reelElm.querySelectorAll(".clone").forEach((e=>e.remove()))}init(){this.enoughContent()&&(this.createClones(),this.prepareReel(!1),this.buildNav(),this.bindControls(),this.runAutoplay(),requestAnimationFrame((()=>this.sliderElm.classList.remove("not-loaded")))),(0,i.Zg)(this.sliderElm)}}const o=r;class a{static defaults={touchEvents:"click",autoplay:!1,autoplayTimeout:5e3,navPrev:".b-e-car-prev",navNext:".b-e-car-next",isCMS:!1};constructor(e,t){if(this.options={...a.defaults,...t},this.carouselElm=e,this.reelElm=e.querySelector(".b-e-box"),this.clearReel(),this.productsElements=e.querySelectorAll(".item.original"),this.productsTotal=this.reelElm.querySelectorAll(".item:not(.clone)").length,this.navPrevElm=e.querySelector(this.options.navPrev),this.navNextElm=e.querySelector(this.options.navNext),this.currentProductIndex=0,this.autoplay=!1,this.animationFlag=!1,this.isInIframe=document.body.classList.contains("ios-iframe"),this.itemsOnScreen=this.getItemsOnScreen(),Array.from(this.carouselElm.querySelectorAll(".item")).some((e=>!e.querySelector(".prd-title")))){new MutationObserver(((e,t)=>{Array.from(this.carouselElm.querySelectorAll(".item")).every((e=>e.querySelector(".prd-title")))&&(t.disconnect(),this.init())})).observe(this.carouselElm,{childList:!0,subtree:!0})}else this.init()}getItemsOnScreen(){return parseInt(getComputedStyle(this.carouselElm).getPropertyValue("--carousel-items-on-screen"),10)}calculateItemCount(){let e=this.productsTotal;return this.productsTotal>this.itemsOnScreen&&(e+=2*this.itemsOnScreen),e}calculateReelPosition(){let e=0;return this.productsTotal>this.itemsOnScreen&&(e+=this.itemsOnScreen),this.currentProductIndex+e}prepareReel(){this.reelElm.style.setProperty("--carousel-position",this.calculateReelPosition()),this.reelElm.style.setProperty("--carousel-items",this.calculateItemCount())}tooFastClick(){return this.animationFlag}bindControls(){if(this.navNextElm.addEventListener(this.options.touchEvents,(()=>{this.tooFastClick()||(this.stopAutoplay(),this.nextProduct())})),this.navPrevElm.addEventListener(this.options.touchEvents,(()=>{this.tooFastClick()||(this.stopAutoplay(),this.prevProduct())})),document.addEventListener("keydown",(e=>{37===e.keyCode&&this.isElementInViewport(this.carouselElm)>.3?this.tooFastClick()||(this.stopAutoplay(),this.prevProduct()):39===e.keyCode&&this.isElementInViewport(this.carouselElm)>.3&&(this.tooFastClick()||(this.stopAutoplay(),this.nextProduct()))})),!this.options.isCMS){const e=new Hammer(this.carouselElm);e.on("swiperight",(()=>this.navPrevElm.click())),e.on("swipeleft",(()=>this.navNextElm.click()))}}jumpToProduct(){this.animationFlag=!0,this.reelElm.classList.add("transition"),this.reelElm.addEventListener("transitionend",(()=>{this.reelElm.classList.remove("transition"),this.calculateReelPosition()===this.productsTotal+this.itemsOnScreen?(this.currentProductIndex=0,requestAnimationFrame((()=>this.reelElm.style.setProperty("--carousel-position",this.calculateReelPosition())))):0===this.calculateReelPosition()&&(this.currentProductIndex=this.productsTotal-this.itemsOnScreen,requestAnimationFrame((()=>this.reelElm.style.setProperty("--carousel-position",this.calculateReelPosition())))),this.animationFlag=!1}),{once:!0}),requestAnimationFrame((()=>this.reelElm.style.setProperty("--carousel-position",this.calculateReelPosition())))}nextProduct(){this.currentProductIndex++,this.jumpToProduct()}prevProduct(){this.currentProductIndex--,this.jumpToProduct()}runAutoplay(){this.options.autoplay&&!this.isInIframe&&(this.options.isCMS?this.autoplay=setTimeout((()=>{this.nextProduct(),this.stopAutoplay()}),this.options.autoplayTimeout):this.autoplay=setInterval((()=>this.nextProduct()),this.options.autoplayTimeout))}stopAutoplay(){this.options.autoplay&&!1!==this.autoplay&&(clearInterval(this.autoplay),this.autoplay=!1)}hideCarouselControls(){this.carouselElm.classList.add("static"),this.navNextElm.classList.add("hide"),this.navNextElm.classList.remove("show"),this.navPrevElm.classList.add("hide"),this.navPrevElm.classList.remove("show")}showCarouselControls(){this.carouselElm.classList.remove("static"),this.navNextElm.classList.add("show"),this.navNextElm.classList.remove("hide"),this.navPrevElm.classList.add("show"),this.navPrevElm.classList.remove("hide")}clearReel(){this.carouselElm.querySelectorAll(".clone").forEach((e=>e.remove()))}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}cloneItem(e,t){const n=this.productsElements[e].className.replace("original","clone").trim(),i=document.createElement("div");i.className=n,i.setAttribute("data-clone-id",e),i.innerHTML=this.productsElements[e].querySelector(".item-wrapper").outerHTML,i.querySelector(".thumbnail")?.removeAttribute("id"),"before"===t?this.reelElm.prepend(i):this.reelElm.append(i)}createClones(){for(let e=this.productsElements.length-1;e>this.productsElements.length-1-this.itemsOnScreen;e--)this.cloneItem(e,"before");for(let e=0;e<this.itemsOnScreen;e++)this.cloneItem(e,"after")}resizeCarousel(){const e=this.getItemsOnScreen();e!==this.itemsOnScreen&&(this.itemsOnScreen=e,this.clearReel(),this.productsTotal>this.itemsOnScreen?(this.createClones(),this.prepareReel()):(this.clearReel(),this.prepareReel(),this.hideCarouselControls(),this.stopAutoplay())),(0,i.Zg)(this.carouselElm)}init(){this.clearReel(),this.productsTotal>this.itemsOnScreen?(this.createClones(),this.prepareReel(),this.showCarouselControls(),this.bindControls(),this.runAutoplay()):(this.clearReel(),this.prepareReel(),this.hideCarouselControls(),this.stopAutoplay()),this.carouselElm.classList.remove("not-loaded"),(0,i.Zg)(this.carouselElm);new ResizeObserver((()=>{this.resizeCarousel()})).observe(this.carouselElm)}}const l=a;(0,i.Gc)((()=>{const e=e=>{e.classList.contains("b-e-s")?requestAnimationFrame((()=>new o(e,{isCMS:(0,i.a1)(),autoplay:!1}))):e.classList.contains("b-e-car")?requestAnimationFrame((()=>new l(e,{isCMS:(0,i.a1)(),autoplay:!1}))):e.classList.contains("b-e-g")&&requestAnimationFrame((()=>new s(e)))};document.body.addEventListener("wnd-dynamic-content-change",(t=>{t.target.classList.contains("b-e")&&e(t.target)})),document.querySelectorAll(".b-e").forEach((t=>e(t)))}))},434:(e,t,n)=>{"use strict";var i=n(730);function s(e){this.formElm=e,this.bindStandardInputs=function(){let e=this.formElm.querySelectorAll(".watch-change input");e=e||[],e.forEach((e=>{["keyup"," blur","input","change","click"].forEach((t=>{e.addEventListener(t,(e=>{e.target.value.length>0?e.target.classList.add("not-empty"):e.target.classList.remove("not-empty")}))}))}))},this.bindSelectInputs=function(){let e=this.formElm.querySelectorAll("select");e=e||[],e.forEach((e=>{e.addEventListener("focus",(e=>{e.target.classList.remove("not-clicked")}))}))},this.bindTextareas=function(){let e=this.formElm.querySelectorAll("textarea");e=e||[],e.forEach((e=>{["keyup"," blur"].forEach((t=>{e.addEventListener(t,(e=>{e.target.value.length>0?e.target.classList.add("not-empty"):e.target.classList.remove("not-empty")}))}))}))},this.resizeTextarea=function(e){const t=e;t.style.height="",t.style.height=`${t.scrollHeight+2}px`},this.bindTextareaResize=function(){let e=this.formElm.querySelectorAll("textarea");e=e||[],e.forEach((e=>{["input"].forEach((t=>{e.addEventListener(t,(()=>{this.resizeTextarea(e)}))}))}))},this.bindNumberInputs=function(){let e=null,t=this.formElm.querySelectorAll(".form-number button");t=t||[],t.forEach((t=>{["mousedown"," touchstart","click"].forEach((n=>{t.addEventListener(n,(t=>{if(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),null===e)e=t.type;else if(t.type!==e)return;const n=t.target,s=n.parentNode.previousElementSibling.previousElementSibling;s.focus(),(0,i.kf)(s.value)?n.classList.contains("form-number-plus")?s.value=parseInt(s.value,10)+1:s.value=parseInt(s.value,10)-1:void 0!==s.value.length&&0!==s.value.length||(n.classList.contains("form-number-plus")?s.value=1:s.value=-1),s.classList.contains("not-empty")||s.classList.add("not-empty")}))}))}))},this.bindFileInputs=function(){let e=this.formElm.querySelectorAll(".form-file input");e=e||[],e.forEach((e=>{e.addEventListener("change",(e=>{setTimeout((()=>{const t=e.target.parentNode.parentNode.querySelector(".form-file-text").innerHTML;t.lastIndexOf("\\")>-1&&(e.target.parentNode.parentNode.querySelector(".form-file-text").textContent=t.substr(t.lastIndexOf("\\")+1)),""!==e.target.value&&void 0!==e.target.value?e.target.parentNode.parentNode.classList.add("not-empty"):e.target.parentNode.parentNode.classList.remove("not-empty")}),1)}));e.closest(".form-input").querySelector(".form-file-remove").addEventListener("click",(e=>{const t=e.target.parentNode;t.querySelector("input").value="",t.classList.remove("not-empty"),t.classList.contains("wnd-required")&&t.classList.add("wnd-validate-error"),setTimeout((()=>{t.querySelector(".form-file-text").textContent=""}),350)}))}))},this.onFormLoad=function(){let e=this.formElm.querySelectorAll(".form-input");e=e||[],e.forEach((e=>{if(e.classList.contains("form-select"))!(0,i.a1)()&&e.closest(".form").querySelectorAll(".wnd-validate-error").length>0&&e.find("select").removeClass("not-clicked");else if(e.classList.contains("form-textarea")){const t=e.querySelector("textarea");t.value.length>0&&t.classList.add("not-empty")}else if(e.classList.contains("form-email")){const t=e.querySelector("input");t.value.length>0&&"@"!==t.value&&t.classList.add("not-empty")}else{const t=e.querySelector("input");void 0!==t.value&&t.value.length>0&&t.classList.add("not-empty")}}))},this.onSubmit=function(){const e=this.formElm.querySelector("form:not(.wnd-form-submitted)");e&&this.formElm.querySelector(".form-submit").addEventListener("click",(()=>{if(!1===e.checkValidity()){let t=e.querySelectorAll("select");t=t||[],t.forEach((e=>{e.classList.remove("not-clicked")}))}}))},this.init=function(){this.bindStandardInputs(),this.bindSelectInputs(),this.bindTextareas(),this.bindTextareaResize(),this.bindNumberInputs(),this.bindFileInputs(),this.onFormLoad(),this.onSubmit()}}(0,i.Gc)((()=>{let e=document.querySelectorAll(".form.b-form-light");e=e||[],e.forEach((e=>{new s(e).init()}))}))},243:(e,t,n)=>{"use strict";var i=n(730);(0,i.Gc)((()=>{(0,i.a1)()||document.querySelector(".s-hn-bottom")&&!document.querySelector(".s-hn")?.classList.contains("hm-hidden")&&document.body.classList.contains("wnd-free-bar-fixed")&&(document.body.classList.remove("wnd-free-bar-fixed"),document.body.classList.add("wnd-free-bar-default"))}))},412:(e,t,n)=>{"use strict";var i=n(471),s=n(723),r=n(713),o=n.n(r),a=n(985),l="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryImage.jsx";const c=e=>{let{itemData:t,imageSizes:n}=e;return i.createElement("div",{className:"b-gal-img bor-rad",__self:void 0,__source:{fileName:l,lineNumber:16,columnNumber:2}},i.createElement("div",{className:"b-gal-img-pos",__self:void 0,__source:{fileName:l,lineNumber:17,columnNumber:3}},i.createElement("div",{className:"b-gal-img-wrap",__self:void 0,__source:{fileName:l,lineNumber:18,columnNumber:4}},i.createElement(a.A,{imageData:t,imageSizes:n,__self:void 0,__source:{fileName:l,lineNumber:19,columnNumber:5}}))))};c.propTypes={itemData:o().object,imageSizes:o().string};const u=c;const d=e=>{let{itemData:t}=e;const n=t;return i.createElement("div",{className:"b-gal-t bor-rad",key:n.id,__self:void 0,__source:{fileName:"C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryTitle.jsx",lineNumber:20,columnNumber:3}},n.title)};d.propTypes={itemData:o().object};const p=d;var h="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryItem.jsx";const m=i.forwardRef(((e,t)=>{let n={};"photoFeed"===e.galleryData.variant&&(n={gridRowEnd:e.itemSpanValues[e.itemIndex]}),"horizontalFeed"===e.galleryData.variant&&(n={"--width":e.itemData.size.width,"--height":e.itemData.size.height});const s=e.isClone?"b-gal-item clone":"b-gal-item original";return i.createElement("div",{className:s,ref:t,style:n,__self:void 0,__source:{fileName:h,lineNumber:38,columnNumber:3}},i.createElement("a",{className:"b-gal-a litebox bor-rad","data-litebox-group":"gallery","data-litebox-text":e.itemData.title,href:e.itemData.img.src,width:e.itemData.size.width,height:e.itemData.size.height,__self:void 0,__source:{fileName:h,lineNumber:41,columnNumber:4}},i.createElement("div",{className:"b-gal-img-outer",__self:void 0,__source:{fileName:h,lineNumber:48,columnNumber:5}},i.createElement(u,{itemData:e.itemData,imageSizes:e.imageSizes,__self:void 0,__source:{fileName:h,lineNumber:49,columnNumber:6}}),i.createElement(p,{itemData:e.itemData,__self:void 0,__source:{fileName:h,lineNumber:54,columnNumber:6}}))))}));var f="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryEmpty.jsx";const g=e=>{let{locEmptyGalleryTitle:t,locEmptyGalleryText:n}=e;return i.createElement("div",{className:"wnd-empty-placeholder","data-testid":"gallery-empty",__self:void 0,__source:{fileName:f,lineNumber:9,columnNumber:2}},i.createElement("p",{__self:void 0,__source:{fileName:f,lineNumber:10,columnNumber:3}},i.createElement("strong",{__self:void 0,__source:{fileName:f,lineNumber:11,columnNumber:4}},t),i.createElement("br",{__self:void 0,__source:{fileName:f,lineNumber:12,columnNumber:4}}),n))};var v="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryClassic.jsx";const y=e=>{let{galleryData:t,gridClass:n,locEmptyGalleryText:s,locEmptyGalleryTitle:r}=e,o="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw";return 2===t.gridCount?o="(min-width: 768px) calc(100vw * 0.4), (min-width: 320px) calc(100vw * 0.5), 100vw":3===t.gridCount?o="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw":4!==t.gridCount&&5!==t.gridCount||(o="(min-width: 768px) calc(100vw * 0.2), (min-width: 320px) calc(100vw * 0.5), 100vw"),i.createElement("div",{className:`b-gal-classic b-gal-grid ${n} `,__self:void 0,__source:{fileName:v,lineNumber:29,columnNumber:3}},t.items&&t.items.length?t.items.map((e=>i.createElement(m,{key:e.id,itemData:e,imageSizes:o,galleryData:t,__self:void 0,__source:{fileName:v,lineNumber:38,columnNumber:5}}))):i.createElement(g,{locEmptyGalleryTitle:r,locEmptyGalleryText:s,__self:void 0,__source:{fileName:v,lineNumber:44,columnNumber:9}}))};y.propTypes={itemData:o().object,galleryData:o().object,locEmptyGalleryTitle:o().string,locEmptyGalleryText:o().string};const b=y;var w="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryFeed.jsx";const S=e=>{let{galleryData:t,gridClass:n,gridCount:s,galleryElement:r,locEmptyGalleryTitle:o,locEmptyGalleryText:a}=e;const[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)([]),p=(0,i.useRef)([]),h=(0,i.useRef)(null);let f="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw";2===t.gridCount?f="(min-width: 768px) calc(100vw * 0.4), (min-width: 320px) calc(100vw * 0.5), 100vw":3===t.gridCount?f="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw":4!==t.gridCount&&5!==t.gridCount||(f="(min-width: 768px) calc(100vw * 0.2), (min-width: 320px) calc(100vw * 0.5), 100vw");return(0,i.useEffect)((()=>{const e=()=>{(e=>{const t=[];p.current.forEach(((n,i)=>{const s=n.querySelector(".b-gal-img-outer").clientHeight,r=window.getComputedStyle(e.querySelector(".b-gal-feed")).getPropertyValue("grid-column-gap").slice(0,-2);t[i]=`span ${Math.ceil(s/2+r/2)}`,d(t)}))})(r)};return e(),window.addEventListener("resize",e),r.addEventListener("photoGalleryUpdated",e),document.body.addEventListener("wnd-content-change",e),()=>{window.removeEventListener("resize",e),r.removeEventListener("photoGalleryUpdated",e),document.body.removeEventListener("wnd-content-change",e)}}),[n]),(0,i.useEffect)((()=>{p.current=p.current.slice(0,t.items.length)}),[t.items]),i.createElement("div",{className:`b-gal-feed b-gal-grid ${n} `,ref:h,__self:void 0,__source:{fileName:w,lineNumber:92,columnNumber:3}},t.items.length?t.items.map(((e,n)=>i.createElement(m,{key:e.id,itemData:e,itemSpanValues:u,itemIndex:n,galleryData:t,ref:e=>p.current[n]=e,imageSizes:f,__self:void 0,__source:{fileName:w,lineNumber:95,columnNumber:5}}))):i.createElement(g,{locEmptyGalleryTitle:o,locEmptyGalleryText:a,__self:void 0,__source:{fileName:w,lineNumber:104,columnNumber:9}}))};S.propTypes={galleryData:o().object,galleryElement:o().object,gridClass:o().string,gridCount:o().string,locEmptyGalleryTitle:o().string,locEmptyGalleryText:o().string};const _=S;var E="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\general\\js\\Bullets.jsx";const x=e=>{const t=e.items.length>e.maxBullets?3*e.items.length:e.items.length>1?e.items.length:0,n=e.items.length>e.maxBullets?12*(t-9)+126:14*e.items.length;function s(t,n){let i,s="";if(i=t<0?e.items.length+t:t>e.items.length-1?t%e.items.length:t,s+=i===n?" active":"",e.items.length>e.maxBullets){const t=0===i?e.items.length-1:i-1,r=i===e.items.length-1?0:i+1;s+=n===t||n===r?" large":""}return s}return i.createElement("div",{className:"dots-content "+(e.items.length>e.maxBullets?"infinite":"centered"),__self:void 0,__source:{fileName:E,lineNumber:92,columnNumber:3}},i.createElement("ul",{style:e.items.length>e.maxBullets?{width:`${n}px`,marginLeft:`${function(){let t,n;return e.currentIndex<=0?(t=e.items.length-4,n=2+e.currentIndex):e.currentIndex<e.items.length-1?(t=e.items.length-4+(e.currentIndex-1),n=3):(t=2*(e.items.length-3)-1,n=e.currentIndex-(e.items.length-1)+4),-1*(12*t+14*n)}()}px`}:{},__self:void 0,__source:{fileName:E,lineNumber:93,columnNumber:4}},e.items.length>e.maxBullets&&e.items.map(((t,n)=>i.createElement("li",{className:`clone ${s(e.currentIndex,n)}`,key:`L${t.id}`,onClick:()=>{e.navAction(-1*e.items.length+n)},__self:void 0,__source:{fileName:E,lineNumber:95,columnNumber:44}}))),e.items.length>1&&e.items.map(((t,n)=>i.createElement("li",{className:`original ${s(e.currentIndex,n)}`,key:t.id,onClick:()=>{e.navAction(n)},__self:void 0,__source:{fileName:E,lineNumber:97,columnNumber:44}}))),e.items.length>e.maxBullets&&e.items.map(((t,n)=>i.createElement("li",{className:`clone ${s(e.currentIndex,n)}`,key:`R${t.id}`,onClick:()=>{e.navAction(n+e.items.length)},__self:void 0,__source:{fileName:E,lineNumber:99,columnNumber:45}})))))};var N=n(730),L="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GallerySlideshow.jsx";const k=e=>{let{galleryData:t,locEmptyGalleryTitle:n,locEmptyGalleryText:s}=e;const r="100vw",o=!0,a="5000",l=5,[c,u]=(0,i.useState)({currentIndex:0,itemWidth:0}),[d,p]=(0,i.useState)(!1),[h,f]=(0,i.useState)(0),v=(0,i.useRef)(h),y=(0,i.useRef)(d);(0,i.useEffect)((()=>{v.current=h,y.current=d})),(0,i.useEffect)((()=>{u({currentIndex:0})}),[t.items.length]);const b=()=>{v.current&&(clearInterval(v.current),f(0))},w=()=>{y.current||(p(!0),u((e=>({...e,currentIndex:e.currentIndex-1}))))},S=()=>{y.current||(p(!0),u((e=>({...e,currentIndex:e.currentIndex+1}))))};let _,E;return(0,i.useEffect)((()=>{if(window.addEventListener("resize",b,{once:!0}),o&&t.items.length>1&&!(0,N.a1)()){const e=setInterval(S,a);f(e)}return()=>{window.removeEventListener("resize",b)}}),[]),i.createElement("div",{className:"b-gal-slideshow",__self:void 0,__source:{fileName:L,lineNumber:234,columnNumber:3}},i.createElement("div",{className:"b-gal-c",__self:void 0,__source:{fileName:L,lineNumber:244,columnNumber:4}},i.createElement("div",{className:"b-gal-list "+(d?"transition":""),onTransitionEnd:e=>{(()=>{p(!1);const e=t.items.length;if(c.currentIndex<0||c.currentIndex>e-1){let t=null;c.currentIndex<0?t=e+c.currentIndex:c.currentIndex>=e&&(t=c.currentIndex-e),u((e=>({...e,currentIndex:t})))}})()},style:{"--slideshow-items":(()=>{let e=t.items.length;return t.items.length>1&&(e+=t.items.length>l?4:2),e})(),"--slideshow-position":(()=>{let e=0;return t.items.length>1&&(e+=t.items.length>l?2:1),c.currentIndex+e})()},onTouchStart:e=>{_=e.touches[0].clientX},onTouchEnd:e=>{var t,n;E=e.changedTouches[0].clientX,t=_,n=E,b(),t>n?S():t<n&&w()},__self:void 0,__source:{fileName:L,lineNumber:245,columnNumber:5}},t.items.length>1&&[...t.items].slice(t.items.length-(t.items.length>l?2:1),t.items.length).map((e=>i.createElement(m,{itemData:e,key:`C${e.id}`,itemWidth:c.itemWidth,galleryData:t,imageSizes:r,isClone:!0,__self:void 0,__source:{fileName:L,lineNumber:254,columnNumber:8}}))),!!t.items.length&&t.items.map((e=>i.createElement(m,{itemData:e,key:e.id,itemWidth:c.itemWidth,galleryData:t,imageSizes:r,isClone:!1,__self:void 0,__source:{fileName:L,lineNumber:265,columnNumber:8}}))),t.items.length>1&&[...t.items].slice(0,t.items.length>l?2:1).map((e=>i.createElement(m,{itemData:e,key:`C${e.id}`,itemWidth:c.itemWidth,galleryData:t,imageSizes:r,isClone:!0,__self:void 0,__source:{fileName:L,lineNumber:276,columnNumber:8}})))),i.createElement("button",{className:"arrow arrow-prev "+(t.items.length>1?"show":"hide"),onClick:()=>{b(),w()},__self:void 0,__source:{fileName:L,lineNumber:288,columnNumber:5}},i.createElement("div",{className:"arrow-submit",__self:void 0,__source:{fileName:L,lineNumber:291,columnNumber:6}})),i.createElement("button",{className:"arrow arrow-next "+(t.items.length>1?"show":"hide"),onClick:()=>{b(),S()},__self:void 0,__source:{fileName:L,lineNumber:294,columnNumber:5}},i.createElement("div",{className:"arrow-submit",__self:void 0,__source:{fileName:L,lineNumber:297,columnNumber:6}}))),i.createElement("div",{className:`dots ${t.items.length>1?"show":"hide"} ${d?"transition":""}`,__self:void 0,__source:{fileName:L,lineNumber:304,columnNumber:4}},i.createElement(x,{items:t.items,currentIndex:c.currentIndex,navAction:e=>{b();const n=c.currentIndex,i=e;let s;const r=t.items.length;s=0===n&&i===r-1?c.currentIndex-1:n===r-1&&0===i?c.currentIndex+1:r>l&&(0===n&&i===r-2||1===n&&i===r-1)?c.currentIndex-2:r>l&&(n===r-1&&1===i||n===r-2&&0===i)?c.currentIndex+2:i,p(!0),u((e=>({...e,currentIndex:s})))},maxBullets:l,__self:void 0,__source:{fileName:L,lineNumber:306,columnNumber:5}})),!t.items.length&&i.createElement(g,{locEmptyGalleryTitle:n,locEmptyGalleryText:s,__self:void 0,__source:{fileName:L,lineNumber:315,columnNumber:34}}))};var C="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryHorizontal.jsx";const P=function(e){let{galleryData:t,locEmptyGalleryTitle:n,locEmptyGalleryText:s}=e;const r=(0,i.useRef)(null),o=(0,i.useRef)([]);return i.createElement("div",{className:"b-gal b-gal-horizontal",ref:r,__self:this,__source:{fileName:C,lineNumber:20,columnNumber:3}},i.createElement("div",{className:"b-gal-list",__self:this,__source:{fileName:C,lineNumber:21,columnNumber:4}},t.items.length?t.items.map(((e,n)=>i.createElement(m,{listItemClass:"b-gal-item",key:e.id,itemData:e,galleryData:t,ref:e=>o.current[n]=e,imageSizes:"(min-width: 768px) calc(100vw * 0.2), (min-width: 320px) calc(100vw * 0.5), 100vw",galleryRef:r,galleryItems:o.current,index:n,__self:this,__source:{fileName:C,lineNumber:25,columnNumber:8}}))):i.createElement(g,{locEmptyGalleryTitle:n,locEmptyGalleryText:s,__self:this,__source:{fileName:C,lineNumber:37,columnNumber:11}})))};const T=e=>{let{galleryData:t,onRendered:n,galleryElement:s,locEmptyGalleryTitle:r,locEmptyGalleryText:o}=e;const[a,l]=(0,i.useState)(t),[c,u]=(0,i.useState)(`grid-${t.gridCount}`),[d,p]=(0,i.useState)(t.variant);(0,i.useEffect)((()=>{const e=e=>{const t=JSON.parse(e.detail.data),n=`grid-${t.gridCount}`,i=t.variant;l({...t}),u(n),p(i)};return s.addEventListener("photoGalleryUpdated",e),n&&n(),()=>{s.removeEventListener("photoGalleryUpdated",e)}}),[]),(0,i.useEffect)((()=>{(0,N.Zg)(s)}),[a]);const h={default:b,photoFeed:_,slideshow:k,horizontalFeed:P}[d]||b;return i.createElement(h,{galleryData:a,gridClass:c,locEmptyGalleryTitle:r,locEmptyGalleryText:o,galleryElement:s,__self:void 0,__source:{fileName:"C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\Gallery.jsx",lineNumber:81,columnNumber:3}})};T.propTypes={galleryData:o().object,gridClass:o().string};const A=T;var I=n(437),z="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\gallery\\js\\GalleryApp.js";let O=0,D=document.querySelectorAll(".gal-app").length;function q(e){const t=JSON.parse(e.dataset.content);e.removeAttribute("data-content");s.createRoot(e).render(i.createElement(A,{galleryData:t,onRendered:()=>{O++,O===D&&(0,I.P)()},galleryElement:e,locEmptyGalleryTitle:wnd.$system.labels["wnd.pc.PhotoGalleryBlock.placeholder.title"],locEmptyGalleryText:wnd.$system.labels["wnd.pc.PhotoGalleryBlock.placeholder.text"],__self:this,__source:{fileName:z,lineNumber:36,columnNumber:3}}))}document.querySelectorAll(".gal-app").forEach((e=>{q(e)})),document.body.addEventListener("wnd-block-added",(function(e){const t=document.getElementById(e.detail.id);t.classList.contains("gal-app")&&(t.classList.add("b","b-s"),q(t)),D=document.querySelectorAll(".gal-app").length}))},985:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(471),s="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\general\\js\\Picture.jsx";const r=e=>{const[t,n]=(0,i.useState)(!1);const r=e.imageSizes?e.imageSizes:"(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw",o=e.imageData.sources.some((e=>"image/webp"===e.mimeType))?e.imageData.sources.filter((e=>"image/webp"===e.mimeType)):e.imageData.sources;return i.createElement("picture",{onLoad:e=>{n(!0)},className:t?"":"ldng",__self:void 0,__source:{fileName:s,lineNumber:22,columnNumber:3}},o.map(((e,t)=>i.createElement("source",{key:t,type:e.mimeType,sizes:r,srcSet:e.sizes.map((e=>`${e.src} ${e.width}w`)),className:"img bor-rad",__self:void 0,__source:{fileName:s,lineNumber:25,columnNumber:5}}))),i.createElement("img",{src:e.imageData.img.src,alt:e.imageData.title,width:e.imageData.size.width,height:e.imageData.size.height,style:{aspectRatio:e.imageData.aspectRatio.replace(":","/")},loading:"lazy",className:"img bor-rad",__self:void 0,__source:{fileName:s,lineNumber:34,columnNumber:4}}))}},63:(e,t,n)=>{"use strict";(0,n(730).Gc)((()=>{if(document.getElementById("fb-customer-chat")){const e=document.getElementById("fb-root");document.querySelector(".l-w").insertAdjacentElement("beforeend",e)}}))},952:(e,t,n)=>{"use strict";var i=n(471),s=n(723),r="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\ProductTitle.jsx";const o=e=>i.createElement("span",{className:"prd-title",__self:void 0,__source:{fileName:r,lineNumber:4,columnNumber:2}},i.createElement("span",{className:"prd-title-c",__self:void 0,__source:{fileName:r,lineNumber:5,columnNumber:3}},e.title));var a="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\ProductRibbon.jsx";const l=e=>i.createElement("span",{className:"prd-label",__self:void 0,__source:{fileName:a,lineNumber:4,columnNumber:2}},i.createElement("span",{className:"prd-label-c",__self:void 0,__source:{fileName:a,lineNumber:5,columnNumber:3}},e.text));var c="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\ProductOutOfStock.jsx";const u=e=>i.createElement("span",{className:"prd-label prd-out-of-stock",__self:void 0,__source:{fileName:c,lineNumber:4,columnNumber:2}},i.createElement("span",{className:"prd-label-c prd-out-of-stock-c",__self:void 0,__source:{fileName:c,lineNumber:5,columnNumber:3}},e.text));var d="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\ProductPrice.jsx";const p=e=>i.createElement("span",{className:"prd-price",__self:void 0,__source:{fileName:d,lineNumber:4,columnNumber:2}},e.price.prefixText&&i.createElement("span",{className:"prd-price-pref-text",dangerouslySetInnerHTML:{__html:e.price.prefixText},__self:void 0,__source:{fileName:d,lineNumber:6,columnNumber:7}}),e.price.prefix&&i.createElement("span",{className:"prd-price-pref",dangerouslySetInnerHTML:{__html:e.price.prefix},__self:void 0,__source:{fileName:d,lineNumber:10,columnNumber:7}}),i.createElement("span",{className:"prd-price-c",dangerouslySetInnerHTML:{__html:e.price.value},__self:void 0,__source:{fileName:d,lineNumber:13,columnNumber:3}}),e.price.suffix&&i.createElement("span",{className:"prd-price-suf",dangerouslySetInnerHTML:{__html:e.price.suffix},__self:void 0,__source:{fileName:d,lineNumber:17,columnNumber:7}}),e.price.suffixText&&i.createElement("span",{className:"prd-price-suf-text",dangerouslySetInnerHTML:{__html:e.price.suffixText},__self:void 0,__source:{fileName:d,lineNumber:21,columnNumber:7}}));var h="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\ProductComparativePrice.jsx";const m=e=>i.createElement("span",{className:"prd-price prd-price-com",__self:void 0,__source:{fileName:h,lineNumber:5,columnNumber:2}},e.price.prefixText&&i.createElement("span",{className:"prd-price-pref-text",dangerouslySetInnerHTML:{__html:e.price.prefixText},__self:void 0,__source:{fileName:h,lineNumber:7,columnNumber:7}}),e.price.prefix&&i.createElement("span",{className:"prd-price-pref",dangerouslySetInnerHTML:{__html:e.price.prefix},__self:void 0,__source:{fileName:h,lineNumber:11,columnNumber:7}}),i.createElement("span",{className:"prd-price-c",dangerouslySetInnerHTML:{__html:e.price.value},__self:void 0,__source:{fileName:h,lineNumber:14,columnNumber:3}}),e.price.suffix&&i.createElement("span",{className:"prd-price-suf",dangerouslySetInnerHTML:{__html:e.price.suffix},__self:void 0,__source:{fileName:h,lineNumber:18,columnNumber:7}}),e.price.suffixText&&i.createElement("span",{className:"prd-price-suf-text",dangerouslySetInnerHTML:{__html:e.price.suffixText},__self:void 0,__source:{fileName:h,lineNumber:22,columnNumber:7}}));var f=n(985),g="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\general\\js\\Thumbnail.jsx";const v=e=>i.createElement("div",{className:"b-tb",__self:void 0,__source:{fileName:g,lineNumber:6,columnNumber:3}},e.imageData&&i.createElement(f.A,{imageData:e.imageData,imageSizes:e.imageSizes,__self:void 0,__source:{fileName:g,lineNumber:8,columnNumber:8}}));var y="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopGridItem.jsx";const b=e=>i.createElement("article",{className:"item "+(e.itemData.image?"":"wnd-empty-thumbnail"),__self:void 0,__source:{fileName:y,lineNumber:10,columnNumber:2}},i.createElement("div",{className:"item-wrapper",__self:void 0,__source:{fileName:y,lineNumber:11,columnNumber:3}},i.createElement("a",{href:e.itemData.detailUrl,__self:void 0,__source:{fileName:y,lineNumber:12,columnNumber:4}},i.createElement("div",{className:"item-media",__self:void 0,__source:{fileName:y,lineNumber:13,columnNumber:5}},i.createElement(v,{imageData:e.itemData.image,imageSizes:e.imageSizes,__self:void 0,__source:{fileName:y,lineNumber:14,columnNumber:6}})),i.createElement("div",{className:"item-head",__self:void 0,__source:{fileName:y,lineNumber:16,columnNumber:5}},i.createElement("h2",{className:"item-title",__self:void 0,__source:{fileName:y,lineNumber:17,columnNumber:6}},i.createElement(o,{title:e.itemData.name,__self:void 0,__source:{fileName:y,lineNumber:17,columnNumber:33}})),i.createElement("div",{className:"item-labels label-small",__self:void 0,__source:{fileName:y,lineNumber:18,columnNumber:6}},!e.itemData.available&&i.createElement(u,{text:"Out Of Stock",__self:void 0,__source:{fileName:y,lineNumber:19,columnNumber:37}}),e.itemData.ribbon&&i.createElement(l,{text:e.itemData.ribbon,__self:void 0,__source:{fileName:y,lineNumber:20,columnNumber:33}})),i.createElement("div",{className:"item-price",__self:void 0,__source:{fileName:y,lineNumber:22,columnNumber:6}},i.createElement(p,{price:e.itemData.price,__self:void 0,__source:{fileName:y,lineNumber:23,columnNumber:7}}),e.itemData.comparativePrice&&i.createElement(m,{price:e.itemData.comparativePrice,__self:void 0,__source:{fileName:y,lineNumber:24,columnNumber:43}}))))));var w="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\pager\\js\\Pager.jsx";const S=e=>{const t=e.paginationData;return i.createElement("div",{className:"b b-s-0 b-s-t150 pager",__self:void 0,__source:{fileName:w,lineNumber:9,columnNumber:3}},"default"===t.type&&i.createElement("div",{className:"pager-container",__self:void 0,__source:{fileName:w,lineNumber:12,columnNumber:6}},t.currentPage*t.itemsPerPage-t.itemsPerPage>=0&&i.createElement("a",{href:"/prev",className:"pager-prev wt-bold",onClick:n=>{n.preventDefault(),e.paginationChange(t.currentPage-1)},__self:void 0,__source:{fileName:w,lineNumber:15,columnNumber:9}},"Prev"),t.currentPage*t.itemsPerPage+t.itemsPerPage<t.itemsTotal&&i.createElement("a",{href:"/next",className:"pager-next wt-bold",onClick:n=>{n.preventDefault(),e.paginationChange(t.currentPage+1)},__self:void 0,__source:{fileName:w,lineNumber:28,columnNumber:9}},"Next")),"infinite"===t.type&&i.createElement("div",{className:"pager-container",__self:void 0,__source:{fileName:w,lineNumber:43,columnNumber:6}},(t.currentPage+1)*t.itemsPerPage<t.itemsTotal&&i.createElement("a",{href:"/more",className:"pager-more wt-bold",onClick:n=>{n.preventDefault(),e.paginationChange(t.currentPage+1)},__self:void 0,__source:{fileName:w,lineNumber:46,columnNumber:9}},"SHOW MORE")))};var _="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopFilterTreeItem.jsx";const E=e=>{const[t,n]=(0,i.useState)(!1);return i.createElement("li",{className:"b-e-f-i "+(e.itemData.children.length?"wnd-with-subcategory":""),__self:void 0,__source:{fileName:_,lineNumber:19,columnNumber:3}},i.createElement("a",{href:"#",rel:"nofollow",className:"wnd-link",onClick:t=>{e.filterCategories(t,e.itemData.id)},__self:void 0,__source:{fileName:_,lineNumber:20,columnNumber:4}},e.itemData.title),!!e.itemData.children.length&&i.createElement(N,{categoriesData:e.itemData.children,showChildren:t,level:"max"!==e.level&&e.level<3?e.level+1:"max",filterCategories:e.filterCategories,__self:void 0,__source:{fileName:_,lineNumber:23,columnNumber:6}}),!!(e.itemData.children.length&&e.level<3)&&i.createElement("a",{className:"ef-arrow "+(t?"ef-up":"ef-down"),href:"#",onClick:e=>(e=>{e.preventDefault(),n(!t)})(e),__self:void 0,__source:{fileName:_,lineNumber:32,columnNumber:6}}))};var x="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopFilterTree.jsx";const N=e=>i.createElement("ul",{className:`ef-level-${e.level} ${e.showChildren?"open":""}`,__self:void 0,__source:{fileName:x,lineNumber:5,columnNumber:2}},e.categoriesData.map((t=>i.createElement(E,{itemData:t,key:t.id,level:e.level,filterCategories:e.filterCategories,__self:void 0,__source:{fileName:x,lineNumber:7,columnNumber:4}}))));var L="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopFilterSelect.jsx";const k=e=>{function t(e,t){let n="";for(let e=1;e<t&&e<3;e++)n+="  ",2===e&&(n+="  ");return n.length?`${n}- ${e}`:e}const n=function e(n,i,s){return n.forEach((n=>{i.push({optionValue:n.title,title:t(n.title,s),level:s}),n.children.length>0&&e(n.children,i,s+1)})),i}(e.categoriesData,[],1);return i.createElement("div",{className:"b-e-f-select",__self:void 0,__source:{fileName:L,lineNumber:37,columnNumber:3}},i.createElement("div",{className:"cf",__self:void 0,__source:{fileName:L,lineNumber:38,columnNumber:4}},i.createElement("div",{className:"select",__self:void 0,__source:{fileName:L,lineNumber:39,columnNumber:5}},i.createElement("select",{className:"wnd-filter-select",__self:void 0,__source:{fileName:L,lineNumber:40,columnNumber:6}},n.length&&n.map((e=>i.createElement("option",{value:e.title,key:e.id,__self:void 0,__source:{fileName:L,lineNumber:42,columnNumber:8}},e.title)))))))};var C="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopFilter.jsx";const P=e=>i.createElement("div",{className:"b-e-f",__self:void 0,__source:{fileName:C,lineNumber:7,columnNumber:3}},i.createElement("div",{className:"b-e-f-c",__self:void 0,__source:{fileName:C,lineNumber:8,columnNumber:4}},i.createElement("h3",{className:"b-e-f-title",__self:void 0,__source:{fileName:C,lineNumber:9,columnNumber:5}},"Categories"),i.createElement(N,{categoriesData:e.categoriesData,level:1,filterCategories:e.filterCategories,__self:void 0,__source:{fileName:C,lineNumber:10,columnNumber:5}}),i.createElement(k,{categoriesData:e.categoriesData,filterCategories:e.filterCategories,__self:void 0,__source:{fileName:C,lineNumber:11,columnNumber:5}})));var T="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopSort.jsx";const A=e=>i.createElement("select",{defaultValue:JSON.stringify(e.sortData),onChange:t=>{e.sortChange(t)},style:{position:"relative",top:"-20px"},__self:void 0,__source:{fileName:T,lineNumber:4,columnNumber:2}},i.createElement("option",{value:JSON.stringify({key:null,direction:null}),__self:void 0,__source:{fileName:T,lineNumber:5,columnNumber:3}},"VÝCHOZÍ ŘAZENÍ"),i.createElement("option",{value:JSON.stringify({key:"name",direction:"asc"}),__self:void 0,__source:{fileName:T,lineNumber:6,columnNumber:3}},"OD A DO Z"),i.createElement("option",{value:JSON.stringify({key:"name",direction:"desc"}),__self:void 0,__source:{fileName:T,lineNumber:7,columnNumber:3}},"OD Z DO A"),i.createElement("option",{value:JSON.stringify({key:"price",direction:"asc"}),__self:void 0,__source:{fileName:T,lineNumber:8,columnNumber:3}},"OD NEJLEVNĚJŠÍHO"),i.createElement("option",{value:JSON.stringify({key:"price",direction:"desc"}),__self:void 0,__source:{fileName:T,lineNumber:9,columnNumber:3}},"OD NEJDRAŽŠÍHO"));var I=n(730);const z=JSON.parse('{"variant":"default","gridCount":3,"classes":[],"sort":{"key":null,"direction":null},"filter":{"active":false,"activeCategory":null,"categories":[{"id":5489714,"title":"Category 1","children":[{"id":4556467,"title":"Category 1-1","children":[]},{"id":98765415,"title":"Category 1-2","children":[]}]},{"id":89745646,"title":"Category 2","children":[{"id":524565445,"title":"Category 2-1","children":[{"id":546546514,"title":"Category 2-1-1","children":[{"id":957541235,"title":"Category 2-1-1-1","children":[{"id":1435486746,"title":"Category 2-1-1-1-1","children":[]}]}]}]}]}]},"pagination":{"type":"default","itemsPerPage":3,"itemsTotal":8,"currentPage":0},"items":[{"id":200000007,"name":"1 Litre of longevity","image":{"id":134612168453,"title":"Image title for 1 Litre of longevity","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3w/3wd/3wdysg.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/1b/1bo/700/1bofkp.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}]}]},"detailUrl":"/p/litre-of-longevity/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":"SALE!","available":true},{"id":200000006,"name":"2 Beneficial book","image":{"id":8465486312454,"title":"Image title for 2 Beneficial book","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/0w/0wx/450/0wxpg1.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/0w/0wx/700/0wxpg1.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"}]}]},"detailUrl":"/p/beneficial-book/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"19.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":false},{"id":200000005,"name":"3 Excellent encyclopedia","image":{"id":55654678465415,"title":"Image title for 3 Excellent encyclopedia","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/2n/2na/450/2na8w6.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/2n/2na/700/2na8w6.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"}]}]},"detailUrl":"/p/excellent-encyclopedia/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"79.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000004,"name":"4 Spacious sachet","image":{"id":98745641354654,"title":"Image title for 4 Spacious Sachet","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/30/30y/450/30yuqr.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/30/30y/700/30yuqr.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"}]}]},"detailUrl":"/p/spacious-sachet/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"2.5000","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000003,"name":"5 Pack of popcorn","image":{"id":4568721324545,"title":"Image title for 5 Pack of popcorn","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/0f/0fz/450/0fzrq5.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/0f/0fz/700/0fzrq5.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"}]}]},"detailUrl":"/p/pack-of-popcorn/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.6900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000002,"name":"6 Fancy folder","image":{"id":4565657843545341,"title":"Image title for 6 Fancy folder","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/1y/1yp/450/1yp78v.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/1y/1yp/700/1yp78v.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"}]}]},"detailUrl":"/p/fancy-folder/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"12.3900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000001,"name":"7 Birthday box","image":{"id":123454531545314,"title":"Image title for 7 Birthday box","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/3b/3b6/450/3b6ska.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/3b/3b6/700/3b6ska.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"}]}]},"detailUrl":"/p/birthday-box/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"7.9900","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000000,"name":"8 Bottle of bliss","image":{"id":123454531545314,"title":"Image title for 8 Bottle of bliss","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/1b/1bo/700/1bofkp.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}]}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"200.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true}]}'),O=JSON.parse('{"items":[{"id":200000007,"name":"SR1 Litre of longevity","image":{"id":134612168453,"title":"Image title for 1 Litre of longevity","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3w/3wd/3wdysg.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/3w/3wd/450/3wdysg.png","700":"https://static.d.webnodev.com/files/3w/3wd/700/3wdysg.png","1920":"https://static.d.webnodev.com/files/3w/3wd/3wdysg.png"}}]},"detailUrl":"/p/litre-of-longevity/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":"SALE!","available":true},{"id":200000006,"name":"SR2 Beneficial book","image":{"id":8465486312454,"title":"Image title for 2 Beneficial book","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/0w/0wx/450/0wxpg1.png","700":"https://static.d.webnodev.com/files/0w/0wx/700/0wxpg1.png","1920":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"}}]},"detailUrl":"/p/beneficial-book/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"19.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":false},{"id":200000005,"name":"SR3 Excellent encyclopedia","image":{"id":55654678465415,"title":"Image title for 3 Excellent encyclopedia","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/2n/2na/450/2na8w6.png","700":"https://static.d.webnodev.com/files/2n/2na/700/2na8w6.png","1920":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"}}]},"detailUrl":"/p/excellent-encyclopedia/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"79.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000004,"name":"SR4 Spacious sachet","image":{"id":98745641354654,"title":"Image title for 4 Spacious Sachet","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/30/30y/450/30yuqr.png","700":"https://static.d.webnodev.com/files/30/30y/700/30yuqr.png","1920":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"}}]},"detailUrl":"/p/spacious-sachet/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"2.5000","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000003,"name":"SR5 Pack of popcorn","image":{"id":4568721324545,"title":"Image title for 5 Pack of popcorn","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/0f/0fz/450/0fzrq5.png","700":"https://static.d.webnodev.com/files/0f/0fz/700/0fzrq5.png","1920":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"}}]},"detailUrl":"/p/pack-of-popcorn/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.6900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000002,"name":"SR6 Fancy folder","image":{"id":4565657843545341,"title":"Image title for 6 Fancy folder","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1y/1yp/450/1yp78v.png","700":"https://static.d.webnodev.com/files/1y/1yp/700/1yp78v.png","1920":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"}}]},"detailUrl":"/p/fancy-folder/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"12.3900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000001,"name":"SR7 Birthday box","image":{"id":123454531545314,"title":"Image title for 7 Birthday box","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/3b/3b6/450/3b6ska.png","700":"https://static.d.webnodev.com/files/3b/3b6/700/3b6ska.png","1920":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"}}]},"detailUrl":"/p/birthday-box/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"7.9900","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000000,"name":"SR8 Bottle of bliss","image":{"id":123454531545314,"title":"Image title for 8 Bottle of bliss","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png","700":"https://static.d.webnodev.com/files/1b/1bo/400/1bofkp.png","1920":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"250.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":2000011230,"name":"SR9 Test product 1","image":{"id":123454531545314,"title":"Image title for 9 Test product 1","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png","700":"https://static.d.webnodev.com/files/1b/1bo/400/1bofkp.png","1920":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"200.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":2000011231,"name":"SR10 Test product 2","image":{"id":123454531545314,"title":"Image title for 10 Test product 2","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png","700":"https://static.d.webnodev.com/files/1b/1bo/400/1bofkp.png","1920":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"300.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true}]}');var D="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopEmpty.jsx";const q=()=>i.createElement("div",{className:"wnd-empty-placeholder",__self:void 0,__source:{fileName:D,lineNumber:4,columnNumber:2}},i.createElement("p",{__self:void 0,__source:{fileName:D,lineNumber:5,columnNumber:3}},i.createElement("strong",{__self:void 0,__source:{fileName:D,lineNumber:6,columnNumber:4}},"Products"),i.createElement("br",{__self:void 0,__source:{fileName:D,lineNumber:7,columnNumber:4}}),"This category is empty. Assign products to it or choose another category."));var R="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\general\\js\\AjaxError.jsx";const B=e=>i.createElement("p",{className:"error",__self:void 0,__source:{fileName:R,lineNumber:24,columnNumber:3}},function(t){const n=t.match(/(.*)<link1>(.*)<\/link1>(.*)/);return i.createElement(i.Fragment,null,n[1]&&i.createElement(i.Fragment,null,n[1]),n[2]&&i.createElement("a",{href:"#",onClick:t=>{e.refreshData(t)},__self:this,__source:{fileName:R,lineNumber:16,columnNumber:9}},n[2]),n[3]&&i.createElement(i.Fragment,null,n[3]))}(wnd.$system.labels["wnd.pc.SearchBlock.requestError"]));var F="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\eshop-react\\js\\EshopGrid.jsx";const M=e=>{const t={3:"(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw",4:"(min-width: 900px) calc(100vw * 0.25), (min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw",5:"(min-width: 1200px) calc(100vw * 0.2), (min-width: 900px) calc(100vw * 0.25), (min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw"},[n,s]=(0,i.useState)({active:e.blockData.sort.active,key:e.blockData.sort.key,direction:e.blockData.sort.direction}),[r,o]=(0,i.useState)(!1),[a,l]=(0,i.useState)(!1);function c(e){const t=e.searchString?O:z;return new Promise(((n,i)=>{setTimeout((()=>{var i;n([...t.items].sort((i={key:e.sortKey,direction:e.sortDirection},function(e,t){return"name"===i.key?"asc"===i.direction?e[i.key].localeCompare(t[i.key]):t[i.key].localeCompare(e[i.key]):"price"===i.key?"asc"===i.direction?parseFloat(e[i.key].value)-parseFloat(t[i.key].value):parseFloat(t[i.key].value)-parseFloat(e[i.key].value):1})).slice("infinite"===e.paginationType?0:e.paginationCurrentPage*e.paginationItemsPerPage,"infinite"===e.paginationType?(e.paginationCurrentPage+1)*e.paginationItemsPerPage:e.paginationCurrentPage*e.paginationItemsPerPage+e.paginationItemsPerPage))}),1e3)}))}function u(t){void 0!==e.paginationChange?(o(!0),e.paginationChange(t).then((()=>{l(!1)})).catch((e=>{l(e)})).finally((()=>{o(!1)}))):(o(!0),e.blockElement.dispatchEvent(new CustomEvent("wnd-data-changed",{detail:{offset:"infinite"===e.blockData.pagination.type?0:t*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(t+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:n.key,sortDirection:n.direction,activeCategory:e.blockData.filter.activeCategory,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId}})),(0,I.a1)()||window.history.replaceState(null,null,`?page=${t+1}${null!==n.key?`&sortKey=${n.key}`:""}${null!==n.direction?`&sortDirection=${n.direction}`:""}#${e.blockID}`))}const[d,p]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{d||(o(!0),c({paginationCurrentPage:0,paginationType:e.blockData.pagination.type,paginationItemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:n.key,sortDirection:n.direction}).then((t=>{const n=e.blockData;n.items=t,n.pagination.currentPage=0,e.updateData(n),o(!1)}))),p(!1)}),[e.blockData.pagination.type,e.blockData.pagination.itemsPerPage]),i.createElement("div",{className:`b-e b-e-g show-f b b-s ${"default"===e.blockData.variant?"b-e-sqr":"b-e-n"} grid-${e.blockData.gridCount} ${e.blockData.filter.active?"wnd-show-filter":""} ${r?"wnd-loading":""}`,__self:void 0,__source:{fileName:F,lineNumber:352,columnNumber:3}},i.createElement("div",{className:"b-e-c",__self:void 0,__source:{fileName:F,lineNumber:354,columnNumber:4}},!1!==n.active&&i.createElement(A,{sortChange:function(t){o(!0),e.blockElement.dispatchEvent(new CustomEvent("wnd-data-changed",{detail:{offset:"infinite"===e.blockData.pagination.type?0:e.blockData.pagination.currentPage*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(e.blockData.pagination.currentPage+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:JSON.parse(t.target.value).key,sortDirection:JSON.parse(t.target.value).direction,activeCategory:e.blockData.filter.activeCategory,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId}})),o(!1)},sortData:n,__self:void 0,__source:{fileName:F,lineNumber:355,columnNumber:35}}),!1!==e.blockData.filter.active&&i.createElement(P,{categoriesData:e.blockData.filter.categories,filterCategories:function(t,i){t.preventDefault(),e.blockElement.dispatchEvent(new CustomEvent("wnd-data-changed",{detail:{offset:"infinite"===e.blockData.pagination.type?0:e.blockData.pagination.currentPage*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(e.blockData.pagination.currentPage+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:n.key,sortDirection:n.direction,activeCategory:i,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId}}))},__self:void 0,__source:{fileName:F,lineNumber:356,columnNumber:49}}),i.createElement("div",{className:"b-e-w",__self:void 0,__source:{fileName:F,lineNumber:358,columnNumber:5}},i.createElement("div",{className:"b-e-w-correct",__self:void 0,__source:{fileName:F,lineNumber:359,columnNumber:6}},i.createElement("div",{className:"b-e-box",__self:void 0,__source:{fileName:F,lineNumber:360,columnNumber:7}},!!e.blockData.items.length&&e.blockData.items.map(((n,s)=>i.createElement(b,{itemData:n,key:s,imageSizes:t[e.blockData.gridCount],__self:void 0,__source:{fileName:F,lineNumber:362,columnNumber:54}})))),i.createElement("div",{className:"loading",__self:void 0,__source:{fileName:F,lineNumber:365,columnNumber:7}},i.createElement("div",{className:"loading-loader",__self:void 0,__source:{fileName:F,lineNumber:366,columnNumber:8}}))),e.blockData.pagination.itemsTotal>e.blockData.pagination.itemsPerPage&&i.createElement(S,{paginationData:e.blockData.pagination,paginationChange:u,__self:void 0,__source:{fileName:F,lineNumber:372,columnNumber:8}}),!e.blockData.items.length&&(0,I.a1)()&&i.createElement(q,{__self:void 0,__source:{fileName:F,lineNumber:379,columnNumber:10}}),a&&i.createElement(B,{refreshData:function(t){t.preventDefault(),u(e.blockData.pagination.currentPage)},__self:void 0,__source:{fileName:F,lineNumber:381,columnNumber:20}})),i.createElement("div",{className:"cf",__self:void 0,__source:{fileName:F,lineNumber:385,columnNumber:5}})))};var j="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search-results\\js\\SearchResultsContentItem.jsx";const H=e=>i.createElement("article",{className:"b-sr-ci",__self:void 0,__source:{fileName:j,lineNumber:4,columnNumber:2}},i.createElement("div",{className:"b-sr-ci-head",__self:void 0,__source:{fileName:j,lineNumber:5,columnNumber:3}},i.createElement("h2",{__self:void 0,__source:{fileName:j,lineNumber:6,columnNumber:4}},i.createElement("strong",{__self:void 0,__source:{fileName:j,lineNumber:7,columnNumber:5}},i.createElement("a",{href:e.itemData.detailUrl,dangerouslySetInnerHTML:{__html:e.itemData.name},__self:void 0,__source:{fileName:j,lineNumber:8,columnNumber:6}}))),i.createElement("div",{className:"b-sr-ci-link",__self:void 0,__source:{fileName:j,lineNumber:11,columnNumber:4}},i.createElement("a",{href:e.itemData.detailUrl,__self:void 0,__source:{fileName:j,lineNumber:12,columnNumber:5}},e.itemData.detailUrl))),i.createElement("div",{className:"b-sr-ci-text b-text",dangerouslySetInnerHTML:{__html:e.itemData.longTextWithHighlightedPhrase},__self:void 0,__source:{fileName:j,lineNumber:15,columnNumber:3}}));var $="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search-results\\js\\SearchResultsContentTab.jsx";const U=e=>{const[t,n]=(0,i.useState)(!1),[s,r]=(0,i.useState)(!1);function o(t){n(!0);const i=new URLSearchParams(window.location.search);window.history.replaceState(null,null,`?text=${i.get("text")}&tab=${e.blockData.type}&page=${t+1}`);const s="pages"===e.blockData.type?"searchPages":"searchListingItems",o=e.blockData,a={query:i.get("text"),offset:"infinite"===e.blockData.pagination.type?0:t*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(t+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId},l=`query FetchSearchProducts(\n\t\t\t$query: String!,\n\t\t\t$offset: Int!,\n\t\t\t$limit: Int!,\n\t\t) {\n\t\t\t${s}(\n\t\t\t\tquery: $query\n\t\t\t) {\n\t\t\t\titems(limit: $limit, offset: $offset) {\n\t\t\t\t\tid,\n\t\t\t\t\tname,\n\t\t\t\t\tdetailUrl,\n\t\t\t\t\tshortTextWithHighlightedPhrase(phrase: $query),\n\t\t\t\t\tlongTextWithHighlightedPhrase(phrase: $query)\n\t\t\t\t}\n\t\t\t\tcount\n\t\t\t}\n\t\t}`,c=new Request("/servers/graphql/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:l,variables:a})});fetch(c).then((e=>e.json())).then((e=>{o.items=e.data[s].items,o.pagination.currentPage=t,r(!1)})).catch((e=>{o.pagination.currentPage=t,r(e)})).finally((()=>{e.updateData(o),n(!1)}))}return i.createElement("div",{className:"b-sr-list-results-tab-wrapper "+(t?"wnd-loading":""),__self:void 0,__source:{fileName:$,lineNumber:98,columnNumber:3}},i.createElement("div",{className:"b-sr-list-results-tab-content",__self:void 0,__source:{fileName:$,lineNumber:99,columnNumber:4}},!!e.blockData.pagination.itemsTotal&&!s&&e.blockData.items.map((e=>i.createElement(H,{itemData:e,key:e.id,__self:void 0,__source:{fileName:$,lineNumber:102,columnNumber:47}}))),!e.blockData.pagination.itemsTotal&&!s&&i.createElement("p",{__self:void 0,__source:{fileName:$,lineNumber:105,columnNumber:9}},wnd.$system.labels["wnd.pc.SearchResultsZone.emptyResult"]),s&&i.createElement(B,{refreshData:function(t){t.preventDefault(),o(e.blockData.pagination.currentPage)},__self:void 0,__source:{fileName:$,lineNumber:107,columnNumber:19}})),t&&i.createElement("div",{className:"loading",__self:void 0,__source:{fileName:$,lineNumber:113,columnNumber:6}},i.createElement("div",{className:"loading-loader",__self:void 0,__source:{fileName:$,lineNumber:114,columnNumber:7}})),e.blockData.pagination.itemsTotal>e.blockData.pagination.itemsPerPage&&!s&&i.createElement(S,{paginationData:e.blockData.pagination,paginationChange:o,__self:void 0,__source:{fileName:$,lineNumber:120,columnNumber:6}}))},W="default",V=20,Z=10;var G="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search-results\\js\\SearchResultsComponent.jsx";const Q=e=>{const t=new URLSearchParams(window.location.search).get("text")||e.blockData.searchString||"",n=wnd.$system.hasBlog,s=wnd.$system.isEshop,r=wnd.$system.isCms?!1!==wnd.$system.cmsReleasedFeatures.siteFulltextSearch:!1!==wnd.$system.feReleasedFeatures.siteFulltextSearch;function o(){const e=new URLSearchParams(window.location.search);return parseInt(e.get("page"),10)-1||0}const[a,l]=(0,i.useState)(new URLSearchParams(window.location.search).get("tab")||function(){if(!r)return"products";let i=s?"products":"pages";return e.blockData.searchProducts.count&&s||(e.blockData.searchPages.count?i="pages":e.blockData.searchListingItems.count&&n&&(i="blogposts"),window.history.replaceState(null,null,`?text=${t}&tab=${i}`)),i}());function c(e,n){e.preventDefault(),l(n),function(e){if((0,I.a1)())return;let n=`?text=${t}&tab=${e}`,i=0;switch(e){case"products":i=p.pagination.currentPage;break;case"pages":i=m.pagination.currentPage;break;case"blogposts":i=g.pagination.currentPage}n+=i>0?`&page=${i+1}`:"",window.history.replaceState(null,null,n)}(n)}const u={type:W,itemsPerPage:Z,itemsTotal:0,currentPage:0},d={variant:W,gridCount:4,classes:[],sort:{active:!1,key:null,direction:null},filter:{active:!1,categories:[],activeCategory:null},pagination:{...u,itemsPerPage:V,itemsTotal:e.blockData.searchProducts.count,currentPage:"products"===a?o():0},searchString:t},[p,h]=(0,i.useState)({...d,items:e.blockData.searchProducts.items}),[m,f]=(0,i.useState)({pagination:{...u,itemsTotal:e.blockData.searchPages.count,currentPage:"pages"===a?o():0},items:e.blockData.searchPages.items,type:"pages"}),[g,v]=(0,i.useState)({pagination:{...u,itemsTotal:e.blockData.searchListingItems.count,currentPage:"blogposts"===a?o():0},items:e.blockData.searchListingItems.items,type:"blogposts"});function y(e){switch(a){case"products":h({...e});break;case"pages":f({...e});break;case"blogposts":v({...e})}}return i.createElement(i.Fragment,null,i.createElement("div",{className:"b-sr-head b-text cf",__self:void 0,__source:{fileName:G,lineNumber:293,columnNumber:4}},i.createElement("h1",{className:"b-sr-title",__self:void 0,__source:{fileName:G,lineNumber:294,columnNumber:5}},i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:295,columnNumber:6}},wnd.$system.labels["wnd.pc.SearchResultsZone.title"]," "),i.createElement("strong",{__self:void 0,__source:{fileName:G,lineNumber:296,columnNumber:6}},t))),i.createElement("div",{className:"b-sr-nav line-style line-color cf",__self:void 0,__source:{fileName:G,lineNumber:300,columnNumber:4}},r&&i.createElement("ul",{__self:void 0,__source:{fileName:G,lineNumber:303,columnNumber:9}},s&&i.createElement("li",{__self:void 0,__source:{fileName:G,lineNumber:306,columnNumber:8}},i.createElement("a",{href:"#products",className:"b-sr-tab "+("products"===a?"active":""),onClick:e=>{c(e,"products")},__self:void 0,__source:{fileName:G,lineNumber:307,columnNumber:9}},i.createElement("span",{className:"wt-bold",__self:void 0,__source:{fileName:G,lineNumber:308,columnNumber:10}},wnd.$system.labels["wnd.pc.SearchResultsZone.productsTitle"]),i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:309,columnNumber:10}}," (",p.pagination.itemsTotal,")"))),i.createElement("li",{__self:void 0,__source:{fileName:G,lineNumber:313,columnNumber:6}},i.createElement("a",{href:"#pages",className:"b-sr-tab "+("pages"===a?"active":""),onClick:e=>{c(e,"pages")},__self:void 0,__source:{fileName:G,lineNumber:314,columnNumber:7}},i.createElement("span",{className:"wt-bold",__self:void 0,__source:{fileName:G,lineNumber:315,columnNumber:8}},wnd.$system.labels["wnd.pc.SearchResultsZone.pagesTitle"]),i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:316,columnNumber:8}}," (",m.pagination.itemsTotal,")"))),n&&i.createElement("li",{__self:void 0,__source:{fileName:G,lineNumber:321,columnNumber:8}},i.createElement("a",{href:"#blogPosts",className:"b-sr-tab "+("blogposts"===a?"active":""),onClick:e=>{c(e,"blogposts")},__self:void 0,__source:{fileName:G,lineNumber:322,columnNumber:9}},i.createElement("span",{className:"wt-bold",__self:void 0,__source:{fileName:G,lineNumber:323,columnNumber:10}},wnd.$system.labels["wnd.pc.SearchResultsZone.listingItemsTitle"]),i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:324,columnNumber:10}}," (",g.pagination.itemsTotal,")"))))),i.createElement("div",{className:"b-sr-main cf",__self:void 0,__source:{fileName:G,lineNumber:331,columnNumber:4}},s&&i.createElement("div",{className:"b-sr-list-results-tab "+("products"===a?"active":""),__self:void 0,__source:{fileName:G,lineNumber:335,columnNumber:7}},p.pagination.itemsTotal>0&&i.createElement(M,{blockData:p,blockID:e.blockID,updateData:y,paginationChange:function(e){return new Promise(((n,i)=>{(0,I.a1)()||window.history.replaceState(null,null,`?text=${t}&tab=products&page=${e+1}`);const s={query:t,offset:"infinite"===p.pagination.type?0:e*p.pagination.itemsPerPage,limit:"infinite"===p.pagination.type?(e+1)*p.pagination.itemsPerPage:p.pagination.itemsPerPage,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId},r=new Request("/servers/graphql/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:"query FetchSearchProducts(\n\t\t\t\t$query: String!,\n\t\t\t\t$offset: Int!,\n\t\t\t\t$limit: Int!,\n\t\t\t) {\n\t\t\t    searchProducts(\n\t\t\t        query: $query\n\t\t\t    ) {\n\t\t\t        items(limit: $limit, offset: $offset) {\n\t\t\t            id,\n\t\t\t            name,\n\t\t\t            nameWithHighlightedPhrase(phrase: $query),\n\t\t\t            description,\n\t\t\t            image {id, title, orientation, aspectRatio, size {width, height}, img {mimeType, src}, sources {mimeType, sizes {width, height, src}}},\n\t\t\t            detailUrl,\n\t\t\t            price {prefixText, prefix, value, suffix, suffixText},\n\t\t\t            comparativePrice {prefix, value, suffix},\n\t\t\t            ribbon,\n\t\t\t            available\n\t\t\t        }\n\t\t\t        count\n\t\t\t    }\n\t\t\t}",variables:s})});fetch(r).then((e=>e.json())).then((t=>{const i=p;i.items=t.data.searchProducts.items,i.pagination.currentPage=e,h(i),n(!0)})).catch((e=>{i(e)}))}))},__self:void 0,__source:{fileName:G,lineNumber:336,columnNumber:51}}),0===p.pagination.itemsTotal&&i.createElement("div",{className:"b-sr-list-results-tab-wrapper",__self:void 0,__source:{fileName:G,lineNumber:339,columnNumber:10}},i.createElement("div",{className:"b-sr-list-results-tab-content",__self:void 0,__source:{fileName:G,lineNumber:340,columnNumber:11}},i.createElement("p",{__self:void 0,__source:{fileName:G,lineNumber:341,columnNumber:12}},wnd.$system.labels["wnd.pc.SearchResultsZone.emptyResult"])))),r&&i.createElement("div",{className:"b-sr-list-results-tab "+("pages"===a?"active":""),__self:void 0,__source:{fileName:G,lineNumber:349,columnNumber:9}},i.createElement(U,{blockData:m,blockID:e.blockID,updateData:y,__self:void 0,__source:{fileName:G,lineNumber:350,columnNumber:6}})),r&&n&&i.createElement("div",{className:"b-sr-list-results-tab "+("blogposts"===a?"active":""),__self:void 0,__source:{fileName:G,lineNumber:354,columnNumber:9}},i.createElement(U,{blockData:g,blockID:e.blockID,updateData:y,__self:void 0,__source:{fileName:G,lineNumber:355,columnNumber:6}}))))};const Y="data-content",K=document.querySelector(".s-srd-rr");if(K){const e=JSON.parse(K.getAttribute(Y));K.removeAttribute(Y),(0,s.createRoot)(K).render(i.createElement(Q,{blockData:e,blockElement:K,__self:void 0,__source:{fileName:"C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search-results\\js\\SearchResultsApp.jsx",lineNumber:22,columnNumber:3}})),K.classList.remove("wnd-loading"),(0,I.Zg)(K)}},175:(e,t,n)=>{"use strict";var i=n(471),s=n(723);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var d="function"==typeof Symbol&&Symbol.observable||"@@observable",p=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+p(),REPLACE:"@@redux/REPLACE"+p(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+p()}};function m(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(u(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(u(2));var s=e,r=t,o=[],a=o,l=!1;function c(){a===o&&(a=o.slice())}function p(){if(l)throw new Error(u(3));return r}function g(e){if("function"!=typeof e)throw new Error(u(4));if(l)throw new Error(u(5));var t=!0;return c(),a.push(e),function(){if(t){if(l)throw new Error(u(6));t=!1,c();var n=a.indexOf(e);a.splice(n,1),o=null}}}function v(e){if(!m(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(l)throw new Error(u(9));try{l=!0,r=s(r,e)}finally{l=!1}for(var t=o=a,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:h.INIT}),(i={dispatch:v,subscribe:g,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw new Error(u(10));s=e,v({type:h.REPLACE})}})[d]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[d]=function(){return this},e},i}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var v=n(673),y=n(204),b=n(834);let w=function(e){e()};const S=()=>w,_=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function x(){var e;if(!i.createContext)return{};const t=null!=(e=E[_])?e:E[_]=new Map;let n=t.get(i.createContext);return n||(n=i.createContext(null),t.set(i.createContext,n)),n}const N=x();let L=null;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},k.apply(null,arguments)}function C(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}var P=n(151),T=n.n(P),A=n(166);const I=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,i,s){let r,o,a,l,c,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:p}=s,h=!1;function m(s,h){const m=!d(h,o),f=!u(s,r,h,o);return r=s,o=h,m&&f?(a=e(r,o),t.dependsOnOwnProps&&(l=t(i,o)),c=n(a,l,o),c):m?(e.dependsOnOwnProps&&(a=e(r,o)),t.dependsOnOwnProps&&(l=t(i,o)),c=n(a,l,o),c):f?function(){const t=e(r,o),i=!p(t,a);return a=t,i&&(c=n(a,l,o)),c}():c}return function(s,u){return h?m(s,u):(r=s,o=u,a=e(r,o),l=t(i,o),c=n(a,l,o),h=!0,c)}}function O(e){return function(t){const n=e(t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function D(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function q(e,t){return function(t,n){let{displayName:i}=n;const s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,n){s.mapToProps=e,s.dependsOnOwnProps=D(e);let i=s(t,n);return"function"==typeof i&&(s.mapToProps=i,s.dependsOnOwnProps=D(i),i=s(t,n)),i},s}}function R(e,t){return(n,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function B(e,t,n){return k({},n,e,t)}const F={notify(){},get:()=>[]};function M(e,t){let n,i=F,s=0,r=!1;function o(){c.onStateChange&&c.onStateChange()}function a(){s++,n||(n=t?t.addNestedSub(o):e.subscribe(o),i=function(){const e=S();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let i=!0,s=n={callback:e,next:null,prev:n};return s.prev?s.prev.next=s:t=s,function(){i&&null!==t&&(i=!1,s.next?s.next.prev=s.prev:n=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}())}function l(){s--,n&&0===s&&(n(),n=void 0,i.clear(),i=F)}const c={addNestedSub:function(e){a();const t=i.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:o,isSubscribed:function(){return r},trySubscribe:function(){r||(r=!0,a())},tryUnsubscribe:function(){r&&(r=!1,l())},getListeners:()=>i};return c}const j=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?i.useLayoutEffect:i.useEffect;function H(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $(e,t){if(H(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!H(e[n[i]],t[n[i]]))return!1;return!0}const U=["reactReduxForwardedRef"];let W=()=>{throw new Error("uSES not initialized!")};const V=[null,null];function Z(e,t,n,i,s,r){e.current=i,n.current=!1,s.current&&(s.current=null,r())}function G(e,t){return e===t}const Q=function(e,t,n){let{pure:s,areStatesEqual:r=G,areOwnPropsEqual:o=$,areStatePropsEqual:a=$,areMergedPropsEqual:l=$,forwardRef:c=!1,context:u=N}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=u,p=function(e){return e?"function"==typeof e?q(e):R(e,"mapStateToProps"):O((()=>({})))}(e),h=function(e){return e&&"object"==typeof e?O((t=>function(e,t){const n={};for(const i in e){const s=e[i];"function"==typeof s&&(n[i]=function(){return t(s(...arguments))})}return n}(e,t))):e?"function"==typeof e?q(e):R(e,"mapDispatchToProps"):O((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,n){let i,{displayName:s,areMergedPropsEqual:r}=n,o=!1;return function(t,n,s){const a=e(t,n,s);return o?r(a,i)||(i=a):(o=!0,i=a),i}}}(e):R(e,"mergeProps"):()=>B}(n),f=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,s={shouldHandleStateChanges:f,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:r,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:l};function u(t){const[n,r,o]=i.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=C(t,U);return[t.context,e,n]}),[t]),a=i.useMemo((()=>n&&n.Consumer&&(0,A.isContextConsumer)(i.createElement(n.Consumer,null))?n:d),[n,d]),l=i.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const p=c?t.store:l.store,h=u?l.getServerState:p.getState,m=i.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s}=t,r=C(t,I);return z(n(e,r),i(e,r),s(e,r),e,r)}(p.dispatch,s)),[p]),[g,v]=i.useMemo((()=>{if(!f)return V;const e=M(p,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,l]),y=i.useMemo((()=>c?l:k({},l,{subscription:g})),[c,l,g]),b=i.useRef(),w=i.useRef(o),S=i.useRef(),_=i.useRef(!1),E=(i.useRef(!1),i.useRef(!1)),x=i.useRef();j((()=>(E.current=!0,()=>{E.current=!1})),[]);const N=i.useMemo((()=>()=>S.current&&o===w.current?S.current:m(p.getState(),o)),[p,o]),L=i.useMemo((()=>e=>g?function(e,t,n,i,s,r,o,a,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!a.current)return;const e=t.getState();let n,h;try{n=i(e,s.current)}catch(e){h=e,p=e}h||(p=null),n===r.current?o.current||c():(r.current=n,l.current=n,o.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(f,p,g,m,w,b,_,E,S,v,e):()=>{}),[g]);var P,T,O;let D;P=Z,T=[w,b,_,o,S,v],j((()=>P(...T)),O);try{D=W(L,N,h?()=>m(h(),o):N)}catch(e){throw x.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${x.current.stack}\n\n`),e}j((()=>{x.current=void 0,S.current=void 0,b.current=D}));const q=i.useMemo((()=>i.createElement(e,k({},D,{ref:r}))),[r,e,D]);return i.useMemo((()=>f?i.createElement(a.Provider,{value:y},q):q),[a,q,y])}const g=i.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=i.forwardRef((function(e,t){return i.createElement(g,k({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,T()(t,e)}return T()(g,e)}};const Y=function(e){let{store:t,context:n,children:s,serverState:r,stabilityCheck:o="once",noopCheck:a="once"}=e;const l=i.useMemo((()=>{const e=M(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:a}}),[t,r,o,a]),c=i.useMemo((()=>t.getState()),[t]);j((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const u=n||N;return i.createElement(u.Provider,{value:l},s)};var K,X;K=y.useSyncExternalStoreWithSelector,L=K,(e=>{W=e})(v.useSyncExternalStore),X=b.unstable_batchedUpdates,w=X;var J=n(713),ee=n.n(J);function te(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(s){return"function"==typeof s?s(n,i,e):t(s)}}}}var ne=te();ne.withExtraArgument=te;const ie=ne,se="UPDATE_VALUE",re=(e,t)=>({type:se,key:e,value:t});var oe=n(525),ae="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search\\js\\SearchBar.jsx";class le extends i.Component{componentDidUpdate(e,t,n){e.searchQuery!==this.props.searchQuery&&this.props.searchQuery.length<3&&this.props.saveSearchSuggestBoxOpen(!1)}removeOverlay=()=>{this.props.bodyElm.classList.remove("search-active");const e=this;setTimeout((()=>{oe.A.removeOverlay("search-overlay"),e.props.setOverlayStatus(!1)}),200)};handleChange=e=>{clearTimeout(this.debounce),this.debounce=setTimeout((()=>{const t=e.target.value;this.props.saveSearchQuery(t),this.props.searchOverlayVisible||this.props.addOverlay(),"searchBar"===this.props.searchVariant&&"desktop"===this.props.searchResponsive&&""===e.target.value&&this.removeOverlay()}),e.target.value.length?500:0)};handleEnter=e=>{"Enter"!==e.key&&13!==e.keyCode||this.handleSubmit()};handleSubmit=()=>{window.location.href=`${this.props.searchPrefix}?text=${this.props.inputRef.current.value}`};handleClose=()=>{this.props.hideSearchBar(),this.removeOverlay(),this.props.saveSearchSuggestBoxOpen(!1)};render(){return i.createElement("div",{className:"search-bar",__self:this,__source:{fileName:ae,lineNumber:121,columnNumber:4}},i.createElement("input",{onChange:this.handleChange,onKeyDown:this.handleEnter,className:"search-bar-input","wnd-search-input":"",placeholder:this.props.locPlaceholderText,ref:this.props.inputRef,__self:this,__source:{fileName:ae,lineNumber:124,columnNumber:5}}),i.createElement("input",{type:"submit",className:"search-bar-submit",value:"",onClick:this.handleSubmit,__self:this,__source:{fileName:ae,lineNumber:134,columnNumber:5}}),("searchIcon"===this.props.searchVariant||"searchBar"===this.props.searchVariant&&"mobile"===this.props.searchResponsive)&&i.createElement("span",{className:"search-bar-close",role:"button","aria-label":"seach",tabIndex:"0",onClick:this.handleClose,onKeyPress:this.handleClose,__self:this,__source:{fileName:ae,lineNumber:148,columnNumber:7}}))}}le.propTypes={searchQuery:ee().string,searchVariant:ee().string,searchResponsive:ee().string,searchOverlayVisible:ee().bool,saveSearchSuggestBoxOpen:ee().func,bodyElm:ee().instanceOf(Element),saveSearchQuery:ee().func,addOverlay:ee().func,searchPrefix:ee().string,hideSearchBar:ee().func,locPlaceholderText:ee().string,inputRef:ee().shape({current:ee().instanceOf(HTMLInputElement)})};const ce=Q((e=>({searchQuery:e.searchQuery,searchBarOpen:e.searchBarOpen,searchVariant:e.searchVariant,searchResponsive:e.searchResponsive,searchOverlayVisible:e.searchOverlayVisible,searchOverlayLocation:e.searchOverlayLocation,searchSuggestBoxOpen:e.searchSuggestBoxOpen,searchBarVisible:e.searchBarVisible})),(e=>({saveSearchQuery:t=>e(re("searchQuery",t)),setOverlayStatus:t=>e(re("searchOverlayVisible",t)),saveSearchSuggestBoxOpen:t=>e(re("searchSuggestBoxOpen",t)),saveSearchBarVisible:t=>e(re("searchBarVisible",t))})))(le);var ue="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search\\js\\SearchIcon.jsx";class de extends i.Component{handleClick=()=>{this.props.saveSearchOpenClass("open"),this.props.saveSearchBarVisible(!0),this.props.inputRef.current.focus(),this.props.searchOverlayVisible||this.props.addOverlay()};render(){return i.createElement("div",{className:"search-icon",onClick:this.handleClick,onKeyPress:this.handleClick,role:"button","aria-label":"seach",tabIndex:"0",__self:this,__source:{fileName:ue,lineNumber:43,columnNumber:4}},i.createElement("div",{className:"search-icon-text",__self:this,__source:{fileName:ue,lineNumber:51,columnNumber:5}},this.props.locSearchText))}}de.propTypes={searchOverlayVisible:ee().bool,saveSearchOpenClass:ee().func,saveSearchBarVisible:ee().func,inputRef:ee().shape({current:ee().instanceOf(HTMLInputElement)}),addOverlay:ee().func,locSearchText:ee().string};const pe=Q((e=>({searchBarOpen:e.searchBarOpen,searchOverlayVisible:e.searchOverlayVisible,searchOverlayLocation:e.searchOverlayLocation})),(e=>({setOverlayStatus:t=>e(re("searchOverlayVisible",t)),saveSearchOpenClass:t=>e(re("searchOpenClass",t)),saveSearchBarVisible:t=>e(re("searchBarVisible",t))})))(de);var he=n(985),me="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search\\js\\SearchSuggestBox.jsx";class fe extends i.Component{constructor(e){super(e),this.state={resultsPageLink:""},this.ssbWrapperRef=i.createRef(),this.debounce=null}componentDidMount(){this.activateScroll(),window.addEventListener("resize",this.activateScroll),window.addEventListener("orientationchange",this.activateScroll),window.addEventListener("touchstart",this.hidePhoneKeyboard),window.addEventListener("resize",this.setPositionInSidebar),window.addEventListener("orientationchange",this.setPositionInSidebar),this.props.searchElm.addEventListener("wnd-redraw",(()=>{this.setPositionInSidebar()}))}componentDidUpdate(e,t,n){e.searchQuery!==this.props.searchQuery&&(this.props.searchQuery.length>=2&&this.props.getData(this.props.searchQuery),this.setState({resultsPageLink:`${this.props.searchPrefix}?text=${this.props.searchQuery}`})),(e.searchResults!==this.props.searchResults||!1===e.searchSuggestBoxOpen&&!0===this.props.searchSuggestBoxOpen||!0===e.searchSuggestBoxOpen&&!1===this.props.searchSuggestBoxOpen)&&(this.setPositionInSidebar(),this.activateScroll())}componentWillUnmount(){window.removeEventListener("resize",this.activateScroll),window.removeEventListener("orientationchange",this.activateScroll),window.removeEventListener("touchstart",this.hidePhoneKeyboard),window.removeEventListener("resize",this.setPositionInSidebar),window.removeEventListener("orientationchange",this.setPositionInSidebar)}activateScroll=()=>{if(null!==this.ssbWrapperRef.current&&!this.props.headerElm.classList.contains("s-hn-bottom")){const e=this.ssbWrapperRef.current.getBoundingClientRect().top,t=window.innerHeight;if(this.ssbWrapperRef.current.scrollHeight>=t-e){const n="mobile"===this.props.searchResponsive?0:20;this.ssbWrapperRef.current.style.overflowY="scroll",this.ssbWrapperRef.current.style.maxHeight=t-e-n+"px"}else this.ssbWrapperRef.current.style.overflowY="hidden",this.ssbWrapperRef.current.style.maxHeight="none"}};hidePhoneKeyboard=()=>{this.props.inputRef.current.blur()};setPositionInSidebar=()=>{const e=this.props.inputRef.current,t=this.ssbWrapperRef.current,n=document.getElementsByClassName("s-f")[0],i=document.querySelector(".s-f .s-c");if(t){if(this.props.searchInSidebar&&"searchBar"===this.props.searchVariant)if("desktop"===this.props.searchResponsive){const s=e.getBoundingClientRect().top+e.offsetHeight+5;t.style.top=`${s}px`;s+parseInt(t.offsetHeight,10)>window.innerHeight-this.props.layoutFooterElm.offsetHeight+parseInt(window.getComputedStyle(i).paddingTop,10)?n.classList.add("invisible"):n.classList.contains("invisible")&&n.classList.remove("invisible")}else t.style.top="",n.classList.contains("invisible")&&n.classList.remove("invisible")}else n.classList.contains("invisible")&&n.classList.remove("invisible")};searchResults;render(){return i.createElement("div",{className:"search-results",__self:this,__source:{fileName:me,lineNumber:208,columnNumber:4}},this.props.searchSuggestBoxOpen&&this.props.searchQuery.length>=2&&void 0!==this.props.searchResults&&void 0!==this.props.searchResults.data&&this.props.searchResults.data.searchProducts.count+this.props.searchResults.data.searchPages.count+this.props.searchResults.data.searchListingItems.count>0&&i.createElement("div",{className:"ssb-wrapper",ref:this.ssbWrapperRef,__self:this,__source:{fileName:me,lineNumber:224,columnNumber:7}},i.createElement("div",{className:"ssb-results",__self:this,__source:{fileName:me,lineNumber:225,columnNumber:8}},this.props.searchResults.data.searchProducts.count>0&&wnd.$system.isEshop&&i.createElement("div",{className:"ssb-results-box",__self:this,__source:{fileName:me,lineNumber:229,columnNumber:11}},i.createElement("div",{className:"ssb-category-header",__self:this,__source:{fileName:me,lineNumber:230,columnNumber:12}},i.createElement("div",{className:"ssb-category-header-title",__self:this,__source:{fileName:me,lineNumber:231,columnNumber:13}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:232,columnNumber:14}},this.props.locProducts),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:233,columnNumber:14}},` (${this.props.searchResults.data.searchProducts.count})`)),i.createElement("div",{className:"ssb-category-header-link",__self:this,__source:{fileName:me,lineNumber:235,columnNumber:13}},i.createElement("a",{href:`${this.props.searchPrefix}?text=${this.props.searchQuery}&tab=products`,__self:this,__source:{fileName:me,lineNumber:236,columnNumber:14}},this.props.locAllProducts))),i.createElement("ul",{className:"ssb-products ssb-results-list",__self:this,__source:{fileName:me,lineNumber:240,columnNumber:12}},this.props.searchResults.data.searchProducts.items.map((e=>i.createElement("li",{className:"ssb-product",key:e.id,__self:this,__source:{fileName:me,lineNumber:244,columnNumber:14}},i.createElement("a",{href:e.detailUrl,__self:this,__source:{fileName:me,lineNumber:245,columnNumber:15}},e.image?i.createElement("div",{className:"ssb-product-image",__self:this,__source:{fileName:me,lineNumber:249,columnNumber:18}},i.createElement(he.A,{imageData:e.image,__self:this,__source:{fileName:me,lineNumber:250,columnNumber:19}})):i.createElement("div",{className:"ssb-product-image wnd-empty-thumbnail",__self:this,__source:{fileName:me,lineNumber:253,columnNumber:18}}),i.createElement("div",{className:"ssb-product-texts",__self:this,__source:{fileName:me,lineNumber:257,columnNumber:16}},i.createElement("div",{className:"ssb-product-name",dangerouslySetInnerHTML:{__html:e.nameWithHighlightedPhrase},__self:this,__source:{fileName:me,lineNumber:258,columnNumber:17}}),i.createElement("div",{className:"ssb-product-price",dangerouslySetInnerHTML:{__html:(e.price.prefix?e.price.prefix:"")+e.price.value+(e.price.suffix?e.price.suffix:"")},__self:this,__source:{fileName:me,lineNumber:262,columnNumber:17}})))))))),this.props.searchResults.data.searchPages.count>0&&i.createElement("div",{className:"ssb-results-box",__self:this,__source:{fileName:me,lineNumber:276,columnNumber:11}},i.createElement("div",{className:"ssb-category-header",__self:this,__source:{fileName:me,lineNumber:277,columnNumber:12}},i.createElement("span",{className:"ssb-category-header-title",__self:this,__source:{fileName:me,lineNumber:278,columnNumber:13}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:279,columnNumber:14}},this.props.locPages),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:280,columnNumber:14}},` (${this.props.searchResults.data.searchPages.count})`)),i.createElement("span",{className:"ssb-category-header-link",__self:this,__source:{fileName:me,lineNumber:282,columnNumber:13}},i.createElement("a",{href:`${this.props.searchPrefix}?text=${this.props.searchQuery}&tab=pages`,__self:this,__source:{fileName:me,lineNumber:283,columnNumber:14}},this.props.locAllPages))),i.createElement("ul",{className:"ssb-pages ssb-results-list",__self:this,__source:{fileName:me,lineNumber:286,columnNumber:12}},[...this.props.searchResults.data.searchPages.items].slice(0,4).map((e=>i.createElement("li",{className:"ssb-page",key:e.id,__self:this,__source:{fileName:me,lineNumber:289,columnNumber:14}},i.createElement("a",{href:e.detailUrl,__self:this,__source:{fileName:me,lineNumber:290,columnNumber:15}},i.createElement("span",{className:"ssb-page-name",dangerouslySetInnerHTML:{__html:e.shortTextWithHighlightedPhrase},__self:this,__source:{fileName:me,lineNumber:291,columnNumber:16}}))))))),this.props.searchResults.data.searchListingItems.count>0&&wnd.$system.hasBlog&&i.createElement("div",{className:"ssb-results-box",__self:this,__source:{fileName:me,lineNumber:304,columnNumber:11}},i.createElement("div",{className:"ssb-category-header",__self:this,__source:{fileName:me,lineNumber:305,columnNumber:12}},i.createElement("span",{className:"ssb-category-header-title",__self:this,__source:{fileName:me,lineNumber:306,columnNumber:13}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:307,columnNumber:14}},this.props.locBlogPosts),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:308,columnNumber:14}},` (${this.props.searchResults.data.searchListingItems.count})`)),i.createElement("span",{className:"ssb-category-header-link",__self:this,__source:{fileName:me,lineNumber:310,columnNumber:13}},i.createElement("a",{href:`${this.props.searchPrefix}?text=${this.props.searchQuery}&tab=blogposts`,__self:this,__source:{fileName:me,lineNumber:311,columnNumber:14}},this.props.locAllBlogPosts))),i.createElement("ul",{className:"ssb-results-list",__self:this,__source:{fileName:me,lineNumber:314,columnNumber:12}},[...this.props.searchResults.data.searchListingItems.items].slice(0,4).map((e=>i.createElement("li",{className:"ssb-blogpost",key:e.id,__self:this,__source:{fileName:me,lineNumber:317,columnNumber:14}},i.createElement("a",{href:e.detailUrl,__self:this,__source:{fileName:me,lineNumber:318,columnNumber:15}},i.createElement("span",{className:"ssb-blogpost-name",dangerouslySetInnerHTML:{__html:e.shortTextWithHighlightedPhrase},__self:this,__source:{fileName:me,lineNumber:319,columnNumber:16}})))))))),i.createElement("div",{className:"ssb-view-all",__self:this,__source:{fileName:me,lineNumber:337,columnNumber:8}},i.createElement("a",{href:this.state.resultsPageLink,__self:this,__source:{fileName:me,lineNumber:338,columnNumber:9}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:339,columnNumber:10}},this.props.locAllSearchResults),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:340,columnNumber:10}}," ",`(${this.props.searchResults.data.searchProducts.count+this.props.searchResults.data.searchPages.count+this.props.searchResults.data.searchListingItems.count})`)))),this.props.searchSuggestBoxOpen&&this.props.searchQuery.length>=2&&void 0!==this.props.searchResults&&(void 0!==this.props.searchResults.data&&0===this.props.searchResults.data.searchProducts.count&&0===this.props.searchResults.data.searchPages.count&&0===this.props.searchResults.data.searchListingItems.count||void 0!==this.props.searchResults.errors)&&i.createElement("div",{className:"ssb-wrapper",ref:this.ssbWrapperRef,__self:this,__source:{fileName:me,lineNumber:359,columnNumber:7}},i.createElement("div",{className:"ssb-no-results",__self:this,__source:{fileName:me,lineNumber:360,columnNumber:8}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:361,columnNumber:9}},this.props.locNoResults))))}}fe.propTypes={searchQuery:ee().string,searchSuggestBoxOpen:ee().bool,searchInSidebar:ee().bool,searchVariant:ee().string,searchResponsive:ee().string,searchPrefix:ee().string,getData:ee().func,headerElm:ee().instanceOf(Element),searchElm:ee().instanceOf(Element),layoutFooterElm:ee().instanceOf(Element),inputRef:ee().shape({current:ee().instanceOf(HTMLInputElement)}),locProducts:ee().string,locAllProducts:ee().string,locPages:ee().string,locAllPages:ee().string,locBlogPosts:ee().string,locAllBlogPosts:ee().string,locAllSearchResults:ee().string,locNoResults:ee().string};const ge=Q((e=>({searchQuery:e.searchQuery,searchResults:e.searchResults,searchSuggestBoxOpen:e.searchSuggestBoxOpen,searchInSidebar:e.searchInSidebar,searchVariant:e.searchVariant,searchResponsive:e.searchResponsive,searchOverlayVisible:e.searchOverlayVisible})),(e=>({saveResultsToStore:t=>e(re("searchResults",t)),saveSearchSuggestBoxOpen:t=>e(re("searchSuggestBoxOpen",t)),updateSsbBottom:t=>e(re("ssbBottom",t)),getData:t=>{return e((n=t,e=>{const t={query:n,limit:4,limitProducts:10,offset:0,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId},i=new Request("/servers/graphql/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:"query FetchSearchProducts(\n\t    $query: String!,\n\t    $limit: Int!,\n\t    $limitProducts: Int!,\n\t    $offset: Int!,\n\t) {\n\t    searchProducts(\n\t        query: $query\n\t    ) {\n\t        items(limit: $limitProducts, offset: $offset) {\n\t            id,\n\t            name,\n\t            nameWithHighlightedPhrase(phrase: $query),\n\t            description,\n\t            image {id, title, orientation, aspectRatio, size {width, height}, img {mimeType, src}, sources {mimeType, sizes {width, height, src}}},\n\t            detailUrl,\n\t            price {prefixText, prefix, value, suffix, suffixText},\n\t            comparativePrice {prefix, value, suffix},\n\t            ribbon,\n\t            available\n\t        }\n\t        count\n\t    },\n\t    searchPages(\n\t        query: $query\n\t    ) {\n\t        items(limit: $limit, offset: $offset) {\n\t            id,\n\t            name,\n\t            detailUrl,\n\t            shortTextWithHighlightedPhrase(phrase: $query),\n\t            longTextWithHighlightedPhrase(phrase: $query)\n\t        }\n\t        count\n\t    },\n\t    searchListingItems(\n\t        query: $query\n\t    ) {\n\t        items(limit: $limit, offset: $offset) {\n\t            id,\n\t            name,\n\t            detailUrl,\n\t            shortTextWithHighlightedPhrase(phrase: $query),\n\t            longTextWithHighlightedPhrase(phrase: $query)\n\t        }\n\t        count\n\t    }\n\t}",variables:t})});fetch(i).then((e=>e.json())).then((t=>{e(re("searchResults",t)),e(re("searchSuggestBoxOpen",!0))}))}));var n}})))(fe);var ve=n(730),ye="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search\\js\\Search.jsx";class be extends i.Component{constructor(e){super(e),this.inputRef=i.createRef()}componentDidMount(){this.updateSearchVariant(),this.updateSearchResponsive(),this.updateOverlayElement(),this.updateLayoutVariant(),window.addEventListener("resize",this.updateSearchResponsive),window.addEventListener("orientationchange",this.updateSearchResponsive),this.props.searchElm.addEventListener("wnd-redraw",(()=>{this.updateSearchVariant()}))}componentDidUpdate(e,t,n){if(e.searchVariant===this.props.searchVariant&&e.searchResponsive===this.props.searchResponsive||this.updateOverlayElement(),e.searchOverlayVisible!==this.props.searchOverlayVisible&&this.handleOverlayClick(),e.searchResponsive!==this.props.searchResponsive&&(""!==e.searchResponsive&&this.updateOverlayElement(),e.searchResponsive!==this.props.searchResponsive&&""!==e.searchResponsive&&"mobile"===this.props.searchResponsive&&"searchBar"===this.props.searchVariant&&!0===this.props.searchSuggestBoxOpen&&(this.props.saveSearchBarVisible(!0),this.props.saveSearchOpenClass("open"))),e.searchOverlayLocation!==this.props.searchOverlayLocation&&""!==e.searchOverlayLocation&&this.props.searchSuggestBoxOpen&&(oe.A.removeOverlay("search-overlay"),this.addOverlay()),e.searchSuggestBoxOpen!==this.props.searchSuggestBoxOpen&&(0,ve.a1)())if(this.props.searchSuggestBoxOpen){const e=new Event("wnd-open-menu",{bubbles:!0,cancellable:!0});document.getElementsByClassName("menu-wrapper")[0].dispatchEvent(e)}else{const e=new Event("wnd-close-menu",{bubbles:!0,cancellable:!0});document.getElementsByClassName("menu-wrapper")[0].dispatchEvent(e)}}updateSearchVariant=()=>{this.props.bodyElm.classList.contains("wnd-s-i")?this.props.saveSearchVariant("searchIcon"):this.props.bodyElm.classList.contains("wnd-s-b")&&this.props.saveSearchVariant("searchBar")};updateSearchResponsive=()=>{window.innerWidth<=900?this.props.saveSearchResponsive("mobile"):this.props.saveSearchResponsive("desktop")};updateLayoutVariant=()=>{this.props.bodyElm.classList.contains("l-sidebar")&&this.props.saveLayoutVariant(!0)};updateOverlayElement=()=>{""!==this.props.searchVariant&&""!==this.props.searchResponsive&&((0,ve.a1)()||"desktop"!==this.props.searchResponsive||"searchBar"!==this.props.searchVariant&&!this.props.searchInSidebar?this.props.saveOverlayLocation("overlayOnSearchElm"):this.props.saveOverlayLocation("overlayOnWrapper"))};addOverlay=()=>{"overlayOnWrapper"===this.props.searchOverlayLocation?oe.A.addOverlay(this.props.wrapperElm,"append","search-overlay"):"overlayOnSearchElm"===this.props.searchOverlayLocation&&oe.A.addOverlay(this.props.searchElm,"append","search-overlay"),this.props.setOverlayStatus(!0),setTimeout((()=>{this.props.bodyElm.classList.add("search-active")}),10)};hideSearchBar=()=>{setTimeout((()=>{this.props.saveSearchOpenClass(""),this.props.saveSearchBarVisible(!1),this.inputRef.current.value=""}),200)};handleOverlayClick=()=>{const e=document.querySelector(".search-overlay");e&&e.addEventListener("click",(()=>{this.props.bodyElm.classList.remove("search-active"),setTimeout((()=>{oe.A.removeOverlay("search-overlay"),this.props.setOverlayStatus(!1),this.props.saveSearchSuggestBoxOpen(!1),this.props.saveSearchOpenClass("")}),200),this.hideSearchBar()}))};render(){return i.createElement("div",{className:this.props.searchOpenClass,__self:this,__source:{fileName:ye,lineNumber:246,columnNumber:4}},i.createElement(pe,{bodyElm:this.props.bodyElm,wrapperElm:this.props.wrapperElm,searchElm:this.props.searchElm,addOverlay:this.addOverlay,inputRef:this.inputRef,locSearchText:this.props.locSearchText,__self:this,__source:{fileName:ye,lineNumber:247,columnNumber:5}}),i.createElement(ce,{bodyElm:this.props.bodyElm,wrapperElm:this.props.wrapperElm,searchElm:this.props.searchElm,addOverlay:this.addOverlay,hideSearchBar:this.hideSearchBar,inputRef:this.inputRef,locPlaceholderText:this.props.locPlaceholderText,searchPrefix:this.props.searchPrefix,__self:this,__source:{fileName:ye,lineNumber:255,columnNumber:5}}),i.createElement(ge,{locProducts:this.props.locProducts,locAllProducts:this.props.locAllProducts,locPages:this.props.locPages,locAllPages:this.props.locAllPages,locBlogPosts:this.props.locBlogPosts,locAllBlogPosts:this.props.locAllBlogPosts,locAllSearchResults:this.props.locAllSearchResults,locNoResults:this.props.locNoResults,searchPrefix:this.props.searchPrefix,headerElm:this.props.headerElm,searchElm:this.props.searchElm,inputRef:this.inputRef,layoutHeaderElm:this.props.layoutHeaderElm,footerElm:this.props.footerElm,layoutFooterElm:this.props.layoutFooterElm,footerSCElm:this.props.footerSCElm,__self:this,__source:{fileName:ye,lineNumber:265,columnNumber:5}}))}}be.propTypes={searchVariant:ee().string,searchResponsive:ee().string,searchInSidebar:ee().bool,searchOverlayVisible:ee().bool,searchOverlayLocation:ee().string,searchSuggestBoxOpen:ee().bool,searchOpenClass:ee().string,bodyElm:ee().instanceOf(Element),wrapperElm:ee().instanceOf(Element),searchElm:ee().instanceOf(Element),headerElm:ee().instanceOf(Element),layoutHeaderElm:ee().instanceOf(Element),footerElm:ee().instanceOf(Element),layoutFooterElm:ee().instanceOf(Element),footerSCElm:ee().instanceOf(Element),saveSearchBarVisible:ee().func,saveSearchOpenClass:ee().func,saveSearchVariant:ee().func,saveSearchResponsive:ee().func,saveLayoutVariant:ee().func,saveOverlayLocation:ee().func,setOverlayStatus:ee().func,saveSearchSuggestBoxOpen:ee().func,locSearchText:ee().string,locAllSearchResults:ee().string,locNoResults:ee().string,locPlaceholderText:ee().string,locProducts:ee().string,locAllProducts:ee().string,locPages:ee().string,locAllPages:ee().string,locBlogPosts:ee().string,locAllBlogPosts:ee().string,searchPrefix:ee().string};const we=Q((e=>({searchBarOpen:e.searchBarOpen,searchVariant:e.searchVariant,searchResponsive:e.searchResponsive,searchInSidebar:e.searchInSidebar,searchOverlayVisible:e.searchOverlayVisible,searchOverlayLocation:e.searchOverlayLocation,searchSuggestBoxOpen:e.searchSuggestBoxOpen,searchOpenClass:e.searchOpenClass})),(e=>({saveSearchVariant:t=>e(re("searchVariant",t)),saveSearchResponsive:t=>e(re("searchResponsive",t)),saveOverlayLocation:t=>e(re("searchOverlayLocation",t)),saveLayoutVariant:t=>e(re("searchInSidebar",t)),setOverlayStatus:t=>e(re("searchOverlayVisible",t)),saveSearchSuggestBoxOpen:t=>e(re("searchSuggestBoxOpen",t)),saveSearchOpenClass:t=>e(re("searchOpenClass",t)),saveSearchBarVisible:t=>e(re("searchBarVisible",t))})))(be),Se={searchQuery:"",searchResults:{},searchOpenClass:"",searchBarVisible:!1,searchSuggestBoxOpen:!1,searchVariant:"",searchResponsive:"",searchOverlayVisible:!1,searchOverlayLocation:"",searchInSidebar:!1};var _e="C:\\Users\\pmd\\Documents\\webnodeProjekty\\New folder\\wtf\\ui\\blocks\\search\\js\\SearchApp.jsx";const Ee=g(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(u(15))},s={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},r=t.map((function(e){return e(s)}));return i=g.apply(void 0,r)(n.dispatch),c(c({},n),{},{dispatch:i})}}}(ie)),xe=f((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se,t=arguments.length>1?arguments[1]:void 0;return t.type===se?{...e,[t.key]:t.value}:e}),Ee);function Ne(e){const{bodyElm:t,wrapperElm:n,headerElm:s,searchElm:r,layoutHeaderElm:o,footerElm:a,layoutFooterElm:l,footerSCElm:c,locSearchText:u,locAllSearchResults:d,locNoResults:p,locPlaceholderText:h,locProducts:m,locAllProducts:f,locPages:g,locAllPages:v,locBlogPosts:y,locAllBlogPosts:b,searchPrefix:w}=e;return i.createElement(we,{bodyElm:t,wrapperElm:n,headerElm:s,searchElm:r,layoutHeaderElm:o,footerElm:a,layoutFooterElm:l,footerSCElm:c,locSearchText:u,locAllSearchResults:d,locNoResults:p,locPlaceholderText:h,locProducts:m,locAllProducts:f,locPages:g,locAllPages:v,locBlogPosts:y,locAllBlogPosts:b,searchPrefix:w,__self:this,__source:{fileName:_e,lineNumber:62,columnNumber:3}})}Ne.propTypes={bodyElm:ee().instanceOf(Element),wrapperElm:ee().instanceOf(Element),headerElm:ee().instanceOf(Element),searchElm:ee().instanceOf(Element),layoutHeaderElm:ee().instanceOf(Element),footerElm:ee().instanceOf(Element),layoutFooterElm:ee().instanceOf(Element),footerSCElm:ee().instanceOf(Element),locSearchText:ee().string,locAllSearchResults:ee().string,locNoResults:ee().string,locPlaceholderText:ee().string,locProducts:ee().string,locAllProducts:ee().string,locPages:ee().string,locAllPages:ee().string,locBlogPosts:ee().string,locAllBlogPosts:ee().string,searchPrefix:ee().string},document.addEventListener("DOMContentLoaded",(()=>{const e=()=>{const e=document.getElementsByTagName("body")[0],t=document.querySelector(".l-w"),n=document.getElementsByClassName("l-h")[0],r=document.getElementsByClassName("s-hn")[0],o=document.getElementsByClassName("l-f")[0],a=document.getElementsByClassName("s-f")[0],l=document.querySelector(".s-f .s-c"),c=document.querySelector(".search");s.createRoot(document.querySelector(".search-app")).render(i.createElement(Y,{store:xe,__self:void 0,__source:{fileName:_e,lineNumber:125,columnNumber:4}},i.createElement(Ne,{bodyElm:e,wrapperElm:t,headerElm:r,searchElm:c,layoutHeaderElm:n,footerElm:a,layoutFooterElm:o,footerSCElm:l,locSearchText:wnd.$system.labels["wnd.pc.SearchBlock.iconText"],locAllSearchResults:wnd.$system.labels["wnd.pc.SearchBlock.allResults"],locPlaceholderText:wnd.$system.labels["wnd.pc.SearchBlock.inputPlaceholder"],locProducts:wnd.$system.labels["wnd.pc.SearchResultsZone.productsTitle"],locAllProducts:wnd.$system.labels["wnd.pc.SearchBlock.allProducts"],locPages:wnd.$system.labels["wnd.pc.SearchResultsZone.pagesTitle"],locAllPages:wnd.$system.labels["wnd.pc.SearchBlock.allPages"],locBlogPosts:wnd.$system.labels["wnd.pc.SearchResultsZone.listingItemsTitle"],locAllBlogPosts:wnd.$system.labels["wnd.pc.SearchBlock.allListingItems"],locNoResults:wnd.$system.labels["wnd.pc.SearchBlock.noResults"],searchPrefix:wnd.$system.searchPrefix,__self:void 0,__source:{fileName:_e,lineNumber:126,columnNumber:5}})))},t=document.body;t.classList.contains("wt-preview")||((t.classList.contains("wnd-s-i")||t.classList.contains("wnd-s-b"))&&e(),document.removeEventListener("wnd-site-search-activated",e),document.addEventListener("wnd-site-search-activated",e))}))},463:(e,t,n)=>{"use strict";var i=n(730);const s=new class{widgetUrlPrefix="//widget.";apiUrlPrefix="https://user-api-v2.";simplyBookMeDomains={"w2.d.webnodev.com":"webnode.simplybook.ovh","staging.webnode.":"webnode.simplybook.ovh","testing.webnode.":"webnode.simplybook.ovh",default:"simplybook.webnode.page"};_getSbmDomainKey(){const e=window.location.host.toLowerCase();return Object.keys(this.simplyBookMeDomains).find((t=>e.includes(t)))??"default"}getWidgetUrl(){return this.widgetUrlPrefix+this.simplyBookMeDomains[this._getSbmDomainKey()]}getApiUrl(){if("default"!==this._getSbmDomainKey())return this.apiUrlPrefix+this.simplyBookMeDomains[this._getSbmDomainKey()]}};function r(){if(document.querySelectorAll('[data-sbm-widget="true"]').length>=3)return!0;const e=s.getWidgetUrl();return[{type:"script",src:`${e}/react-widget/public/runtime.js`},{type:"script",src:`${e}/react-widget/public/app.js`},{type:"link",href:`${e}/react-widget/public/app.css`,rel:"stylesheet"}].forEach((e=>{let t;"script"===e.type?(t=document.createElement("script"),t.src=e.src,t.async=!0):"link"===e.type&&(t=document.createElement("link"),t.href=e.href,t.rel=e.rel),t.setAttribute("data-sbm-widget","true"),document.head.appendChild(t)})),!1}function o(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=t?[t]:document.querySelectorAll(".sbm-widget"),e.forEach((e=>{e.classList.add("sbm-init");const t=e.getAttribute("data-public-key"),n=e.getAttribute("data-company");if(SimplyBookWidget(e,{apiKey:t,company:n,baseUrl:s.getApiUrl()}),(0,i.a1)()){const t=new ResizeObserver((n=>{for(let s of n)s.target===e&&s.contentRect.width>0&&s.contentRect.height>0&&(setTimeout((()=>{(0,i.Zg)(e.parentElement)}),500),t.disconnect())}));t.observe(e)}}))}function a(e){const t=e.target.querySelectorAll(".sbm-widget:not(.sbm-init)");t.length>0&&t.forEach((e=>{if(r())o(e);else{const t=setInterval((()=>{"undefined"!=typeof SimplyBookWidget&&(clearInterval(t),o(e))}),100)}}))}(0,i.Gc)((()=>{if((0,i.a1)()){document.querySelectorAll(".ez").forEach((e=>{e.addEventListener("wnd-redraw",(e=>{a(e)}))})),document.addEventListener("wnd-content-change",(e=>{a(e)}))}if(document.querySelector(".sbm-widget")){r();const e=setInterval((()=>{"undefined"!=typeof SimplyBookWidget&&(clearInterval(e),o())}),100)}}))},671:(e,t,n)=>{"use strict";var i=n(730);function s(e){const t=parseInt(getComputedStyle(e).height),n=e.parentElement;t<26?n.classList.add("wnd-hide-placeholder"):n.classList.remove("wnd-hide-placeholder")}(0,i.Gc)((()=>{if(i.a1){document.querySelectorAll(".ez").forEach((e=>{var t,n;t=e,n=".b-sp-c",new MutationObserver((e=>{let i=new Set;e.forEach((e=>{if(e.addedNodes)for(let t=0;t<e.addedNodes.length;t++){const s=e.addedNodes[t];s.nodeType===Node.ELEMENT_NODE&&s.matches(n)&&i.add(s)}if(e.removedNodes)for(let i=0;i<e.removedNodes.length;i++){const s=e.removedNodes[i];s.nodeType===Node.ELEMENT_NODE&&s.matches(n)&&t.dispatchEvent(new Event("wnd-redraw"))}e.target.matches(n)&&"style"===e.attributeName&&i.add(e.target)})),i.forEach((e=>s(e)))})).observe(t,{childList:!0,attributes:!0,attributeFilter:["style"],subtree:!0});e.querySelectorAll(".b-sp-c").forEach((e=>s(e)))}))}}))},730:(e,t,n)=>{"use strict";function i(){const e=document.getElementById("menu");return window.getComputedStyle(e,"::after").getPropertyValue("content").includes("mobile")}function s(e){return document.getElementsByTagName("html")[0].classList.contains(e)}function r(){return document.body.classList.contains("wnd-cms")}function o(){return document.body.classList.contains("wt-preview")}function a(){return document.querySelector("body").classList.contains("wnd-eshop")}function l(){return null!==document.querySelector(".wnd-nav-sticky")}function c(e){const t=document.querySelector("body"),n=document.querySelector("html");switch(e){case"detect":{/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(!function(){const e=document.getElementById("menu-mobile");return!("none"===window.getComputedStyle(e).display)}()?(s("tablet")||n.classList.add("tablet"),n.classList.remove("mobile")):(s("mobile")||n.classList.add("mobile"),n.classList.remove("tablet")),t.classList.contains("touched")||t.classList.add("touched"),t.classList.remove("desktop"),n.classList.remove("pc")):(t.classList.contains("pc")||t.classList.contains("desktop")||(n.classList.add("pc"),t.classList.add("desktop")),n.classList.remove("tablet","mobile"),t.classList.remove("touched")),/WebnodeFrontendTest/i.test(navigator.userAgent)&&(t.classList.contains("wnd-frontend-test")||t.classList.add("wnd-frontend-test")),/MSIE|Trident|Edge/i.test(navigator.userAgent)&&(t.classList.contains("isIE")||t.classList.add("isIE"));const e=window.navigator.userAgent.toLowerCase();(e.indexOf("ipad")>-1||e.indexOf("macintosh"))>-1&&"ontouchend"in document&&(t.classList.contains("touched")||t.classList.add("touched"),n.classList.remove("mobile","desktop"),n.classList.add("tablet"));let i=!0;/Safari/i.test(navigator.userAgent)&&/Chrome/i.test(navigator.userAgent)&&(i=!1),/Safari/i.test(navigator.userAgent)&&i&&t.classList.add("safari"),(e.indexOf("FBAN")>-1||e.indexOf("FBAV")>-1)&&t.classList.add("safari");break}case"mobile-devices":{let e=!1;return i=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(e=!0),e}case"wnd-frontend-test":return t.classList.contains("wnd-frontend-test");case"touched":return t.classList.contains("touched");case"android":return/Android/i.test(navigator.userAgent);case"ios":return/iPhone|iPad|iPod/i.test(navigator.userAgent);case"iphone":return/iPhone|iPod/i.test(navigator.userAgent);case"black-berry":return/BlackBerry/i.test(navigator.userAgent);case"opera-mini":return/Opera Mini/i.test(navigator.userAgent);case"ie-mobile":return/IEMobile/i.test(navigator.userAgent);case"safari":return/Safari/i.test(navigator.userAgent);default:return}var i}function u(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}const n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):(e.includes("Edg/"),!1)}function d(){return-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")}function p(){return document.body.classList.contains("ghostinspector")}function h(){return document.body.classList.contains("l-sidebar")}function m(){return document.body.classList.contains("wt-checkout")}function f(e){const t=new Event("wnd-redraw-done",{bubbles:!1,cancellable:!0});r()?e&&e.dispatchEvent(t):document.body.dispatchEvent(t)}function g(e,t,n){let i;return function(){const s=this,r=arguments;clearTimeout(i),i=setTimeout((()=>{i=null,n||e.apply(s,r)}),t),n&&!i&&e.apply(s,r)}}function v(e){const t=e.getBoundingClientRect(),n=t.width*t.height,i=window.innerHeight||document.documentElement.clientHeight;let s=0,r=0;return t.bottom<0||t.top>i?r=0:t.top<0&&t.bottom>i?(s=t.width*i,r=s/n):t.top>=0&&t.bottom<=i?r=1:t.top<0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)?(s=(t.height+t.top)*t.width,r=s/n):t.top>=0&&t.bottom>i&&(s=(t.height-(t.bottom-i))*t.width,r=s/n),r}function y(){const e=document.getElementById("menu");if(e){let t=window.getComputedStyle(e,"::after").getPropertyValue("content");return t=t.replace(/"/g,"").replace(/'/g,""),t}}n.d(t,{CB:()=>m,En:()=>c,Gc:()=>L,Gw:()=>a,Nw:()=>u,Q5:()=>p,YG:()=>v,ZV:()=>i,Zg:()=>f,a1:()=>r,aQ:()=>l,bJ:()=>x,bU:()=>o,dj:()=>S,iN:()=>N,kf:()=>_,lQ:()=>h,nr:()=>d,sg:()=>g,u5:()=>w});let b=y();function w(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function S(e){return document.querySelector("html").classList.contains(e)}function _(e){return!Number.isNaN(parseFloat(e))&&Number.isFinite(parseFloat(e))}function E(e,t,n){const i=[e,t,n].map((e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*i[0]+.7152*i[1]+.0722*i[2]}function x(e,t){const n=E(e.r,e.g,e.b),i=E(t.r,t.g,t.b);return(n>i?(i+.05)/(n+.05):(n+.05)/(i+.05)).toFixed(2)}function N(e){const t={r:0,g:0,b:0};return 4===e.length?(t.r=parseInt(`0x${e[1]}${e[1]}`,16),t.g=parseInt(`0x${e[2]}${e[2]}`,16),t.b=parseInt(`0x${e[3]}${e[3]}`,16)):7===e.length&&(t.r=parseInt(`0x${e[1]}${e[2]}`,16),t.g=parseInt(`0x${e[3]}${e[4]}`,16),t.b=parseInt(`0x${e[5]}${e[6]}`,16)),t}function L(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}L((()=>{const e=document.querySelector("html"),t=document.querySelector("body");e.classList.remove("no-js"),e.classList.add("js"),c("detect"),/ghostinspector/i.test(navigator.userAgent)&&document.body.classList.add("ghostinspector"),window.location!==window.parent.location&&c("iphone")&&t.classList.add("ios-iframe"),c("ios")&&t.classList.add("ios"),function(){const e=document.querySelectorAll("a[href*=\\#]:not([href=\\#])");e&&!r()&&e.forEach((e=>{window.location.pathname.replace(/^\//,"")===e.pathname.replace(/^\//,"")&&window.location.hostname===e.hostname&&e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const t=document.querySelector(this.hash)||document.querySelector(`[name=${this.hash.slice(1)}]`)||document.querySelector(`[id=${this.hash.slice(1)}]`);if(t){let e=(window.scrollY||window.pageYOffset)+t.getBoundingClientRect().top;r()&&(e-=parseInt(document.querySelector(".wnd-topfixed-wrapper").offsetHeight,10)),h()&&document.querySelector(".s-hb")&&(e-=parseInt(document.querySelector(".s-hb").offsetHeight,10)),document.documentElement.scrollTo({top:e,behavior:"smooth"})}}))}))}(),function(){const e=document.querySelectorAll("a.form-file-button");if(e)for(let t=0;t<e.length;t++)e[t].addEventListener("click",(e=>{e.currentTarget.parentNode.previousElementSibling.querySelectorAll("input")[0].click()}))}(),window.addEventListener("resize",(()=>{const e=y();if(e!==b){const t=new Event(`wnd-view-switched-${e}`,{bubbles:!1,cancellable:!0});document.body.dispatchEvent(t),b=e}})),window.addEventListener("resize",(()=>c("detect")))}))},420:(e,t,n)=>{"use strict";var i=n(730);const s=function(){document.querySelectorAll(".c").forEach((e=>{if((0,i.a1)()){const t=e[0]?e[0]:e;if(t){const e=new Event("wnd-redraw-done",{bubbles:!0,cancellable:!0});t.dispatchEvent(e)}}}))};(0,i.Gc)((()=>{if((0,i.a1)()){document.querySelectorAll(".ez").forEach((e=>{e.addEventListener("wnd-redraw",(function(){this.querySelectorAll(".c")[0]&&setTimeout((()=>{s()}),200)}))}));document.querySelectorAll(".s-f-map").forEach((e=>{e.addEventListener("wnd-redraw",(function(){this.querySelectorAll(".c")[0]&&setTimeout((()=>{s()}),200)}))})),document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("ez")&&setTimeout((()=>{document.querySelectorAll(".c")[0]&&s()}),100)}))}const e=document.querySelectorAll(".c");e[0]&&(s(),window.addEventListener("resize",(()=>s())),window.addEventListener("orientationchange",(()=>s()))),e.forEach((e=>{e.addEventListener("resize",(()=>{setTimeout((()=>{s()}),200)}))}))}))},674:(e,t,n)=>{"use strict";var i=n(730),s=n(525);(0,i.Gc)((()=>{if((0,i.CB)())return;const e=()=>{let e={"wnd-mt-classic":"horizontal","wnd-mt-boxed":"boxed","wnd-mt-sliding":"vertical","wnd-mt-sidebar":"vertical"};const t=document.querySelector(".s-hn");for(let n in e)if(t.classList.contains(n))return e[n]},t=()=>{const e=document.querySelector(".s-hn");return e.classList.contains("wnd-mt-classic")?e.classList.contains("s-hn-centered")?"centered":e.classList.contains("s-hn-bottom")?"bottom":"default":e.classList.contains("wnd-mt-boxed")?"boxed":e.classList.contains("wnd-mt-sliding")?"sliding":e.classList.contains("wnd-mt-sidebar")?"sidebar":void 0},n=()=>{const e=document.getElementById("menu");if(e)return window.getComputedStyle(e,"::after").getPropertyValue("content")},r=()=>({type:e(),subType:t(),mode:n(),elm:document.querySelector("#menu"),hasItems:!!document.querySelector("#menu ul")});let o=r();const a=document.querySelector("header");let l=o.subType;const c=document.querySelector(".more-text").textContent,u=e=>{if((0,i.a1)()){const t=new Event(e,{bubbles:!0,cancellable:!0});document.querySelector("#menu > div").dispatchEvent(t)}},d=()=>"fixed"===getComputedStyle(document.querySelector(".wnd-fixed")).position,p=e=>{e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()};let h=document.querySelector(".logo-block"),m=h?.clientWidth,f=h?.clientHeight,g=new ResizeObserver((e=>{const t=h.clientWidth,n=h.clientHeight;if(t!==m){const e=new CustomEvent("wnd-logo-resize",{detail:{type:"width",block:"logo"}});a.dispatchEvent(e),m=t}if(n!==f){const e=new CustomEvent("wnd-logo-resize",{detail:{type:"height",block:"logo"}});a.dispatchEvent(e),f=n}}));function v(){h=document.querySelector(".logo-block"),h&&(m=h.clientWidth,f=h.clientHeight,g.observe(h))}let y=document.querySelector("footer"),b=y?.clientHeight,w=new ResizeObserver((e=>{const t=y.clientHeight;if(t!==b){const e=new CustomEvent("wnd-footer-resize",{detail:{type:"height",block:"footer"}});a.dispatchEvent(e),ue(y),b=t}}));function S(){y=document.querySelector("footer"),y&&(b=y.clientHeight,w.observe(y))}const _=()=>{const e=document.querySelector(".s-hn");return["wnd-w-narrow","wnd-w-default","wnd-w-wider","wnd-w-wide","wnd-w-max"].find((t=>e.classList.contains(t)))};let E=_(),x=document.querySelector(".menu-nav"),N=x?.clientWidth,L=x?.clientHeight,k=new ResizeObserver((e=>{const t=x.clientWidth,n=x.clientHeight;if(t!==N){const e=new CustomEvent("wnd-navline-resize",{detail:{type:"width",block:"navline"}});a.dispatchEvent(e),N=t}if(n!==L){const e=new CustomEvent("wnd-navline-resize",{detail:{type:"height",block:"navline"}});a.dispatchEvent(e),L=n}}));function C(){x=document.querySelector(".menu-nav"),x&&(N=x.clientWidth,L=x.clientHeight,k.observe(x))}const P=()=>{"default"!==o.subType&&"bottom"!==o.subType&&"sidebar"!==o.subType||v(),"default"!==o.subType&&"bottom"!==o.subType&&"sidebar"!==o.subType&&"centered"!==o.subType&&"sliding"!==o.subType||C(),"sidebar"===o.subType&&S()},T=()=>{void 0!==g&&g.disconnect(),void 0!==k&&k.disconnect(),void 0!==w&&w.disconnect()};function A(){return document.querySelector(".wnd-page").classList.value.replace(/ac-(light|normal|dark)\s*/g,"").match(/ac-\w+/)}async function I(){const e=await new Promise(((e,t)=>{let n=getComputedStyle(document.documentElement).getPropertyValue("--ac-color");if(n)e(n);else{let i=10;const s=setInterval((()=>{n=getComputedStyle(document.documentElement).getPropertyValue("--ac-color"),n&&(clearInterval(s),e(n)),i||t(new Error("Can't return --ac-color custom property")),i-=1}),100)}}));(0,i.bJ)((0,i.iN)(e),{r:255,g:255,b:255})>=.6?document.body.classList.add("mm-mono"):document.body.classList.remove("mm-mono")}let z=A(),O=!1;const D=()=>{const e=o.elm,t=document.querySelector("#menu > div");t.offsetHeight>e.offsetHeight?(e.scrollTop+e.offsetHeight===t.clientHeight?document.body.classList.remove("scrolldown-active"):document.body.classList.add("scrolldown-active"),e.scrollTop<=0?document.body.classList.remove("scrollup-active"):document.body.classList.add("scrollup-active")):(document.body.classList.remove("scrolldown-active"),document.body.classList.remove("scrollup-active"))},q=e=>{const t=e.target.classList.contains("scrolldown")?"down":"up";if(O)return;O=!0,setTimeout((()=>{O=!1}),500);const n=document.querySelector(".level-1 > li:not(.menu-more)"),i=n.querySelector(":scope > a"),s=parseInt(i.offsetHeight,10)+parseInt(getComputedStyle(n).paddingTop,10)+parseInt(getComputedStyle(n).paddingBottom,10),r=o.elm.scrollTop,a=Math.abs(r)+("down"===t?s:-s);let l=null,c=o.elm.scrollTop,u=a-c;requestAnimationFrame((function e(t){l||(l=t);let n=t-l,i=Math.min(n/500,1);o.elm.scrollTop=c+u*i,D(),i<1&&requestAnimationFrame(e)}))},R=()=>{o.elm.addEventListener("scroll",D)};let B,F,M=null,j=null,H=null;const $=function(e){if(o.mode.includes("desktop"))if("horizontal"===o.type){const t=(e=e.classList.contains("level-2")?e:e.closest(".level-2")).offsetHeight-parseInt(getComputedStyle(e).paddingBottom),n=e.getBoundingClientRect().top+window.scrollY+t,i=document.querySelector(".s-hn").getBoundingClientRect().top+window.scrollY-t,s=window.innerHeight,r=document.documentElement.scrollHeight;e.classList.contains("top")?(d()||s===r||i<0)&&(i<0?W(e):V(e)):(d()||s===r||n>r)&&(n>window.scrollY+s?W(e):M===j&&V(e))}else if("boxed"===o.type){const e=document.getElementById("menu-submit"),t=o.elm,n=document.querySelector(".level-1").clientHeight,i=e.getBoundingClientRect().top+window.scrollY+e.clientHeight+n,s=document.documentElement.clientHeight,r=document.documentElement.scrollHeight;d()&&i>window.scrollY+s||!d()&&i>r?W(t):V(t)}},U=e=>{const t="boxed"===o.type?o.elm:e.target.closest("ul.level-2"),n=document.querySelectorAll(".s-hn-centered")&&!d()?document.querySelector(".level-1").getBoundingClientRect().top:0,s=(0,i.a1)()?parseInt(getComputedStyle(document.querySelector(".wnd-topfixed-wrapper")).height):0,r="centered"===o.subType;let a;a=t.classList.contains("top")?t.offsetHeight-parseInt(getComputedStyle(t).paddingTop):t.offsetHeight-parseInt(getComputedStyle(t).paddingBottom);let l=null;if("wheel"===e.type?l=e.deltaY:"touchstart"===e.type?B=e.touches[0].clientY:"touchmove"===e.type&&(F=e.touches[0].clientY,l=-1*(F-B),B=F),l=null===l?null:-1*l,t.classList.contains("top"))if(l>0){e.preventDefault();const n=document.querySelector(".s-hn"),i=window.scrollY,r=parseInt(n.getBoundingClientRect().top+i)+parseInt(n.offsetHeight)-M-parseInt(getComputedStyle(t).paddingBottom)-a;t.style.bottom=r+l<0-s?(M-=l)+"px":(M=-1*(a+30+s-(parseInt(n.getBoundingClientRect().top+i)+parseInt(n.offsetHeight)-i)))+"px"}else{e.preventDefault();const n=M+-1*l;t.style.bottom=n<H?(M=n)+"px":(M=H)+"px"}else if(l)if(e.preventDefault(),l>0)t.style.top=M+l<j?(M+=l)+"px":(M=j)+"px";else{const e=M+l,i=window.innerHeight,c=window.scrollY,u=document.getElementById("menu-submit"),p=u.getBoundingClientRect().top+c,h=u.offsetHeight,m=d(),f="boxed"!==o.subType||m?c+i-50:i-50;"boxed"===o.subType?t.style.top=m?(e+a>i?M+=l:M=-1*(a-(c+i-(p+h))))+"px":(e+p+a>f?M+=l:M=-1*(a-f)-(p+h)+30)+"px":t.style.top=m?(e+a>i?M+=l:M=-1*(a-i+30-(r?0:s)))+"px":(e+n+a>f?M+=l:M=-1*(a-f)-n+30-(r?0:s))+"px"}},W=e=>{e.classList.add("scrolling"),null===j&&(j=parseInt(getComputedStyle(e).top),M=e.classList.contains("top")?parseInt(getComputedStyle(e).bottom):j),null===H&&(H=e.classList.contains("top")?parseInt(getComputedStyle(e).bottom):null),e.addEventListener("wheel",U),e.addEventListener("touchstart",U),e.addEventListener("touchmove",U),e.addEventListener("touchend",U)},V=e=>{H=null,j=null,e.classList.remove("scrolling"),e.removeEventListener("wheel",U),e.removeEventListener("touchstart",U),e.removeEventListener("touchmove",U),e.removeEventListener("touchend",U)},Z=e=>{e.style.opacity="0",e.style.display="block";const t=parseInt(e.offsetWidth),n=window.innerWidth,i=e.getBoundingClientRect().left+t;if(e.removeAttribute("style"),i>n&&e.classList.add("align"),"bottom"===o.subType){const t="bottom"!==o.subType||document.querySelector(".wt-home")?180:0;window.scrollY<t&&!document.querySelector(".s-hm-hidden")?e.classList.add("top"):e.classList.remove("top")}else e.classList.contains("top")&&e.classList.remove("top")},G=e=>{if("mouse"===e.pointerType&&o.mode.includes("desktop")){const t=e.target.querySelector(":scope > ul");Z(t),t.classList.add("open"),e.target.classList.add("hover"),u("wnd-open-menu"),setTimeout((()=>{$(t)}),400)}},Q=e=>{if("mouse"===e.pointerType&&o.mode.includes("desktop")){const t=e.target.querySelector("ul");e.target.classList.remove("hover"),t.classList.remove("open"),t.classList.remove("align"),V(t),K(t),u("wnd-close-menu")}},Y=e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const t=e.target;if(t.classList.contains("mm-down"))if("vertical"===o.type&&o.mode.includes("desktop")){const e=t.previousElementSibling;t.parentNode.classList.add("hover"),t.classList.replace("mm-down","mm-up"),e.style.display="block";let n=e.offsetHeight;e.style.display="none",e.style.height=0,e.classList.add("open");const i=document.querySelector("#menu > div");let s=[{height:0},{height:`${n}px`}],r={duration:500,fill:"forwards",easing:"linear"},a=e.animate(s,r);a.onfinish=function(){e.removeAttribute("style"),a.cancel()};let l=function(){i.offsetHeight>o.elm.offsetHeight&&document.body.classList.add("scrolldown-active"),"running"===a.playState&&window.requestAnimationFrame(l)};window.requestAnimationFrame(l)}else t.parentNode.classList.add("hover"),t.classList.replace("mm-down","mm-up"),t.previousElementSibling.classList.add("open"),u("wnd-open-menu"),setTimeout((()=>{$(t.previousElementSibling)}),400);else if("vertical"===o.type&&o.mode.includes("desktop")){const e=t.previousElementSibling,n=document.querySelector("#menu > div");let i=e.offsetHeight;t.classList.replace("mm-up","mm-down");let s=[{height:`${i}px`},{height:0}],r={duration:500,fill:"forwards",easing:"linear"},a=e.animate(s,r);a.onfinish=function(){e.removeAttribute("style"),e.parentNode.classList.remove("hover"),e.classList.remove("open"),a.cancel()};let l=function(){n.offsetHeight<=o.elm.offsetHeight&&(document.body.classList.remove("scrollup-active"),document.body.classList.remove("scrolldown-active")),"running"===a.playState&&window.requestAnimationFrame(l)};window.requestAnimationFrame(l)}else t.parentNode.classList.remove("hover"),t.classList.replace("mm-up","mm-down"),t.previousElementSibling.classList.remove("open"),K(t.previousElementSibling),"horizontal"===o.type&&o.mode.includes("desktop")&&t.previousElementSibling.classList.contains("level-2")&&u("wnd-close-menu"),setTimeout((()=>{$(t.previousElementSibling)}),400)},K=e=>{const t=e||document;t.querySelectorAll("ul.open")?.forEach((e=>{(e=>{(e.classList.contains("level-2")||e.classList.contains("level-3")&&!e.parentNode.classList.contains("wnd-active-path"))&&(e.classList.remove("open"),e.parentNode.classList.remove("hover"),e.classList.remove("align"),e.nextElementSibling?.classList.replace("mm-up","mm-down"),e.removeAttribute("style"),e.classList.contains("level-2")&&V(e))})(e)}))},X=e=>{"touch"===e.pointerType&&(e.target.closest("#menu")||(K(),document.documentElement.removeEventListener("pointerdown",X)))},J=e=>{if(o.mode.includes("desktop")&&"touch"===e.pointerType){const t=e.currentTarget,n=t.parentNode,i=n.querySelector(":scope > ul");t.parentNode.classList.contains("hover")||(t.addEventListener("click",p,{once:!0}),setTimeout((()=>{t.removeEventListener("click",p,{once:!0})}),100),K(),Z(i),i.classList.add("open"),n.classList.add("hover"),u("wnd-open-menu"),setTimeout((()=>{$(i)}),400),setTimeout((()=>{document.documentElement.addEventListener("pointerdown",X)}),200))}},ee=()=>{o.elm.querySelectorAll("ul li.wnd-with-submenu").forEach((e=>{let t=e.parentNode;if((t.classList.contains("level-1")||t.classList.contains("level-2"))&&!e.querySelector("ul + .mm-arrow")){let t=document.createElement("a");t.setAttribute("href","#"),t.classList.add("mm-arrow","mm-down"),e.append(t)}t.classList.contains("level-3")&&e.classList.remove("wnd-with-submenu")}))},te=()=>{let e;e=o.mode.includes("mobile")||"boxed"===o.type||"vertical"===o.type?document.querySelectorAll("li.wnd-active-path.wnd-with-submenu"):document.querySelectorAll(".level-2 li.wnd-active-path.wnd-with-submenu"),(e=>{e?.forEach((e=>{let t=e.querySelector(":scope > ul");t&&t.classList.add("open");let n=e.querySelector(":scope > .mm-arrow");n&&n.classList.replace("mm-down","mm-up")}))})(e)},ne=e=>{const t=document.querySelector(".wnd-topfixed-wrapper"),n=document.querySelector(".wnd-fixed");if("compensate"===e){if(document.body.offsetHeight>window.innerHeight){const e=ie()+"px";document.body.style.paddingRight=e,d()&&(n.style.paddingRight=e),t&&(t.style.paddingRight=e,t.style.boxSizing="border-box")}}else document.body.removeAttribute("style"),d()&&n.removeAttribute("style"),t&&t.removeAttribute("style")},ie=()=>{const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),n},se=e=>{e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation();const t=document.querySelector("#menu-submit"),n="sliding"===o.subType&&o.mode.includes("desktop")?document.querySelector("#menu-slider"):o.elm;if(t.classList.contains("active")){const e=new Event("mobile-menu-close",{bubbles:!0,cancellable:!0});document.querySelector(".s-hn").dispatchEvent(e),t.classList.remove("active"),n.classList.remove("open"),s.A.removeClass("show"),document.documentElement.classList.remove("noscroll"),document.body.classList.remove("noscroll"),("sliding"===o.subType||o.mode.includes("mobile"))&&ne("clear"),setTimeout((()=>{n.classList.remove("visible"),document.body.classList.remove("menu-open"),s.A.removeOverlay("menu-overlay")}),250),"boxed"===o.subType&&(o.elm.removeAttribute("style"),V(o.elm)),u("wnd-close-menu")}else{const e=new Event("mobile-menu-open",{bubbles:!0,cancellable:!0});document.querySelector(".s-hn").dispatchEvent(e),t.classList.add("active"),n.classList.add("visible","open"),s.A.addOverlay("#menu-mobile","before","menu-overlay"),s.A.addClass("show"),s.A.bindOverlayClose("click",(()=>{let e=new Event("click");t.dispatchEvent(e)})),("sliding"===o.subType||o.mode.includes("mobile"))&&(document.documentElement.classList.add("noscroll"),document.body.classList.add("noscroll"),ne("compensate")),"boxed"===o.subType&&setTimeout((()=>{$()}),10),document.body.classList.add("menu-open"),u("wnd-open-menu")}},re=()=>{const e=document.querySelector("#menu-submit"),t=document.querySelectorAll(".menu-close"),n=document.querySelector(".scrollup"),i=document.querySelector(".scrolldown");e.addEventListener("click",se),t.forEach((e=>e.addEventListener("click",se))),n&&i&&(n.addEventListener("pointerdown",q),i.addEventListener("pointerdown",q))},oe=()=>{re(),(()=>{const e=document.querySelectorAll(".level-1 > li.wnd-with-submenu");"horizontal"===o.type&&(e?.forEach((e=>{e.addEventListener("pointerenter",G)})),e?.forEach((e=>{e.addEventListener("pointerleave",Q)})),e?.forEach((e=>{e.querySelector(":scope > a.menu-item").addEventListener("pointerdown",J)})));const t=document.querySelectorAll("li.wnd-with-submenu a.mm-arrow");t?.forEach((e=>{e.addEventListener("click",Y)}))})()},ae=()=>{re(),"vertical"===o.type&&(R(),D())};const le=()=>{const e=document.querySelector(".search-app");e&&!e.hasChildNodes()&&(document.body.classList.contains("wnd-s-i")&&e.insertAdjacentHTML("beforeend",`<div class="search-icon" role="button" aria-label="search" tabindex="0"><div class="search-icon-text">${wnd.$system.labels["wnd.pc.SearchBlock.iconText"]}</div></div>`),document.body.classList.contains("wnd-s-b")&&e.insertAdjacentHTML("beforeend",`<div class="search-bar"><input class="search-bar-input" placeholder="${wnd.$system.labels["wnd.pc.SearchBlock.inputPlaceholder"]}"><input type="submit" class="search-bar-submit" value=""></div>`))},ce=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=document.querySelector(".logo-block");let n,i,s,r=t?t.getBoundingClientRect().width+parseInt(getComputedStyle(t).marginLeft)+parseInt(getComputedStyle(t).marginRight):0,a=document.querySelector(".menu-nav").clientWidth,l=parseInt(getComputedStyle(o.elm).paddingRight),d=document.querySelector(".cart"),h=d?d.getBoundingClientRect().width+parseInt(getComputedStyle(d).marginLeft)+parseInt(getComputedStyle(d).marginRight)+(parseInt(getComputedStyle(d).right)||0):0,m=document.querySelector(".search"),f=0;if(m){const e="none"===getComputedStyle(m).display;le(),e&&(m.style.display="block"),f=m.getBoundingClientRect().width+parseInt(getComputedStyle(m).marginLeft)+parseInt(getComputedStyle(m).marginRight),e&&m.removeAttribute("style")}let g,v,y=document.querySelector("li.more");if(n=parseInt(getComputedStyle(o.elm).right),0===h&&(n=n>0?n-l:n),n=isNaN(n)?0:n,i=parseInt(getComputedStyle(o.elm).paddingRight)||0,s=parseInt(getComputedStyle(o.elm).paddingLeft)||0,!y){document.querySelector("#menu .level-1").insertAdjacentHTML("beforeend",`<li class="more wnd-with-submenu"><a href="#" class="menu-item"><span class="menu-item-text">${c}</span></a></li>`),y=document.querySelector("#menu .level-1 li.more")}g=y.getBoundingClientRect().width+parseInt(getComputedStyle(y).marginLeft)+parseInt(getComputedStyle(y).marginRight),y.parentNode.removeChild(y),v=parseInt(getComputedStyle(document.querySelector("#menu .level-1 > li:first-child > a")).paddingLeft)||0;const b=Math.floor(a)-Math.ceil(r)-Math.ceil(h)-Math.ceil(f)-Math.ceil(g)-Math.ceil(v)-Math.ceil(i)-Math.ceil(s)-Math.ceil(n)-Math.ceil(20);let w=0,S=0;if(document.querySelectorAll("#menu .level-1 > li:not(.more)")?.forEach((e=>{if(w+=function(e){e.style.display="inline-block";let t=window.getComputedStyle(e),n=parseInt(t.marginLeft)+parseInt(t.marginRight),i=e.offsetWidth+n;return e.removeAttribute("style"),i}(e),w>b){let t;t=document.querySelector("#menu .level-1 li.more"),t||(document.querySelector("#menu .level-1").insertAdjacentHTML("beforeend",`<li class="more wnd-with-submenu"><a href="#" class="menu-item"><span class="menu-item-text">${c}</span></a><ul class="level-2"></ul><a href="#" class="mm-arrow mm-down"></a></li>`),t=document.querySelector("#menu .level-1 li.more"),t.querySelector(":scope > a.menu-item").addEventListener("click",p),u("wnd-more-menu"));const n=e.cloneNode(!0);n.querySelectorAll("ul").forEach((function(e){if(e.classList.contains("level-2"))e.classList.replace("level-2","level-3"),e.removeAttribute("style");else if(e.classList.contains("level-3")){let t=e.parentNode.querySelector(".mm-arrow");t&&t.parentNode.removeChild(t)}else e.removeAttribute("style")}));document.querySelector("#menu .level-1 li.more .level-2").appendChild(n),e.classList.add("overflowed"),S++}else e.classList.remove("overflowed")})),S>0&&e){let e=document.querySelector("#menu li.more");e.addEventListener("pointerenter",G),e.addEventListener("pointerleave",Q),e.querySelector(":scope > a.menu-item").addEventListener("pointerdown",J);const t=document.querySelectorAll("li.more a.mm-arrow");t?.forEach((e=>{e.addEventListener("click",Y)}))}},ue=e=>{const t=e||document.querySelector("footer");"fixed"===getComputedStyle(t).position?document.querySelector(".l-sidebar").style.setProperty("--sidebar-bottom-padding",t.offsetHeight+"px"):document.querySelector(".l-sidebar").removeAttribute("style")},de=()=>{const e=document.querySelectorAll(".level-1 > li.wnd-with-submenu");e?.forEach((e=>{e.removeEventListener("pointerenter",G)})),e?.forEach((e=>{e.removeEventListener("pointerleave",Q)})),e?.forEach((e=>{e.querySelector(":scope > a.menu-item").removeEventListener("pointerdown",J)}))},pe=()=>{"sidebar"===o.subType&&(ue(),le()),ee(),te(),oe(),function(){if(o.mode.includes("desktop")){let e=getComputedStyle(o.elm).display;"none"===e&&(o.elm.style.display="block"),D(),"none"===e&&o.elm.removeAttribute("style")}}(),R()},he=e=>{o.hasItems&&("horizontal"===o.type&&ce(!0),"vertical"===o.type&&(D(),"sidebar"===o.subType&&ue()))},me=()=>{o=r(),(()=>{o=r();let e=document.querySelector("li.more");e?.parentNode.removeChild(e),document.querySelectorAll("ul.level-1 li.overflowed")?.forEach((e=>{e.classList.remove("overflowed")})),o.elm.removeEventListener("scroll",D);const t=document.querySelector("#menu-slider");t?.classList.remove("visible","open"),o.elm.classList.remove("visible","open"),document.querySelector("#menu-submit").classList.remove("active"),o.elm.classList.remove("open"),document.body.classList.remove("noscroll"),document.documentElement.classList.remove("noscroll"),s.A.removeOverlay("menu-overlay"),document.documentElement.classList.remove("menu-open"),document.body.removeAttribute("style"),K(),document.querySelectorAll(".mm-arrow").forEach((e=>{e.parentNode.removeChild(e)})),document.body.classList.remove("scrollup-active"),document.body.classList.remove("scrolldown-active"),document.querySelector(".l").removeAttribute("style"),de(),document.body.classList.remove("menu-ready")})(),o.mode.includes("mobile")?(ee(),te(),oe()):o.hasItems&&("horizontal"===o.type&&(ce(),ee(),te(),oe()),"vertical"===o.type&&pe(),"boxed"===o.type&&(ee(),te(),oe())),document.body.classList.add("menu-ready");const e=new CustomEvent("wnd-menu-redraw");document.body.dispatchEvent(e)};const fe=e=>{requestAnimationFrame(me),"wnd-view-switched-desktop"===e.type?P():T()},ge=function(e,t){let n;return function(){const i=this,s=arguments;(s[0].target&&s[0].target.classList.contains("s-hn")||s[0].target&&s[0].target.classList.contains("wnd-page"))&&(clearTimeout(n),n||e.apply(i,s),n=setTimeout((function(){n=null}),t))}}((()=>{o=r(),T();let e=_();E!==e&&(E&&e&&requestAnimationFrame(he),E=e),l!==o.subType?(requestAnimationFrame(me),l=o.subType):requestAnimationFrame(ae),o.mode.includes("desktop")&&requestAnimationFrame(P)}),200),ve=function(e,t){let n;return function(){const i=this,s=arguments;s[0].target&&s[0].target.classList.contains("menu-wrapper")&&(clearTimeout(n),n||e.apply(i,s),n=setTimeout((function(){n=null}),t))}}((()=>{requestAnimationFrame(me)}),200);a.addEventListener("wnd-redraw",ge),a.addEventListener("wnd-navline-resize",(e=>{"height"!==e.detail.type||"sidebar"!==o.subType&&"sliding"!==o.subType||he(),"width"!==e.detail.type||"default"!==o.subType&&"bottom"!==o.subType&&"centered"!==o.subType||he()})),a.addEventListener("wnd-logo-resize",(e=>{"height"===e.detail.type&&"sidebar"===o.subType&&he(),"width"!==e.detail.type||"default"!==o.subType&&"bottom"!==o.subType||he()})),a.addEventListener("wnd-redraw",ve),document.body.addEventListener("wnd-view-switched-mobile",fe),document.body.addEventListener("wnd-view-switched-desktop",fe);if(window.addEventListener("navfixed",(()=>{"boxed"===o.subType?o.elm.classList.contains("open")&&setTimeout((function(){$(document.querySelector(".level-1"))}),10):document.querySelectorAll(".level-2.open").length&&setTimeout((function(){$(document.querySelector(".level-2.open"))}),10)})),window.addEventListener("navunfixed",(()=>{"horizontal"===o.type&&[".level-2.open",".level-2"].forEach((e=>{const t=document.querySelectorAll(e);t?.forEach((e=>V(e)))})),"boxed"===o.type&&V(o.elm),"sidebar"===o.subType&&[".s-hn",".wnd-fixed"].forEach((e=>{const t=document.querySelector(e);t&&(t.classList.remove(".s-hn"===e?"sticky":"bgonscroll"),".wnd-fixed"===e&&t.removeAttribute("style"))}))})),I(),(0,i.a1)()&&new MutationObserver((e=>{e.forEach((e=>{e.target.classList&&!e.target.classList.contains(z)&&(z=A(),I())}))})).observe(document.querySelector(".wnd-page"),{attributes:!0,attributeFilter:["class"]}),me(),o.mode.includes("desktop")&&(C(),v(),"sidebar"===o.subType&&S()),document.body.classList.contains("wt-typography")){let e=document.querySelector("ul.level-1 > li:first-child"),t=e?.clientWidth;new ResizeObserver((n=>{const i=e.clientWidth;i!==t&&(requestAnimationFrame(he),t=i)})).observe(e)}}))},1:()=>{
/*! modernizr 3.6.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-sizes-srcset-webp-webpalpha-setclasses !*/
!function(e,t){function n(e,t){return typeof e===t}function i(e){var t=d.className,n=c._config.classPrefix||"";if(p&&(t=t.baseVal),c._config.enableJSClass){var i=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(i,"$1"+n+"js$2")}c._config.enableClasses&&(t+=" "+n+e.join(" "+n),p?d.className.baseVal=t:d.className=t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):p?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function r(e,t){if("object"==typeof e)for(var n in e)u(e,n)&&r(n,e[n]);else{var s=(e=e.toLowerCase()).split("."),o=c[s[0]];if(2==s.length&&(o=o[s[1]]),void 0!==o)return c;t="function"==typeof t?t():t,1==s.length?c[s[0]]=t:(!c[s[0]]||c[s[0]]instanceof Boolean||(c[s[0]]=new Boolean(c[s[0]])),c[s[0]][s[1]]=t),i([(t&&0!=t?"":"no-")+s.join("-")]),c._trigger(e,t)}return c}var o=[],a=[],l={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout((function(){t(n[e])}),0)},addTest:function(e,t,n){a.push({name:e,fn:t,options:n})},addAsyncTest:function(e){a.push({name:null,fn:e})}},c=function(){};c.prototype=l,c=new c;var u,d=t.documentElement,p="svg"===d.nodeName.toLowerCase();c.addTest("srcset","srcset"in s("img")),function(){var e={}.hasOwnProperty;u=n(e,"undefined")||n(e.call,"undefined")?function(e,t){return t in e&&n(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),l._l={},l.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),c.hasOwnProperty(e)&&setTimeout((function(){c._trigger(e,c[e])}),0)},l._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout((function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)}),0),delete this._l[e]}},c._q.push((function(){l.addTest=r})),c.addAsyncTest((function(){var e,t,n=s("img"),i="sizes"in n;!i&&"srcset"in n?(e="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",t=function(){r("sizes",2==n.width)},n.onload=t,n.onerror=t,n.setAttribute("sizes","9px"),n.srcset=e+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 8w",n.src=e):r("sizes",i)})),c.addAsyncTest((function(){var e=new Image;e.onerror=function(){r("webpalpha",!1)},e.onload=function(){r("webpalpha",1==e.width)},e.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="})),c.addAsyncTest((function(){function e(e,t,n){function i(t){var i=!(!t||"load"!==t.type)&&1==s.width;r(e,"webp"===e&&i?new Boolean(i):i),n&&n(t)}var s=new Image;s.onerror=i,s.onload=i,s.src=t}var t=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],n=t.shift();e(n.name,n.uri,(function(n){if(n&&"load"===n.type)for(var i=0;i<t.length;i++)e(t[i].name,t[i].uri)}))})),function(){var e,t,i,s,r,l;for(var u in a)if(a.hasOwnProperty(u)){if(e=[],(t=a[u]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(i=0;i<t.options.aliases.length;i++)e.push(t.options.aliases[i].toLowerCase());for(s=n(t.fn,"function")?t.fn():t.fn,r=0;r<e.length;r++)1===(l=e[r].split(".")).length?c[l[0]]=s:(!c[l[0]]||c[l[0]]instanceof Boolean||(c[l[0]]=new Boolean(c[l[0]])),c[l[0]][l[1]]=s),o.push((s?"":"no-")+l.join("-"))}}(),i(o),delete l.addTest,delete l.addAsyncTest;for(var h=0;h<c._q.length;h++)c._q[h]();e.Modernizr=c}(window,document)},525:(e,t)=>{const n=function(){this.overlayActive=!1,this.overlayClass="fullscreen-overlay"};n.prototype.addOverlay=function(e,t,n){const i=e instanceof HTMLElement?e:document.querySelector(e);if(!i)return;n=void 0===n?"":" "+n;const s=`<div class="${this.overlayClass+n}"></div>`;"append"===t?i.insertAdjacentHTML("beforeend",s):"before"===t?i.insertAdjacentHTML("beforebegin",s):"after"===t&&i.insertAdjacentHTML("afterend",s),this.overlayActive=!0},n.prototype.removeOverlay=function(e){(e?document.querySelectorAll(`.${this.overlayClass}.${e}`):document.querySelectorAll(`.${this.overlayClass}`)).forEach((e=>e.remove())),this.overlayActive=!1},n.prototype.addClass=function(e){const t=document.querySelector(`.${this.overlayClass}`);t&&t.classList.add(...e.split(" "))},n.prototype.removeClass=function(e){const t=document.querySelector(`.${this.overlayClass}`);t&&t.classList.remove(...e.split(" "))},n.prototype.bindOverlayClose=function(e,t){const n=document.querySelector(`.${this.overlayClass}`);if(n){e.split(" ").forEach((e=>{n.addEventListener(e,t,{once:!0})}))}};const i=new n;t.A=i},118:(e,t,n)=>{"use strict";var i=n(730);!function(){const e=document.querySelector(".s-hn"),t=document.querySelector(".l-h");let n,s,r,o;const a=!(0,i.Nw)()&&!(0,i.nr)();//!msieVersion() && !isSafari() && !isFirefox();
function l(e,t,n,i,s,r,o,a,l,c){const u=-e+t,d=n<t?e-n:e-t,p=s-d,h=r+d;let m;if(o&&l){m=0+(u-0)*(i-p)/(h-p)-(0+(u-0)*(t/2-p)/(h-p))}else if(a&&c){m=0+(u-0)*(i-p)/(h-p)+(0+(u-0)*(d+t/2)/(h-p))}else m=0+(u-0)*(i-p)/(h-p);return m}function c(){const e=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,i=t+e,c=(t+i)/2,u=document.querySelectorAll(".bgatt-parallax");u&&u.forEach((u=>{const d=u;let p=d.closest(".s");null===p&&(p=d.closest(".l-bg"));const h=p===document.querySelector(".l-m .sw-c section:first-child"),m=p===document.querySelector(".l-m .sw-c section:last-child"),f=d.classList.contains("bgpos-top-center"),g=d.classList.contains("bgpos-bottom-center"),v=a?p.offsetHeight:parseFloat(getComputedStyle(d,null).height.replace("px","")),y=a?p.getBoundingClientRect().top+window.pageYOffset:d.getBoundingClientRect().top+window.pageYOffset,b=y+v;let w,S,_;if(i>y&&t<b)if(a){w=parseFloat(getComputedStyle(d,null).height.replace("px","")),_=l(w,e,v,c,y,b,h,m,f,g);const t=`translate3d(0px, ${_}px, 0px)`;let i="0px";!n||s||o||(i=`${r+o}px`),d.style.marginLeft=i,d.style["-webkit-transform"]=t,d.style["-ms-transform"]=t,d.style.transform=t}else{S=d.getAttribute("resized-imgw"),w=d.getAttribute("resized-imgh");let t=0;d.style.top.indexOf("px")>0&&parseInt(d.style.top,10)>0&&(t=parseInt(d.style.top,10)),_=l(w,e,v,c,y,b,h,m,f,g),_+=t;let i="50%";n&&!s&&0===o&&(i=`${r+(parseInt(getComputedStyle(d,null).width.replace("px",""),10)-S)/2}px`),d.style.backgroundPosition=`${i} ${_}px`}}))}function u(){n=document.body.classList.contains("l-sidebar")&&"fixed"===getComputedStyle(t).position,s=null!==e&&(e.classList.contains("sc-wt")||e.classList.contains("sc-dt")||e.classList.contains("sc-none")),r=parseInt(getComputedStyle(t,null).width.replace("px",""),10),o=parseInt(getComputedStyle(t).marginLeft,10);const l=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),u=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),d=document.querySelectorAll(".bgatt-parallax");d&&d.forEach((e=>{const t=e,i=t.classList.contains("wnd-background-pattern");if(a){t.classList.contains("parallax")||t.classList.add("parallax");const e=l+200;t.style.height=`${e}px`}else{let e=parseInt(getComputedStyle(t,null).width.replace("px",""),10);if(n&&(s||o>0)&&(e=u),null===t.querySelector("picture")){const n=t.getAttribute("style"),s=n.indexOf("http");let r;r=n.indexOf("')")>-1?n.indexOf("')"):n.indexOf('")')>-1?n.indexOf('")'):n.indexOf(")");const o=n.substr(s,r-s),a=document.createElement("IMG");a.setAttribute("src",o),a.addEventListener("load",(()=>{let n=a.width,s=a.height;const r=n/s;s=l+200,n=s*r,e>n&&(n=e,s=n/r),i||(t.style.backgroundSize=`${n}px ${s}px`),t.setAttribute("resized-imgW",n),t.setAttribute("resized-imgH",s),t.style.backgroundAttachment="fixed"}))}else{const n=t.querySelector("picture > img"),i=n.src;let s=n.naturalHeight,r=n.naturalWidth;s=0===s?parseInt(n.getAttribute("height"),10):s,r=0===r?parseInt(n.getAttribute("width"),10):r;const o=r/s;s=l+200,r=s*o,e>r&&(r=e,s=r/o),t.style.backgroundImage=`url(${i})`,t.style.backgroundSize=`${r}px ${s}px`,t.setAttribute("resized-imgW",r),t.setAttribute("resized-imgH",s),t.style.backgroundAttachment="fixed"}}}));const p=(0,i.Nw)()?300:100;setTimeout((()=>{c()}),p)}(0,i.Gc)((()=>{(0,i.En)("touched")||(0,i.En)("wnd-frontend-test")||(0,i.En)("mobile-devices")||(0,i.CB)()||(0,i.Q5)()?document.querySelectorAll(".bgatt-parallax").forEach((e=>{e.classList.remove("bgatt-parallax"),e.classList.add("bgatt-scroll")})):(window.addEventListener("resize",(()=>u())),window.addEventListener("orientationchange",(()=>u())),window.addEventListener("scroll",(()=>window.requestAnimationFrame(c))),(0,i.a1)()?setTimeout((()=>{u()}),50):u()),(0,i.a1)()&&document.body.addEventListener("wnd-redraw",(()=>{setTimeout((()=>{document.querySelectorAll(".s-bg-l.parallax:not(.bgatt-parallax)").forEach((e=>{e.classList.remove("parallax")})),(0,i.En)("touched")||u()}),200)}))}))}()},437:(e,t,n)=>{"use strict";
/*!
  * PhotoSwipe Lightbox 5.2.8 - https://photoswipe.com
  * (c) 2022 Dmytro Semenov
  */
function i(e,t,n){const i=document.createElement(t||"div");return e&&(i.className=e),n&&n.appendChild(i),i}function s(e,t,n){e.style.width="number"==typeof t?t+"px":t,e.style.height="number"==typeof n?n+"px":n}n.d(t,{P:()=>Ne});const r="idle",o="loading",a="loaded",l="error";function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=[];if(e instanceof Element)i=[e];else if(e instanceof NodeList||Array.isArray(e))i=Array.from(e);else{const s="string"==typeof e?e:t;s&&(i=Array.from(n.querySelectorAll(s)))}return i}class u{constructor(e,t){this.type=e,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class d{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;this._filters[e]||(this._filters[e]=[]),this._filters[e].push({fn:t,priority:n}),this._filters[e].sort(((e,t)=>e.priority-t.priority)),this.pswp&&this.pswp.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter((e=>e.fn!==t))),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this._filters[e]&&this._filters[e].forEach((e=>{n[0]=e.fn.apply(this,n)})),n[0]}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this.pswp&&this.pswp.on(e,t)}off(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((e=>t!==e))),this.pswp&&this.pswp.off(e,t)}dispatch(e,t){if(this.pswp)return this.pswp.dispatch(e,t);const n=new u(e,t);return this._listeners?(this._listeners[e]&&this._listeners[e].forEach((e=>{e.call(this,n)})),n):n}}class p{constructor(e,t){this.element=i("pswp__img pswp__img--placeholder",e?"img":"",t),e&&(this.element.decoding="async",this.element.alt="",this.element.src=e,this.element.setAttribute("role","presentation")),this.element.setAttribute("aria-hiden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(s(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=function(e,t,n){let i="translate3d("+e+"px,"+(t||0)+"px,0)";return void 0!==n&&(i+=" scale3d("+n+","+n+",1)"),i}(0,0,e/250)):s(this.element,e,t))}destroy(){this.element.parentNode&&this.element.remove(),this.element=null}}class h{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.state=r,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=null)}),500)}load(e,t){if(!this.placeholder&&this.slide&&this.usePlaceholder()){const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new p(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?this.loadImage(e):(this.element=i("pswp__content"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){const t=i("pswp__img","img");this.element=t,this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented||(this.data.srcset&&(t.srcset=this.data.srcset),t.src=this.data.src,t.alt=this.data.alt||"",this.state=o,t.complete?this.onLoaded():(t.onload=()=>{this.onLoaded()},t.onerror=()=>{this.onError()}))}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=a,this.slide&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.slide.container.innerHTML="",this.append(),this.slide.updateContentSize(!0)))}onError(){this.state=l,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===o,this)}isError(){return this.state===l}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(s(this.element,e,t),this.isImageContent()&&!this.isError()))){const n=this.element;n.srcset&&(!n.dataset.largestUsedSize||e>parseInt(n.dataset.largestUsedSize,10))&&(n.sizes=e+"px",n.dataset.largestUsedSize=String(e)),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==l,this)}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=null,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=null))}displayError(){if(this.slide){let e=i("pswp__error-msg");e.innerText=this.instance.options.errorMsg,e=this.instance.applyFilters("contentErrorElement",e,this),this.element=i("pswp__content pswp__error-msg-container"),this.element.appendChild(e),this.slide.container.innerHTML="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){this.isAttached=!0,this.state!==l?this.instance.dispatch("contentAppend",{content:this}).defaultPrevented||(this.isImageContent()?this.slide&&!this.slide.isActive&&"decode"in this.element?(this.isDecoding=!0,requestAnimationFrame((()=>{this.element&&"IMG"===this.element.tagName&&this.element.decode().then((()=>{this.isDecoding=!1,requestAnimationFrame((()=>{this.appendImage()}))})).catch((()=>{this.isDecoding=!1}))}))):(!this.placeholder||this.state!==a&&this.state!==l||this.removePlaceholder(),this.appendImage()):this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element)):this.displayError()}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||this.slide&&(this.isImageContent()&&this.isDecoding?this.appendImage():this.isError()&&this.load(!1,!0))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this})}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||this.element&&this.element.parentNode&&this.element.remove()}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||this.slide&&this.element&&!this.element.parentNode&&(this.slide.container.appendChild(this.element),!this.placeholder||this.state!==a&&this.state!==l||this.removePlaceholder()))}}class m extends d{getNumItems(){let e;const{dataSource:t}=this.options;t?"length"in t?e=t.length:"gallery"in t&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),t.items&&(e=t.items.length)):e=0;const n=this.dispatch("numItems",{dataSource:t,numItems:e});return this.applyFilters("numItems",n.numItems,t)}createContentFromData(e,t){return new h(e,this,t)}getItemData(e){const{dataSource:t}=this.options;let n;Array.isArray(t)?n=t[e]:t&&t.gallery&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),n=t.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const s=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",s.itemData,e)}_getGalleryDOMElements(e){return this.options.children||this.options.childSelector?c(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},n="A"===e.tagName?e:e.querySelector("a");if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=parseInt(n.dataset.pswpWidth,10),t.height=parseInt(n.dataset.pswpHeight,10),t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType);const i=e.querySelector("img");i&&(t.msrc=i.currentSrc||i.src,t.alt=i.getAttribute("alt")),(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,n)}}function f(e,t,n,i,s){let r;if(t.paddingFn)r=t.paddingFn(n,i,s)[e];else if(t.padding)r=t.padding[e];else{const n="padding"+e[0].toUpperCase()+e.slice(1);t[n]&&(r=t[n])}return r||0}class g{constructor(e,t,n,i){this.pswp=i,this.options=e,this.itemData=t,this.index=n}update(e,t,n){this.elementSize={x:e,y:t},this.panAreaSize=n;const i=this.panAreaSize.x/this.elementSize.x,s=this.panAreaSize.y/this.elementSize.y;this.fit=Math.min(1,i<s?i:s),this.fill=Math.min(1,i>s?i:s),this.vFill=Math.min(1,s),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",n=this.options[t];if(n)return"function"==typeof n?n(this):"fill"===n?this.fill:"fit"===n?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){const e=this._parseZoomLevelOption("max");return e||Math.max(1,4*this.fit)}}function v(e,t,n){const i=t.createContentFromData(e,n);if(!i||!i.lazyLoad)return;const{options:s}=t,r=t.viewportSize||function(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(s,t),o=function(e,t,n,i){return{x:t.x-f("left",e,t,n,i)-f("right",e,t,n,i),y:t.y-f("top",e,t,n,i)-f("bottom",e,t,n,i)}}(s,r,e,n),a=new g(s,e,-1);return a.update(i.width,i.height,o),i.lazyLoad(),i.setDisplayedSize(Math.ceil(i.width*a.initial),Math.ceil(i.height*a.initial)),i}class y extends m{constructor(e){super(),this.options=e||{},this._uid=0}init(){this.onThumbnailsClick=this.onThumbnailsClick.bind(this),c(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(e){if(function(e){if(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)return!0}(e)||window.pswp||!1===window.navigator.onLine)return;let t={x:e.clientX,y:e.clientY};t.x||t.y||(t=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);const i={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,i,t))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);const t=e.target,n=c(this.options.children,this.options.childSelector,e.currentTarget).findIndex((e=>e===t||e.contains(t)));return-1!==n?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,n){return!window.pswp&&(this.options.index=e,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(e,t),!0)}preload(e,t){const{options:n}=this;t&&(n.dataSource=t);const i=[],s=typeof n.pswpModule;if("function"==typeof(r=n.pswpModule)&&r.prototype&&r.prototype.goTo)i.push(Promise.resolve(n.pswpModule));else{if("string"===s)throw new Error("pswpModule as string is no longer supported");if("function"!==s)throw new Error("pswpModule is not valid");i.push(n.pswpModule())}var r;"function"==typeof n.openPromise&&i.push(n.openPromise()),!1!==n.preloadFirstSlide&&e>=0&&(this._preloadedContent=function(e,t){const n=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return v(n,t,e)}(e,this));const o=++this._uid;Promise.all(i).then((e=>{if(this.shouldOpen){const t=e[0];this._openPhotoswipe(t,o)}}))}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const n="object"==typeof e?new e.default(this.options):new e(this.options);this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach((e=>{this._listeners[e].forEach((t=>{n.on(e,t)}))})),Object.keys(this._filters).forEach((e=>{this._filters[e].forEach((t=>{n.addFilter(e,t.fn,t.priority)}))})),this._preloadedContent&&(n.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=null),n.on("destroy",(()=>{this.pswp=null,window.pswp=null})),n.init()}destroy(){this.pswp&&this.pswp.destroy(),this.shouldOpen=!1,this._listeners=null,c(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)}))}}
/*!
  * PhotoSwipe 5.2.8 - https://photoswipe.com
  * (c) 2022 Dmytro Semenov
  */
function b(e,t,n){const i=document.createElement(t||"div");return e&&(i.className=e),n&&n.appendChild(i),i}function w(e,t){return e.x=t.x,e.y=t.y,void 0!==t.id&&(e.id=t.id),e}function S(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function _(e,t){const n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return Math.sqrt(n*n+i*i)}function E(e,t){return e.x===t.x&&e.y===t.y}function x(e,t,n){return Math.min(Math.max(e,t),n)}function N(e,t,n){let i="translate3d("+e+"px,"+(t||0)+"px,0)";return void 0!==n&&(i+=" scale3d("+n+","+n+",1)"),i}function L(e,t,n,i){e.style.transform=N(t,n,i)}const k="cubic-bezier(.4,0,.22,1)";function C(e,t,n,i){e.style.transition=t?t+" "+n+"ms "+(i||k):"none"}function P(e,t,n){e.style.width="number"==typeof t?t+"px":t,e.style.height="number"==typeof n?n+"px":n}const T="idle",A="loading",I="loaded",z="error";let O=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{O=!0}}))}catch(e){}class D{constructor(){this._pool=[]}add(e,t,n,i){this._toggleListener(e,t,n,i)}remove(e,t,n,i){this._toggleListener(e,t,n,i,!0)}removeAll(){this._pool.forEach((e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)})),this._pool=[]}_toggleListener(e,t,n,i,s,r){if(!e)return;const o=s?"removeEventListener":"addEventListener";t.split(" ").forEach((t=>{if(t){r||(s?this._pool=this._pool.filter((i=>i.type!==t||i.listener!==n||i.target!==e)):this._pool.push({target:e,type:t,listener:n,passive:i}));const a=!!O&&{passive:i||!1};e[o](t,n,a)}}))}}function q(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function R(e,t,n,i,s){let r;if(t.paddingFn)r=t.paddingFn(n,i,s)[e];else if(t.padding)r=t.padding[e];else{const n="padding"+e[0].toUpperCase()+e.slice(1);t[n]&&(r=t[n])}return r||0}function B(e,t,n,i){return{x:t.x-R("left",e,t,n,i)-R("right",e,t,n,i),y:t.y-R("top",e,t,n,i)-R("bottom",e,t,n,i)}}class F{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={},this.max={},this.min={},this.reset()}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:t}=this.slide,n=this.slide["x"===e?"width":"height"]*this.currZoomLevel,i=R("x"===e?"left":"top",t.options,t.viewportSize,this.slide.data,this.slide.index),s=this.slide.panAreaSize[e];this.center[e]=Math.round((s-n)/2)+i,this.max[e]=n>s?Math.round(s-n)+i:this.center[e],this.min[e]=n>s?i:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,t){return x(t,this.max[e],this.min[e])}}class M{constructor(e,t,n,i){this.pswp=i,this.options=e,this.itemData=t,this.index=n}update(e,t,n){this.elementSize={x:e,y:t},this.panAreaSize=n;const i=this.panAreaSize.x/this.elementSize.x,s=this.panAreaSize.y/this.elementSize.y;this.fit=Math.min(1,i<s?i:s),this.fill=Math.min(1,i>s?i:s),this.vFill=Math.min(1,s),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",n=this.options[t];if(n)return"function"==typeof n?n(this):"fill"===n?this.fill:"fit"===n?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){const e=this._parseZoomLevelOption("max");return e||Math.max(1,4*this.fit)}}class j{constructor(e,t,n){this.data=e,this.index=t,this.pswp=n,this.isActive=t===n.currIndex,this.currentResolution=0,this.panAreaSize={},this.isFirstSlide=this.isActive&&!n.opener.isOpen,this.zoomLevels=new M(n.options,e,t,n),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:t}),this.pan={x:0,y:0},this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=b("pswp__zoom-wrap"),this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.bounds=new F(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.data?(this.calculateSize(),this.container.style.transformOrigin="0 0",this.load(),this.appendHeavy(),this.updateContentSize(),this.holderElement.innerHTML="",this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate()):this.holderElement.innerHTML=""}load(){this.content.load(),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;!this.heavyAppended&&e.opener.isOpen&&!e.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(e){const t=this.currentResolution||this.zoomLevels.initial;if(!t)return;const n=Math.round(this.width*t)||this.pswp.viewportSize.x,i=Math.round(this.height*t)||this.pswp.viewportSize.y;(this.sizeChanged(n,i)||e)&&this.content.setDisplayedSize(n,i)}sizeChanged(e,t){return(e!==this.prevDisplayedWidth||t!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=e,this.prevDisplayedHeight=t,!0)}getPlaceholderElement(){if(this.content.placeholder)return this.content.placeholder.element}zoomTo(e,t,n,i){const{pswp:s}=this;if(!this.isZoomable()||s.mainScroll.isShifted())return;s.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:t,transitionDuration:n}),s.animations.stopAllPan();const r=this.currZoomLevel;i||(e=x(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",t,r),this.pan.y=this.calculateZoomToPanOffset("y",t,r),S(this.pan);const o=()=>{this._setResolution(e),this.applyCurrentZoomPan()};n?s.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:o,duration:n,easing:s.options.easing}):o()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,t,n){if(0===this.bounds.max[e]-this.bounds.min[e])return this.bounds.center[e];t||(t=this.pswp.getViewportCenterPoint());const i=this.currZoomLevel/n;return this.bounds.correctPan(e,(this.pan[e]-t[e])*i+t[e])}panTo(e,t){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",t),this.applyCurrentZoomPan()}isPannable(){return this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),w(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,t,n){n/=this.currentResolution||this.zoomLevels.initial,L(this.container,e,t,n)}calculateSize(){const{pswp:e}=this;w(this.panAreaSize,B(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return N(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class H{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={}}start(){w(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:t,dragAxis:n,pswp:i}=this.gestures,{currSlide:s}=i;if("y"===n&&i.options.closeOnVerticalDrag&&s.currZoomLevel<=s.zoomLevels.fit&&!this.gestures.isMultitouch){const n=s.pan.y+(e.y-t.y);if(!i.dispatch("verticalDrag",{panY:n}).defaultPrevented){this._setPanWithFriction("y",n,.6);const e=1-Math.abs(this._getVerticalDragRatio(s.pan.y));i.applyBgOpacity(e),s.applyCurrentZoomPan()}}else{this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),S(s.pan),s.applyCurrentZoomPan())}}end(){const{pswp:e,velocity:t}=this.gestures,{mainScroll:n}=e;let i=0;if(e.animations.stopAll(),n.isShifted()){const s=(n.x-n.getCurrSlideX())/e.viewportSize.x;t.x<-.5&&s<0||t.x<.1&&s<-.5?(i=1,t.x=Math.min(t.x,0)):(t.x>.5&&s>0||t.x>-.1&&s>.5)&&(i=-1,t.x=Math.max(t.x,0)),n.moveIndexBy(i,!0,t.x)}e.currSlide.currZoomLevel>e.currSlide.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{pswp:t}=this,{currSlide:n}=t,{velocity:i}=this.gestures,{pan:s,bounds:r}=n,o=s[e],a=t.bgOpacity<1&&"y"===e,l=o+function(e,t){return e*t/(1-t)}(i[e],.995);if(a){const e=this._getVerticalDragRatio(o),n=this._getVerticalDragRatio(l);if(e<0&&n<-.4||e>0&&n>.4)return void t.close()}const c=r.correctPan(e,l);if(o===c)return;const u=c===l?1:.82,d=t.bgOpacity,p=c-o;t.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:c,velocity:i[e],dampingRatio:u,onUpdate:i=>{if(a&&t.bgOpacity<1){const e=1-(c-i)/p;t.applyBgOpacity(x(d+(1-d)*e,0,1))}s[e]=Math.floor(i),n.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:t,pswp:n,dragAxis:i,prevP1:s,isMultitouch:r}=this.gestures,{currSlide:o,mainScroll:a}=n,l=t[e]-s[e],c=a.x+l;if(!l)return;if("x"===e&&!o.isPannable()&&!r)return a.moveTo(c,!0),!0;const{bounds:u}=o,d=o.pan[e]+l;if(n.options.allowPanToNext&&"x"===i&&"x"===e&&!r){const t=a.getCurrSlideX(),n=a.x-t,i=l>0,s=!i;if(d>u.min[e]&&i){if(u.min[e]<=this.startPan[e])return a.moveTo(c,!0),!0;this._setPanWithFriction(e,d)}else if(d<u.max[e]&&s){if(this.startPan[e]<=u.max[e])return a.moveTo(c,!0),!0;this._setPanWithFriction(e,d)}else if(0!==n){if(n>0)return a.moveTo(Math.max(c,t),!0),!0;if(n<0)return a.moveTo(Math.min(c,t),!0),!0}else this._setPanWithFriction(e,d)}else"y"===e&&(a.isShifted()||u.min.y===u.max.y)||this._setPanWithFriction(e,d)}_getVerticalDragRatio(e){return(e-this.pswp.currSlide.bounds.center.y)/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,t,n){const{pan:i,bounds:s}=this.pswp.currSlide;if(s.correctPan(e,t)!==t||n){const s=Math.round(t-i[e]);i[e]+=s*(n||.35)}else i[e]=t}}function $(e,t,n){return e.x=(t.x+n.x)/2,e.y=(t.y+n.y)/2,e}class U{constructor(e){this.gestures=e,this.pswp=this.gestures.pswp,this._startPan={},this._startZoomPoint={},this._zoomPoint={}}start(){this._startZoomLevel=this.pswp.currSlide.currZoomLevel,w(this._startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:t,p2:n,startP2:i,pswp:s}=this.gestures,{currSlide:r}=s,o=r.zoomLevels.min,a=r.zoomLevels.max;if(!r.isZoomable()||s.mainScroll.isShifted())return;$(this._startZoomPoint,t,i),$(this._zoomPoint,e,n);let l=1/_(t,i)*_(e,n)*this._startZoomLevel;if(l>r.zoomLevels.initial+r.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),l<o)if(s.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=r.zoomLevels.initial){const e=1-(o-l)/(o/1.2);s.dispatch("pinchClose",{bgOpacity:e}).defaultPrevented||s.applyBgOpacity(e)}else l=o-.15*(o-l);else l>a&&(l=a+.05*(l-a));r.pan.x=this._calculatePanForZoomLevel("x",l),r.pan.y=this._calculatePanForZoomLevel("y",l),r.setZoomLevel(l),r.applyCurrentZoomPan()}end(){const{pswp:e}=this,{currSlide:t}=e;t.currZoomLevel<t.zoomLevels.initial&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,t){const n=t/this._startZoomLevel;return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*n}correctZoomPan(e){const{pswp:t}=this,{currSlide:n}=t;if(!n.isZoomable())return;void 0===this._zoomPoint.x&&(e=!0);const i=n.currZoomLevel;let s,r=!0;i<n.zoomLevels.initial?s=n.zoomLevels.initial:i>n.zoomLevels.max?s=n.zoomLevels.max:(r=!1,s=i);const o=t.bgOpacity,a=t.bgOpacity<1,l=w({},n.pan);let c=w({},l);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=i,w(this._startPan,l)),r&&(c={x:this._calculatePanForZoomLevel("x",s),y:this._calculatePanForZoomLevel("y",s)}),n.setZoomLevel(s),c={x:n.bounds.correctPan("x",c.x),y:n.bounds.correctPan("y",c.y)},n.setZoomLevel(i);let u=!0;if(E(c,l)&&(u=!1),!u&&!r&&!a)return n._setResolution(s),void n.applyCurrentZoomPan();t.animations.stopAllPan(),t.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:e=>{if(e/=1e3,u||r){if(u&&(n.pan.x=l.x+(c.x-l.x)*e,n.pan.y=l.y+(c.y-l.y)*e),r){const t=i+(s-i)*e;n.setZoomLevel(t)}n.applyCurrentZoomPan()}a&&t.bgOpacity<1&&t.applyBgOpacity(x(o+(1-o)*e,0,1))},onComplete:()=>{n._setResolution(s),n.applyCurrentZoomPan()}})}}function W(e){return!!e.target.closest(".pswp__container")}class V{constructor(e){this.gestures=e}click(e,t){const n=t.target.classList,i=n.contains("pswp__img"),s=n.contains("pswp__item")||n.contains("pswp__zoom-wrap");i?this._doClickOrTapAction("imageClick",e,t):s&&this._doClickOrTapAction("bgClick",e,t)}tap(e,t){W(t)&&this._doClickOrTapAction("tap",e,t)}doubleTap(e,t){W(t)&&this._doClickOrTapAction("doubleTap",e,t)}_doClickOrTapAction(e,t,n){const{pswp:i}=this.gestures,{currSlide:s}=i,r=e+"Action",o=i.options[r];if(!i.dispatch(r,{point:t,originalEvent:n}).defaultPrevented)if("function"!=typeof o)switch(o){case"close":case"next":i[o]();break;case"zoom":s.toggleZoom(t);break;case"zoom-or-close":s.isZoomable()&&s.zoomLevels.secondary!==s.zoomLevels.initial?s.toggleZoom(t):i.options.clickToCloseNonZoomable&&i.close();break;case"toggle-controls":this.gestures.pswp.element.classList.toggle("pswp--ui-visible")}else o.call(i,t,n)}}class Z{constructor(e){this.pswp=e,this.dragAxis=void 0,this.p1={},this.p2={},this.prevP1={},this.prevP2={},this.startP1={},this.startP2={},this.velocity={},this._lastStartP1={},this._intervalP1={},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new H(this),this.zoomLevels=new U(this),this.tapHandler=new V(this),e.on("bindEvents",(()=>{e.events.add(e.scrollWrap,"click",(e=>this._onClick(e))),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{}):this._bindEvents("mouse","down","up")}))}_bindEvents(e,t,n,i){const{pswp:s}=this,{events:r}=s,o=i?e+i:"";r.add(s.scrollWrap,e+t,this.onPointerDown.bind(this)),r.add(window,e+"move",this.onPointerMove.bind(this)),r.add(window,e+n,this.onPointerUp.bind(this)),o&&r.add(s.scrollWrap,o,this.onPointerUp.bind(this))}onPointerDown(e){let t;if("mousedown"!==e.type&&"mouse"!==e.pointerType||(t=!0),t&&e.button>0)return;const{pswp:n}=this;n.opener.isOpen?n.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(t&&(n.mouseDetected(),this._preventPointerEventBehaviour(e)),n.animations.stopAll(),this._updatePoints(e,"down"),this.pointerDown=!0,1===this._numActivePoints&&(this.dragAxis=null,w(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):e.preventDefault()}onPointerMove(e){e.preventDefault(),this._numActivePoints&&(this._updatePoints(e,"move"),this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,w(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented||(0===this._numActivePoints&&(this.pointerDown=!1,this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?E(this.p1,this.prevP1)||this.drag.change():E(this.p1,this.prevP1)&&E(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const t=Date.now(),n=t-this._intervalTime;n<50&&!e||(this.velocity.x=this._getVelocity("x",n),this.velocity.y=this._getVelocity("y",n),this._intervalTime=t,w(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:t}=this.pswp;if(t.isShifted())return void t.moveIndexBy(0,!0);if(e.type.indexOf("cancel")>0)return;if("mouseup"===e.type||"mouse"===e.pointerType)return void this.tapHandler.click(this.startP1,e);const n=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),_(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,e)):(w(this._lastStartP1,this.startP1),this._tapTimer=setTimeout((()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()}),n))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,t){const n=this.p1[e]-this._intervalP1[e];return Math.abs(n)>1&&t>5?n/t:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e){return e.preventDefault(),!0}_updatePoints(e,t){if(this._pointerEventEnabled){const n=e,i=this._ongoingPointers.findIndex((e=>e.id===n.pointerId));"up"===t&&i>-1?this._ongoingPointers.splice(i,1):"down"===t&&-1===i?this._ongoingPointers.push(this._convertEventPosToPoint(n,{})):i>-1&&this._convertEventPosToPoint(n,this._ongoingPointers[i]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&w(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&w(this.p2,this._ongoingPointers[1])}else{const n=e;this._numActivePoints=0,n.type.indexOf("touch")>-1?n.touches&&n.touches.length>0&&(this._convertEventPosToPoint(n.touches[0],this.p1),this._numActivePoints++,n.touches.length>1&&(this._convertEventPosToPoint(n.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),"up"===t?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){w(this.prevP1,this.p1),w(this.prevP2,this.p2)}_updateStartPoints(){w(this.startP1,this.p1),w(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==e){const t=e>0?"x":"y";Math.abs(this.p1[t]-this.startP1[t])>=10&&(this.dragAxis=t)}}}_convertEventPosToPoint(e,t){return t.x=e.pageX-this.pswp.offset.x,t.y=e.pageY-this.pswp.offset.y,"pointerId"in e?t.id=e.pointerId:void 0!==e.identifier&&(t.id=e.identifier),t}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}class G{constructor(e){this.pswp=e,this.x=0,this.slideWidth=void 0,this.itemHolders=void 0,this.resetPosition()}resize(e){const{pswp:t}=this,n=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),i=n!==this.slideWidth;i&&(this.slideWidth=n,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach(((t,n)=>{i&&L(t.el,(n+this._containerShiftIndex)*this.slideWidth),e&&t.slide&&t.slide.resize()}))}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const t=b("pswp__item",!1,this.pswp.container);t.style.display=1===e?"block":"none",this.itemHolders.push({el:t})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,t,n){const{pswp:i}=this;let s=i.potentialIndex+e;const r=i.getNumItems();if(i.canLoop()){s=i.getLoopedIndex(s);const t=(e+r)%r;e=t<=r/2?t:t-r}else s<0?s=0:s>=r&&(s=r-1),e=s-i.potentialIndex;i.potentialIndex=s,this._currPositionIndex-=e,i.animations.stopMainScroll();const o=this.getCurrSlideX();if(t){i.animations.startSpring({isMainScroll:!0,start:this.x,end:o,velocity:n||0,naturalFrequency:30,dampingRatio:1,onUpdate:e=>{this.moveTo(e)},onComplete:()=>{this.updateCurrItem(),i.appendHeavy()}});let e=i.potentialIndex-i.currIndex;if(i.canLoop()){const t=(e+r)%r;e=t<=r/2?t:t-r}Math.abs(e)>1&&this.updateCurrItem()}else this.moveTo(o),this.updateCurrItem();if(e)return!0}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){const{pswp:e}=this,t=this._prevPositionIndex-this._currPositionIndex;if(!t)return;this._prevPositionIndex=this._currPositionIndex,e.currIndex=e.potentialIndex;let n,i=Math.abs(t);i>=3&&(this._containerShiftIndex+=t+(t>0?-3:3),i=3);for(let s=0;s<i;s++)t>0?(n=this.itemHolders.shift(),this.itemHolders[2]=n,this._containerShiftIndex++,L(n.el,(this._containerShiftIndex+2)*this.slideWidth),e.setContent(n,e.currIndex-i+s+2)):(n=this.itemHolders.pop(),this.itemHolders.unshift(n),this._containerShiftIndex--,L(n.el,this._containerShiftIndex*this.slideWidth),e.setContent(n,e.currIndex+i-s-2));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),e.animations.stopAllPan(),this.itemHolders.forEach(((e,t)=>{e.slide&&e.slide.setIsActive(1===t)})),e.currSlide=this.itemHolders[1].slide,e.contentLoader.updateLazy(t),e.currSlide.applyCurrentZoomPan(),e.dispatch("change")}moveTo(e,t){let n,i;!this.pswp.canLoop()&&t&&(n=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth,n+=this.pswp.currIndex,i=Math.round(e-this.x),(n<0&&i>0||n>=this.pswp.getNumItems()-1&&i<0)&&(e=this.x+.35*i)),this.x=e,L(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:t})}}class Q{constructor(e){this.pswp=e,e.on("bindEvents",(()=>{e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this)),e.events.add(document,"keydown",this._onKeyDown.bind(this))}));const t=document.activeElement;e.on("destroy",(()=>{e.options.returnFocus&&t&&this._wasFocused&&t.focus()}))}_focusRoot(){this._wasFocused||(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:t}=this;if(t.dispatch("keydown",{originalEvent:e}).defaultPrevented)return;if(function(e){if(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)return!0}(e))return;let n,i,s;switch(e.keyCode){case 27:t.options.escKey&&(n="close");break;case 90:n="toggleZoom";break;case 37:i="x";break;case 38:i="y";break;case 39:i="x",s=!0;break;case 40:s=!0,i="y";break;case 9:this._focusRoot()}if(i){e.preventDefault();const{currSlide:r}=t;t.options.arrowKeys&&"x"===i&&t.getNumItems()>1?n=s?"next":"prev":r&&r.currZoomLevel>r.zoomLevels.fit&&(r.pan[i]+=s?-80:80,r.panTo(r.pan.x,r.pan.y))}n&&(e.preventDefault(),t[n]())}_onFocusIn(e){const{template:t}=this.pswp;document===e.target||t===e.target||t.contains(e.target)||t.focus()}}class Y{constructor(e){this.props=e;const{target:t,onComplete:n,transform:i,onFinish:s}=e;let{duration:r,easing:o}=e;this.onFinish=s;const a=i?"transform":"opacity",l=e[a];this._target=t,this._onComplete=n,r=r||333,o=o||"cubic-bezier(.4,0,.22,1)",this._onTransitionEnd=this._onTransitionEnd.bind(this),this._firstFrameTimeout=setTimeout((()=>{C(t,a,r,o),this._firstFrameTimeout=setTimeout((()=>{t.addEventListener("transitionend",this._onTransitionEnd,!1),t.addEventListener("transitioncancel",this._onTransitionEnd,!1),t.style[a]=l}),30)}),0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._firstFrameTimeout&&clearTimeout(this._firstFrameTimeout),C(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class K{constructor(e,t,n){this.velocity=1e3*e,this._dampingRatio=t||.75,this._naturalFrequency=n||12,this._dampingRatio<1&&(this._dampedFrequency=this._naturalFrequency*Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,t){let n,i=0;t/=1e3;const s=Math.E**(-this._dampingRatio*this._naturalFrequency*t);if(1===this._dampingRatio)n=this.velocity+this._naturalFrequency*e,i=(e+n*t)*s,this.velocity=i*-this._naturalFrequency+n*s;else if(this._dampingRatio<1){n=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const r=Math.cos(this._dampedFrequency*t),o=Math.sin(this._dampedFrequency*t);i=s*(e*r+n*o),this.velocity=i*-this._naturalFrequency*this._dampingRatio+s*(-this._dampedFrequency*e*o+this._dampedFrequency*n*r)}return i}}class X{constructor(e){this.props=e;const{start:t,end:n,velocity:i,onUpdate:s,onComplete:r,onFinish:o,dampingRatio:a,naturalFrequency:l}=e;this.onFinish=o;const c=new K(i,a,l);let u=Date.now(),d=t-n;const p=()=>{this._raf&&(d=c.easeFrame(d,Date.now()-u),Math.abs(d)<1&&Math.abs(c.velocity)<50?(s(n),r&&r(),this.onFinish()):(u=Date.now(),s(d+n),this._raf=requestAnimationFrame(p)))};this._raf=requestAnimationFrame(p)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=null}}class J{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,t){let n;return n=t?new X(e):new Y(e),this.activeAnimations.push(n),n.onFinish=()=>this.stop(n),n}stop(e){e.destroy();const t=this.activeAnimations.indexOf(e);t>-1&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach((e=>{e.destroy()})),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter((e=>!e.props.isPan||(e.destroy(),!1)))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter((e=>!e.props.isMainScroll||(e.destroy(),!1)))}isPanRunning(){return this.activeAnimations.some((e=>e.props.isPan))}}class ee{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:t}=this.pswp;let{deltaX:n,deltaY:i}=e;if(t&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(t.isZoomable()){let n=-i;1===e.deltaMode?n*=.05:n*=e.deltaMode?1:.002,n=2**n;const s=t.currZoomLevel*n;t.zoomTo(s,{x:e.clientX,y:e.clientY})}}else t.isPannable()&&(1===e.deltaMode&&(n*=18,i*=18),t.panTo(t.pan.x-n,t.pan.y-i))}}class te{constructor(e,t){const n=t.name||t.className;let i=t.html;if(!1===e.options[n])return;"string"==typeof e.options[n+"SVG"]&&(i=e.options[n+"SVG"]),e.dispatch("uiElementCreate",{data:t});let s,r="";t.isButton?(r+="pswp__button ",r+=t.className||`pswp__button--${t.name}`):r+=t.className||`pswp__${t.name}`;let o=t.isButton?t.tagName||"button":t.tagName||"div";if(o=o.toLowerCase(),s=b(r,o),t.isButton){s=b(r,o),"button"===o&&(s.type="button");let{title:i}=t;const{ariaLabel:a}=t;"string"==typeof e.options[n+"Title"]&&(i=e.options[n+"Title"]),i&&(s.title=i),(a||i)&&s.setAttribute("aria-label",a||i)}s.innerHTML=function(e){if("string"==typeof e)return e;if(!e||!e.isCustomSVG)return"";const t=e;let n='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return n=n.split("%d").join(t.size||32),t.outlineID&&(n+='<use class="pswp__icn-shadow" xlink:href="#'+t.outlineID+'"/>'),n+=t.inner,n+="</svg>",n}(i),t.onInit&&t.onInit(s,e),t.onClick&&(s.onclick=n=>{"string"==typeof t.onClick?e[t.onClick]():t.onClick(n,s,e)});const a=t.appendTo||"bar";let l;"bar"===a?(e.topBar||(e.topBar=b("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),l=e.topBar):(s.classList.add("pswp__hide-on-close"),l="wrapper"===a?e.scrollWrap:e.element),l.appendChild(e.applyFilters("uiElement",s,t))}}function ne(e,t,n){e.classList.add("pswp__button--arrow"),t.on("change",(()=>{t.options.loop||(e.disabled=n?!(t.currIndex<t.getNumItems()-1):!(t.currIndex>0))}))}const ie={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:ne},se={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(e,t)=>{ne(e,t,!0)}},re={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},oe={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M18.9,18.4c1.4-2.1,1.4-4.8,0-6.9c-1.9-2.7-5.6-3.4-8.4-1.5s-3.4,5.6-1.5,8.4s5.6,3.4,8.4,1.5l4.1,4.1l1.5-1.5L18.9,18.4z M17,16h-2v2h-2v-2h-2v-2h2v-2h2v2h2V16z" id="pswp__icn-zoom"/><path d="M18.9,18.4c1.4-2.1,1.4-4.8,0-6.9c-1.9-2.7-5.6-3.4-8.4-1.5s-3.4,5.6-1.5,8.4s5.6,3.4,8.4,1.5l4.1,4.1l1.5-1.5L18.9,18.4z M17,16h-6v-2h6V16z" class="pswp__zoom-icn-bar-v"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},ae={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(e,t)=>{let n,i;const s=t=>{var i,s;n!==t&&(n=t,i="active",s=t,e.classList[s?"add":"remove"]("pswp__preloader--"+i))},r=()=>{if(!t.currSlide.content.isLoading())return s(!1),void(i&&(clearTimeout(i),i=null));i||(i=setTimeout((()=>{s(t.currSlide.content.isLoading()),i=null}),t.options.preloaderDelay))};t.on("change",r),t.on("loadComplete",(e=>{t.currSlide===e.slide&&r()})),t.ui.updatePreloaderVisibility=r}},le={name:"counter",order:5,onInit:(e,t)=>{t.on("change",(()=>{e.innerText=t.currIndex+1+t.options.indexIndicatorSep+t.getNumItems()}))}};function ce(e,t){e.classList[t?"add":"remove"]("pswp--zoomed-in")}class ue{constructor(e){this.pswp=e,this.updatePreloaderVisibility=void 0,this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[re,ie,se,oe,ae,le],e.dispatch("uiRegister"),this.uiElementsData.sort(((e,t)=>(e.order||0)-(t.order||0))),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach((e=>{this.registerElement(e)})),e.on("change",(()=>{e.element.classList[1===e.getNumItems()?"add":"remove"]("pswp--one-slide")})),e.on("zoomPanUpdate",(()=>this._onZoomPanUpdate()))}registerElement(e){this.isRegistered?this.items.push(new te(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:t,options:n}=this.pswp;let{currZoomLevel:i}=t;if(this.pswp.opener.isClosing)return;if(this.pswp.opener.isOpen||(i=t.zoomLevels.initial),i===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=i;const s=t.zoomLevels.initial-t.zoomLevels.secondary;if(Math.abs(s)<.01||!t.isZoomable())return ce(e,!1),void e.classList.remove("pswp--zoom-allowed");e.classList.add("pswp--zoom-allowed");const r=s<0;i===t.zoomLevels.secondary?ce(e,r):i>t.zoomLevels.secondary?ce(e,!0):ce(e,!1),"zoom"!==n.imageClickAction&&"zoom-or-close"!==n.imageClickAction||e.classList.add("pswp--click-to-zoom")}}class de{constructor(e,t){this.type=e,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class pe{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;this._filters[e]||(this._filters[e]=[]),this._filters[e].push({fn:t,priority:n}),this._filters[e].sort(((e,t)=>e.priority-t.priority)),this.pswp&&this.pswp.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter((e=>e.fn!==t))),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this._filters[e]&&this._filters[e].forEach((e=>{n[0]=e.fn.apply(this,n)})),n[0]}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this.pswp&&this.pswp.on(e,t)}off(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((e=>t!==e))),this.pswp&&this.pswp.off(e,t)}dispatch(e,t){if(this.pswp)return this.pswp.dispatch(e,t);const n=new de(e,t);return this._listeners?(this._listeners[e]&&this._listeners[e].forEach((e=>{e.call(this,n)})),n):n}}class he{constructor(e,t){this.element=b("pswp__img pswp__img--placeholder",e?"img":"",t),e&&(this.element.decoding="async",this.element.alt="",this.element.src=e,this.element.setAttribute("role","presentation")),this.element.setAttribute("aria-hiden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(P(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=N(0,0,e/250)):P(this.element,e,t))}destroy(){this.element.parentNode&&this.element.remove(),this.element=null}}class me{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.state=T,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=null)}),500)}load(e,t){if(!this.placeholder&&this.slide&&this.usePlaceholder()){const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new he(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?this.loadImage(e):(this.element=b("pswp__content"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){const t=b("pswp__img","img");this.element=t,this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented||(this.data.srcset&&(t.srcset=this.data.srcset),t.src=this.data.src,t.alt=this.data.alt||"",this.state=A,t.complete?this.onLoaded():(t.onload=()=>{this.onLoaded()},t.onerror=()=>{this.onError()}))}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=I,this.slide&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.slide.container.innerHTML="",this.append(),this.slide.updateContentSize(!0)))}onError(){this.state=z,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===A,this)}isError(){return this.state===z}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(P(this.element,e,t),this.isImageContent()&&!this.isError()))){const n=this.element;n.srcset&&(!n.dataset.largestUsedSize||e>parseInt(n.dataset.largestUsedSize,10))&&(n.sizes=e+"px",n.dataset.largestUsedSize=String(e)),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==z,this)}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=null,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=null))}displayError(){if(this.slide){let e=b("pswp__error-msg");e.innerText=this.instance.options.errorMsg,e=this.instance.applyFilters("contentErrorElement",e,this),this.element=b("pswp__content pswp__error-msg-container"),this.element.appendChild(e),this.slide.container.innerHTML="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){this.isAttached=!0,this.state!==z?this.instance.dispatch("contentAppend",{content:this}).defaultPrevented||(this.isImageContent()?this.slide&&!this.slide.isActive&&"decode"in this.element?(this.isDecoding=!0,requestAnimationFrame((()=>{this.element&&"IMG"===this.element.tagName&&this.element.decode().then((()=>{this.isDecoding=!1,requestAnimationFrame((()=>{this.appendImage()}))})).catch((()=>{this.isDecoding=!1}))}))):(!this.placeholder||this.state!==I&&this.state!==z||this.removePlaceholder(),this.appendImage()):this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element)):this.displayError()}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||this.slide&&(this.isImageContent()&&this.isDecoding?this.appendImage():this.isError()&&this.load(!1,!0))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this})}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||this.element&&this.element.parentNode&&this.element.remove()}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||this.slide&&this.element&&!this.element.parentNode&&(this.slide.container.appendChild(this.element),!this.placeholder||this.state!==I&&this.state!==z||this.removePlaceholder()))}}class fe extends pe{getNumItems(){let e;const{dataSource:t}=this.options;t?"length"in t?e=t.length:"gallery"in t&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),t.items&&(e=t.items.length)):e=0;const n=this.dispatch("numItems",{dataSource:t,numItems:e});return this.applyFilters("numItems",n.numItems,t)}createContentFromData(e,t){return new me(e,this,t)}getItemData(e){const{dataSource:t}=this.options;let n;Array.isArray(t)?n=t[e]:t&&t.gallery&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),n=t.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const s=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",s.itemData,e)}_getGalleryDOMElements(e){return this.options.children||this.options.childSelector?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=[];if(e instanceof Element)i=[e];else if(e instanceof NodeList||Array.isArray(e))i=Array.from(e);else{const s="string"==typeof e?e:t;s&&(i=Array.from(n.querySelectorAll(s)))}return i}(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},n="A"===e.tagName?e:e.querySelector("a");if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=parseInt(n.dataset.pswpWidth,10),t.height=parseInt(n.dataset.pswpHeight,10),t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType);const i=e.querySelector("img");i&&(t.msrc=i.currentSrc||i.src,t.alt=i.getAttribute("alt")),(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,n)}}const ge=.003;class ve{constructor(e){this.pswp=e,this.isClosed=!0,this._prepareOpen=this._prepareOpen.bind(this),this._thumbBounds=void 0,e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return!1;const e=this.pswp.currSlide;return this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout((()=>{this._start()}),this._croppedZoom?30:0),!0}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,t=this.pswp.currSlide,{options:n}=e;if("fade"===n.showHideAnimationType?(n.showHideOpacity=!0,this._thumbBounds=!1):"none"===n.showHideAnimationType?(n.showHideOpacity=!1,this._duration=0,this._thumbBounds=!1):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=t.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=this._duration>50,this._animateZoom=Boolean(this._thumbBounds)&&t.content&&t.content.usePlaceholder()&&(!this.isClosing||!e.mainScroll.isShifted()),this._animateZoom?this._animateRootOpacity=n.showHideOpacity:(this._animateRootOpacity=!0,this.isOpening&&(t.zoomAndPanToInitial(),t.applyCurrentZoomPan())),this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>ge,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(e.element.style.opacity=String(ge),e.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=this.pswp.currSlide.holderElement,e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px"):this._croppedZoom=!1,this.isOpening?(this._animateRootOpacity?(e.element.style.opacity=String(ge),e.applyBgOpacity(1)):(this._animateBgOpacity&&(e.bg.style.opacity=String(ge)),e.element.style.opacity="1"),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(ge)))):this.isClosing&&(e.mainScroll.itemHolders[0].el.style.display="none",e.mainScroll.itemHolders[2].el.style.display="none",this._croppedZoom&&0!==e.mainScroll.x&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise((e=>{let t=!1,n=!0;var i;(i=this._placeholder,"decode"in i?i.decode():i.complete?Promise.resolve(i):new Promise(((e,t)=>{i.onload=()=>e(i),i.onerror=t}))).finally((()=>{t=!0,n||e()})),setTimeout((()=>{n=!1,t&&e()}),50),setTimeout(e,250)})).finally((()=>this._initiate())):this._initiate()}_initiate(){this.pswp.element.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),this.pswp.element.classList[this.isOpening?"add":"remove"]("pswp--ui-visible"),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed?e.destroy():this.isOpen&&(this._animateZoom&&(e.container.style.overflow="visible",e.container.style.width="100%"),e.currSlide.applyCurrentZoomPan())}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform())),this._animateBgOpacity&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:t}=this,{innerRect:n}=this._thumbBounds,{currSlide:i,viewportSize:s}=t;if(this._croppedZoom){const t=-s.x+(this._thumbBounds.x-n.x)+n.w,i=-s.y+(this._thumbBounds.y-n.y)+n.h,r=s.x-n.w,o=s.y-n.h;e?(this._animateTo(this._cropContainer1,"transform",N(t,i)),this._animateTo(this._cropContainer2,"transform",N(r,o))):(L(this._cropContainer1,t,i),L(this._cropContainer2,r,o))}w(i.pan,n||this._thumbBounds),i.currZoomLevel=this._thumbBounds.w/i.width,e?this._animateTo(i.container,"transform",i.getCurrentTransform()):i.applyCurrentZoomPan()}_animateTo(e,t,n){if(!this._duration)return void(e.style[t]=n);const{animations:i}=this.pswp,s={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{i.activeAnimations.length||this._onAnimationComplete()},target:e};s[t]=n,i.startTransition(s)}}function ye(e,t){const n=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return function(e,t,n){const i=t.createContentFromData(e,n);if(!i||!i.lazyLoad)return;const{options:s}=t,r=B(s,t.viewportSize||q(s,t),e,n),o=new M(s,e,-1);return o.update(i.width,i.height,r),i.lazyLoad(),i.setDisplayedSize(Math.ceil(i.width*o.initial),Math.ceil(i.height*o.initial)),i}(n,t,e)}class be{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(e){const{pswp:t}=this;if(t.dispatch("lazyLoad").defaultPrevented)return;const{preload:n}=t.options,i=void 0===e||e>=0;let s;for(s=0;s<=n[1];s++)this.loadSlideByIndex(t.currIndex+(i?s:-s));for(s=1;s<=n[0];s++)this.loadSlideByIndex(t.currIndex+(i?-s:s))}loadSlideByIndex(e){e=this.pswp.getLoopedIndex(e);let t=this.getContentByIndex(e);t||(t=ye(e,this.pswp),t&&this.addToCache(t))}getContentBySlide(e){let t=this.getContentByIndex(e.index);return t||(t=this.pswp.createContentFromData(e.data,e.index),t&&this.addToCache(t)),t&&t.setSlide(e),t}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const e=this._cachedItems.findIndex((e=>!e.isAttached&&!e.hasSlide));if(-1!==e){this._cachedItems.splice(e,1)[0].destroy()}}}removeByIndex(e){const t=this._cachedItems.findIndex((t=>t.index===e));-1!==t&&this._cachedItems.splice(t,1)}getContentByIndex(e){return this._cachedItems.find((t=>t.index===e))}destroy(){this._cachedItems.forEach((e=>e.destroy())),this._cachedItems=null}}const we={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class Se extends fe{constructor(e){super(),this._prepareOptions(e),this.offset={},this._prevViewportSize={},this.viewportSize={},this.bgOpacity=1,this.topBar=void 0,this.events=new D,this.animations=new J,this.mainScroll=new G(this),this.gestures=new Z(this),this.opener=new ve(this),this.keyboard=new Q(this),this.contentLoader=new be(this)}init(){if(this.isOpen||this.isDestroying)return;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element.className+=" "+e,this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new ee(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",(()=>{this.setContent(this.mainScroll.itemHolders[0],this.currIndex-1),this.setContent(this.mainScroll.itemHolders[2],this.currIndex+1),this.mainScroll.itemHolders[0].el.style.display="block",this.mainScroll.itemHolders[2].el.style.display="block",this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")})),this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const t=this.getNumItems();return this.options.loop&&(e>t-1&&(e-=t),e<0&&(e+=t)),e=x(e,0,t-1)}appendHeavy(){this.mainScroll.itemHolders.forEach((e=>{e.slide&&e.slide.appendHeavy()}))}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(){this.currSlide.zoomTo(...arguments)}toggleZoom(){this.currSlide.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this.listeners=null,this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null,this.element.remove(),this.mainScroll.itemHolders.forEach((e=>{e.slide&&e.slide.destroy()})),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach(((t,n)=>{let i=this.currSlide.index-1+n;this.canLoop()&&(i=this.getLoopedIndex(i)),i===e&&(this.setContent(t,e,!0),1===n&&(this.currSlide=t.slide,t.slide.setIsActive(!0)))})),this.dispatch("change")}setContent(e,t,n){if(this.canLoop()&&(t=this.getLoopedIndex(t)),e.slide){if(e.slide.index===t&&!n)return;e.slide.destroy(),e.slide=null}if(!this.canLoop()&&(t<0||t>=this.getNumItems()))return;const i=this.getItemData(t);e.slide=new j(i,t,this),t===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const t=q(this.options,this);!e&&E(t,this._prevViewportSize)||(w(this._prevViewportSize,t),this.dispatch("beforeResize"),w(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity)}mouseDetected(){this.hasMouse||(this.hasMouse=!0,this.element.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout((()=>{this.updateSize()}),500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,t){this.offset.x=e,this.offset.y=t,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=b("pswp"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=b("pswp__bg",!1,this.element),this.scrollWrap=b("pswp__scroll-wrap",!1,this.element),this.container=b("pswp__container",!1,this.scrollWrap),this.mainScroll.appendHolders(),this.ui=new ue(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(e,t,n){const i=n.dispatch("thumbBounds",{index:e,itemData:t,instance:n});if(i.thumbBounds)return i.thumbBounds;const{element:s}=t;let r,o;if(s&&!1!==n.options.thumbSelector){const e=n.options.thumbSelector||"img";o=s.matches(e)?s:s.querySelector(e)}return o=n.applyFilters("thumbEl",o,t,e),o&&(r=t.thumbCropped?function(e,t,n){const i=e.getBoundingClientRect(),s=i.width/t,r=i.height/n,o=s>r?s:r,a=(i.width-t*o)/2,l=(i.height-n*o)/2,c={x:i.left+a,y:i.top+l,w:t*o};return c.innerRect={w:i.width,h:i.height,x:a,y:l},c}(o,t.width||t.w,t.height||t.h):function(e){const t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width}}(o)),n.applyFilters("thumbBounds",r,t,e)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),this.options={...we,...e}}}const _e={captionContent:".pswp-caption-content",type:"auto",horizontalEdgeThreshold:20,mobileCaptionOverlapRatio:.3,mobileLayoutBreakpoint:600};const Ee=class{constructor(e,t){this.options={..._e,...t},this.lightbox=e,this.lightbox.on("init",(()=>{this.initPlugin()}))}initPlugin(){this.pswp=this.lightbox.pswp,this.isCaptionHidden=!1,this.tempCaption=!1,this.captionElement=!1,this.pswp.on("uiRegister",(()=>{this.pswp.ui.registerElement({name:"dynamic-caption",order:9,isButton:!1,appendTo:"root",html:"",onInit:e=>{this.captionElement=e,this.initCaption()}})}))}initCaption(){const{pswp:e}=this;e.on("change",(()=>{this.updateCaptionHTML(),this.updateCurrentCaptionPosition(),this.showCaption()})),e.on("calcSlideSize",(e=>this.onCalcSlideSize(e))),e.on("moveMainScroll",(()=>{this.useMobileLayout()||(this.pswp.mainScroll.isShifted()?this.hideCaption():this.showCaption())})),e.on("zoomPanUpdate",(()=>{e.currSlide.currZoomLevel>e.currSlide.zoomLevels.initial?this.hideCaption():this.showCaption()})),e.on("beforeZoomTo",(t=>{const{currSlide:n}=e;n.__dcAdjustedPanAreaSize&&(t.destZoomLevel>n.zoomLevels.initial?(n.panAreaSize.x=n.__dcOriginalPanAreaSize.x,n.panAreaSize.y=n.__dcOriginalPanAreaSize.y):(n.panAreaSize.x=n.__dcAdjustedPanAreaSize.x,n.panAreaSize.y=n.__dcAdjustedPanAreaSize.y))}))}useMobileLayout(){const{mobileLayoutBreakpoint:e}=this.options;return"function"==typeof e?e.call(this):"number"==typeof e&&window.innerWidth<e}hideCaption(){this.isCaptionHidden||(this.isCaptionHidden=!0,this.captionElement.classList.add("pswp__dynamic-caption--faded"),this.captionFadeTimeout&&clearTimeout(this.captionFadeTimeout),this.captionFadeTimeout=setTimeout((()=>{this.captionElement.style.visibility="hidden",this.captionFadeTimeout=null}),400))}showCaption(){this.isCaptionHidden&&(this.isCaptionHidden=!1,this.captionElement.style.visibility="visible",clearTimeout(this.captionFadeTimeout),this.captionFadeTimeout=setTimeout((()=>{this.captionElement.classList.remove("pswp__dynamic-caption--faded"),this.captionFadeTimeout=null}),50))}setCaptionPosition(e,t){const n=e<=this.options.horizontalEdgeThreshold;this.captionElement.classList[n?"add":"remove"]("pswp__dynamic-caption--on-hor-edge"),this.captionElement.style.left=e+"px",this.captionElement.style.top=t+"px"}setCaptionWidth(e,t){t?e.style.width=t+"px":e.style.removeProperty("width")}setCaptionType(e,t){const n=e.dataset.pswpCaptionType;t!==n&&(e.classList.add("pswp__dynamic-caption--"+t),e.classList.remove("pswp__dynamic-caption--"+n),e.dataset.pswpCaptionType=t)}updateCurrentCaptionPosition(){const e=this.pswp.currSlide;if(!e.dynamicCaptionType)return;if("mobile"===e.dynamicCaptionType)return this.setCaptionType(this.captionElement,e.dynamicCaptionType),this.captionElement.style.removeProperty("left"),this.captionElement.style.removeProperty("top"),void this.setCaptionWidth(this.captionElement,!1);const t=e.zoomLevels.initial,n=Math.ceil(e.width*t),i=Math.ceil(e.height*t);this.setCaptionType(this.captionElement,e.dynamicCaptionType),"aside"===e.dynamicCaptionType?(this.setCaptionPosition(this.pswp.currSlide.bounds.center.x+n,this.pswp.currSlide.bounds.center.y),this.setCaptionWidth(this.captionElement,!1)):"below"===e.dynamicCaptionType&&(this.setCaptionPosition(this.pswp.currSlide.bounds.center.x,this.pswp.currSlide.bounds.center.y+i),this.setCaptionWidth(this.captionElement,n))}createTemporaryCaption(){this.tempCaption=document.createElement("div"),this.tempCaption.className="pswp__dynamic-caption pswp__dynamic-caption--temp",this.tempCaption.style.visibility="hidden",this.tempCaption.setAttribute("aria-hidden","true"),this.pswp.bg.after(this.captionElement),this.captionElement.after(this.tempCaption)}onCalcSlideSize(e){const{slide:t}=e;let n,i=!1;if(!this.getCaptionHTML(e.slide))return void(t.dynamicCaptionType=!1);this.storeOriginalPanAreaSize(t),t.bounds.update(t.zoomLevels.initial),this.useMobileLayout()?(t.dynamicCaptionType="mobile",i=!0):"auto"===this.options.type?t.bounds.center.x>t.bounds.center.y?t.dynamicCaptionType="aside":t.dynamicCaptionType="below":t.dynamicCaptionType=this.options.type;const s=Math.ceil(t.width*t.zoomLevels.initial),r=Math.ceil(t.height*t.zoomLevels.initial);if(this.tempCaption||this.createTemporaryCaption(),this.setCaptionType(this.tempCaption,t.dynamicCaptionType),"aside"===t.dynamicCaptionType){this.tempCaption.innerHTML=this.getCaptionHTML(e.slide),this.setCaptionWidth(this.tempCaption,!1),n=this.measureCaptionSize(this.tempCaption,e.slide);const i=n.x,r=s+t.bounds.center.x;t.panAreaSize.x-r<=i&&(t.panAreaSize.x-=i,this.recalculateZoomLevelAndBounds(t))}else if("below"===t.dynamicCaptionType||i){this.setCaptionWidth(this.tempCaption,i?this.pswp.viewportSize.x:s),this.tempCaption.innerHTML=this.getCaptionHTML(e.slide),n=this.measureCaptionSize(this.tempCaption,e.slide);const o=n.y,a=r+t.bounds.center.y,l=t.panAreaSize.y-a,c=t.panAreaSize.y;if(l<=o){t.panAreaSize.y-=Math.min(2*(o-l),o),this.recalculateZoomLevelAndBounds(t);const e=t.panAreaSize.x*this.options.mobileCaptionOverlapRatio/2;i&&t.bounds.center.x>e&&(t.panAreaSize.y=c,this.recalculateZoomLevelAndBounds(t))}}this.storeAdjustedPanAreaSize(t),t===this.pswp.currSlide&&this.updateCurrentCaptionPosition()}measureCaptionSize(e,t){const n=e.getBoundingClientRect();return this.pswp.dispatch("dynamicCaptionMeasureSize",{captionEl:e,slide:t,captionSize:{x:n.width,y:n.height}}).captionSize}recalculateZoomLevelAndBounds(e){e.zoomLevels.update(e.width,e.height,e.panAreaSize),e.bounds.update(e.zoomLevels.initial)}storeAdjustedPanAreaSize(e){e.__dcAdjustedPanAreaSize||(e.__dcAdjustedPanAreaSize={}),e.__dcAdjustedPanAreaSize.x=e.panAreaSize.x,e.__dcAdjustedPanAreaSize.y=e.panAreaSize.y}storeOriginalPanAreaSize(e){e.__dcOriginalPanAreaSize||(e.__dcOriginalPanAreaSize={}),e.__dcOriginalPanAreaSize.x=e.panAreaSize.x,e.__dcOriginalPanAreaSize.y=e.panAreaSize.y}getCaptionHTML(e){if("function"==typeof this.options.captionContent)return this.options.captionContent.call(this,e);const t=e.data.element;let n="";if(t){const e=t.querySelector(this.options.captionContent);if(e)n=e.innerHTML;else{const e=t.querySelector("img");e&&(n=e.getAttribute("alt"))}}return n}updateCaptionHTML(){const e=this.getCaptionHTML(this.pswp.currSlide);this.captionElement.style.visibility=e?"visible":"hidden",this.captionElement.innerHTML=e||"",this.pswp.dispatch("dynamicCaptionUpdateHTML",{captionElement:this.captionElement})}};var xe=n(730);function Ne(){(0,xe.Gc)((()=>{setTimeout((()=>{if(!(0,xe.a1)()||(0,xe.bU)()){const e=(0,xe.dj)("avif"),t=(0,xe.dj)("webp"),n=function(e){["Space","ArrowUp","ArrowDown","PageDown","PageUp"].indexOf(e.code)>-1&&e.preventDefault()},i=function(){document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()},s=function(e){"KeyF"===e.code&&i()},r=function(n,i,s){const r=[];return n.querySelectorAll(i)?.forEach((n=>{const i=n.querySelector("source[type='image/webp']")?.getAttribute("srcset"),o=n.querySelector("source[type='image/avif']")?.getAttribute("srcset"),a=n.querySelector("source[type='image/jpeg']")?.getAttribute("srcset"),l=n.querySelector("source[type='image/png']")?.getAttribute("srcset"),c={src:n.getAttribute("href"),width:parseInt(n.getAttribute("width"),10),height:parseInt(n.getAttribute("height"),10),alt:s&&s.titleSelector?n.querySelector(s.titleSelector).textContent:n.getAttribute("title"),isPicture:!!n.querySelector("picture"),webpSrc:i,avifSrc:o,jpegSrc:a,pngSrc:l,srcset:o&&e?o:i&&t?i:l||a};r.push(c)})),r},o={escKey:!0,arrowKeys:!0,loop:!0,padding:{top:50,bottom:50,left:20,right:20},bgOpacity:.9,appendToEl:document.querySelector(".l-w")};[{mainElmSelector:".b-gal",itemElmSelector:".b-gal-item:not(.clone)",thumbLinkSelector:".b-gal-item:not(.clone) .b-gal-a",titleElmSelector:".b-gal-item:not(.clone) .b-gal-t",type:"gallery"},{mainElmSelector:".prd-gal",itemElmSelector:".prd-gal-photo",thumbLinkSelector:".prd-gal-link",titleElmSelector:".prd-gal-title span",type:"gallery"},{mainElmSelector:".b-img-lightbox",itemElmSelector:null,thumbLinkSelector:"a.litebox",titleElmSelector:null,type:"image"}].forEach((e=>{document.querySelectorAll(e.mainElmSelector).forEach((t=>{const a=r(t,e.thumbLinkSelector,{titleSelector:e.titleElmSelector}),l=new y({dataSource:a,pswpModule:Se,...o});l.on("uiRegister",(function(){l.pswp.ui.registerElement({name:"fullscreen-toggle",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'<path d="M21.6,10.4h-3.2V8H24v5.6h-2.4V10.4z M10.4,10.4v3.2H8V8h5.6v2.4H10.4z M21.6,21.6v-3.2H24V24h-5.6v-2.4H21.6z M10.4,21.6 h3.2V24H8v-5.6h2.4V21.6z" id="pswp__icn--fullscreen"/>',outlineID:"pswp__icn--fullscreen"},onClick:()=>{i()}})}));new Ee(l,{type:"below",mobileLayoutBreakpoint:600,captionContent:e=>e.data.alt});l.init(),t.querySelectorAll(e.thumbLinkSelector).forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();let i=0;if("gallery"===e.type){const n=t.currentTarget.closest(e.itemElmSelector);i=Array.prototype.indexOf.call(n.closest(e.mainElmSelector).querySelectorAll(e.itemElmSelector),n)}else"image"===e.type&&(i=0);l.loadAndOpen(i);const r=()=>{l.pswp.close()};l.on("beforeOpen",(()=>{window.addEventListener("mousewheel",r,!1)})),window.addEventListener("keydown",s,!1),window.addEventListener("keydown",n,!1),l.on("close",(()=>{window.removeEventListener("keydown",s,!1),window.removeEventListener("keydown",n,!1),window.removeEventListener("mousewheel",r,!1)}))}))}))}))}))}}),0)}))}Ne()},771:(e,t,n)=>{"use strict";var i=n(730);const s=e=>{const t=e.getAttribute("class").split(/\s+/);for(let e=0;e<t.length;e++){const n=t[e];if(n.includes("sc-"))return n}return!1},r=e=>getComputedStyle(e.querySelector(".s-bg-l")).backgroundColor,o=(e,t)=>{t.classList.contains("hn-bottom")?(e.classList.add("wn-space-top"),t.classList.add("wn-space-bottom")):(e.classList.add("wn-space-bottom"),t.classList.add("wn-space-top")),(0,i.Zg)(e)},a=(e,t)=>{t.classList.contains("hn-bottom")?(e.classList.remove("wn-space-top"),t.classList.remove("wn-space-bottom")):(e.classList.remove("wn-space-bottom"),t.classList.remove("wn-space-top")),(0,i.Zg)(e)},l=(e,t)=>{if("reset"===e.getAttribute("data-space")||((e,t)=>e.classList.contains("s-hn-bottom")?(t.classList.contains("s-hm")||!(!t.classList.contains("s-hm")&&document.querySelector(".s-hm:not(.s-hm-hidden)")))&&e.classList.contains("wnd-nav-border"):e.classList.contains("wnd-nav-border"))(e,t)||t.classList.contains("wnd-disabled"))a(e,t);else{const n=s(e);if(n!==s(t)||t.classList.contains("s-f"))a(e,t);else if(n.includes("sc-m")&&e.classList.contains("wnd-background-solid")&&t.classList.contains("wnd-background-solid")){const n=r(e);n===r(t)&&void 0!==n?o(e,t):a(e,t)}else o(e,t)}};function c(){const e=[],t=document.querySelectorAll(".s:not(.s-hm-hidden)");let n="",i="";t.length&&t.forEach(((t,n)=>{t.getAttribute("data-space")&&e.push(n)})),e.length&&e.forEach((e=>{const s=e+1;n=t[e],i=t[s],l(n,i),n.classList.contains("s-hn-bottom")&&i.classList.contains("s-hm")&&(i=t[s+1],l(n,i))}))}(0,i.Gc)((()=>{c();const e=e=>{"SECTION"===e.target.nodeName&&setTimeout((()=>{c()}),50)};(0,i.a1)()&&document.querySelector(".wnd-page").addEventListener("wnd-redraw",e)}))},718:(e,t,n)=>{var i;
/*! Hammer.JS - v2.0.8 - 2016-04-23
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */!function(s,r,o,a){"use strict";function l(e,t,n){return setTimeout(h(e,n),t)}function c(e,t,n){return!!Array.isArray(e)&&(u(e,n[t],n),!0)}function u(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function d(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=s.console&&(s.console.warn||s.console.log);return r&&r.call(s.console,i,n),e.apply(this,arguments)}}function p(e,t,n){var i,s=t.prototype;(i=e.prototype=Object.create(s)).constructor=e,i._super=s,n&&ae(i,n)}function h(e,t){return function(){return e.apply(t,arguments)}}function m(e,t){return typeof e==ue?e.apply(t&&t[0]||a,t):e}function f(e,t){return e===a?t:e}function g(e,t,n){u(w(t),(function(t){e.addEventListener(t,n,!1)}))}function v(e,t,n){u(w(t),(function(t){e.removeEventListener(t,n,!1)}))}function y(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function b(e,t){return e.indexOf(t)>-1}function w(e){return e.trim().split(/\s+/g)}function S(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function _(e){return Array.prototype.slice.call(e,0)}function E(e,t,n){for(var i=[],s=[],r=0;r<e.length;){var o=t?e[r][t]:e[r];S(s,o)<0&&i.push(e[r]),s[r]=o,r++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function x(e,t){for(var n,i,s=t[0].toUpperCase()+t.slice(1),r=0;r<le.length;){if((i=(n=le[r])?n+s:t)in e)return i;r++}return a}function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||s}function L(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){m(e.options.enable,[e])&&n.handler(t)},this.init()}function k(e,t,n){var i=n.pointers.length,s=n.changedPointers.length,r=t&Ee&&i-s==0,o=t&(Ne|Le)&&i-s==0;n.isFirst=!!r,n.isFinal=!!o,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,s=i.length;n.firstInput||(n.firstInput=P(t)),s>1&&!n.firstMultiple?n.firstMultiple=P(t):1===s&&(n.firstMultiple=!1);var r=n.firstInput,o=n.firstMultiple,a=o?o.center:r.center,l=t.center=T(i);t.timeStamp=he(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=O(a,l),t.distance=z(a,l),function(e,t){var n=t.center,i=e.offsetDelta||{},s=e.prevDelta||{},r=e.prevInput||{};t.eventType!==Ee&&r.eventType!==Ne||(s=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=s.x+(n.x-i.x),t.deltaY=s.y+(n.y-i.y)}(n,t),t.offsetDirection=I(t.deltaX,t.deltaY);var c=A(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=pe(c.x)>pe(c.y)?c.x:c.y,t.scale=o?function(e,t){return z(t[0],t[1],qe)/z(e[0],e[1],qe)}(o.pointers,i):1,t.rotation=o?function(e,t){return O(t[1],t[0],qe)+O(e[1],e[0],qe)}(o.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,C(n,t);var u=e.element;y(t.srcEvent.target,u)&&(u=t.srcEvent.target),t.target=u}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function C(e,t){var n,i,s,r,o=e.lastInterval||t,l=t.timeStamp-o.timeStamp;if(t.eventType!=Le&&(l>_e||o.velocity===a)){var c=t.deltaX-o.deltaX,u=t.deltaY-o.deltaY,d=A(l,c,u);i=d.x,s=d.y,n=pe(d.x)>pe(d.y)?d.x:d.y,r=I(c,u),e.lastInterval=t}else n=o.velocity,i=o.velocityX,s=o.velocityY,r=o.direction;t.velocity=n,t.velocityX=i,t.velocityY=s,t.direction=r}function P(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:de(e.pointers[n].clientX),clientY:de(e.pointers[n].clientY)},n++;return{timeStamp:he(),pointers:t,center:T(t),deltaX:e.deltaX,deltaY:e.deltaY}}function T(e){var t=e.length;if(1===t)return{x:de(e[0].clientX),y:de(e[0].clientY)};for(var n=0,i=0,s=0;t>s;)n+=e[s].clientX,i+=e[s].clientY,s++;return{x:de(n/t),y:de(i/t)}}function A(e,t,n){return{x:t/e||0,y:n/e||0}}function I(e,t){return e===t?ke:pe(e)>=pe(t)?0>e?Ce:Pe:0>t?Te:Ae}function z(e,t,n){n||(n=De);var i=t[n[0]]-e[n[0]],s=t[n[1]]-e[n[1]];return Math.sqrt(i*i+s*s)}function O(e,t,n){n||(n=De);var i=t[n[0]]-e[n[0]],s=t[n[1]]-e[n[1]];return 180*Math.atan2(s,i)/Math.PI}function D(){this.evEl=Be,this.evWin=Fe,this.pressed=!1,L.apply(this,arguments)}function q(){this.evEl=He,this.evWin=$e,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function R(){this.evTarget=We,this.evWin=Ve,this.started=!1,L.apply(this,arguments)}function B(e,t){var n=_(e.touches),i=_(e.changedTouches);return t&(Ne|Le)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}function F(){this.evTarget=Ge,this.targetIds={},L.apply(this,arguments)}function M(e,t){var n=_(e.touches),i=this.targetIds;if(t&(Ee|xe)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var s,r,o=_(e.changedTouches),a=[],l=this.target;if(r=n.filter((function(e){return y(e.target,l)})),t===Ee)for(s=0;s<r.length;)i[r[s].identifier]=!0,s++;for(s=0;s<o.length;)i[o[s].identifier]&&a.push(o[s]),t&(Ne|Le)&&delete i[o[s].identifier],s++;return a.length?[E(r.concat(a),"identifier",!0),a]:void 0}function j(){L.apply(this,arguments);var e=h(this.handler,this);this.touch=new F(this.manager,e),this.mouse=new D(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function H(e,t){e&Ee?(this.primaryTouch=t.changedPointers[0].identifier,$.call(this,t)):e&(Ne|Le)&&$.call(this,t)}function $(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),Qe)}}function U(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var s=this.lastTouches[i],r=Math.abs(t-s.x),o=Math.abs(n-s.y);if(Ye>=r&&Ye>=o)return!0}return!1}function W(e,t){this.manager=e,this.set(t)}function V(e){this.options=ae({},this.defaults,e||{}),this.id=ge++,this.manager=null,this.options.enable=f(this.options.enable,!0),this.state=ot,this.simultaneous={},this.requireFail=[]}function Z(e){return e&dt?"cancel":e&ct?"end":e&lt?"move":e&at?"start":""}function G(e){return e==Ae?"down":e==Te?"up":e==Ce?"left":e==Pe?"right":""}function Q(e,t){var n=t.manager;return n?n.get(e):e}function Y(){V.apply(this,arguments)}function K(){Y.apply(this,arguments),this.pX=null,this.pY=null}function X(){Y.apply(this,arguments)}function J(){V.apply(this,arguments),this._timer=null,this._input=null}function ee(){Y.apply(this,arguments)}function te(){Y.apply(this,arguments)}function ne(){V.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ie(e,t){return(t=t||{}).recognizers=f(t.recognizers,ie.defaults.preset),new se(e,t)}function se(e,t){this.options=ae({},ie.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(ye?q:be?F:ve?j:D))(e,k)}(this),this.touchAction=new W(this,this.options.touchAction),re(this,!0),u(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function re(e,t){var n,i=e.element;i.style&&(u(e.options.cssProps,(function(s,r){n=x(i.style,r),t?(e.oldCssProps[n]=i.style[n],i.style[n]=s):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}function oe(e,t){var n=r.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var ae,le=["","webkit","Moz","MS","ms","o"],ce=r.createElement("div"),ue="function",de=Math.round,pe=Math.abs,he=Date.now;ae="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==a&&null!==i)for(var s in i)i.hasOwnProperty(s)&&(t[s]=i[s])}return t}:Object.assign;var me=d((function(e,t,n){for(var i=Object.keys(t),s=0;s<i.length;)(!n||n&&e[i[s]]===a)&&(e[i[s]]=t[i[s]]),s++;return e}),"extend","Use `assign`."),fe=d((function(e,t){return me(e,t,!0)}),"merge","Use `assign`."),ge=1,ve="ontouchstart"in s,ye=x(s,"PointerEvent")!==a,be=ve&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),we="touch",Se="mouse",_e=25,Ee=1,xe=2,Ne=4,Le=8,ke=1,Ce=2,Pe=4,Te=8,Ae=16,Ie=Ce|Pe,ze=Te|Ae,Oe=Ie|ze,De=["x","y"],qe=["clientX","clientY"];L.prototype={handler:function(){},init:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(N(this.element),this.evWin,this.domHandler)}};var Re={mousedown:Ee,mousemove:xe,mouseup:Ne},Be="mousedown",Fe="mousemove mouseup";p(D,L,{handler:function(e){var t=Re[e.type];t&Ee&&0===e.button&&(this.pressed=!0),t&xe&&1!==e.which&&(t=Ne),this.pressed&&(t&Ne&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Se,srcEvent:e}))}});var Me={pointerdown:Ee,pointermove:xe,pointerup:Ne,pointercancel:Le,pointerout:Le},je={2:we,3:"pen",4:Se,5:"kinect"},He="pointerdown",$e="pointermove pointerup pointercancel";s.MSPointerEvent&&!s.PointerEvent&&(He="MSPointerDown",$e="MSPointerMove MSPointerUp MSPointerCancel"),p(q,L,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),s=Me[i],r=je[e.pointerType]||e.pointerType,o=r==we,a=S(t,e.pointerId,"pointerId");s&Ee&&(0===e.button||o)?0>a&&(t.push(e),a=t.length-1):s&(Ne|Le)&&(n=!0),0>a||(t[a]=e,this.callback(this.manager,s,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(a,1))}});var Ue={touchstart:Ee,touchmove:xe,touchend:Ne,touchcancel:Le},We="touchstart",Ve="touchstart touchmove touchend touchcancel";p(R,L,{handler:function(e){var t=Ue[e.type];if(t===Ee&&(this.started=!0),this.started){var n=B.call(this,e,t);t&(Ne|Le)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:we,srcEvent:e})}}});var Ze={touchstart:Ee,touchmove:xe,touchend:Ne,touchcancel:Le},Ge="touchstart touchmove touchend touchcancel";p(F,L,{handler:function(e){var t=Ze[e.type],n=M.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:we,srcEvent:e})}});var Qe=2500,Ye=25;p(j,L,{handler:function(e,t,n){var i=n.pointerType==we,s=n.pointerType==Se;if(!(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)H.call(this,t,n);else if(s&&U.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ke=x(ce.style,"touchAction"),Xe=Ke!==a,Je="compute",et="auto",tt="manipulation",nt="none",it="pan-x",st="pan-y",rt=function(){if(!Xe)return!1;var e={},t=s.CSS&&s.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||s.CSS.supports("touch-action",n)})),e}();W.prototype={set:function(e){e==Je&&(e=this.compute()),Xe&&this.manager.element.style&&rt[e]&&(this.manager.element.style[Ke]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return u(this.manager.recognizers,(function(t){m(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(b(e,nt))return nt;var t=b(e,it),n=b(e,st);return t&&n?nt:t||n?t?it:st:b(e,tt)?tt:et}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,s=b(i,nt)&&!rt[nt],r=b(i,st)&&!rt[st],o=b(i,it)&&!rt[it];if(s){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}return o&&r?void 0:s||r&&n&Ie||o&&n&ze?this.preventSrc(t):void 0}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ot=1,at=2,lt=4,ct=8,ut=ct,dt=16,pt=32;V.prototype={defaults:{},set:function(e){return ae(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(c(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Q(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return c(e,"dropRecognizeWith",this)||(e=Q(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(c(e,"requireFailure",this))return this;var t=this.requireFail;return-1===S(t,e=Q(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(c(e,"dropRequireFailure",this))return this;e=Q(e,this);var t=S(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,i=this.state;ct>i&&t(n.options.event+Z(i)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),i>=ct&&t(n.options.event+Z(i))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=pt)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(pt|ot)))return!1;e++}return!0},recognize:function(e){var t=ae({},e);return m(this.options.enable,[this,t])?(this.state&(ut|dt|pt)&&(this.state=ot),this.state=this.process(t),void(this.state&(at|lt|ct|dt)&&this.tryEmit(t))):(this.reset(),void(this.state=pt))},process:function(e){},getTouchAction:function(){},reset:function(){}},p(Y,V,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(at|lt),s=this.attrTest(e);return i&&(n&Le||!s)?t|dt:i||s?n&Ne?t|ct:t&at?t|lt:at:pt}}),p(K,Y,{defaults:{event:"pan",threshold:10,pointers:1,direction:Oe},getTouchAction:function(){var e=this.options.direction,t=[];return e&Ie&&t.push(st),e&ze&&t.push(it),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,s=e.direction,r=e.deltaX,o=e.deltaY;return s&t.direction||(t.direction&Ie?(s=0===r?ke:0>r?Ce:Pe,n=r!=this.pX,i=Math.abs(e.deltaX)):(s=0===o?ke:0>o?Te:Ae,n=o!=this.pY,i=Math.abs(e.deltaY))),e.direction=s,n&&i>t.threshold&&s&t.direction},attrTest:function(e){return Y.prototype.attrTest.call(this,e)&&(this.state&at||!(this.state&at)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=G(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),p(X,Y,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&at)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),p(J,V,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[et]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,s=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(Ne|Le)&&!s)this.reset();else if(e.eventType&Ee)this.reset(),this._timer=l((function(){this.state=ut,this.tryEmit()}),t.time,this);else if(e.eventType&Ne)return ut;return pt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===ut&&(e&&e.eventType&Ne?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=he(),this.manager.emit(this.options.event,this._input)))}}),p(ee,Y,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&at)}}),p(te,Y,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ie|ze,pointers:1},getTouchAction:function(){return K.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Ie|ze)?t=e.overallVelocity:n&Ie?t=e.overallVelocityX:n&ze&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&pe(t)>this.options.velocity&&e.eventType&Ne},emit:function(e){var t=G(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),p(ne,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,s=e.deltaTime<t.time;if(this.reset(),e.eventType&Ee&&0===this.count)return this.failTimeout();if(i&&s&&n){if(e.eventType!=Ne)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||z(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&r?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=ut,this.tryEmit()}),t.interval,this),at):ut}return pt},failTimeout:function(){return this._timer=l((function(){this.state=pt}),this.options.interval,this),pt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ut&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ie.VERSION="2.0.8",ie.defaults={domEvents:!1,touchAction:Je,enable:!0,inputTarget:null,inputClass:null,preset:[[ee,{enable:!1}],[X,{enable:!1},["rotate"]],[te,{direction:Ie}],[K,{direction:Ie},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[J]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};se.prototype={set:function(e){return ae(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,i=this.recognizers,s=t.curRecognizer;(!s||s&&s.state&ut)&&(s=t.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===t.stopped||s&&n!=s&&!n.canRecognizeWith(s)?n.reset():n.recognize(e),!s&&n.state&(at|lt|ct)&&(s=t.curRecognizer=n),r++}},get:function(e){if(e instanceof V)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(c(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(c(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=S(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==a&&t!==a){var n=this.handlers;return u(w(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==a){var n=this.handlers;return u(w(e),(function(e){t?n[e]&&n[e].splice(S(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&oe(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&re(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},ae(ie,{INPUT_START:Ee,INPUT_MOVE:xe,INPUT_END:Ne,INPUT_CANCEL:Le,STATE_POSSIBLE:ot,STATE_BEGAN:at,STATE_CHANGED:lt,STATE_ENDED:ct,STATE_RECOGNIZED:ut,STATE_CANCELLED:dt,STATE_FAILED:pt,DIRECTION_NONE:ke,DIRECTION_LEFT:Ce,DIRECTION_RIGHT:Pe,DIRECTION_UP:Te,DIRECTION_DOWN:Ae,DIRECTION_HORIZONTAL:Ie,DIRECTION_VERTICAL:ze,DIRECTION_ALL:Oe,Manager:se,Input:L,TouchAction:W,TouchInput:F,MouseInput:D,PointerEventInput:q,TouchMouseInput:j,SingleTouchInput:R,Recognizer:V,AttrRecognizer:Y,Tap:ne,Pan:K,Swipe:te,Pinch:X,Rotate:ee,Press:J,on:g,off:v,each:u,merge:fe,extend:me,assign:ae,inherit:p,bindFn:h,prefixed:x}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=ie,void 0===(i=function(){return ie}.call(t,n,t,e))||(e.exports=i)}(window,document)},354:(e,t,n)=>{"use strict";var i=n(730);const s=(e,t)=>{e.classList.remove("animate"),t.style.height=""},r=(e,t,n)=>{const r=e.querySelector(t),o=e.querySelector(n);if(!(0,i.a1)()){const e=r.querySelector(".it-c");0===e.textContent?.length&&(e.textContent=" ")}o.ontransitionend=()=>{s(e,o)},o.ontransitioncancel=()=>{s(e,o)},r.addEventListener("click",(t=>{(0,i.u5)(t);const n=o.children[0].offsetHeight;(0,i.a1)()&&(0,i.Zg)(e),e.classList.contains("close")?(o.style.height=0,e.classList.replace("close","open"),e.classList.add("animate"),setTimeout((()=>{o.style.height=`${n}px`}),10)):(o.style.height=`${n}px`,setTimeout((()=>{e.classList.replace("open","close"),e.classList.add("animate"),o.style.height=0}),10))}))};function o(e,t,n,i){const s=e.querySelectorAll(t);null!=s&&s.forEach((e=>{r(e,n,i)}))}(0,i.Gc)((()=>{const e=[...document.querySelectorAll(".mt-faq")];e.forEach((e=>{o(e,".mt-faq-item",".mt-faq-title",".mt-faq-text")})),(0,i.a1)()&&e.forEach((e=>{e.querySelector(".mt-faq-title").click()})),document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("mt-faq-item")&&setTimeout((()=>{r(e.target,".mt-faq-title",".mt-faq-text")}),100)})),document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("mt-faq")&&setTimeout((()=>{o(e.target,".mt-faq-item",".mt-faq-title",".mt-faq-text"),(0,i.a1)()&&null===e.target.closest(".pr")&&e.target.querySelector(".mt-faq-title").click()}),100)}))}))},846:(e,t,n)=>{"use strict";var i=n(730);function s(e){let t,n="",i="",s=e.querySelector(".s-bg-l");const r=e.querySelector(".s-bg");return s||(s=e),s.classList.contains("wnd-background-solid")?(t="solid",n=getComputedStyle(s).backgroundColor,"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n&&void 0!==n||(n=getComputedStyle(e).backgroundColor)):s.classList.contains("wnd-background-image")?t="image":s.classList.contains("wnd-background-video")?t="video":s.classList.contains("wnd-background-pattern")?t="pattern":"s-bg-l"===s.getAttribute("class")?(t="solid",n=getComputedStyle(s).backgroundColor,i=getComputedStyle(r).backgroundColor,"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n&&void 0!==n||(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n&&void 0!==n||"rgba(0, 0, 0, 0)"===i&&"transparent"===i&&void 0===i||(n=i))):s.classList.contains("s-bg-l")&&(t="solid",n=getComputedStyle(s).backgroundColor),"solid"===t&&(void 0!==n&&"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n||(n=getComputedStyle(document.body).backgroundColor,void 0!==n&&"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n||(n=getComputedStyle(document.querySelector(".wnd-page")).backgroundColor))),{backgroundType:t,backgroundColor:n}}function r(e){return"#fff"===e||"white"===e||"rgb(255, 255, 255)"===e}function o(){const e=document.querySelector(".l-m .s:last-child"),t=document.querySelector(".s-f"),n=t.getAttribute("data-wn-border-element"),i=document.body.classList.contains("l-d-border");let o;if(e&&t&&void 0!==n){const a=s(e),l=s(t);o="solid"===a.backgroundType&&"solid"===l.backgroundType&&!i&&a.backgroundColor===l.backgroundColor||i&&r(a.backgroundColor)&&r(l.backgroundColor)?"add":"remove",function(e,t,n){"section"!==t?"add"===n?e.querySelector(`.${t}`)?.classList.add("border-top"):e.querySelector(`.${t}`)?.classList.remove("border-top"):"add"===n?e.classList.add("border-top"):e.classList.remove("border-top")}(t,n,o)}}function a(){!function(){if(document.body.classList.contains("wnd-fe")){const e=document.querySelectorAll(".s-f-cr > .it"),t=document.querySelector(".sf"),n=document.querySelector(".s-f-lang"),i=document.querySelector(".s-f-ccy"),s=document.querySelector(".s-f-l-w"),r=document.querySelector(".sf-cbr");let o=!0,a=!0;if(e.length&&[].forEach.call(e,(e=>{const t=e.querySelector("span.it-c");t&&""===t.innerHTML.trim()?e.classList.add("empty"):o=!1})),""===t.querySelector(".sf-c").innerHTML.trim()?t.classList.add("empty"):a=!1,!0===o&&!0===a&&""===n.innerHTML.trim()&&""===i.innerHTML.trim()&&!r){s.style.display="none";const e=document.querySelector(".s-f-map"),t=document.querySelector(".s-f-edit");e&&(e.querySelector(".s-bg-w").style.bottom="0px",document.body.classList.contains("l-boxed")&&(e.querySelector(".s-w").style.paddingBottom="45px")),document.body.classList.contains("l-boxed")&&t&&(t.querySelector(".s-bg").style.bottom="0px",t.querySelector(".s-w").style.paddingBottom="45px")}}}(),function(){const e=document.querySelector(".s-f-l-w");if("none"!==getComputedStyle(e).display){const t=document.querySelector(".s-f-map"),n=document.querySelector(".s-f-edit"),i=e.offsetHeight;t&&(t.querySelector(".s-bg-w").style.bottom=`${i}px`),document.body.classList.contains("l-boxed")&&n&&(n.querySelector(".s-bg").style.bottom=`${i}px`)}}();let e,t=0,n=0;if(document.querySelector(".s-f-map")){const i=getComputedStyle(document.querySelector(".s-f-col-map")).clear;"both"!==i?(document.querySelectorAll(".s-f-col").forEach((i=>{if(n<2){const n=getComputedStyle(i);e=i.offsetHeight+parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e>t&&(t=e)}n++})),document.querySelector(".s-f-col-map").style.height=`${t}px`):"both"===i&&(document.querySelector(".s-f-col-map").style.height="")}}function l(){const e=document.querySelector(".l-f"),t=document.querySelector(".s-f"),n=t.classList.toString().split(" ").filter((e=>e.startsWith("sc")));if("relative"===getComputedStyle(e).position){const e=document.querySelector(".l-m .s:last-child").classList.toString().split(" ").filter((e=>e.startsWith("sc")));n.forEach((e=>t.classList.remove(e))),e.forEach((e=>t.classList.add(e)))}else{const e=document.querySelector(".s-hn-sidebar").classList.toString().split(" ").filter((e=>e.startsWith("sc")));n.forEach((e=>t.classList.remove(e))),e.forEach((e=>t.classList.add(e)))}o()}(0,i.Gc)((()=>{if(!(0,i.CB)()){if((0,i.bU)())return;const e=document.querySelector(".s-f-map"),t=document.querySelector(".wnd-page");a(),e&&e.addEventListener("wnd-redraw",a),t.addEventListener("wnd-content-change",a),window.addEventListener("resize",(()=>a())),window.addEventListener("orientationchange",(()=>a())),(0,i.Q5)()&&function(){const e=document.querySelector("footer");e&&(e.style.bottom="auto",e.style.top=800-e.offsetHeight+"px")}(),o();let n=!1;const s=(0,i.sg)(l,20,!1);if((0,i.lQ)()&&(l(),window.addEventListener("wnd-redraw",s),window.addEventListener("resize",l),window.addEventListener("orientationchange",l),n=!0),(0,i.a1)()){const e=e=>{e.target!==document.querySelector(".l-m .s:last-child")&&e.target!==document.querySelector(".s-f")||((0,i.lQ)()?setTimeout(o,50):o())};document.querySelector("main")?.addEventListener("wnd-redraw",e),document.querySelector("footer")?.addEventListener("wnd-redraw",e);document.querySelector(".l").addEventListener("wnd-layout-changed",(()=>{(0,i.lQ)()?(setTimeout(l,10),n||(window.addEventListener("wnd-redraw",s),window.addEventListener("resize",l),window.addEventListener("orientationchange",l),n=!0)):n&&(window.removeEventListener("wnd-redraw",s),window.removeEventListener("resize",l),window.removeEventListener("orientationchange",l),n=!1)}))}else{let e=document.querySelector(".cb");if(e){let t=e.querySelector(".cb-basic");document.querySelector(".sf-cbr > a")?.addEventListener("click",(n=>{(0,i.u5)(n),e.removeAttribute("style"),setTimeout((()=>{t.classList.remove("close"),t.classList.add("open")}),1)}))}}}}))},345:(e,t,n)=>{"use strict";var i=n(730);(0,i.Gc)((()=>{if((0,i.bU)()||!document.querySelector(".s-hb"))return;const e=()=>{const e=document.querySelector(".s-hb");return{elm:e,langOn:e.classList.contains("wnd-hbl-on"),currenciesOn:e.classList.contains("wnd-hbc-on"),infoOn:e.classList.contains("wnd-hbi-on"),iconsOn:e.classList.contains("wnd-hbs-on")}};let t=e();const n=function(){const n=document.querySelector(".menu-wrapper");t=e(),t.langOn&&(document.querySelector(".menu-wrapper .hb-lang")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-lang").cloneNode(!0))),t.currenciesOn&&(document.querySelector(".menu-wrapper .hb-ccy")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-ccy").cloneNode(!0))),t.infoOn&&(document.querySelector(".menu-wrapper .hb-ci")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-ci").cloneNode(!0))),t.iconsOn&&(document.querySelector(".menu-wrapper .hb-si")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-si").cloneNode(!0))),(()=>{t=e(),document.querySelector(".s-hb .ci-news");const n=document.querySelector(".s-hn .hb-ci .ci-c")&&!document.querySelector(".s-hn .ci-mail span")&&!document.querySelector(".s-hn .ci-phone span"),i=!document.querySelector(".s-hn .hb-si .si-c a");n&&(document.querySelector(".s-hn .hb-ci").style.display="none"),!document.querySelector(".wnd-menu-empty")||t.langOn||t.currenciesOn||!n&&t.infoOn||!i&&t.iconsOn||(document.querySelector("#menu-mobile").style.display="none")})()},s=function(e){if((0,i.a1)()){const t=new Event(`wnd-${e}-hb-dropdown`,{bubbles:!0,cancellable:!0});document.querySelector(".s-hb").dispatchEvent(t)}},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e?(0,i.ZV)()&&n():"wnd-view-switched-mobile"===e.type?n():"wnd-view-switched-desktop"===e.type&&(document.querySelector("#menu-mobile").removeAttribute("style"),document.querySelector(".menu-wrapper .hb-si")?.remove(),document.querySelector(".menu-wrapper .hb-ci")?.remove(),document.querySelector(".menu-wrapper .hb-ccy")?.remove(),document.querySelector(".menu-wrapper .hb-lang")?.remove())},o=function(e){const t=document.querySelector(`.${e}`);t&&t.querySelector(`.${e}-a`)?.addEventListener("click",(()=>{t.classList.contains("open")?(t.classList.remove("open"),s("close")):(t.classList.add("open"),s("open")),function(e){document.querySelector(`.${e}`).classList.contains("open")&&setTimeout((()=>{document.addEventListener("click",(t=>{t.target.closest(`.${e}`)&&!t.target.closest("li[selected]")||(document.querySelector(`.${e}`).classList.remove("open"),t.target.closest(".hb-ccy")||t.target.closest(".hb-lang")?s("open"):s("close"))}),{once:!0})}),10)}(e)}))};if(!(0,i.a1)()){const e=document.querySelector(".si-c");e&&0===e.innerHTML.trim().length&&document.querySelector(".hb-si").classList.add("empty");const t=document.querySelector(".ci-news");t&&0===t.querySelector("span").innerHTML.trim().length&&t.classList.add("empty");const n=document.querySelector(".ci-mail");n&&0===n.querySelector("span").innerHTML.trim().length&&n.classList.add("empty");const i=document.querySelector(".ci-phone");i&&0===i.querySelector("span").innerHTML.trim().length&&i.classList.add("empty")}["hbl","hbc"].forEach((e=>{o(e),document.querySelector(`.${e}`)?.addEventListener("wnd-redraw",(()=>{o(e)}))})),(0,i.a1)()&&document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("s-hb")&&(0,i.ZV)()&&requestAnimationFrame(n)})),["wnd-view-switched-mobile","wnd-view-switched-desktop"].forEach((e=>{document.body.addEventListener(e,(e=>{r(e)}))})),document.body.addEventListener("wnd-menu-redraw",(e=>{(0,i.ZV)()&&n()})),r()}))},348:(e,t,n)=>{"use strict";var i=n(730);const s=function(){this.mainNavlineElm=document.querySelector(".s-hn"),this.fixedNavlineElm=this.mainNavlineElm.querySelector(".h-f"),this.bgElm=this.mainNavlineElm.querySelector(".h-f"),this.freeBarElm=document.querySelector('body[class*="wnd-free-bar-fixed-top"] .wnd-free-stripe'),this.sloganElm=document.querySelector(".logo-slogan"),this.mainHeaderElm=document.querySelector(".s-hm"),this.hasSlogan=this.mainNavlineElm.classList.contains("s-hn-slogan")||this.mainNavlineElm.classList.contains("slogan-sidebar")&&"relative"===getComputedStyle(document.querySelector(".h-w")).position,this.isMainHeaderVisible=!this.mainHeaderElm.classList.contains("s-hm-hidden"),this.headerType=null,this.hasSolidColorBg=this.mainNavlineElm.classList.contains("wnd-background-solid"),this.solidColorBg=this.hasSolidColorBg?this.getSolidBgColor():null,this.mainNavlineElm.classList.contains("s-hn-bottom")?this.headerType="bottom":this.mainNavlineElm.classList.contains("s-hn-centered")?this.headerType="centered":this.mainNavlineElm.classList.contains("s-hn-sidebar")?this.headerType="sidebar":this.headerType="default",this.defaultNavlineCssPosition=getComputedStyle(this.fixedNavlineElm).position,this.defaultNavlineCssTop="absolute"===this.defaultNavlineCssPosition||"fixed"===this.defaultNavlineCssPosition?getComputedStyle(this.fixedNavlineElm).top:"auto",this.isFullHeightMenu=null,this.isFixable=null,this.freeBarHeight=null,this.stickyTopOffset=null,this.fixAt=0,this.unfixAt=0,this.lastScrollTop=window.pageYOffset,this.sloganEvents=["transitioncancel","animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd","webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"]};s.prototype.getSolidBgColor=function(){const e=this.mainNavlineElm.querySelector(".s-bg-l").getAttribute("style");return e.substring(e.indexOf("#"),e.indexOf("#")+7)},s.prototype.setBackgroundColor=function(){this.fixedNavlineElm.style.setProperty("background",this.solidColorBg,"important")},s.prototype.resetBackgroundColor=function(){this.fixedNavlineElm.style.background=""},s.prototype.switchRefresh=function(){this.isFullHeightMenu=this.mainNavlineElm.classList.contains("s-hn-default")&&this.mainNavlineElm.classList.contains("menu-bottom")&&!(0,i.ZV)(),this.isFixable=!(document.querySelector(".l-sidebar")&&"fixed"===getComputedStyle(document.querySelector(".l-h")).position||this.mainNavlineElm.classList.contains("s-hn-centered")&&"absolute"===getComputedStyle(document.querySelector(".h-f")).position)},s.prototype.resizeRefresh=function(){this.freeBarHeight=this.freeBarElm&&"block"===getComputedStyle(this.freeBarElm).display?parseInt(this.freeBarElm.offsetHeight,10):0,this.stickyTopOffset=this.freeBarHeight;const e="bottom"===this.headerType&&this.isMainHeaderVisible?parseInt(this.mainHeaderElm.getBoundingClientRect().top,10)+window.pageYOffset+parseInt(getComputedStyle(this.mainHeaderElm).height,10)-parseInt(getComputedStyle(this.mainHeaderElm.querySelector(".s-o")).paddingBottom,10)-this.freeBarHeight:parseInt(this.mainNavlineElm.getBoundingClientRect().top,10)+window.pageYOffset-this.freeBarHeight,t=parseInt(getComputedStyle(this.mainNavlineElm).height,10);let n;const i=parseInt(getComputedStyle(this.fixedNavlineElm).height,10),s=parseInt(getComputedStyle(this.fixedNavlineElm).minHeight,10);"fixed"!==getComputedStyle(this.fixedNavlineElm).position?(n=parseInt(this.fixedNavlineElm.getBoundingClientRect().top,10)+window.pageYOffset-this.freeBarHeight,this.isFullHeightMenu?(this.fixAt=e,this.unfixAt=e+(i-s)/2):this.hasSlogan?(this.fixAt=n,this.unfixAt=n+(i-s)/2):(this.fixAt=n,this.unfixAt=this.fixAt)):"fixed"===getComputedStyle(this.fixedNavlineElm).position&&(n=e+(t-i)/2,this.isFullHeightMenu?(this.fixAt=e,this.unfixAt=e+(t-i)/2):this.hasSlogan?this.unfixAt=e+(t-i)/2:"centered"===this.headerType?(this.fixAt=e+t-i,this.unfixAt=this.fixAt):(this.fixAt=n,this.unfixAt=this.fixAt))},s.prototype.dispatchNavEvent=function(e){const t=new Event(e,{bubbles:!0,cancellable:!0});this.mainNavlineElm.dispatchEvent(t)},s.prototype.scroll=function(){const e=this;if(!e.isFixable)return;const t=function(){e.sloganElm?.setAttribute("style",""),e.sloganEvents.forEach((n=>{e.sloganElm.removeEventListener(n,t)})),e.resizeRefresh()},n=function(n){e.hasSlogan&&(e.sloganElm.style.height=`${n}px`,e.sloganEvents.forEach((n=>{e.sloganElm.removeEventListener(n,t)})))};let i=window.pageYOffset;const s=i<e.lastScrollTop?"up":"down";if(i<0&&(i=0),"down"===s&&i>=e.fixAt){if("fixed"!==getComputedStyle(e.fixedNavlineElm).position){let t;e.hasSlogan&&(i!==e.lastScrollTop?n(e.sloganElm.offsetHeight):t=e.sloganElm.offsetHeight),setTimeout((()=>{e.dispatchNavEvent("navfixed"),e.fixedNavlineElm.style.top=`${e.stickyTopOffset}px`,e.fixedNavlineElm.style.position="fixed",e.bgElm.classList.add("bgonscroll"),e.mainNavlineElm.classList.add("sticky"),e.hasSolidColorBg&&e.setBackgroundColor(),"centered"===e.headerType&&(this.mainHeaderElm.style.marginTop=-1*parseFloat(getComputedStyle(e.mainNavlineElm).height)+"px",this.mainHeaderElm.style.paddingTop=`${parseFloat(getComputedStyle(e.mainNavlineElm).height)}px`),i===e.lastScrollTop&&e.hasSlogan&&n(t)}),i===e.lastScrollTop?0:10)}}else"up"===s&&i<=e.unfixAt&&"fixed"===getComputedStyle(e.fixedNavlineElm).position&&(document.body.classList.contains("noscroll")||("centered"!==e.headerType?(e.fixedNavlineElm.style.top=`${e.defaultNavlineCssTop}px`,e.fixedNavlineElm.style.position=e.defaultNavlineCssPosition):e.fixedNavlineElm.setAttribute("style","")),e.bgElm.classList.remove("bgonscroll"),e.mainNavlineElm.classList.remove("sticky"),e.hasSolidColorBg&&e.resetBackgroundColor(),"centered"===e.headerType&&(this.mainHeaderElm.style.marginTop=-1*parseFloat(getComputedStyle(e.mainNavlineElm).height)+"px",this.mainHeaderElm.style.paddingTop=`${parseFloat(getComputedStyle(e.mainNavlineElm).height)}px`),e.dispatchNavEvent("navunfixed"),e.hasSlogan&&e.sloganEvents.forEach((n=>{e.sloganElm.addEventListener(n,t,{once:!0})})));e.lastScrollTop=i},s.prototype.unfixAndReset=function(){this.mainNavlineElm.classList.remove("sticky"),this.bgElm.classList.remove("bgonscroll"),this.fixedNavlineElm.setAttribute("style",""),this.sloganElm?.setAttribute("style",""),this.dispatchNavEvent("navunfixed")},s.prototype.runCookieBarWatcher=function(){const e=this,t=document.getElementById("wnd_cookie_bar");if(t){new MutationObserver((t=>{1===t.length&&e.resizeRefresh()})).observe(t,{attributes:!0,childList:!1,subtree:!1,attributeOldValue:!0})}},s.prototype.init=function(){if(!(0,i.a1)()){const e=this;e.runCookieBarWatcher(),e.switchRefresh(),e.resizeRefresh(),window.pageYOffset&&e.scroll(),window.addEventListener("scroll",(()=>{e.scroll()})),["resize","orientationchange"].forEach((t=>{window.addEventListener(t,(()=>{e.resizeRefresh()}))})),"sidebar"===e.headerType&&document.body.addEventListener("wnd-view-switched-desktop",(()=>{"fixed"===getComputedStyle(document.querySelector(".l-h")).position&&e.unfixAndReset()})),"centered"===e.headerType&&document.body.addEventListener("wnd-view-switched-mobile",(()=>{e.unfixAndReset()})),["wnd-view-switched-mobile","wnd-view-switched-desktop"].forEach((t=>{document.body.addEventListener(t,(()=>{e.switchRefresh()}))}))}},(0,i.Gc)((()=>{if((0,i.bU)())return;const e=document.body.classList.contains("wt-blogpost");let t=document.querySelector(".s-hn"),n=document.querySelector(".s-hm"),r=!1;if((0,i.aQ)())if(document.querySelector(".s-hn").classList.contains("s-hn-bottom")&&!document.querySelector(".s-hm").classList.contains("s-hm-hidden"))window.addEventListener("navloaded",(()=>{(new s).init()}));else{(new s).init()}const o=function(){t=document.querySelector(".s-hn"),n=document.querySelector(".s-hm")},a=function(){return t.classList.contains("s-hn-bottom")},l=function(){t.classList.contains("s-hn-centered")&&setTimeout((()=>{if(t.classList.contains("s-hn-centered"))if(n.classList.contains("s-hm-hidden"))n.setAttribute("style",""),n.querySelector(".s-bg")?.setAttribute("style","");else{if(setTimeout((()=>{document.querySelector(".cart-and-mobile .cart")||document.querySelector("#menu .level-1")?t.classList.remove("menu-hidden"):t.classList.add("menu-hidden")}),1),!document.querySelector(".s-hn .logo"))return;n.style.marginTop=-1*parseInt(t.offsetHeight,10)+"px",n.style.paddingTop=`${parseInt(t.offsetHeight,10)}px`,t.classList.contains("hn-no-bg")?(n.querySelector(".s-bg").style.top=-1*parseInt(t.offsetHeight,10)+"px",setTimeout((()=>{n.style.marginTop=-1*parseInt(t.offsetHeight,10)+"px",n.style.paddingTop=`${parseInt(t.offsetHeight,10)}px`}),1)):n.querySelector(".s-bg")?.setAttribute("style","")}}),10)},c=function(){if(a()){if(!e){const e=document.body.classList.contains("hb-on")&&"none"!==getComputedStyle(document.querySelector(".s-hb")).display?parseFloat(getComputedStyle(document.querySelector(".s-hb"),null).height.replace("px","")):0;n.classList.contains("s-hm-hidden")?t.setAttribute("style",""):window.requestAnimationFrame((()=>{t.style.top=e+parseFloat(getComputedStyle(n,null).height.replace("px",""))-t.offsetHeight+"px"}))}if(!r){const e=new Event("navloaded",{bubbles:!0,cancellable:!0});setTimeout((()=>{document.querySelector(".s-hn")?.dispatchEvent(e)}),50),r=!0}}};let u;const d=function(){"undefined"!=typeof ResizeObserver&&(void 0!==u&&(u.unobserve(document.querySelector(".s-hm")),u.unobserve(document.querySelector(".s-hn"))),u=new ResizeObserver((e=>{for(let t=0;t<e.length;t++)o(),l(),c()})),u.observe(document.querySelector(".s-hm")),u.observe(document.querySelector(".s-hn")))};(0,i.CB)()||("undefined"==typeof ResizeObserver&&[t,n].forEach((e=>{e.addEventListener("wnd-content-change",(e=>{e.target.classList.contains("logo")||a()&&c()}))})),["mobile-menu-open","mobile-menu-close"].forEach((e=>{document.body.addEventListener(e,(e=>{e.target.classList.contains("s-hn")&&a()&&setTimeout(c,20)}))})),document.body.addEventListener("wnd-redraw",(e=>{(e.target.classList.contains("s-hn")||e.target.classList.contains("s-hm")||e.target.closest(".s-hn")||e.target.closest(".s-hm"))&&(o(),d(),l(),c())}),!0),o(),l(),c()),(0,i.bU)()||(0,i.CB)()||d()}))}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(1),n(771),n(420),n(118),n(718),n(437),n(525),n(674),n(412),n(63),n(434),n(6),n(465),n(444),n(823),n(153),n(175),n(952),n(243),n(431),n(671),n(463),n(354),n(846),n(348);n(345)})();