const __vite__fileDeps=["assets/globals-Dds4Q_8Z.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); var a1=Object.defineProperty;var l1=(e,t,n)=>t in e?a1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t,n)=>(l1(e,typeof t!="symbol"?t+"":t,n),n);function s1(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bh={exports:{}},Al={},Eh={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mo=Symbol.for("react.element"),u1=Symbol.for("react.portal"),c1=Symbol.for("react.fragment"),d1=Symbol.for("react.strict_mode"),f1=Symbol.for("react.profiler"),p1=Symbol.for("react.provider"),h1=Symbol.for("react.context"),m1=Symbol.for("react.forward_ref"),g1=Symbol.for("react.suspense"),v1=Symbol.for("react.memo"),y1=Symbol.for("react.lazy"),Yd=Symbol.iterator;function _1(e){return e===null||typeof e!="object"?null:(e=Yd&&e[Yd]||e["@@iterator"],typeof e=="function"?e:null)}var Mh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ah=Object.assign,kh={};function yi(e,t,n){this.props=e,this.context=t,this.refs=kh,this.updater=n||Mh}yi.prototype.isReactComponent={};yi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Th(){}Th.prototype=yi.prototype;function Sc(e,t,n){this.props=e,this.context=t,this.refs=kh,this.updater=n||Mh}var Oc=Sc.prototype=new Th;Oc.constructor=Sc;Ah(Oc,yi.prototype);Oc.isPureReactComponent=!0;var Qd=Array.isArray,Nh=Object.prototype.hasOwnProperty,Cc={current:null},Ph={key:!0,ref:!0,__self:!0,__source:!0};function jh(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Nh.call(t,r)&&!Ph.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,j=P[ne];if(0>>1;nei(U,z))Oi(Y,U)?(P[ne]=Y,P[O]=z,ne=O):(P[ne]=U,P[D]=z,ne=D);else if(Oi(Y,z))P[ne]=Y,P[O]=z,ne=O;else break e}}return F}function i(P,F){var z=P.sortIndex-F.sortIndex;return z!==0?z:P.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],h=1,p=null,c=3,y=!1,S=!1,_=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(P){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=P)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function w(P){if(_=!1,g(P),!S)if(n(s)!==null)S=!0,St(C);else{var F=n(u);F!==null&&Pe(w,F.startTime-P)}}function C(P,F){S=!1,_&&(_=!1,v(A),A=-1),y=!0;var z=c;try{for(g(F),p=n(s);p!==null&&(!(p.expirationTime>F)||P&&!oe());){var ne=p.callback;if(typeof ne=="function"){p.callback=null,c=p.priorityLevel;var j=ne(p.expirationTime<=F);F=e.unstable_now(),typeof j=="function"?p.callback=j:p===n(s)&&r(s),g(F)}else r(s);p=n(s)}if(p!==null)var R=!0;else{var D=n(u);D!==null&&Pe(w,D.startTime-F),R=!1}return R}finally{p=null,c=z,y=!1}}var E=!1,k=null,A=-1,$=5,B=-1;function oe(){return!(e.unstable_now()-B<$)}function ee(){if(k!==null){var P=e.unstable_now();B=P;var F=!0;try{F=k(!0,P)}finally{F?be():(E=!1,k=null)}}else E=!1}var be;if(typeof m=="function")be=function(){m(ee)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Me=He.port2;He.port1.onmessage=ee,be=function(){Me.postMessage(null)}}else be=function(){x(ee,0)};function St(P){k=P,E||(E=!0,be())}function Pe(P,F){A=x(function(){P(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){S||y||(S=!0,St(C))},e.unstable_forceFrameRate=function(P){0>P||125ne?(P.sortIndex=z,t(u,P),n(s)===null&&P===n(u)&&(_?(v(A),A=-1):_=!0,Pe(w,z-ne))):(P.sortIndex=j,t(s,P),S||y||(S=!0,St(C))),P},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(P){var F=c;return function(){var z=c;c=F;try{return P.apply(this,arguments)}finally{c=z}}}})($h);Lh.exports=$h;var T1=Lh.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var N1=b,mt=T1;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lu=Object.prototype.hasOwnProperty,P1=/^[: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]*$/,qd={},Zd={};function j1(e){return lu.call(Zd,e)?!0:lu.call(qd,e)?!1:P1.test(e)?Zd[e]=!0:(qd[e]=!0,!1)}function I1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R1(e,t,n,r){if(t===null||typeof t>"u"||I1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(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){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var bc=/[\-:]([a-z])/g;function Ec(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bc,Ec);Ve[t]=new nt(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(bc,Ec);Ve[t]=new nt(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(bc,Ec);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mc(e,t,n,r){var i=Ve.hasOwnProperty(t)?Ve[t]:null;(i!==null?i.type!==0:r||!(2l||i[a]!==o[l]){var s=` `+i[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ii(e):""}function D1(e){switch(e.tag){case 5:return Ii(e.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 2:case 15:return e=bs(e.type,!1),e;case 11:return e=bs(e.type.render,!1),e;case 1:return e=bs(e.type,!0),e;default:return""}}function du(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nr:return"Fragment";case Tr:return"Portal";case su:return"Profiler";case Ac:return"StrictMode";case uu:return"Suspense";case cu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zh:return(e.displayName||"Context")+".Consumer";case Fh:return(e._context.displayName||"Context")+".Provider";case kc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tc:return t=e.displayName||null,t!==null?t:du(e.type)||"Memo";case xn:t=e._payload,e=e._init;try{return du(e(t))}catch{}}return null}function L1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return du(t);case 8:return t===Ac?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $1(e){var t=Wh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ea(e){e._valueTracker||(e._valueTracker=$1(e))}function Vh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Va(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fu(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ef(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hh(e,t){t=t.checked,t!=null&&Mc(e,"checked",t,!1)}function pu(e,t){Hh(e,t);var n=Wn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hu(e,t.type,n):t.hasOwnProperty("defaultValue")&&hu(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hu(e,t,n){(t!=="number"||Va(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ri=Array.isArray;function Gr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fi={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},B1=["Webkit","ms","Moz","O"];Object.keys(Fi).forEach(function(e){B1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fi[t]=Fi[e]})});function Qh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fi.hasOwnProperty(e)&&Fi[e]?(""+t).trim():t+"px"}function Xh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Qh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var F1=ye({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 vu(e,t){if(t){if(F1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function yu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _u=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wu=null,Yr=null,Qr=null;function of(e){if(e=To(e)){if(typeof wu!="function")throw Error(M(280));var t=e.stateNode;t&&(t=jl(t),wu(e.stateNode,e.type,t))}}function qh(e){Yr?Qr?Qr.push(e):Qr=[e]:Yr=e}function Zh(){if(Yr){var e=Yr,t=Qr;if(Qr=Yr=null,of(e),t)for(e=0;e>>=0,e===0?32:31-(q1(e)/Z1|0)|0}var na=64,ra=4194304;function Di(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ya(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Di(l):(o&=a,o!==0&&(r=Di(o)))}else a=n&~i,a!==0?r=Di(a):o!==0&&(r=Di(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function ny(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ui),hf=" ",mf=!1;function ym(e,t){switch(e){case"keyup":return Ty.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _m(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function Py(e,t){switch(e){case"compositionend":return _m(t);case"keypress":return t.which!==32?null:(mf=!0,hf);case"textInput":return e=t.data,e===hf&&mf?null:e;default:return null}}function jy(e,t){if(Pr)return e==="compositionend"||!Bc&&ym(e,t)?(e=gm(),ka=Dc=An=null,Pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_f(n)}}function Cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xm(){for(var e=window,t=Va();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Va(e.document)}return t}function Fc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uy(e){var t=xm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cm(n.ownerDocument.documentElement,n)){if(r!==null&&Fc(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=wf(n,o);var a=wf(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,jr=null,Eu=null,Vi=null,Mu=!1;function Sf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mu||jr==null||jr!==Va(r)||(r=jr,"selectionStart"in r&&Fc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vi&&io(Vi,r)||(Vi=r,r=qa(Eu,"onSelect"),0Dr||(e.current=ju[Dr],ju[Dr]=null,Dr--)}function ce(e,t){Dr++,ju[Dr]=e.current,e.current=t}var Vn={},Xe=Gn(Vn),st=Gn(!1),hr=Vn;function ri(e,t){var n=e.type.contextTypes;if(!n)return Vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ut(e){return e=e.childContextTypes,e!=null}function Ja(){fe(st),fe(Xe)}function Af(e,t,n){if(Xe.current!==Vn)throw Error(M(168));ce(Xe,t),ce(st,n)}function jm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,L1(e)||"Unknown",i));return ye({},n,r)}function el(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,hr=Xe.current,ce(Xe,e),ce(st,st.current),!0}function kf(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=jm(e,t,hr),r.__reactInternalMemoizedMergedChildContext=e,fe(st),fe(Xe),ce(Xe,e)):fe(st),ce(st,n)}var rn=null,Il=!1,Bs=!1;function Im(e){rn===null?rn=[e]:rn.push(e)}function e_(e){Il=!0,Im(e)}function Yn(){if(!Bs&&rn!==null){Bs=!0;var e=0,t=le;try{var n=rn;for(le=1;e>=a,i-=a,sn=1<<32-Bt(t)+i|n<A?($=k,k=null):$=k.sibling;var B=c(v,k,g[A],w);if(B===null){k===null&&(k=$);break}e&&k&&B.alternate===null&&t(v,k),m=o(B,m,A),E===null?C=B:E.sibling=B,E=B,k=$}if(A===g.length)return n(v,k),he&&tr(v,A),C;if(k===null){for(;AA?($=k,k=null):$=k.sibling;var oe=c(v,k,B.value,w);if(oe===null){k===null&&(k=$);break}e&&k&&oe.alternate===null&&t(v,k),m=o(oe,m,A),E===null?C=oe:E.sibling=oe,E=oe,k=$}if(B.done)return n(v,k),he&&tr(v,A),C;if(k===null){for(;!B.done;A++,B=g.next())B=p(v,B.value,w),B!==null&&(m=o(B,m,A),E===null?C=B:E.sibling=B,E=B);return he&&tr(v,A),C}for(k=r(v,k);!B.done;A++,B=g.next())B=y(k,v,A,B.value,w),B!==null&&(e&&B.alternate!==null&&k.delete(B.key===null?A:B.key),m=o(B,m,A),E===null?C=B:E.sibling=B,E=B);return e&&k.forEach(function(ee){return t(v,ee)}),he&&tr(v,A),C}function x(v,m,g,w){if(typeof g=="object"&&g!==null&&g.type===Nr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Jo:e:{for(var C=g.key,E=m;E!==null;){if(E.key===C){if(C=g.type,C===Nr){if(E.tag===7){n(v,E.sibling),m=i(E,g.props.children),m.return=v,v=m;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===xn&&Pf(C)===E.type){n(v,E.sibling),m=i(E,g.props),m.ref=Ti(v,E,g),m.return=v,v=m;break e}n(v,E);break}else t(v,E);E=E.sibling}g.type===Nr?(m=cr(g.props.children,v.mode,w,g.key),m.return=v,v=m):(w=La(g.type,g.key,g.props,null,v.mode,w),w.ref=Ti(v,m,g),w.return=v,v=w)}return a(v);case Tr:e:{for(E=g.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(v,m.sibling),m=i(m,g.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Gs(g,v.mode,w),m.return=v,v=m}return a(v);case xn:return E=g._init,x(v,m,E(g._payload),w)}if(Ri(g))return S(v,m,g,w);if(bi(g))return _(v,m,g,w);ca(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(v,m.sibling),m=i(m,g),m.return=v,v=m):(n(v,m),m=Ks(g,v.mode,w),m.return=v,v=m),a(v)):n(v,m)}return x}var oi=$m(!0),Bm=$m(!1),rl=Gn(null),il=null,Br=null,Vc=null;function Hc(){Vc=Br=il=null}function Kc(e){var t=rl.current;fe(rl),e._currentValue=t}function Du(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function qr(e,t){il=e,Vc=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(Vc!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(il===null)throw Error(M(308));Br=e,il.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var ar=null;function Gc(e){ar===null?ar=[e]:ar.push(e)}function Fm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Gc(t)):(n.next=i.next,i.next=n),t.interleaved=n,mn(e,r)}function mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var bn=!1;function Yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zm(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 dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,mn(e,n)}return i=r.interleaved,i===null?(t.next=t,Gc(r)):(t.next=i.next,i.next=t),r.interleaved=t,mn(e,n)}function Na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jc(e,n)}}function jf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ol(e,t,n,r){var i=e.updateQueue;bn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?o=u:a.next=u,a=s;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==a&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=s))}if(o!==null){var p=i.baseState;a=0,h=u=s=null,l=o;do{var c=l.lane,y=l.eventTime;if((r&c)===c){h!==null&&(h=h.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,_=l;switch(c=t,y=n,_.tag){case 1:if(S=_.payload,typeof S=="function"){p=S.call(y,p,c);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=_.payload,c=typeof S=="function"?S.call(y,p,c):S,c==null)break e;p=ye({},p,c);break e;case 2:bn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,c=i.effects,c===null?i.effects=[l]:c.push(l))}else y={eventTime:y,lane:c,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=y,s=p):h=h.next=y,a|=c;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;c=l,l=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}while(!0);if(h===null&&(s=p),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);vr|=a,e.lanes=a,e.memoizedState=p}}function If(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=zs.transition;zs.transition={};try{e(!1),t()}finally{le=n,zs.transition=r}}function ig(){return Tt().memoizedState}function i_(e,t,n){var r=Ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},og(e))ag(t,n);else if(n=Fm(e,t,n,r),n!==null){var i=Je();Ft(n,e,r,i),lg(n,t,r)}}function o_(e,t,n){var r=Ln(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(og(e))ag(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Vt(l,a)){var s=t.interleaved;s===null?(i.next=i,Gc(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Fm(e,t,i,r),n!==null&&(i=Je(),Ft(n,e,r,i),lg(n,t,r))}}function og(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function ag(e,t){Hi=ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jc(e,n)}}var sl={readContext:kt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},a_={readContext:kt,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Df,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ja(4194308,4,Jm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ja(4194308,4,e,t)},useInsertionEffect:function(e,t){return ja(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=i_.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:Rf,useDebugValue:nd,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=Rf(!1),t=e[0];return e=r_.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,i=Yt();if(he){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Re===null)throw Error(M(349));gr&30||Hm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Df(Gm.bind(null,r,o,e),[e]),r.flags|=2048,po(9,Km.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Yt(),t=Re.identifierPrefix;if(he){var n=un,r=sn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=co++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Qt]=t,e[lo]=r,vg(e,t,!1,!1),t.stateNode=e;e:{switch(a=yu(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;isi&&(t.flags|=128,r=!0,Ni(o,!1),t.lanes=4194304)}else{if(!r)if(e=al(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ni(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!he)return Ye(t),null}else 2*xe()-o.renderingStartTime>si&&n!==1073741824&&(t.flags|=128,r=!0,Ni(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xe(),t.sibling=null,n=ge.current,ce(ge,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return sd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function h_(e,t){switch(Uc(t),t.tag){case 1:return ut(t.type)&&Ja(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ai(),fe(st),fe(Xe),qc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xc(t),null;case 13:if(fe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ge),null;case 4:return ai(),null;case 10:return Kc(t.type._context),null;case 22:case 23:return sd(),null;case 24:return null;default:return null}}var fa=!1,Qe=!1,m_=typeof WeakSet=="function"?WeakSet:Set,L=null;function Fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Hu(e,t,n){try{n()}catch(r){we(e,t,r)}}var Gf=!1;function g_(e,t){if(Au=Qa,e=xm(),Fc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,h=0,p=e,c=null;t:for(;;){for(var y;p!==n||i!==0&&p.nodeType!==3||(l=a+i),p!==o||r!==0&&p.nodeType!==3||(s=a+r),p.nodeType===3&&(a+=p.nodeValue.length),(y=p.firstChild)!==null;)c=p,p=y;for(;;){if(p===e)break t;if(c===n&&++u===i&&(l=a),c===o&&++h===r&&(s=a),(y=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=y}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ku={focusedElem:e,selectionRange:n},Qa=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var _=S.memoizedProps,x=S.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:Rt(t.type,_),x);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(w){we(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return S=Gf,Gf=!1,S}function Ki(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Hu(t,n,o)}i=i.next}while(i!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ku(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wg(e){var t=e.alternate;t!==null&&(e.alternate=null,wg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[lo],delete t[Pu],delete t[Zy],delete t[Jy])),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 Sg(e){return e.tag===5||e.tag===3||e.tag===4}function Yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Za));else if(r!==4&&(e=e.child,e!==null))for(Gu(e,t,n),e=e.sibling;e!==null;)Gu(e,t,n),e=e.sibling}function Yu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}var ze=null,Dt=!1;function Cn(e,t,n){for(n=n.child;n!==null;)Og(e,t,n),n=n.sibling}function Og(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(kl,n)}catch{}switch(n.tag){case 5:Qe||Fr(n,t);case 6:var r=ze,i=Dt;ze=null,Cn(e,t,n),ze=r,Dt=i,ze!==null&&(Dt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Dt?(e=ze,n=n.stateNode,e.nodeType===8?$s(e.parentNode,n):e.nodeType===1&&$s(e,n),no(e)):$s(ze,n.stateNode));break;case 4:r=ze,i=Dt,ze=n.stateNode.containerInfo,Dt=!0,Cn(e,t,n),ze=r,Dt=i;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Hu(n,t,a),i=i.next}while(i!==r)}Cn(e,t,n);break;case 1:if(!Qe&&(Fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){we(n,t,l)}Cn(e,t,n);break;case 21:Cn(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,Cn(e,t,n),Qe=r):Cn(e,t,n);break;default:Cn(e,t,n)}}function Qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new m_),t.forEach(function(r){var i=b_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*y_(r/1960))-r,10e?16:e,kn===null)var r=!1;else{if(e=kn,kn=null,dl=0,Q&6)throw Error(M(331));var i=Q;for(Q|=4,L=e.current;L!==null;){var o=L,a=o.child;if(L.flags&16){var l=o.deletions;if(l!==null){for(var s=0;sxe()-ad?ur(e,0):od|=n),ct(e,t)}function Tg(e,t){t===0&&(e.mode&1?(t=ra,ra<<=1,!(ra&130023424)&&(ra=4194304)):t=1);var n=Je();e=mn(e,t),e!==null&&(Ao(e,t,n),ct(e,n))}function x_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tg(e,n)}function b_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Tg(e,n)}var Ng;Ng=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,f_(e,t,n);ot=!!(e.flags&131072)}else ot=!1,he&&t.flags&1048576&&Rm(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ia(e,t),e=t.pendingProps;var i=ri(t,Xe.current);qr(t,n),i=Jc(null,t,r,e,i,n);var o=ed();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(o=!0,el(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yc(t),i.updater=Dl,t.stateNode=i,i._reactInternals=t,$u(t,r,e,n),t=zu(null,t,r,!0,o,n)):(t.tag=0,he&&o&&zc(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ia(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=M_(r),e=Rt(r,e),i){case 0:t=Fu(null,t,r,e,n);break e;case 1:t=Vf(null,t,r,e,n);break e;case 11:t=Uf(null,t,r,e,n);break e;case 14:t=Wf(null,t,r,Rt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Fu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Vf(e,t,r,i,n);case 3:e:{if(hg(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,zm(e,t),ol(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=li(Error(M(423)),t),t=Hf(e,t,r,n,i);break e}else if(r!==i){i=li(Error(M(424)),t),t=Hf(e,t,r,n,i);break e}else for(pt=In(t.stateNode.containerInfo.firstChild),ht=t,he=!0,Lt=null,n=Bm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ii(),r===i){t=gn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return Um(t),e===null&&Ru(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Tu(r,i)?a=null:o!==null&&Tu(r,o)&&(t.flags|=32),pg(e,t),Ze(e,t,a,n),t.child;case 6:return e===null&&Ru(t),null;case 13:return mg(e,t,n);case 4:return Qc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oi(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Uf(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ce(rl,r._currentValue),r._currentValue=a,o!==null)if(Vt(o.value,a)){if(o.children===i.children&&!st.current){t=gn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=dn(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?s.next=s:(s.next=h.next,h.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Du(o.return,n,t),l.lanes|=n;break}s=s.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Du(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,qr(t,n),i=kt(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=Rt(r,t.pendingProps),i=Rt(r.type,i),Wf(e,t,r,i,n);case 15:return dg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Ia(e,t),t.tag=1,ut(r)?(e=!0,el(t)):e=!1,qr(t,n),sg(t,r,i),$u(t,r,i,n),zu(null,t,r,!0,e,n);case 19:return gg(e,t,n);case 22:return fg(e,t,n)}throw Error(M(156,t.tag))};function Pg(e,t){return om(e,t)}function E_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,r){return new E_(e,t,n,r)}function cd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M_(e){if(typeof e=="function")return cd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kc)return 11;if(e===Tc)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function La(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")cd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Nr:return cr(n.children,i,o,t);case Ac:a=8,i|=8;break;case su:return e=Mt(12,n,t,i|2),e.elementType=su,e.lanes=o,e;case uu:return e=Mt(13,n,t,i),e.elementType=uu,e.lanes=o,e;case cu:return e=Mt(19,n,t,i),e.elementType=cu,e.lanes=o,e;case Uh:return Bl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fh:a=10;break e;case zh:a=9;break e;case kc:a=11;break e;case Tc:a=14;break e;case xn:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function cr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=Uh,e.lanes=n,e.stateNode={isHidden:!1},e}function Ks(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Gs(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A_(e,t,n,r,i){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=Ms(0),this.expirationTimes=Ms(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ms(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dd(e,t,n,r,i,o,a,l,s){return e=new A_(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Mt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yc(o),e}function k_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),Dh.exports=gt;var Po=Dh.exports;const ma=wc(Po);var Lg,$g,rp=Po;$g=rp.createRoot,Lg=rp.hydrateRoot;function We(){if(!window)throw new Error("Window object isn't available");return window}function Bg(e){const t={...e,type:`ssr-${e.type}`};return We().parent.postMessage(t,"*")}function Z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z_(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function U_(e){var t=z_(e,"string");return typeof t=="symbol"?t:String(t)}var Xt=Symbol("mobx-stored-annotations");function en(e){function t(n,r){Do(n,r,e)}return Object.assign(t,e)}function Do(e,t,n){fn(e,Xt)||Io(e,Xt,ci({},e[Xt])),q_(n)||(e[Xt][t]=n)}function W_(e){return fn(e,Xt)||Io(e,Xt,ci({},e[Xt])),e[Xt]}var W=Symbol("mobx administration"),Lo=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=q.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return hv(this)},t.reportChanged=function(){at(),mv(this),N.stateVersion=N.stateVersionr&&(r=l.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var s=t[o];s.diffValue_===0&&fv(s,e),s.diffValue_=0}for(;i--;){var u=n[i];u.diffValue_===1&&(u.diffValue_=0,Iw(u,e))}r!==q.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function nc(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)fv(t[n],e);e.dependenciesState_=q.NOT_TRACKING_}function uv(e){var t=Oi();try{return e()}finally{Bn(t)}}function Oi(){var e=N.trackingDerivation;return N.trackingDerivation=null,e}function Bn(e){N.trackingDerivation=e}function Jr(e){var t=N.allowStateReads;return N.allowStateReads=e,t}function Fn(e){N.allowStateReads=e}function cv(e){if(e.dependenciesState_!==q.UP_TO_DATE_){e.dependenciesState_=q.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=q.UP_TO_DATE_}}var Ba=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},Fa=!0,dv=!1,N=function(){var e=md();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Fa=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Ba().version&&(Fa=!1),Fa?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ba):(setTimeout(function(){dv||Z(35)},1),new Ba)}();function jw(){if((N.pendingReactions.length||N.inBatch||N.isRunningReactions)&&Z(36),dv=!0,Fa){var e=md();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),N=new Ba}}function Iw(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function fv(e,t){e.observers_.delete(t),e.observers_.size===0&&pv(e)}function pv(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,N.pendingUnobservations.push(e))}function at(){N.inBatch++}function lt(){if(--N.inBatch===0){gv();for(var e=N.pendingUnobservations,t=0;t0&&pv(e),!1)}function mv(e){e.lowestObserverState_!==q.STALE_&&(e.lowestObserverState_=q.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===q.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=q.STALE_}))}function Rw(e){e.lowestObserverState_!==q.STALE_&&(e.lowestObserverState_=q.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===q.POSSIBLY_STALE_?t.dependenciesState_=q.STALE_:t.dependenciesState_===q.UP_TO_DATE_&&(e.lowestObserverState_=q.UP_TO_DATE_)}))}function Dw(e){e.lowestObserverState_===q.UP_TO_DATE_&&(e.lowestObserverState_=q.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===q.UP_TO_DATE_&&(t.dependenciesState_=q.POSSIBLY_STALE_,t.onBecomeStale_())}))}var hi=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=q.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=vl.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,N.pendingReactions.push(this),gv())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){at(),this.isScheduled_=!1;var r=N.trackingContext;if(N.trackingContext=this,tc(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}N.trackingContext=r,lt()}},t.track=function(r){if(!this.isDisposed_){at(),this.isRunning_=!0;var i=N.trackingContext;N.trackingContext=this;var o=sv(this,r,void 0);N.trackingContext=i,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&nc(this),$a(o)&&this.reportExceptionInDerivation_(o.cause),lt()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(N.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";N.suppressReactionErrors||console.error(o,r),N.globalReactionErrorHandlers.forEach(function(a){return a(r,i)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(at(),nc(this),lt()))},t.getDisposer_=function(r){var i=this,o=function a(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",a)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[W]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},e}(),Lw=100,rc=function(t){return t()};function gv(){N.inBatch>0||N.isRunningReactions||rc($w)}function $w(){N.isRunningReactions=!0;for(var e=N.pendingReactions,t=0;e.length>0;){++t===Lw&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r0&&(t.dependencies=eS(e.observing_).map(Ev)),t}function eS(e){return Array.from(new Set(e))}var tS=0;function Mv(){this.message="FLOW_CANCELLED"}Mv.prototype=Object.create(Error.prototype);var sp=Xg("flow"),nS=Xg("flow.bound",{bound:!0}),vo=Object.assign(function(t,n){if(_r(n))return Do(t,n,sp);var r=t,i=r.name||"",o=function(){var l=this,s=arguments,u=++tS,h=Vr(i+" - runid: "+u+" - init",r).apply(l,s),p,c=void 0,y=new Promise(function(S,_){var x=0;p=_;function v(w){c=void 0;var C;try{C=Vr(i+" - runid: "+u+" - yield "+x++,h.next).call(h,w)}catch(E){return _(E)}g(C)}function m(w){c=void 0;var C;try{C=Vr(i+" - runid: "+u+" - yield "+x++,h.throw).call(h,w)}catch(E){return _(E)}g(C)}function g(w){if(Ht(w==null?void 0:w.then)){w.then(g,_);return}return w.done?S(w.value):(c=Promise.resolve(w.value),c.then(v,m))}v(void 0)});return y.cancel=Vr(i+" - runid: "+u+" - cancel",function(){try{c&&up(c);var S=h.return(void 0),_=Promise.resolve(S.value);_.then(Ur,Ur),up(_),p(new Mv)}catch(x){p(x)}}),y};return o.isMobXFlow=!0,o},sp);vo.bound=en(nS);function up(e){Ht(e.cancel)&&e.cancel()}function wl(e){return(e==null?void 0:e.isMobXFlow)===!0}function rS(e,t){return e?Ko(e)||!!e[W]||vd(e)||_l(e)||zo(e):!1}function Sd(e){return rS(e)}function iS(e){if(Ko(e))return e[W].ownKeys_();Z(38)}function _a(e,t,n){return e.set(t,n),n}function Ar(e,t){if(e==null||typeof e!="object"||e instanceof Date||!Sd(e))return e;if(Nw(e)||zo(e))return Ar(e.get(),t);if(t.has(e))return t.get(e);if(Vo(e)){var n=_a(t,e,new Array(e.length));return e.forEach(function(a,l){n[l]=Ar(a,t)}),n}if(Or(e)){var r=_a(t,e,new Set);return e.forEach(function(a){r.add(Ar(a,t))}),r}if(qn(e)){var i=_a(t,e,new Map);return e.forEach(function(a,l){i.set(l,Ar(a,t))}),i}else{var o=_a(t,e,{});return iS(e).forEach(function(a){jo.propertyIsEnumerable.call(e,a)&&(o[a]=Ar(e[a],t))}),o}}function Hr(e,t){return Ar(e,new Map)}function on(e,t){t===void 0&&(t=void 0),at();try{return e.apply(t)}finally{lt()}}function br(e){return e[W]}var oS={has:function(t,n){return br(t).has_(n)},get:function(t,n){return br(t).get_(n)},set:function(t,n,r){var i;return _r(n)?(i=br(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return _r(n)?(r=br(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=br(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return br(t).ownKeys_()},preventExtensions:function(t){Z(13)}};function aS(e,t){var n,r;return Ug(),e=Ho(e,t),(r=(n=e[W]).proxy_)!=null?r:n.proxy_=new Proxy(e,oS)}function bt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Uo(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Wg(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Et(e,t){var n=Oi();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i0}function Wo(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Wg(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Ut(e,t){var n=Oi(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i0?r.map(this.dehancer):r},t.intercept_=function(r){return Uo(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Wo(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&Z("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),a=0;a0&&$v(r+i+1)},t.spliceWithArray_=function(r,i,o){var a=this;this.atom_;var l=this.values_.length;if(r===void 0?r=0:r>l?r=l:r<0&&(r=Math.max(0,l+r)),arguments.length===1?i=l-r:i==null?i=0:i=Math.max(0,Math.min(i,l-r)),o===void 0&&(o=Ju),bt(this)){var s=Et(this,{object:this.proxy_,type:cp,index:r,removedCount:i,added:o});if(!s)return Ju;i=s.removedCount,o=s.added}if(o=o.length===0?o:o.map(function(p){return a.enhancer_(p,void 0)}),this.legacyMode_){var u=o.length-i;this.updateArrayLength_(l,u)}var h=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,h),this.dehanceValues_(h)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&Z(17,r,o.length),r2?r-2:0),o=2;o-1?(this.splice(r,1),!0):!1}};Ne("concat",_n);Ne("flat",_n);Ne("includes",_n);Ne("indexOf",_n);Ne("join",_n);Ne("lastIndexOf",_n);Ne("slice",_n);Ne("toString",_n);Ne("toLocaleString",_n);Ne("every",Xn);Ne("filter",Xn);Ne("find",Xn);Ne("findIndex",Xn);Ne("flatMap",Xn);Ne("forEach",Xn);Ne("map",Xn);Ne("some",Xn);Ne("reduce",Av);Ne("reduceRight",Av);function Ne(e,t){typeof Array.prototype[e]=="function"&&(Sl[e]=t(e))}function _n(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Xn(e){return function(t,n){var r=this,i=this[W];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(a,l){return t.call(n,a,l,r)})}}function Av(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,a,l){return i(o,a,l,t)},r[e].apply(r,arguments)}}var dS=Qn("ObservableArrayAdministration",Od);function Vo(e){return Vl(e)&&dS(e[W])}var kv,Tv,fS={},Tn="add",Ol="delete";kv=Symbol.iterator;Tv=Symbol.toStringTag;var Nv=function(){function e(n,r,i){var o=this;r===void 0&&(r=di),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=fS,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,Ht(Map)||Z(18),this.keysAtom_=yd("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,ov(!0,function(){o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!N.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var a=o=new dr(this.has_(r),Hl,"ObservableMap.key?",!1);this.hasMap_.set(r,a),Cv(a,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(bt(this)){var a=Et(this,{type:o?tn:Tn,object:this,newValue:i,name:r});if(!a)return this;i=a.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,bt(this)){var o=Et(this,{type:Ol,object:this,name:r});if(!o)return!1}if(this.has_(r)){var a=Qi(),l=zt(this),s=l||a?{observableKind:"map",debugObjectName:this.name_,type:Ol,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return on(function(){var u;i.keysAtom_.reportChanged(),(u=i.hasMap_.get(r))==null||u.setNewValue_(!1);var h=i.data_.get(r);h.setNewValue_(void 0),i.data_.delete(r)}),l&&Ut(this,s),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==N.UNCHANGED){var a=Qi(),l=zt(this),s=l||a?{observableKind:"map",debugObjectName:this.name_,type:tn,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&Ut(this,s)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,on(function(){var u,h=new dr(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,h),i=h.value_,(u=o.hasMap_.get(r))==null||u.setNewValue_(!0),o.keysAtom_.reportChanged()});var a=Qi(),l=zt(this),s=l||a?{observableKind:"map",debugObjectName:this.name_,type:Tn,object:this,name:r,newValue:i}:null;l&&Ut(this,s)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return yo({next:function(){var a=i.next(),l=a.done,s=a.value;return{done:l,value:l?void 0:r.get(s)}}})},t.entries=function(){var r=this,i=this.keys();return yo({next:function(){var a=i.next(),l=a.done,s=a.value;return{done:l,value:l?void 0:[s,r.get(s)]}}})},t[kv]=function(){return this.entries()},t.forEach=function(r,i){for(var o=Wr(this),a;!(a=o()).done;){var l=a.value,s=l[0],u=l[1];r.call(i,u,s,this)}},t.merge=function(r){var i=this;return qn(r)&&(r=new Map(r)),on(function(){vn(r)?L_(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var a=o[0],l=o[1];return i.set(a,l)}):Si(r)?(r.constructor!==Map&&Z(19,r),r.forEach(function(o,a){return i.set(a,o)})):r!=null&&Z(20,r)}),this},t.clear=function(){var r=this;on(function(){uv(function(){for(var i=Wr(r.keys()),o;!(o=i()).done;){var a=o.value;r.delete(a)}})})},t.replace=function(r){var i=this;return on(function(){for(var o=pS(r),a=new Map,l=!1,s=Wr(i.data_.keys()),u;!(u=s()).done;){var h=u.value;if(!o.has(h)){var p=i.delete(h);if(p)l=!0;else{var c=i.data_.get(h);a.set(h,c)}}}for(var y=Wr(o.entries()),S;!(S=y()).done;){var _=S.value,x=_[0],v=_[1],m=i.data_.has(x);if(i.set(x,v),i.data_.has(x)){var g=i.data_.get(x);a.set(x,g),m||(l=!0)}}if(!l)if(i.data_.size!==a.size)i.keysAtom_.reportChanged();else for(var w=i.data_.keys(),C=a.keys(),E=w.next(),k=C.next();!E.done;){if(E.value!==k.value){i.keysAtom_.reportChanged();break}E=w.next(),k=C.next()}i.data_=a}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return Wo(this,r)},t.intercept_=function(r){return Uo(this,r)},gd(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Tv,get:function(){return"Map"}}]),e}(),qn=Qn("ObservableMap",Nv);function pS(e){if(Si(e)||qn(e))return e;if(Array.isArray(e))return new Map(e);if(vn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return Z(21,e)}var Pv,jv,hS={};Pv=Symbol.iterator;jv=Symbol.toStringTag;var Iv=function(){function e(n,r,i){r===void 0&&(r=di),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[W]=hS,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,Ht(Set)||Z(22),this.atom_=yd(this.name_),this.enhancer_=function(o,a){return r(o,a,i)},n&&this.replace(n)}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;on(function(){uv(function(){for(var i=Wr(r.data_.values()),o;!(o=i()).done;){var a=o.value;r.delete(a)}})})},t.forEach=function(r,i){for(var o=Wr(this),a;!(a=o()).done;){var l=a.value;r.call(i,l,l,this)}},t.add=function(r){var i=this;if(this.atom_,bt(this)){var o=Et(this,{type:Tn,object:this,newValue:r});if(!o)return this}if(!this.has(r)){on(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var a=!1,l=zt(this),s=l||a?{observableKind:"set",debugObjectName:this.name_,type:Tn,object:this,newValue:r}:null;l&&Ut(this,s)}return this},t.delete=function(r){var i=this;if(bt(this)){var o=Et(this,{type:Ol,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var a=!1,l=zt(this),s=l||a?{observableKind:"set",debugObjectName:this.name_,type:Ol,object:this,oldValue:r}:null;return on(function(){i.atom_.reportChanged(),i.data_.delete(r)}),l&&Ut(this,s),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=0,i=Array.from(this.keys()),o=Array.from(this.values());return yo({next:function(){var l=r;return r+=1,lXs){for(var t=Xs;t=0&&n++;break}e=gp(e),t=gp(t);var l=a==="[object Array]";if(!l){if(typeof e!="object"||typeof t!="object")return!1;var s=e.constructor,u=t.constructor;if(s!==u&&!(Ht(s)&&s instanceof s&&Ht(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var h=r.length;h--;)if(r[h]===e)return i[h]===t;if(r.push(e),i.push(t),l){if(h=e.length,h!==t.length)return!1;for(;h--;)if(!oc(e[h],t[h],n-1,r,i))return!1}else{var p=Object.keys(e),c;if(h=p.length,Object.keys(t).length!==h)return!1;for(;h--;)if(c=p[h],!(fn(t,c)&&oc(e[c],t[c],n-1,r,i)))return!1}return r.pop(),i.pop(),!0}function gp(e){return Vo(e)?e.slice():Si(e)||qn(e)||Ro(e)||Or(e)?Array.from(e.entries()):e}function yo(e){return e[Symbol.iterator]=SS,e}function SS(){return this}["Symbol","Map","Set"].forEach(function(e){var t=md();typeof t[e]>"u"&&Z("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Fw,extras:{getDebugName:ic},$mobx:W});if(!b.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!lS)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function OS(e){e()}function CS(e){e||(e=OS),Gl({reactionScheduler:e})}function xS(e){return Jw(e)}var bS=1e4,ES=1e4,MS=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=bS),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,a){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(a))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,ES))}}),e}(),AS=typeof FinalizationRegistry<"u"?FinalizationRegistry:MS,ac=new AS(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),vp=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};function yp(e){return"observer".concat(e)}var kS=function(){function e(){}return e}();function TS(){return new kS}function NS(e,t){t===void 0&&(t="observed");var n=vp(Se.useState(TS),1),r=n[0],i=vp(Se.useState(),2),o=i[1],a=function(){return o([])},l=Se.useRef(null);l.current||(l.current={reaction:null,mounted:!1,changedBeforeMount:!1});var s=l.current;s.reaction||(s.reaction=new hi(yp(t),function(){s.mounted?a():s.changedBeforeMount=!0}),ac.register(r,s,s)),Se.useDebugValue(s.reaction,xS),Se.useEffect(function(){return ac.unregister(s),s.mounted=!0,s.reaction?s.changedBeforeMount&&(s.changedBeforeMount=!1,a()):(s.reaction=new hi(yp(t),function(){a()}),a()),function(){s.reaction.dispose(),s.reaction=null,s.mounted=!1,s.changedBeforeMount=!1}},[]);var u,h;if(s.reaction.track(function(){try{u=e()}catch(p){h=p}}),h)throw h;return u}var Bv=typeof Symbol=="function"&&Symbol.for,_p=Bv?Symbol.for("react.forward_ref"):typeof b.forwardRef=="function"&&b.forwardRef(function(e){return null}).$$typeof,wp=Bv?Symbol.for("react.memo"):typeof b.memo=="function"&&b.memo(function(e){return null}).$$typeof;function PS(e,t){var n;if(wp&&e.$$typeof===wp)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(n=void 0)!==null&&n!==void 0?n:!1,i=e,o=e.displayName||e.name;if(_p&&e.$$typeof===_p&&(r=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a=function(l,s){return NS(function(){return i(l,s)},o)};return o!==""&&(a.displayName=o),e.contextTypes&&(a.contextTypes=e.contextTypes),r&&(a=b.forwardRef(a)),a=b.memo(a),IS(e,a),a}var jS={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function IS(e,t){Object.keys(e).forEach(function(n){jS[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var qs;CS(Po.unstable_batchedUpdates);qs=ac.finalizeAllImmediately;var Sp=0;function RS(e){if(typeof Symbol=="function")return Symbol(e);var t="__$mobx-react "+e+" ("+Sp+")";return Sp++,t}var Zs={};function Hn(e){return Zs[e]||(Zs[e]=RS(e)),Zs[e]}function Fv(e,t){if(Op(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i2?r-2:0),o=2;o {}` or `render = function() {}` is not supported.")}return t.render=function(){return this.render=$S.call(this,r),this.render()},Ep(t,"componentDidMount",function(){this[lc]=!1,this.render[ei]||b.Component.prototype.forceUpdate.call(this)}),Ep(t,"componentWillUnmount",function(){var o=this.render[ei];if(o)o.dispose(),this.render[ei]=null;else{var a=Ua(this);console.warn("The reactive render of an observer class component ("+a+`) was overridden after MobX attached. This may result in a memory leak if the overridden reactive render was not properly disposed.`)}this[lc]=!0}),e}function Ua(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function $S(e){var t=this;an(this,xl,!1),an(this,za,!1);var n=Ua(this),r=e.bind(this),i=!1,o=function(){var s=new hi(n+".render()",function(){if(!i&&(i=!0,t[lc]!==!0)){var u=!0;try{an(t,za,!0),t[xl]||b.Component.prototype.forceUpdate.call(t),u=!1}finally{an(t,za,!1),u&&(s.dispose(),t.render[ei]=null)}}});return s.reactComponent=t,s};function a(){var l;i=!1;var s=(l=a[ei])!=null?l:a[ei]=o(),u=void 0,h=void 0;if(s.track(function(){try{h=ov(!1,r)}catch(p){u=p}}),u)throw u;return h}return a}function Ap(e,t){return this.state!==t?!0:!Fv(this.props,e)}function Js(e,t){var n=Hn("reactProp_"+t+"_valueHolder"),r=Hn("reactProp_"+t+"_atomHolder");function i(){return this[r]||an(this,r,yd("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var a=!1;return Jr&&Fn&&(a=Jr(!0)),i.call(this).reportObserved(),Jr&&Fn&&Fn(a),this[n]},set:function(a){!this[za]&&!Fv(this[n],a)?(an(this,n,a),an(this,xl,!0),i.call(this).reportChanged(),an(this,xl,!1)):an(this,n,a)}})}function Wv(e){return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(b.Component,e)||Object.prototype.isPrototypeOf.call(b.PureComponent,e)?LS(e):PS(e)}if(!b.Component)throw new Error("mobx-react requires React to be available");if(!Ie)throw new Error("mobx-react requires mobx to be available");const BS=e=>(e=e||{},Object.entries(e).reduce((n,r)=>{let[i,o]=r;o=o||{};const a=Object.entries(o).reduce((l,s)=>({...l,...zS(s)}),{});return{...n,[i]:a}},{})),FS=e=>e.replace(/-(\w|$)/g,(t,n)=>n.toUpperCase()),zS=e=>{const[t,n]=e;return{[FS(t)]:n}};function US(e,t){if(!t)return e;const n=e.indexOf("?")>-1?"&":"?",r=new URLSearchParams(t);return r?`${e}${n}${r}`:e}let Vv=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e}({});const wa="Something went wrong.",WS={"Content-Type":"application/json"};async function VS(e){var c;let{url:t,method:n=Vv.GET,authToken:r,headers:i,toJson:o=!0,throwError:a=!1,useDefaultHeaders:l=!0,queryParams:s,...u}=e;const h={method:n,...r&&{credentials:"include"},headers:{...l&&WS,...r&&{Authorization:r},...i},...u};let p;try{if(p=await(globalThis==null?void 0:globalThis.fetch(US(t,s),{...h})),p.ok&&p.status>=200&&p.status<300){let y;return o&&p.status!==204&&((c=p.headers.get("Content-type"))!=null&&c.includes("json"))&&(y=await p.json()),{data:y,error:void 0,response:p}}}catch(y){if(a)throw y||new Error(wa);return{data:void 0,error:y||wa,response:p}}if(a)throw new Error(wa);return{data:void 0,error:wa,response:p}}const Hv=1e3,HS=2*Hv,KS=30*Hv,GS=5,eu=e=>Kv(...e.reverse())(),YS=e=>()=>t=>e.forEach(n=>n(t)),QS=function(e){let{debounceTime:t=HS,timeout:n=KS,maxBufferCount:r=GS}=e===void 0?{}:e;return function(i){let o,a=null;const l=[],s=function(){a=null,i(l.splice(0))};return u=>{clearInterval(o),l.push(u),a=a||Date.now(),(l.length>=r?s:()=>o=setTimeout(s,Math.max(Math.min(t,a+n-Date.now()))))()}}};function Kv(){for(var e=arguments.length,t=new Array(e),n=0;no=>i(r(o)))}function kp(e,t){return n=>(n[e]=t,n)}function XS(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r{e(...a),i=null},t)}}globalThis!=null&&globalThis.notifyServerThrottled||(globalThis.notifyServerThrottled=ZS(eO,3e4,{leading:!1}));globalThis!=null&&globalThis.evaluatedFlags||(globalThis.evaluatedFlags=new Set);function Tp(e,t){return parseInt(String(bd(e,t)),10)}function bd(e,t){return Yv(e,t,globalThis.commonProps)}function Gv(e,t){return t===void 0&&(t=!1),bd("featureFlag.fromCommonProps.enabled",!1)||(globalThis.evaluatedFlags.add(e),globalThis.notifyServerThrottled()),Yv(e,t,JS())}function Yv(e,t,n){n===void 0&&(n=globalThis.commonProps);const r=n||globalThis.commonProps||globalThis.rtCommonProps||{};return r[e]===void 0?t:r[e]}function JS(){let e;if(window._flags)e=window._flags;else try{e=window.parent._flags}catch{e={}}return e}async function eO(){if(qS())return;const e=Array.from(globalThis.evaluatedFlags);if(globalThis.evaluatedFlags.clear(),!!e.length)try{await VS({url:"/api/uis/flags/notify",method:Vv.POST,body:JSON.stringify(e),keepalive:!0})}catch(t){console.warn(`Couldn't send flags evaluation (flags: ${e}):`,t)}}const Qv=()=>{},Sa=(e,t)=>t?{[e]:t}:{},Np="application/json",tO="version",Pp="/_dm/s/rt/actions/logs",nO=Gv("sentry.report.on.client.logs.enabled"),rO=function(e){return["getHours","getMinutes","getSeconds"].map(t=>new Date(e)[t]().toString().padStart(2,"0")).join(":")},Xv=e=>typeof e=="string"?e:["message","msg","text","error","desc","description","dataString"].reduce((t,n)=>{const r=e[n];return t||(typeof r=="string"?r:null)},null),iO=e=>t=>{let{logLevel:n,dataString:r}=t;return e({data:r,level:n})},oO=e=>t=>{var n,r;return e(Object.assign(t,{userAgent:(n=window==null?void 0:window.navigator)==null?void 0:n.userAgent,url:(r=window==null?void 0:window.location)==null?void 0:r.href,timestamp:Date.now()}))},jp=e=>{const t=n=>[Oe.TRACE,Oe.DEBUG,Oe.INFO,Oe.WARN,Oe.ERROR].indexOf(n);return n=>r=>{let{level:i,...o}=r;return t(i)>=t(e)&&n({level:i,...o})}},aO=e=>t=>{let{data:n,data:{_skipJournal:r=!1}={},...i}=t;(r?Qv:e)({data:n,...i})},lO=function(){const e=[{test:t=>t instanceof Error,format:t=>["message","stack","code","cause"].reduce((n,r)=>({...Sa(r,t[r]),...n}),{})},{test:t=>["string","number"].includes(typeof t),format:t=>({message:t})},{test:()=>!0,format:t=>Object.entries(t).reduce((n,r)=>{let[i,o]=r;return{[i]:["number","string"].includes(typeof o)?o:JSON.stringify(o),...n}},{})}];return t=>n=>{t({logs:n.map(r=>{let{data:i,level:o,timestamp:a,userAgent:l,url:s,version:u,environment:h}=r;const p=Xv(i);return{priority:o.toUpperCase(),...Sa("log",p),fields:{_ts:a,_url:s,_userAgent:l,...Sa("_ver",u),...Sa("_env",h),...e.find(c=>{let{test:y}=c;return y(i)}).format(i)}}})})}}(),sO=function(e){e===void 0&&(e="");const[t,n]=(e.match(/^(\w+)_([0-9]+)$/)||[]).slice(1);return r=>Kv(...[t&&kp("environment",t),n&&kp("version",Number(n)),r].filter(Boolean))}((e=>e(e,window))((e,t)=>t&&(t[tO]||(t.parent!==t?e(e,t.parent):"")))),uO=()=>e=>{let{text:t,level:n}=e;((console==null?void 0:console[n])??console.log)(t)},cO=e=>t=>{let{data:n,level:r,timestamp:i}=t;return e({level:r,text:`[${rO(i)}] ${Xv(n)||'Cannot find a description for the message sent. See "fields" for more information.'}`})},dO=e=>t=>{var n;return navigator.sendBeacon?navigator.sendBeacon(Pp,new Blob([JSON.stringify(t)],{type:Np})):(n=globalThis==null?void 0:globalThis.fetch)==null||n.call(globalThis,Pp,{headers:{"content-type":Np},credentials:"omit",cache:"no-store",method:"POST",body:JSON.stringify(t)}),e(t)},fO=e=>t=>{if(nO&&(window!=null&&window.Sentry)){const{logs:n}=t;n.length&&n.forEach(r=>{if(r.priority==="ERROR"){const{log:i}=r,o=new Error(`[FROM LOGGER] - ${i}`);window.Sentry.captureException(o)}})}return e==null?void 0:e(t)},pO=e=>t=>{var n;return((n=bd("server.for.resources"))!=null&&n.includes("localhost")?Qv:e)(t)},hO=1e3,mO=.5*hO,gO=5,vO="common.log.debounceDelay",yO="common.log.batchLogLimit",Oe={TRACE:"trace",DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"},qv=XS(eu([iO,oO,sO,YS([eu([jp(Oe.TRACE),cO,uO]),eu([pO,aO,jp(Oe.TRACE),QS({debounceTime:Tp(vO)||mO,maxBufferCount:Tp(yO)||gO}),lO,dO,fO])])])),_O=e=>t=>qv({logLevel:e,dataString:t}),[Zv,Jv,e0,t0,n0]=[Oe.TRACE,Oe.DEBUG,Oe.INFO,Oe.WARN,Oe.ERROR].map(_O);Object.assign(qv,{[Oe.TRACE]:Zv,[Oe.DEBUG]:Jv,[Oe.INFO]:e0,[Oe.WARN]:t0,[Oe.ERROR]:n0});const wO={[Oe.TRACE]:Zv,[Oe.DEBUG]:Jv,[Oe.INFO]:e0,[Oe.WARN]:t0,[Oe.ERROR]:n0};function SO(e,t,n){if(!e)return"";const r=e,i=OO();i&&(i[r]||i[e]);let o=i&&(i[r]||i[e])||e;return t&&Object.keys(t).forEach(a=>{o=o.replace(new RegExp(`{${a}}`,"g"),t[a])}),o}function OO(){var e;return window.dmStr||((e=window.parent)==null?void 0:e.dmStr)}globalThis._abtests=globalThis._abtests||{};const et={str:(e,t)=>SO(e,t),getAllStringsForCurrentLang:()=>{throw new Error("not implemented")}};var r0=(e=>(e.ONE_TIME="ONE_TIME",e.SUBSCRIPTION="SUBSCRIPTION",e))(r0||{});function CO(e){return typeof e=="string"?e:{url:window.location.href,...e}}const Te=new Proxy(wO,{get:(e,t)=>n=>{e[t](CO(n))}}),_o="ONE_TIME_ONLY";var Ed=(e=>(e.SNIPCART_READY="snipcart.ready",e.SNIPCART_INITIALIZED="snipcart.initialized",e.ITEM_ADDED="item.added",e.ITEM_UPDATED="item.updated",e.ITEM_REMOVED="item.removed",e.CART_CONFIRMED="cart.confirmed",e))(Ed||{});const xO=["snipcart.initialized","item.added","item.updated","item.removed","cart.confirmed"],bO=()=>{const[e,t]=b.useState(0);b.useEffect(()=>{const r=[];if(typeof window>"u")return;window.Snipcart?(i(),o()):window.document.addEventListener("snipcart.ready",i);function i(){try{xO.forEach(a=>{var s;const l=(s=window.Snipcart)==null?void 0:s.events.on(a,o);l&&r.push(l)})}catch(a){Te.error("cannot bind snipcart listeners: "+a)}}function o(){var a;try{const l=((a=window.Snipcart)==null?void 0:a.store.getState().cart.items.count)??0;t(l)}catch(l){Te.error("cannot update cart count: "+l),t(-1)}}return()=>{r.forEach(a=>{a&&typeof a=="function"&&a()})}},[]);const n=b.useCallback(()=>{var r;(r=window.Snipcart)==null||r.api.theme.cart.open()},[]);return{itemsCount:e,openSnipcart:n}};function tu(e){try{const t=typeof e=="string"?e:JSON.stringify(e);if(window.TextEncoder){const n=new TextEncoder().encode(t),r=String.fromCharCode(...n);return btoa(r)}return btoa(t)}catch(t){return Te.warn({err:t,variation:e,tags:["encodeUniqueKey"]}),"{}"}}function i0(e){try{return JSON.parse(new TextDecoder().decode(Uint8Array.from(atob(e),t=>t.charCodeAt(0)))||"{}")}catch{return{}}}function EO(e){window.document.addEventListener(Ed.SNIPCART_READY,e)}function MO(e){const{purchase_options:t=[],payment_plans:n=[]}=e;switch(!0){case t.length===2:return[{id:_o,name:et.str("ui.runtimessr.priceOptions.option.oneTimeOnly"),discount_percentage:0,plan_price:e.price,plan_displayed_price:e.displayed_price,tax_percentage:e.tax_percentage},...n];case t.includes(r0.SUBSCRIPTION):return n;default:return[]}}function AO(e){return{...e||{},options:((e==null?void 0:e.options)||[]).reduce((t,n)=>({...t,[n.name]:n.choices.split(",").map(r=>({label:r,value:r}))}),{})}}Gl({isolateGlobalState:!0});function Ip(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function sc(e,t){const n=new Set(Object.keys({...e,...t})),r={};return n.forEach(i=>{const o=e[i],a=t[i];Ip(o)&&Ip(a)?r[i]=sc(o,a):r[i]=a??o}),r}const kO=e=>{var r,i;const t=(r=globalThis==null?void 0:globalThis.document)==null?void 0:r.getElementById(e),n=(i=t==null?void 0:t.dataset)==null?void 0:i.model;return i0(n)};class TO{constructor(t={},n={}){te(this,"_legacyWidget",!0);te(this,"_model");te(this,"_props");te(this,"_initialProps");te(this,"getInitialJSProps",()=>Hr(this._initialProps));te(this,"getJSProps",()=>Hr(this._props));this._model=t,this._props=n,Yl(this)}get model(){if(!this._legacyWidget){const t="model accessed in non legacy widget";console.error(t),Te.debug({msg:t})}return this._model}get modelForPersistance(){return Hr(this.model)}get props(){if(this._legacyWidget){const t=this._props;return t._styles=BS(this.model._styles),t}return this._props}setProps(t){this._props=t}jsModel(){return Hr(this._model)}mergeProps(t){this._props=sc({...this.props},{...t})}clearProps(){this._props={}}mergeModel(t){this._model=sc({...this._model},{...t})}clearModel(){this._model={}}clearModelStyle(){this._model={...this._model,_styles:{}}}set legacyWidget(t){this._legacyWidget=t}setInitialProps(t,n){this._initialProps=t,this.setProps(t),Bg({type:"widget-props-store-initial-props-updated",widgetId:n})}}class NO{constructor(){te(this,"widgetsStoresMap",new Map);te(this,"getWidgetData",this.getWidgetStore)}getWidgetStore(t){let n=this.widgetsStoresMap.get(t);if(!n){const r=kO(t);n=new TO(r),this.widgetsStoresMap.set(t,n)}return n}}globalThis.propsStore=globalThis.propsStore||new NO;const o0=globalThis.propsStore;var Oh;const a0={isInEditor:(Oh=globalThis==null?void 0:globalThis.Parameters)==null?void 0:Oh.isInEditor},l0=Se.createContext(a0);function Md(){return Se.useContext(l0)}function PO({children:e}){const t=jO();return d.jsx(l0.Provider,{value:t,children:e})}function jO(){const[e,t]=Se.useState(a0);return Se.useEffect(()=>{var o;if(!((o=window==null?void 0:window.Parameters)==null?void 0:o.isInEditor))return;let r=null;const i=setInterval(()=>{var l,s,u;const a=(u=(s=(l=window.top)==null?void 0:l.$)==null?void 0:s.Editor)==null?void 0:u.uiStateListener;a&&(clearInterval(i),r=a(t))},1e3);return()=>{r==null||r()}},[]),e}Gl({isolateGlobalState:!0});function IO({Component:e,widgetId:t}){const n=o0.getWidgetStore(t);b.useEffect(()=>{Bg({type:"widget-rendered-following-props-change",widgetId:t})},[n.props]);const{key:r,...i}=Hr(n.props);return d.jsx(PO,{children:d.jsx(e,{widgetId:t,...i},r)})}const s0=Wv(IO),Rp="runtime.ssr.",Zn={getBoolean:(e,t=!1)=>{if(!e.startsWith(Rp))throw new Error(`Flag must contains ${Rp}`);return Gv(e,t)},getServiceFlags:()=>{throw new Error("not implemented")},initServiceFlags:async()=>{throw new Error("not implemented")}};var qe=(e=>(e.Slider="SSR_IMAGE_SLIDER",e.Cart="SSR_CART",e.AddToCart="SSR_ADD_TO_CART",e.OptionsVariations="SSR_OPTIONS_VARIATIONS",e.Breadcrumbs="SSR_BREADCRUMBS",e.CollectionSearch="SSR_COLLECTION_SEARCH",e.RuntimeFilterSort="SSR_FILTER_SORT",e.ProductPrice="SSR_PRODUCT_PRICE",e.ProductPriceOptions="SSR_PRODUCT_PRICE_OPTIONS",e.Accordion="SSR_ACCORDION",e.CalBooking="SSR_CAL_BOOKING",e.ProductCustomizations="SSR_PRODUCT_CUSTOMIZATIONS",e))(qe||{}),u0={exports:{}},se={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ad=Symbol.for("react.element"),kd=Symbol.for("react.portal"),Ql=Symbol.for("react.fragment"),Xl=Symbol.for("react.strict_mode"),ql=Symbol.for("react.profiler"),Zl=Symbol.for("react.provider"),Jl=Symbol.for("react.context"),RO=Symbol.for("react.server_context"),es=Symbol.for("react.forward_ref"),ts=Symbol.for("react.suspense"),ns=Symbol.for("react.suspense_list"),rs=Symbol.for("react.memo"),is=Symbol.for("react.lazy"),DO=Symbol.for("react.offscreen"),c0;c0=Symbol.for("react.module.reference");function Pt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ad:switch(e=e.type,e){case Ql:case ql:case Xl:case ts:case ns:return e;default:switch(e=e&&e.$$typeof,e){case RO:case Jl:case es:case is:case rs:case Zl:return e;default:return t}}case kd:return t}}}se.ContextConsumer=Jl;se.ContextProvider=Zl;se.Element=Ad;se.ForwardRef=es;se.Fragment=Ql;se.Lazy=is;se.Memo=rs;se.Portal=kd;se.Profiler=ql;se.StrictMode=Xl;se.Suspense=ts;se.SuspenseList=ns;se.isAsyncMode=function(){return!1};se.isConcurrentMode=function(){return!1};se.isContextConsumer=function(e){return Pt(e)===Jl};se.isContextProvider=function(e){return Pt(e)===Zl};se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ad};se.isForwardRef=function(e){return Pt(e)===es};se.isFragment=function(e){return Pt(e)===Ql};se.isLazy=function(e){return Pt(e)===is};se.isMemo=function(e){return Pt(e)===rs};se.isPortal=function(e){return Pt(e)===kd};se.isProfiler=function(e){return Pt(e)===ql};se.isStrictMode=function(e){return Pt(e)===Xl};se.isSuspense=function(e){return Pt(e)===ts};se.isSuspenseList=function(e){return Pt(e)===ns};se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ql||e===ql||e===Xl||e===ts||e===ns||e===DO||typeof e=="object"&&e!==null&&(e.$$typeof===is||e.$$typeof===rs||e.$$typeof===Zl||e.$$typeof===Jl||e.$$typeof===es||e.$$typeof===c0||e.getModuleId!==void 0)};se.typeOf=Pt;u0.exports=se;var d0=u0.exports;function LO(e){function t(j,R,D,U,O){for(var Y=0,I=0,_e=0,re=0,ae,H,$e=0,rt=0,X,Ke=X=ae=0,ie=0,Be=0,Ci=0,Fe=0,qo=D.length,xi=qo-1,jt,V="",Ce="",ws="",Ss="",On;ieae)&&(Fe=(V=V.replace(" ",":")).length),0U&&(U=(R=R.trim()).charCodeAt(0)),U){case 38:return R.replace(v,"$1"+j.trim());case 58:return j.trim()+R.replace(v,"$1"+j.trim());default:if(0<1*D&&0I.charCodeAt(8))break;case 115:O=O.replace(I,"-webkit-"+I)+";"+O;break;case 207:case 102:O=O.replace(I,"-webkit-"+(102D.charCodeAt(0)&&(D=D.trim()),ne=D,D=[ne],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var rC=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;n>=a;)(a<<=1)<0&&Go(16,""+n);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var l=o;l=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),a=o+i,l=o;l=Xi&&(Xi=t+1),Wa.set(e,t),El.set(t,e)},aC="style["+mi+'][data-styled-version="5.3.11"]',lC=new RegExp("^"+mi+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),sC=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;u--){var h=s[u];if(h&&h.nodeType===1&&h.hasAttribute(mi))return h}}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(mi,"active"),r.setAttribute("data-styled-version","5.3.11");var a=cC();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},dC=function(){function e(n){var r=this.element=g0(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,l=o.length;a=0){var i=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(p+=c+",")}),o+=""+u+h+'{content:"'+p+`"}/*!sc*/ `}}}return o}(this)},e}(),mC=/(a)(d)/gi,Wp=function(e){return String.fromCharCode(e+(e>25?39:97))};function cc(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Wp(t%52)+n;return(Wp(t%52)+n).replace(mC,"$1-$2")}var Kr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},y0=function(e){return Kr(5381,e)};function gC(e){for(var t=0;t>>0);if(!n.hasNameForId(i,l)){var s=r(a,"."+l,void 0,i);n.insertRules(i,l,s)}o.push(l),this.staticRulesId=l}else{for(var u=this.rules.length,h=Kr(this.baseHash,r.hash),p="",c=0;c>>0);if(!n.hasNameForId(i,x)){var v=r(p,"."+x,void 0,i);n.insertRules(i,x,v)}o.push(x)}}return o.join(" ")},e}(),_C=/^\s*\/\/.*$/gm,wC=[":","[",".","#"];function SC(e){var t,n,r,i,o=zn,a=o.options,l=a===void 0?zn:a,s=o.plugins,u=s===void 0?bl:s,h=new LO(l),p=[],c=function(_){function x(v){if(v)try{_(v+"}")}catch{}}return function(v,m,g,w,C,E,k,A,$,B){switch(v){case 1:if($===0&&m.charCodeAt(0)===64)return _(m+";"),"";break;case 2:if(A===0)return m+"/*|*/";break;case 3:switch(A){case 102:case 112:return _(g[0]+m),"";default:return m+(B===0?"/*|*/":"")}case-2:m.split("/*|*/}").forEach(x)}}}(function(_){p.push(_)}),y=function(_,x,v){return x===0&&wC.indexOf(v[n.length])!==-1||v.match(i)?_:"."+t};function S(_,x,v,m){m===void 0&&(m="&");var g=_.replace(_C,""),w=x&&v?v+" "+x+" { "+g+" }":g;return t=m,n=x,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),h(v||!x?"":x,w)}return h.use([].concat(u,[function(_,x,v){_===2&&v.length&&v[0].lastIndexOf(n)>0&&(v[0]=v[0].replace(r,y))},c,function(_){if(_===-2){var x=p;return p=[],x}}])),S.hash=u.length?u.reduce(function(_,x){return x.name||Go(15),Kr(_,x.name)},5381).toString():"",S}var _0=Se.createContext();_0.Consumer;var w0=Se.createContext(),OC=(w0.Consumer,new v0),dc=SC();function CC(){return b.useContext(_0)||OC}function xC(){return b.useContext(w0)||dc}var bC=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=dc);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.toString=function(){return Go(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=dc),this.name+t.hash},e}(),EC=/([A-Z])/,MC=/([A-Z])/g,AC=/^ms-/,kC=function(e){return"-"+e.toLowerCase()};function Vp(e){return EC.test(e)?e.replace(MC,kC).replace(AC,"-ms-"):e}var Hp=function(e){return e==null||e===!1||e===""};function gi(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,l=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,jC=/(^-|-$)/g;function nu(e){return e.replace(PC,"-").replace(jC,"")}var IC=function(e){return cc(y0(e)>>>0)};function Ca(e){return typeof e=="string"&&!0}var fc=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},RC=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function DC(e,t,n){var r=e[n];fc(t)&&fc(r)?S0(r,t):e[n]=t}function S0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(B[A]=E[A]);return B}(t,["componentId"]),C=g&&g+"-"+(Ca(m)?m:nu(zp(m)));return C0(m,cn({},w,{attrs:c,componentId:C}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(m){this._foldedDefaultProps=r?S0({},e.defaultProps,m):m}}),Object.defineProperty(S,"toString",{value:function(){return"."+S.styledComponentId}}),i&&tC(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var pe=function(e){return function t(n,r,i){if(i===void 0&&(i=zn),!d0.isValidElementType(r))return Go(1,String(r));var o=function(){return n(r,i,TC.apply(void 0,arguments))};return o.withConfig=function(a){return t(n,r,cn({},i,{},a))},o.attrs=function(a){return t(n,r,cn({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(C0,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){pe[e]=pe(e)});let f=function(e){return e.COMMON="common",e.DESKTOP="desktop",e.TABLET="tablet",e.TABLET_IMPLICIT="tablet_implicit",e.MOBILE="mobile",e.MOBILE_IMPLICIT="mobile_implicit",e}({});const LC={[f.COMMON]:{},[f.DESKTOP]:{minWidth:1025},[f.TABLET]:{maxWidth:1024,minWidth:768},[f.MOBILE]:{maxWidth:767}};function Gp(e){return e&&typeof e=="object"&&!Array.isArray(e)}function x0(e,t){const n={...e};return Object.keys(t).forEach(r=>{Gp(e[r])&&Gp(t[r])?n[r]=x0(e[r],t[r]):n[r]=t[r]}),n}const Ld=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(void 0,r)},t)}};function b0(e){return e==null?!0:Object.keys(e).length===0}function $C(e,t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const _t={get isEditor(){var e,t,n;try{return(n=(t=(e=window.$)==null?void 0:e.DM)==null?void 0:t.insideEditor)==null?void 0:n.call(t)}catch{return!1}},get isServer(){return!1},get isBrowser(){return!0}};function BC(e){var t={};return n=>n in t?t[n]:t[n]=e(n)}function FC(e){return e.replace(/-./g,t=>t[1].toUpperCase())}const zC=BC(FC);function E0(e){const t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="object"&&r!=null?t[n]=E0(r):t[zC(n)]=r}),t}const UC=E0;function WC(e,t){if(!t)return e;const n=UC(t);return x0(e,n)}function Wt(e){return(Array.isArray(e)?e:[e]).flat(1/0).reduce(WC,{})}function De(e={},t){const{pseudoSelector:n,innerSelector:r}=t,i={};return Object.entries(e).forEach(([o,a])=>{let l;n?(l={[`&:${n} ${r||""}`]:a},_t.isEditor&&(l[`&.${n} ${r||""}`]=a)):r?l={[r]:a}:l={},i[o]=l}),i}function VC(e,t){const n={};return Object.entries(e).forEach(([r,i])=>{n[r]=Object.entries(i).reduce((o,[a,l])=>(t.has(a)&&(o[a]=l),o),{})}),n}const HC="#dm#dm#dm &&";function KC(e,t){return`${e==="maxWidth"?"max-width":"min-width"}: ${t}px`}function GC(e,t){const n=LC[e];let r;return!n.maxWidth&&!n.minWidth?r="all":r=Object.entries(n).map(([i,o])=>`(${KC(i,o)})`).join(" and "),{[`@media ${r}`]:t}}const YC={main:f.MOBILE,implicit:f.MOBILE_IMPLICIT},QC={main:f.TABLET,implicit:f.TABLET_IMPLICIT};function Yp(e={},t){const n=e[t.implicit],r=e[t.main];return(n||r)&&{...n,...r}}const XC=(e,t)=>Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]));function qC(e={},t=!1){const n={...XC(e,[f.COMMON,f.DESKTOP]),[f.TABLET]:Yp(e,QC),[f.MOBILE]:Yp(e,YC)};let r={};return Object.entries(n).forEach(([i,o])=>{if(o){const a=GC(i,o);Object.assign(r,a)}}),t?{[HC]:r}:r}function wn(e,t){const n=Wt(e||[]);return qC(n,t)}const ZC=pe.video(({styles:e})=>wn([JC,e],!0)),JC={[f.COMMON]:{margin:"revert"}},Cr=pe.div(({styles:e})=>wn(e||[])),T=Cr,Nt=Cr.withComponent("span"),So=Cr.withComponent("img"),$d=Cr.withComponent("label"),ex=Cr.withComponent("li"),tx=Cr.withComponent("ul"),Oo=Cr.withComponent("svg");function M0(e,t=!1){return pe.div(({styles:r})=>wn(r,t)).withComponent(e)}var J=(e=>(e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.paragraph="p",e.span="span",e.div="div",e))(J||{});function nx(e){return J[e]}const A0=pe.div(e=>wn(e.styles,!0)),K=({tag:e,domAttrs:t,grabId:n,...r})=>d.jsx(A0,{as:e,"data-auto":n,"data-grab":n,...t,...r});K.selector=A0;const Bd=({containerStyles:e})=>_t.isEditor?d.jsxs(T,{styles:[rx,e],children:[d.jsx(So,{src:"https://static-cdn.multiscreensite.com/react-widgets/placeholder.svg",alt:"placeholder"}),d.jsxs(T,{styles:ix,children:[d.jsx(So,{src:"https://static-cdn.multiscreensite.com/react-widgets/i_Plus.svg",alt:"plus"}),d.jsx(K,{styles:ox,children:et.str("placeholder.add-content")})]})]}):null,rx={[f.COMMON]:{width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#F5F5F5"}},ix={[f.COMMON]:{display:"flex",alignItems:"center",color:"#616C79"}},ox={[f.COMMON]:{fontFamily:"Source Sans Pro",fontWeight:400,fontSize:"14px",lineHeight:"22px",color:"#616C79",paddingInlineStart:"4px"}},k0=({linkFunctionalityDomAttributes:e,grabId:t,classNames:n,...r})=>d.jsx(ax,{...e,"data-auto":t,"data-grab":t,className:n==null?void 0:n.join(" "),...r}),ax=pe.a.withConfig({shouldForwardProp:e=>e!=="styles"})(({styles:e})=>wn(e,!0)),lx=M0("span",!0),pc=({buttonContent:e,styles:t,linkFunctionalityDomAttributes:n,normalizeStyles:r=!0,iconClass:i,showHoverEffect:o,rootDataAttributes:a,dataGrab:l,isDisabled:s=!1,className:u})=>{const{text:h}=e,p=r?cx:{};return d.jsxs(k0,{styles:[p.root,t.root,s?t.rootDisabled:[De(Wt(t.rootHover),{pseudoSelector:"hover"}),De(Wt(t.rootHoverText),{pseudoSelector:"hover",innerSelector:K.selector}),De(Wt(t.rootHoverIcon),{pseudoSelector:"hover",innerSelector:'[data-grab="button-icon"]'})]],linkFunctionalityDomAttributes:n,classNames:["dmWidget",t.buttonTypeCSSClass??"",o?"hover":"",s?"data-disabled":"",u||""],grabId:l||"button-root","data-disabled":s,...a,children:[i&&d.jsx(lx,{styles:[t.icon,s&&t.iconDisabled],"data-grab":"button-icon",className:`icon ${i}`}),d.jsx(K,{styles:[p.text,dx,t.text,s&&t.disabledText],grabId:"button-text",domAttrs:{className:"text"},tag:J.span,children:h})]})},sx={common:{maxWidth:"revert",whiteSpace:"revert",display:"inline-block"}},ux={common:{"&:after":{display:"none"},display:"flex",alignItems:"center",justifyContent:"center"}},cx={text:sx,root:ux},dx={common:{flexGrow:"1"}},fx=e=>{const t={...e.styles,root:[e.styles.root,{common:{display:"none"}}]};return d.jsxs(d.Fragment,{children:[d.jsx(pc,{...e}),d.jsx(pc,{...e,isDisabled:!e.isDisabled,styles:t})]})};function ms(e){return _t.isEditor?d.jsx(fx,{...e}):d.jsx(pc,{...e})}const px=({styles:e,isOpen:t,arrowType:n})=>{const r=a=>{switch(a){case"arrow":default:return d.jsx(Oo,{styles:[gx,e==null?void 0:e.itemArrowSvg,t?vx:{}],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1152 1792",fill:"currentColor",children:d.jsx("path",{fill:"inherit",d:"M1075 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"})});case"leftArrow":return d.jsx(Oo,{styles:[yx,e==null?void 0:e.itemArrowSvg,t?_x:{}],xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 1792",children:d.jsx("path",{fill:"inherit",d:"M595 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"})});case"plus":return d.jsxs(T,{children:[d.jsx(T,{styles:[wx,t&&Ox]}),d.jsx(T,{styles:[Sx,t?Cx:{}]})]})}},i=o();return d.jsx(T,{styles:[hx,e==null?void 0:e.itemArrowWrapper,i],"data-grab":"accordion-item-arrow-wrapper",children:d.jsx(T,{styles:[mx,e==null?void 0:e.itemArrow],"data-grab":"accordion-item-arrow",children:r(n)})});function o(){var l,s,u,h;const a={[f.COMMON]:{},[f.DESKTOP]:{},[f.TABLET]:{},[f.MOBILE]:{}};if(e!=null&&e.itemArrowWrapper&&Array.isArray(e.itemArrowWrapper)&&e.itemArrowWrapper.length>0){const p=e.itemArrowWrapper[0];if(p&&"common"in p){const c=p.common;c&&"width"in c&&(a[f.COMMON]={height:((l=c==null?void 0:c.width)==null?void 0:l.toString())+"px"})}}if(e!=null&&e.itemArrowWrapper&&Array.isArray(e.itemArrowWrapper)&&e.itemArrowWrapper.length>1){const p=e.itemArrowWrapper[1];if(p&&"desktop"in p){const c=p.desktop;c&&"width"in c&&(a[f.DESKTOP]={height:(s=c==null?void 0:c.width)==null?void 0:s.toString()})}if(p&&"tablet"in p){const c=p.tablet;c&&"width"in c&&(a[f.TABLET]={height:(u=c==null?void 0:c.width)==null?void 0:u.toString()})}if(p&&"mobile"in p){const c=p.mobile;c&&"width"in c&&(a[f.MOBILE]={height:(h=c==null?void 0:c.width)==null?void 0:h.toString()})}}return a}},hx={[f.COMMON]:{aspectRatio:"1 / 1",width:20}},mx={[f.COMMON]:{width:"100%",height:"100%",transition:"transform 0.3s ease-in-out",display:"flex",flexDirection:"column",position:"relative"}},gx={[f.COMMON]:{transition:"all 0.5s ease-in-out",fill:"currentColor",height:"100%",width:"100%"}},vx={[f.COMMON]:{transform:"rotate(180deg)"}},yx={[f.COMMON]:{transition:"all 0.5s ease-in-out",fill:"currentColor",height:"100%",width:"100%"}},_x={[f.COMMON]:{transform:"rotate(90deg)"}},wx={[f.COMMON]:{transition:"all 0.5s ease-in-out",transform:"rotate(-90deg)",position:"absolute",backgroundColor:"currentColor",width:"10%",height:"100%",left:" 50%",marginLeft:"-5%",top:"50%",marginTop:"-50%"}},Sx={[f.COMMON]:{transition:"all 0.5s ease-in-out",transform:"rotate(-90deg)",backgroundColor:"currentColor",position:"absolute",width:"100%",height:"10%",left:"50%",marginLeft:"-50%",top:"50%",marginTop:"-5%",opacity:"1"}},Ox={[f.COMMON]:{transform:"rotate(90deg)"}},Cx={[f.COMMON]:{transform:"rotate(90deg)",opacity:0}},xx=()=>{const[e,t]=b.useState(!1);return b.useEffect(()=>t(!0),[]),e},T0=({vidSrc:e,imgSrc:t,alt:n,type:r,styles:i,lazy:o,dataGrab:a,isHidden:l=!1})=>{const s=xx();return l&&!s?d.jsx(T,{styles:i,"data-grab":a}):r==="VIDEO"?d.jsx(ZC,{"data-grab":a,src:e,poster:t,controls:!1,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,styles:i}):d.jsx(So,{"data-grab":a,src:t,alt:n,styles:i,loading:o?"lazy":void 0})},bx=({styles:e,...t})=>d.jsx(T0,{styles:[Ex,e],dataGrab:"accordion-item-media",...t}),Ex={[f.COMMON]:{width:123,borderRadius:0,borderStyle:"solid",maxWidth:"unset"},[f.MOBILE]:{maxWidth:"100%"}},N0=e=>{var E;const{onItemToggle:t,index:n,isOpen:r,styles:i,title:o,titleTag:a="h3",titleIcon:l=' ',desc:s,button:u,media:h,linkDomAttributes:p,showButton:c,arrowDirection:y,arrowType:S,hasTitleIcons:_,disableTransition:x}=e,v=b.useRef(null),m=()=>{t==null||t(n)},g=nx(a||"h3"),w=d.jsx(T,{"data-grab":"accordion-item-media-container",styles:[Lx,i==null?void 0:i.mediaContainer],children:h&&d.jsx(bx,{styles:i==null?void 0:i.media,...h})});let C={};return v.current&&(C=Ix(x?3e5:v.current.scrollHeight)),d.jsxs(ex,{styles:[Mx,i==null?void 0:i.itemContainer],"data-grab":"accordion-item-container",children:[d.jsxs(T,{styles:[kx,y==="left"&&Tx,i==null?void 0:i.itemTitleWrapper],onClick:m,tabIndex:0,onKeyDown:k=>{k.key==="Enter"&&m()},"data-grab":"accordion-item-title-wrapper",children:[o&&d.jsxs(K,{grabId:"accordion-item-title",styles:[Nx,i==null?void 0:i.itemTitle],tag:g,children:[_?d.jsx(Nt,{styles:[Ax,i==null?void 0:i.itemTitleIcon],"data-grab":"accordion-item-title-icon",dangerouslySetInnerHTML:{__html:l}}):null,d.jsx(Nt,{styles:Px,children:o})]}),d.jsx(px,{styles:i,isOpen:r,arrowType:S})]}),d.jsx(T,{children:d.jsx(T,{ref:v,styles:[jx,r?C:{}],children:d.jsxs(T,{styles:[Rx,i==null?void 0:i.itemDesc],"data-grab":"accordion-item-desc",children:[h&&w,d.jsxs(T,{styles:[Dx],children:[s&&d.jsx(K,{grabId:"accordion-item-desc-text","data-auto":"desc",styles:[De($x,{innerSelector:"p"}),i==null?void 0:i.desc],tag:J.div,domAttrs:{dangerouslySetInnerHTML:{__html:s}}}),c&&u&&d.jsx(ms,{styles:{...(i==null?void 0:i.button)??{},root:[Bx,(E=i==null?void 0:i.button)==null?void 0:E.root]},linkFunctionalityDomAttributes:p,buttonContent:u})]})]})})})]})},Mx={[f.COMMON]:{cursor:"pointer"}},Ax={[f.COMMON]:{width:"20px",aspectRatio:"1 / 1",display:"flex","& svg":{fill:"currentColor"}}},kx={[f.COMMON]:{display:"flex",gap:8,alignItems:"center",justifyContent:"space-between",padding:"16px",paddingTop:16,paddingBottom:16}},Tx={[f.COMMON]:{flexDirection:"row-reverse",justifyContent:"flex-end",gap:"12px"}},Nx={[f.COMMON]:{margin:0,display:"flex",gap:"8px",alignItems:"center",flex:1,textAlign:"start"}},Px={[f.COMMON]:{flex:1}},jx={[f.COMMON]:{overflow:"hidden",transition:"max-height 0.3s ease-out",height:"auto",maxHeight:0}};function Ix(e){return{[f.COMMON]:{maxHeight:e}}}const Rx={[f.COMMON]:{padding:"16px",paddingTop:16,paddingBottom:16,margin:0,display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:"24px",alignItems:"flex-start",flexWrap:"wrap"},[f.MOBILE]:{flexDirection:"column"}},Dx={[f.COMMON]:{display:"flex",flexDirection:"column",gap:16,textAlign:"start",flex:1}},Lx={[f.COMMON]:{}},$x={[f.COMMON]:{marginBlock:0,overflowWrap:"anywhere"}},Bx={[f.COMMON]:{width:200,paddingInlineStart:20,paddingInlineEnd:20,margin:0}},Fx={title:"Title or Question",desc:"Describe the item or answer the question so that site visitors who are interested get more information. You can emphasize this text with bullets, italics or bold, and add links.",button:{text:"Button"},showButton:!0,showMedia:!0,media:{lazy:!1,type:"IMAGE",imgSrc:"https://du-cdn.cdn-website.com/duda_website/images/home/hp_performance.png?v=17"}},zx=({styles:e,arrowDirection:t,arrowType:n,hasTitleIcons:r})=>d.jsx(d.Fragment,{children:_t.isEditor&&d.jsx(N0,{...Fx,styles:{...e,itemContainer:[e==null?void 0:e.itemContainer,{[f.COMMON]:{display:"none"}}]},arrowDirection:t,arrowType:n,hasTitleIcons:r,index:0,isOpen:!0,disableTransition:!0})}),Ux={LAYOUT_1:{arrowDirection:"right",hasTitleIcons:!1,styles:{container:{[f.COMMON]:{gap:24}},itemTitleWrapper:{[f.COMMON]:{background:"#f2f2f2"}},itemArrowWrapper:{[f.COMMON]:{borderRadius:"50%",width:32,padding:4,backgroundColor:"#000",color:"#e3e3e3"}}}},LAYOUT_2:{arrowDirection:"right",arrowType:"plus",hasTitleIcons:!1,styles:{container:{[f.COMMON]:{gap:0}},itemTitleWrapper:{[f.COMMON]:{borderBottom:"1px solid #e3e3e3"}},itemArrowWrapper:{[f.COMMON]:{padding:8,width:30}}}},LAYOUT_3:{arrowDirection:"right",arrowType:"arrow",hasTitleIcons:!1,styles:{container:{[f.COMMON]:{border:"solid 1px #e1e1e1",borderBottom:"none"}},itemTitleWrapper:{[f.COMMON]:{padding:"18px 20px",borderBottom:"solid 1px #e1e1e1"}},itemDesc:{[f.COMMON]:{borderBottom:"solid 1px #e1e1e1",background:"#f2f2f2"}}}},LAYOUT_4:{arrowDirection:"right",hasTitleIcons:!0,styles:{container:{[f.COMMON]:{gap:10}},itemTitleWrapper:{[f.COMMON]:{background:"#f2f2f2"}},itemArrowWrapper:{[f.COMMON]:{padding:8,width:40}}}},LAYOUT_5:{arrowDirection:"left",arrowType:"leftArrow",hasTitleIcons:!1,styles:{}}},Wx=({_styles:e,layout:t="LAYOUT_1",itemsData:n,firstExpanded:r,closeOthers:i,openedIndex:o,addSchemaMarkup:a,titleTag:l="h3"})=>{var _,x,v,m,g,w,C,E,k;const[s,u]=b.useState(o!==void 0?[o]:r?[0]:[]);b.useEffect(()=>{u(o!==void 0?[o]:r?[0]:[])},[o,r]);const h=A=>{let $=[...s];const B=$.indexOf(A);B===-1?$.push(A):$.splice(B,1),i&&($=$.filter(oe=>oe===A)),u($)},p=Ux[t],{styles:c}=p,y={container:[c==null?void 0:c.container,e==null?void 0:e.container],itemContainer:[c==null?void 0:c.itemContainer,e==null?void 0:e.itemContainer],itemTitleWrapper:[c==null?void 0:c.itemTitleWrapper,e==null?void 0:e.itemTitleWrapper],itemTitle:[c==null?void 0:c.itemTitle,e==null?void 0:e.itemTitle],itemTitleIcon:[c==null?void 0:c.itemTitleIcon,e==null?void 0:e.itemTitleIcon],itemArrowWrapper:[c==null?void 0:c.itemArrowWrapper,e==null?void 0:e.itemArrowWrapper],itemArrow:[c==null?void 0:c.itemArrow,e==null?void 0:e.itemArrow],itemArrowSvg:[c==null?void 0:c.itemArrowSvg,e==null?void 0:e.itemArrowSvg],itemDesc:[c==null?void 0:c.itemDesc,e==null?void 0:e.itemDesc],desc:[c==null?void 0:c.desc,e==null?void 0:e.desc],button:{root:[(_=c==null?void 0:c.button)==null?void 0:_.root,(x=e==null?void 0:e.button)==null?void 0:x.root],text:[(v=c==null?void 0:c.button)==null?void 0:v.text,(m=e==null?void 0:e.button)==null?void 0:m.text],rootHover:[(g=c==null?void 0:c.button)==null?void 0:g.rootHover,(w=e==null?void 0:e.button)==null?void 0:w.rootHover],rootHoverText:[(C=c==null?void 0:c.button)==null?void 0:C.rootHoverText,(E=e==null?void 0:e.button)==null?void 0:E.rootHoverText],buttonTypeCSSClass:(k=e==null?void 0:e.button)==null?void 0:k.buttonTypeCSSClass},mediaContainer:[c==null?void 0:c.mediaContainer,e==null?void 0:e.mediaContainer],media:[c==null?void 0:c.media,e==null?void 0:e.media]},S=b.useMemo(()=>{const A={"@context":"http://schema.org/","@type":"FAQPage",mainEntity:n.map($=>({"@type":"Question",name:$.title,acceptedAnswer:{"@type":"Answer",text:$.desc}}))};return JSON.stringify(A)},[n]);return d.jsxs(T,{"data-auto":"runtime-accordion-widget",children:[a&&n.length>0?d.jsx("script",{"data-auto":"schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:S}}):null,d.jsx(tx,{styles:[Vx,y==null?void 0:y.container],"data-grab":"accordion-container",children:n.length===0?d.jsx(Bd,{}):n.map((A,$)=>b.createElement(N0,{...A,key:`item-${$}`,styles:y,arrowDirection:p.arrowDirection,arrowType:p.arrowType,hasTitleIcons:p.hasTitleIcons,onItemToggle:h,index:$,isOpen:s.includes($),titleTag:l,disableTransition:o!==void 0}))}),d.jsx(zx,{styles:y,arrowDirection:p.arrowDirection,arrowType:p.arrowType,hasTitleIcons:p.hasTitleIcons})]})},Vx={[f.COMMON]:{listStyleType:"none",overflow:"hidden",margin:0,padding:0,display:"flex",flexDirection:"column",gap:0}},gs=()=>{const e=()=>{var r,i,o;return(o=(i=(r=globalThis.$)==null?void 0:r.DM)==null?void 0:i.insideEditor)==null?void 0:o.call(i)},t=()=>{var i,o;const r=(o=(i=globalThis.dmAPI)==null?void 0:i.getCurrentEnvironment)==null?void 0:o.call(i);return r==="preview"||r==="editor"};return{insideEditor:e,isInPreview:t,isInPreviewOrEditor:()=>e()||t()}},{isInPreviewOrEditor:Hx}=gs();function Kx(e){var n;if(!(window!=null&&window.runtime)||Hx())return;const t=()=>{Qx("view_item",e.price,Yx(e))};(n=window.Snipcart)!=null&&n.store.getState().session.settings.currency?t():EO(()=>{var r;(r=window.Snipcart)==null||r.events.on(Ed.SNIPCART_INITIALIZED,()=>{t()})})}function Gx(e){try{const t=e.selected_options_values?JSON.parse(e.selected_options_values):{};if(Object.keys(t).length==0)return e.name;const n=`${Object.values(t).join(" ")}`;return`${e.name} ${n}`}catch(t){return Te.error({message:"Error getting name from product",error:t}),e.name}}function Yx(e){let t=Gx(e);return{currency:window.Snipcart.store.getState().session.settings.currency.toUpperCase(),items:[{item_id:e.itemId,item_name:t,id:e.itemId,name:t,price:e.price,description:e.description}]}}function Qx(e,t,n){var r,i,o;(o=window==null?void 0:window.runtime)==null||o.tagManagerAPI.sendGAEvent({category:e,action:e,value:t,siteAlias:(i=(r=We())==null?void 0:r.Parameters)==null?void 0:i.SiteAlias,payload:n})}const P0={dispatch:(e,t,n)=>{const r=We(),i=new CustomEvent(`${e}-${t}`,{detail:n});return r.document.dispatchEvent(i)},listen(e,t,n){return We().document.addEventListener(`${e}-${t}`,n),()=>We().document.removeEventListener(`${e}-${t}`,n)}},{str:Xx}=et;class qx{constructor(t=[]){te(this,"list",[]);te(this,"values",{});te(this,"errors",{});te(this,"validationSchema",{});te(this,"updateValue",(t,n)=>{this.values[t]=n,this.errors[t]&&delete this.errors[t]});te(this,"validate",t=>{const n=this.values[t];for(const r of this.validationSchema[t]){const i=r(n);if(typeof i=="string"){this.errors[t]=i;return}}});te(this,"validateAll",()=>{this.list.forEach(t=>{this.validate(t.id)})});te(this,"isEmpty",()=>this.list.length===0);te(this,"isValid",()=>Object.keys(this.errors).length===0);Yl(this,{validationSchema:!1,isEmpty:!1,isValid:!1}),this.validationSchema=Jx(t),this.list=t}}const Zx={required:e=>!!e||Xx("ui.runtimessr.productCustomizations.errors.required")};function Jx(e){return e.reduce((t,{id:n,mandatory:r})=>(t[n]||(t[n]=[]),r&&t[n].push(Zx.required),t),{})}Gl({isolateGlobalState:!0});const j0="defvar12";class eb{constructor(t){te(this,"product");te(this,"dropdownOptions",{});te(this,"paymentPlanOptions",[]);te(this,"variations",new Map);te(this,"selectedVariationKey","");te(this,"selectedPaymentPlan",null);te(this,"customizations");te(this,"getDiscountPrice",({price:t,displayed_price:n})=>this.selectedPaymentPlan?{price:this.selectedPaymentPlan.plan_price,displayed_price:this.selectedPaymentPlan.plan_displayed_price}:{price:t,displayed_price:n});te(this,"getSelectedVariationDiscountPrice",({price:t,displayed_price:n,plans_prices:r})=>{const i=r.find(o=>{var a;return o.id===((a=this.selectedPaymentPlan)==null?void 0:a.id)});return i?{price:i.price,displayed_price:i.displayed_price}:{price:t,displayed_price:n}});te(this,"selectPaymentPlanOption",t=>{this.selectedPaymentPlan=t});te(this,"updatePaymentPlanOptions",()=>{if(!this.selectedVariation)return;const t=this.selectedVariation;this.paymentPlanOptions=this.paymentPlanOptions.map(n=>{const r=t.plans_prices.find(i=>i.id===n.id);return{...n,plan_price:(r==null?void 0:r.price)||t.price,plan_displayed_price:(r==null?void 0:r.displayed_price)||t.displayed_price}})});Yl(this,{selectedVariation:fi,productData:fi}),this.product=t,this.dropdownOptions=t.options,this.paymentPlanOptions=MO(t),this.selectedPaymentPlan=this.paymentPlanOptions[0],this.customizations=new qx(t.customizations||[]),this.initVariations(t.variations),this.prepareAndSendGMEvent()}prepareAndSendGMEvent(){this.productData&&Kx(this.productData)}initVariations(t=[]){var i,o;const n=!!t.find(a=>a.price!==this.product.price),r=((i=Object.keys(this.dropdownOptions))==null?void 0:i.length)===1&&n;if(t.forEach(a=>{const l=a.selected_options_values;if(l&&(this.variations.set(tu(l),a),r)){const s=Object.entries(JSON.parse(l)),[u,h]=s[0],p=this.dropdownOptions[u].find(c=>c.value===h);p&&(p.label=`${p.label} - ${a.displayed_price}`)}}),!this.selectedVariationKey){const a=(o=t.find(l=>l.selected_options_values))==null?void 0:o.selected_options_values;if(a){const l=JSON.parse(a);this.selectedVariationKey=tu(l)}}}getSelectedField(t){const n=i0(this.selectedVariationKey)[t];if(n&&this.dropdownOptions[t])return this.dropdownOptions[t].find(r=>r.value===n)}get selectedVariation(){return this.variations.get(this.selectedVariationKey)}get productData(){var r;const t=Hr(this.selectedVariation),n=this.getItemId(t);if(t){const i=((r=t.images[0])==null?void 0:r.image)||this.product.image;return{...this.product,...t,...this.getSelectedVariationDiscountPrice(t),image:i,itemId:n,productId:this.product.identifier}}return{...this.product,...this.getDiscountPrice(this.product),itemId:n,productId:this.product.identifier}}updateVariation(t,n){var r;if((r=this.selectedVariation)!=null&&r.selected_options_values){const i=JSON.parse(this.selectedVariation.selected_options_values);this.selectedVariationKey=tu({...i,[t]:n}),this.updatePaymentPlanOptions(),this.prepareAndSendGMEvent()}}onSelectedValuesChange(t){const n=this.product.images.reduce((r,i,o)=>({...r,[i.image]:o}),{});Ov(()=>{const r=this.productData.image,i=n[r];P0.dispatch("selected-image-changed","dynamic_page_collection.images",{newIndex:i,newSrc:r}),t(this.productData)})}getItemId(t){const n=this.product.identifier||this.product.sku,r=this.product.external_id||"",{identifier:i=j0,external_id:o=""}=t||this.defaultVariation||{};return`${n}_${i}:${r}_${o}`}get defaultVariation(){return this.product.variations.find(t=>!t.selected_options_values)}}const tb=({product:e,productState:t})=>{if(b0(e))return{elementAttributes:{},componentProps:{}};const{itemId:n,productId:r,price:i,internal_quantity:o}=e,{customizations:a}=t,s=(!!o||o===0)&&o<=0,u=nb(t.selectedPaymentPlan);return{elementAttributes:{"data-item-id":n,"data-item-price":i,"data-auto":"addToCart",className:"snipcart-add-item",onClick:async y=>{var S,_,x,v,m,g;if(!(_t.isEditor||!window.dmAPI||!window._ecomSDK||s)&&(y.stopPropagation(),a.validateAll(),!!a.isValid()))try{const w={product_id:r,variation_id:((S=t.selectedVariation)==null?void 0:S.identifier)||j0,quantity:1,product_customizations:rb(a)};u?await((v=(_=window._ecomSDK)==null?void 0:_.buyProduct)==null?void 0:v.call(_,{...w,plan_id:((x=t.selectedPaymentPlan)==null?void 0:x.id)||""})):await((g=(m=window._ecomSDK)==null?void 0:m.addProduct)==null?void 0:g.call(m,w))}catch(w){const C={message:`Error in window._ecomSDK?.${u?"buyProduct":"addProduct"}`,tags:["__new-runtime__","native-ecom",u?"subscribe-to-product":"add-items-to-cart"],errorMessage:w};Te.error(C)}}},componentProps:{isDisabled:s,isSubscribe:u}}},nb=e=>!!e&&e.id!=_o,rb=e=>e.list.map(t=>({id:t.id,type:"TEXT",value:e.values[t.id]}));class ib{constructor(){te(this,"storeProducts",new Map);te(this,"currentProduct");Yl(this)}getProductById(t){return this.storeProducts.get(t)}addProduct(t){if(b0(t))return;const n=t.identifier;return n&&!this.storeProducts.has(n)&&(this.currentProduct=new eb(t),this.storeProducts.set(n,this.currentProduct)),this.storeProducts.get(n)}}globalThis.productsStore=globalThis.productsStore||new ib;const ob=globalThis.productsStore,Yo=e=>function(t){const n=AO(t.productView),r=ob.addProduct(n);if(!r)return null;const i=Wv(e);return d.jsx(i,{...t,productState:r})},ab=()=>{const{insideEditor:e}=gs();return d.jsx("div",{"data-auto":"widgets-error-fallback",children:e()&&d.jsx("h4",{style:{fontSize:24},children:"Something went wrong. We are on it"})})};class lb extends Se.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{additionalInfoToLog:n}=this.props,r={message:"Rendering error caught in error boundary. ",tags:["__new-runtime__","ErrorBoundary"],errorMessage:t==null?void 0:t.message,isEditor:_t.isEditor,additionalInfoToLog:n};Te.warn(r)}render(){return this.state.hasError?d.jsx(ab,{}):this.props.children}}function wt({Comp:e,additionalInfoToLog:t,logProps:n,componentName:r}){return i=>{const o={...t};return r&&(o.componentName=r),n&&(o.childComponentProps=i),d.jsx(lb,{additionalInfoToLog:o,children:d.jsx(e,{...i})})}}const sb=pe.div` cursor: auto; width: 100%; height: 100%; `;function ub(e){const t=wt({Comp:e,componentName:e.name||"withAddToCart",additionalInfoToLog:{tag:"native-ecom"},logProps:!0});return Yo(n=>{const{productState:r,...i}=n,{productData:o}=r,{elementAttributes:a,componentProps:l}=tb({product:o,productState:r});return o?d.jsx(sb,{...a,children:d.jsx(t,{...i,...l})}):d.jsx("div",{})})}function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function cb(e,t){if(Co(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Co(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function db(e){var t=cb(e,"string");return Co(t)==="symbol"?t:String(t)}function ln(e,t,n){return t=db(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jn,ji;function Qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;thb.includes(n)))for(const[n,r]of Object.entries(e))t+=vb(n,r);else t=e;return t}function mb(e,t){const n=I0[e];return!n.maxWidth&&!n.minWidth?t:{[`@media ${Object.entries(n).map(([i,o])=>`(${R0(i,o)})`).join(" and ")}`]:t}}function gb(e={},t=!1){let n={};return Object.entries(e).forEach(([r,i])=>{const o=mb(r,i);Object.assign(n,o)}),t?{[vs]:n}:n}function R0(e,t){return`${e==="maxWidth"?"max-width":"min-width"}: ${t}px`}function vb(e,t){const n=I0[e],r=_b(t);return!n.maxWidth&&!n.minWidth?`${r} `:`@media ${Object.entries(n).map(([o,a])=>`(${R0(o,a)})`).join(" and ")} { ${r}} `}function yb(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function _b(e){let t="";for(const[n,r]of Object.entries(e))t+=` ${yb(n)}: ${r}; `;return t}function Fd(e={}){let t=e;if(wb(e)){const r={};for(const[i,o]of Object.entries(e))r[i]={default:o};t={rules:r}}return t}function wb(e){let t=!0;return["rules"].some(n=>n in e)?!1:t}const Sb={[ft.DEFAULT]:f.COMMON,[ft.DESKTOP]:f.DESKTOP,[ft.MOBILE_PORTRAIT]:f.MOBILE,[ft.TABLET]:f.TABLET,[ft.LARGE_DESKTOP]:f.DESKTOP};function Xp(e,t={}){try{const n=e.rules||{};return Object.entries(n).reduce((r,[i,o])=>(Object.entries(Sb).forEach(([a,l])=>{const s=t[i]||i,u=o[a]||o[l];u&&(r[s]={...r[s]||{},[l]:u})}),r),{})}catch(n){throw Te.error({message:"Failed to migrate old BP styles structure",errorMessage:n==null?void 0:n.toString(),tags:["widget migration","style migration","old breakpoints to new"]}),n}}var fr=(e=>(e.NO_BP="no-breakpoints",e.OLD_BP="old-breakpoints",e.NEW_BP="new-styles",e))(fr||{});function D0({stylesInput:e,migrationStyleKeys:t,monitorKey:n}){var r,i;if(!e)return e;try{const{newStyles:o,inputStylesType:a}=Ob({stylesInput:e,migrationStyleKeys:t});return n&&a!==fr.NEW_BP&&Zn.getBoolean(`runtime.ssr.widget.migration.${n}`,!1)&&Te.info({widget:n,key:"breakpoints style migration",type:a,stylesInput:e,newStyles:o,tags:["style-migration"],siteAlias:(i=(r=We())==null?void 0:r.Parameters)==null?void 0:i.SiteAlias}),o}catch(o){Te.error({message:"Failed to migrate old styles structure",errorMessage:o==null?void 0:o.toString(),tags:["style-migration","style-migration-error",n]})}}function Ob({stylesInput:e={},migrationStyleKeys:t}){const n=Cb(e);let r;switch(n){case fr.NO_BP:r=Xp(Fd(e)||{},t);break;case fr.OLD_BP:r=Xp(e||{},t);break;default:r=e;break}return{newStyles:r,inputStylesType:n}}function Cb(e){if(e&&typeof e=="object"){if("rules"in e)return fr.OLD_BP;const t=Object.values(e);return t.length===1&&e.buttonTypeCSSClass||t.length===0||t.some(n=>n[f.COMMON]||Object.values(n||{}).some(r=>r==null?void 0:r[f.COMMON]))?fr.NEW_BP:fr.NO_BP}return null}const xb={button:"root",buttonHover:"rootHover",disabledButton:"rootDisabled",textHover:"rootHoverText",iconHover:"rootHoverIcon",disabledIcon:"iconDisabled"};function bb(e){try{return D0({monitorKey:"addtocart",stylesInput:e,migrationStyleKeys:xb})}catch(t){throw Te.error({message:"Failed to migrate old styles structure",errorMessage:t==null?void 0:t.toString(),tags:["AddToCart style migration"]}),t}}function Eb(e){var t;return e?"show-icon"in e?{showIcon:e["show-icon"],iconName:(t=e["selected-icon"])==null?void 0:t.classname}:{showIcon:e.showIcon,iconName:e.iconName}:{showIcon:!1,iconName:""}}function Mb(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.005 8.66907e-07L9.94934 5L0.0468741 5L5.005 8.66907e-07Z",fill:"#313131"})})}const Ab=({children:e,text:t})=>d.jsxs(Nt,{"data-auto":"tooltip-container",styles:[kb,De(Wt(jb),{pseudoSelector:"hover",innerSelector:'[data-auto="tooltip-content"]'})],children:[e,d.jsxs(T,{styles:Tb,"data-auto":"tooltip-content",children:[d.jsx(Mb,{}),d.jsx(T,{styles:Pb,"data-auto":"tooltip-content-box",children:d.jsx(K,{styles:Nb,grabId:"tooltip-content-text",children:t})})]})]}),kb={common:{height:"100%"}},Tb={common:{visibility:"hidden",marginLeft:"25%",marginRight:"25%",display:"inline-flex",flexDirection:"column",justifyContent:"center",alignItems:"center",position:"relative",zIndex:"100"}},Nb={common:{fontSize:"12px",fontStyle:"normal",fontWeight:"550",lineHeight:"18px",color:"#fff",flex:"1 0 0"}},Pb={common:{display:"flex",maxWidth:"200px",alignItems:"flex-start",gap:"4px",padding:"10px 16px",borderRadius:"4px",background:"#313131"}},jb={common:{visibility:"visible"}},Ib=({text:e,disabledText:t,_styles:n,iconProps:r,isDisabled:i,showButtonHoverEffect:o,showButtonDisabledEffect:a,isSubscribe:l})=>{const{showIcon:s,iconName:u}=Eb(r),h=Rb(n),{isInPreview:p}=gs(),c=(i?t:l?et.str("ui.runtimessr.addtocart.subscribe.title"):e)||et.str("widget.addtocart.title"),y=()=>d.jsx(ms,{styles:h,buttonContent:{text:c},dataGrab:"add-to-cart-button",iconClass:s&&u,isDisabled:a||i,className:"ssr-button",showHoverEffect:o});return l&&p()?d.jsx(Ab,{text:et.str("ui.runtimessr.addtocart.subscribe.tooltip.text"),children:d.jsx(y,{})}):d.jsx(y,{})};function Rb(e){const t=bb(e);return{root:[Db,t==null?void 0:t.root],rootHover:t==null?void 0:t.rootHover,rootDisabled:[Lb,t==null?void 0:t.rootDisabled],text:t==null?void 0:t.text,rootHoverText:t==null?void 0:t.rootHoverText,disabledText:t==null?void 0:t.disabledText,icon:t==null?void 0:t.icon,rootHoverIcon:t==null?void 0:t.rootHoverIcon,iconDisabled:t==null?void 0:t.iconDisabled,buttonTypeCSSClass:t==null?void 0:t.buttonTypeCSSClass}}const Db={[f.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",minHeight:"32px",padding:"8px 14px",minWidth:"fit-content",textAlign:"center",boxSizing:"border-box",margin:0}},Lb={[f.COMMON]:{opacity:.6}},$b=ub(Ib),xo=pe.button(({styles:e})=>wn([Bb,e],!0)),Bb={[f.COMMON]:{padding:"unset",backgroundColor:"unset",border:"unset",cursor:"pointer"}},qp=({name:e,dataGrab:t,styles:n})=>d.jsx(T,{styles:n.wrapper,children:d.jsx(T,{styles:[n.icon],"data-grab":t,className:e,"aria-hidden":"true"})}),Zp=({styles:e,arrowStyle:t,goNext:n,goPrevious:r})=>d.jsxs(T,{styles:[Fb,e==null?void 0:e.container],"data-auto":"pagination-arrows","data-grab":"pagination-container",children:[d.jsx(xo,{styles:[nh,e==null?void 0:e.buttonArrow],"data-grab":"pagination-button-arrow",onClick:r,"aria-label":"back","data-auto":Jp("back"),children:d.jsx(qp,{styles:{wrapper:eh},...th({pos:"left",arrowStyle:t})})}),d.jsx(xo,{styles:[nh,e==null?void 0:e.buttonArrow],"data-grab":"pagination-button-arrow","aria-label":"next","data-auto":Jp("next"),onClick:n,children:d.jsx(qp,{styles:{wrapper:eh},...th({pos:"right",arrowStyle:t})})})]});function Jp(e){return`RuntimeSlider-navigation-${e}`}const eh={common:{lineHeight:1,'[class*=" icon-"]::before':{cursor:"pointer"}}};function th({arrowStyle:e,pos:t}){return e==="arrow_thin"?{name:t==="left"?"icon-angle-left":"icon-angle-right"}:e==="arrow_double"?{name:t==="left"?"icon-double-angle-left":"icon-double-angle-right"}:{name:t==="left"?"icon-chevron-left":"icon-chevron-right"}}const Fb={[f.COMMON]:{display:"flex",alignItems:"center",justifyContent:"space-between",pointerEvents:"none"}},nh={[f.COMMON]:{backgroundColor:"transparent",pointerEvents:"auto",fontSize:40,padding:32},[f.MOBILE]:{padding:20}},L0=({goToCursor:e,styles:t,dataGrab:n="pagination-container",bulletsList:r})=>d.jsx(T,{styles:[zb,t==null?void 0:t.container],"data-auto":"pagination-bullets-base-container","data-grab":n,children:r.map(({styles:i,domAttributes:o={}},a)=>{const{"data-grab":l="pagination-button-bullet",...s}=o;return b.createElement(xo,{"data-grab":l,...s,styles:[Ub,t==null?void 0:t.buttonBullet,i],key:a,onClick:()=>{e(a)},"aria-label":`go to slide ${a+1}`})})}),zb={[f.COMMON]:{display:"flex",justifyContent:"center",alignItems:"center"}},Ub={[f.COMMON]:{backgroundColor:"transparent"}},Wb=({cursor:e,totalPages:t,styles:n,...r})=>d.jsx(L0,{bulletsList:new Array(t).fill(null).map((i,o)=>{const a=o===e?" active":"";return{styles:[e===o?n==null?void 0:n.buttonBulletActive:void 0],domAttributes:{"data-auto":`pagination-button-bullet ${o}${a}`,"data-grab":`pagination-button-bullet${a}`}}}),styles:{container:[Hb,n==null?void 0:n.container],buttonBullet:[Vb,n==null?void 0:n.buttonBullet]},...r}),Vb={[f.COMMON]:{borderRadius:"50%",width:8,height:8,boxShadow:"0px 0px 2px rgba(24, 39, 75, 0.3), 0px 0px 3px rgba(24, 39, 75, 0.04)"}},Hb={[f.COMMON]:{gap:8}},rh=({thumbList:e,styles:t,cursor:n,...r})=>d.jsx(T,{styles:t==null?void 0:t.container,children:d.jsx(L0,{bulletsList:e.map((i,o)=>{const a=o===n?" active":"";return{styles:[Gb(i==null?void 0:i.imgSrc),o===n?[Xb,t==null?void 0:t.buttonThumbActive]:void 0],domAttributes:{"data-auto":`pagination-button-thumb ${o}${a}`,"data-grab":`pagination-button-thumb${a}`}}}),dataGrab:"pagination-container thumbs-container",...r,styles:{buttonBullet:[Qb,t==null?void 0:t.buttonThumb],container:[Kb,t==null?void 0:t.thumbsContainer,e.length>3?void 0:Yb]}})}),Kb={[f.COMMON]:{gap:20}};function Gb(e){return{[f.COMMON]:{backgroundImage:`url(${e})`}}}const Yb={[f.MOBILE]:{justifyContent:"center"}},Qb={[f.COMMON]:{aspectRatio:"1 / 1",pointerEvents:"auto",backgroundSize:"cover",backgroundPosition:"center",borderWidth:3,borderColor:"transparent",borderStyle:"solid"}},Xb={[f.COMMON]:{borderColor:"black"}};var $t=(e=>(e.BULLETS="bullets",e.THUMBS="thumbs",e.ARROWS="arrows",e.ARROWS_AND_THUMBS="arrows_and_thumbs",e))($t||{});const qb=e=>{switch(e.type){case"arrows":return d.jsx(Zp,{...e});case"thumbs":return d.jsx(rh,{...e});case"arrows_and_thumbs":return d.jsxs(d.Fragment,{children:[d.jsx(Zp,{...e}),d.jsx(rh,{...e})]});default:return d.jsx(Wb,{...e})}},Zb=wt({Comp:qb,logProps:!0,componentName:"Pagination"});var $0=(e=>(e.slideFromRight="slideFromRight",e.slideFromLeft="slideFromLeft",e.slideFromTop="slideFromTop",e.slideFromBottom="slideFromBottom",e.fade="fade",e))($0||{});pe.div` position: relative; overflow: hidden; width: 100%; height: 100%; `;const Jb={slideFromBottom:"top",slideFromTop:"bottom",slideFromRight:"left",slideFromLeft:"right",fade:"opacity"},eE=({distanceFromIndex:e,transitionDuration:t,transitionType:n})=>{const r=Jb[n||"slideFromRight"];switch(n){case"fade":return{left:0,opacity:`${e===0?1:0}`,transition:`${r} ${t}s`};default:return{[r]:`${e>0?"100%":e===0?"0":"-100%"}`,transition:`${r} ${t}s`}}};pe.div` width: 100%; height: 100%; bottom: 0; position: absolute; ${e=>({...eE(e)})} `;const tE={href:"#"},nE=pe.a` ${vs} { ${e=>vi(e==null?void 0:e.styles)} &:hover { ${e=>vi(e==null?void 0:e.hoverStyles)} } } `,rE=(e,t=tE)=>n=>d.jsx(nE,{...t,children:d.jsx(e,{...n})}),iE=pe.div(e=>gb(e.styles)),iu=({tag:e,domAttrs:t,...n})=>d.jsx(iE,{as:e,...t,...n}),xa={links:[],ariaLabel:"Breadcrumbs",emptyMessage:"No breadcrumbs"},oE=pe.nav` ${vs} { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; ${e=>vi(e.styles)} } `,aE=pe.span` ${vs} { ${e=>vi(e==null?void 0:e.styles)} transform: ${e=>(e==null?void 0:e.direction)==="rtl"?"rotate(180deg)":"rotate(0)"}; display: flex; width: 16px; svg { width: 100%; height: 100%; fill: currentColor; } } `,lE=e=>{switch(e){case"arrow":return d.jsx("svg",{"data-auto":"arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 3.46967C5.76256 3.17678 6.23744 3.17678 6.53033 3.46967L10.5303 7.46967C10.8232 7.76256 10.8232 8.23744 10.5303 8.53033L6.53033 12.5303C6.23744 12.8232 5.76256 12.8232 5.46967 12.5303C5.17678 12.2374 5.17678 11.7626 5.46967 11.4697L8.93934 8L5.46967 4.53033C5.17678 4.23744 5.17678 3.76256 5.46967 3.46967Z",fill:"currentColor"})});case"double_arrow":return d.jsxs("svg",{"data-auto":"double_arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.21967 3.46967C3.51256 3.17678 3.98744 3.17678 4.28033 3.46967L8.28033 7.46967C8.57322 7.76256 8.57322 8.23744 8.28033 8.53033L4.28033 12.5303C3.98744 12.8232 3.51256 12.8232 3.21967 12.5303C2.92678 12.2374 2.92678 11.7626 3.21967 11.4697L6.68934 8L3.21967 4.53033C2.92678 4.23744 2.92678 3.76256 3.21967 3.46967Z",fill:"currentColor"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.71967 3.46967C8.01256 3.17678 8.48744 3.17678 8.78033 3.46967L12.7803 7.46967C13.0732 7.76256 13.0732 8.23744 12.7803 8.53033L8.78033 12.5303C8.48744 12.8232 8.01256 12.8232 7.71967 12.5303C7.42678 12.2374 7.42678 11.7626 7.71967 11.4697L11.1893 8L7.71967 4.53033C7.42678 4.23744 7.42678 3.76256 7.71967 3.46967Z",fill:"currentColor"})]});case"divider":return d.jsx("svg",{"data-auto":"divider",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.58333C8.41421 2.58333 8.75 2.91912 8.75 3.33333V12.6667C8.75 13.0809 8.41421 13.4167 8 13.4167C7.58579 13.4167 7.25 13.0809 7.25 12.6667V3.33333C7.25 2.91912 7.58579 2.58333 8 2.58333Z",fill:"currentColor"})});case"slash":return d.jsx("svg",{"data-auto":"slash",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.59807 13.2321C6.19797 13.1249 5.96053 12.7136 6.06774 12.3135L8.48338 3.29821C8.59059 2.89811 9.00184 2.66068 9.40194 2.76788C9.80204 2.87509 10.0395 3.28634 9.93227 3.68644L7.51662 12.7017C7.40942 13.1018 6.99817 13.3393 6.59807 13.2321Z",fill:"currentColor"})});case"horizontal":return d.jsx("svg",{"data-auto":"horizontal",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4167 7.99998C13.4167 8.41419 13.0809 8.74998 12.6667 8.74998L3.33333 8.74998C2.91912 8.74998 2.58333 8.41419 2.58333 7.99998C2.58333 7.58576 2.91912 7.24998 3.33333 7.24998L12.6667 7.24998C13.0809 7.24998 13.4167 7.58576 13.4167 7.99998Z",fill:"currentColor"})})}},sE=(e,t,n,r)=>n?d.jsx(aE,{styles:e,direction:t,className:"bc-separator","aria-hidden":"true",children:lE(n)},r):null,uE=(e,t)=>e?d.jsx("span",{style:{color:"#C1C9CC",padding:"0 4px"},children:t}):null,cE=({links:e=xa.links,styles:t,linksStyles:n,linksHoverStyles:r,separatorStyles:i,unlinkableItemsStyles:o,currentItemStyles:a,separatorType:l,ariaLabel:s=xa.ariaLabel,showEmptyMessage:u,emptyMessage:h=xa.emptyMessage}=xa)=>d.jsx(oE,{links:e,styles:t,className:"bc-root dmBlockElement","aria-label":s,children:e.length?e.map((p,c)=>{var g,w,C,E,k;const S=rE(()=>d.jsx(iu,{children:p.title},`text-${c}`),{...p.linkProps,styles:n,hoverStyles:r,className:"bc-item"}),_=(g=p==null?void 0:p.linkProps)!=null&&g.currentPage?d.jsx(iu,{styles:a,domAttrs:{className:"bc-current-item"},"data-auto":"bc-current-item",children:p.title},`current-${c}`):null,x=((w=p==null?void 0:p.linkProps)==null?void 0:w.href)=="#"?d.jsx(iu,{styles:o,domAttrs:{className:"bc-unlinkable-item"},"data-auto":"bc-unlinkable-item",children:p.title},`unlinkable-${c}`):null,v=((C=p==null?void 0:p.linkProps)==null?void 0:C.href)!="#"&&!((E=p==null?void 0:p.linkProps)!=null&&E.currentPage)?d.jsx(S,{},`Linkable-${c}`):null,m=cd.jsx(Oo,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",...t,children:d.jsx("path",{d:"M7.99563 12C8.20688 12 8.38542 11.9285 8.53125 11.7856C8.67708 11.6427 8.75 11.4656 8.75 11.2544C8.75 11.0431 8.67854 10.8646 8.53563 10.7188C8.39271 10.5729 8.21562 10.5 8.00438 10.5C7.79313 10.5 7.61458 10.5715 7.46875 10.7144C7.32292 10.8573 7.25 11.0344 7.25 11.2456C7.25 11.4569 7.32146 11.6354 7.46438 11.7812C7.60729 11.9271 7.78438 12 7.99563 12ZM7.25 9H8.75V4H7.25V9ZM8.00583 16C6.90472 16 5.86806 15.7917 4.89583 15.375C3.92361 14.9583 3.07292 14.3854 2.34375 13.6562C1.61458 12.9271 1.04167 12.0767 0.625 11.105C0.208333 10.1333 0 9.09514 0 7.99042C0 6.88569 0.208333 5.85069 0.625 4.88542C1.04167 3.92014 1.61458 3.07292 2.34375 2.34375C3.07292 1.61458 3.92333 1.04167 4.895 0.625C5.86667 0.208333 6.90486 0 8.00958 0C9.11431 0 10.1493 0.208333 11.1146 0.625C12.0799 1.04167 12.9271 1.61458 13.6562 2.34375C14.3854 3.07292 14.9583 3.92167 15.375 4.89C15.7917 5.85847 16 6.89319 16 7.99417C16 9.09528 15.7917 10.1319 15.375 11.1042C14.9583 12.0764 14.3854 12.9271 13.6562 13.6562C12.9271 14.3854 12.0783 14.9583 11.11 15.375C10.1415 15.7917 9.10681 16 8.00583 16Z",fill:"currentColor"})});function mE({title:e,children:t,styles:n,isAccordionOpen:r=!1,dataGrabs:i,...o}){const[a,l]=b.useState(r);b.useEffect(()=>{l(r)},[r]);const s=()=>{l(u=>!u)};return d.jsxs(T,{styles:[vE,n==null?void 0:n.container],...o,children:[d.jsxs(T,{styles:[gE,n==null?void 0:n.headerWrapper],onClick:s,"data-auto":"accordion-trigger","data-grab":i==null?void 0:i.textWrapperDataGrab,children:[d.jsx(K,{styles:[yE,n==null?void 0:n.title],"data-grab":i==null?void 0:i.titleDataGrab,tag:J.h4,children:e}),d.jsx(K,{styles:[wE(a),n==null?void 0:n.title],tag:J.h4,children:d.jsx(dE,{})})]}),d.jsx(T,{styles:_E,style:{display:a?"flex":"none"},"data-auto":"accordion-list",children:t})]})}const gE={[f.COMMON]:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",textTransform:"uppercase",fontWeight:400,fontSize:"16px",lineHeight:"19px",gap:"8px",lineBreak:"anywhere"}},vE={[f.COMMON]:{width:"100%"}},yE={[f.COMMON]:{maxWidth:"90%",cursor:"pointer",flex:1,textDecoration:"inherit",margin:0}},_E={[f.COMMON]:{marginBlockStart:"16px",flexDirection:"column",gap:"8px",display:"flex"}};function wE(e){return{[f.COMMON]:{display:"grid",alignItems:"center",transform:`rotate(${e?"0":"180deg"})`,aspectRatio:"1/1",margin:0}}}const ys=pe.input(({styles:e,increaseSpecificity:t})=>wn([SE,e],t)),SE={[f.COMMON]:{padding:"unset",backgroundColor:"unset",border:"0 solid #000000"}};function OE({label:e,checked:t,onChange:n,labelWrapperStyles:r,labelStyles:i,inputStyles:o,inputIconStyles:a,dataGrabs:l,...s}){return d.jsxs($d,{styles:[CE,r],...s,children:[d.jsx(ys,{type:"checkbox",checked:t,onChange:u=>{u.stopPropagation(),n(u.target.checked)},styles:{[f.COMMON]:{display:"none"}}}),d.jsx(T,{styles:[xE,o],"data-grab":l==null?void 0:l.iconWrapperDataGrab,children:d.jsx(Oo,{width:"8",height:"7",viewBox:"0 0 8 7",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-grab":(l==null?void 0:l.iconDataGrab)||"input-icon",styles:[a,{[f.COMMON]:{display:t?"unset":"none",background:"none"}}],children:d.jsx("path",{d:"M0.760254 3.57145L2.6191 5.5L6.47454 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),d.jsx(K,{styles:[bE,i],"data-grab":l==null?void 0:l.labelDataGrab,tag:J.paragraph,children:e})]})}const CE={[f.COMMON]:{position:"relative",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",color:"#313131"}},xE={[f.COMMON]:{display:"grid",alignItems:"center",justifyContent:"center",width:"14px",height:"14px",backgroundColor:"#fff",border:"1px solid #ced6d9"}},bE={[f.COMMON]:{textTransform:"capitalize",flex:1,margin:0,display:"grid",alignItems:"center"}},zd=({label:e,labelTag:t=J.paragraph,onChange:n,value:r,selectedValue:i,labelStyles:o,labelWrapperStyles:a,inputStyles:l,inputIconStyles:s,dataGrabs:u,...h})=>{const p=y=>{n(y.target.value)},c=i===r;return d.jsxs($d,{styles:[EE,a],...h,children:[d.jsx(ys,{type:"radio",onChange:p,value:r,checked:c,styles:{[f.COMMON]:{display:"none"}}}),d.jsx(Nt,{"data-grab":(u==null?void 0:u.outerCircleDataGrab)||"radio-outer-circle",styles:[AE,l],children:d.jsx(Nt,{"data-grab":(u==null?void 0:u.innerCircleDataGrab)||"radio-inner-circle",styles:[kE(c),s]})}),d.jsx(K,{styles:[ME,o],tag:t,"data-grab":(u==null?void 0:u.labelDataGrab)||"radio-input-label",children:e||r})]})},EE={[f.COMMON]:{display:"flex",alignItems:"center",cursor:"pointer",gap:"8px",color:"#313131"}},ME={[f.COMMON]:{textTransform:"capitalize",flex:1,margin:0,display:"grid",alignItems:"center"}},AE={[f.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",border:"1px solid #ced6d9",borderRadius:"50%",boxSizing:"border-box",backgroundColor:"#fff",flexShrink:0}};function kE(e){return{[f.COMMON]:{display:"block",opacity:e?1:0,width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"#30373a",flexShrink:0}}}const TE=({title:e,options:t,selectedValue:n,onChange:r,styles:i,...o})=>{var a;return d.jsxs(T,{"data-auto":"radio-buttons-group",children:[d.jsx(K,{tag:J.h4,styles:[jE,i==null?void 0:i.title],"data-grab":"radiogroup-title",children:e}),d.jsx(T,{styles:[NE,(a=i==null?void 0:i.fields)==null?void 0:a.wrapper],"data-grab":"radiogroup-fields",children:t.map(l=>{var s,u,h;return d.jsx(zd,{label:l.label,value:l.value,disabled:l.disabled,selectedValue:n==null?void 0:n.value,onChange:()=>r(l),labelWrapperStyles:PE,inputStyles:(s=i==null?void 0:i.fields)==null?void 0:s.outerCircle,inputIconStyles:(u=i==null?void 0:i.fields)==null?void 0:u.innerCircle,labelStyles:(h=i==null?void 0:i.fields)==null?void 0:h.label,dataGrabs:{labelDataGrab:"radio-label"},...o},l.value)})})]})},NE={[f.COMMON]:{display:"flex",flexDirection:"column",gap:"4px",flexWrap:"wrap"}},PE={[f.COMMON]:{color:"inherit"}},jE={[f.COMMON]:{textAlign:"start",marginBlockEnd:"6px",lineHeight:"100%",marginTop:"0",fontSize:"16px",direction:"inherit"}};function IE(e){return d.jsxs(T,{styles:[RE,e.labelsWrapperStyles],children:[d.jsxs(K,{styles:[oh,e.labelStyles],"data-auto":"min-input-label",tag:J.paragraph,children:[d.jsx("span",{children:e.rangeValues.start}),e.sign&&d.jsx("span",{children:e.sign})]}),d.jsxs(K,{styles:[oh,e.labelStyles],"data-auto":"max-input-label",tag:J.paragraph,children:[d.jsx("span",{children:e.rangeValues.end}),e.sign&&d.jsx("span",{children:e.sign})]})]})}const oh={[f.COMMON]:{margin:0}},RE={[f.COMMON]:{width:"100%",display:"flex",justifyContent:"space-between",marginBlockEnd:"12px"}},DE=b.forwardRef(({trackStyles:e,trackDataGrab:t="range-slider-track",rangeValues:n,...r},i)=>{const o=[FE,e];return d.jsxs(T,{"data-auto":"slider-track-wrapper",styles:$E,ref:i,children:[d.jsx(T,{styles:[BE,o],"data-grab":t}),!r.hideRangeTrack&&d.jsx(T,{styles:[LE({...n,min:r.min,max:r.max}),o]})]})});function LE({start:e,end:t,min:n,max:r}){const i=r-n,o=(e-n)/i*100,a=(t-e)/i*100;return{[f.COMMON]:{height:"100%",position:"absolute",borderRadius:"24px",marginInlineStart:`${o}%`,width:`${a}%`,top:0}}}const $E={[f.COMMON]:{backgroundColor:"transparent",position:"relative",width:"100%"}},BE={[f.COMMON]:{opacity:.5,width:"100%"}},FE={[f.COMMON]:{height:"2px",backgroundColor:"#000",borderRadius:"6px"}};function zE(e){const t=Wt([WE,e.trackStyles,e.thumbStyles,e.isActive&&ah,VE]),n=[UE,e.isActive&&ah,De({[f.COMMON]:{height:"100%"}},{innerSelector:"&::-webkit-slider-runnable-track"}),De(t,{innerSelector:"&&::-webkit-slider-thumb"}),De(t,{innerSelector:"&::-moz-range-thumb"})];return d.jsx(ys,{type:"range",styles:n,...e})}const UE={[f.COMMON]:{margin:0,height:"200%",width:"100%",position:"absolute",WebkitAppearance:"none",MozAppearance:"none",pointerEvents:"none",cursor:"pointer",minHeight:"8px"},[f.MOBILE]:{minHeight:"20px"}},WE={[f.COMMON]:{position:"relative",WebkitAppearance:"none",backgroundColor:"#000",pointerEvents:"all",borderRadius:"50%",aspectRatio:"1/1",width:"unset",border:"0",boxShadow:"0 0 1px 1px rgba(0,0,0,0.4)",zIndex:2}},ah={[f.COMMON]:{zIndex:3,pointerEvents:"all"}},VE={[f.COMMON]:{height:"100%"},[f.TABLET]:{height:"100%"},[f.DESKTOP]:{height:"100%"},[f.MOBILE]:{height:"100%"}},lh=b.memo(zE);var bo=(e=>(e.START="start",e.END="end",e))(bo||{});const HE=({callback:e,msToWait:t=300})=>{const n=b.useRef(e);return b.useEffect(()=>{n.current=e},[e]),b.useCallback(Ld((...r)=>{n.current(...r)},t),[])};function KE({rangeValues:e,minRange:t=1,...n}){const[r,i]=b.useState(null),[o,a]=b.useState(null),[l,s]=b.useState(!1),[u,h]=b.useState("ltr"),p=b.useCallback(g=>{if(g){a(g==null?void 0:g.getBoundingClientRect());const w=We().getComputedStyle(g);h(w.getPropertyValue("direction"))}},[]),c=b.useCallback(g=>{if(o){const{width:w,left:C,right:E}=o,k=u==="rtl"?E-g.clientX:g.clientX-C,A=n.max-n.min;return Math.round(k/w*A+n.min)}return null},[o,u]),{start:y,end:S}=e,_=g=>{const w=Math.min(g,S-t),C=Math.max(w,n.min);n.onChange({start:C,end:S})},x=g=>{const w=Math.max(g,y+t),C=Math.min(w,n.max);n.onChange({start:y,end:C})},m=HE({callback:g=>{const w=c(g);if(w){const E=Math.abs(e.start-w){!l&&m(g)},onMouseDown:()=>{s(!0)},onMouseUp:()=>{i(null),s(!1)}},onStartInputChange:g=>{_(+g.target.value)},onEndInputChange:g=>{x(+g.target.value)}}}function GE(e){const{rangeValues:t}=e,{wrapperEvents:n,trackRefCB:r,onStartInputChange:i,onEndInputChange:o,activeSlider:a}=KE(e);return d.jsxs(T,{styles:YE,...n,children:[d.jsx(DE,{trackStyles:e.trackStyles,min:e.min,max:e.max,rangeValues:t,hideRangeTrack:e.hideRangeTrack,trackDataGrab:e.trackDataGrab,ref:r}),d.jsx(lh,{min:e.min,max:e.max,value:t.start,"data-auto":"range-slider-start-input",thumbStyles:e.thumbStyles,trackStyles:e.trackStyles,onChange:i,isActive:a===bo.START}),d.jsx(lh,{min:e.min,max:e.max,value:t.end,"data-auto":"range-slider-end-input",thumbStyles:e.thumbStyles,trackStyles:e.trackStyles,onChange:o,isActive:a===bo.END})]})}const YE={[f.COMMON]:{display:"flex",alignItems:"center",position:"relative",marginBlock:"12px",cursor:"pointer","::before":{content:'""',position:"absolute",top:"-8px",right:"0",bottom:"-8px",left:"0"}}},QE=e=>{const{currentValues:t}=e,[n,r]=b.useState({start:(t==null?void 0:t.start)||e.min,end:(t==null?void 0:t.end)||e.max}),i=b.useCallback(Ld(e.onChange,300),[]);return b.useEffect(()=>{(n.start!==(t==null?void 0:t.start)||n.end!==t.end)&&r({start:(t==null?void 0:t.start)||e.min,end:(t==null?void 0:t.end)||e.max})},[t]),d.jsxs(T,{"data-auto":"range-slider",styles:XE,children:[d.jsx(IE,{labelsWrapperStyles:e.labelsWrapperStyles,labelStyles:e.labelStyles,sign:e.sign,rangeValues:n}),d.jsx(GE,{onChange:o=>{r(o),i(o)},trackStyles:e.trackStyles,thumbStyles:e.thumbStyles,min:e.min,max:e.max,rangeValues:n,hideRangeTrack:e.hideRangeTrack,trackDataGrab:e.trackDataGrab,minRange:e.minRange})]})},XE={[f.COMMON]:{padding:"2px"}},qE=e=>{var r,i,o,a,l,s;const t=b.useMemo(()=>{const u={"@context":"http://schema.org/","@type":"BreadcrumbList",itemListElement:e.links.filter(h=>(h==null?void 0:h.linkProps)&&(h==null?void 0:h.linkProps.href)!=="#").map((h,p)=>{var c,y;return{"@type":"ListItem",position:p+1,item:{name:h.title,...!((c=h==null?void 0:h.linkProps)!=null&&c.currentPage)&&{id:(y=h==null?void 0:h.linkProps)==null?void 0:y.href}}}})};return JSON.stringify(u)},[e]),n=b.useMemo(()=>Fd(e._styles),[e._styles]);return d.jsxs("div",{"data-auto":"runtime-breadcrumbs-widget",children:[e.addSchemaMarkup&&e.links.length>1?d.jsx("script",{"data-auto":"schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:t}}):null,d.jsx(cE,{styles:(r=n.rules)==null?void 0:r.root,linksStyles:(i=n.rules)==null?void 0:i.links,linksHoverStyles:(o=n.rules)==null?void 0:o.linksHover,unlinkableItemsStyles:(a=n.rules)==null?void 0:a.unlinkableItems,currentItemStyles:(l=n.rules)==null?void 0:l.currentItem,separatorStyles:(s=n.rules)==null?void 0:s.separator,separatorType:e==null?void 0:e.separatorType,links:e.links,showEmptyMessage:_t.isEditor,emptyMessage:et.str("ui.ed.breadcrumbs.empty.message")})]})},ZE=wt({Comp:qE,componentName:"RuntimeBreadcrumbs"}),B0=e=>d.jsx(ZE,{...e});B0.skipHydration=!0;const JE="modulepreload",eM=function(e){return"/"+e},sh={},F0=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=eM(l),l in sh)return;sh[l]=!0;const s=l.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=s?"stylesheet":JE,s||(h.as="script",h.crossOrigin=""),h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),s)return new Promise((p,c)=>{h.addEventListener("load",p),h.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},tM={atomsWrapper:"atoms-wrapper",bookerContainer:"booker-container",eventMetaCustomClassNames:{eventMetaContainer:"event-meta-container",eventMetaTitle:"event-meta-title",eventMetaTimezoneSelect:"event-meta-timezone-select"},datePickerCustomClassNames:{datePickerContainer:"date-picker-container",datePickerTitle:"date-picker-title",datePickerDays:"date-picker-days",datePickerDate:"date-picker-date",datePickerDatesActive:"date-picker-dates-active",datePickerToggle:"date-picker-toggle"},availableTimeSlotsCustomClassNames:{availableTimeSlotsContainer:"available-time-slots-container",availableTimeSlotsHeaderContainer:"available-time-slots-header-container",availableTimeSlotsTitle:"available-time-slots-title",availableTimeSlotsTimeFormatToggle:"available-time-slots-time-format-toggle",availableTimes:"available-times"}},z0=()=>F0(()=>import("./assets/index-7jnStlFB-BJ2ATUyi.js").then(e=>e.bz),[]),nM=b.lazy(()=>z0().then(e=>({default:e.Booker}))),rM=b.lazy(()=>z0().then(e=>({default:e.CalProvider}))),iM=e=>{const{localeCode:t="en",apiUrl:n="https://api.cal.com/v2",eventSlug:r,clientId:i,userName:o}=e;return b.useEffect(()=>{F0(()=>Promise.resolve({}),__vite__mapDeps([0]))},[]),!r||!o?(console.error("Event slug and user name are required"),d.jsx("div",{children:"Event slug and user name are required"})):d.jsx(oM,{"data-auto":"ssr-cal-booking-widget",children:d.jsx("div",{className:"booker-wrapper",children:d.jsx(b.Suspense,{fallback:d.jsx("div",{children:"Loading Booker..."}),children:d.jsx(rM,{clientId:i,options:{apiUrl:n},language:t,children:d.jsx(nM,{eventSlug:r,username:o,customClassNames:tM})})})})})},oM=pe.div` display: flex; align-items: center; justify-content: center; --booker-meta-width: 120px; .booker-wrapper { width: 100%; .calcom-atoms { .available-time-slots-header-container { display: flex; flex-wrap: wrap; } .booker-container { display: flex; box-sizing: border-box; > * { width: auto; flex: 1; } .event-meta-title { font-size: x-large !important; } } } } `,aM=wt({Comp:iM,logProps:!0,componentName:"CalBooking",additionalInfoToLog:{tag:"booking"}}),lM=pe.span` display: grid; width: 16px; ${({styles:e={}})=>vi(e)} svg { fill: currentColor; } `;function sM({className:e,dataAuto:t,svgMarkup:n,styles:r,onClick:i}){return d.jsx(lM,{onClick:i,className:e,"data-auto":t,styles:r,dangerouslySetInnerHTML:{__html:n||uM()}})}function uM(){return` `}const cM=({svgMarkup:e,_styles:t})=>{var l,s;const{isInEditor:n}=Md(),{itemsCount:r,openSnipcart:i}=bO(),o=()=>{!n&&i()},a=b.useMemo(()=>Fd(t),[t]);return d.jsxs(dM,{"data-auto":"ssr-cart-widget",children:[d.jsx(sM,{className:"cart-icon",dataAuto:"cart-icon",svgMarkup:e,styles:((l=a.rules)==null?void 0:l.cartIcon)||{},onClick:o}),d.jsx(fM,{styles:(s=a.rules)==null?void 0:s.itemsCountLabel,className:"cart-count-label","data-auto":"cart-count-label",onClick:o,children:(n||r>0)&&r})]})},dM=pe.div` display: flex; align-items: center; justify-content: center; .cart-icon, .cart-count-label { cursor: pointer; user-select: none; } label.cart-count-label { margin-inline: 5px; } `,fM=pe.label` ${e=>vi(e.styles)} `,pM=wt({Comp:cM,logProps:!0,componentName:"Cart",additionalInfoToLog:{tag:"native-ecom"}});function hM(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function hc(e,t){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hc(e,t)}function mM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hc(e,t)}const uh={disabled:!1},U0=Se.createContext(null);var gM=function(t){return t.scrollTop},$i="unmounted",rr="exited",ir="entering",kr="entered",mc="exiting",Sn=function(e){mM(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,s;return o.appearStatus=null,r.in?l?(s=rr,o.appearStatus=ir):s=kr:r.unmountOnExit||r.mountOnEnter?s=$i:s=rr,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===$i?{status:rr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==ir&&a!==kr&&(o=ir):(a===ir||a===kr)&&(o=mc)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,l;return o=a=l=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===ir){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ma.findDOMNode(this);a&&gM(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rr&&this.setState({status:$i})},n.performEnter=function(i){var o=this,a=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[ma.findDOMNode(this),l],u=s[0],h=s[1],p=this.getTimeouts(),c=l?p.appear:p.enter;if(!i&&!a||uh.disabled){this.safeSetState({status:kr},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:ir},function(){o.props.onEntering(u,h),o.onTransitionEnd(c,function(){o.safeSetState({status:kr},function(){o.props.onEntered(u,h)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:ma.findDOMNode(this);if(!o||uh.disabled){this.safeSetState({status:rr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:mc},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:rr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:ma.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],h=s[1];this.props.addEndListener(u,h)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$i)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=hM(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Se.createElement(U0.Provider,{value:null},typeof a=="function"?a(i,l):Se.cloneElement(Se.Children.only(a),l))},t}(Se.Component);Sn.contextType=U0;Sn.propTypes={};function Er(){}Sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Er,onEntering:Er,onEntered:Er,onExit:Er,onExiting:Er,onExited:Er};Sn.UNMOUNTED=$i;Sn.EXITED=rr;Sn.ENTERING=ir;Sn.ENTERED=kr;Sn.EXITING=mc;const vM=()=>d.jsx("svg",{width:"100%",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.625 10.4375C2.625 6.12277 6.12277 2.625 10.4375 2.625C14.7522 2.625 18.25 6.12277 18.25 10.4375C18.25 14.7522 14.7522 18.25 10.4375 18.25C6.12277 18.25 2.625 14.7522 2.625 10.4375ZM10.4375 0.75C5.08724 0.75 0.75 5.08724 0.75 10.4375C0.75 15.7878 5.08724 20.125 10.4375 20.125C12.775 20.125 14.9192 19.2971 16.5927 17.9186L23.5246 24.8504C23.8907 25.2165 24.4843 25.2165 24.8504 24.8504C25.2165 24.4843 25.2165 23.8907 24.8504 23.5246L17.9186 16.5927C19.2971 14.9192 20.125 12.775 20.125 10.4375C20.125 5.08724 15.7878 0.75 10.4375 0.75Z",fill:"currentColor"})}),W0=({styles:e,dataAuto:t="search-icon",openSearchPopup:n})=>d.jsx(xo,{type:"button","data-auto":t,styles:[yM,e==null?void 0:e.iconBtn],onClick:n,"aria-label":"search","data-grab":"collection-search-widget-icon-btn",children:d.jsx(vM,{})}),yM={[f.COMMON]:{display:"inline-block",color:"inherit",width:26}},_M=({styles:e})=>d.jsx(T,{styles:wM,children:d.jsx(W0,{styles:e,dataAuto:"",openSearchPopup:()=>{}})}),wM={[f.COMMON]:{display:"none"}},V0=()=>{const e=b.useRef(null),[t,n]=b.useState(!1);return b.useEffect(()=>{const r=We();if(e.current&&r){const i=new r.IntersectionObserver(([o])=>{n(o.isIntersecting)});return i.observe(e.current),()=>i.disconnect()}},[e.current]),{elementRef:e,isVisible:t}},SM=()=>{var r;const e=We(),t=OM(),n=(r=e==null?void 0:e.Parameters)==null?void 0:r.SiteAlias;return b.useCallback(({collectionPath:i,itemUrl:o})=>{var l;const a=CM(`${i}/${o}`);return t?`/${a}`:`/site/${n}/${a}${(l=document==null?void 0:document.location)==null?void 0:l.search}`},[t,n])};function OM(){var e,t,n;return((n=(t=(e=We())==null?void 0:e.dmAPI)==null?void 0:t.getCurrentEnvironment)==null?void 0:n.call(t))==="live"}const CM=e=>{var i,o;const t=We(),n=(i=t==null?void 0:t.Parameters)==null?void 0:i.defaultLang,r=((o=t==null?void 0:t.Parameters)==null?void 0:o.IsSiteMultilingual)&&(t==null?void 0:t.dmAPI.getSiteCurrentLocale());return r&&n&&r!==n?`${r}/${e}`:e},xM=pe.a(e=>wn(e.styles,!0)),bM=({grabId:e,domAttrs:t,...n})=>d.jsx(xM,{"data-auto":e,"data-grab":e,...t,...n}),H0=({href:e="",styles:t,grabId:n,item:r})=>d.jsxs(bM,{styles:[EM,De(Wt([MM,t==null?void 0:t.dropdownItemHover]),{pseudoSelector:"hover"})],domAttrs:{href:e,onClick:i=>{_t.isEditor&&i.preventDefault()}},grabId:n,children:[d.jsx(So,{styles:AM,src:r.data.image,alt:""}),d.jsx(Nt,{styles:kM,children:r.data.name}),d.jsx(Nt,{children:r.data.displayed_price})]}),EM={[f.COMMON]:{display:"flex",alignItems:"center",gap:16,textDecoration:"none",color:"inherit",padding:"8px 40px",borderTop:"1px solid #E2E2E2"},[f.MOBILE]:{padding:"8px 20px"}},MM={[f.COMMON]:{background:"#F4F4F4"}},AM={[f.COMMON]:{width:48,height:48,objectFit:"cover",borderRadius:3}},kM={[f.COMMON]:{flexGrow:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},TM=({collection:e,styles:t,fetchMore:n})=>{const{isVisible:r,elementRef:i}=V0(),o=SM();return b.useEffect(()=>{r&&n()},[r]),e.items?d.jsxs(T,{"data-auto":"search-items-group",children:[e.items.map(a=>d.jsx(H0,{href:o({collectionPath:e.path,itemUrl:a.page_item_url}),styles:t,item:a,grabId:"collection-search-visible-dropdown-item"},a.data.identifier)),d.jsx("div",{"data-auto":"end-of-items-container",ref:i})]}):null},NM=({styles:e})=>d.jsx(T,{styles:PM,children:d.jsx(H0,{item:{data:{identifier:"",name:"",image:"",displayed_price:""},page_item_url:""},styles:e,grabId:"collection-search-widget-dropdown-item"})}),PM={[f.COMMON]:{display:"none"}},jM=({collections:e,styles:t,isResultsShown:n,isLoading:r,fetchMore:i})=>{const o=e.reduce((a,l)=>a+l.items.length,0);return d.jsxs(T,{styles:[IM,t==null?void 0:t.dropdown],"data-grab":"collection-search-widget-dropdown",children:[n&&d.jsxs(d.Fragment,{children:[o>0&&e.map(a=>d.jsx(TM,{collection:a,styles:t,fetchMore:()=>{i(a.name)}},a.name)),o===0&&!r&&d.jsx(T,{styles:RM,children:et.str("ui.runtimessr.collectionSearch.noResults")})]}),d.jsx(NM,{styles:t})]})},IM={[f.COMMON]:{textAlign:"left",overflowY:"auto",maxHeight:"1000px"}},RM={[f.COMMON]:{color:"#a1a1a1",padding:"30px 40px",borderTop:"1px solid #E2E2E2"},[f.MOBILE]:{padding:20}},DM=()=>d.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1629 2.16291C17.529 1.7968 17.529 1.2032 17.1629 0.837087C16.7968 0.470971 16.2032 0.470971 15.8371 0.837087L9 7.67417L2.16291 0.837087C1.7968 0.470971 1.2032 0.470971 0.837087 0.837087C0.470971 1.2032 0.470971 1.7968 0.837087 2.16291L7.67417 9L0.837087 15.8371C0.470971 16.2032 0.470971 16.7968 0.837087 17.1629C1.2032 17.529 1.7968 17.529 2.16291 17.1629L9 10.3258L15.8371 17.1629C16.2032 17.529 16.7968 17.529 17.1629 17.1629C17.529 16.7968 17.529 16.2032 17.1629 15.8371L10.3258 9L17.1629 2.16291Z",fill:"currentColor"})}),LM=({inputRef:e,value:t,placeholder:n,styles:r,onChange:i,onFocus:o,onClose:a})=>{const[l,s]=b.useState(!1);return d.jsxs(T,{styles:$M,onKeyDown:u=>{u.key==="Tab"&&s(!0)},onMouseDown:()=>s(!1),children:[d.jsx(ys,{ref:e,styles:[BM,l?{}:FM,r==null?void 0:r.input,De(Wt(r==null?void 0:r.inputFocus),{pseudoSelector:"focus"})],"data-grab":"collection-search-widget-input",value:t,placeholder:n,onChange:i,onFocus:o,increaseSpecificity:!0,role:"search","aria-label":"search products","data-auto":"collection-search-input"}),d.jsx(xo,{styles:zM,onClick:a,"data-auto":"search-popup-close-btn",children:d.jsx(DM,{})})]})},$M={[f.COMMON]:{display:"flex",alignItems:"center",padding:40},[f.MOBILE]:{padding:20}},BM={[f.COMMON]:{display:"block",width:"100%",padding:"5px"}},FM={[f.COMMON]:{outline:"none"}},zM={[f.COMMON]:{display:"flex",color:"#313131",marginInlineStart:"15px"}},K0=2;let gc;const UM=async()=>{var e,t,n;gc=await((n=(t=(e=We())==null?void 0:e.dmAPI)==null?void 0:t.loadCollectionsAPI)==null?void 0:n.call(t))},ch=async()=>(gc||await UM(),gc),WM=({collectionsToSearch:e})=>{const[t,n]=b.useState(""),[r,i]=b.useState(!1),[o,a]=b.useState(!1),[l,s]=b.useState(()=>ou(e)),u=b.useCallback(Ld(async S=>{try{const _=await ch();if(S.length_.storeData(v).pageSize(50).search(S).get()));s(v=>v.map((m,g)=>{var C,E;const w=(C=x[g])==null?void 0:C.values;return{...m,items:w||[],page:((E=x[g])==null?void 0:E.page)||{}}}))}catch{Te.warn({message:"Error in collection search widget on search",tags:["__new-runtime__"]})}a(!1)},500),[]);return{inputValue:t,isDropdownOpen:r,isLoading:o,collections:l,onInputChange:S=>{const _=S.target.value;n(_),a(!0),u(_.trim())},onInputFocus:()=>{i(!0)},clearSearchState:()=>{n(""),s(ou(e))},fetchMore:async S=>{var x;const _=(x=l.find(v=>v.name===S))==null?void 0:x.page;if(!(o||!_||_.pageNumber+1===_.totalPages)){a(!0);try{const v=await ch();if(!v){a(!1);return}const m=await v.storeData(S).pageSize(50).pageNumber(_.pageNumber+1).search(t).get();s(g=>g.map(w=>{if(w.name!==S)return w;const C=m==null?void 0:m.values;return{...w,items:[...w.items,...C],page:m==null?void 0:m.page}}))}catch{Te.warn({message:"Error in collection search widget on fetch more",tags:["__new-runtime__"]})}a(!1),Te.info(`Fetch more items in the collection search widget, page ${_.pageNumber+1}`)}}}},ou=e=>e.map(({name:t,path:n})=>({name:t,path:n,items:[],page:{pageNumber:0,totalPages:0}})),VM=({portalRootSelector:e="#site_content",children:t})=>{const[n,r]=b.useState(null);return b.useEffect(()=>{var a,l,s,u;const i=(l=(a=We())==null?void 0:a.document)==null?void 0:l.createElement("div"),o=(u=(s=We())==null?void 0:s.document)==null?void 0:u.querySelector(e);return o==null||o.appendChild(i),r(i),()=>{i&&(o==null||o.removeChild(i))}},[]),n?Po.createPortal(t,n):null};function HM({portalRootSelector:e=".dmContent",children:t}){const n=b.useMemo(()=>{var r,i;return(i=(r=We())==null?void 0:r.document)==null?void 0:i.querySelector(e)},[]);return n?Po.createPortal(t,n):null}const KM=({inputRef:e,widgetId:t,placeholder:n,styles:r,collectionsToSearch:i,closeSearchPopup:o,animatedBlockRef:a,animationState:l})=>{const{inputValue:s,isDropdownOpen:u,isLoading:h,collections:p,onInputChange:c,onInputFocus:y,clearSearchState:S,fetchMore:_}=WM({collectionsToSearch:i}),x=()=>{S(),o()};return d.jsx(VM,{children:d.jsxs(T,{styles:GM,"data-grab":`collection-search-widget-portal-${t}`,children:[d.jsx(T,{style:qM[l],styles:YM,onClick:x}),d.jsxs(T,{styles:[QM,r==null?void 0:r.popup],ref:a,style:XM[l],"data-grab":"collection-search-widget-popup",children:[d.jsx(LM,{inputRef:e,styles:r,value:s,placeholder:n,onChange:c,onFocus:y,onClose:x}),d.jsx(jM,{collections:p,styles:r,isResultsShown:u&&s.length>=K0,isLoading:h,fetchMore:_})]}),d.jsx(_M,{styles:r})]})})},GM={[f.COMMON]:{position:"fixed",top:0,left:0,right:0,zIndex:200}},YM={[f.COMMON]:{display:"none",background:"rgba(0, 0, 0, 0.4)",position:"absolute",top:0,left:0,right:0,height:"100vh"}},QM={[f.COMMON]:{position:"relative",background:"#fff",display:"flex",flexDirection:"column",maxHeight:"100vh",transition:"all 0.2s linear",marginTop:"-200px",opacity:0}},XM={entering:{marginTop:0,opacity:1},entered:{marginTop:0,opacity:1},exiting:{marginTop:"-200px",opacity:0},exited:{marginTop:"-200px",opacity:0,height:0,overflow:"hidden"}},qM={entering:{display:"block"},entered:{display:"block"},exiting:{display:"none"},exited:{display:"none"}},ZM=500,JM=({widgetId:e,placeholder:t,_styles:n,collectionsToSearch:r=[{name:"catalog_product",path:"product"}]})=>{const i=b.useRef(null),[o,a]=b.useState(!1),l=b.useRef(null),s=h=>{var p;_t.isEditor||(a(!0),(p=l==null?void 0:l.current)==null||p.focus(),h.preventDefault())},u=()=>{a(!1)};return d.jsxs("div",{children:[d.jsx(W0,{styles:n,openSearchPopup:s}),d.jsx(Sn,{nodeRef:i,in:o,timeout:ZM,children:h=>d.jsx(KM,{inputRef:l,widgetId:e,placeholder:t,styles:n,collectionsToSearch:r,animatedBlockRef:i,animationState:h,closeSearchPopup:u})})]})},eA=wt({Comp:JM,componentName:"RuntimeSearch"}),tA=e=>d.jsx(eA,{...e});var Ud=(e=>(e.ONE_OF="ONE_OF",e.BETWEEN="BETWEEN",e))(Ud||{}),Eo=(e=>(e.CATEGORY_ID="category_ids",e.PRICE="price",e))(Eo||{}),vc=(e=>(e.NEWEST="created_at",e.NAME="name",e.PRICE="price",e))(vc||{});const G0=Se.createContext({styles:{}});function Qo(){return Xo().styles}function Xo(){return Se.useContext(G0)}function nA(){var e;return!!((e=globalThis==null?void 0:globalThis.document)!=null&&e.querySelector('[data-element-type="dSnipcartProductGalleryId"]'))}const Wd={menuSelectors:{wrapper:null,list:"filter-sort-menu-list",divider:"filter-sort-menu-divider",closeIcon:"filter-sort-menu-closeIcon"},inputsSelectors:{slider:"range-slider-",input:"filterItem-input-icon-wrapper",inputIcon:"input-icon",inputLabel:"filterItem-input-label"},textSelectors:{displayName:"filter-sort-menu-displayName",title:"filter-sort-menu-item-title"}},yc=Wd.menuSelectors,pr=Wd.inputsSelectors,Y0=Wd.textSelectors,{slider:rA}=pr,iA=5;function oA(e){const{item:t,currentValues:n,onChange:r}=e,{min:i,max:o,displayPrice:a}=t.filtersData,{sign:l,direction:s="ltr"}=sA(a),{inputsStyle:u}=Qo(),h=p=>{p.start===i&&p.end===o?r(void 0):r(p)};return d.jsx(QE,{min:i,max:o,currentValues:n,onChange:h,minRange:iA,sign:l,trackDataGrab:`${rA}${t.fieldId}`,labelsWrapperStyles:aA,labelStyles:[lA(s),u==null?void 0:u.inputLabel],trackStyles:u==null?void 0:u.slider,"data-auto":`range-slider-${t.fieldId}`})}const aA={[f.COMMON]:{fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"19px"}};function lA(e){return{[f.COMMON]:{display:"flex",flexDirection:e==="rtl"?"row":"row-reverse"}}}function sA(e){const t={},n=e.match(/[^\d.,]/);if(n===null)return t;const r=n[0],i=e.indexOf(r);if(i===0)t.direction="ltr";else if(i===e.length-1)t.direction="rtl";else return t;return t.sign=r,t}const uA=b.memo(oA),cA={labelDataGrab:pr.inputLabel,iconWrapperDataGrab:pr.input,iconDataGrab:pr.inputIcon};function dA(e){const{item:t,currentValues:n,onChange:r}=e,{inputsStyle:i}=Qo(),o=new Set(n||[]);function a(l,s){o[s?"add":"delete"](l),r([...o])}return d.jsx(d.Fragment,{children:Object.entries(t.filtersData).map(([l,s])=>{const u=o.has(s),h=`${t.fieldId}_${l}`;return d.jsx(OE,{"data-auto":h,dataGrabs:cA,checked:u,onChange:p=>{a(s,p)},label:l,inputStyles:i==null?void 0:i.input,labelWrapperStyles:i==null?void 0:i.inputLabel,inputIconStyles:i==null?void 0:i.inputIcon,labelStyles:[fA,i==null?void 0:i.inputLabel]},h)})})}const fA={[f.COMMON]:{minHeight:"31px"}};function Q0({title:e,children:t,dataAuto:n}){const{styles:r}=Xo(),{menuStyle:i,textStyle:o}=r;return d.jsxs(d.Fragment,{children:[d.jsx(mE,{title:e,styles:{title:o==null?void 0:o.title,headerWrapper:o==null?void 0:o.title},isAccordionOpen:!0,"data-auto":n,dataGrabs:{titleDataGrab:Y0.title},children:t}),d.jsx(Nt,{styles:[pA,i==null?void 0:i.divider,De({[f.COMMON]:{display:"none"}},{innerSelector:"&:last-child"})],"data-grab":yc.divider})]})}const pA={[f.COMMON]:{width:"100%",backgroundColor:"#e1e1e1",marginBlock:"24px",display:"block",height:"2px",minHeight:"2px"}};function hA(e){return d.jsx(Q0,{title:e.item.fieldDisplayName,dataAuto:`filter-item-${e.item.fieldId}`,children:e.type===Ud.BETWEEN?d.jsx(uA,{...e}):d.jsx(dA,{...e})})}function mA({values:e,currentSelection:t,onChange:n}){const{inDesignMode:r,hasProducts:i,currentPageType:o}=Xo();return d.jsx(d.Fragment,{children:e.map(a=>{var h;if(a.disabled&&!r||gA({filterField:a,hasProducts:i,currentPageType:o}))return null;const l=a.fieldId,s=a.filterType||Ud.ONE_OF,u=((h=t[l])==null?void 0:h.selectedValues)||void 0;return d.jsx(hA,{item:a,type:s,currentValues:u,onChange:p=>{n({...a,filterType:s,selectedValues:p})}},l)})})}function gA({filterField:e,hasProducts:t,currentPageType:n}){const r=e.fieldId;if(r===Eo.CATEGORY_ID)return n==="STORE_CATEGORY_PAGE"||Object.keys(e.filtersData).length===0;if(r===Eo.PRICE)return!t}const vA={labelDataGrab:pr.inputLabel,outerCircleDataGrab:pr.input,innerCircleDataGrab:pr.inputIcon},yA=[vc.NEWEST,vc.PRICE];function _A({name:e,values:t,currentSelection:n,onChange:r}){const{inDesignMode:i,isPremiumWidget:o}=Xo(),{inputsStyle:a}=Qo();return d.jsx(Q0,{title:e,dataAuto:"menu-item-sort",children:t.map(l=>{if(!o&&yA.includes(l.fieldId)||l.disabled&&!i)return null;const s=`${l.fieldId}_${l.sortDirection}`,u=`${n.fieldId}_${n.sortDirection}`;return d.jsx(zd,{value:s,selectedValue:u,label:l.fieldDisplayName,onChange:()=>r(l),labelWrapperStyles:[wA,a==null?void 0:a.inputLabel],labelStyles:a==null?void 0:a.inputLabel,inputStyles:a==null?void 0:a.input,inputIconStyles:a==null?void 0:a.inputIcon,"data-auto":s,dataGrabs:vA},s)})})}const wA={[f.COMMON]:{minHeight:"31px"}},SA=b.memo(_A),{str:dh}=et;function OA({props:e,filterSortLogic:t}){const{menuStyle:n,textStyle:r}=Qo(),{inDesignMode:i,isPremiumWidget:o}=Xo(),{sortableFields:a,filterableFields:l,buttonText:s,isFilterSectionHidden:u,styleWrapperSelector:h,setIsMenuOpen:p}=e,{currentSelection:c,onChangeFilter:y,showSortSection:S,onChangeSort:_,clearCollectionValues:x,selectedCount:v}=t,m=o&&(!u||i),g=S||i;return d.jsx(HM,{children:d.jsxs(T,{styles:[CA,n==null?void 0:n.wrapper],"data-auto":"filter-sort-floating-menu","data-grab":h,children:[d.jsxs(K,{tag:J.h3,"data-grab":Y0.displayName,styles:[xA,r==null?void 0:r.displayName],children:[d.jsx(Nt,{styles:bA,children:s}),d.jsx(ih,{styles:[MA,n==null?void 0:n.closeIcon],dataGrab:yc.closeIcon,onClick:()=>p(!1)})]}),v>0&&d.jsxs(K,{tag:J.h4,styles:[EA,r==null?void 0:r.title],domAttrs:{onClick:x},"data-auto":"clear-filters",children:[d.jsx(Nt,{children:dh("widget.filtersort.clear-all")}),d.jsx(ih,{size:8,styles:{[f.COMMON]:{marginInlineStart:"4px",display:"grid",alignItems:"center"}}})]}),d.jsxs(T,{className:"dmNewParagraph",styles:[AA,kA,n==null?void 0:n.list],"data-grab":yc.list,children:[g&&d.jsx(SA,{name:dh("widget.filtersort.sort-by.title"),values:a,onChange:_,currentSelection:{sortDirection:c.sortDirection||"asc",fieldId:c.sortBy||""}}),m&&d.jsx(mA,{values:l,currentSelection:c.filters,onChange:y})]})]})})}const CA={[f.COMMON]:{cursor:"auto",height:"100%",position:"fixed",right:0,top:0,bottom:0,backgroundColor:"#ffffff",color:"#000000",zIndex:999,display:"flex",flexDirection:"column",border:"1px solid #000",width:"418px",padding:"40px",maxWidth:"100%",minWidth:"300px",boxSizing:"border-box"}},xA={[f.COMMON]:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlockStart:"0",marginBlockEnd:"26px",lineHeight:"29px",width:"100%"}},bA={[f.COMMON]:{flex:1,margin:0}},EA={[f.COMMON]:{lineHeight:"normal",textTransform:"uppercase",marginBlockStart:"calc(50px - 26px)",marginBlockEnd:"50px",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"}},MA={[f.COMMON]:{cursor:"pointer",color:"#333",display:"flex",padding:"10px",margin:"-10px",boxSizing:"border-box"}},AA={[f.COMMON]:{overflowY:"auto",height:"100%",display:"flex",flexDirection:"column",margin:0,padding:0}},kA=De({[f.COMMON]:{width:"10px",backgroundColor:"transparent"}},{innerSelector:"&::-webkit-scrollbar"}),TA="fs-btn-wrapper";function NA(e){var l;const{triggerStyle:t}=Qo(),{showWarning:n,onClick:r}=e,{iconName:i,showIcon:o}=(t==null?void 0:t.iconProps)||{},a=e.selectedCount?`${e.text} (${e.selectedCount})`:e.text;return d.jsxs(T,{styles:PA,onClick:r,"data-auto":TA,children:[d.jsx(ms,{styles:{root:[jA,t==null?void 0:t.root],rootHover:t==null?void 0:t.rootHover,text:t==null?void 0:t.text,rootHoverText:t==null?void 0:t.rootHoverText,buttonTypeCSSClass:t==null?void 0:t.buttonTypeCSSClass,icon:t==null?void 0:t.icon},buttonContent:{text:a,iconClassNames:[((l=t==null?void 0:t.iconProps)==null?void 0:l.iconName)||""]},dataGrab:e.styleWrapperSelector,iconClass:o&&i,showHoverEffect:e.showButtonHoverEffect}),n&&d.jsx(fE,{size:24})]})}const PA={[f.COMMON]:{position:"relative",width:"100%",height:"100%"}},jA={[f.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",minHeight:"32px",padding:"8px 14px",minWidth:"fit-content",textAlign:"center",margin:0}};function IA(e){const[t,n]=b.useState(null);return b.useEffect(()=>{if(typeof window>"u")return;const{collectionsFilterService:r}=window.runtime||{};r&&n({setCollectionSort:(i,o)=>r.setCollectionSort(e,i,o),setCollectionFilter:(i,o)=>r.setCollectionFilter(e,i,o),onCollectionValueChange:r.onCollectionValueChange,clearCollectionValues:()=>r.clearCollectionValues(e)})},[]),t}function RA(e,t){const[n,r]=b.useState({filters:{},sortBy:"",sortDirection:"asc"}),i=IA(e);b.useEffect(()=>{async function h(){if(i)try{return await i.onCollectionValueChange(e,c=>{r(c)})}catch(c){Te.error({message:"Failed to execute filterService.onCollectionValueChange",errorMessage:c==null?void 0:c.toString(),tags:["FilterSortMenu","updateCurrentSelection"]})}}let p=()=>{};return h().then(c=>{c&&(p=c)}),p},[i]);const o=b.useCallback(h=>{i==null||i.setCollectionFilter(h.fieldId,h)},[i]),a=b.useCallback(h=>{i==null||i.setCollectionSort(h.fieldId,h.sortDirection)},[i]),l=b.useCallback(()=>{i==null||i.clearCollectionValues()},[i]),s=b.useMemo(()=>{var _,x;let h=0;const{sortBy:p,filters:c}=n,y=(_=c[Eo.PRICE])==null?void 0:_.selectedValues,S=(x=c[Eo.CATEGORY_ID])==null?void 0:x.selectedValues;return p&&h++,y&&h++,Array.isArray(S)&&(h+=S.length),h},[n]);if(!i)return null;const u=!t.isSortSectionHidden&&t.sortableFields.some(h=>!h.disabled);return{currentSelection:n,onChangeFilter:o,showSortSection:u,onChangeSort:a,clearCollectionValues:l,selectedCount:s}}function DA(e){const[t,n]=b.useState(!1),[r,i]=b.useState(!1),{isInEditor:o}=Md(),{filterableFields:a=[],sortableFields:l,collectionValue:s,isSortSectionHidden:u,hasNativeStore:h}=e,p=RA(s,{isSortSectionHidden:u,sortableFields:l}),c=b.useMemo(()=>e.isFilterSectionHidden&&e.isSortSectionHidden?!0:![...e.isFilterSectionHidden?[]:a,...e.isSortSectionHidden?[]:l].some(v=>!v.disabled),[a,l]);b.useEffect(()=>{const _=!h||!nA();i(!!o&&_),o&&t&&n(!1)},[o]);const y=()=>{_t.isEditor||n(_=>!_)},S=(t||!!e.menuPanelMode)&&p&&!c;return{filterSortLogic:p,onBtnClick:y,showWarning:r,setIsMenuOpen:n,shouldRenderMenu:S}}const LA=e=>{const{widgetId:t,menuPanelMode:n,premiumWidget:r,currentPageType:i,_styles:o={}}=e,{filterSortLogic:a,onBtnClick:l,showWarning:s,setIsMenuOpen:u,shouldRenderMenu:h}=DA(e),p={styles:o,menuPanelMode:n,inDesignMode:n==="DESIGN",hasProducts:e.hasProducts,isPremiumWidget:r,currentPageType:i};return d.jsxs(G0.Provider,{value:p,children:[d.jsx(T,{styles:$A,children:d.jsx(NA,{onClick:l,showWarning:s,selectedCount:a==null?void 0:a.selectedCount,text:e.buttonText,styleWrapperSelector:`filter-sort-trigger-${t}`,showButtonHoverEffect:e.showButtonHoverEffect})}),h&&a&&d.jsx(OA,{filterSortLogic:a,props:{...e,styleWrapperSelector:`filter-sort-menu-${t}`,setIsMenuOpen:u}})]})},$A={[f.COMMON]:{width:"100%",height:"100%",minWidth:"fit-content"}},BA=wt({Comp:LA,logProps:!0,componentName:"FilterSort",additionalInfoToLog:{tag:"native-ecom"}}),Vd={bgWhite:"#ffffff",borderColor:"#ced6d9",headerColor:"#f5f5f7",iconColor:"#616C79",primaryTextColor:"#313131",secondaryTextColor:"#828894"},FA=M0("select",!0),fh=pe.option` &:not(:disabled) { color: initial; } background-color: ${Vd.bgWhite}; `,zA=({selectedValue:e,placeholder:t,options:n=[],onChange:r,styles:i})=>{const o=b.useRef(null),{insideEditor:a}=gs(),[l,s]=b.useState((e==null?void 0:e.value)||"");b.useEffect(()=>{const p=o.current;if(p){const c=y=>{a()&&y.preventDefault()};return p.addEventListener("mousedown",c),()=>{p.removeEventListener("mousedown",c)}}},[]);const u=b.useCallback(({target:p})=>{const c=n.find(({value:y})=>y===p.value);c&&(s(p.value),r==null||r(c))},[]),h=[UA,i,VA,!l&&{[f.COMMON]:{color:Vd.secondaryTextColor}}];return d.jsx(T,{styles:WA,className:"dropdown-component",children:d.jsxs(FA,{ref:o,required:!0,value:l,onChange:u,"data-auto":"dropdown-component","data-grab":"dropdown-component",className:"dropdown",styles:h,children:[d.jsx(fh,{value:"",disabled:!0,hidden:!0,children:t}),n.map(({value:p,label:c,disabled:y})=>d.jsx(fh,{value:p,disabled:y,"data-auto":"select-option",children:c},p))]})})},UA={[f.COMMON]:{width:"100%",height:"100%",margin:"0",display:"flex",alignItems:"center",boxSizing:"border-box",paddingInlineStart:"8px",border:`1px solid ${Vd.borderColor}`,borderRadius:"3px",outline:"none",boxShadow:"none",lineHeight:"normal",appearance:"none",backgroundColor:"inherit",cursor:"pointer"}},WA={[f.COMMON]:{position:"relative",cursor:"pointer",width:"100%",height:"30px",maxHeight:"40px",border:"0px solid"}},VA={[f.COMMON]:{backgroundImage:`url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.5769 5.5L12.5 6.4375L8.5 10.5L4.5 6.4375L5.42308 5.5L8.5 8.625L11.5769 5.5Z' fill='%23828894'/%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"calc(100% - 4px) center",":dir(rtl)":{backgroundPosition:"4px"}}},ph=({title:e,dropdownPlaceholder:t,styles:n,direction:r,...i})=>{const o=b.useCallback(a=>{var l;a&&!a.dir&&(a.dir=((l=getComputedStyle(a))==null?void 0:l.direction)||"ltr")},[]);return d.jsxs(T,{styles:HA,"data-grab":"dropdown-wrapper","data-auto":"dropdown-wrapper",className:"dropdown-wrapper",dir:r,ref:o,children:[e&&d.jsx(K,{tag:J.h5,"data-auto":"dropdown-title","data-grab":"dropdown-title",className:"dropdown-title",styles:[KA,n==null?void 0:n.title],children:e}),d.jsx(zA,{placeholder:t,styles:n==null?void 0:n.fields,...i})]})},HA={[f.COMMON]:{width:"100%",display:"flex",flexDirection:"column","*":{userSelect:"none"}}},KA={[f.COMMON]:{textAlign:"start",marginBlockEnd:"8px",lineHeight:"100%",marginTop:"0",direction:"inherit"}};var _c=(e=>(e.DROPDOWN="DROPDOWN",e.RADIOBUTTON="RADIOBUTTON",e))(_c||{});const GA=({productState:e,editorEmptyMessage:t,dropdownPlaceholder:n,renderType:r,_styles:i})=>{const o=D0({stylesInput:i,monitorKey:"options.variations"}),a=Object.entries((e==null?void 0:e.dropdownOptions)||{});if(a.length===0)return _t.isEditor&&t?d.jsx("div",{children:t}):d.jsx("div",{});const l=QA(r);return d.jsx(T,{styles:[YA,o==null?void 0:o.wrapper],"data-auto":"options-variations","data-grab":"options-variations",className:"options-variations",children:a.map(([s,u])=>{var h,p;return d.jsx(l,{selectedValue:e.getSelectedField(s),options:u,title:s,onChange:c=>{e.updateVariation(s,c.value.toString())},direction:(p=(h=o==null?void 0:o.wrapper)==null?void 0:h.common)==null?void 0:p.direction,dropdownPlaceholder:n,styles:o},`d_option_${s}`)})})},YA={[f.COMMON]:{display:"flex",flexDirection:"column",height:"fit-content",width:"100%",padding:"4px",gap:"24px",border:"0px solid"}},QA=e=>{switch(e){case _c.RADIOBUTTON:return TE;case _c.DROPDOWN:return ph;default:return ph}},XA=wt({Comp:Yo(GA),componentName:"RuntimeOptionsVariations",additionalInfoToLog:{tag:"native-ecom"}}),X0=pe.textarea(({styles:e,increaseSpecificity:t})=>wn([qA,e],t)),qA={[f.COMMON]:{padding:"unset",margin:"unset",backgroundColor:"unset",border:"1px solid #000000",color:"#000000",minHeight:"unset",height:"unset",fontSize:"unset",resize:"none"}},ZA=({error:e,dataAuto:t="field-error",tag:n=J.paragraph,styles:r,...i})=>d.jsxs(K,{"data-auto":t,tag:n,...i,styles:[JA,r],children:[d.jsx(hE,{size:16}),e]}),JA={[f.COMMON]:{display:"flex",alignItems:"center",gap:"6px",padding:"2px",color:"#DC1C1C",fontSize:"12px",margin:0}};function ek({text:e,dataGrab:t,dataAuto:n="field-label",styles:r,required:i,...o}){return d.jsxs($d,{styles:[tk,r],"data-grab":t,"data-auto":n,...o,children:[e," ",i&&d.jsx(q0,{children:"*"})]})}const tk={[f.COMMON]:{textTransform:"capitalize",margin:0,boxSizing:"border-box"}},q0=pe.span` color: #e33e3b; `,Z0=({valueLength:e,maxLength:t,dataGrab:n,styles:r,dataAuto:i="char-counter",tag:o=J.paragraph})=>{const a=t!==void 0?`${e}/${t}`:`${e}`;return d.jsx(K,{styles:[nk,r],"data-auto":i,"data-grab":n,tag:o,children:a})},nk={[f.COMMON]:{margin:0,boxSizing:"border-box"}},rk={[f.COMMON]:{boxSizing:"border-box"}},ik={[f.COMMON]:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",direction:"inherit",marginBlockEnd:"8px"}},J0={[f.COMMON]:{width:"100%",padding:"8px",height:"86px",boxSizing:"border-box",borderRadius:"3px",border:"1px solid rgba(201, 202, 205, 1)"}},ok={[f.COMMON]:{fontFamily:"Open Sans",fontSize:"11px",fontWeight:"400",lineHeight:"22px",color:"rgba(130, 136, 148, 1)"}},ak={[f.COMMON]:{marginBlockStart:"4px"}};function lk({name:e,id:t=e,value:n="",label:r="",error:i=null,showCounter:o=!1,styles:a,dataGrabs:l,dataAuto:s="text-field",onChange:u,labelElement:h,charCounterElement:p,textareaElement:c,...y}){const S=Wt([ok,a==null?void 0:a.placeholder]),_=g=>{u==null||u(g.target.value,g)},x=r&&(h||d.jsx(ek,{text:r,styles:a==null?void 0:a.label,htmlFor:t,required:y.required,dataGrab:l==null?void 0:l.labelDataGrab})),v=o&&(p||d.jsx(Z0,{valueLength:n.length,maxLength:y.maxLength,dataGrab:l==null?void 0:l.counterDataGrab,styles:a==null?void 0:a.counter,dataAuto:`${s}-counter`})),m=c||d.jsx(X0,{id:t,name:e,value:n,"data-grab":l==null?void 0:l.textareaDataGrab,styles:[J0,a==null?void 0:a.textarea,De(S,{innerSelector:"&::placeholder"})],increaseSpecificity:!0,onChange:_,...y});return d.jsxs(T,{"data-auto":s,styles:[rk,a==null?void 0:a.textFieldWrapper],"data-grab":l==null?void 0:l.textFieldWrapperDataGrab,children:[d.jsxs(T,{styles:ik,children:[x,v]}),m,!!i&&d.jsx(ZA,{error:i,styles:ak})]})}const sr={textFieldWrapperDataGrab:"product-customizations-text-field",labelDataGrab:"product-customizations-text-field-label",textareaDataGrab:"product-customizations-text-field-textarea",textareaPlaceholderDataGrab:"product-customizations-text-field-placeholder",counterDataGrab:"product-customizations-text-field-counter"},sk=320,uk=({styles:e,label:t,required:n,valueLength:r,maxLength:i})=>d.jsxs(K,{tag:J.h5,styles:dk,children:[d.jsxs(K,{tag:J.span,styles:[fk,e.inputLabel],"data-grab":sr.labelDataGrab,"data-auto":"product-customizations-text-field-label",children:[t,n&&d.jsx(q0,{children:"*"})]}),d.jsx(Z0,{valueLength:r,maxLength:i,tag:J.span,styles:[pk,e.inputCharacterCounter],dataGrab:sr.counterDataGrab,dataAuto:"product-customizations-text-field-counter"})]}),ck=e=>{var r,i;const{textareaStyles:t,placeholderStyles:n}=b.useMemo(()=>{var a,l;const o=Wt([J0,e.error?mk:{},De({[f.COMMON]:{opacity:0}},{innerSelector:"&::placeholder"}),(a=e.styles)==null?void 0:a.textarea]);return{textareaStyles:o,placeholderStyles:Wt([VC(o,vk),gk,(l=e.styles)==null?void 0:l.placeholder])}},[(r=e.styles)==null?void 0:r.textarea,(i=e.styles)==null?void 0:i.placeholder,e.error]);return d.jsxs(hk,{className:"dmNewParagraph",children:[d.jsx(X0,{...e,styles:t}),!e.value&&d.jsx(K,{styles:n,"data-grab":sr.textareaPlaceholderDataGrab,tag:J.paragraph,children:e.placeholder})]})},dk={[f.COMMON]:{display:"flex",justifyContent:"space-between",margin:0,width:"100%"}},fk={[f.COMMON]:{margin:0}},pk={[f.COMMON]:{margin:0}},hk=pe.div` height: 86px; position: relative; margin: 0; padding: 0; `,mk={[f.COMMON]:{borderColor:"#E33E3B"}},Mr={position:"absolute",top:0,bottom:0,left:0,right:0,boxSizing:"border-box",pointerEvents:"none",margin:0,borderColor:"transparent",overflow:"hidden",color:"rgba(201, 202, 205, 1)"},gk={[f.COMMON]:Mr,[f.MOBILE]:Mr,[f.TABLET]:Mr,[f.DESKTOP]:Mr,[f.MOBILE_IMPLICIT]:Mr,[f.TABLET_IMPLICIT]:Mr},vk=new Set(["border","borderWidth","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingInline","paddingBlock","paddingInlineStart","paddingInlineEnd","paddingBlockStart","paddingBlockEnd"]),yk=({id:e,label:t,hint:n,title:r,value:i="",mandatory:o=!1,maxLength:a=sk,styles:l,error:s,onChange:u,validateField:h})=>{const p=y=>{u(e,y.target.value)},c=()=>{h(e)};return d.jsx(lk,{label:t,placeholder:n,error:s,maxLength:a,styles:{label:l==null?void 0:l.inputLabel,counter:l==null?void 0:l.inputCharacterCounter},dataAuto:"product-customizations-text-field",dataGrabs:sr,labelElement:d.jsx(uk,{styles:{inputLabel:l==null?void 0:l.inputLabel,inputCharacterCounter:l==null?void 0:l.inputCharacterCounter},required:o,label:t,valueLength:i.length,maxLength:a}),textareaElement:d.jsx(ck,{name:r,id:e,value:i,placeholder:n,required:o,error:!!s,onBlur:c,styles:{textarea:l==null?void 0:l.input,placeholder:l==null?void 0:l.inputPlaceholder},"data-grab":sr==null?void 0:sr.textareaDataGrab,increaseSpecificity:!0,onChange:p})})},_k=b.memo(yk),{str:wk}=et,Sk=({productState:{customizations:e},_styles:t})=>e.isEmpty()?_t.isEditor?d.jsx("div",{"data-auto":"product-customizations-placeholder",children:wk("ui.runtimessr.productCustomizations.noCustomizations")}):d.jsx("div",{}):d.jsx(T,{styles:[Ck,t==null?void 0:t.wrapper],"data-auto":"product-customizations","data-grab":"product-customizations",children:e.list.map(n=>Ok(e,n,t))});function Ok(e,t,n){return b.createElement(_k,{...t,key:t.id,styles:n,value:e.values[t.id],error:e.errors[t.id],onChange:e.updateValue,validateField:e.validate})}const Ck={[f.COMMON]:{display:"flex",flexDirection:"column",gap:"24px",width:"100%"}},xk=wt({Comp:Yo(Sk),componentName:"ProductCustomizations",logProps:!0}),{str:er}=et,bk=({option:e,styles:t})=>{const{id:n,name:r,tag_line:i,frequency:o,expiration_count:a,interval:l,plan_displayed_price:s}=e,u=a&&l&&a*l;return d.jsxs(d.Fragment,{children:[d.jsx(K,{tag:J.h4,"data-grab":"price-name",styles:[Ek,t==null?void 0:t.name],children:r}),i&&d.jsx(K,{tag:J.h6,"data-grab":"price-tagLine",styles:[Mk,t==null?void 0:t.tagLine],children:i}),d.jsxs(T,{children:[d.jsxs(K,{tag:J.h4,"data-grab":"price-and-frequency",styles:[Ak,t==null?void 0:t.priceAndFrequency],children:[s,o&&d.jsxs(d.Fragment,{children:[" ","/"," ",l&&l>1?d.jsxs(d.Fragment,{children:[l," ",er(`ui.runtimessr.productPriceOptions.frequencyPlural.${o.toLowerCase()}`)]}):d.jsx(d.Fragment,{children:er(`ui.runtimessr.productPriceOptions.frequency.${o.toLowerCase()}`)})]})]}),n!==_o&&d.jsx(K,{tag:J.h6,"data-grab":"expiration",styles:[kk,t==null?void 0:t.expiration],children:u&&o?d.jsxs(d.Fragment,{children:[er("ui.runtimessr.productPriceOptions.expiresAfter")," ",u," ",er(`ui.runtimessr.productPriceOptions.frequency${u>1?"Plural":""}.${o.toLowerCase()}`)]}):er("ui.runtimessr.productPriceOptions.autoRenew")}),e.tax_percentage&&d.jsxs(T,{styles:Tk,"data-auto":"price-vat",children:[d.jsx(K,{"data-auto":"vat-msg",children:er("ui.runtimessr.productPrice.omnibus.vat",{vatPercentage:e.tax_percentage.toString()})}),d.jsx(K,{"data-auto":"vat-desc",children:er("ui.runtimessr.productPrice.omnibus.total.price.might.change")})]})]})]})},Ek={[f.COMMON]:{paddingBlockEnd:4,margin:0}},Mk={[f.COMMON]:{paddingBlockEnd:8,margin:0}},Ak={[f.COMMON]:{paddingInlineEnd:8,margin:0,display:"inline"}},kk={[f.COMMON]:{margin:0,display:"inline"}},Tk={[f.COMMON]:{fontSize:"13px",margin:"0",color:"#939393",lineHeight:"15px"}},Nk=({productState:e,_styles:t})=>!e||!e.paymentPlanOptions.length?null:d.jsxs(T,{"data-auto":"price-options-widget",children:[d.jsx(K,{styles:[Pk,t==null?void 0:t.title],tag:J.h4,grabId:"price-options-title",children:et.str("ui.runtimessr.productPriceOptions.title")}),d.jsx(T,{styles:jk,children:e.paymentPlanOptions.map(n=>{var r;return d.jsx(zd,{"data-grab":"price-option","data-auto":"price-option",value:n.id,selectedValue:((r=e.selectedPaymentPlan)==null?void 0:r.id)||"",label:d.jsx(bk,{option:n,styles:t}),labelTag:J.div,onChange:()=>{e.selectPaymentPlanOption(n)},labelWrapperStyles:[Ik,t==null?void 0:t.option],labelStyles:Rk,inputStyles:t==null?void 0:t.input,inputIconStyles:t==null?void 0:t.inputIcon},n.id)})})]}),Pk={[f.COMMON]:{paddingBottom:8,margin:0}},jk={[f.COMMON]:{display:"flex",flexFlow:"column",gap:16}},Ik={[f.COMMON]:{border:"1px solid #CED6D9",borderRadius:3,padding:16,minHeight:67,gap:16}},Rk={[f.COMMON]:{display:"block",textTransform:"none"}},Dk=wt({Comp:Yo(Nk),componentName:"RuntimeProductPriceOptions",logProps:!0}),{str:Lk}=et;function $k({productState:e,styles:t}){var a;const n=e.selectedVariation||e.productData.variations[0],r=n==null?void 0:n.lowest_prices;if(!r)return null;const i=((a=e.selectedPaymentPlan)==null?void 0:a.id)||_o,o=r.find(l=>(l.plan_id||_o)===i);return d.jsx(T,{styles:t,"data-grab":"product-lowest-price","data-auto":"product-lowest-price",children:o&&d.jsx(K,{tag:J.paragraph,"data-auto":`low_price_${o.displayed_price}`,styles:Bk,children:Lk("ui.runtimessr.productPrice.omnibus.last.price",{period:o.period.toString(),displayedPrice:o.displayed_price})})})}const Bk={[f.COMMON]:{margin:0}},{str:hh}=et;function Fk({productState:e,styles:t}){var o,a;const n=e.selectedVariation||e.productData.variations[0],r=(o=n==null?void 0:n.tax_percentage)==null?void 0:o.toString();return((a=e.productData.is_tax_included)==null?void 0:a.toString())==="true"&&r?d.jsxs(T,{styles:[t,zk],"data-auto":"price-vat",children:[d.jsx(K,{"data-auto":"vat-msg",children:hh("ui.runtimessr.productPrice.omnibus.vat",{vatPercentage:r})}),d.jsx(K,{"data-auto":"vat-desc",children:hh("ui.runtimessr.productPrice.omnibus.total.price.might.change")})]}):null}const zk={[f.COMMON]:{marginBlockEnd:"8px"}},Uk=({_styles:e,productState:t})=>{var o;const n=t==null?void 0:t.productData;if(!n)return null;const r=(o=t.selectedPaymentPlan)==null?void 0:o.frequency,i=n.displayed_compare_at;return d.jsxs(T,{"data-auto":"product-price-widget","data-grab":"product-price-frame",styles:e==null?void 0:e.frame,children:[d.jsx(K,{tag:J.h4,"data-grab":"product-compare-at-price",styles:[i?Vk:Wk,e==null?void 0:e.compareAtPrice],children:d.jsx(Nt,{styles:Hk,children:n.displayed_compare_at})}),d.jsx(K,{tag:J.h4,"data-grab":"product-price",styles:[Kk,e==null?void 0:e.price],children:n.displayed_price}),d.jsx(K,{tag:J.h4,"data-grab":"product-frequency",styles:[Gk,e==null?void 0:e.frequency],children:r&&d.jsxs(d.Fragment,{children:["/",et.str(`ui.runtimessr.productPriceOptions.frequency.${r.toLowerCase()}`)]})}),d.jsx(Fk,{productState:t,styles:[e==null?void 0:e.compareAtPrice,mh]}),i&&d.jsx($k,{productState:t,styles:[e==null?void 0:e.compareAtPrice,mh]})]})},Wk={[f.COMMON]:{display:"none"}},Vk={[f.COMMON]:{display:"inline",paddingRight:8,margin:0}},Hk={[f.COMMON]:{textDecoration:"line-through"}},Kk={[f.COMMON]:{display:"inline",margin:0}},Gk={[f.COMMON]:{display:"inline",margin:0}},mh={[f.COMMON]:{fontSize:"13px",margin:0},[f.DESKTOP]:{fontSize:"13px",margin:0}},Yk=wt({Comp:Yo(Uk),componentName:"RuntimeProductPrice",additionalInfoToLog:{tag:"native-ecom"}});var e1=(e=>(e.Slide="slide",e.Fade="fade",e))(e1||{});const me={LAYOUT_1:"LAYOUT_1",LAYOUT_2:"LAYOUT_2",LAYOUT_3:"LAYOUT_3",LAYOUT_4:"LAYOUT_4",LAYOUT_5:"LAYOUT_5",LAYOUT_6:"LAYOUT_6",LAYOUT_3_B:"LAYOUT_3_B"};function Qk(e){return e?Object.values(e).some(t=>t!=null):!1}const Xk=e=>{const t=[qk,e.styles];return Qk(e.linkFunctionalityDomAttributes)?d.jsx(k0,{...e,linkFunctionalityDomAttributes:e.linkFunctionalityDomAttributes,styles:t}):d.jsx(T,{...e,styles:t})},qk={[f.COMMON]:{width:"100%",height:"100%",position:"relative",display:"block",overflow:"hidden"}};var Bi=(e=>(e.AS_ELEMENT="AS_ELEMENT",e.BACKGROUND="BACKGROUND",e.AS_CONTENT_ELEMENT="AS_CONTENT_ELEMENT",e))(Bi||{});const Zk=e=>{var m;const{styles:t,imageLayout:n="BACKGROUND",uuid:r,title:i,desc:o,button:a,media:l,linkDomAttributes:s,showButton:u,contentAnimationTypeCssClass:h,contentAnimationMode:p,imgCssObjectPositionValue:c,showButtonHoverEffect:y,onContentAnimationCompleted:S,outOFViewPort:_}=e,x=!h||h==="none"?"off":p??"off";if(!(l||i||o||s))return d.jsx(Bd,{});const v=d.jsxs(T,{"data-grab":"slide-media-container",styles:[Gt.mediaContainer,n==="BACKGROUND"&&Gt.mediaContainerBg,t==null?void 0:t.mediaContainer],children:[l&&d.jsx(T0,{isHidden:_,dataGrab:"slide-media",styles:[Gt.media,n==="BACKGROUND"&&Gt.imageBg,{common:{objectPosition:c}},t==null?void 0:t.media],...l}),l&&d.jsx(T,{"data-grab":"slide-overlay",styles:[Gt.imgOverlay,t==null?void 0:t.overlay]})]});return d.jsxs(Xk,{styles:t==null?void 0:t.container,linkFunctionalityDomAttributes:!u&&e.linkDomAttributes,"data-auto":`ssr-slide-${r}`,children:[n!=="AS_CONTENT_ELEMENT"&&v,d.jsxs(T,{className:`${x==="anim-active"?["animated",h].join(" "):""} d-ext-mediaSlider-slide__contentContainer`,"data-grab":"slideContentContainer",styles:[Gt.contentContainer,t==null?void 0:t.contentContainer,{common:{visibility:x==="anim-idle"?"hidden":"visible"}}],onAnimationEnd:S,children:[n==="AS_CONTENT_ELEMENT"&&v,i&&d.jsx(K,{grabId:"title",styles:[Gt.title,t==null?void 0:t.title],tag:J.h3,className:"d-ext-mediaSlider-contentContainer__title",children:i}),o&&d.jsx(K,{className:"d-ext-mediaSlider-contentContainer__description",grabId:"description","data-auto":"desc",styles:[De(Gt.descOverrides,{innerSelector:"p"}),Gt.descContainer,t==null?void 0:t.desc],tag:J.div,domAttrs:{dangerouslySetInnerHTML:{__html:o}}}),u&&a&&d.jsx(ms,{styles:{...(t==null?void 0:t.button)??{},root:[Gt.buttonContainer,(m=t==null?void 0:t.button)==null?void 0:m.root]},linkFunctionalityDomAttributes:s,buttonContent:a,showHoverEffect:y,className:"d-ext-mediaSlider-contentContainer__button"})]})]})},Gt={mediaContainer:{common:{backgroundColor:"#eee",overflow:"hidden",position:"relative"}},mediaContainerBg:{common:{position:"absolute",left:0,bottom:0,top:0,right:0}},imageBg:{common:{width:"100%",height:"100%"}},media:{common:{objectFit:"cover",objectPosition:"center",display:"block",width:"100%",height:"100%"}},imgOverlay:{common:{position:"absolute",top:0,bottom:0,left:0,right:0}},contentElement:{common:{margin:0}},descOverrides:{common:{marginBlock:0}},descContainer:{common:{marginBlockEnd:24}},buttonContainer:{common:{minWidth:150,width:"auto",paddingInlineStart:20,paddingInlineEnd:20,margin:0}},contentContainer:{common:{display:"flex",visibility:"visible"}},title:{common:{margin:0,marginBlockEnd:8}}},Ml=wt({Comp:Zk,componentName:"SlideContent"}),gh="#e1e3e7",au="rgba(0,0,0,0.3)",ba="#CED6D9",Jk=()=>{const e=Zn.getBoolean("runtime.ssr.slider.image.fillAvailableSpace.enabled",!1);return{[me.LAYOUT_1]:{styles:{container:{[f.COMMON]:{width:"100%"}},slide_container:{[f.COMMON]:{width:"100%"}},slide_overlay:{[f.COMMON]:{backgroundColor:au}},slide_contentContainer:{[f.COMMON]:{position:"absolute",left:0,bottom:35,paddingBlockStart:35,paddingInline:24,top:60,right:0,alignItems:"center",flexDirection:"column",justifyContent:"center",textAlign:"center"},[f.MOBILE]:{top:0}},slide_title:{[f.COMMON]:{color:"white"}},slide_desc:{[f.COMMON]:{color:"white"}},pagination_container:{[f.COMMON]:{position:"absolute",bottom:24,width:"100%"}},pagination_buttonBullet:{[f.COMMON]:{backgroundColor:ba}},pagination_buttonBulletActive:{[f.COMMON]:{backgroundColor:"currentColor",color:"white"}},pagination_buttonArrow:{[f.COMMON]:{color:"white"}}}},[me.LAYOUT_2]:{paginationType:$t.ARROWS,defaultSlotsInFrame:3,styles:{container:{[f.COMMON]:{paddingInline:59,position:"relative"},[f.MOBILE]:{paddingInline:15}},slidesContainer:{[f.MOBILE]:{height:"100%"}},slide_mediaContainer:{[f.COMMON]:{borderRadius:16}},slide_overlay:{[f.COMMON]:{backgroundColor:au}},slide_contentContainer:{[f.COMMON]:{position:"absolute",left:0,bottom:30,right:0,alignItems:"center",flexDirection:"column",textAlign:"center",paddingBlockStart:30,paddingInline:24}},slide_title:{[f.COMMON]:{color:"white"}},slide_desc:{[f.COMMON]:{color:"white"}},pagination_container:{[f.COMMON]:{position:"absolute",left:0,right:0,bottom:0,top:0}},pagination_buttonArrow:{[f.COMMON]:{color:"black"}},pagination_buttonBullet:{[f.COMMON]:{backgroundColor:ba}},pagination_buttonBulletActive:{[f.COMMON]:{backgroundColor:"currentColor",color:"black"}}}},[me.LAYOUT_3]:{paginationType:$t.ARROWS,imageLayout:Bi.AS_ELEMENT,styles:{container:{[f.COMMON]:{paddingInline:45,position:"relative"},[f.MOBILE]:{paddingInline:0,position:"relative"}},slide_container:{[f.COMMON]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-around"}},slide_mediaContainer:{[f.COMMON]:{borderRadius:"50%",aspectRatio:"1/1",flexBasis:"39%"}},slide_contentContainer:{[f.COMMON]:{flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",paddingInline:32}},pagination_container:{[f.COMMON]:{position:"absolute",left:28,right:28,bottom:0,top:0},[f.MOBILE]:{left:0,right:0}},pagination_buttonBullet:{[f.COMMON]:{backgroundColor:ba}},pagination_buttonBulletActive:{[f.COMMON]:{backgroundColor:"currentColor",color:"black"}}}},[me.LAYOUT_3_B]:{paginationType:$t.ARROWS,imageLayout:Bi.AS_CONTENT_ELEMENT,styles:{container:{[f.COMMON]:{paddingInline:45,position:"relative",paddingTop:32},[f.MOBILE]:{paddingInline:0,position:"relative"}},slide_mediaContainer:{[f.COMMON]:{borderRadius:"50%",aspectRatio:"1/1",position:"relative",...e?{flex:1}:{flexBasis:"39%"},flexShrink:0,order:-1,":empty":{display:"none"},marginBottom:32}},slide_media:{[f.COMMON]:{position:"absolute",bottom:0,top:0,left:0,right:0}},slide_contentContainer:{[f.COMMON]:{flexDirection:"column",alignItems:"center",textAlign:"center",paddingInline:32,height:"100%",justifyContent:"start"}},slide_title:{common:{marginBottom:0}},pagination_container:{[f.COMMON]:{position:"absolute",left:28,right:28,bottom:0,top:0},[f.MOBILE]:{left:0,right:0}},slide_button:{root:{[f.COMMON]:{marginTop:0}}},pagination_buttonBullet:{[f.COMMON]:{backgroundColor:ba}},pagination_buttonBulletActive:{[f.COMMON]:{backgroundColor:"currentColor",color:"black"}}}},[me.LAYOUT_4]:{paginationType:$t.THUMBS,strictSlotsInFrame:1,styles:{container:{[f.COMMON]:{display:"flex",flexDirection:"column",gap:20,alignItems:"stretch"}},slide_overlay:{[f.COMMON]:{backgroundColor:au}},slide_contentContainer:{[f.COMMON]:{position:"absolute",left:0,bottom:0,top:0,right:0,alignItems:"center",flexDirection:"column",justifyContent:"center",padding:20,textAlign:"center"}},slide_title:{[f.COMMON]:{color:"white"}},slide_desc:{[f.COMMON]:{color:"white"}},pagination_thumbsContainer:{[f.MOBILE]:{overflowX:"auto",justifyContent:"start"}},pagination_buttonThumb:{[f.COMMON]:{flexBasis:80,flexGrow:0,flexShrink:1,width:"revert",borderWidth:4,backgroundOrigin:"border-box"},[f.MOBILE]:{flexBasis:80,flexShrink:0}},pagination_buttonThumbActive:{[f.COMMON]:{borderColor:"#000"}},pagination_buttonArrow:{[f.COMMON]:{color:"white"}}}},[me.LAYOUT_5]:{imageLayout:Bi.AS_ELEMENT,defaultSlotsInFrame:3,styles:{slide_mediaContainer:{[f.COMMON]:{...e?{flex:1}:{height:"46%",minHeight:"46%"},borderRadius:16,marginBlockEnd:24}},slide_contentContainer:{[f.COMMON]:{flexDirection:"column",justifyContent:"flex-start",textAlign:"center",alignItems:"center"},[f.MOBILE]:{alignItems:"center",textAlign:"center",paddingBlock:0,paddingInline:24}},container:{[f.COMMON]:{display:"flex",flexDirection:"column"}},...e&&{slide_container:{[f.COMMON]:{display:"flex",flexDirection:"column"}},slidesContainer:{[f.COMMON]:{paddingBlockEnd:56}}},slide_media:{[f.COMMON]:{width:"100%"}},pagination_buttonBullet:{[f.COMMON]:{backgroundColor:gh}},pagination_buttonBulletActive:{[f.COMMON]:{backgroundColor:"currentColor",color:"black"}},pagination_container:{[f.COMMON]:{marginBlockEnd:24,position:"absolute",width:"100%",bottom:0}},pagination_buttonArrow:{[f.COMMON]:{color:"black"}}}},[me.LAYOUT_6]:{imageLayout:Bi.AS_ELEMENT,slideAnimationDirection:"vertical",strictSlotsInFrame:1,styles:{container:{[f.COMMON]:{display:"flex",flexDirection:"row-reverse",gap:24},[f.MOBILE]:{flexDirection:"column"}},pagination_container:{[f.COMMON]:{order:0,flexDirection:"column",paddingInlineStart:2},[f.MOBILE]:{flexDirection:"row",paddingInlineStart:0,paddingBlockEnd:2}},pagination_buttonBullet:{[f.COMMON]:{backgroundColor:gh}},pagination_buttonBulletActive:{[f.COMMON]:{backgroundColor:"currentColor",color:"black"}},slidesContainer:{[f.COMMON]:{flexGrow:1}},slide_container:{[f.COMMON]:{display:"flex",gap:32},[f.MOBILE]:{flexDirection:"column",gap:24}},slide_contentContainer:{[f.COMMON]:{paddingBlock:24,flexDirection:"column",width:"61%",justifyContent:"center",alignItems:"flex-start",textAlign:"left"},[f.MOBILE]:{width:"auto",alignItems:"center",textAlign:"center",flex:"revert",paddingBlock:0,paddingInline:24}},slide_mediaContainer:{[f.COMMON]:{width:"37%",borderRadius:16},[f.MOBILE]:{width:"auto",flex:"revert",flexBasis:"55%"}}}}}},eT={[$t.ARROWS]:{[me.LAYOUT_1]:{styles:{pagination_container:{[f.COMMON]:{position:"absolute",left:0,right:0,bottom:0,top:0}}}},[me.LAYOUT_2]:{styles:{container:{[f.MOBILE]:{paddingInline:48}},slidesContainer:{[f.MOBILE]:{overflow:"hidden"}},pagination_buttonArrow:{[f.COMMON]:{padding:16},[f.MOBILE]:{padding:16}}}},[me.LAYOUT_3]:{styles:{pagination_buttonArrow:{[f.COMMON]:{padding:16}}}},[me.LAYOUT_3_B]:{styles:{pagination_buttonArrow:{[f.COMMON]:{padding:16}}}},[me.LAYOUT_5]:{styles:{container:{[f.COMMON]:{paddingInline:59,position:"relative",display:"block"},[f.MOBILE]:{paddingInline:50,display:"block"}},slidesContainer:{[f.MOBILE]:{overflow:"hidden"}},slide_mediaContainer:{[f.COMMON]:{height:"57%",minHeight:"57%"},[f.MOBILE]:{height:"59.4%",minHeight:"59.4%"}},pagination_container:{[f.COMMON]:{position:"absolute",left:0,right:0,bottom:0,top:0}},pagination_buttonArrow:{[f.COMMON]:{paddingInline:16}}}},[me.LAYOUT_6]:{styles:{container:{[f.COMMON]:{display:"flex",flexDirection:"row-reverse",gap:24},[f.MOBILE]:{paddingInline:50,display:"block"}},pagination_container:{[f.COMMON]:{order:0,flexDirection:"column",paddingInlineStart:2},[f.MOBILE]:{position:"absolute",left:0,right:0,top:83}},pagination_buttonArrow:{[f.COMMON]:{transform:"rotate(90deg)"},[f.MOBILE]:{transform:"rotate(0)"}}}}},[$t.BULLETS]:{[me.LAYOUT_2]:{styles:{container:{[f.COMMON]:{paddingInline:0,position:"relative"},[f.MOBILE]:{paddingInline:0}},pagination_container:{[f.COMMON]:{position:"absolute",bottom:24,width:"100%",top:"auto"}},slidesContainer:{[f.COMMON]:{height:"87%"},[f.MOBILE]:{height:"87%"}}}},[me.LAYOUT_3]:{styles:{container:{[f.COMMON]:{paddingInline:0,position:"relative"},[f.MOBILE]:{paddingInline:0}},pagination_container:{[f.COMMON]:{position:"absolute",bottom:24,left:0,right:0,width:"100%",top:"auto"}}}},[me.LAYOUT_3_B]:{styles:{container:{[f.COMMON]:{paddingTop:0},[f.MOBILE]:{}},pagination_container:{[f.COMMON]:{position:"absolute",bottom:24,width:"100%",top:"auto",left:0,right:0}}}}},[$t.ARROWS_AND_THUMBS]:{[me.LAYOUT_4]:{styles:{container:{[f.COMMON]:{'& > [data-auto="pagination-arrows"]':{position:"absolute",left:0,right:0,bottom:0,top:-106}}}}}}},tT=()=>Zn.getBoolean("runtime.ssr.ssrSlider.multiplePaginationPerLayout.enabled",!1)?eT:{},Un={getContainer:e=>({[f.COMMON]:{width:"100%",height:"100%"},[f.MOBILE]:e<3?{}:{position:"absolute",left:"-75%",width:"250%"}}),filmRole:{[f.COMMON]:{display:"flex"}},slotParent:{[f.COMMON]:{flex:"1",position:"relative"}},getSlideSlot:e=>{const t=e>1,n=t?"3%":0,r=t?"2%":0;return{[f.COMMON]:{position:"absolute",top:0,bottom:0,left:n,right:n},[f.MOBILE]:{left:r,right:r}}}},nT=e=>{const t=Zn.getBoolean("runtime.ssr.slider.image.fillAvailableSpace.enabled",!1);return{[$t.BULLETS]:{[me.LAYOUT_2]:{container:{[f.MOBILE]:e<3?{}:{position:"relative"}}},...t&&{[me.LAYOUT_5]:{container:{[f.MOBILE]:{position:"relative"}}}}},[$t.ARROWS]:{[me.LAYOUT_2]:{container:{[f.MOBILE]:{width:`${100*e}%`,height:"100%",position:"relative",left:"unset"}}},[me.LAYOUT_5]:{container:{[f.MOBILE]:{width:`${100*e}%`,height:"100%",position:"relative",left:"unset"}}}}}},Hd=({paginationType:e,slotsInFrame:t,layout:n})=>{var i,o;return!Zn.getBoolean("runtime.ssr.ssrSlider.multiplePaginationPerLayout.enabled",!1)||!e?{}:(o=(i=nT(t))==null?void 0:i[e])==null?void 0:o[n]},rT=({slideAnimationProps:{slotsInFrame:e,cursor:t,slideAnimationDirection:n="horizontal",layout:r,paginationType:i},slideProps:o,slidesData:a})=>{const l=Zn.getBoolean("runtime.ssr.slider.alternative.animation.to.reduce.cls.enabled",!1),s=n==="horizontal";let u,h,p;u=[...a];for(let A=0;Ap+$),[w,C]=b.useState(g),E=Hd({paginationType:i,layout:r,slotsInFrame:e}),k={[f.COMMON]:{position:"absolute",left:0,top:0,flexDirection:s?"row":"column",...l?{right:s?x:0,bottom:s?0:x,transform:`translate${s?"X":"Y"}(-${m}%)`,transition:"transform 1s ease-in-out"}:{right:0,bottom:0,[_]:S,[v]:x,transition:"left, top, right, bottom",transitionDuration:"1s",transitionTimingFunction:"ease-in-out"}}};return d.jsx(T,{styles:[Un.getContainer(e),{[f.COMMON]:{position:"relative",overflow:"hidden"},[f.MOBILE]:{width:e<3?`${100*e}%`:`${250/3*e}%`}},E==null?void 0:E.container],children:d.jsx(T,{styles:[Un.filmRole,k],onTransitionEnd:()=>C(g),"data-auto":"slider-filmRole",children:u.map((A,$)=>d.jsx(T,{styles:[{[f.COMMON]:{position:"relative",flex:1}}],"data-auto":`slideSlot ${$}${h===$?" slideSlotActive":""}`,className:`d-ext-mediaSlider-slidesContainer__slide${h===$?"--active":""}`,children:d.jsx(T,{styles:[Un.getSlideSlot(e)],children:d.jsx(Ml,{...o,...A,contentAnimationMode:w.includes($)?"anim-active":"anim-idle",outOFViewPort:!w.includes($)})})},$))})})},iT=({slidesData:e})=>{const{elementRef:t,isVisible:n}=V0();return d.jsx(T,{ref:t,styles:{common:{position:"absolute"}},children:d.jsx(T,{styles:oT,children:n&&e.map(r=>{var i;return((i=r.media)==null?void 0:i.imgSrc)&&d.jsx(So,{src:r.media.imgSrc},r.uuid)})})})},oT={[f.COMMON]:{display:"none"}},aT=({onAnimationEnd:e,isTransitioning:t,currentSlideData:n,previousSlideData:r,slideProps:i,shouldAnimateContent:o,styles:a})=>{const l=o?t?"anim-idle":"anim-active":"off";return d.jsxs(T,{styles:[{[f.COMMON]:{position:"relative"}},a],children:[t&&d.jsx(T,{styles:[vh,sT],children:d.jsx(Ml,{...i,...r})},r.uuid),d.jsx(T,{"data-auto":"slideSlot",styles:[vh,lT],onAnimationEnd:e,className:"d-ext-mediaSlider-slidesContainer__slide",children:d.jsx(Ml,{contentAnimationMode:l,...i,...n})},n.uuid)]})},vh={[f.COMMON]:{position:"absolute",left:0,right:0,top:0,bottom:0}},lT={[f.COMMON]:{animationName:"fadeIn",animationDuration:"1s",opacity:1,animationTimingFunction:"ease-in"}},sT={[f.COMMON]:{opacity:0,transition:"opacity 1s ease-in"}};function uT(e,t){return(e%t+t)%t}function cT(){const e=b.useRef(!0);return e.current?(e.current=!1,!0):e.current}function dT(e,t){const n=cT();b.useEffect(()=>{if(!n)return e()},t)}function t1(e){return new Array(e).fill(null)}function yh(e,t,n){return t1(t).map((r,i)=>uT(e+i,n))}function fT(){const[e,t]=b.useState(!1),n=b.useRef(!1);function r(i){t(i),n.current=i}return{isTransitiongRef:n,isTransitioning:e,setIsTransitioning:r}}const _h=({slideAnimationProps:{cursor:e,newEnters:t,slotsInFrame:n,layout:r,paginationType:i},slideProps:o,slidesData:a})=>{const[l,s]=b.useState(e),[u,h]=b.useState(e),{isTransitiongRef:p,isTransitioning:c,setIsTransitioning:y}=fT();dT(()=>{y(!0),s(e),h(l)},[e]);const S=yh(l,n,a.length),_=yh(u,n,a.length),x=t1(n),v=Hd({paginationType:i,layout:r,slotsInFrame:n});return d.jsxs(T,{styles:[Un.getContainer(n),Un.filmRole,{common:{gap:"2%"},mobile:{gap:"1.25%"}},v==null?void 0:v.container],"data-auto":"fade-wrapper",children:[x.map((m,g)=>{const w=S[g],C=_[g],E=t>0&&gt;return d.jsx(aT,{currentSlideData:a[w],previousSlideData:a[C],shouldAnimateContent:E,onAnimationEnd:()=>{p.current&&y(!1)},slideProps:o,isTransitioning:c,styles:[{common:{flex:"1"}},pT(g,n)]},g)}),d.jsx(iT,{slidesData:a})]})};function pT(e,t){const n=t>2?3:1;return e{const[r,i]=b.useState(t),[o,a]=b.useState(0),[l,s]=b.useState(!1),u=b.useRef(),{isInEditor:h}=Md();b.useEffect(()=>{i(t)},[t]);const p=()=>{i(_=>{const x=_+1;return x===e?0:x}),a(_=>_-1)},c=()=>{i(_=>{const x=_-1;return x===-1?e-1:x}),a(_=>_+1)},y=_=>{i(_),a(r-_)},S=()=>{n!=null&&n.on&&(clearInterval(u.current),u.current=We().setInterval(()=>{p()},n.intervalInSeconds*1e3))};return b.useEffect(()=>(l&&(h||n!=null&&n.pauseOnHover)||S(),()=>{clearInterval(u.current)}),[n,l]),{cursor:r,restartAutoPagination:S,newEnters:o,paginationAction:{goToCursor:y,goNext:p,goPrevious:c},onmouseenter:()=>{s(!0)},onmouseleave:()=>{s(!1)},onPageTransitionCompleted:()=>{a(0)}}},wh=De({common:{visibility:"hidden",opacity:"0"}},{innerSelector:'[data-grab="pagination-container"]'}),mT=[{common:{paddingInline:0}},De({common:{display:"none"}},{innerSelector:'[data-grab="pagination-container"]'})],gT=De({common:{visibility:"visible",opacity:"1",transition:"opacity 300ms ease"}},{pseudoSelector:"hover",innerSelector:'[data-grab="pagination-container"]'}),vT=e=>{const t=[];switch(e){case"onHover":{t.push(wh,gT);break}case"never":{t.push(wh,mT);break}}return t},yT="https://static-cdn.multiscreensite.com",_T=40,wT=({onSwipeForward:e,onSwipeBack:t})=>{const n=b.useRef(0);return{handleTouchStart:o=>{n.current=o.changedTouches[0].screenX},handleTouchEnd:o=>{const a=o.changedTouches[0].screenX;Math.abs(a-n.current)<=_T||(a>n.current?e():t())}}},n1=e=>{const t=b.useRef(e),n=b.useRef();return t.current!==e&&(n.current=t.current,t.current=e),n.current},ST=e=>({setStyle:r=>{e.current!==null&&Object.assign(e.current.style,r)},resetStyle:r=>{e.current!==null&&r.forEach(i=>{Object.assign(e.current.style,{[i]:null})})}}),OT=({wrapDirection:e,numberOfSlides:t,currentSlideIndex:n,lastSlideIndex:r,slidesInFrame:i})=>{let o="",a="";return e==="toLast"?(o="-0%",a=`-${(t+1)*100}%`):e==="toFirst"?(o=`-${(t+1)*100}%`,a="0%"):(o=`-${n*100/i}%`,a=`-${r*100/i}%`),{startPosition:o,endPosition:a}},CT=(e,t)=>{const n=n1(e),[r,i]=b.useState();return b.useEffect(()=>{n===0&&e===t.length-1&&i("toLast"),n===t.length-1&&e===0&&i("toFirst")},[n,e,t.length]),{wrapDirection:r,resetWrapDirection:()=>{i(void 0)}}},xT=({slideAnimationProps:{slotsInFrame:e,cursor:t,slideAnimationDirection:n="horizontal",layout:r,paginationType:i},slideProps:o,slidesData:a})=>{const l=b.useRef(null),{setStyle:s,resetStyle:u}=ST(l),h=n1(t),{wrapDirection:p,resetWrapDirection:c}=CT(t,a);b.useEffect(()=>{l.current&&!p&&u(["transitionDuration","left","right"])},[t,h,l.current,p]);const y=n==="horizontal";let S,_;S=[a[a.length-1],...a,a[0]],_=t+1;const x=a.length,v=S.length-e-_,{startPosition:m,endPosition:g}=OT({wrapDirection:p,numberOfSlides:x,currentSlideIndex:_,lastSlideIndex:v,slidesInFrame:e}),w=y?"left":"top",C=y?"right":"bottom",E=new Array(e).fill(null).map((oe,ee)=>_+ee),[k,A]=b.useState(E),$=oe=>{(oe.propertyName==="left"||oe.propertyName==="up")&&p&&l.current&&(s({transitionDuration:"0ms",[p==="toLast"?"left":"right"]:`-${x*100}%`,[p==="toLast"?"right":"left"]:"-100%"}),setTimeout(()=>{c()},0)),A(E)},B=Hd({paginationType:i,layout:r,slotsInFrame:e});return d.jsx(T,{styles:[Un.getContainer(e),{[f.COMMON]:{position:"relative",overflow:"hidden"},mobile:{width:e<3?`${100*e}%`:`${250/3*e}%`}},B==null?void 0:B.container],children:d.jsx(T,{ref:l,styles:[Un.filmRole,{[f.COMMON]:{position:"absolute",left:0,top:0,right:0,bottom:0,flexDirection:y?"row":"column",[w]:m,[C]:g,transition:"left, top, right, bottom",transitionDuration:"1s",transitionTimingFunction:"ease-in-out"}}],onTransitionEnd:$,"data-auto":"slider-filmRole",children:S.map((oe,ee)=>d.jsx(T,{styles:[{[f.COMMON]:{position:"relative",flex:1}}],"data-auto":`slideSlot ${ee}${_===ee?" slideSlotActive":""}`,className:`d-ext-mediaSlider-slidesContainer__slide${_===ee?"--active":""}`,children:d.jsx(T,{styles:[Un.getSlideSlot(e)],children:d.jsx(Ml,{...o,...oe,contentAnimationMode:k.includes(ee)?"anim-active":"anim-idle",outOFViewPort:!k.includes(ee)})})},ee))})})},bT=({animationType:e,props:t})=>{switch(e){case"fade":return d.jsx(_h,{...t});case"slide":return t.slideAnimationProps.slotsInFrame===1&&t.slideAnimationProps.layout==="LAYOUT_3_B"?d.jsx(xT,{...t}):d.jsx(rT,{...t});default:return d.jsx(_h,{...t})}},r1=({slidesData:e,styles:t,paginationType:n,animationType:r=e1.Slide,slotsInFrame:i,selectedIndex:o,autoPagination:a,dataAuto:l,paginationShow:s,arrowStyle:u,layout:h,...p})=>{const{onmouseenter:c,onmouseleave:y,paginationAction:S,cursor:_,newEnters:x,onPageTransitionCompleted:v,restartAutoPagination:m}=hT({selectedIndex:o,totalPages:e.length,autoPagination:a}),{handleTouchStart:g,handleTouchEnd:w}=wT({onSwipeForward:()=>{S.goPrevious(),m()},onSwipeBack:()=>{S.goNext(),m()}}),C={slideAnimationProps:{cursor:_,slotsInFrame:i,newEnters:x,layout:h,paginationType:n,...p},slideProps:{styles:t.slide,onContentAnimationCompleted:v,...p},slidesData:e};return d.jsxs(T,{styles:[ET,t==null?void 0:t.container,vT(s)],onMouseEnter:c,onMouseLeave:y,"data-auto":l,children:[d.jsx(T,{"data-auto":"slider-slides-container",onTouchStart:g,onTouchEnd:w,styles:[MT,t.slidesContainer],children:bT({animationType:r,props:C})}),d.jsx(Zb,{arrowStyle:u,type:n,styles:t==null?void 0:t.pagination,cursor:_,totalPages:e==null?void 0:e.length,...S,thumbList:e.map(E=>E.media??{imgSrc:`${yT}/runtime/ssr-slider/no-image-pagination-thumb.png`})})]})},ET={[f.COMMON]:{height:"100%",alignItems:"center",backgroundRepeat:"no-repeat",backgroundSize:"100%",position:"relative"}},MT={[f.COMMON]:{height:"100%",width:"100%",boxSizing:"border-box"}},AT=["styles","animationType","imageLayout","paginationType","slideAnimationDirection","arrowStyle"],kT=e=>{const t=$C(e,AT),{styles:n}=t;return d.jsx(r1,{layout:me.LAYOUT_1,slidesData:[{showButton:!0,button:{text:"a"},uuid:"a",title:"a",desc:"a",media:{imgSrc:"https://du-cdn.cdn-website.com/duda_website/images/home/hp_performance.png?v=17",alt:"a"},linkDomAttributes:{type:"url",href:"https://www.duda.co/"}}],...t,styles:{...n,container:[n.container,TT]},slotsInFrame:1})},TT={[f.COMMON]:{display:"none"}},NT={selectedIndex:0,autoPaginationInterval:3e3,transitionDuration:1,transitionType:$0.slideFromRight,shouldShowImages:!0,shouldShowPaginationOnHover:!1,shouldEnlargeImageOnClick:!0,layout:me.LAYOUT_1},PT=e=>{var g,w,C,E,k,A,$,B,oe,ee,be,He,Me,St,Pe,P,F,z,ne,j;const t={...NT,...e},{layout:n,_styles:r,slidesData:i,bindingSource:o,slotsInFrame:a,paginationType:l,...s}=t,u=Jk()[n],h=l??u.paginationType??$t.BULLETS,{styles:p}=u,{styles:c}=((g=tT()[h])==null?void 0:g[n])??{},y=(w=r==null?void 0:r.layoutSpecificStyles)==null?void 0:w[n],S={container:[p.container,c==null?void 0:c.container,r==null?void 0:r.container,y==null?void 0:y.container],slidesContainer:[p.slidesContainer,c==null?void 0:c.slidesContainer],slide:{container:[p.slide_container,c==null?void 0:c.slide_container,r==null?void 0:r.slide_container,y==null?void 0:y.slide_container],button:{root:[(C=p.slide_button)==null?void 0:C.root,(E=c==null?void 0:c.slide_button)==null?void 0:E.root,(k=r==null?void 0:r.slide_button)==null?void 0:k.root,(A=y==null?void 0:y.slide_button)==null?void 0:A.root],text:[($=p.slide_button)==null?void 0:$.text,(B=c==null?void 0:c.slide_button)==null?void 0:B.text,(oe=r==null?void 0:r.slide_button)==null?void 0:oe.text,(ee=y==null?void 0:y.slide_button)==null?void 0:ee.text],rootHover:[(be=p.slide_button)==null?void 0:be.rootHover,(He=c==null?void 0:c.slide_button)==null?void 0:He.rootHover,(Me=r==null?void 0:r.slide_button)==null?void 0:Me.rootHover,(St=y==null?void 0:y.slide_button)==null?void 0:St.rootHover],rootHoverText:[(Pe=p.slide_button)==null?void 0:Pe.rootHoverText,(P=c==null?void 0:c.slide_button)==null?void 0:P.rootHoverText,(F=r==null?void 0:r.slide_button)==null?void 0:F.rootHoverText,(z=y==null?void 0:y.slide_button)==null?void 0:z.rootHoverText],buttonTypeCSSClass:(ne=r==null?void 0:r.slide_button)==null?void 0:ne.buttonTypeCSSClass},title:[p.slide_title,c==null?void 0:c.slide_title,r==null?void 0:r.slide_title,y==null?void 0:y.slide_title],mediaContainer:[p.slide_mediaContainer,c==null?void 0:c.slide_mediaContainer,r==null?void 0:r.slide_mediaContainer,y==null?void 0:y.slide_mediaContainer],contentContainer:[p.slide_contentContainer,c==null?void 0:c.slide_contentContainer,r==null?void 0:r.slide_contentContainer,y==null?void 0:y.slide_contentContainer],desc:[p.slide_desc,c==null?void 0:c.slide_desc,r==null?void 0:r.slide_desc,y==null?void 0:y.slide_desc],media:[p.slide_media,c==null?void 0:c.slide_media,r==null?void 0:r.slide_media,y==null?void 0:y.slide_media],overlay:[p.slide_overlay,c==null?void 0:c.slide_overlay,r==null?void 0:r.slide_overlay,y==null?void 0:y.slide_overlay]},pagination:{container:[p.pagination_container,c==null?void 0:c.pagination_container,r==null?void 0:r.pagination_container,y==null?void 0:y.pagination_container],buttonArrow:[p.pagination_buttonArrow,c==null?void 0:c.pagination_buttonArrow,r==null?void 0:r.pagination_buttonArrow,y==null?void 0:y.pagination_buttonArrow],buttonBullet:[p.pagination_buttonBullet,c==null?void 0:c.pagination_buttonBullet,r==null?void 0:r.pagination_buttonBullet,y==null?void 0:y.pagination_buttonBullet],buttonBulletActive:[p.pagination_buttonBulletActive,c==null?void 0:c.pagination_buttonBulletActive,r==null?void 0:r.pagination_buttonBulletActive,y==null?void 0:y.pagination_buttonBulletActive],thumbsContainer:[p.pagination_thumbsContainer,c==null?void 0:c.pagination_thumbsContainer,r==null?void 0:r.pagination_thumbsContainer,y==null?void 0:y.pagination_thumbsContainer],buttonThumb:[p.pagination_buttonThumb,c==null?void 0:c.pagination_buttonThumb,r==null?void 0:r.pagination_buttonThumb,y==null?void 0:y.pagination_buttonThumb],buttonThumbActive:[p.pagination_buttonThumbActive,c==null?void 0:c.pagination_buttonThumbActive,r==null?void 0:r.pagination_buttonThumbActive,y==null?void 0:y.pagination_buttonThumbActive]}},[_,x]=b.useState();b.useEffect(()=>{if(o)return P0.listen("selected-image-changed",o,R=>x(R.detail.newIndex))},[o,x]);const v={...s,...u,styles:S,selectedIndex:_??s.selectedIndex,paginationType:h},m=u.strictSlotsInFrame??a??u.defaultSlotsInFrame??1;return d.jsxs(T,{style:{height:"100%",overflow:"hidden"},"data-auto":"slider-wrapper",className:"d-ext-mediaSlider-slidesContainer",children:[i.length===0?d.jsx(Bd,{}):d.jsx(r1,{...v,layout:n,paginationShow:s.paginationShow,slidesData:i,autoPagination:s.autoPagination&&{...s.autoPagination,on:s.overrideAutoPaginationOn??((j=s.autoPagination)==null?void 0:j.on)},dataAuto:"actual-slider",slotsInFrame:m}),_t.isEditor&&d.jsx(kT,{...v})]})},jT=wt({Comp:PT,componentName:"RuntimeSlider",logProps:!0}),IT=[qe.Cart,qe.Breadcrumbs],RT={[qe.Slider]:jT,[qe.Cart]:pM,[qe.Breadcrumbs]:B0,[qe.AddToCart]:$b,[qe.OptionsVariations]:XA,[qe.RuntimeFilterSort]:BA,[qe.CollectionSearch]:tA,[qe.ProductPrice]:Yk,[qe.ProductPriceOptions]:Dk,[qe.Accordion]:Wx,[qe.CalBooking]:aM,[qe.ProductCustomizations]:xk},Kd=e=>RT[e],i1=(e,t,n)=>{var i;const r=o0.getWidgetStore(e);r.legacyWidget=IT.includes(n)||!!((i=r.model.styles)!=null&&i.rules),r.mergeModel(t),r.setInitialProps(t,e)};function DT(e){const t=Kd(e.type);return!(t!=null&&t.skipHydration)}function Gd(e){return`ssrWrap-${e}`}const Sh=new Set,LT=(e,t)=>{var r;if(!Zn.getBoolean("runtime.ssr.log.showHydrationDiff",!1))return{};try{const i=e.replace(/]*>[\s\S]*?<\/script>/gi,""),o=((r=document.getElementById(Gd(t)))==null?void 0:r.outerHTML)||"null";return{preHydration:i,postHydration:o}}catch(i){return{preHydration:e,postHydration:`Error while getting post-hydration markup: ${i}`}}},$T=(e,t,n,r,i)=>{if(!Zn.getBoolean("runtime.ssr.log.showHydrationErrors",!0)||Sh.has(i))return;Sh.add(i);const{Parameters:a}=We(),l=a==null?void 0:a.isInEditor,s={message:"SSR hydration mismatch between server and client render",error:t,errorInfo:n,widget:r,siteAlias:a==null?void 0:a.SiteAlias,isEditor:l,...LT(e,i)};l?Te.debug(s):Te.warn(s)};function BT({type:e,props:t,id:n,observer:r},{markupId:i=n}){t._styles=(t==null?void 0:t._styles)||{};const o=Kd(e);if(o&&n&&i&&document.getElementById(n)){r&&i1(n,t,e);const a=r?d.jsx(s0,{Component:o,widgetId:n}):d.jsx(o,{...t}),l=document.getElementById(Gd(n));if(l){const s=l.outerHTML;Lg(l,a,{onRecoverableError:(u,h)=>$T(s,u,h,e,n)})}}}const FT=({type:e,props:t,id:n})=>{const r=Kd(e);if(r&&n&&document.getElementById(n)){i1(n,t,e);const i=document.getElementById(n);$g(i).render(d.jsx(s0,{Component:r,widgetId:n}))}},_s=(e,{observer:t=!1,markupId:n=e.id,asyncHydration:r=!!window.requestIdleCallback}={})=>{const i=()=>{BT({...e,observer:t},{markupId:n})};r?requestIdleCallback(i):i()},o1=e=>{_s(e,{observer:!0})},zT=(e=[])=>{e.forEach(t=>_s(t))},UT=(e=[])=>{e.forEach(t=>o1(t))},WT=({id:e,type:t,props:n,model:r})=>{FT({id:e,type:t,props:n,model:r,observer:!0})},VT=e=>e.some(t=>DT(t));function HT(e,t){let n;const r=e.id,i=document.getElementById(Gd(r));if(!i){const a="ssr initiate widget - element not found";throw Te.warn({msg:a,tags:["__new-runtime__"],widgetId:r}),new Error(a)}new IntersectionObserver(a=>{if(n)return;a.some(s=>s.isIntersecting)&&(_s(e,{observer:t}),n=!0)}).observe(i)}window.SSRRuntime={RuntimeReactHelpers:{hydrate:_s,hydrateObserverWidget:o1,hydrateAll:zT,hydrateAllObserverWidgets:UT,renderObserver:WT,shouldHydrateOnRuntime:VT,initiateWidget:HT}};var Ch,xh;typeof window<"u"&&((xh=(Ch=window==null?void 0:window.getDeferred)==null?void 0:Ch.call(window,"ssrLibrariesLoaded"))==null||xh.resolve());export{ma as A,GT as U,F0 as _,Po as a,Se as l,b as r}; //# sourceMappingURL=runtime-react.js.map