!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d32f-b51d-7f60-8fcb-27b80ff9175b")}catch(e){}}();function _mergeNamespaces($,xn){for(var En=0;EnNn[Tn]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var $=Symbol.for("react.element"),xn=Symbol.for("react.portal"),En=Symbol.for("react.fragment"),Nn=Symbol.for("react.strict_mode"),Tn=Symbol.for("react.profiler"),$n=Symbol.for("react.provider"),kl=Symbol.for("react.context"),xl=Symbol.for("react.forward_ref"),Nl=Symbol.for("react.suspense"),Rl=Symbol.for("react.memo"),Fl=Symbol.for("react.lazy"),Al=Symbol.iterator;function Tl(Wl){return Wl===null||typeof Wl!="object"?null:(Wl=Al&&Wl[Al]||Wl["@@iterator"],typeof Wl=="function"?Wl:null)}var Cl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Il=Object.assign,Ml={};function Dl(Wl,eu,fu){this.props=Wl,this.context=eu,this.refs=Ml,this.updater=fu||Cl}Dl.prototype.isReactComponent={},Dl.prototype.setState=function(Wl,eu){if(typeof Wl!="object"&&typeof Wl!="function"&&Wl!=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,Wl,eu,"setState")},Dl.prototype.forceUpdate=function(Wl){this.updater.enqueueForceUpdate(this,Wl,"forceUpdate")};function Ll(){}Ll.prototype=Dl.prototype;function $l(Wl,eu,fu){this.props=Wl,this.context=eu,this.refs=Ml,this.updater=fu||Cl}var Vl=$l.prototype=new Ll;Vl.constructor=$l,Il(Vl,Dl.prototype),Vl.isPureReactComponent=!0;var Bl=Array.isArray,zl=Object.prototype.hasOwnProperty,Ul={current:null},Gl={key:!0,ref:!0,__self:!0,__source:!0};function ql(Wl,eu,fu){var lu,vu={},Su=null,Ru=null;if(eu!=null)for(lu in eu.ref!==void 0&&(Ru=eu.ref),eu.key!==void 0&&(Su=""+eu.key),eu)zl.call(eu,lu)&&!Gl.hasOwnProperty(lu)&&(vu[lu]=eu[lu]);var xu=arguments.length-2;if(xu===1)vu.children=fu;else if(1>>1,eu=ou[Wl];if(0>>1;WlTn(vu,au))SuTn(Ru,vu)?(ou[Wl]=Ru,ou[Su]=au,Wl=Su):(ou[Wl]=vu,ou[lu]=au,Wl=lu);else if(SuTn(Ru,au))ou[Wl]=Ru,ou[Su]=au,Wl=Su;else break e}}return uu}function Tn(ou,uu){var au=ou.sortIndex-uu.sortIndex;return au!==0?au:ou.id-uu.id}if(typeof performance=="object"&&typeof performance.now=="function"){var $n=performance;$.unstable_now=function(){return $n.now()}}else{var kl=Date,xl=kl.now();$.unstable_now=function(){return kl.now()-xl}}var Nl=[],Rl=[],Fl=1,Al=null,Tl=3,Cl=!1,Il=!1,Ml=!1,Dl=typeof setTimeout=="function"?setTimeout:null,Ll=typeof clearTimeout=="function"?clearTimeout:null,$l=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Vl(ou){for(var uu=En(Rl);uu!==null;){if(uu.callback===null)Nn(Rl);else if(uu.startTime<=ou)Nn(Rl),uu.sortIndex=uu.expirationTime,xn(Nl,uu);else break;uu=En(Rl)}}function Bl(ou){if(Ml=!1,Vl(ou),!Il)if(En(Nl)!==null)Il=!0,_u(zl);else{var uu=En(Rl);uu!==null&&ku(Bl,uu.startTime-ou)}}function zl(ou,uu){Il=!1,Ml&&(Ml=!1,Ll(ql),ql=-1),Cl=!0;var au=Tl;try{for(Vl(uu),Al=En(Nl);Al!==null&&(!(Al.expirationTime>uu)||ou&&!tu());){var Wl=Al.callback;if(typeof Wl=="function"){Al.callback=null,Tl=Al.priorityLevel;var eu=Wl(Al.expirationTime<=uu);uu=$.unstable_now(),typeof eu=="function"?Al.callback=eu:Al===En(Nl)&&Nn(Nl),Vl(uu)}else Nn(Nl);Al=En(Nl)}if(Al!==null)var fu=!0;else{var lu=En(Rl);lu!==null&&ku(Bl,lu.startTime-uu),fu=!1}return fu}finally{Al=null,Tl=au,Cl=!1}}var Ul=!1,Gl=null,ql=-1,Kl=5,Jl=-1;function tu(){return!($.unstable_now()-Jlou||125Wl?(ou.sortIndex=au,xn(Rl,ou),En(Nl)===null&&ou===En(Rl)&&(Ml?(Ll(ql),ql=-1):Ml=!0,ku(Bl,au-Wl))):(ou.sortIndex=eu,xn(Nl,ou),Il||Cl||(Il=!0,_u(zl))),ou},$.unstable_shouldYield=tu,$.unstable_wrapCallback=function(ou){var uu=Tl;return function(){var au=Tl;Tl=uu;try{return ou.apply(this,arguments)}finally{Tl=au}}}})(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var $=requireReact(),xn=requireScheduler();function En(wn){for(var On="https://reactjs.org/docs/error-decoder.html?invariant="+wn,Sl=1;Sl"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nl=Object.prototype.hasOwnProperty,Rl=/^[: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]*$/,Fl={},Al={};function Tl(wn){return Nl.call(Al,wn)?!0:Nl.call(Fl,wn)?!1:Rl.test(wn)?Al[wn]=!0:(Fl[wn]=!0,!1)}function Cl(wn,On,Sl,jl){if(Sl!==null&&Sl.type===0)return!1;switch(typeof On){case"function":case"symbol":return!0;case"boolean":return jl?!1:Sl!==null?!Sl.acceptsBooleans:(wn=wn.toLowerCase().slice(0,5),wn!=="data-"&&wn!=="aria-");default:return!1}}function Il(wn,On,Sl,jl){if(On===null||typeof On>"u"||Cl(wn,On,Sl,jl))return!0;if(jl)return!1;if(Sl!==null)switch(Sl.type){case 3:return!On;case 4:return On===!1;case 5:return isNaN(On);case 6:return isNaN(On)||1>On}return!1}function Ml(wn,On,Sl,jl,Pl,Ol,Hl){this.acceptsBooleans=On===2||On===3||On===4,this.attributeName=jl,this.attributeNamespace=Pl,this.mustUseProperty=Sl,this.propertyName=wn,this.type=On,this.sanitizeURL=Ol,this.removeEmptyString=Hl}var Dl={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(wn){Dl[wn]=new Ml(wn,0,!1,wn,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(wn){var On=wn[0];Dl[On]=new Ml(On,1,!1,wn[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(wn){Dl[wn]=new Ml(wn,2,!1,wn.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(wn){Dl[wn]=new Ml(wn,2,!1,wn,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(wn){Dl[wn]=new Ml(wn,3,!1,wn.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(wn){Dl[wn]=new Ml(wn,3,!0,wn,null,!1,!1)}),["capture","download"].forEach(function(wn){Dl[wn]=new Ml(wn,4,!1,wn,null,!1,!1)}),["cols","rows","size","span"].forEach(function(wn){Dl[wn]=new Ml(wn,6,!1,wn,null,!1,!1)}),["rowSpan","start"].forEach(function(wn){Dl[wn]=new Ml(wn,5,!1,wn.toLowerCase(),null,!1,!1)});var Ll=/[\-:]([a-z])/g;function $l(wn){return wn[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(wn){var On=wn.replace(Ll,$l);Dl[On]=new Ml(On,1,!1,wn,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(wn){var On=wn.replace(Ll,$l);Dl[On]=new Ml(On,1,!1,wn,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(wn){var On=wn.replace(Ll,$l);Dl[On]=new Ml(On,1,!1,wn,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(wn){Dl[wn]=new Ml(wn,1,!1,wn.toLowerCase(),null,!1,!1)}),Dl.xlinkHref=new Ml("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(wn){Dl[wn]=new Ml(wn,1,!1,wn.toLowerCase(),null,!0,!0)});function Vl(wn,On,Sl,jl){var Pl=Dl.hasOwnProperty(On)?Dl[On]:null;(Pl!==null?Pl.type!==0:jl||!(2Ql||Pl[Hl]!==Ol[Ql]){var Zl=` `+Pl[Hl].replace(" at new "," at ");return wn.displayName&&Zl.includes("")&&(Zl=Zl.replace("",wn.displayName)),Zl}while(1<=Hl&&0<=Ql);break}}}finally{fu=!1,Error.prepareStackTrace=Sl}return(wn=wn?wn.displayName||wn.name:"")?eu(wn):""}function vu(wn){switch(wn.tag){case 5:return eu(wn.type);case 16:return eu("Lazy");case 13:return eu("Suspense");case 19:return eu("SuspenseList");case 0:case 2:case 15:return wn=lu(wn.type,!1),wn;case 11:return wn=lu(wn.type.render,!1),wn;case 1:return wn=lu(wn.type,!0),wn;default:return""}}function Su(wn){if(wn==null)return null;if(typeof wn=="function")return wn.displayName||wn.name||null;if(typeof wn=="string")return wn;switch(wn){case Gl:return"Fragment";case Ul:return"Portal";case Kl:return"Profiler";case ql:return"StrictMode";case Yl:return"Suspense";case cu:return"SuspenseList"}if(typeof wn=="object")switch(wn.$$typeof){case tu:return(wn.displayName||"Context")+".Consumer";case Jl:return(wn._context.displayName||"Context")+".Provider";case ru:var On=wn.render;return wn=wn.displayName,wn||(wn=On.displayName||On.name||"",wn=wn!==""?"ForwardRef("+wn+")":"ForwardRef"),wn;case gu:return On=wn.displayName||null,On!==null?On:Su(wn.type)||"Memo";case _u:On=wn._payload,wn=wn._init;try{return Su(wn(On))}catch{}}return null}function Ru(wn){var On=wn.type;switch(wn.tag){case 24:return"Cache";case 9:return(On.displayName||"Context")+".Consumer";case 10:return(On._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return wn=On.render,wn=wn.displayName||wn.name||"",On.displayName||(wn!==""?"ForwardRef("+wn+")":"ForwardRef");case 7:return"Fragment";case 5:return On;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Su(On);case 8:return On===ql?"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 On=="function")return On.displayName||On.name||null;if(typeof On=="string")return On}return null}function xu(wn){switch(typeof wn){case"boolean":case"number":case"string":case"undefined":return wn;case"object":return wn;default:return""}}function Eu(wn){var On=wn.type;return(wn=wn.nodeName)&&wn.toLowerCase()==="input"&&(On==="checkbox"||On==="radio")}function Iu(wn){var On=Eu(wn)?"checked":"value",Sl=Object.getOwnPropertyDescriptor(wn.constructor.prototype,On),jl=""+wn[On];if(!wn.hasOwnProperty(On)&&typeof Sl<"u"&&typeof Sl.get=="function"&&typeof Sl.set=="function"){var Pl=Sl.get,Ol=Sl.set;return Object.defineProperty(wn,On,{configurable:!0,get:function(){return Pl.call(this)},set:function(Hl){jl=""+Hl,Ol.call(this,Hl)}}),Object.defineProperty(wn,On,{enumerable:Sl.enumerable}),{getValue:function(){return jl},setValue:function(Hl){jl=""+Hl},stopTracking:function(){wn._valueTracker=null,delete wn[On]}}}}function Ou(wn){wn._valueTracker||(wn._valueTracker=Iu(wn))}function Lu(wn){if(!wn)return!1;var On=wn._valueTracker;if(!On)return!0;var Sl=On.getValue(),jl="";return wn&&(jl=Eu(wn)?wn.checked?"true":"false":wn.value),wn=jl,wn!==Sl?(On.setValue(wn),!0):!1}function Vu(wn){if(wn=wn||(typeof document<"u"?document:void 0),typeof wn>"u")return null;try{return wn.activeElement||wn.body}catch{return wn.body}}function Xu(wn,On){var Sl=On.checked;return au({},On,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Sl??wn._wrapperState.initialChecked})}function Cu(wn,On){var Sl=On.defaultValue==null?"":On.defaultValue,jl=On.checked!=null?On.checked:On.defaultChecked;Sl=xu(On.value!=null?On.value:Sl),wn._wrapperState={initialChecked:jl,initialValue:Sl,controlled:On.type==="checkbox"||On.type==="radio"?On.checked!=null:On.value!=null}}function zu(wn,On){On=On.checked,On!=null&&Vl(wn,"checked",On,!1)}function Mu(wn,On){zu(wn,On);var Sl=xu(On.value),jl=On.type;if(Sl!=null)jl==="number"?(Sl===0&&wn.value===""||wn.value!=Sl)&&(wn.value=""+Sl):wn.value!==""+Sl&&(wn.value=""+Sl);else if(jl==="submit"||jl==="reset"){wn.removeAttribute("value");return}On.hasOwnProperty("value")?sc(wn,On.type,Sl):On.hasOwnProperty("defaultValue")&&sc(wn,On.type,xu(On.defaultValue)),On.checked==null&&On.defaultChecked!=null&&(wn.defaultChecked=!!On.defaultChecked)}function nc(wn,On,Sl){if(On.hasOwnProperty("value")||On.hasOwnProperty("defaultValue")){var jl=On.type;if(!(jl!=="submit"&&jl!=="reset"||On.value!==void 0&&On.value!==null))return;On=""+wn._wrapperState.initialValue,Sl||On===wn.value||(wn.value=On),wn.defaultValue=On}Sl=wn.name,Sl!==""&&(wn.name=""),wn.defaultChecked=!!wn._wrapperState.initialChecked,Sl!==""&&(wn.name=Sl)}function sc(wn,On,Sl){(On!=="number"||Vu(wn.ownerDocument)!==wn)&&(Sl==null?wn.defaultValue=""+wn._wrapperState.initialValue:wn.defaultValue!==""+Sl&&(wn.defaultValue=""+Sl))}var Tc=Array.isArray;function fc(wn,On,Sl,jl){if(wn=wn.options,On){On={};for(var Pl=0;Pl"+On.valueOf().toString()+"",On=Oc.firstChild;wn.firstChild;)wn.removeChild(wn.firstChild);for(;On.firstChild;)wn.appendChild(On.firstChild)}});function Sc(wn,On){if(On){var Sl=wn.firstChild;if(Sl&&Sl===wn.lastChild&&Sl.nodeType===3){Sl.nodeValue=On;return}}wn.textContent=On}var ic={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},bc=["Webkit","ms","Moz","O"];Object.keys(ic).forEach(function(wn){bc.forEach(function(On){On=On+wn.charAt(0).toUpperCase()+wn.substring(1),ic[On]=ic[wn]})});function Ec(wn,On,Sl){return On==null||typeof On=="boolean"||On===""?"":Sl||typeof On!="number"||On===0||ic.hasOwnProperty(wn)&&ic[wn]?(""+On).trim():On+"px"}function Dc(wn,On){wn=wn.style;for(var Sl in On)if(On.hasOwnProperty(Sl)){var jl=Sl.indexOf("--")===0,Pl=Ec(Sl,On[Sl],jl);Sl==="float"&&(Sl="cssFloat"),jl?wn.setProperty(Sl,Pl):wn[Sl]=Pl}}var hp=au({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 kd(wn,On){if(On){if(hp[wn]&&(On.children!=null||On.dangerouslySetInnerHTML!=null))throw Error(En(137,wn));if(On.dangerouslySetInnerHTML!=null){if(On.children!=null)throw Error(En(60));if(typeof On.dangerouslySetInnerHTML!="object"||!("__html"in On.dangerouslySetInnerHTML))throw Error(En(61))}if(On.style!=null&&typeof On.style!="object")throw Error(En(62))}}function rm(wn,On){if(wn.indexOf("-")===-1)return typeof On.is=="string";switch(wn){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 Vd=null;function Tm(wn){return wn=wn.target||wn.srcElement||window,wn.correspondingUseElement&&(wn=wn.correspondingUseElement),wn.nodeType===3?wn.parentNode:wn}var Cm=null,Jc=null,xd=null;function vp(wn){if(wn=ep(wn)){if(typeof Cm!="function")throw Error(En(280));var On=wn.stateNode;On&&(On=zp(On),Cm(wn.stateNode,wn.type,On))}}function Pm(wn){Jc?xd?xd.push(wn):xd=[wn]:Jc=wn}function gp(){if(Jc){var wn=Jc,On=xd;if(xd=Jc=null,vp(wn),On)for(wn=0;wn>>=0,wn===0?32:31-(qy(wn)/$y|0)|0}var Rp=64,wp=4194304;function Om(wn){switch(wn&-wn){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 wn&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return wn&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return wn}}function jp(wn,On){var Sl=wn.pendingLanes;if(Sl===0)return 0;var jl=0,Pl=wn.suspendedLanes,Ol=wn.pingedLanes,Hl=Sl&268435455;if(Hl!==0){var Ql=Hl&~Pl;Ql!==0?jl=Om(Ql):(Ol&=Hl,Ol!==0&&(jl=Om(Ol)))}else Hl=Sl&~Pl,Hl!==0?jl=Om(Hl):Ol!==0&&(jl=Om(Ol));if(jl===0)return 0;if(On!==0&&On!==jl&&(On&Pl)===0&&(Pl=jl&-jl,Ol=On&-On,Pl>=Ol||Pl===16&&(Ol&4194240)!==0))return On;if((jl&4)!==0&&(jl|=Sl&16),On=wn.entangledLanes,On!==0)for(wn=wn.entanglements,On&=jl;0Sl;Sl++)On.push(wn);return On}function Dm(wn,On,Sl){wn.pendingLanes|=On,On!==536870912&&(wn.suspendedLanes=0,wn.pingedLanes=0),wn=wn.eventTimes,On=31-Hc(On),wn[On]=Sl}function zy(wn,On){var Sl=wn.pendingLanes&~On;wn.pendingLanes=On,wn.suspendedLanes=0,wn.pingedLanes=0,wn.expiredLanes&=On,wn.mutableReadLanes&=On,wn.entangledLanes&=On,On=wn.entanglements;var jl=wn.eventTimes;for(wn=wn.expirationTimes;0=Hm),jv=" ",Fv=!1;function Av(wn,On){switch(wn){case"keyup":return yk.indexOf(On.keyCode)!==-1;case"keydown":return On.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tv(wn){return wn=wn.detail,typeof wn=="object"&&"data"in wn?wn.data:null}var dm=!1;function xk(wn,On){switch(wn){case"compositionend":return Tv(On);case"keypress":return On.which!==32?null:(Fv=!0,jv);case"textInput":return wn=On.data,wn===jv&&Fv?null:wn;default:return null}}function _k(wn,On){if(dm)return wn==="compositionend"||!zf&&Av(wn,On)?(wn=Sv(),Pp=Lf=Nd=null,dm=!1,wn):null;switch(wn){case"paste":return null;case"keypress":if(!(On.ctrlKey||On.altKey||On.metaKey)||On.ctrlKey&&On.altKey){if(On.char&&1=On)return{node:Sl,offset:On-wn};wn=jl}e:{for(;Sl;){if(Sl.nextSibling){Sl=Sl.nextSibling;break e}Sl=Sl.parentNode}Sl=void 0}Sl=Lv(Sl)}}function $v(wn,On){return wn&&On?wn===On?!0:wn&&wn.nodeType===3?!1:On&&On.nodeType===3?$v(wn,On.parentNode):"contains"in wn?wn.contains(On):wn.compareDocumentPosition?!!(wn.compareDocumentPosition(On)&16):!1:!1}function Vv(){for(var wn=window,On=Vu();On instanceof wn.HTMLIFrameElement;){try{var Sl=typeof On.contentWindow.location.href=="string"}catch{Sl=!1}if(Sl)wn=On.contentWindow;else break;On=Vu(wn.document)}return On}function Kf(wn){var On=wn&&wn.nodeName&&wn.nodeName.toLowerCase();return On&&(On==="input"&&(wn.type==="text"||wn.type==="search"||wn.type==="tel"||wn.type==="url"||wn.type==="password")||On==="textarea"||wn.contentEditable==="true")}function Ak(wn){var On=Vv(),Sl=wn.focusedElem,jl=wn.selectionRange;if(On!==Sl&&Sl&&Sl.ownerDocument&&$v(Sl.ownerDocument.documentElement,Sl)){if(jl!==null&&Kf(Sl)){if(On=jl.start,wn=jl.end,wn===void 0&&(wn=On),"selectionStart"in Sl)Sl.selectionStart=On,Sl.selectionEnd=Math.min(wn,Sl.value.length);else if(wn=(On=Sl.ownerDocument||document)&&On.defaultView||window,wn.getSelection){wn=wn.getSelection();var Pl=Sl.textContent.length,Ol=Math.min(jl.start,Pl);jl=jl.end===void 0?Ol:Math.min(jl.end,Pl),!wn.extend&&Ol>jl&&(Pl=jl,jl=Ol,Ol=Pl),Pl=qv(Sl,Ol);var Hl=qv(Sl,jl);Pl&&Hl&&(wn.rangeCount!==1||wn.anchorNode!==Pl.node||wn.anchorOffset!==Pl.offset||wn.focusNode!==Hl.node||wn.focusOffset!==Hl.offset)&&(On=On.createRange(),On.setStart(Pl.node,Pl.offset),wn.removeAllRanges(),Ol>jl?(wn.addRange(On),wn.extend(Hl.node,Hl.offset)):(On.setEnd(Hl.node,Hl.offset),wn.addRange(On)))}}for(On=[],wn=Sl;wn=wn.parentNode;)wn.nodeType===1&&On.push({element:wn,left:wn.scrollLeft,top:wn.scrollTop});for(typeof Sl.focus=="function"&&Sl.focus(),Sl=0;Sl=document.documentMode,mm=null,Wf=null,Qm=null,Qf=!1;function Uv(wn,On,Sl){var jl=Sl.window===Sl?Sl.document:Sl.nodeType===9?Sl:Sl.ownerDocument;Qf||mm==null||mm!==Vu(jl)||(jl=mm,"selectionStart"in jl&&Kf(jl)?jl={start:jl.selectionStart,end:jl.selectionEnd}:(jl=(jl.ownerDocument&&jl.ownerDocument.defaultView||window).getSelection(),jl={anchorNode:jl.anchorNode,anchorOffset:jl.anchorOffset,focusNode:jl.focusNode,focusOffset:jl.focusOffset}),Qm&&Wm(Qm,jl)||(Qm=jl,jl=Vp(Wf,"onSelect"),0gm||(wn.current=oh[gm],oh[gm]=null,gm--)}function Hu(wn,On){gm++,oh[gm]=wn.current,wn.current=On}var Fd={},hc=jd(Fd),Rc=jd(!1),Kd=Fd;function ym(wn,On){var Sl=wn.type.contextTypes;if(!Sl)return Fd;var jl=wn.stateNode;if(jl&&jl.__reactInternalMemoizedUnmaskedChildContext===On)return jl.__reactInternalMemoizedMaskedChildContext;var Pl={},Ol;for(Ol in Sl)Pl[Ol]=On[Ol];return jl&&(wn=wn.stateNode,wn.__reactInternalMemoizedUnmaskedChildContext=On,wn.__reactInternalMemoizedMaskedChildContext=Pl),Pl}function wc(wn){return wn=wn.childContextTypes,wn!=null}function Hp(){Ku(Rc),Ku(hc)}function ig(wn,On,Sl){if(hc.current!==Fd)throw Error(En(168));Hu(hc,On),Hu(Rc,Sl)}function rg(wn,On,Sl){var jl=wn.stateNode;if(On=On.childContextTypes,typeof jl.getChildContext!="function")return Sl;jl=jl.getChildContext();for(var Pl in jl)if(!(Pl in On))throw Error(En(108,Ru(wn)||"Unknown",Pl));return au({},Sl,jl)}function Gp(wn){return wn=(wn=wn.stateNode)&&wn.__reactInternalMemoizedMergedChildContext||Fd,Kd=hc.current,Hu(hc,wn),Hu(Rc,Rc.current),!0}function ag(wn,On,Sl){var jl=wn.stateNode;if(!jl)throw Error(En(169));Sl?(wn=rg(wn,On,Kd),jl.__reactInternalMemoizedMergedChildContext=wn,Ku(Rc),Ku(hc),Hu(hc,wn)):Ku(Rc),Hu(Rc,Sl)}var cd=null,Kp=!1,lh=!1;function sg(wn){cd===null?cd=[wn]:cd.push(wn)}function Uk(wn){Kp=!0,sg(wn)}function Ad(){if(!lh&&cd!==null){lh=!0;var wn=0,On=Bu;try{var Sl=cd;for(Bu=1;wn>=Hl,Pl-=Hl,dd=1<<32-Hc(On)+Pl|Sl<Pu?(dc=Tu,Tu=null):dc=Tu.sibling;var $u=du(nu,Tu,iu[Pu],yu);if($u===null){Tu===null&&(Tu=dc);break}wn&&Tu&&$u.alternate===null&&On(nu,Tu),Xl=Ol($u,Xl,Pu),Au===null?Fu=$u:Au.sibling=$u,Au=$u,Tu=dc}if(Pu===iu.length)return Sl(nu,Tu),Qu&&Qd(nu,Pu),Fu;if(Tu===null){for(;PuPu?(dc=Tu,Tu=null):dc=Tu.sibling;var qd=du(nu,Tu,$u.value,yu);if(qd===null){Tu===null&&(Tu=dc);break}wn&&Tu&&qd.alternate===null&&On(nu,Tu),Xl=Ol(qd,Xl,Pu),Au===null?Fu=qd:Au.sibling=qd,Au=qd,Tu=dc}if($u.done)return Sl(nu,Tu),Qu&&Qd(nu,Pu),Fu;if(Tu===null){for(;!$u.done;Pu++,$u=iu.next())$u=pu(nu,$u.value,yu),$u!==null&&(Xl=Ol($u,Xl,Pu),Au===null?Fu=$u:Au.sibling=$u,Au=$u);return Qu&&Qd(nu,Pu),Fu}for(Tu=jl(nu,Tu);!$u.done;Pu++,$u=iu.next())$u=bu(Tu,nu,Pu,$u.value,yu),$u!==null&&(wn&&$u.alternate!==null&&Tu.delete($u.key===null?Pu:$u.key),Xl=Ol($u,Xl,Pu),Au===null?Fu=$u:Au.sibling=$u,Au=$u);return wn&&Tu.forEach(function(bx){return On(nu,bx)}),Qu&&Qd(nu,Pu),Fu}function ec(nu,Xl,iu,yu){if(typeof iu=="object"&&iu!==null&&iu.type===Gl&&iu.key===null&&(iu=iu.props.children),typeof iu=="object"&&iu!==null){switch(iu.$$typeof){case zl:e:{for(var Fu=iu.key,Au=Xl;Au!==null;){if(Au.key===Fu){if(Fu=iu.type,Fu===Gl){if(Au.tag===7){Sl(nu,Au.sibling),Xl=Pl(Au,iu.props.children),Xl.return=nu,nu=Xl;break e}}else if(Au.elementType===Fu||typeof Fu=="object"&&Fu!==null&&Fu.$$typeof===_u&&mg(Fu)===Au.type){Sl(nu,Au.sibling),Xl=Pl(Au,iu.props),Xl.ref=tp(nu,Au,iu),Xl.return=nu,nu=Xl;break e}Sl(nu,Au);break}else On(nu,Au);Au=Au.sibling}iu.type===Gl?(Xl=im(iu.props.children,nu.mode,yu,iu.key),Xl.return=nu,nu=Xl):(yu=Sf(iu.type,iu.key,iu.props,null,nu.mode,yu),yu.ref=tp(nu,Xl,iu),yu.return=nu,nu=yu)}return Hl(nu);case Ul:e:{for(Au=iu.key;Xl!==null;){if(Xl.key===Au)if(Xl.tag===4&&Xl.stateNode.containerInfo===iu.containerInfo&&Xl.stateNode.implementation===iu.implementation){Sl(nu,Xl.sibling),Xl=Pl(Xl,iu.children||[]),Xl.return=nu,nu=Xl;break e}else{Sl(nu,Xl);break}else On(nu,Xl);Xl=Xl.sibling}Xl=av(iu,nu.mode,yu),Xl.return=nu,nu=Xl}return Hl(nu);case _u:return Au=iu._init,ec(nu,Xl,Au(iu._payload),yu)}if(Tc(iu))return wu(nu,Xl,iu,yu);if(uu(iu))return ju(nu,Xl,iu,yu);Zp(nu,iu)}return typeof iu=="string"&&iu!==""||typeof iu=="number"?(iu=""+iu,Xl!==null&&Xl.tag===6?(Sl(nu,Xl.sibling),Xl=Pl(Xl,iu),Xl.return=nu,nu=Xl):(Sl(nu,Xl),Xl=rv(iu,nu.mode,yu),Xl.return=nu,nu=Xl),Hl(nu)):Sl(nu,Xl)}return ec}var Sm=pg(!0),fg=pg(!1),Xp=jd(null),Jp=null,bm=null,fh=null;function hh(){fh=bm=Jp=null}function vh(wn){var On=Xp.current;Ku(Xp),wn._currentValue=On}function gh(wn,On,Sl){for(;wn!==null;){var jl=wn.alternate;if((wn.childLanes&On)!==On?(wn.childLanes|=On,jl!==null&&(jl.childLanes|=On)):jl!==null&&(jl.childLanes&On)!==On&&(jl.childLanes|=On),wn===Sl)break;wn=wn.return}}function Em(wn,On){Jp=wn,fh=bm=null,wn=wn.dependencies,wn!==null&&wn.firstContext!==null&&((wn.lanes&On)!==0&&(jc=!0),wn.firstContext=null)}function Vc(wn){var On=wn._currentValue;if(fh!==wn)if(wn={context:wn,memoizedValue:On,next:null},bm===null){if(Jp===null)throw Error(En(308));bm=wn,Jp.dependencies={lanes:0,firstContext:wn}}else bm=bm.next=wn;return On}var Yd=null;function yh(wn){Yd===null?Yd=[wn]:Yd.push(wn)}function hg(wn,On,Sl,jl){var Pl=On.interleaved;return Pl===null?(Sl.next=Sl,yh(On)):(Sl.next=Pl.next,Pl.next=Sl),On.interleaved=Sl,pd(wn,jl)}function pd(wn,On){wn.lanes|=On;var Sl=wn.alternate;for(Sl!==null&&(Sl.lanes|=On),Sl=wn,wn=wn.return;wn!==null;)wn.childLanes|=On,Sl=wn.alternate,Sl!==null&&(Sl.childLanes|=On),Sl=wn,wn=wn.return;return Sl.tag===3?Sl.stateNode:null}var Td=!1;function kh(wn){wn.updateQueue={baseState:wn.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vg(wn,On){wn=wn.updateQueue,On.updateQueue===wn&&(On.updateQueue={baseState:wn.baseState,firstBaseUpdate:wn.firstBaseUpdate,lastBaseUpdate:wn.lastBaseUpdate,shared:wn.shared,effects:wn.effects})}function fd(wn,On){return{eventTime:wn,lane:On,tag:0,payload:null,callback:null,next:null}}function Cd(wn,On,Sl){var jl=wn.updateQueue;if(jl===null)return null;if(jl=jl.shared,(qu&2)!==0){var Pl=jl.pending;return Pl===null?On.next=On:(On.next=Pl.next,Pl.next=On),jl.pending=On,pd(wn,Sl)}return Pl=jl.interleaved,Pl===null?(On.next=On,yh(jl)):(On.next=Pl.next,Pl.next=On),jl.interleaved=On,pd(wn,Sl)}function ef(wn,On,Sl){if(On=On.updateQueue,On!==null&&(On=On.shared,(Sl&4194240)!==0)){var jl=On.lanes;jl&=wn.pendingLanes,Sl|=jl,On.lanes=Sl,Pf(wn,Sl)}}function gg(wn,On){var Sl=wn.updateQueue,jl=wn.alternate;if(jl!==null&&(jl=jl.updateQueue,Sl===jl)){var Pl=null,Ol=null;if(Sl=Sl.firstBaseUpdate,Sl!==null){do{var Hl={eventTime:Sl.eventTime,lane:Sl.lane,tag:Sl.tag,payload:Sl.payload,callback:Sl.callback,next:null};Ol===null?Pl=Ol=Hl:Ol=Ol.next=Hl,Sl=Sl.next}while(Sl!==null);Ol===null?Pl=Ol=On:Ol=Ol.next=On}else Pl=Ol=On;Sl={baseState:jl.baseState,firstBaseUpdate:Pl,lastBaseUpdate:Ol,shared:jl.shared,effects:jl.effects},wn.updateQueue=Sl;return}wn=Sl.lastBaseUpdate,wn===null?Sl.firstBaseUpdate=On:wn.next=On,Sl.lastBaseUpdate=On}function tf(wn,On,Sl,jl){var Pl=wn.updateQueue;Td=!1;var Ol=Pl.firstBaseUpdate,Hl=Pl.lastBaseUpdate,Ql=Pl.shared.pending;if(Ql!==null){Pl.shared.pending=null;var Zl=Ql,su=Zl.next;Zl.next=null,Hl===null?Ol=su:Hl.next=su,Hl=Zl;var mu=wn.alternate;mu!==null&&(mu=mu.updateQueue,Ql=mu.lastBaseUpdate,Ql!==Hl&&(Ql===null?mu.firstBaseUpdate=su:Ql.next=su,mu.lastBaseUpdate=Zl))}if(Ol!==null){var pu=Pl.baseState;Hl=0,mu=su=Zl=null,Ql=Ol;do{var du=Ql.lane,bu=Ql.eventTime;if((jl&du)===du){mu!==null&&(mu=mu.next={eventTime:bu,lane:0,tag:Ql.tag,payload:Ql.payload,callback:Ql.callback,next:null});e:{var wu=wn,ju=Ql;switch(du=On,bu=Sl,ju.tag){case 1:if(wu=ju.payload,typeof wu=="function"){pu=wu.call(bu,pu,du);break e}pu=wu;break e;case 3:wu.flags=wu.flags&-65537|128;case 0:if(wu=ju.payload,du=typeof wu=="function"?wu.call(bu,pu,du):wu,du==null)break e;pu=au({},pu,du);break e;case 2:Td=!0}}Ql.callback!==null&&Ql.lane!==0&&(wn.flags|=64,du=Pl.effects,du===null?Pl.effects=[Ql]:du.push(Ql))}else bu={eventTime:bu,lane:du,tag:Ql.tag,payload:Ql.payload,callback:Ql.callback,next:null},mu===null?(su=mu=bu,Zl=pu):mu=mu.next=bu,Hl|=du;if(Ql=Ql.next,Ql===null){if(Ql=Pl.shared.pending,Ql===null)break;du=Ql,Ql=du.next,du.next=null,Pl.lastBaseUpdate=du,Pl.shared.pending=null}}while(!0);if(mu===null&&(Zl=pu),Pl.baseState=Zl,Pl.firstBaseUpdate=su,Pl.lastBaseUpdate=mu,On=Pl.shared.interleaved,On!==null){Pl=On;do Hl|=Pl.lane,Pl=Pl.next;while(Pl!==On)}else Ol===null&&(Pl.shared.lanes=0);Jd|=Hl,wn.lanes=Hl,wn.memoizedState=pu}}function yg(wn,On,Sl){if(wn=On.effects,On.effects=null,wn!==null)for(On=0;OnSl?Sl:4,wn(!0);var jl=Eh.transition;Eh.transition={};try{wn(!1),On()}finally{Bu=Sl,Eh.transition=jl}}function Dg(){return Uc().memoizedState}function Gk(wn,On,Sl){var jl=Od(wn);if(Sl={lane:jl,action:Sl,hasEagerState:!1,eagerState:null,next:null},Lg(wn))qg(On,Sl);else if(Sl=hg(wn,On,Sl,jl),Sl!==null){var Pl=_c();Zc(Sl,wn,jl,Pl),$g(Sl,On,jl)}}function Kk(wn,On,Sl){var jl=Od(wn),Pl={lane:jl,action:Sl,hasEagerState:!1,eagerState:null,next:null};if(Lg(wn))qg(On,Pl);else{var Ol=wn.alternate;if(wn.lanes===0&&(Ol===null||Ol.lanes===0)&&(Ol=On.lastRenderedReducer,Ol!==null))try{var Hl=On.lastRenderedState,Ql=Ol(Hl,Sl);if(Pl.hasEagerState=!0,Pl.eagerState=Ql,Gc(Ql,Hl)){var Zl=On.interleaved;Zl===null?(Pl.next=Pl,yh(On)):(Pl.next=Zl.next,Zl.next=Pl),On.interleaved=Pl;return}}catch{}Sl=hg(wn,On,Pl,jl),Sl!==null&&(Pl=_c(),Zc(Sl,wn,jl,Pl),$g(Sl,On,jl))}}function Lg(wn){var On=wn.alternate;return wn===Zu||On!==null&&On===Zu}function qg(wn,On){ap=af=!0;var Sl=wn.pending;Sl===null?On.next=On:(On.next=Sl.next,Sl.next=On),wn.pending=On}function $g(wn,On,Sl){if((Sl&4194240)!==0){var jl=On.lanes;jl&=wn.pendingLanes,Sl|=jl,On.lanes=Sl,Pf(wn,Sl)}}var lf={readContext:Vc,useCallback:vc,useContext:vc,useEffect:vc,useImperativeHandle:vc,useInsertionEffect:vc,useLayoutEffect:vc,useMemo:vc,useReducer:vc,useRef:vc,useState:vc,useDebugValue:vc,useDeferredValue:vc,useTransition:vc,useMutableSource:vc,useSyncExternalStore:vc,useId:vc,unstable_isNewReconciler:!1},Wk={readContext:Vc,useCallback:function(wn,On){return rd().memoizedState=[wn,On===void 0?null:On],wn},useContext:Vc,useEffect:Fg,useImperativeHandle:function(wn,On,Sl){return Sl=Sl!=null?Sl.concat([wn]):null,sf(4194308,4,Cg.bind(null,On,wn),Sl)},useLayoutEffect:function(wn,On){return sf(4194308,4,wn,On)},useInsertionEffect:function(wn,On){return sf(4,2,wn,On)},useMemo:function(wn,On){var Sl=rd();return On=On===void 0?null:On,wn=wn(),Sl.memoizedState=[wn,On],wn},useReducer:function(wn,On,Sl){var jl=rd();return On=Sl!==void 0?Sl(On):On,jl.memoizedState=jl.baseState=On,wn={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:On},jl.queue=wn,wn=wn.dispatch=Gk.bind(null,Zu,wn),[jl.memoizedState,wn]},useRef:function(wn){var On=rd();return wn={current:wn},On.memoizedState=wn},useState:wg,useDebugValue:Th,useDeferredValue:function(wn){return rd().memoizedState=wn},useTransition:function(){var wn=wg(!1),On=wn[0];return wn=Hk.bind(null,wn[1]),rd().memoizedState=wn,[On,wn]},useMutableSource:function(){},useSyncExternalStore:function(wn,On,Sl){var jl=Zu,Pl=rd();if(Qu){if(Sl===void 0)throw Error(En(407));Sl=Sl()}else{if(Sl=On(),cc===null)throw Error(En(349));(Xd&30)!==0||Sg(jl,On,Sl)}Pl.memoizedState=Sl;var Ol={value:Sl,getSnapshot:On};return Pl.queue=Ol,Fg(Eg.bind(null,jl,Ol,wn),[wn]),jl.flags|=2048,lp(9,bg.bind(null,jl,Ol,Sl,On),void 0,null),Sl},useId:function(){var wn=rd(),On=cc.identifierPrefix;if(Qu){var Sl=md,jl=dd;Sl=(jl&~(1<<32-Hc(jl)-1)).toString(32)+Sl,On=":"+On+"R"+Sl,Sl=sp++,0<\/script>",wn=wn.removeChild(wn.firstChild)):typeof jl.is=="string"?wn=Hl.createElement(Sl,{is:jl.is}):(wn=Hl.createElement(Sl),Sl==="select"&&(Hl=wn,jl.multiple?Hl.multiple=!0:jl.size&&(Hl.size=jl.size))):wn=Hl.createElementNS(wn,Sl),wn[nd]=On,wn[Jm]=jl,sy(wn,On,!1,!1),On.stateNode=wn;e:{switch(Hl=rm(Sl,jl),Sl){case"dialog":Gu("cancel",wn),Gu("close",wn),Pl=jl;break;case"iframe":case"object":case"embed":Gu("load",wn),Pl=jl;break;case"video":case"audio":for(Pl=0;PlFm&&(On.flags|=128,jl=!0,up(Ol,!1),On.lanes=4194304)}else{if(!jl)if(wn=nf(Hl),wn!==null){if(On.flags|=128,jl=!0,Sl=wn.updateQueue,Sl!==null&&(On.updateQueue=Sl,On.flags|=4),up(Ol,!0),Ol.tail===null&&Ol.tailMode==="hidden"&&!Hl.alternate&&!Qu)return gc(On),null}else 2*Wu()-Ol.renderingStartTime>Fm&&Sl!==1073741824&&(On.flags|=128,jl=!0,up(Ol,!1),On.lanes=4194304);Ol.isBackwards?(Hl.sibling=On.child,On.child=Hl):(Sl=Ol.last,Sl!==null?Sl.sibling=Hl:On.child=Hl,Ol.last=Hl)}return Ol.tail!==null?(On=Ol.tail,Ol.rendering=On,Ol.tail=On.sibling,Ol.renderingStartTime=Wu(),On.sibling=null,Sl=Yu.current,Hu(Yu,jl?Sl&1|2:Sl&1),On):(gc(On),null);case 22:case 23:return tv(),jl=On.memoizedState!==null,wn!==null&&wn.memoizedState!==null!==jl&&(On.flags|=8192),jl&&(On.mode&1)!==0?(Mc&1073741824)!==0&&(gc(On),On.subtreeFlags&6&&(On.flags|=8192)):gc(On),null;case 24:return null;case 25:return null}throw Error(En(156,On.tag))}function nx(wn,On){switch(ch(On),On.tag){case 1:return wc(On.type)&&Hp(),wn=On.flags,wn&65536?(On.flags=wn&-65537|128,On):null;case 3:return Nm(),Ku(Rc),Ku(hc),bh(),wn=On.flags,(wn&65536)!==0&&(wn&128)===0?(On.flags=wn&-65537|128,On):null;case 5:return _h(On),null;case 13:if(Ku(Yu),wn=On.memoizedState,wn!==null&&wn.dehydrated!==null){if(On.alternate===null)throw Error(En(340));_m()}return wn=On.flags,wn&65536?(On.flags=wn&-65537|128,On):null;case 19:return Ku(Yu),null;case 4:return Nm(),null;case 10:return vh(On.type._context),null;case 22:case 23:return tv(),null;case 24:return null;default:return null}}var mf=!1,yc=!1,ix=typeof WeakSet=="function"?WeakSet:Set,Nu=null;function wm(wn,On){var Sl=wn.ref;if(Sl!==null)if(typeof Sl=="function")try{Sl(null)}catch(jl){Ju(wn,On,jl)}else Sl.current=null}function Bh(wn,On,Sl){try{Sl()}catch(jl){Ju(wn,On,jl)}}var uy=!1;function rx(wn,On){if(th=Tp,wn=Vv(),Kf(wn)){if("selectionStart"in wn)var Sl={start:wn.selectionStart,end:wn.selectionEnd};else e:{Sl=(Sl=wn.ownerDocument)&&Sl.defaultView||window;var jl=Sl.getSelection&&Sl.getSelection();if(jl&&jl.rangeCount!==0){Sl=jl.anchorNode;var Pl=jl.anchorOffset,Ol=jl.focusNode;jl=jl.focusOffset;try{Sl.nodeType,Ol.nodeType}catch{Sl=null;break e}var Hl=0,Ql=-1,Zl=-1,su=0,mu=0,pu=wn,du=null;t:for(;;){for(var bu;pu!==Sl||Pl!==0&&pu.nodeType!==3||(Ql=Hl+Pl),pu!==Ol||jl!==0&&pu.nodeType!==3||(Zl=Hl+jl),pu.nodeType===3&&(Hl+=pu.nodeValue.length),(bu=pu.firstChild)!==null;)du=pu,pu=bu;for(;;){if(pu===wn)break t;if(du===Sl&&++su===Pl&&(Ql=Hl),du===Ol&&++mu===jl&&(Zl=Hl),(bu=pu.nextSibling)!==null)break;pu=du,du=pu.parentNode}pu=bu}Sl=Ql===-1||Zl===-1?null:{start:Ql,end:Zl}}else Sl=null}Sl=Sl||{start:0,end:0}}else Sl=null;for(nh={focusedElem:wn,selectionRange:Sl},Tp=!1,Nu=On;Nu!==null;)if(On=Nu,wn=On.child,(On.subtreeFlags&1028)!==0&&wn!==null)wn.return=On,Nu=wn;else for(;Nu!==null;){On=Nu;try{var wu=On.alternate;if((On.flags&1024)!==0)switch(On.tag){case 0:case 11:case 15:break;case 1:if(wu!==null){var ju=wu.memoizedProps,ec=wu.memoizedState,nu=On.stateNode,Xl=nu.getSnapshotBeforeUpdate(On.elementType===On.type?ju:Wc(On.type,ju),ec);nu.__reactInternalSnapshotBeforeUpdate=Xl}break;case 3:var iu=On.stateNode.containerInfo;iu.nodeType===1?iu.textContent="":iu.nodeType===9&&iu.documentElement&&iu.removeChild(iu.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(En(163))}}catch(yu){Ju(On,On.return,yu)}if(wn=On.sibling,wn!==null){wn.return=On.return,Nu=wn;break}Nu=On.return}return wu=uy,uy=!1,wu}function cp(wn,On,Sl){var jl=On.updateQueue;if(jl=jl!==null?jl.lastEffect:null,jl!==null){var Pl=jl=jl.next;do{if((Pl.tag&wn)===wn){var Ol=Pl.destroy;Pl.destroy=void 0,Ol!==void 0&&Bh(On,Sl,Ol)}Pl=Pl.next}while(Pl!==jl)}}function pf(wn,On){if(On=On.updateQueue,On=On!==null?On.lastEffect:null,On!==null){var Sl=On=On.next;do{if((Sl.tag&wn)===wn){var jl=Sl.create;Sl.destroy=jl()}Sl=Sl.next}while(Sl!==On)}}function zh(wn){var On=wn.ref;if(On!==null){var Sl=wn.stateNode;wn.tag,wn=Sl,typeof On=="function"?On(wn):On.current=wn}}function cy(wn){var On=wn.alternate;On!==null&&(wn.alternate=null,cy(On)),wn.child=null,wn.deletions=null,wn.sibling=null,wn.tag===5&&(On=wn.stateNode,On!==null&&(delete On[nd],delete On[Jm],delete On[sh],delete On[$k],delete On[Vk])),wn.stateNode=null,wn.return=null,wn.dependencies=null,wn.memoizedProps=null,wn.memoizedState=null,wn.pendingProps=null,wn.stateNode=null,wn.updateQueue=null}function dy(wn){return wn.tag===5||wn.tag===3||wn.tag===4}function my(wn){e:for(;;){for(;wn.sibling===null;){if(wn.return===null||dy(wn.return))return null;wn=wn.return}for(wn.sibling.return=wn.return,wn=wn.sibling;wn.tag!==5&&wn.tag!==6&&wn.tag!==18;){if(wn.flags&2||wn.child===null||wn.tag===4)continue e;wn.child.return=wn,wn=wn.child}if(!(wn.flags&2))return wn.stateNode}}function Hh(wn,On,Sl){var jl=wn.tag;if(jl===5||jl===6)wn=wn.stateNode,On?Sl.nodeType===8?Sl.parentNode.insertBefore(wn,On):Sl.insertBefore(wn,On):(Sl.nodeType===8?(On=Sl.parentNode,On.insertBefore(wn,Sl)):(On=Sl,On.appendChild(wn)),Sl=Sl._reactRootContainer,Sl!=null||On.onclick!==null||(On.onclick=Bp));else if(jl!==4&&(wn=wn.child,wn!==null))for(Hh(wn,On,Sl),wn=wn.sibling;wn!==null;)Hh(wn,On,Sl),wn=wn.sibling}function Gh(wn,On,Sl){var jl=wn.tag;if(jl===5||jl===6)wn=wn.stateNode,On?Sl.insertBefore(wn,On):Sl.appendChild(wn);else if(jl!==4&&(wn=wn.child,wn!==null))for(Gh(wn,On,Sl),wn=wn.sibling;wn!==null;)Gh(wn,On,Sl),wn=wn.sibling}var mc=null,Qc=!1;function Pd(wn,On,Sl){for(Sl=Sl.child;Sl!==null;)py(wn,On,Sl),Sl=Sl.sibling}function py(wn,On,Sl){if(td&&typeof td.onCommitFiberUnmount=="function")try{td.onCommitFiberUnmount(Np,Sl)}catch{}switch(Sl.tag){case 5:yc||wm(Sl,On);case 6:var jl=mc,Pl=Qc;mc=null,Pd(wn,On,Sl),mc=jl,Qc=Pl,mc!==null&&(Qc?(wn=mc,Sl=Sl.stateNode,wn.nodeType===8?wn.parentNode.removeChild(Sl):wn.removeChild(Sl)):mc.removeChild(Sl.stateNode));break;case 18:mc!==null&&(Qc?(wn=mc,Sl=Sl.stateNode,wn.nodeType===8?ah(wn.parentNode,Sl):wn.nodeType===1&&ah(wn,Sl),Um(wn)):ah(mc,Sl.stateNode));break;case 4:jl=mc,Pl=Qc,mc=Sl.stateNode.containerInfo,Qc=!0,Pd(wn,On,Sl),mc=jl,Qc=Pl;break;case 0:case 11:case 14:case 15:if(!yc&&(jl=Sl.updateQueue,jl!==null&&(jl=jl.lastEffect,jl!==null))){Pl=jl=jl.next;do{var Ol=Pl,Hl=Ol.destroy;Ol=Ol.tag,Hl!==void 0&&((Ol&2)!==0||(Ol&4)!==0)&&Bh(Sl,On,Hl),Pl=Pl.next}while(Pl!==jl)}Pd(wn,On,Sl);break;case 1:if(!yc&&(wm(Sl,On),jl=Sl.stateNode,typeof jl.componentWillUnmount=="function"))try{jl.props=Sl.memoizedProps,jl.state=Sl.memoizedState,jl.componentWillUnmount()}catch(Ql){Ju(Sl,On,Ql)}Pd(wn,On,Sl);break;case 21:Pd(wn,On,Sl);break;case 22:Sl.mode&1?(yc=(jl=yc)||Sl.memoizedState!==null,Pd(wn,On,Sl),yc=jl):Pd(wn,On,Sl);break;default:Pd(wn,On,Sl)}}function fy(wn){var On=wn.updateQueue;if(On!==null){wn.updateQueue=null;var Sl=wn.stateNode;Sl===null&&(Sl=wn.stateNode=new ix),On.forEach(function(jl){var Pl=fx.bind(null,wn,jl);Sl.has(jl)||(Sl.add(jl),jl.then(Pl,Pl))})}}function Yc(wn,On){var Sl=On.deletions;if(Sl!==null)for(var jl=0;jlPl&&(Pl=Hl),jl&=~Ol}if(jl=Pl,jl=Wu()-jl,jl=(120>jl?120:480>jl?480:1080>jl?1080:1920>jl?1920:3e3>jl?3e3:4320>jl?4320:1960*sx(jl/1960))-jl,10wn?16:wn,Md===null)var jl=!1;else{if(wn=Md,Md=null,yf=0,(qu&6)!==0)throw Error(En(331));var Pl=qu;for(qu|=4,Nu=wn.current;Nu!==null;){var Ol=Nu,Hl=Ol.child;if((Nu.flags&16)!==0){var Ql=Ol.deletions;if(Ql!==null){for(var Zl=0;ZlWu()-Qh?tm(wn,0):Wh|=Sl),Ac(wn,On)}function jy(wn,On){On===0&&((wn.mode&1)===0?On=1:(On=wp,wp<<=1,(wp&130023424)===0&&(wp=4194304)));var Sl=_c();wn=pd(wn,On),wn!==null&&(Dm(wn,On,Sl),Ac(wn,Sl))}function px(wn){var On=wn.memoizedState,Sl=0;On!==null&&(Sl=On.retryLane),jy(wn,Sl)}function fx(wn,On){var Sl=0;switch(wn.tag){case 13:var jl=wn.stateNode,Pl=wn.memoizedState;Pl!==null&&(Sl=Pl.retryLane);break;case 19:jl=wn.stateNode;break;default:throw Error(En(314))}jl!==null&&jl.delete(On),jy(wn,Sl)}var Fy;Fy=function(wn,On,Sl){if(wn!==null)if(wn.memoizedProps!==On.pendingProps||Rc.current)jc=!0;else{if((wn.lanes&Sl)===0&&(On.flags&128)===0)return jc=!1,ex(wn,On,Sl);jc=(wn.flags&131072)!==0}else jc=!1,Qu&&(On.flags&1048576)!==0&&og(On,Qp,On.index);switch(On.lanes=0,On.tag){case 2:var jl=On.type;df(wn,On),wn=On.pendingProps;var Pl=ym(On,hc.current);Em(On,Sl),Pl=Rh(null,On,jl,wn,Pl,Sl);var Ol=wh();return On.flags|=1,typeof Pl=="object"&&Pl!==null&&typeof Pl.render=="function"&&Pl.$$typeof===void 0?(On.tag=1,On.memoizedState=null,On.updateQueue=null,wc(jl)?(Ol=!0,Gp(On)):Ol=!1,On.memoizedState=Pl.state!==null&&Pl.state!==void 0?Pl.state:null,kh(On),Pl.updater=uf,On.stateNode=Pl,Pl._reactInternals=On,Ph(On,jl,wn,Sl),On=Dh(null,On,jl,!0,Ol,Sl)):(On.tag=0,Qu&&Ol&&uh(On),xc(null,On,Pl,Sl),On=On.child),On;case 16:jl=On.elementType;e:{switch(df(wn,On),wn=On.pendingProps,Pl=jl._init,jl=Pl(jl._payload),On.type=jl,Pl=On.tag=vx(jl),wn=Wc(jl,wn),Pl){case 0:On=Oh(null,On,jl,wn,Sl);break e;case 1:On=ey(null,On,jl,wn,Sl);break e;case 11:On=Qg(null,On,jl,wn,Sl);break e;case 14:On=Yg(null,On,jl,Wc(jl.type,wn),Sl);break e}throw Error(En(306,jl,""))}return On;case 0:return jl=On.type,Pl=On.pendingProps,Pl=On.elementType===jl?Pl:Wc(jl,Pl),Oh(wn,On,jl,Pl,Sl);case 1:return jl=On.type,Pl=On.pendingProps,Pl=On.elementType===jl?Pl:Wc(jl,Pl),ey(wn,On,jl,Pl,Sl);case 3:e:{if(ty(On),wn===null)throw Error(En(387));jl=On.pendingProps,Ol=On.memoizedState,Pl=Ol.element,vg(wn,On),tf(On,jl,null,Sl);var Hl=On.memoizedState;if(jl=Hl.element,Ol.isDehydrated)if(Ol={element:jl,isDehydrated:!1,cache:Hl.cache,pendingSuspenseBoundaries:Hl.pendingSuspenseBoundaries,transitions:Hl.transitions},On.updateQueue.baseState=Ol,On.memoizedState=Ol,On.flags&256){Pl=Rm(Error(En(423)),On),On=ny(wn,On,jl,Sl,Pl);break e}else if(jl!==Pl){Pl=Rm(Error(En(424)),On),On=ny(wn,On,jl,Sl,Pl);break e}else for(Ic=wd(On.stateNode.containerInfo.firstChild),Pc=On,Qu=!0,Kc=null,Sl=fg(On,null,jl,Sl),On.child=Sl;Sl;)Sl.flags=Sl.flags&-3|4096,Sl=Sl.sibling;else{if(_m(),jl===Pl){On=hd(wn,On,Sl);break e}xc(wn,On,jl,Sl)}On=On.child}return On;case 5:return kg(On),wn===null&&mh(On),jl=On.type,Pl=On.pendingProps,Ol=wn!==null?wn.memoizedProps:null,Hl=Pl.children,ih(jl,Pl)?Hl=null:Ol!==null&&ih(jl,Ol)&&(On.flags|=32),Jg(wn,On),xc(wn,On,Hl,Sl),On.child;case 6:return wn===null&&mh(On),null;case 13:return iy(wn,On,Sl);case 4:return xh(On,On.stateNode.containerInfo),jl=On.pendingProps,wn===null?On.child=Sm(On,null,jl,Sl):xc(wn,On,jl,Sl),On.child;case 11:return jl=On.type,Pl=On.pendingProps,Pl=On.elementType===jl?Pl:Wc(jl,Pl),Qg(wn,On,jl,Pl,Sl);case 7:return xc(wn,On,On.pendingProps,Sl),On.child;case 8:return xc(wn,On,On.pendingProps.children,Sl),On.child;case 12:return xc(wn,On,On.pendingProps.children,Sl),On.child;case 10:e:{if(jl=On.type._context,Pl=On.pendingProps,Ol=On.memoizedProps,Hl=Pl.value,Hu(Xp,jl._currentValue),jl._currentValue=Hl,Ol!==null)if(Gc(Ol.value,Hl)){if(Ol.children===Pl.children&&!Rc.current){On=hd(wn,On,Sl);break e}}else for(Ol=On.child,Ol!==null&&(Ol.return=On);Ol!==null;){var Ql=Ol.dependencies;if(Ql!==null){Hl=Ol.child;for(var Zl=Ql.firstContext;Zl!==null;){if(Zl.context===jl){if(Ol.tag===1){Zl=fd(-1,Sl&-Sl),Zl.tag=2;var su=Ol.updateQueue;if(su!==null){su=su.shared;var mu=su.pending;mu===null?Zl.next=Zl:(Zl.next=mu.next,mu.next=Zl),su.pending=Zl}}Ol.lanes|=Sl,Zl=Ol.alternate,Zl!==null&&(Zl.lanes|=Sl),gh(Ol.return,Sl,On),Ql.lanes|=Sl;break}Zl=Zl.next}}else if(Ol.tag===10)Hl=Ol.type===On.type?null:Ol.child;else if(Ol.tag===18){if(Hl=Ol.return,Hl===null)throw Error(En(341));Hl.lanes|=Sl,Ql=Hl.alternate,Ql!==null&&(Ql.lanes|=Sl),gh(Hl,Sl,On),Hl=Ol.sibling}else Hl=Ol.child;if(Hl!==null)Hl.return=Ol;else for(Hl=Ol;Hl!==null;){if(Hl===On){Hl=null;break}if(Ol=Hl.sibling,Ol!==null){Ol.return=Hl.return,Hl=Ol;break}Hl=Hl.return}Ol=Hl}xc(wn,On,Pl.children,Sl),On=On.child}return On;case 9:return Pl=On.type,jl=On.pendingProps.children,Em(On,Sl),Pl=Vc(Pl),jl=jl(Pl),On.flags|=1,xc(wn,On,jl,Sl),On.child;case 14:return jl=On.type,Pl=Wc(jl,On.pendingProps),Pl=Wc(jl.type,Pl),Yg(wn,On,jl,Pl,Sl);case 15:return Zg(wn,On,On.type,On.pendingProps,Sl);case 17:return jl=On.type,Pl=On.pendingProps,Pl=On.elementType===jl?Pl:Wc(jl,Pl),df(wn,On),On.tag=1,wc(jl)?(wn=!0,Gp(On)):wn=!1,Em(On,Sl),Ug(On,jl,Pl),Ph(On,jl,Pl,Sl),Dh(null,On,jl,!0,wn,Sl);case 19:return ay(wn,On,Sl);case 22:return Xg(wn,On,Sl)}throw Error(En(156,On.tag))};function Ay(wn,On){return kc(wn,On)}function hx(wn,On,Sl,jl){this.tag=wn,this.key=Sl,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=On,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=jl,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zc(wn,On,Sl,jl){return new hx(wn,On,Sl,jl)}function iv(wn){return wn=wn.prototype,!(!wn||!wn.isReactComponent)}function vx(wn){if(typeof wn=="function")return iv(wn)?1:0;if(wn!=null){if(wn=wn.$$typeof,wn===ru)return 11;if(wn===gu)return 14}return 2}function Ld(wn,On){var Sl=wn.alternate;return Sl===null?(Sl=zc(wn.tag,On,wn.key,wn.mode),Sl.elementType=wn.elementType,Sl.type=wn.type,Sl.stateNode=wn.stateNode,Sl.alternate=wn,wn.alternate=Sl):(Sl.pendingProps=On,Sl.type=wn.type,Sl.flags=0,Sl.subtreeFlags=0,Sl.deletions=null),Sl.flags=wn.flags&14680064,Sl.childLanes=wn.childLanes,Sl.lanes=wn.lanes,Sl.child=wn.child,Sl.memoizedProps=wn.memoizedProps,Sl.memoizedState=wn.memoizedState,Sl.updateQueue=wn.updateQueue,On=wn.dependencies,Sl.dependencies=On===null?null:{lanes:On.lanes,firstContext:On.firstContext},Sl.sibling=wn.sibling,Sl.index=wn.index,Sl.ref=wn.ref,Sl}function Sf(wn,On,Sl,jl,Pl,Ol){var Hl=2;if(jl=wn,typeof wn=="function")iv(wn)&&(Hl=1);else if(typeof wn=="string")Hl=5;else e:switch(wn){case Gl:return im(Sl.children,Pl,Ol,On);case ql:Hl=8,Pl|=8;break;case Kl:return wn=zc(12,Sl,On,Pl|2),wn.elementType=Kl,wn.lanes=Ol,wn;case Yl:return wn=zc(13,Sl,On,Pl),wn.elementType=Yl,wn.lanes=Ol,wn;case cu:return wn=zc(19,Sl,On,Pl),wn.elementType=cu,wn.lanes=Ol,wn;case ku:return bf(Sl,Pl,Ol,On);default:if(typeof wn=="object"&&wn!==null)switch(wn.$$typeof){case Jl:Hl=10;break e;case tu:Hl=9;break e;case ru:Hl=11;break e;case gu:Hl=14;break e;case _u:Hl=16,jl=null;break e}throw Error(En(130,wn==null?wn:typeof wn,""))}return On=zc(Hl,Sl,On,Pl),On.elementType=wn,On.type=jl,On.lanes=Ol,On}function im(wn,On,Sl,jl){return wn=zc(7,wn,jl,On),wn.lanes=Sl,wn}function bf(wn,On,Sl,jl){return wn=zc(22,wn,jl,On),wn.elementType=ku,wn.lanes=Sl,wn.stateNode={isHidden:!1},wn}function rv(wn,On,Sl){return wn=zc(6,wn,null,On),wn.lanes=Sl,wn}function av(wn,On,Sl){return On=zc(4,wn.children!==null?wn.children:[],wn.key,On),On.lanes=Sl,On.stateNode={containerInfo:wn.containerInfo,pendingChildren:null,implementation:wn.implementation},On}function gx(wn,On,Sl,jl,Pl){this.tag=On,this.containerInfo=wn,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cf(0),this.expirationTimes=Cf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cf(0),this.identifierPrefix=jl,this.onRecoverableError=Pl,this.mutableSourceEagerHydrationData=null}function sv(wn,On,Sl,jl,Pl,Ol,Hl,Ql,Zl){return wn=new gx(wn,On,Sl,Ql,Zl),On===1?(On=1,Ol===!0&&(On|=8)):On=0,Ol=zc(3,null,null,On),wn.current=Ol,Ol.stateNode=wn,Ol.memoizedState={element:jl,isDehydrated:Sl,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(Ol),wn}function yx(wn,On,Sl){var jl=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($)}catch(xn){console.error(xn)}}return $(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var $=requireReactDom();return client.createRoot=$.createRoot,client.hydrateRoot=$.hydrateRoot,client}var clientExports=requireClient();class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(xn){const En={listener:xn};return this.listeners.add(En),this.onSubscribe(),()=>{this.listeners.delete(En),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const isServer=typeof window>"u"||"Deno"in window;function noop$4(){}function functionalUpdate($,xn){return typeof $=="function"?$(xn):$}function isValidTimeout($){return typeof $=="number"&&$>=0&&$!==1/0}function timeUntilStale($,xn){return Math.max($+(xn||0)-Date.now(),0)}function parseQueryArgs($,xn,En){return isQueryKey($)?typeof xn=="function"?{...En,queryKey:$,queryFn:xn}:{...xn,queryKey:$}:$}function parseFilterArgs($,xn,En){return isQueryKey($)?[{...xn,queryKey:$},En]:[$||{},xn]}function matchQuery($,xn){const{type:En="all",exact:Nn,fetchStatus:Tn,predicate:$n,queryKey:kl,stale:xl}=$;if(isQueryKey(kl)){if(Nn){if(xn.queryHash!==hashQueryKeyByOptions(kl,xn.options))return!1}else if(!partialMatchKey(xn.queryKey,kl))return!1}if(En!=="all"){const Nl=xn.isActive();if(En==="active"&&!Nl||En==="inactive"&&Nl)return!1}return!(typeof xl=="boolean"&&xn.isStale()!==xl||typeof Tn<"u"&&Tn!==xn.state.fetchStatus||$n&&!$n(xn))}function matchMutation($,xn){const{exact:En,fetching:Nn,predicate:Tn,mutationKey:$n}=$;if(isQueryKey($n)){if(!xn.options.mutationKey)return!1;if(En){if(hashQueryKey(xn.options.mutationKey)!==hashQueryKey($n))return!1}else if(!partialMatchKey(xn.options.mutationKey,$n))return!1}return!(typeof Nn=="boolean"&&xn.state.status==="loading"!==Nn||Tn&&!Tn(xn))}function hashQueryKeyByOptions($,xn){return(xn?.queryKeyHashFn||hashQueryKey)($)}function hashQueryKey($){return JSON.stringify($,(xn,En)=>isPlainObject$1(En)?Object.keys(En).sort().reduce((Nn,Tn)=>(Nn[Tn]=En[Tn],Nn),{}):En)}function partialMatchKey($,xn){return partialDeepEqual($,xn)}function partialDeepEqual($,xn){return $===xn?!0:typeof $!=typeof xn?!1:$&&xn&&typeof $=="object"&&typeof xn=="object"?!Object.keys(xn).some(En=>!partialDeepEqual($[En],xn[En])):!1}function replaceEqualDeep($,xn,En=0){if($===xn)return $;if(En>500)return xn;const Nn=isPlainArray($)&&isPlainArray(xn);if(Nn||isPlainObject$1($)&&isPlainObject$1(xn)){const Tn=Nn?$.length:Object.keys($).length,$n=Nn?xn:Object.keys(xn),kl=$n.length,xl=Nn?[]:{};let Nl=0;for(let Rl=0;Rl"u")return!0;const En=xn.prototype;return!(!hasObjectPrototype(En)||!En.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype($){return Object.prototype.toString.call($)==="[object Object]"}function isQueryKey($){return Array.isArray($)}function sleep$1($){return new Promise(xn=>{setTimeout(xn,$)})}function scheduleMicrotask($){sleep$1(0).then($)}function getAbortController(){if(typeof AbortController=="function")return new AbortController}function replaceData($,xn,En){return En.isDataEqual!=null&&En.isDataEqual($,xn)?$:typeof En.structuralSharing=="function"?En.structuralSharing($,xn):En.structuralSharing!==!1?replaceEqualDeep($,xn):xn}class FocusManager extends Subscribable{constructor(){super(),this.setup=xn=>{if(!isServer&&window.addEventListener){const En=()=>xn();return window.addEventListener("visibilitychange",En,!1),window.addEventListener("focus",En,!1),()=>{window.removeEventListener("visibilitychange",En),window.removeEventListener("focus",En)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var xn;(xn=this.cleanup)==null||xn.call(this),this.cleanup=void 0}}setEventListener(xn){var En;this.setup=xn,(En=this.cleanup)==null||En.call(this),this.cleanup=xn(Nn=>{typeof Nn=="boolean"?this.setFocused(Nn):this.onFocus()})}setFocused(xn){this.focused!==xn&&(this.focused=xn,this.onFocus())}onFocus(){this.listeners.forEach(({listener:xn})=>{xn()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const focusManager=new FocusManager,onlineEvents=["online","offline"];class OnlineManager extends Subscribable{constructor(){super(),this.setup=xn=>{if(!isServer&&window.addEventListener){const En=()=>xn();return onlineEvents.forEach(Nn=>{window.addEventListener(Nn,En,!1)}),()=>{onlineEvents.forEach(Nn=>{window.removeEventListener(Nn,En)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var xn;(xn=this.cleanup)==null||xn.call(this),this.cleanup=void 0}}setEventListener(xn){var En;this.setup=xn,(En=this.cleanup)==null||En.call(this),this.cleanup=xn(Nn=>{typeof Nn=="boolean"?this.setOnline(Nn):this.onOnline()})}setOnline(xn){this.online!==xn&&(this.online=xn,this.onOnline())}onOnline(){this.listeners.forEach(({listener:xn})=>{xn()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const onlineManager=new OnlineManager;function defaultRetryDelay($){return Math.min(1e3*2**$,3e4)}function canFetch($){return($??"online")==="online"?onlineManager.isOnline():!0}class CancelledError{constructor(xn){this.revert=xn?.revert,this.silent=xn?.silent}}function isCancelledError($){return $ instanceof CancelledError}function createRetryer($){let xn=!1,En=0,Nn=!1,Tn,$n,kl;const xl=new Promise((Dl,Ll)=>{$n=Dl,kl=Ll}),Nl=Dl=>{Nn||(Cl(new CancelledError(Dl)),$.abort==null||$.abort())},Rl=()=>{xn=!0},Fl=()=>{xn=!1},Al=()=>!focusManager.isFocused()||$.networkMode!=="always"&&!onlineManager.isOnline(),Tl=Dl=>{Nn||(Nn=!0,$.onSuccess==null||$.onSuccess(Dl),Tn?.(),$n(Dl))},Cl=Dl=>{Nn||(Nn=!0,$.onError==null||$.onError(Dl),Tn?.(),kl(Dl))},Il=()=>new Promise(Dl=>{Tn=Ll=>{const $l=Nn||!Al();return $l&&Dl(Ll),$l},$.onPause==null||$.onPause()}).then(()=>{Tn=void 0,Nn||$.onContinue==null||$.onContinue()}),Ml=()=>{if(Nn)return;let Dl;try{Dl=$.fn()}catch(Ll){Dl=Promise.reject(Ll)}Promise.resolve(Dl).then(Tl).catch(Ll=>{var $l,Vl;if(Nn)return;const Bl=($l=$.retry)!=null?$l:3,zl=(Vl=$.retryDelay)!=null?Vl:defaultRetryDelay,Ul=typeof zl=="function"?zl(En,Ll):zl,Gl=Bl===!0||typeof Bl=="number"&&En{if(Al())return Il()}).then(()=>{xn?Cl(Ll):Ml()})})};return canFetch($.networkMode)?Ml():Il().then(Ml),{promise:xl,cancel:Nl,continue:()=>Tn?.()?xl:Promise.resolve(),cancelRetry:Rl,continueRetry:Fl}}const defaultLogger=console;function createNotifyManager(){let $=[],xn=0,En=Fl=>{Fl()},Nn=Fl=>{Fl()};const Tn=Fl=>{let Al;xn++;try{Al=Fl()}finally{xn--,xn||xl()}return Al},$n=Fl=>{xn?$.push(Fl):scheduleMicrotask(()=>{En(Fl)})},kl=Fl=>(...Al)=>{$n(()=>{Fl(...Al)})},xl=()=>{const Fl=$;$=[],Fl.length&&scheduleMicrotask(()=>{Nn(()=>{Fl.forEach(Al=>{En(Al)})})})};return{batch:Tn,batchCalls:kl,schedule:$n,setNotifyFunction:Fl=>{En=Fl},setBatchNotifyFunction:Fl=>{Nn=Fl}}}const notifyManager=createNotifyManager();class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(xn){this.cacheTime=Math.max(this.cacheTime||0,xn??(isServer?1/0:300*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Query extends Removable{constructor(xn){super(),this.abortSignalConsumed=!1,this.defaultOptions=xn.defaultOptions,this.setOptions(xn.options),this.observers=[],this.cache=xn.cache,this.logger=xn.logger||defaultLogger,this.queryKey=xn.queryKey,this.queryHash=xn.queryHash,this.initialState=xn.state||getDefaultState$1(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(xn){this.options={...this.defaultOptions,...xn},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(xn,En){const Nn=replaceData(this.state.data,xn,this.options);return this.dispatch({data:Nn,type:"success",dataUpdatedAt:En?.updatedAt,manual:En?.manual}),Nn}setState(xn,En){this.dispatch({type:"setState",state:xn,setStateOptions:En})}cancel(xn){var En;const Nn=this.promise;return(En=this.retryer)==null||En.cancel(xn),Nn?Nn.then(noop$4).catch(noop$4):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(xn=>xn.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(xn=>xn.getCurrentResult().isStale)}isStaleByTime(xn=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,xn)}onFocus(){var xn;const En=this.observers.find(Nn=>Nn.shouldFetchOnWindowFocus());En&&En.refetch({cancelRefetch:!1}),(xn=this.retryer)==null||xn.continue()}onOnline(){var xn;const En=this.observers.find(Nn=>Nn.shouldFetchOnReconnect());En&&En.refetch({cancelRefetch:!1}),(xn=this.retryer)==null||xn.continue()}addObserver(xn){this.observers.includes(xn)||(this.observers.push(xn),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:xn}))}removeObserver(xn){this.observers.includes(xn)&&(this.observers=this.observers.filter(En=>En!==xn),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:xn}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(xn,En){var Nn,Tn;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&En!=null&&En.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var $n;return($n=this.retryer)==null||$n.continueRetry(),this.promise}}if(xn&&this.setOptions(xn),!this.options.queryFn){const Cl=this.observers.find(Il=>Il.options.queryFn);Cl&&this.setOptions(Cl.options)}const kl=getAbortController(),xl={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},Nl=Cl=>{Object.defineProperty(Cl,"signal",{enumerable:!0,get:()=>{if(kl)return this.abortSignalConsumed=!0,kl.signal}})};Nl(xl);const Rl=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(xl)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),Fl={fetchOptions:En,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:Rl};if(Nl(Fl),(Nn=this.options.behavior)==null||Nn.onFetch(Fl),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((Tn=Fl.fetchOptions)==null?void 0:Tn.meta)){var Al;this.dispatch({type:"fetch",meta:(Al=Fl.fetchOptions)==null?void 0:Al.meta})}const Tl=Cl=>{if(isCancelledError(Cl)&&Cl.silent||this.dispatch({type:"error",error:Cl}),!isCancelledError(Cl)){var Il,Ml,Dl,Ll;(Il=(Ml=this.cache.config).onError)==null||Il.call(Ml,Cl,this),(Dl=(Ll=this.cache.config).onSettled)==null||Dl.call(Ll,this.state.data,Cl,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=createRetryer({fn:Fl.fetchFn,abort:kl?.abort.bind(kl),onSuccess:Cl=>{var Il,Ml,Dl,Ll;if(typeof Cl>"u"){Tl(new Error(this.queryHash+" data is undefined"));return}this.setData(Cl),(Il=(Ml=this.cache.config).onSuccess)==null||Il.call(Ml,Cl,this),(Dl=(Ll=this.cache.config).onSettled)==null||Dl.call(Ll,Cl,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:Tl,onFail:(Cl,Il)=>{this.dispatch({type:"failed",failureCount:Cl,error:Il})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:Fl.options.retry,retryDelay:Fl.options.retryDelay,networkMode:Fl.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(xn){const En=Nn=>{var Tn,$n;switch(xn.type){case"failed":return{...Nn,fetchFailureCount:xn.failureCount,fetchFailureReason:xn.error};case"pause":return{...Nn,fetchStatus:"paused"};case"continue":return{...Nn,fetchStatus:"fetching"};case"fetch":return{...Nn,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(Tn=xn.meta)!=null?Tn:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!Nn.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...Nn,data:xn.data,dataUpdateCount:Nn.dataUpdateCount+1,dataUpdatedAt:($n=xn.dataUpdatedAt)!=null?$n:Date.now(),error:null,isInvalidated:!1,status:"success",...!xn.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const kl=xn.error;return isCancelledError(kl)&&kl.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...Nn,error:kl,errorUpdateCount:Nn.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:Nn.fetchFailureCount+1,fetchFailureReason:kl,fetchStatus:"idle",status:"error"};case"invalidate":return{...Nn,isInvalidated:!0};case"setState":return{...Nn,...xn.state}}};this.state=En(this.state),notifyManager.batch(()=>{this.observers.forEach(Nn=>{Nn.onQueryUpdate(xn)}),this.cache.notify({query:this,type:"updated",action:xn})})}}function getDefaultState$1($){const xn=typeof $.initialData=="function"?$.initialData():$.initialData,En=typeof xn<"u",Nn=En?typeof $.initialDataUpdatedAt=="function"?$.initialDataUpdatedAt():$.initialDataUpdatedAt:0;return{data:xn,dataUpdateCount:0,dataUpdatedAt:En?Nn??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:En?"success":"loading",fetchStatus:"idle"}}class QueryCache extends Subscribable{constructor(xn){super(),this.config=xn||{},this.queries=[],this.queriesMap={}}build(xn,En,Nn){var Tn;const $n=En.queryKey,kl=(Tn=En.queryHash)!=null?Tn:hashQueryKeyByOptions($n,En);let xl=this.get(kl);return xl||(xl=new Query({cache:this,logger:xn.getLogger(),queryKey:$n,queryHash:kl,options:xn.defaultQueryOptions(En),state:Nn,defaultOptions:xn.getQueryDefaults($n)}),this.add(xl)),xl}add(xn){this.queriesMap[xn.queryHash]||(this.queriesMap[xn.queryHash]=xn,this.queries.push(xn),this.notify({type:"added",query:xn}))}remove(xn){const En=this.queriesMap[xn.queryHash];En&&(xn.destroy(),this.queries=this.queries.filter(Nn=>Nn!==xn),En===xn&&delete this.queriesMap[xn.queryHash],this.notify({type:"removed",query:xn}))}clear(){notifyManager.batch(()=>{this.queries.forEach(xn=>{this.remove(xn)})})}get(xn){return this.queriesMap[xn]}getAll(){return this.queries}find(xn,En){const[Nn]=parseFilterArgs(xn,En);return typeof Nn.exact>"u"&&(Nn.exact=!0),this.queries.find(Tn=>matchQuery(Nn,Tn))}findAll(xn,En){const[Nn]=parseFilterArgs(xn,En);return Object.keys(Nn).length>0?this.queries.filter(Tn=>matchQuery(Nn,Tn)):this.queries}notify(xn){notifyManager.batch(()=>{this.listeners.forEach(({listener:En})=>{En(xn)})})}onFocus(){notifyManager.batch(()=>{this.queries.forEach(xn=>{xn.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.queries.forEach(xn=>{xn.onOnline()})})}}class Mutation extends Removable{constructor(xn){super(),this.defaultOptions=xn.defaultOptions,this.mutationId=xn.mutationId,this.mutationCache=xn.mutationCache,this.logger=xn.logger||defaultLogger,this.observers=[],this.state=xn.state||getDefaultState(),this.setOptions(xn.options),this.scheduleGc()}setOptions(xn){this.options={...this.defaultOptions,...xn},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(xn){this.dispatch({type:"setState",state:xn})}addObserver(xn){this.observers.includes(xn)||(this.observers.push(xn),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:xn}))}removeObserver(xn){this.observers=this.observers.filter(En=>En!==xn),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:xn})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var xn,En;return(xn=(En=this.retryer)==null?void 0:En.continue())!=null?xn:this.execute()}async execute(){const xn=()=>{var Gl;return this.retryer=createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(ql,Kl)=>{this.dispatch({type:"failed",failureCount:ql,error:Kl})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(Gl=this.options.retry)!=null?Gl:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},En=this.state.status==="loading";try{var Nn,Tn,$n,kl,xl,Nl,Rl,Fl;if(!En){var Al,Tl,Cl,Il;this.dispatch({type:"loading",variables:this.options.variables}),await((Al=(Tl=this.mutationCache.config).onMutate)==null?void 0:Al.call(Tl,this.state.variables,this));const ql=await((Cl=(Il=this.options).onMutate)==null?void 0:Cl.call(Il,this.state.variables));ql!==this.state.context&&this.dispatch({type:"loading",context:ql,variables:this.state.variables})}const Gl=await xn();return await((Nn=(Tn=this.mutationCache.config).onSuccess)==null?void 0:Nn.call(Tn,Gl,this.state.variables,this.state.context,this)),await(($n=(kl=this.options).onSuccess)==null?void 0:$n.call(kl,Gl,this.state.variables,this.state.context)),await((xl=(Nl=this.mutationCache.config).onSettled)==null?void 0:xl.call(Nl,Gl,null,this.state.variables,this.state.context,this)),await((Rl=(Fl=this.options).onSettled)==null?void 0:Rl.call(Fl,Gl,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:Gl}),Gl}catch(Gl){try{var Ml,Dl,Ll,$l,Vl,Bl,zl,Ul;throw await((Ml=(Dl=this.mutationCache.config).onError)==null?void 0:Ml.call(Dl,Gl,this.state.variables,this.state.context,this)),await((Ll=($l=this.options).onError)==null?void 0:Ll.call($l,Gl,this.state.variables,this.state.context)),await((Vl=(Bl=this.mutationCache.config).onSettled)==null?void 0:Vl.call(Bl,void 0,Gl,this.state.variables,this.state.context,this)),await((zl=(Ul=this.options).onSettled)==null?void 0:zl.call(Ul,void 0,Gl,this.state.variables,this.state.context)),Gl}finally{this.dispatch({type:"error",error:Gl})}}}dispatch(xn){const En=Nn=>{switch(xn.type){case"failed":return{...Nn,failureCount:xn.failureCount,failureReason:xn.error};case"pause":return{...Nn,isPaused:!0};case"continue":return{...Nn,isPaused:!1};case"loading":return{...Nn,context:xn.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"loading",variables:xn.variables};case"success":return{...Nn,data:xn.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...Nn,data:void 0,error:xn.error,failureCount:Nn.failureCount+1,failureReason:xn.error,isPaused:!1,status:"error"};case"setState":return{...Nn,...xn.state}}};this.state=En(this.state),notifyManager.batch(()=>{this.observers.forEach(Nn=>{Nn.onMutationUpdate(xn)}),this.mutationCache.notify({mutation:this,type:"updated",action:xn})})}}function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class MutationCache extends Subscribable{constructor(xn){super(),this.config=xn||{},this.mutations=[],this.mutationId=0}build(xn,En,Nn){const Tn=new Mutation({mutationCache:this,logger:xn.getLogger(),mutationId:++this.mutationId,options:xn.defaultMutationOptions(En),state:Nn,defaultOptions:En.mutationKey?xn.getMutationDefaults(En.mutationKey):void 0});return this.add(Tn),Tn}add(xn){this.mutations.push(xn),this.notify({type:"added",mutation:xn})}remove(xn){this.mutations=this.mutations.filter(En=>En!==xn),this.notify({type:"removed",mutation:xn})}clear(){notifyManager.batch(()=>{this.mutations.forEach(xn=>{this.remove(xn)})})}getAll(){return this.mutations}find(xn){return typeof xn.exact>"u"&&(xn.exact=!0),this.mutations.find(En=>matchMutation(xn,En))}findAll(xn){return this.mutations.filter(En=>matchMutation(xn,En))}notify(xn){notifyManager.batch(()=>{this.listeners.forEach(({listener:En})=>{En(xn)})})}resumePausedMutations(){var xn;return this.resuming=((xn=this.resuming)!=null?xn:Promise.resolve()).then(()=>{const En=this.mutations.filter(Nn=>Nn.state.isPaused);return notifyManager.batch(()=>En.reduce((Nn,Tn)=>Nn.then(()=>Tn.continue().catch(noop$4)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function infiniteQueryBehavior(){return{onFetch:$=>{$.fetchFn=()=>{var xn,En,Nn,Tn,$n,kl;const xl=(xn=$.fetchOptions)==null||(En=xn.meta)==null?void 0:En.refetchPage,Nl=(Nn=$.fetchOptions)==null||(Tn=Nn.meta)==null?void 0:Tn.fetchMore,Rl=Nl?.pageParam,Fl=Nl?.direction==="forward",Al=Nl?.direction==="backward",Tl=(($n=$.state.data)==null?void 0:$n.pages)||[],Cl=((kl=$.state.data)==null?void 0:kl.pageParams)||[];let Il=Cl,Ml=!1;const Dl=Ul=>{Object.defineProperty(Ul,"signal",{enumerable:!0,get:()=>{var Gl;if((Gl=$.signal)!=null&&Gl.aborted)Ml=!0;else{var ql;(ql=$.signal)==null||ql.addEventListener("abort",()=>{Ml=!0})}return $.signal}})},Ll=$.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+$.options.queryHash+"'")),$l=(Ul,Gl,ql,Kl)=>(Il=Kl?[Gl,...Il]:[...Il,Gl],Kl?[ql,...Ul]:[...Ul,ql]),Vl=(Ul,Gl,ql,Kl)=>{if(Ml)return Promise.reject("Cancelled");if(typeof ql>"u"&&!Gl&&Ul.length)return Promise.resolve(Ul);const Jl={queryKey:$.queryKey,pageParam:ql,meta:$.options.meta};Dl(Jl);const tu=Ll(Jl);return Promise.resolve(tu).then(Yl=>$l(Ul,ql,Yl,Kl))};let Bl;if(!Tl.length)Bl=Vl([]);else if(Fl){const Ul=typeof Rl<"u",Gl=Ul?Rl:getNextPageParam($.options,Tl);Bl=Vl(Tl,Ul,Gl)}else if(Al){const Ul=typeof Rl<"u",Gl=Ul?Rl:getPreviousPageParam($.options,Tl);Bl=Vl(Tl,Ul,Gl,!0)}else{Il=[];const Ul=typeof $.options.getNextPageParam>"u";Bl=(xl&&Tl[0]?xl(Tl[0],0,Tl):!0)?Vl([],Ul,Cl[0]):Promise.resolve($l([],Cl[0],Tl[0]));for(let ql=1;ql{if(xl&&Tl[ql]?xl(Tl[ql],ql,Tl):!0){const tu=Ul?Cl[ql]:getNextPageParam($.options,Kl);return Vl(Kl,Ul,tu)}return Promise.resolve($l(Kl,Cl[ql],Tl[ql]))})}return Bl.then(Ul=>({pages:Ul,pageParams:Il}))}}}}function getNextPageParam($,xn){return $.getNextPageParam==null?void 0:$.getNextPageParam(xn[xn.length-1],xn)}function getPreviousPageParam($,xn){return $.getPreviousPageParam==null?void 0:$.getPreviousPageParam(xn[0],xn)}class QueryClient{constructor(xn={}){this.queryCache=xn.queryCache||new QueryCache,this.mutationCache=xn.mutationCache||new MutationCache,this.logger=xn.logger||defaultLogger,this.defaultOptions=xn.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var xn,En;this.mountCount--,this.mountCount===0&&((xn=this.unsubscribeFocus)==null||xn.call(this),this.unsubscribeFocus=void 0,(En=this.unsubscribeOnline)==null||En.call(this),this.unsubscribeOnline=void 0)}isFetching(xn,En){const[Nn]=parseFilterArgs(xn,En);return Nn.fetchStatus="fetching",this.queryCache.findAll(Nn).length}isMutating(xn){return this.mutationCache.findAll({...xn,fetching:!0}).length}getQueryData(xn,En){var Nn;return(Nn=this.queryCache.find(xn,En))==null?void 0:Nn.state.data}ensureQueryData(xn,En,Nn){const Tn=parseQueryArgs(xn,En,Nn),$n=this.getQueryData(Tn.queryKey);return $n?Promise.resolve($n):this.fetchQuery(Tn)}getQueriesData(xn){return this.getQueryCache().findAll(xn).map(({queryKey:En,state:Nn})=>{const Tn=Nn.data;return[En,Tn]})}setQueryData(xn,En,Nn){const Tn=this.queryCache.find(xn),$n=Tn?.state.data,kl=functionalUpdate(En,$n);if(typeof kl>"u")return;const xl=parseQueryArgs(xn),Nl=this.defaultQueryOptions(xl);return this.queryCache.build(this,Nl).setData(kl,{...Nn,manual:!0})}setQueriesData(xn,En,Nn){return notifyManager.batch(()=>this.getQueryCache().findAll(xn).map(({queryKey:Tn})=>[Tn,this.setQueryData(Tn,En,Nn)]))}getQueryState(xn,En){var Nn;return(Nn=this.queryCache.find(xn,En))==null?void 0:Nn.state}removeQueries(xn,En){const[Nn]=parseFilterArgs(xn,En),Tn=this.queryCache;notifyManager.batch(()=>{Tn.findAll(Nn).forEach($n=>{Tn.remove($n)})})}resetQueries(xn,En,Nn){const[Tn,$n]=parseFilterArgs(xn,En,Nn),kl=this.queryCache,xl={type:"active",...Tn};return notifyManager.batch(()=>(kl.findAll(Tn).forEach(Nl=>{Nl.reset()}),this.refetchQueries(xl,$n)))}cancelQueries(xn,En,Nn){const[Tn,$n={}]=parseFilterArgs(xn,En,Nn);typeof $n.revert>"u"&&($n.revert=!0);const kl=notifyManager.batch(()=>this.queryCache.findAll(Tn).map(xl=>xl.cancel($n)));return Promise.all(kl).then(noop$4).catch(noop$4)}invalidateQueries(xn,En,Nn){const[Tn,$n]=parseFilterArgs(xn,En,Nn);return notifyManager.batch(()=>{var kl,xl;if(this.queryCache.findAll(Tn).forEach(Rl=>{Rl.invalidate()}),Tn.refetchType==="none")return Promise.resolve();const Nl={...Tn,type:(kl=(xl=Tn.refetchType)!=null?xl:Tn.type)!=null?kl:"active"};return this.refetchQueries(Nl,$n)})}refetchQueries(xn,En,Nn){const[Tn,$n]=parseFilterArgs(xn,En,Nn),kl=notifyManager.batch(()=>this.queryCache.findAll(Tn).filter(Nl=>!Nl.isDisabled()).map(Nl=>{var Rl;return Nl.fetch(void 0,{...$n,cancelRefetch:(Rl=$n?.cancelRefetch)!=null?Rl:!0,meta:{refetchPage:Tn.refetchPage}})}));let xl=Promise.all(kl).then(noop$4);return $n!=null&&$n.throwOnError||(xl=xl.catch(noop$4)),xl}fetchQuery(xn,En,Nn){const Tn=parseQueryArgs(xn,En,Nn),$n=this.defaultQueryOptions(Tn);typeof $n.retry>"u"&&($n.retry=!1);const kl=this.queryCache.build(this,$n);return kl.isStaleByTime($n.staleTime)?kl.fetch($n):Promise.resolve(kl.state.data)}prefetchQuery(xn,En,Nn){return this.fetchQuery(xn,En,Nn).then(noop$4).catch(noop$4)}fetchInfiniteQuery(xn,En,Nn){const Tn=parseQueryArgs(xn,En,Nn);return Tn.behavior=infiniteQueryBehavior(),this.fetchQuery(Tn)}prefetchInfiniteQuery(xn,En,Nn){return this.fetchInfiniteQuery(xn,En,Nn).then(noop$4).catch(noop$4)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(xn){this.defaultOptions=xn}setQueryDefaults(xn,En){const Nn=this.queryDefaults.find(Tn=>hashQueryKey(xn)===hashQueryKey(Tn.queryKey));Nn?Nn.defaultOptions=En:this.queryDefaults.push({queryKey:xn,defaultOptions:En})}getQueryDefaults(xn){if(!xn)return;const En=this.queryDefaults.find(Nn=>partialMatchKey(xn,Nn.queryKey));return En?.defaultOptions}setMutationDefaults(xn,En){const Nn=this.mutationDefaults.find(Tn=>hashQueryKey(xn)===hashQueryKey(Tn.mutationKey));Nn?Nn.defaultOptions=En:this.mutationDefaults.push({mutationKey:xn,defaultOptions:En})}getMutationDefaults(xn){if(!xn)return;const En=this.mutationDefaults.find(Nn=>partialMatchKey(xn,Nn.mutationKey));return En?.defaultOptions}defaultQueryOptions(xn){if(xn!=null&&xn._defaulted)return xn;const En={...this.defaultOptions.queries,...this.getQueryDefaults(xn?.queryKey),...xn,_defaulted:!0};return!En.queryHash&&En.queryKey&&(En.queryHash=hashQueryKeyByOptions(En.queryKey,En)),typeof En.refetchOnReconnect>"u"&&(En.refetchOnReconnect=En.networkMode!=="always"),typeof En.useErrorBoundary>"u"&&(En.useErrorBoundary=!!En.suspense),En}defaultMutationOptions(xn){return xn!=null&&xn._defaulted?xn:{...this.defaultOptions.mutations,...this.getMutationDefaults(xn?.mutationKey),...xn,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class QueryObserver extends Subscribable{constructor(xn,En){super(),this.client=xn,this.options=En,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(En)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(xn,En){const Nn=this.options,Tn=this.currentQuery;if(this.options=this.client.defaultQueryOptions(xn),shallowEqualObjects(Nn,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=Nn.queryKey),this.updateQuery();const $n=this.hasListeners();$n&&shouldFetchOptionally(this.currentQuery,Tn,this.options,Nn)&&this.executeFetch(),this.updateResult(En),$n&&(this.currentQuery!==Tn||this.options.enabled!==Nn.enabled||this.options.staleTime!==Nn.staleTime)&&this.updateStaleTimeout();const kl=this.computeRefetchInterval();$n&&(this.currentQuery!==Tn||this.options.enabled!==Nn.enabled||kl!==this.currentRefetchInterval)&&this.updateRefetchInterval(kl)}getOptimisticResult(xn){const En=this.client.getQueryCache().build(this.client,xn),Nn=this.createResult(En,xn);return shouldAssignObserverCurrentProperties(this,Nn,xn)&&(this.currentResult=Nn,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),Nn}getCurrentResult(){return this.currentResult}trackResult(xn){const En={};return Object.keys(xn).forEach(Nn=>{Object.defineProperty(En,Nn,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(Nn),xn[Nn])})}),En}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:xn,...En}={}){return this.fetch({...En,meta:{refetchPage:xn}})}fetchOptimistic(xn){const En=this.client.defaultQueryOptions(xn),Nn=this.client.getQueryCache().build(this.client,En);return Nn.isFetchingOptimistic=!0,Nn.fetch().then(()=>this.createResult(Nn,En))}fetch(xn){var En;return this.executeFetch({...xn,cancelRefetch:(En=xn.cancelRefetch)!=null?En:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(xn){this.updateQuery();let En=this.currentQuery.fetch(this.options,xn);return xn!=null&&xn.throwOnError||(En=En.catch(noop$4)),En}updateStaleTimeout(){if(this.clearStaleTimeout(),isServer||this.currentResult.isStale||!isValidTimeout(this.options.staleTime))return;const En=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},En)}computeRefetchInterval(){var xn;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(xn=this.options.refetchInterval)!=null?xn:!1}updateRefetchInterval(xn){this.clearRefetchInterval(),this.currentRefetchInterval=xn,!(isServer||this.options.enabled===!1||!isValidTimeout(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(xn,En){const Nn=this.currentQuery,Tn=this.options,$n=this.currentResult,kl=this.currentResultState,xl=this.currentResultOptions,Nl=xn!==Nn,Rl=Nl?xn.state:this.currentQueryInitialState,Fl=Nl?this.currentResult:this.previousQueryResult,{state:Al}=xn;let{dataUpdatedAt:Tl,error:Cl,errorUpdatedAt:Il,fetchStatus:Ml,status:Dl}=Al,Ll=!1,$l=!1,Vl;if(En._optimisticResults){const ql=this.hasListeners(),Kl=!ql&&shouldFetchOnMount(xn,En),Jl=ql&&shouldFetchOptionally(xn,Nn,En,Tn);(Kl||Jl)&&(Ml=canFetch(xn.options.networkMode)?"fetching":"paused",Tl||(Dl="loading")),En._optimisticResults==="isRestoring"&&(Ml="idle")}if(En.keepPreviousData&&!Al.dataUpdatedAt&&Fl!=null&&Fl.isSuccess&&Dl!=="error")Vl=Fl.data,Tl=Fl.dataUpdatedAt,Dl=Fl.status,Ll=!0;else if(En.select&&typeof Al.data<"u")if($n&&Al.data===kl?.data&&En.select===this.selectFn)Vl=this.selectResult;else try{this.selectFn=En.select,Vl=En.select(Al.data),Vl=replaceData($n?.data,Vl,En),this.selectResult=Vl,this.selectError=null}catch(ql){this.selectError=ql}else Vl=Al.data;if(typeof En.placeholderData<"u"&&typeof Vl>"u"&&Dl==="loading"){let ql;if($n!=null&&$n.isPlaceholderData&&En.placeholderData===xl?.placeholderData)ql=$n.data;else if(ql=typeof En.placeholderData=="function"?En.placeholderData():En.placeholderData,En.select&&typeof ql<"u")try{ql=En.select(ql),this.selectError=null}catch(Kl){this.selectError=Kl}typeof ql<"u"&&(Dl="success",Vl=replaceData($n?.data,ql,En),$l=!0)}this.selectError&&(Cl=this.selectError,Vl=this.selectResult,Il=Date.now(),Dl="error");const Bl=Ml==="fetching",zl=Dl==="loading",Ul=Dl==="error";return{status:Dl,fetchStatus:Ml,isLoading:zl,isSuccess:Dl==="success",isError:Ul,isInitialLoading:zl&&Bl,data:Vl,dataUpdatedAt:Tl,error:Cl,errorUpdatedAt:Il,failureCount:Al.fetchFailureCount,failureReason:Al.fetchFailureReason,errorUpdateCount:Al.errorUpdateCount,isFetched:Al.dataUpdateCount>0||Al.errorUpdateCount>0,isFetchedAfterMount:Al.dataUpdateCount>Rl.dataUpdateCount||Al.errorUpdateCount>Rl.errorUpdateCount,isFetching:Bl,isRefetching:Bl&&!zl,isLoadingError:Ul&&Al.dataUpdatedAt===0,isPaused:Ml==="paused",isPlaceholderData:$l,isPreviousData:Ll,isRefetchError:Ul&&Al.dataUpdatedAt!==0,isStale:isStale(xn,En),refetch:this.refetch,remove:this.remove}}updateResult(xn){const En=this.currentResult,Nn=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,shallowEqualObjects(Nn,En))return;this.currentResult=Nn;const Tn={cache:!0},$n=()=>{if(!En)return!0;const{notifyOnChangeProps:kl}=this.options,xl=typeof kl=="function"?kl():kl;if(xl==="all"||!xl&&!this.trackedProps.size)return!0;const Nl=new Set(xl??this.trackedProps);return this.options.useErrorBoundary&&Nl.add("error"),Object.keys(this.currentResult).some(Rl=>{const Fl=Rl;return this.currentResult[Fl]!==En[Fl]&&Nl.has(Fl)})};xn?.listeners!==!1&&$n()&&(Tn.listeners=!0),this.notify({...Tn,...xn})}updateQuery(){const xn=this.client.getQueryCache().build(this.client,this.options);if(xn===this.currentQuery)return;const En=this.currentQuery;this.currentQuery=xn,this.currentQueryInitialState=xn.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(En?.removeObserver(this),xn.addObserver(this))}onQueryUpdate(xn){const En={};xn.type==="success"?En.onSuccess=!xn.manual:xn.type==="error"&&!isCancelledError(xn.error)&&(En.onError=!0),this.updateResult(En),this.hasListeners()&&this.updateTimers()}notify(xn){notifyManager.batch(()=>{if(xn.onSuccess){var En,Nn,Tn,$n;(En=(Nn=this.options).onSuccess)==null||En.call(Nn,this.currentResult.data),(Tn=($n=this.options).onSettled)==null||Tn.call($n,this.currentResult.data,null)}else if(xn.onError){var kl,xl,Nl,Rl;(kl=(xl=this.options).onError)==null||kl.call(xl,this.currentResult.error),(Nl=(Rl=this.options).onSettled)==null||Nl.call(Rl,void 0,this.currentResult.error)}xn.listeners&&this.listeners.forEach(({listener:Fl})=>{Fl(this.currentResult)}),xn.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function shouldLoadOnMount($,xn){return xn.enabled!==!1&&!$.state.dataUpdatedAt&&!($.state.status==="error"&&xn.retryOnMount===!1)}function shouldFetchOnMount($,xn){return shouldLoadOnMount($,xn)||$.state.dataUpdatedAt>0&&shouldFetchOn($,xn,xn.refetchOnMount)}function shouldFetchOn($,xn,En){if(xn.enabled!==!1){const Nn=typeof En=="function"?En($):En;return Nn==="always"||Nn!==!1&&isStale($,xn)}return!1}function shouldFetchOptionally($,xn,En,Nn){return En.enabled!==!1&&($!==xn||Nn.enabled===!1)&&(!En.suspense||$.state.status!=="error")&&isStale($,En)}function isStale($,xn){return $.isStaleByTime(xn.staleTime)}function shouldAssignObserverCurrentProperties($,xn,En){return En.keepPreviousData?!1:En.placeholderData!==void 0?xn.isPlaceholderData:!shallowEqualObjects($.getCurrentResult(),xn)}var reactDomExports=requireReactDom(),reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);var shim={exports:{}},useSyncExternalStoreShim_production={};var hasRequiredUseSyncExternalStoreShim_production;function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var $=requireReact();function xn(Al,Tl){return Al===Tl&&(Al!==0||1/Al===1/Tl)||Al!==Al&&Tl!==Tl}var En=typeof Object.is=="function"?Object.is:xn,Nn=$.useState,Tn=$.useEffect,$n=$.useLayoutEffect,kl=$.useDebugValue;function xl(Al,Tl){var Cl=Tl(),Il=Nn({inst:{value:Cl,getSnapshot:Tl}}),Ml=Il[0].inst,Dl=Il[1];return $n(function(){Ml.value=Cl,Ml.getSnapshot=Tl,Nl(Ml)&&Dl({inst:Ml})},[Al,Cl,Tl]),Tn(function(){return Nl(Ml)&&Dl({inst:Ml}),Al(function(){Nl(Ml)&&Dl({inst:Ml})})},[Al]),kl(Cl),Cl}function Nl(Al){var Tl=Al.getSnapshot;Al=Al.value;try{var Cl=Tl();return!En(Al,Cl)}catch{return!0}}function Rl(Al,Tl){return Tl()}var Fl=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Rl:xl;return useSyncExternalStoreShim_production.useSyncExternalStore=$.useSyncExternalStore!==void 0?$.useSyncExternalStore:Fl,useSyncExternalStoreShim_production}var hasRequiredShim;function requireShim(){return hasRequiredShim||(hasRequiredShim=1,shim.exports=requireUseSyncExternalStoreShim_production()),shim.exports}var shimExports=requireShim();const useSyncExternalStore=shimExports.useSyncExternalStore,defaultContext=reactExports.createContext(void 0),QueryClientSharingContext=reactExports.createContext(!1);function getQueryClientContext($,xn){return $||(xn&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext)}const useQueryClient=({context:$}={})=>{const xn=reactExports.useContext(getQueryClientContext($,reactExports.useContext(QueryClientSharingContext)));if(!xn)throw new Error("No QueryClient set, use QueryClientProvider to set one");return xn},QueryClientProvider=({client:$,children:xn,context:En,contextSharing:Nn=!1})=>{reactExports.useEffect(()=>($.mount(),()=>{$.unmount()}),[$]);const Tn=getQueryClientContext(En,Nn);return reactExports.createElement(QueryClientSharingContext.Provider,{value:!En&&Nn},reactExports.createElement(Tn.Provider,{value:$},xn))},IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let $=!1;return{clearReset:()=>{$=!1},reset:()=>{$=!0},isReset:()=>$}}const QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError($,xn){return typeof $=="function"?$(...xn):!!$}const ensurePreventErrorBoundaryRetry=($,xn)=>{($.suspense||$.useErrorBoundary)&&(xn.isReset()||($.retryOnMount=!1))},useClearResetErrorBoundary=$=>{reactExports.useEffect(()=>{$.clearReset()},[$])},getHasError=({result:$,errorResetBoundary:xn,useErrorBoundary:En,query:Nn})=>$.isError&&!xn.isReset()&&!$.isFetching&&shouldThrowError(En,[$.error,Nn]),ensureStaleTime=$=>{$.suspense&&(typeof $.staleTime!="number"&&($.staleTime=1e3),typeof $.cacheTime=="number"&&($.cacheTime=Math.max($.cacheTime,1e3)))},willFetch=($,xn)=>$.isLoading&&$.isFetching&&!xn,shouldSuspend=($,xn,En)=>$?.suspense&&willFetch(xn,En),fetchOptimistic=($,xn,En)=>xn.fetchOptimistic($).then(({data:Nn})=>{$.onSuccess==null||$.onSuccess(Nn),$.onSettled==null||$.onSettled(Nn,null)}).catch(Nn=>{En.clearReset(),$.onError==null||$.onError(Nn),$.onSettled==null||$.onSettled(void 0,Nn)});function useBaseQuery($,xn){const En=useQueryClient({context:$.context}),Nn=useIsRestoring(),Tn=useQueryErrorResetBoundary(),$n=En.defaultQueryOptions($);$n._optimisticResults=Nn?"isRestoring":"optimistic",$n.onError&&($n.onError=notifyManager.batchCalls($n.onError)),$n.onSuccess&&($n.onSuccess=notifyManager.batchCalls($n.onSuccess)),$n.onSettled&&($n.onSettled=notifyManager.batchCalls($n.onSettled)),ensureStaleTime($n),ensurePreventErrorBoundaryRetry($n,Tn),useClearResetErrorBoundary(Tn);const[kl]=reactExports.useState(()=>new xn(En,$n)),xl=kl.getOptimisticResult($n);if(useSyncExternalStore(reactExports.useCallback(Nl=>{const Rl=Nn?()=>{}:kl.subscribe(notifyManager.batchCalls(Nl));return kl.updateResult(),Rl},[kl,Nn]),()=>kl.getCurrentResult(),()=>kl.getCurrentResult()),reactExports.useEffect(()=>{kl.setOptions($n,{listeners:!1})},[$n,kl]),shouldSuspend($n,xl,Nn))throw fetchOptimistic($n,kl,Tn);if(getHasError({result:xl,errorResetBoundary:Tn,useErrorBoundary:$n.useErrorBoundary,query:kl.getCurrentQuery()}))throw xl.error;return $n.notifyOnChangeProps?xl:kl.trackResult(xl)}function useQuery($,xn,En){const Nn=parseQueryArgs($,xn,En);return useBaseQuery(Nn,QueryObserver)}var t=typeof window<"u"?window:void 0,e=typeof globalThis<"u"?globalThis:t;typeof self>"u"&&(e.self=e),typeof File>"u"&&(e.File=function(){});var i=e?.navigator,r$1=e?.document,s=e?.location,n=e?.fetch,o=e!=null&&e.XMLHttpRequest&&"withCredentials"in new e.XMLHttpRequest?e.XMLHttpRequest:void 0,a=e?.AbortController,l=e?.CompressionStream,u=i?.userAgent,h=t??{},d="1.396.6",v={DEBUG:!1,LIB_VERSION:d,LIB_NAME:"web",JS_SDK_VERSION:d};function c($,xn,En,Nn,Tn,$n,kl){try{var xl=$[$n](kl),Nl=xl.value}catch(Rl){return void En(Rl)}xl.done?xn(Nl):Promise.resolve(Nl).then(Nn,Tn)}function p($){return function(){var xn=this,En=arguments;return new Promise((function(Nn,Tn){var $n=$.apply(xn,En);function kl(Nl){c($n,Nn,Tn,kl,xl,"next",Nl)}function xl(Nl){c($n,Nn,Tn,kl,xl,"throw",Nl)}kl(void 0)}))}}function f(){return f=Object.assign?Object.assign.bind():function($){for(var xn=1;arguments.length>xn;xn++){var En=arguments[xn];for(var Nn in En)({}).hasOwnProperty.call(En,Nn)&&($[Nn]=En[Nn])}return $},f.apply(null,arguments)}function _($,xn){if($==null)return{};var En={};for(var Nn in $)if({}.hasOwnProperty.call($,Nn)){if(xn.indexOf(Nn)!==-1)continue;En[Nn]=$[Nn]}return En}var g=$=>{if(typeof $!="string")return $;try{return JSON.parse($)}catch{return $}};function m($){return typeof $=="string"||$}function y($){return typeof $=="string"?$:void 0}var b,w=(function($){return $.AnonymousId="anonymous_id",$.DistinctId="distinct_id",$.Props="props",$.EnablePersonProcessing="enable_person_processing",$.PersonMode="person_mode",$.FeatureFlagDetails="feature_flag_details",$.FeatureFlags="feature_flags",$.FeatureFlagPayloads="feature_flag_payloads",$.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",$.BootstrapFeatureFlags="bootstrap_feature_flags",$.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",$.OverrideFeatureFlags="override_feature_flags",$.Queue="queue",$.LogsQueue="logs_queue",$.OptedOut="opted_out",$.SessionId="session_id",$.SessionStartTimestamp="session_start_timestamp",$.SessionLastTimestamp="session_timestamp",$.PersonProperties="person_properties",$.GroupProperties="group_properties",$.InstalledAppBuild="installed_app_build",$.InstalledAppVersion="installed_app_version",$.SessionReplay="session_replay",$.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",$.SurveyLastSeenDate="survey_last_seen_date",$.SurveysSeen="surveys_seen",$.Surveys="surveys",$.RemoteConfig="remote_config",$.FlagsEndpointWasHit="flags_endpoint_was_hit",$.DeviceId="device_id",$})({}),E=(function($){return $.GZipJS="gzip-js",$.Base64="base64",$})({}),x=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],S=["token"],T="NativeGzipValidationError",k=$=>$.length>=2&&$[0]===31&&$[1]===139,R=($,xn)=>$===E.GZipJS||xn===E.GZipJS||xn==="gzip",P=$=>!(!$||typeof $!="object")&&("name"in $?String($.name):"")==="NotReadableError",I=$=>{var xn=new Error("Native gzip produced invalid output: "+$);throw xn.name=T,xn},O=(function(){var $=p((function*(xn,En){18>xn.size&&I("too-short");var Nn=new Uint8Array(yield xn.slice(0,10).arrayBuffer());k(Nn)&&Nn[2]===8||I("invalid-header");var Tn=new DataView(yield xn.slice(xn.size-8).arrayBuffer());Tn.getUint32(0,!0)!==(kl=>{for(var xl=(()=>{if(b)return b;b=[];for(var Fl=0;256>Fl;Fl++){for(var Al=Fl,Tl=0;8>Tl;Tl++)Al=1&Al?3988292384^Al>>>1:Al>>>1;b[Fl]=Al>>>0}return b})(),Nl=4294967295,Rl=0;kl.length>Rl;Rl++)Nl=xl[255&(Nl^kl[Rl])]^Nl>>>8;return(4294967295^Nl)>>>0})(En)&&I("invalid-crc");var $n=En.length>>>0;Tn.getUint32(4,!0)!==$n&&I("invalid-size")}));return function(xn,En){return $.apply(this,arguments)}})();function C(){return C=p((function*($,xn,En){xn===void 0&&(xn=!0);try{var Nn=new TextEncoder().encode($),Tn=new CompressionStream("gzip"),$n=Tn.writable.getWriter(),kl=$n.write(Nn).then((()=>$n.close())).catch((function(){var Rl=p((function*(Fl){try{yield $n.abort(Fl)}catch{}throw Fl}));return function(Fl){return Rl.apply(this,arguments)}})()),xl=new Response(Tn.readable).blob(),[Nl]=yield Promise.all([xl,kl]);return yield O(Nl,Nn),Nl}catch(Rl){if(En!=null&&En.rethrow)throw Rl;return xn&&console.error("Failed to gzip compress data",Rl),null}})),C.apply(this,arguments)}var A=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],F=function($,xn){if(xn===void 0&&(xn=[]),!$)return!1;var En=$.toLowerCase();return A.concat(xn).some((Nn=>{var Tn=Nn.toLowerCase();return En.indexOf(Tn)!==-1}))};function M($,xn){return $.indexOf(xn)!==-1}var D=function($){return $.trim()},L=function($){return $.replace(/^\$/,"")},N=Object.prototype,U=N.hasOwnProperty,j=N.toString,B=Array.isArray||function($){return j.call($)==="[object Array]"},z=$=>typeof $=="function",H=$=>$===Object($)&&!B($),q=$=>{if(H($)){for(var xn in $)if(U.call($,xn))return!1;return!0}return!1},V$1=$=>$===void 0,G=$=>j.call($)=="[object String]",W=$=>G($)&&$.trim().length===0,Y=$=>$===null,K=$=>V$1($)||Y($),J=$=>j.call($)=="[object Number]"&&$==$,Q=$=>J($)&&$>0,X=$=>j.call($)==="[object Boolean]",Z=$=>$ instanceof FormData,tt=$=>M(x,$),et=$=>M(S,$);function it($){return $===null||typeof $!="object"}function rt($,xn){return{}.toString.call($)==="[object "+xn+"]"}function st($){return typeof Event<"u"&&(function(xn,En){try{return xn instanceof En}catch{return!1}})($,Event)}var nt=[!0,"true",1,"1","yes"],ot=$=>M(nt,$),at=[!1,"false",0,"0","no"];function lt($,xn,En,Nn,Tn){return xn>En&&(Nn.warn("min cannot be greater than max."),xn=En),J($)?$>En?(Nn.warn(" cannot be greater than max: "+En+". Using max value instead."),En):xn>$?(Nn.warn(" cannot be less than min: "+xn+". Using min value instead."),xn):$:(Nn.warn(" must be a number. using max or fallback. max: "+En+", fallback: "+Tn),lt(Tn||En,xn,En,Nn))}class ut{constructor(xn){this.Ee={},this.Pe=xn.Pe,this.Fe=lt(xn.bucketSize,0,100,xn.Ae),this.$e=lt(xn.refillRate,0,this.Fe,xn.Ae),this.De=lt(xn.refillInterval,0,864e5,xn.Ae)}Ne(xn,En){var Nn=Math.floor((En-xn.lastAccess)/this.De);Nn>0&&(xn.tokens=Math.min(xn.tokens+Nn*this.$e,this.Fe),xn.lastAccess=xn.lastAccess+Nn*this.De)}consumeRateLimit(xn){var En,Nn=Date.now(),Tn=String(xn),$n=this.Ee[Tn];return $n?this.Ne($n,Nn):this.Ee[Tn]=$n={tokens:this.Fe,lastAccess:Nn},$n.tokens===0||($n.tokens--,$n.tokens===0&&((En=this.Pe)==null||En.call(this,xn)),$n.tokens===0)}stop(){this.Ee={}}}var ht="Mobile",dt="iOS",vt="Android",ct="Tablet",pt=vt+" "+ct,ft="iPad",_t="Apple",gt=_t+" Watch",mt="Safari",yt="BlackBerry",bt="Samsung",wt=bt+"Browser",Et=bt+" Internet",xt="Chrome",St=xt+" OS",Tt=xt+" "+dt,$t="Internet Explorer",kt=$t+" "+ht,Rt="Opera",Pt=Rt+" Mini",It="Edge",Ot="Microsoft "+It,Ct="Firefox",At=Ct+" "+dt,Ft="Nintendo",Mt="PlayStation",Dt="Xbox",Lt=vt+" "+ht,Nt=ht+" "+mt,Ut="Windows",jt=Ut+" Phone",Bt="Nokia",zt="Ouya",Ht="Generic",qt=Ht+" "+ht.toLowerCase(),Vt=Ht+" "+ct.toLowerCase(),Gt="Konqueror",Wt="Oculus Browser",Yt="Vivaldi",Kt="Yandex",Jt="Whale",Qt="DuckDuckGo",Xt="Pale Moon",Zt="Waterfox",te="Brave",ee="Google Search App",ie="(\\d+(\\.\\d+)?)",re=new RegExp("Version/"+ie),se=new RegExp(Dt,"i"),ne=new RegExp(Mt+" \\w+","i"),oe=new RegExp(Ft+" \\w+","i"),ae=new RegExp(yt+"|PlayBook|BB10","i"),le={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},ue=function($,xn,En,Nn){xn=xn||"";var Tn=(function($n){return $n!=null&&$n.brave?te:null})(En);return Tn||(Nn!=null&&Nn.detectGoogleSearchApp&&M($,"GSA/")?ee:M($," OPR/")&&M($,"Mini")?Pt:M($," OPR/")?Rt:ae.test($)?yt:M($,"IE"+ht)||M($,"WPDesktop")?kt:M($,"OculusBrowser")?Wt:M($,wt)?Et:M($,It)||M($,"Edg/")?Ot:M($,Yt+"/")?Yt:M($,"YaBrowser/")?Kt:M($,Jt+"/")?Jt:M($,Qt+"/")||M($,"Ddg/")?Qt:M($,"FBIOS")?"Facebook "+ht:M($,"UCWEB")||M($,"UCBrowser")?"UC Browser":M($,"CriOS")?Tt:M($,"CrMo")||M($,xt)?xt:M($,vt)&&M($,mt)?Lt:M($,"FxiOS")?At:M($.toLowerCase(),Gt.toLowerCase())?Gt:M($,te+"/")?te:(($n,kl)=>kl&&M(kl,_t)||(function(xl){return M(xl,mt)&&!M(xl,xt)&&!M(xl,vt)})($n))($,xn)?M($,ht)?Nt:mt:M($,"PaleMoon/")?Xt:M($,Zt+"/")?Zt:M($,Ct)?Ct:M($,"MSIE")||M($,"Trident/")?$t:M($,"Gecko")?Ct:"")},he={[kt]:[new RegExp("rv:"+ie)],[Ot]:[new RegExp(It+"?\\/"+ie)],[xt]:[new RegExp("("+xt+"|CrMo)\\/"+ie)],[Tt]:[new RegExp("CriOS\\/"+ie)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+ie)],[mt]:[re],[Nt]:[re],[Rt]:[new RegExp("(Opera|OPR)\\/"+ie)],[Ct]:[new RegExp(Ct+"\\/"+ie)],[At]:[new RegExp("FxiOS\\/"+ie)],[Gt]:[new RegExp("Konqueror[:/]?"+ie,"i")],[yt]:[new RegExp(yt+" "+ie),re],[Lt]:[new RegExp("android\\s"+ie,"i")],[Et]:[new RegExp(wt+"\\/"+ie)],[Wt]:[new RegExp("OculusBrowser\\/"+ie)],[Yt]:[new RegExp(Yt+"\\/"+ie)],[Kt]:[new RegExp("YaBrowser\\/"+ie)],[Jt]:[new RegExp(Jt+"\\/"+ie)],[te]:[new RegExp(te+"\\/"+ie)],[Qt]:[new RegExp("(DuckDuckGo|Ddg)\\/"+ie)],[Xt]:[new RegExp("PaleMoon\\/"+ie)],[Zt]:[new RegExp(Zt+"\\/"+ie)],[ee]:[new RegExp("GSA\\/"+ie)],[$t]:[new RegExp("(rv:|MSIE )"+ie)],Mozilla:[new RegExp("rv:"+ie)]},de=function($,xn,En,Nn){var Tn=ue($,xn,En,Nn),$n=he[Tn];if(V$1($n))return null;for(var kl=0;$n.length>kl;kl++){var xl=$.match($n[kl]);if(xl)return parseFloat(xl[xl.length-2])}return null},ve=[[new RegExp(Dt+"; "+Dt+" (.*?)[);]","i"),$=>[Dt,$&&$[1]||""]],[new RegExp(Ft,"i"),[Ft,""]],[new RegExp(Mt,"i"),[Mt,""]],[ae,[yt,""]],[new RegExp(Ut,"i"),($,xn)=>{if(/Phone/.test(xn)||/WPDesktop/.test(xn))return[jt,""];if(new RegExp(ht).test(xn)&&!/IEMobile\b/.test(xn))return[Ut+" "+ht,""];var En=/Windows NT ([0-9.]+)/i.exec(xn);if(En&&En[1]){var Nn=le[En[1]]||"";return/arm/i.test(xn)&&(Nn="RT"),[Ut,Nn]}return[Ut,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,$=>$&&$[3]?[dt,[$[3],$[4],$[5]||"0"].join(".")]:[dt,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,$=>{var xn="";return $&&$.length>=3&&(xn=V$1($[2])?$[3]:$[2]),["watchOS",xn]}],[new RegExp("("+vt+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+vt+")","i"),$=>$&&$[2]?[vt,[$[2],$[3],$[4]||"0"].join(".")]:[vt,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,$=>{var xn=["Mac OS X",""];return $&&$[1]&&(xn[1]=[$[1],$[2],$[3]||"0"].join(".")),xn}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[St,""]],[/Linux|debian/i,["Linux",""]]],ce=function($){return oe.test($)?Ft:ne.test($)?Mt:se.test($)?Dt:new RegExp(zt,"i").test($)?zt:new RegExp("("+jt+"|WPDesktop)","i").test($)?jt:/iPad/.test($)?ft:/iPod/.test($)?"iPod Touch":/iPhone/.test($)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test($)?gt:ae.test($)?yt:/(kobo)\s(ereader|touch)/i.test($)?"Kobo":new RegExp(Bt,"i").test($)?Bt:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test($)||/(kf[a-z]+)( bui|\)).+silk\//i.test($)?"Kindle Fire":/(Android|ZTE)/i.test($)?new RegExp(ht).test($)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test($)||/pixel[\daxl ]{1,6}/i.test($)&&!/pixel c/i.test($)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test($)||/lmy47v/i.test($)&&!/QTAQZ3/i.test($)?vt:pt:new RegExp("(pda|"+ht+")","i").test($)?qt:new RegExp(ct,"i").test($)&&!new RegExp(ct+" pc","i").test($)?Vt:""},pe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function fe($,xn){return typeof(En=$)=="string"&&pe.test(En)?$:xn();var En}function _e($){return $&&$.split("#")[0]}function ge($,xn){var En=setTimeout($,xn);return En?.unref&&En?.unref(),En}var me=$=>$ instanceof Error,ye={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},be=ye.info;function we($){if(X($))return{boolValue:$};if(typeof $=="number")return Number.isFinite($)?Number.isInteger($)?{intValue:$}:{doubleValue:$}:{stringValue:String($)};if(typeof $=="string")return{stringValue:$};if(B($))return{arrayValue:{values:$.map((xn=>we(xn)))}};try{return{stringValue:JSON.stringify($)}}catch{return{stringValue:String($)}}}function Ee($){var xn=[];for(var En in $){var Nn=$[En];Y(Nn)||V$1(Nn)||xn.push({key:En,value:we(Nn)})}return xn}function xe($,xn){var En=$.level||"info",{text:Nn,number:Tn}=ye[En]||be,$n=String(Date.now())+"000000",kl={};xn.distinctId&&(kl.posthogDistinctId=xn.distinctId),xn.sessionId&&(kl.sessionId=xn.sessionId),xn.windowId&&(kl["window.id"]=xn.windowId),K(xn.sessionStartTimestamp)||(kl.sessionStartTimestamp=String(xn.sessionStartTimestamp)),K(xn.lastActivityTimestamp)||(kl.lastActivityTimestamp=String(xn.lastActivityTimestamp)),xn.currentUrl&&(kl["url.full"]=xn.currentUrl),xn.screenName&&(kl["screen.name"]=xn.screenName),xn.appState&&(kl["app.state"]=xn.appState),xn.activeFeatureFlags&&xn.activeFeatureFlags.length>0&&(kl.feature_flags=xn.activeFeatureFlags);var xl=f({},kl,$.attributes||{}),Nl={timeUnixNano:$n,observedTimeUnixNano:$n,severityNumber:Tn,severityText:Nn,body:{stringValue:$.body},attributes:Ee(xl)};return $.trace_id&&(Nl.traceId=$.trace_id),$.span_id&&(Nl.spanId=$.span_id),V$1($.trace_flags)||(Nl.flags=$.trace_flags),Nl}function Se($,xn,En){return f({},$.resourceAttributes,{"service.name":$.serviceName||"unknown_service"},$.environment&&{"deployment.environment":$.environment},$.serviceVersion&&{"service.version":$.serviceVersion},{"telemetry.sdk.name":xn,"telemetry.sdk.version":En})}function Te($,xn,En,Nn){return{resourceLogs:[{resource:{attributes:Ee(xn)},scopeLogs:[{scope:{name:En,version:Nn},logRecords:$}]}]}}let $e=class{constructor($,xn,En,Nn,Tn,$n,kl){var xl;$n===void 0&&($n=()=>Promise.resolve()),this._instance=$,this.Se=xn,this.Ae=En,this.qe=Nn,this.Be=Tn,this.je=$n,this.He=kl,this.Ue=null,this.ze=0,this.Ve=0,this.We=0,this.Ge=0,this.Ze=!1,this.Qe=xn.maxBufferSize,this.Je=Math.max((xl=xn.maxQueueSize)!==null&&xl!==void 0?xl:xn.maxBufferSize,xn.maxBufferSize),this.Ye=xn.flushIntervalMs,this.Ke=xn.maxBatchRecordsPerPost,this.Xe=xn.rateCapWindowMs,this.et=xn.maxLogsPerInterval}reset(){this.tt(),this.Ue=null,this.We=0,this.Ge=0,this.Ze=!1,this.ze=0,this.Ve=0,this.Ke=this.Se.maxBatchRecordsPerPost}onReconnect(){this.Ve=0,this.rt()}captureLog($){if(!this._instance.isDisabled&&!this._instance.optedOut&&$!=null&&$.body){var xn=this.it($);if(xn!==null)if(xn.body){if(this.nt()){var En={record:xe(xn,this.qe())};this.Be((()=>this.st(En)))}}else this.Ae.info("Log was rejected in beforeSend function")}}it($){var xn=this.Se.beforeSend;if(!xn)return $;var En=B(xn)?xn:[xn],Nn=$;for(var Tn of En)try{var $n=Tn(Nn);if(!$n)return this.Ae.info("Log was rejected in beforeSend function"),null;Nn=$n}catch(kl){return this.Ae.error("Error in beforeSend function for log:",kl),null}return Nn}nt(){if(this.et===void 0)return!0;var $=Date.now(),xn=$-this.We;return this.Xe>xn&&xn>=0||(this.We=$,this.Ge=0,this.Ze=!1),this.et>this.Ge?(this.Ge++,!0):(this.Ze||(this.Ae.warn("captureLog dropping logs: exceeded "+this.et+" logs per "+this.Xe+"ms"),this.Ze=!0),!1)}flush(){var $=this;return p((function*(){if(!$._instance.isDisabled)return $.Ue||($.Ue=$.ot().finally((()=>{$.Ue=null}))),$.Ue}))()}ot(){var $=this;return p((function*(){var xn;$.tt();var En=(xn=$._instance.getPersistedProperty(w.LogsQueue))!==null&&xn!==void 0?xn:[];if(En.length!==0)for(var Nn=En.length,Tn=0;En.length>0&&Nn>Tn;){var $n,kl;$.ze=0;var xl=Math.min(En.length,$.Ke),Nl=En.slice(0,xl),Rl=Te(Nl.map((Al=>Al.record)),$.ut(),($n=$.He)!==null&&$n!==void 0?$n:$._instance.getLibraryId(),$._instance.getLibraryVersion()),Fl=yield $._instance.ht(Rl);if(Fl.kind==="too-large"&&Nl.length>1)$.Ke=Math.max(1,Math.floor(Nl.length/2)),$.Ae.warn("Received 413 when sending logs batch of size "+Nl.length+", reducing batch size to "+$.Ke);else if(Fl.kind==="retry-later"||(Fl.kind==="too-large"?$.Ae.warn("Dropping a single log record after 413 with batch size 1 — the record is larger than the server cap and cannot be split further."):Fl.kind==="ok"&&$.Se.maxBatchRecordsPerPost>$.Ke&&($.Ke=Math.min($.Se.maxBatchRecordsPerPost,$.Ke+1)),yield $.dt(Nl.length),En=(kl=$._instance.getPersistedProperty(w.LogsQueue))!==null&&kl!==void 0?kl:[],Tn+=Nl.length,Fl.kind==="fatal"))throw Fl.error}}))()}dt($){var xn=this;return p((function*(){var En,Nn=Math.max(0,$-xn.ze),Tn=(En=xn._instance.getPersistedProperty(w.LogsQueue))!==null&&En!==void 0?En:[];xn._instance.setPersistedProperty(w.LogsQueue,Tn.slice(Nn)),yield xn.je()}))()}ut(){return Se(this.Se,this._instance.getLibraryId(),this._instance.getLibraryVersion())}st($){var xn;if(!this._instance.optedOut){var En=(xn=this._instance.getPersistedProperty(w.LogsQueue))!==null&&xn!==void 0?xn:[];this.Je>En.length||(En.shift(),this.ze++,this.Ae.info("Logs queue is full, dropping oldest record.")),En.push($),this._instance.setPersistedProperty(w.LogsQueue,En),this.Qe>En.length?this.ct():this.rt()}}ct($){$===void 0&&($=this.Ye),this.vt||(this.vt=ge((()=>{this.vt=void 0,this.rt()}),$))}ft(){var $=Math.min(Math.max(0,this.Ve-1),6);return this.Ye*Math.pow(2,$)}yt(){var $=this._instance.getPersistedProperty(w.LogsQueue);return!!$&&$.length>0}shutdown($){var xn=this;return p((function*(){xn.tt();var En=xn.flush().catch((()=>{}));$!==void 0?yield Promise.race([En,new Promise((Nn=>ge(Nn,$)))]):yield En}))()}flushWithTimeout($){var xn=this;return p((function*(){var En=!1,Nn=xn.flush(),Tn=new Promise(($n=>ge((()=>{En=!0,$n()}),$)));try{yield Promise.race([Nn,Tn])}finally{En&&Nn.catch((()=>{}))}}))()}rt(){this.flush().then((()=>{this.Ve=0}),($=>{this.Ve++,this.Ae.error("PostHog logs flush failed:",$)})).finally((()=>{!this._instance.isDisabled&&this.yt()&&this.ct(this.ft())}))}tt(){this.vt&&(clearTimeout(this.vt),this.vt=void 0)}};var ke,Re,Pe;function Ie($){var xn=globalThis._posthogChunkIds;if(xn){var En=Object.keys(xn);return Pe&&En.length===Re||(Re=En.length,Pe=En.reduce(((Nn,Tn)=>{ke||(ke={});var $n=ke[Tn];if($n)Nn[$n[0]]=$n[1];else for(var kl=$(Tn),xl=kl.length-1;xl>=0;xl--){var Nl=kl[xl],Rl=Nl?.filename,Fl=xn[Tn];if(Rl&&Fl){Nn[Rl]=Fl,ke[Tn]=[Rl,Fl];break}}return Nn}),{})),Pe}}class Oe{constructor(xn,En,Nn){Nn===void 0&&(Nn=[]),this.coercers=xn,this.stackParser=En,this.modifiers=Nn}buildFromUnknown(xn,En){En===void 0&&(En={});var Nn=En&&En.mechanism||{handled:!0,type:"generic"},Tn=this.buildCoercingContext(Nn,En,0).apply(xn),$n=this.buildParsingContext(En),kl=this.parseStacktrace(Tn,$n);return{$exception_list:this.convertToExceptionList(kl,Nn),$exception_level:"error"}}modifyFrames(xn){var En=this;return p((function*(){for(var Nn of xn)Nn.stacktrace&&Nn.stacktrace.frames&&B(Nn.stacktrace.frames)&&(Nn.stacktrace.frames=yield En.applyModifiers(Nn.stacktrace.frames));return xn}))()}coerceFallback(xn){var En;return{type:"Error",value:"Unknown error",stack:(En=xn.syntheticException)==null?void 0:En.stack,synthetic:!0}}parseStacktrace(xn,En){var Nn,Tn;return xn.cause!=null&&(Nn=this.parseStacktrace(xn.cause,En)),xn.stack!=""&&xn.stack!=null&&(Tn=this.applyChunkIds(this.stackParser(xn.stack,xn.synthetic?En.skipFirstLines:0),En.chunkIdMap)),f({},xn,{cause:Nn,stack:Tn})}applyChunkIds(xn,En){return xn.map((Nn=>(Nn.filename&&En&&(Nn.chunk_id=En[Nn.filename]),Nn)))}applyCoercers(xn,En){for(var Nn of this.coercers)if(Nn.match(xn))return Nn.coerce(xn,En);return this.coerceFallback(En)}applyModifiers(xn){var En=this;return p((function*(){var Nn=xn;for(var Tn of En.modifiers)Nn=yield Tn(Nn);return Nn}))()}convertToExceptionList(xn,En){var Nn,Tn,$n,kl={type:xn.type,value:xn.value,mechanism:{type:(Nn=En.type)!==null&&Nn!==void 0?Nn:"generic",handled:(Tn=En.handled)===null||Tn===void 0||Tn,synthetic:($n=xn.synthetic)!==null&&$n!==void 0&&$n}};xn.stack&&(kl.stacktrace={type:"raw",frames:xn.stack});var xl=[kl];return xn.cause!=null&&xl.push(...this.convertToExceptionList(xn.cause,f({},En,{handled:!0}))),xl}buildParsingContext(xn){var En;return{chunkIdMap:Ie(this.stackParser),skipFirstLines:(En=xn.skipFirstLines)!==null&&En!==void 0?En:1}}buildCoercingContext(xn,En,Nn){Nn===void 0&&(Nn=0);var Tn=($n,kl)=>{if(4>=kl){var xl=this.buildCoercingContext(xn,En,kl);return this.applyCoercers($n,xl)}};return f({},En,{syntheticException:Nn==0?En.syntheticException:void 0,mechanism:xn,apply:$n=>Tn($n,Nn),next:$n=>Tn($n,Nn+1)})}}var Ce="?";function Ae($,xn,En,Nn,Tn){var $n={platform:$,filename:xn,function:En===""?Ce:En,in_app:!0};return V$1(Nn)||($n.lineno=Nn),V$1(Tn)||($n.colno=Tn),$n}var Fe=($,xn)=>{var En=$.indexOf("safari-extension")!==-1,Nn=$.indexOf("safari-web-extension")!==-1;return En||Nn?[$.indexOf("@")!==-1?$.split("@")[0]:Ce,En?"safari-extension:"+xn:"safari-web-extension:"+xn]:[$,xn]},Me=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,De=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Le=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ne=($,xn)=>{var En=Me.exec($);if(En){var[,Nn,Tn,$n]=En;return Ae(xn,Nn,Ce,+Tn,+$n)}var kl=De.exec($);if(kl){if(kl[2]&&kl[2].indexOf("eval")===0){var xl=Le.exec(kl[2]);xl&&(kl[2]=xl[1],kl[3]=xl[2],kl[4]=xl[3])}var[Nl,Rl]=Fe(kl[1]||Ce,kl[2]);return Ae(xn,Rl,Nl,kl[3]?+kl[3]:void 0,kl[4]?+kl[4]:void 0)}},Ue=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,je=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Be=($,xn)=>{var En=Ue.exec($);if(En){if(En[3]&&En[3].indexOf(" > eval")>-1){var Nn=je.exec(En[3]);Nn&&(En[1]=En[1]||"eval",En[3]=Nn[1],En[4]=Nn[2],En[5]="")}var Tn=En[3],$n=En[1]||Ce;return[$n,Tn]=Fe($n,Tn),Ae(xn,Tn,$n,En[4]?+En[4]:void 0,En[5]?+En[5]:void 0)}},ze=/\(error: (.*)\)/;class He{match(xn){return this.isDOMException(xn)||this.isDOMError(xn)}coerce(xn,En){var Nn=G(xn.stack);return{type:this.getType(xn),value:this.getValue(xn),stack:Nn?xn.stack:void 0,cause:xn.cause?En.next(xn.cause):void 0,synthetic:!1}}getType(xn){return this.isDOMError(xn)?"DOMError":"DOMException"}getValue(xn){var En=xn.name||(this.isDOMError(xn)?"DOMError":"DOMException");return xn.message?En+": "+xn.message:En}isDOMException(xn){return rt(xn,"DOMException")}isDOMError(xn){return rt(xn,"DOMError")}}class qe{match(xn){return(En=>En instanceof Error)(xn)}coerce(xn,En){return{type:this.getType(xn),value:this.getMessage(xn,En),stack:this.getStack(xn),cause:xn.cause?En.next(xn.cause):void 0,synthetic:!1}}getType(xn){return xn.name||xn.constructor.name}getMessage(xn,En){var Nn=xn.message;return String(Nn.error&&typeof Nn.error.message=="string"?Nn.error.message:Nn)}getStack(xn){return xn.stacktrace||xn.stack||void 0}}class Ve{constructor(){}match(xn){return rt(xn,"ErrorEvent")&&xn.error!=null}coerce(xn,En){var Nn;return En.apply(xn.error)||{type:"ErrorEvent",value:xn.message,stack:(Nn=En.syntheticException)==null?void 0:Nn.stack,synthetic:!0}}}var Ge=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class We{match(xn){return typeof xn=="string"}coerce(xn,En){var Nn,[Tn,$n]=this.getInfos(xn);return{type:Tn??"Error",value:$n??xn,stack:(Nn=En.syntheticException)==null?void 0:Nn.stack,synthetic:!0}}getInfos(xn){var En="Error",Nn=xn,Tn=xn.match(Ge);return Tn&&(En=Tn[1],Nn=Tn[2]),[En,Nn]}}var Ye=["fatal","error","warning","log","info","debug"];function Ke($,xn){xn===void 0&&(xn=40);var En=Object.keys($);if(En.sort(),!En.length)return"[object has no keys]";for(var Nn=En.length;Nn>0;Nn--){var Tn=En.slice(0,Nn).join(", ");if(xn>=Tn.length)return Nn===En.length?Tn:Tn.length>xn?Tn.slice(0,xn)+"...":Tn}return""}class Je{match(xn){return typeof xn=="object"&&xn!==null}coerce(xn,En){var Nn,Tn=this.getErrorPropertyFromObject(xn);return Tn?En.apply(Tn):{type:this.getType(xn),value:this.getValue(xn),stack:(Nn=En.syntheticException)==null?void 0:Nn.stack,level:this.isSeverityLevel(xn.level)?xn.level:"error",synthetic:!0}}getType(xn){return st(xn)?xn.constructor.name:"Error"}getValue(xn){if("name"in xn&&typeof xn.name=="string"){var En="'"+xn.name+"' captured as exception";return"message"in xn&&typeof xn.message=="string"&&(En+=" with message: '"+xn.message+"'"),En}if("message"in xn&&typeof xn.message=="string")return xn.message;var Nn=this.getObjectClassName(xn);return(Nn&&Nn!=="Object"?"'"+Nn+"'":"Object")+" captured as exception with keys: "+Ke(xn)}isSeverityLevel(xn){return G(xn)&&!W(xn)&&Ye.indexOf(xn)>=0}getErrorPropertyFromObject(xn){for(var En in xn)if({}.hasOwnProperty.call(xn,En)){var Nn=xn[En];if(me(Nn))return Nn}}getObjectClassName(xn){try{var En=Object.getPrototypeOf(xn);return En?En.constructor.name:void 0}catch{return}}}class Qe{match(xn){return st(xn)}coerce(xn,En){var Nn,Tn=xn.constructor.name;return{type:Tn,value:Tn+" captured as exception with keys: "+Ke(xn),stack:(Nn=En.syntheticException)==null?void 0:Nn.stack,synthetic:!0}}}class Xe{match(xn){return it(xn)}coerce(xn,En){var Nn;return{type:"Error",value:"Primitive value captured as exception: "+String(xn),stack:(Nn=En.syntheticException)==null?void 0:Nn.stack,synthetic:!0}}}class Ze{match(xn){return rt(xn,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(xn)}isCustomEventWrappingRejection(xn){if(!st(xn))return!1;try{var En=xn.detail;return En!=null&&typeof En=="object"&&"reason"in En}catch{return!1}}coerce(xn,En){var Nn,Tn=this.getUnhandledRejectionReason(xn);return it(Tn)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(Tn),stack:(Nn=En.syntheticException)==null?void 0:Nn.stack,synthetic:!0}:En.apply(Tn)}getUnhandledRejectionReason(xn){try{if("reason"in xn)return xn.reason;if("detail"in xn&&xn.detail!=null&&typeof xn.detail=="object"&&"reason"in xn.detail)return xn.detail.reason}catch{}return xn}}var ti="$message",ei="$timestamp",ii=new Set([ti,ei]),ri={enabled:!0,max_bytes:32768};function si($){var xn;return $?{enabled:(xn=$.enabled)!==null&&xn!==void 0?xn:ri.enabled,max_bytes:oi($.max_bytes,ri.max_bytes)}:f({},ri)}class ni{constructor(xn){this.bt=[],this._t=0,this.Se=si(xn)}setConfig(xn){this.Se=si(xn),this.wt()}add(xn){var En=(function(Tn){var $n,kl,xl;try{xl=[],$n=(kl=JSON.stringify(Tn,(function(Tl,Cl){if(typeof Cl=="bigint")return Cl.toString();if(typeof Cl!="function"&&typeof Cl!="symbol"){if(Cl instanceof Error)return{name:Cl.name,message:Cl.message,stack:Cl.stack};if(Cl&&typeof Cl=="object"){for(;xl.length>0&&xl[xl.length-1]!==this;)xl.pop();if(xl.includes(Cl))return"[Circular]";xl.push(Cl)}return Cl}})))!==null&&kl!==void 0?kl:"null"}catch{return}try{var Nl=JSON.parse($n);if(!H(Nl))return;var Rl=Nl,Fl=Rl[ti],Al=Rl[ei];return!G(Fl)||Fl.trim().length===0||!G(Al)&&!J(Al)?void 0:{step:Rl,json:$n}}catch{return}})(xn);if(En){var Nn=(function(Tn){if(typeof TextEncoder<"u")return new TextEncoder().encode(Tn).length;for(var $n=encodeURIComponent(Tn),kl=0,xl=0;$n.length>xl;xl++)$n[xl]==="%"?(kl+=1,xl+=2):kl+=1;return kl})(En.json);Nn>this.Se.max_bytes||(this.bt.push({step:En.step,bytes:Nn}),this._t+=Nn,this.wt())}}getAttachable(){return this.bt.map((xn=>xn.step))}clear(){this.bt=[],this._t=0}size(){return this.bt.length}wt(){for(;this._t>this.Se.max_bytes&&this.bt.length>0;){var xn=this.bt.shift();xn&&(this._t-=xn.bytes)}}}function oi($,xn){if(!J($)||$===1/0||$===-1/0)return xn;var En=Math.floor($);return 0>En?xn:En}var ai=function($,xn){var{debugEnabled:En}=xn===void 0?{}:xn,Nn={k(Tn){if(t&&(v.DEBUG||h.POSTHOG_DEBUG||En)&&!V$1(t.console)&&t.console){for(var $n=("__rrweb_original__"in t.console[Tn])?t.console[Tn].__rrweb_original__:t.console[Tn],kl=arguments.length,xl=new Array(kl>1?kl-1:0),Nl=1;kl>Nl;Nl++)xl[Nl-1]=arguments[Nl];$n($,...xl)}},debug(){for(var Tn=arguments.length,$n=new Array(Tn),kl=0;Tn>kl;kl++)$n[kl]=arguments[kl];Nn.k("debug",...$n)},info(){for(var Tn=arguments.length,$n=new Array(Tn),kl=0;Tn>kl;kl++)$n[kl]=arguments[kl];Nn.k("log",...$n)},warn(){for(var Tn=arguments.length,$n=new Array(Tn),kl=0;Tn>kl;kl++)$n[kl]=arguments[kl];Nn.k("warn",...$n)},error(){for(var Tn=arguments.length,$n=new Array(Tn),kl=0;Tn>kl;kl++)$n[kl]=arguments[kl];Nn.k("error",...$n)},critical(){for(var Tn=arguments.length,$n=new Array(Tn),kl=0;Tn>kl;kl++)$n[kl]=arguments[kl];console.error($,...$n)},uninitializedWarning(Tn){Nn.error("You must initialize PostHog before calling "+Tn)},createLogger:(Tn,$n)=>ai($+" "+Tn,$n)};return Nn},li=ai("[PostHog.js]"),ui=li.createLogger,hi=ui("[ExternalScriptsLoader]"),di=($,xn,En)=>{if($.config.disable_external_dependency_loading)return hi.warn(xn+" was requested but loading of external scripts is disabled."),En("Loading of external scripts is disabled");var Nn=r$1?.querySelectorAll("script");if(Nn){for(var Tn,$n=function(){if(Nn[kl].src===xn){var Nl=Nn[kl];return Nl.__posthog_loading_callback_fired?{v:En()}:(Nl.addEventListener("load",(Rl=>{Nl.__posthog_loading_callback_fired=!0,En(void 0,Rl)})),Nl.onerror=Rl=>En(Rl),{v:void 0})}},kl=0;Nn.length>kl;kl++)if(Tn=$n())return Tn.v}var xl=()=>{if(!r$1)return En("document not found");var Nl=r$1.createElement("script");if(Nl.type="text/javascript",Nl.crossOrigin="anonymous",Nl.src=xn,Nl.onload=Al=>{Nl.__posthog_loading_callback_fired=!0,En(void 0,Al)},Nl.onerror=Al=>En(Al),$.config.prepare_external_dependency_script&&(Nl=$.config.prepare_external_dependency_script(Nl)),!Nl)return En("prepare_external_dependency_script returned null");if($.config.external_scripts_inject_target==="head")r$1.head.appendChild(Nl);else{var Rl,Fl=r$1.querySelectorAll("body > script");Fl.length>0?(Rl=Fl[0].parentNode)==null||Rl.insertBefore(Nl,Fl[0]):r$1.body.appendChild(Nl)}};r$1!=null&&r$1.body?xl():r$1?.addEventListener("DOMContentLoaded",xl)};h.__PosthogExtensions__=h.__PosthogExtensions__||{},h.__PosthogExtensions__.loadExternalDependency=($,xn,En)=>{if(xn!=="remote-config"){var Nn;if($.config.strict_script_versioning)Nn=$.requestRouter.endpointFor("assets","/static/"+$.version+"/"+xn+".js");else{var Tn="/static/"+xn+".js?v="+$.version;if(xn==="toolbar"){var $n=3e5;Tn=Tn+"&t="+Math.floor(Date.now()/$n)*$n}Nn=$.requestRouter.endpointFor("assets",Tn)}di($,Nn,En)}else{var kl=$.requestRouter.endpointFor("assets","/array/"+$.config.token+"/config.js");di($,kl,En)}},h.__PosthogExtensions__.loadSiteApp=($,xn,En)=>{var Nn=$.requestRouter.endpointFor("api",xn);di($,Nn,En)};var vi="$people_distinct_id",ci="$device_id",pi="$device_model",fi="__alias",_i="__timers",gi="$autocapture_disabled_server_side",mi="$heatmaps_enabled_server_side",yi="$exception_capture_enabled_server_side",bi="$error_tracking_suppression_rules",wi="$error_tracking_capture_extension_exceptions",Ei="$web_vitals_enabled_server_side",xi="$dead_clicks_enabled_server_side",Si="$product_tours_enabled_server_side",Ti="$web_vitals_allowed_metrics",$i="$session_recording_remote_config",ki="$replay_sample_rate",Ri="$replay_override_sampling",Pi="$replay_override_linked_flag",Ii="$replay_override_url_trigger",Oi="$replay_override_event_trigger",Ci="$sesid",Ai="$session_is_sampled",Fi="$enabled_feature_flags",Mi="$active_feature_flags",Di="$early_access_features",Li="$feature_flag_details",Ni="$feature_flag_payloads",Ui="$feature_flag_request_id",ji="$override_feature_flags",Bi="$override_feature_flag_payloads",zi="$stored_person_properties",Hi="$stored_group_properties",qi="$surveys",Vi="$surveys_loaded_at",Gi="$surveys_activated",Wi="ph_product_tours",Yi="$flag_call_reported",Ki="$flag_call_reported_session_id",Ji="$feature_flag_errors",Qi="$feature_flag_evaluated_at",Xi="$user_state",Zi="$client_session_props",tr="$capture_rate_limit",er="$initial_campaign_params",ir="$initial_referrer_info",rr="$initial_person_info",sr="$epp",nr="__POSTHOG_TOOLBAR__",or="$posthog_cookieless",ar="$sdk_debug_extensions_init_method",lr="$sdk_debug_extensions_init_time_ms",ur="$sdk_debug_recording_script_not_loaded",hr="PostHog loadExternalDependency extension not found.",dr="on_reject",vr="always",cr="anonymous",pr="identified",fr="identified_only",_r="visibilitychange",gr="beforeunload",mr="$pageview",yr="$pageleave",br="$identify",wr="$groupidentify";function Er($,xn){B($)&&$.forEach(xn)}function xr($,xn){if(!K($))if(B($))$.forEach(xn);else if(Z($))$.forEach(((Nn,Tn)=>xn(Nn,Tn)));else for(var En in $)U.call($,En)&&xn($[En],En)}var Sr=function($){for(var xn=arguments.length,En=new Array(xn>1?xn-1:0),Nn=1;xn>Nn;Nn++)En[Nn-1]=arguments[Nn];for(var Tn of En)for(var $n in Tn)Tn[$n]!==void 0&&($[$n]=Tn[$n]);return $};function Tr($){for(var xn=Object.keys($),En=xn.length,Nn=new Array(En);En--;)Nn[En]=[xn[En],$[xn[En]]];return Nn}var $r=function($){try{return $()}catch{return}},kr=function($){return function(){try{for(var xn=arguments.length,En=new Array(xn),Nn=0;xn>Nn;Nn++)En[Nn]=arguments[Nn];return $.apply(this,En)}catch(Tn){li.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),li.critical(Tn)}}},Rr=function($){var xn={};return xr($,(function(En,Nn){(G(En)&&En.length>0||J(En))&&(xn[Nn]=En)})),xn},Pr=["herokuapp.com","vercel.app","netlify.app"];function Ir($){var xn=$?.hostname;if(!G(xn))return!1;var En=xn.split(".").slice(-2).join(".");for(var Nn of Pr)if(En===Nn)return!1;return!0}function Or($,xn,En,Nn){var{capture:Tn=!1,passive:$n=!0}=Nn??{};$?.addEventListener(xn,En,{capture:Tn,passive:$n})}function Cr($){return $.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function($){return 0>$?Math.ceil($):Math.floor($)}),Number.isInteger||(Number.isInteger=function($){return J($)&&isFinite($)&&Math.floor($)===$});class Ar{constructor(xn){if(this.bytes=xn,xn.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(xn,En,Nn,Tn){if(!Number.isInteger(xn)||!Number.isInteger(En)||!Number.isInteger(Nn)||!Number.isInteger(Tn)||0>xn||0>En||0>Nn||0>Tn||xn>0xffffffffffff||En>4095||Nn>1073741823||Tn>4294967295)throw new RangeError("invalid field value");var $n=new Uint8Array(16);return $n[0]=xn/Math.pow(2,40),$n[1]=xn/Math.pow(2,32),$n[2]=xn/Math.pow(2,24),$n[3]=xn/Math.pow(2,16),$n[4]=xn/Math.pow(2,8),$n[5]=xn,$n[6]=112|En>>>8,$n[7]=En,$n[8]=128|Nn>>>24,$n[9]=Nn>>>16,$n[10]=Nn>>>8,$n[11]=Nn,$n[12]=Tn>>>24,$n[13]=Tn>>>16,$n[14]=Tn>>>8,$n[15]=Tn,new Ar($n)}toString(){for(var xn="",En=0;this.bytes.length>En;En++)xn=xn+(this.bytes[En]>>>4).toString(16)+(15&this.bytes[En]).toString(16),En!==3&&En!==5&&En!==7&&En!==9||(xn+="-");if(xn.length!==36)throw new Error("Invalid UUIDv7 was generated");return xn}clone(){return new Ar(this.bytes.slice(0))}equals(xn){return this.compareTo(xn)===0}compareTo(xn){for(var En=0;16>En;En++){var Nn=this.bytes[En]-xn.bytes[En];if(Nn!==0)return Math.sign(Nn)}return 0}}class Fr{constructor(){this.S=0,this.C=0,this.I=new Lr}generate(){var xn=this.generateOrAbort();if(V$1(xn)){this.S=0;var En=this.generateOrAbort();if(V$1(En))throw new Error("Could not generate UUID after timestamp reset");return En}return xn}generateOrAbort(){var xn=Date.now();if(xn>this.S)this.S=xn,this.M();else{if(this.S>=xn+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.M())}return Ar.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}M(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var Mr,Dr=$=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var xn=0;$.length>xn;xn++)$[xn]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return $};t&&!V$1(t.crypto)&&crypto.getRandomValues&&(Dr=$=>crypto.getRandomValues($));class Lr{constructor(){this.R=new Uint32Array(8),this.O=1/0}nextUint32(){return this.R.length>this.O||(Dr(this.R),this.O=0),this.R[this.O++]}}var Nr=()=>Ur().toString(),Ur=()=>(Mr||(Mr=new Fr)).generate(),jr="",Br=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,zr={N:()=>!!r$1,D($){li.error("cookieStore error: "+$)},A($){if(r$1){try{for(var xn=$+"=",En=r$1.cookie.split(";").filter(($n=>$n.length)),Nn=0;En.length>Nn;Nn++){for(var Tn=En[Nn];Tn.charAt(0)==" ";)Tn=Tn.substring(1,Tn.length);if(Tn.indexOf(xn)===0)return decodeURIComponent(Tn.substring(xn.length,Tn.length))}}catch{}return null}},F($){var xn;try{xn=JSON.parse(zr.A($))||{}}catch{}return xn},q($,xn,En,Nn,Tn){if(!r$1)return!1;try{var $n="",kl="",xl=(function(Fl,Al){if(Al){var Tl=(function(Il,Ml){if(Ml===void 0&&(Ml=r$1),jr)return jr;if(!Ml||["localhost","127.0.0.1"].includes(Il))return"";for(var Dl=Il.split("."),Ll=Math.min(Dl.length,8),$l="dmn_chk_"+Nr();!jr&&Ll--;){var Vl=Dl.slice(Ll).join("."),Bl=$l+"=1;domain=."+Vl+";path=/";Ml.cookie=Bl+";max-age=3",Ml.cookie.includes($l)&&(Ml.cookie=Bl+";max-age=0",jr=Vl)}return jr})(Fl);if(!Tl){var Cl=(Il=>{var Ml=Il.match(Br);return Ml?Ml[0]:""})(Fl);Cl!==Tl&&li.info("Warning: cookie subdomain discovery mismatch",Cl,Tl),Tl=Cl}return Tl?"; domain=."+Tl:""}return""})(r$1.location.hostname,Nn);if(En){var Nl=new Date;Nl.setTime(Nl.getTime()+864e5*En),$n="; expires="+Nl.toUTCString()}Tn&&(kl="; secure");var Rl=$+"="+encodeURIComponent(JSON.stringify(xn))+$n+"; SameSite=Lax; path=/"+xl+kl;return Rl.length>3686.4&&li.warn("cookieStore warning: large cookie, len="+Rl.length),r$1.cookie=Rl,!0}catch{return!1}},P($,xn){if(r$1!=null&&r$1.cookie)try{zr.q($,"",-1,xn)}catch{return}}},Hr=null,qr={N(){if(!Y(Hr))return Hr;var $=!0;if(V$1(t))$=!1;else try{var xn="__mplssupport__";qr.q(xn,"xyz"),qr.A(xn)!=='"xyz"'&&($=!1),qr.P(xn)}catch{$=!1}return $||li.error("localStorage unsupported; falling back to cookie store"),Hr=$,$},D($){li.error("localStorage error: "+$)},A($){try{return t?.localStorage.getItem($)}catch(xn){qr.D(xn)}return null},F($){try{return JSON.parse(qr.A($))||{}}catch{}return null},q($,xn){try{return t?.localStorage.setItem($,JSON.stringify(xn)),!0}catch(En){qr.D(En)}return!1},P($){try{t?.localStorage.removeItem($)}catch(xn){qr.D(xn)}}},Vr=[ci,"distinct_id",Ci,Ai,sr,rr,Xi],Gr={},Wr={N:()=>!0,D($){li.error("memoryStorage error: "+$)},A:$=>Gr[$]||null,F:$=>Gr[$]||null,q:($,xn)=>(Gr[$]=xn,!0),P($){delete Gr[$]}},Yr=null,Kr={N(){if(!Y(Yr))return Yr;if(Yr=!0,V$1(t))Yr=!1;else try{var $="__support__";Kr.q($,"xyz"),Kr.A($)!=='"xyz"'&&(Yr=!1),Kr.P($)}catch{Yr=!1}return Yr},D($){li.error("sessionStorage error: ",$)},A($){try{return t?.sessionStorage.getItem($)}catch(xn){Kr.D(xn)}return null},F($){try{return JSON.parse(Kr.A($))||null}catch{}return null},q($,xn){try{return t?.sessionStorage.setItem($,JSON.stringify(xn)),!0}catch(En){Kr.D(En)}return!1},P($){try{t?.sessionStorage.removeItem($)}catch(xn){Kr.D(xn)}}};class Jr{constructor(xn){this._instance=xn}get Se(){return this._instance.config}get consent(){return this.kt()?0:this.St}isOptedOut(){return this.Se.cookieless_mode===vr||this.isRejected()||this.consent===-1&&this.Se.cookieless_mode===dr}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Se.opt_out_capturing_by_default}optInOut(xn){this.Ct.q(this.It,xn?1:0,this.Se.cookie_expiration,this.Se.cross_subdomain_cookie,this.Se.secure_cookie)}reset(){this.Ct.P(this.It,this.Se.cross_subdomain_cookie)}get It(){var{token:xn,opt_out_capturing_cookie_prefix:En,consent_persistence_name:Nn}=this._instance.config;return Nn||(En?En+xn:"__ph_opt_in_out_"+xn)}get St(){var xn=this.Ct.A(this.It);return ot(xn)?1:M(at,xn)?0:-1}get Ct(){var xn=this.Se.opt_out_capturing_persistence_type,En=xn==="localStorage"?qr:zr;if(!this.Tt||this.Tt!==En){this.Tt=En;var Nn=xn==="localStorage"?zr:qr;Nn.A(this.It)&&(this.Tt.A(this.It)||this.optInOut(ot(Nn.A(this.It))),Nn.P(this.It,this.Se.cross_subdomain_cookie))}return this.Tt}kt(){return!!this.Se.respect_dnt&&[i?.doNotTrack,i?.msDoNotTrack,h.doNotTrack].some((xn=>ot(xn)))}}function Qr($,xn){var En,Nn=$==null||(En=$.config)==null?void 0:En.get_current_url;if(!z(Nn))return xn;try{var Tn=Nn(xn);return G(Tn)&&Tn?Tn:xn}catch($n){return li.error("Error in get_current_url, falling back to window.location.href",$n),xn}}var Xr=1,Zr=3,ts$1=11;function es($){return $ instanceof Element&&($.id===nr||!($.closest==null||!$.closest(".toolbar-global-fade-container")))}function is$1($){return!!$&&$.nodeType===Xr}function rs($,xn){return!!$&&!!$.tagName&&$.tagName.toLowerCase()===xn.toLowerCase()}function ss($){return!!$&&$.nodeType===Zr}function ns($){return!!$&&$.nodeType===ts$1&&is$1($.host)}function os($){return $?D($).split(/\s+/):[]}function as($,xn){var En=(function(Nn){var Tn,$n=t==null||(Tn=t.location)==null?void 0:Tn.href;return V$1($n)?void 0:Qr(Nn,$n)})(xn);return!!(En&&$&&$.some((Nn=>En.match(Nn))))}function ls($){var xn="";switch(typeof $.className){case"string":xn=$.className;break;case"object":xn=($.className&&"baseVal"in $.className?$.className.baseVal:null)||$.getAttribute("class")||"";break;default:xn=""}return os(xn)}function us($){return K($)?null:D($).split(/(\s+)/).filter((xn=>Cs(xn))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function hs($){var xn="";return Ss($)&&!Ts($)&&$.childNodes&&$.childNodes.length&&xr($.childNodes,(function(En){var Nn;ss(En)&&En.textContent&&(xn+=(Nn=us(En.textContent))!==null&&Nn!==void 0?Nn:"")})),D(xn)}function ds($){return V$1($.target)?$.srcElement||null:(xn=$.target)!=null&&xn.shadowRoot?$.composedPath()[0]||null:$.target||null;var xn}var vs=["a","button","form","input","select","textarea","label"];function cs($,xn){if(V$1(xn))return!0;var En,Nn=function($n){if(xn.some((kl=>(function(xl,Nl){var Rl=xl.matches||xl.matchesSelector||xl.msMatchesSelector||xl.mozMatchesSelector||xl.webkitMatchesSelector||xl.oMatchesSelector;try{return!!Rl&&Rl.call(xl,Nl)}catch{return!1}})($n,kl))))return{v:!0}};for(var Tn of $)if(En=Nn(Tn))return En.v;return!1}function ps($){var xn=$.parentNode;return!(!xn||!is$1(xn))&&xn}var fs=[".ph-no-autocapture","[data-ph-no-autocapture]"],_s=["next","previous","prev",">","<"],gs=[..._s,"+","-","−","–"],ms=($,xn)=>/[a-z0-9]/i.test(xn)?$.includes(xn):$===xn,ys=[".ph-no-rageclick",".ph-no-capture"],bs=["","text","search","email","password","url","tel","number"];function ws($,xn){if(!t||Es($))return!1;var En,Nn,Tn,$n,kl;if(X(xn)?(En=!!xn&&ys,Nn=void 0,Tn=!1):(En=($n=xn?.css_selector_ignorelist)!==null&&$n!==void 0?$n:ys,Nn=xn?.content_ignorelist,Tn=(kl=xn?.ignore_text_selection)!==null&&kl!==void 0&&kl),En===!1||Tn&&(function(Nl){return!(!Nl||!is$1(Nl))&&(!!rs(Nl,"textarea")||(rs(Nl,"input")?M(bs,(Nl.getAttribute("type")||"").toLowerCase()):(function(Rl){if(Rl.isContentEditable)return!0;var Fl=Rl.getAttribute==null?void 0:Rl.getAttribute("contenteditable");return Fl==="true"||Fl===""})(Nl)))})($))return!1;var{targetElementList:xl}=xs($,!1);return!(function(Nl,Rl){if(Nl===!1||V$1(Nl))return!1;var Fl;if(Nl===!0)Fl=_s;else{if(!B(Nl))return!1;if(Nl.length>10)return li.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;Fl=Nl.map((Al=>Al.toLowerCase()))}return Rl.some((Al=>{var{safeText:Tl,ariaLabel:Cl}=Al;return Fl.some((Il=>ms(Tl,Il)||ms(Cl,Il)))}))})(Nn,xl.map((Nl=>{var Rl;return{safeText:hs(Nl).toLowerCase(),ariaLabel:((Rl=Nl.getAttribute("aria-label"))==null?void 0:Rl.toLowerCase().trim())||""}})))&&!cs(xl,En)}var Es=$=>!$||rs($,"html")||!is$1($),xs=($,xn)=>{if(!t||Es($))return{parentIsUsefulElement:!1,targetElementList:[]};for(var En=!1,Nn=[$],Tn=$;Tn.parentNode&&!rs(Tn,"body");)if(ns(Tn.parentNode))Nn.push(Tn.parentNode.host),Tn=Tn.parentNode.host;else{var $n=ps(Tn);if(!$n)break;if(xn||vs.indexOf($n.tagName.toLowerCase())>-1)En=!0;else try{var kl=t.getComputedStyle($n);kl&&kl.getPropertyValue("cursor")==="pointer"&&(En=!0)}catch{}Nn.push($n),Tn=$n}return{parentIsUsefulElement:En,targetElementList:Nn}};function Ss($){for(var xn=$;xn.parentNode&&!rs(xn,"body");xn=xn.parentNode){var En=ls(xn);if(M(En,"ph-sensitive")||M(En,"ph-no-capture"))return!1}if(M(ls($),"ph-include"))return!0;var Nn=$.type||"";if(G(Nn))switch(Nn.toLowerCase()){case"hidden":case"password":return!1}var Tn=$.name||$.id||"";return!G(Tn)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(Tn.replace(/[^a-zA-Z0-9]/g,""))}function Ts($){return!!(rs($,"input")&&!["button","checkbox","submit","reset"].includes($.type)||rs($,"select")||rs($,"textarea")||$.getAttribute("contenteditable")==="true")}var $s="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ks=new RegExp("^(?:"+$s+")$"),Rs=new RegExp($s),Ps="\\d{3}-?\\d{2}-?\\d{4}",Is=new RegExp("^("+Ps+")$"),Os=new RegExp("("+Ps+")");function Cs($,xn){return xn===void 0&&(xn=!0),!(K($)||G($)&&($=D($),(xn?ks:Rs).test(($||"").replace(/[- ]/g,""))||(xn?Is:Os).test($)))}function As($){var xn=hs($);return Cs(xn=(xn+" "+Fs($)).trim())?xn:""}function Fs($){var xn="";return $&&$.childNodes&&$.childNodes.length&&xr($.childNodes,(function(En){var Nn;if(En&&((Nn=En.tagName)==null?void 0:Nn.toLowerCase())==="span")try{var Tn=hs(En);xn=(xn+" "+Tn).trim(),En.childNodes&&En.childNodes.length&&(xn=(xn+" "+Fs(En)).trim())}catch($n){li.error("[AutoCapture]",$n)}})),xn}function Ms($){return $.replace(/"|\\"/g,'\\"')}function Ds($){var xn=$.attr__class;return xn?B(xn)?xn:os(xn):void 0}var Ls=ui("[Dead Clicks]"),Ns=()=>!0,Us=$=>{var xn,En=!((xn=$.instance.persistence)==null||!xn.get_property(xi)),Nn=$.instance.config.capture_dead_clicks;return X(Nn)?Nn:!!H(Nn)||En};class js{get lazyLoadedDeadClicksAutocapture(){return this.Et}constructor(xn,En,Nn){this.instance=xn,this.isEnabled=En,this.onCapture=Nn,this.startIfEnabledOrStop()}onRemoteConfig(xn){"captureDeadClicks"in xn&&(this.instance.persistence&&this.instance.persistence.register({[xi]:xn.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.Mt((()=>{this.Pt()})):this.stop()}Mt(xn){var En,Nn;(En=h.__PosthogExtensions__)!=null&&En.initDeadClicksAutocapture?xn():(Nn=h.__PosthogExtensions__)==null||Nn.loadExternalDependency==null||Nn.loadExternalDependency(this.instance,"dead-clicks-autocapture",(Tn=>{Tn?Ls.error("failed to load script",Tn):xn()}))}Pt(){var xn;if(r$1){if(!this.Et&&(xn=h.__PosthogExtensions__)!=null&&xn.initDeadClicksAutocapture){var En=H(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};En.__onCapture=this.onCapture,this.Et=h.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,En),this.Et.start(r$1),Ls.info("starting...")}}else Ls.error("`document` not found. Cannot start.")}stop(){this.Et&&(this.Et.stop(),this.Et=void 0,Ls.info("stopping..."))}}var Bs=ui("[SegmentIntegration]"),zs="posthog-js";function Hs($,xn){var{organization:En,projectId:Nn,prefix:Tn,severityAllowList:$n=["error"],sendExceptionsToPostHog:kl=!0}=xn===void 0?{}:xn;return xl=>{var Nl,Rl,Fl,Al,Tl;if($n!=="*"&&!$n.includes(xl.level)||!$.__loaded)return xl;xl.tags||(xl.tags={});var Cl=$.requestRouter.endpointFor("ui","/project/"+$.config.token+"/person/"+$.get_distinct_id());xl.tags["PostHog Person URL"]=Cl,$.sessionRecordingStarted()&&(xl.tags["PostHog Recording URL"]=$.get_session_replay_url({withTimestamp:!0}));var Il,Ml=((Nl=xl.exception)==null?void 0:Nl.values)||[],Dl=Ml.map(($l=>f({},$l,{stacktrace:$l.stacktrace?f({},$l.stacktrace,{type:"raw",frames:($l.stacktrace.frames||[]).map((Vl=>f({},Vl,{platform:"web:javascript"})))}):void 0}))),Ll={$exception_message:((Rl=Ml[0])==null?void 0:Rl.value)||xl.message,$exception_type:(Fl=Ml[0])==null?void 0:Fl.type,$exception_level:xl.level,$exception_list:Dl,$sentry_event_id:xl.event_id,$sentry_exception:xl.exception,$sentry_exception_message:((Al=Ml[0])==null?void 0:Al.value)||xl.message,$sentry_exception_type:(Tl=Ml[0])==null?void 0:Tl.type,$sentry_tags:xl.tags};return En&&Nn&&(Ll.$sentry_url=(Tn||"https://sentry.io/organizations/")+En+"/issues/?project="+Nn+"&query="+xl.event_id),kl&&((Il=$.exceptions)==null||Il.sendExceptionEvent(Ll)),xl}}class qs{constructor(xn,En,Nn,Tn,$n,kl){this.name=zs,this.setupOnce=function(xl){xl(Hs(xn,{organization:En,projectId:Nn,prefix:Tn,severityAllowList:$n,sendExceptionsToPostHog:kl==null||kl}))}}}class Vs{constructor(xn){this.Rt=(En,Nn,Tn)=>{Tn&&(Tn.noSessionId||Tn.activityTimeout||Tn.sessionPastMaximumLength||Tn.crossTabAdoption)&&(li.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:En,changeReason:Tn}),this.Ot=void 0,this._instance.scrollManager.resetContext())},this._instance=xn,this.Lt()}Lt(){var xn;this.Ft=(xn=this._instance.sessionManager)==null?void 0:xn.onSessionId(this.Rt)}destroy(){var xn;(xn=this.Ft)==null||xn.call(this),this.Ft=void 0}doPageView(xn,En){var Nn,Tn=this.At(xn,En);return this.Ot={pathname:(Nn=t?.location.pathname)!==null&&Nn!==void 0?Nn:"",pageViewId:En,timestamp:xn},this._instance.scrollManager.resetContext(),Tn}doPageLeave(xn){var En;return this.At(xn,(En=this.Ot)==null?void 0:En.pageViewId)}doEvent(){var xn;return{$pageview_id:(xn=this.Ot)==null?void 0:xn.pageViewId}}At(xn,En){var Nn=this.Ot;if(!Nn)return{$pageview_id:En};var Tn={$pageview_id:En,$prev_pageview_id:Nn.pageViewId},$n=this._instance.scrollManager.getContext();if($n&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:kl,lastScrollY:xl,maxScrollY:Nl,maxContentHeight:Rl,lastContentY:Fl,maxContentY:Al}=$n;if(!(V$1(kl)||V$1(xl)||V$1(Nl)||V$1(Rl)||V$1(Fl)||V$1(Al))){kl=Math.ceil(kl),xl=Math.ceil(xl),Nl=Math.ceil(Nl),Rl=Math.ceil(Rl),Fl=Math.ceil(Fl),Al=Math.ceil(Al);var Tl=kl>1?lt(xl/kl,0,1,li):1,Cl=kl>1?lt(Nl/kl,0,1,li):1,Il=Rl>1?lt(Fl/Rl,0,1,li):1,Ml=Rl>1?lt(Al/Rl,0,1,li):1;Tn=Sr(Tn,{$prev_pageview_last_scroll:xl,$prev_pageview_last_scroll_percentage:Tl,$prev_pageview_max_scroll:Nl,$prev_pageview_max_scroll_percentage:Cl,$prev_pageview_last_content:Fl,$prev_pageview_last_content_percentage:Il,$prev_pageview_max_content:Al,$prev_pageview_max_content_percentage:Ml})}}return Nn.pathname&&(Tn.$prev_pageview_pathname=Nn.pathname),Nn.timestamp&&(Tn.$prev_pageview_duration=(xn.getTime()-Nn.timestamp.getTime())/1e3),Tn}}var Gs=["flags","surveys"],Ws={[vi]:{exposure:"hidden"},[fi]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[_i]:{exposure:"hidden"},[gi]:{exposure:"event"},[mi]:{exposure:"hidden"},[yi]:{exposure:"event"},[bi]:{exposure:"hidden"},[wi]:{exposure:"event"},[Ei]:{exposure:"event"},[xi]:{exposure:"event"},[Si]:{exposure:"hidden"},[Ti]:{exposure:"event"},[$i]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Ci]:{exposure:"hidden"},[Ai]:{exposure:"event"},[ki]:{exposure:"event",shouldSkipFromEventProperties:$=>Y($)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[Fi]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:($,xn)=>xn(),transformToEventProperties($){if(!H($))return{};for(var xn={},En=Object.keys($),Nn=0;En.length>Nn;Nn++)xn["$feature/"+En[Nn]]=$[En[Nn]];return xn}},[Mi]:{exposure:"event",storageGroup:"flags"},[Di]:{exposure:"hidden"},[Li]:{exposure:"hidden",storageGroup:"flags"},[Ni]:{exposure:"event",storageGroup:"flags"},[Ui]:{exposure:"event",storageGroup:"flags",volatile:!0},[ji]:{exposure:"event"},[Bi]:{exposure:"hidden"},[zi]:{exposure:"hidden"},[Hi]:{exposure:"hidden"},[qi]:{exposure:"hidden",storageGroup:"surveys"},[Vi]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[Gi]:{exposure:"event"},[Wi]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[Yi]:{exposure:"hidden"},[Ki]:{exposure:"hidden"},[Ji]:{exposure:"hidden"},[Qi]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[Xi]:{exposure:"hidden"},[Zi]:{exposure:"hidden"},[tr]:{exposure:"hidden"},[er]:{exposure:"hidden"},[ir]:{exposure:"hidden"},[rr]:{exposure:"hidden"},[sr]:{exposure:"hidden"},[Ri]:{exposure:"event"},[Pi]:{exposure:"event"},[Ii]:{exposure:"event"},[Oi]:{exposure:"event"},[ar]:{exposure:"event"},[lr]:{exposure:"event"},[ur]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},Ys=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Ks=$=>{var xn=Ws[$];if(xn)return xn;for(var[En,Nn]of Ys)if($.indexOf(En)===0)return Nn},Js=$=>{var xn=r$1?.createElement("a");return V$1(xn)?null:(xn.href=$,xn)},Qs=function($,xn){for(var En,Nn=(($.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),Tn=0;Nn.length>Tn;Tn++){var $n=Nn[Tn].split("=");if($n[0]===xn){En=$n;break}}if(!B(En)||2>En.length)return"";var kl=En[1];try{kl=decodeURIComponent(kl)}catch{li.error("Skipping decoding for malformed query param: "+kl)}return kl.replace(/\+/g," ")},Xs=function($,xn,En){if(!$||!xn||!xn.length)return $;for(var Nn=$.split("#"),Tn=Nn[1],$n=(Nn[0]||"").split("?"),kl=$n[1],xl=$n[0],Nl=(kl||"").split("&"),Rl=[],Fl=0;Nl.length>Fl;Fl++){var Al=Nl[Fl].split("=");B(Al)&&(xn.includes(Al[0])?Rl.push(Al[0]+"="+En):Rl.push(Nl[Fl]))}var Tl=xl;return kl!=null&&(Tl+="?"+Rl.join("&")),Tn!=null&&(Tl+="#"+Tn),Tl},Zs=function($,xn){var En=$.match(new RegExp(xn+"=([^&]*)"));return En?En[1]:null},tn="https?://(.*)",en=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],rn=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...en],sn="",nn=["li_fat_id"];function on($,xn,En){if(!r$1)return{};var Nn,Tn=xn?[...en,...En||[]]:[],$n=an(Xs(r$1.URL,Tn,sn),$),kl=(Nn={},xr(nn,(function(xl){var Nl=zr.A(xl);Nn[xl]=Nl||null})),Nn);return Sr(kl,$n)}function an($,xn){var En=rn.concat(xn||[]),Nn={};return xr(En,(function(Tn){var $n=Qs($,Tn);Nn[Tn]=$n||null})),Nn}function ln($){var xn=(function($n){return $n?$n.search(tn+"google.([^/?]*)")===0?"google":$n.search(tn+"bing.com")===0?"bing":$n.search(tn+"yahoo.com")===0?"yahoo":$n.search(tn+"duckduckgo.com")===0?"duckduckgo":null:null})($),En=xn!="yahoo"?"q":"p",Nn={};if(!Y(xn)){Nn.$search_engine=xn;var Tn=r$1?Qs(r$1.referrer,En):"";Tn.length&&(Nn.ph_keyword=Tn)}return Nn}function un(){return navigator.language||navigator.userLanguage}var hn="$direct";function dn(){return r$1?.referrer||hn}function vn($,xn,En){En===void 0&&(En=!1);var Nn=$?[...en,...xn||[]]:[],Tn=En?_e(s?.href):s?.href,$n=Tn?.substring(0,1e3);return{r:dn().substring(0,1e3),u:$n?Xs($n,Nn,sn):void 0}}function cn$1($,xn){var En;xn===void 0&&(xn=!1);var{r:Nn,u:Tn}=$,$n=xn?_e(Tn):Tn,kl={$referrer:Nn,$referring_domain:Nn==null?void 0:Nn==hn?hn:(En=Js(Nn))==null?void 0:En.host};if($n){kl.$current_url=$n;var xl=Js($n);kl.$host=xl?.host,kl.$pathname=xl?.pathname;var Nl=an($n);Sr(kl,Nl)}if(Nn){var Rl=ln(Nn);Sr(kl,Rl)}return kl}function pn(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function fn(){try{return new Date().getTimezoneOffset()}catch{return}}var _n={flags:Qi,surveys:Vi},gn=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],mn="main";class yn{constructor(xn,En,Nn){if(Nn===void 0&&(Nn=!0),this.$t={},this.Dt=!1,this.Nt=!1,this.Se=xn,this.qt=Nn,this.props={},this.Bt=!1,this.jt=($n=>{var kl="";return $n.token&&(kl=$n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),$n.persistence_name?"ph_"+$n.persistence_name:"ph_"+kl+"_posthog"})(xn),this.Ct=this.Ht(xn),this.Nt=this.Ut(xn),this.load(),xn.debug&&li.info("Persistence loaded",xn.persistence,f({},this.props)),this.update_config(xn,xn,En),this.save(),t){var Tn=()=>this.flush();Or(t,"beforeunload",Tn,{capture:!1}),Or(t,"pagehide",Tn,{capture:!1})}}zt(){var xn,En=(xn=this.Se)==null?void 0:xn.persistence_save_debounce_ms;return J(En)&&En>0?En:0}isDisabled(){return!!this.Vt}Ht(xn){gn.indexOf(xn.persistence.toLowerCase())===-1&&(li.critical("Unknown persistence type "+xn.persistence+"; falling back to localStorage+cookie"),xn.persistence="localStorage+cookie");var En,Nn=(function(kl,xl){kl===void 0&&(kl=[]),xl===void 0&&(xl=!1);var Nl=[...Vr,...kl];return f({},qr,{F(Rl){try{var Fl={};try{Fl=zr.F(Rl)||{}}catch{}var Al,Tl=JSON.parse(qr.A(Rl)||"{}");if(xl){var Cl={};for(var Il in Fl){var Ml=Fl[Il];Y(Ml)||Ml===""||(Cl[Il]=Ml)}Al=Sr(Tl,Cl)}else Al=Sr(Fl,Tl);return qr.q(Rl,Al),Al}catch{}return null},q(Rl,Fl,Al,Tl,Cl,Il){var Ml=qr.q(Rl,Fl,void 0,void 0,Il);try{var Dl={};Nl.forEach((Ll=>{Fl[Ll]&&(Dl[Ll]=Fl[Ll])})),Object.keys(Dl).length&&zr.q(Rl,Dl,Al,Tl,Cl,Il)}catch(Ll){qr.D(Ll)}return Ml},P(Rl,Fl){try{t?.localStorage.removeItem(Rl),zr.P(Rl,Fl)}catch(Al){qr.D(Al)}}})})(xn.cookie_persisted_properties||[],xn.__preview_cookie_wins_on_conflict||!1),Tn=!1,$n=xn.persistence.toLowerCase();return $n==="localstorage"&&qr.N()?(En=qr,Tn=!0):$n==="localstorage+cookie"&&Nn.N()?(En=Nn,Tn=!0):$n==="sessionstorage"&&Kr.N()?En=Kr:$n==="memory"?En=Wr:$n==="cookie"?En=zr:Nn.N()?(En=Nn,Tn=!0):En=zr,this.Dt=Tn,En}Wt(xn){return this.jt+"__"+xn}Ut(xn){return this.Dt&&!!xn.split_storage}Gt(xn){var En=xn??this.Se.feature_flag_cache_ttl_ms;if(!En||0>=En)return!1;var Nn=this.props[Qi];return!Nn||typeof Nn!="number"||Date.now()-Nn>En}properties(){var xn={};return xr(this.props,((En,Nn)=>{var Tn=Ks(Nn);if(Tn?.exposure==="derived"){if(Tn.shouldSkipFromEventProperties!=null&&Tn.shouldSkipFromEventProperties(En,Nn===Fi?()=>this.Gt():()=>!1))return;Tn.transformToEventProperties&&Sr(xn,Tn.transformToEventProperties(En))}else if(!Tn||Tn.exposure==="event"){if(Tn!=null&&Tn.shouldSkipFromEventProperties!=null&&Tn.shouldSkipFromEventProperties(En,(()=>!1)))return;xn[Nn]=En}})),xn}load(){if(!this.Vt){var xn=this.Ct.F(this.jt);xn&&(this.props=Sr({},xn)),this.Nt&&this.Zt()}}Zt(){for(var xn of Gs){var En=qr.F(this.Wt(xn));if(En&&!q(En)){var Nn=this.Qt(xn);Nn.persisted=!0,this.Jt(xn)||(Nn.fingerprint=this.Yt(En,xn)),this.Kt(xn,En)||Sr(this.props,En)}}}Jt(xn){return Object.keys(this.props).some((En=>{var Nn;return((Nn=Ks(En))==null?void 0:Nn.storageGroup)===xn}))}Kt(xn,En){var Nn=_n[xn];if(!Nn)return!1;var Tn=En[Nn],$n=this.props[Nn];return J(Tn)&&J($n)&&$n>Tn}refreshKey(xn){var En;if(!this.Vt){var Nn=this.Nt?(En=Ks(xn))==null?void 0:En.storageGroup:void 0,Tn=Nn?qr.F(this.Wt(Nn)):this.Ct.F(this.jt);if(Tn&&xn in Tn)this.Xt(xn,Tn[xn]);else{if(Nn){var $n=this.Ct.F(this.jt);if($n&&xn in $n)return void this.Xt(xn,$n[xn])}this.er(xn)}}}save(){if(!this.Vt){var xn=this.zt();xn>0?V$1(this.tr)&&(this.tr=setTimeout((()=>{this.tr=void 0,this.rr()}),xn)):this.rr()}}flush(){V$1(this.tr)||(clearTimeout(this.tr),this.tr=void 0,this.rr())}rr(){this.Vt||(this.Nt?this.ir():this.nr(this.Ct,this.jt,this.props,mn))}ir(){var{main:xn,groups:En}=this.sr();for(var Nn of(this.nr(this.Ct,this.jt,xn,mn),Gs)){var Tn,$n=En[Nn];(!q($n)||(Tn=this.$t[Nn])!=null&&Tn.persisted)&&this.nr(qr,this.Wt(Nn),$n,Nn)}}sr(){var xn={},En={};for(var Nn of Gs)En[Nn]={};return xr(this.props,((Tn,$n)=>{var kl,xl=(kl=Ks($n))==null?void 0:kl.storageGroup;xl?En[xl][$n]=Tn:xn[$n]=Tn})),{main:xn,groups:En}}Yt(xn,En){if(En===mn)return JSON.stringify(xn)+"|"+this.ar+"|"+this.lr+"|"+this.ur;var Nn={};return xr(xn,((Tn,$n)=>{var kl;Nn[$n]=(kl=Ks($n))!=null&&kl.volatile?"__volatile__":Tn})),JSON.stringify(Nn)}nr(xn,En,Nn,Tn){var $n=this.Qt(Tn);if(Tn===mn||$n.dirty||V$1($n.fingerprint)){var kl;try{if((kl=this.Yt(Nn,Tn))===$n.fingerprint)return void($n.dirty=!1)}catch{kl=void 0}xn.q(En,Nn,this.ar,this.lr,this.ur,this.Se.debug)?($n.dirty=!1,Tn!==mn&&($n.persisted=!0),V$1(kl)||($n.fingerprint=kl)):this.Se.debug&&li.warn('failed to persist storage entry "'+En+'"; will retry on next save')}}remove(xn){var{keepGroupEntries:En=!1}=xn===void 0?{}:xn;if(V$1(this.tr)||(clearTimeout(this.tr),this.tr=void 0),this.Ct.P(this.jt,!1),this.Ct.P(this.jt,!0),!En&&this.qt)for(var Nn of Gs)qr.P(this.Wt(Nn));En?delete this.$t[mn]:this.$t={}}clear(){this.remove(),this.props={}}register_once(xn,En,Nn){if(H(xn)){V$1(En)&&(En="None"),this.ar=V$1(Nn)?this.hr:Nn;var Tn=!1;if(xr(xn,(($n,kl)=>{this.props.hasOwnProperty(kl)&&this.props[kl]!==En||(this.Xt(kl,$n),Tn=!0)})),Tn)return this.save(),!0}return!1}register(xn,En){if(H(xn)){this.ar=V$1(En)?this.hr:En;var Nn=!1;if(xr(xn,((Tn,$n)=>{xn.hasOwnProperty($n)&&this.props[$n]!==Tn&&(this.Xt($n,Tn),Nn=!0)})),Nn)return this.save(),!0}return!1}unregister(xn){xn in this.props&&(this.er(xn),this.save())}update_campaign_params(){if(!this.Bt){var xn=on(this.Se.custom_campaign_params,this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties);q(Rr(xn))||this.register(xn),this.Bt=!0}}update_search_keyword(){var xn;this.register((xn=r$1?.referrer)?ln(xn):{})}update_referrer_info(){var xn;this.register_once({$referrer:dn(),$referring_domain:r$1!=null&&r$1.referrer&&((xn=Js(r$1.referrer))==null?void 0:xn.host)||hn},void 0)}set_initial_person_info(){this.props[er]||this.props[ir]||this.register_once({[rr]:vn(this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties,this.Se.disable_capture_url_hashes)},void 0)}get_initial_props(){var xn={};xr([ir,er],(Tn=>{var $n=this.props[Tn];$n&&xr($n,(function(kl,xl){xn["$initial_"+L(xl)]=kl}))}));var En=this.props[rr];if(En){var Nn=(function(Tn,$n){$n===void 0&&($n=!1);var kl=cn$1(Tn,$n),xl={};return xr(kl,(function(Nl,Rl){xl["$initial_"+L(Rl)]=Nl})),xl})(En,this.Se.disable_capture_url_hashes);Sr(xn,Nn)}return xn}safe_merge(xn){return xr(this.props,(function(En,Nn){Nn in xn||(xn[Nn]=En)})),xn}update_config(xn,En,Nn){this.hr=this.ar=xn.cookie_expiration,this.set_disabled(xn.disable_persistence||!!Nn),this.set_cross_subdomain(xn.cross_subdomain_cookie),this.set_secure(xn.secure_cookie);var Tn=xn.persistence!==En.persistence||!((Nl,Rl)=>{if(Nl.length!==Rl.length)return!1;var Fl=[...Nl].sort(),Al=[...Rl].sort();return Fl.every(((Tl,Cl)=>Tl===Al[Cl]))})(xn.cookie_persisted_properties||[],En.cookie_persisted_properties||[]),$n=Tn?this.Ht(xn):this.Ct,kl=this.Ut(xn);if(Tn||kl!==this.Nt){var xl=this.props;this.clear(),this.Ct=$n,this.Nt=kl,this.props=xl,this.save()}}set_disabled(xn){this.Vt=xn,this.Vt?this.remove():this.save()}set_cross_subdomain(xn){xn!==this.lr&&(this.lr=xn,this.remove({keepGroupEntries:!0}),this.save())}set_secure(xn){xn!==this.ur&&(this.ur=xn,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(xn,En){var Nn=this.props[_i]||{};Nn[xn]=En,this.Xt(_i,Nn),this.save()}remove_event_timer(xn){var En=this.props[_i]||{},Nn=En[xn];return V$1(Nn)||(delete En[xn],this.Xt(_i,En),this.save()),Nn}get_property(xn){return this.props[xn]}set_property(xn,En){this.Xt(xn,En),this.save()}Xt(xn,En){var Nn;this.props[xn]=En,(Nn=Ks(xn))!=null&&Nn.volatile||this.dr(xn)}er(xn){delete this.props[xn],this.dr(xn)}dr(xn){var En,Nn=(En=Ks(xn))==null?void 0:En.storageGroup;Nn&&(this.Qt(Nn).dirty=!0)}Qt(xn){return this.$t[xn]||(this.$t[xn]={})}}var bn={Activation:"events",Cancellation:"cancelEvents"},Sn={Popover:"popover",API:"api",Widget:"widget"},kn={Always:"always"},Rn={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},Pn={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},In={Popover:"popover",Inline:"inline"},Cn={SHOWN:"product tour shown"},An={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},Fn=ui("[RateLimiter]");class Mn{constructor(xn){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=En=>{var Nn=En.text;if(Nn&&Nn.length)try{(JSON.parse(Nn).quota_limited||[]).forEach((Tn=>{Fn.info((Tn||"events")+" is quota limited."),this.serverLimits[Tn]=new Date().getTime()+6e4}))}catch(Tn){return void Fn.warn('could not rate limit - continuing. Error: "'+Tn?.message+'"',{text:Nn})}},this.instance=xn,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var xn;return((xn=this.instance.config.rate_limiting)==null?void 0:xn.events_per_second)||10}get captureEventsBurstLimit(){var xn;return Math.max(((xn=this.instance.config.rate_limiting)==null?void 0:xn.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(xn){var En,Nn,Tn;xn===void 0&&(xn=!1);var{captureEventsBurstLimit:$n,captureEventsPerSecond:kl}=this,xl=new Date().getTime(),Nl=(En=(Nn=this.instance.persistence)==null?void 0:Nn.get_property(tr))!==null&&En!==void 0?En:{tokens:$n,last:xl};Nl.tokens+=(xl-Nl.last)/1e3*kl,Nl.last=xl,Nl.tokens>$n&&(Nl.tokens=$n);var Rl=1>Nl.tokens;return Rl||xn||(Nl.tokens=Math.max(0,Nl.tokens-1)),!Rl||this.lastEventRateLimited||xn||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+kl+" events per second and "+$n+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=Rl,(Tn=this.instance.persistence)==null||Tn.set_property(tr,Nl),{isRateLimited:Rl,remainingTokens:Nl.tokens}}isServerRateLimited(xn){var En=this.serverLimits[xn||"events"]||!1;return En!==!1&&new Date().getTime()xn(this.remoteConfig))):xn()}vr(xn){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(En){xn(En.json)}})}load(){try{if(this.remoteConfig)return Dn.info("Using preloaded remote config",this.remoteConfig),this.pr(this.remoteConfig),void this.gr();if(this._instance.mr())return void Dn.warn("Remote config is disabled. Falling back to local config.");this.cr((xn=>{if(!xn)return Dn.info("No config found after loading remote JS config. Falling back to JSON."),void this.vr((En=>{this.pr(En),this.gr()}));this.pr(xn),this.gr()}))}catch(xn){Dn.error("Error loading remote config",xn)}}stop(){this.yr&&(clearInterval(this.yr),this.yr=void 0)}refresh(){!this._instance.mr()&&r$1&&r$1.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}gr(){var xn;if(!this.yr){var En=(xn=this._instance.config.remote_config_refresh_interval_ms)!==null&&xn!==void 0?xn:3e5;En!==0&&(this.yr=setInterval((()=>{this.refresh()}),En))}}pr(xn){var En;xn||Dn.error("Failed to fetch remote config from PostHog."),this._instance.pr(xn??{}),xn?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(En=this._instance.featureFlags)==null||En.ensureFlagsLoaded())}}var Un={GZipJS:"gzip-js",Base64:"base64"},jn=Uint8Array,Bn=Uint16Array,zn=Uint32Array,Hn=new jn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),qn=new jn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Vn=new jn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gn=function($,xn){for(var En=new Bn(31),Nn=0;31>Nn;++Nn)En[Nn]=xn+=1<<$[Nn-1];var Tn=new zn(En[30]);for(Nn=1;30>Nn;++Nn)for(var $n=En[Nn];En[Nn+1]>$n;++$n)Tn[$n]=$n-En[Nn]<<5|Nn;return[En,Tn]},Wn=Gn(Hn,2),Yn=Wn[1];Wn[0][28]=258,Yn[258]=28;for(var Kn=Gn(qn,0)[1],Jn=new Bn(32768),Qn=0;32768>Qn;++Qn){var Xn=(43690&Qn)>>>1|(21845&Qn)<<1;Jn[Qn]=((65280&(Xn=(61680&(Xn=(52428&Xn)>>>2|(13107&Xn)<<2))>>>4|(3855&Xn)<<4))>>>8|(255&Xn)<<8)>>>1}var Zn=function($,xn,En){for(var Nn=$.length,Tn=0,$n=new Bn(xn);Nn>Tn;++Tn)++$n[$[Tn]-1];var kl,xl=new Bn(xn);for(Tn=0;xn>Tn;++Tn)xl[Tn]=xl[Tn-1]+$n[Tn-1]<<1;for(kl=new Bn(Nn),Tn=0;Nn>Tn;++Tn)kl[Tn]=Jn[xl[$[Tn]-1]++]>>>15-$[Tn];return kl},to$1=new jn(288);for(Qn=0;144>Qn;++Qn)to$1[Qn]=8;for(Qn=144;256>Qn;++Qn)to$1[Qn]=9;for(Qn=256;280>Qn;++Qn)to$1[Qn]=7;for(Qn=280;288>Qn;++Qn)to$1[Qn]=8;var eo=new jn(32);for(Qn=0;32>Qn;++Qn)eo[Qn]=5;var io=Zn(to$1,9),ro=Zn(eo,5),so=function($){return($/8>>0)+(7&$&&1)},no=function($,xn,En){(En==null||En>$.length)&&(En=$.length);var Nn=new($ instanceof Bn?Bn:$ instanceof zn?zn:jn)(En-xn);return Nn.set($.subarray(xn,En)),Nn},oo=function($,xn,En){var Nn=xn/8>>0;$[Nn]|=En<<=7&xn,$[Nn+1]|=En>>>8},ao=function($,xn,En){var Nn=xn/8>>0;$[Nn]|=En<<=7&xn,$[Nn+1]|=En>>>8,$[Nn+2]|=En>>>16},lo=function($,xn){for(var En=[],Nn=0;$.length>Nn;++Nn)$[Nn]&&En.push({s:Nn,f:$[Nn]});var Tn=En.length,$n=En.slice();if(!Tn)return[new jn(0),0];if(Tn==1){var kl=new jn(En[0].s+1);return kl[En[0].s]=1,[kl,1]}En.sort((function(zl,Ul){return zl.f-Ul.f})),En.push({s:-1,f:25001});var xl=En[0],Nl=En[1],Rl=0,Fl=1,Al=2;for(En[0]={s:-1,f:xl.f+Nl.f,l:xl,r:Nl};Fl!=Tn-1;)xl=En[En[Al].f>En[Rl].f?Rl++:Al++],Nl=En[Rl!=Fl&&En[Al].f>En[Rl].f?Rl++:Al++],En[Fl++]={s:-1,f:xl.f+Nl.f,l:xl,r:Nl};var Tl=$n[0].s;for(Nn=1;Tn>Nn;++Nn)$n[Nn].s>Tl&&(Tl=$n[Nn].s);var Cl=new Bn(Tl+1),Il=uo(En[Fl-1],Cl,0);if(Il>xn){Nn=0;var Ml=0,Dl=Il-xn,Ll=1<Nn;++Nn){var $l=$n[Nn].s;if(xn>=Cl[$l])break;Ml+=Ll-(1<>>=Dl;Ml>0;){var Vl=$n[Nn].s;xn>Cl[Vl]?Ml-=1<=0&&Ml;--Nn){var Bl=$n[Nn].s;Cl[Bl]==xn&&(--Cl[Bl],++Ml)}Il=xn}return[new jn(Cl),Il]},uo=function($,xn,En){return $.s==-1?Math.max(uo($.l,xn,En+1),uo($.r,xn,En+1)):xn[$.s]=En},ho=function($){for(var xn=$.length;xn&&!$[--xn];);for(var En=new Bn(++xn),Nn=0,Tn=$[0],$n=1,kl=function(Nl){En[Nn++]=Nl},xl=1;xn>=xl;++xl)if($[xl]==Tn&&xl!=xn)++$n;else{if(!Tn&&$n>2){for(;$n>138;$n-=138)kl(32754);$n>2&&(kl($n>10?$n-11<<5|28690:$n-3<<5|12305),$n=0)}else if($n>3){for(kl(Tn),--$n;$n>6;$n-=6)kl(8304);$n>2&&(kl($n-3<<5|8208),$n=0)}for(;$n--;)kl(Tn);$n=1,Tn=$[xl]}return[En.subarray(0,Nn),xn]},vo=function($,xn){for(var En=0,Nn=0;xn.length>Nn;++Nn)En+=$[Nn]*xn[Nn];return En},co=function($,xn,En){var Nn=En.length,Tn=so(xn+2);$[Tn]=255&Nn,$[Tn+1]=Nn>>>8,$[Tn+2]=255^$[Tn],$[Tn+3]=255^$[Tn+1];for(var $n=0;Nn>$n;++$n)$[Tn+$n+4]=En[$n];return 8*(Tn+4+Nn)},po=function($,xn,En,Nn,Tn,$n,kl,xl,Nl,Rl,Fl){oo(xn,Fl++,En),++Tn[256];for(var Al=lo(Tn,15),Tl=Al[0],Cl=Al[1],Il=lo($n,15),Ml=Il[0],Dl=Il[1],Ll=ho(Tl),$l=Ll[0],Vl=Ll[1],Bl=ho(Ml),zl=Bl[0],Ul=Bl[1],Gl=new Bn(19),ql=0;$l.length>ql;++ql)Gl[31&$l[ql]]++;for(ql=0;zl.length>ql;++ql)Gl[31&zl[ql]]++;for(var Kl=lo(Gl,7),Jl=Kl[0],tu=Kl[1],ru=19;ru>4&&!Jl[Vn[ru-1]];--ru);var Yl,cu,gu,_u,ku=Rl+5<<3,ou=vo(Tn,to$1)+vo($n,eo)+kl,uu=vo(Tn,Tl)+vo($n,Ml)+kl+14+3*ru+vo(Gl,Jl)+(2*Gl[16]+3*Gl[17]+7*Gl[18]);if(ou>=ku&&uu>=ku)return co(xn,Fl,$.subarray(Nl,Nl+Rl));if(oo(xn,Fl,1+(ou>uu)),Fl+=2,ou>uu){Yl=Zn(Tl,Cl),cu=Tl,gu=Zn(Ml,Dl),_u=Ml;var au=Zn(Jl,tu);for(oo(xn,Fl,Vl-257),oo(xn,Fl+5,Ul-1),oo(xn,Fl+10,ru-4),Fl+=14,ql=0;ru>ql;++ql)oo(xn,Fl+3*ql,Jl[Vn[ql]]);Fl+=3*ru;for(var Wl=[$l,zl],eu=0;2>eu;++eu){var fu=Wl[eu];for(ql=0;fu.length>ql;++ql)oo(xn,Fl,au[lu=31&fu[ql]]),Fl+=Jl[lu],lu>15&&(oo(xn,Fl,fu[ql]>>>5&127),Fl+=fu[ql]>>>12)}}else Yl=io,cu=to$1,gu=ro,_u=eo;for(ql=0;xl>ql;++ql)if(Nn[ql]>255){var lu;ao(xn,Fl,Yl[257+(lu=Nn[ql]>>>18&31)]),Fl+=cu[lu+257],lu>7&&(oo(xn,Fl,Nn[ql]>>>23&31),Fl+=Hn[lu]);var vu=31&Nn[ql];ao(xn,Fl,gu[vu]),Fl+=_u[vu],vu>3&&(ao(xn,Fl,Nn[ql]>>>5&8191),Fl+=qn[vu])}else ao(xn,Fl,Yl[Nn[ql]]),Fl+=cu[Nn[ql]];return ao(xn,Fl,Yl[256]),Fl+cu[256]},fo=new zn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_o=(function(){for(var $=new zn(256),xn=0;256>xn;++xn){for(var En=xn,Nn=9;--Nn;)En=(1&En&&3988292384)^En>>>1;$[xn]=En}return $})(),go=function($,xn,En){for(;En;++xn)$[xn]=En,En>>>=8};function mo($,xn){xn===void 0&&(xn={});var En=(function(){var Al=4294967295;return{p(Tl){for(var Cl=Al,Il=0;Tl.length>Il;++Il)Cl=_o[255&Cl^Tl[Il]]^Cl>>>8;Al=Cl},d(){return 4294967295^Al}}})(),Nn=$.length;En.p($);var Tn,$n,kl,xl,Nl,Rl=(xl=10+((Tn=xn).filename&&Tn.filename.length+1||0),Nl=8,(function(Al,Tl,Cl,Il,Ml,Dl){var Ll=Al.length,$l=new jn(Il+Ll+5*(1+Math.floor(Ll/7e3))+Ml),Vl=$l.subarray(Il,$l.length-Ml),Bl=0;if(!Tl||8>Ll)for(var zl=0;Ll>=zl;zl+=65535){var Ul=zl+65535;Ll>Ul?Bl=co(Vl,Bl,Al.subarray(zl,Ul)):(Vl[zl]=!0,Bl=co(Vl,Bl,Al.subarray(zl,Ll)))}else{for(var Gl=fo[Tl-1],ql=Gl>>>13,Kl=8191&Gl,Jl=(1<zl;++zl){var lu=gu(zl),vu=32767&zl,Su=ru[lu];if(tu[vu]=Su,ru[lu]=vu,zl>=eu){var Ru=Ll-zl;if((uu>7e3||Wl>24576)&&Ru>423){Bl=po(Al,Vl,0,_u,ku,ou,au,Wl,fu,zl-fu,Bl),Wl=uu=au=0,fu=zl;for(var xu=0;286>xu;++xu)ku[xu]=0;for(xu=0;30>xu;++xu)ou[xu]=0}var Eu=2,Iu=0,Ou=Kl,Lu=vu-Su&32767;if(Ru>2&&lu==gu(zl-Lu))for(var Vu=Math.min(ql,Ru)-1,Xu=Math.min(32767,zl),Cu=Math.min(258,Ru);Xu>=Lu&&--Ou&&vu!=Su;){if(Al[zl+Eu]==Al[zl+Eu-Lu]){for(var zu=0;Cu>zu&&Al[zl+zu]==Al[zl+zu-Lu];++zu);if(zu>Eu){if(Eu=zu,Iu=Lu,zu>Vu)break;var Mu=Math.min(Lu,zu-2),nc=0;for(xu=0;Mu>xu;++xu){var sc=zl-Lu+xu+32768&32767,Tc=sc-tu[sc]+32768&32767;Tc>nc&&(nc=Tc,Su=sc)}}}Lu+=(vu=Su)-(Su=tu[vu])+32768&32767}if(Iu){_u[Wl++]=268435456|Yn[Eu]<<18|Kn[Iu];var fc=31&Yn[Eu],oc=31&Kn[Iu];au+=Hn[fc]+qn[oc],++ku[257+fc],++ou[oc],eu=zl+Eu,++uu}else _u[Wl++]=Al[zl],++ku[Al[zl]]}}Bl=po(Al,Vl,!0,_u,ku,ou,au,Wl,fu,zl-fu,Bl)}return no($l,0,Il+so(Bl)+Ml)})($n=$,(kl=xn).level==null?6:kl.level,kl.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log($n.length)))):12+kl.mem,xl,Nl)),Fl=Rl.length;return(function(Al,Tl){var Cl=Tl.filename;if(Al[0]=31,Al[1]=139,Al[2]=8,Al[8]=2>Tl.level?4:Tl.level==9?2:0,Al[9]=3,Tl.mtime!=0&&go(Al,4,Math.floor(new Date(Tl.mtime||Date.now())/1e3)),Cl){Al[3]=8;for(var Il=0;Cl.length>=Il;++Il)Al[Il+10]=Cl.charCodeAt(Il)}})(Rl,xn),go(Rl,Fl-8,En.d()),go(Rl,Fl-4,Nn),Rl}var yo=!!o||!!n,bo="text/plain",wo=!1,Eo=($,xn)=>{var[En,Nn]=$.split("#"),[Tn,$n]=En.split("?");if(!$n)return $;var kl=$n.split("&").filter((xl=>xl.split("=")[0]!==xn)).join("&");return Tn+(kl?"?"+kl:"")+(Nn?"#"+Nn:"")},xo=function($,xn,En){var Nn;En===void 0&&(En=!0);var[Tn,$n]=$.split("?"),kl=f({},xn),xl=(Nn=$n?.split("&").map((Rl=>{var Fl,[Al,Tl]=Rl.split("="),Cl=En&&(Fl=kl[Al])!==null&&Fl!==void 0?Fl:Tl;return delete kl[Al],Al+"="+Cl})))!==null&&Nn!==void 0?Nn:[],Nl=(function(Rl,Fl){var Al,Tl;Fl===void 0&&(Fl="&");var Cl=[];return xr(Rl,(function(Il,Ml){V$1(Il)||V$1(Ml)||Ml==="undefined"||(Al=encodeURIComponent((Dl=>Dl instanceof File)(Il)?Il.name:Il.toString()),Tl=encodeURIComponent(Ml),Cl[Cl.length]=Tl+"="+Al)})),Cl.join(Fl)})(kl);return Nl&&xl.push(Nl),Tn+"?"+xl.join("&")},So=($,xn)=>JSON.stringify($,((En,Nn)=>typeof Nn=="bigint"?Nn.toString():Nn),xn),To=$=>{if($.xt)return $.xt;var{data:xn,compression:En}=$;if(xn){if(En===Un.GZipJS){var Nn=mo((function(xl,Nl){var Rl=xl.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(xl);for(var Fl=new jn(xl.length+(xl.length>>>1)),Al=0,Tl=function(Dl){Fl[Al++]=Dl},Cl=0;Rl>Cl;++Cl){if(Al+5>Fl.length){var Il=new jn(Al+8+(Rl-Cl<<1));Il.set(Fl),Fl=Il}var Ml=xl.charCodeAt(Cl);128>Ml?Tl(Ml):2048>Ml?(Tl(192|Ml>>>6),Tl(128|63&Ml)):Ml>55295&&57344>Ml?(Tl(240|(Ml=65536+(1047552&Ml)|1023&xl.charCodeAt(++Cl))>>>18),Tl(128|Ml>>>12&63),Tl(128|Ml>>>6&63),Tl(128|63&Ml)):(Tl(224|Ml>>>12),Tl(128|Ml>>>6&63),Tl(128|63&Ml))}return no(Fl,0,Al)})(So(xn)),{mtime:0});return{contentType:bo,body:Nn.buffer.slice(Nn.byteOffset,Nn.byteOffset+Nn.byteLength),estimatedSize:Nn.byteLength}}if(En===Un.Base64){var Tn=(function(xl){return xl&&btoa(encodeURIComponent(xl).replace(/%([0-9A-F]{2})/g,((Nl,Rl)=>String.fromCharCode(parseInt(Rl,16)))))})(So(xn)),$n=(xl=>"data="+encodeURIComponent(typeof xl=="string"?xl:So(xl)))(Tn);return{contentType:"application/x-www-form-urlencoded",body:$n,estimatedSize:new Blob([$n]).size}}var kl=So(xn);return{contentType:"application/json",body:kl,estimatedSize:new Blob([kl]).size}}},$o=$=>{var xn,En,Nn=()=>({url:Eo($.url,"compression"),encodedBody:To(f({},$,{compression:void 0,xt:void 0}))});try{xn=To($)}catch(Tn){if(R($.compression,Qs($.url,"compression")))return li.error("Failed to gzip request body, sending uncompressed payload",Tn),Nn();throw Tn}return xn&&R($.compression,Qs($.url,"compression"))&&!((En=xn.body)instanceof ArrayBuffer?k(new Uint8Array(En)):ArrayBuffer.isView(En)&&k(new Uint8Array(En.buffer,En.byteOffset,En.byteLength)))?(wo=!0,Nn()):{url:$.url,encodedBody:xn}},ko=$=>{try{return $o($)}catch(xn){return li.error(xn),void($.callback==null||$.callback({statusCode:0,error:xn}))}},Ro=(function(){var $=p((function*(xn){var En=So(xn.data),Nn=yield(function($n,kl,xl){return C.apply(this,arguments)})(En,v.DEBUG,{rethrow:!0});if(!Nn)return xn;var Tn=yield Nn.arrayBuffer();return f({},xn,{xt:{contentType:bo,body:Tn,estimatedSize:Tn.byteLength}})}));return function(xn){return $.apply(this,arguments)}})(),Po=($,xn)=>xo($,{_:new Date().getTime().toString(),ver:v.JS_SDK_VERSION,compression:xn}),Io=[];n&&Io.push({transport:"fetch",method($){var xn,En=ko($);if(En){var{url:Nn,encodedBody:Tn}=En,{contentType:$n,body:kl,estimatedSize:xl}=Tn??{},Nl=new Headers;xr($.headers,(function(Tl,Cl){Nl.append(Cl,Tl)})),$n&&Nl.append("Content-Type",$n);var Rl=null,Fl=!1;if(a){var Al=new a;Rl={signal:Al.signal,timeout:setTimeout((()=>{var Tl,Cl;Fl=!0,Al.abort((Tl=$.timeout,(Cl=new Error("PostHog request timed out"+(Tl?" after "+Tl+"ms":""))).name="AbortError",Cl))}),$.timeout)}}n(Nn,f({method:$?.method||"GET",headers:Nl,keepalive:$.method==="POST"&&52428.8>(xl||0),body:kl,signal:(xn=Rl)==null?void 0:xn.signal},$.fetchOptions)).then((Tl=>Tl.text().then((Cl=>{var Il={statusCode:Tl.status,text:Cl};if(Tl.status===200)try{Il.json=JSON.parse(Cl)}catch(Ml){li.error(Ml)}$.callback==null||$.callback(Il)})))).catch((Tl=>{Fl&&Tl?.name==="AbortError"?li.warn(Tl):li.error(Tl),$.callback==null||$.callback({statusCode:0,error:Tl})})).finally((()=>Rl?clearTimeout(Rl.timeout):null))}}}),o&&Io.push({transport:"XHR",method($){var xn=ko($);if(xn){var En=new o,{url:Nn,encodedBody:Tn}=xn;En.open($.method||"GET",Nn,!0);var{contentType:$n,body:kl}=Tn??{};xr($.headers,(function(xl,Nl){En.setRequestHeader(Nl,xl)})),$n&&En.setRequestHeader("Content-Type",$n),$.timeout&&(En.timeout=$.timeout),En.onreadystatechange=()=>{if(En.readyState===4){var xl={statusCode:En.status,text:En.responseText};if(En.status===200)try{xl.json=JSON.parse(En.responseText)}catch{}$.callback==null||$.callback(xl)}},En.send(kl)}}}),i!=null&&i.sendBeacon&&Io.push({transport:"sendBeacon",method($){try{var{url:xn,encodedBody:En}=$o($),{contentType:Nn,body:Tn}=En??{};if(!Tn)return;var $n=Tn instanceof Blob?Tn:new Blob([Tn],{type:Nn});i.sendBeacon(xn,$n)}catch{}}});var Oo=3e3;class Co{constructor(xn,En){this.br=!0,this._r=[],this.wr=lt(En?.flush_interval_ms||Oo,250,5e3,li.createLogger("flush interval"),Oo),this.kr=xn}enqueue(xn){this._r.push(xn),this.Sr||this.Cr()}unload(){this.Ir();var xn=this._r.length>0?this.Tr():{},En=Object.values(xn);[...En.filter((Nn=>Nn.url.indexOf("/e")===0)),...En.filter((Nn=>Nn.url.indexOf("/e")!==0))].map((Nn=>{this.Er(f({},Nn,{transport:"sendBeacon"}))}))}enable(){this.br=!1,this.Cr()}Cr(){var xn=this;this.br||(this.Sr=setTimeout((()=>{if(this.Ir(),this._r.length>0){var En=this.Tr(),Nn=function(){var $n=En[Tn],kl=new Date().getTime();$n.data&&B($n.data)&&xr($n.data,(xl=>{xl.offset=Math.abs(xl.timestamp-kl),delete xl.timestamp})),xn.Er($n)};for(var Tn in En)Nn()}}),this.wr))}Er(xn){try{this.kr(xn)}catch(En){li.error(En)}}Ir(){clearTimeout(this.Sr),this.Sr=void 0}Tr(){var xn={};return xr(this._r,(En=>{var Nn,Tn=En,$n=(Tn?Tn.batchKey:null)||Tn.url;V$1(xn[$n])&&(xn[$n]=f({},Tn,{data:[]})),(Nn=xn[$n].data)==null||Nn.push(Tn.data)})),this._r=[],xn}}var Ao=["retriesPerformedSoFar"];class Fo{constructor(xn){this.Mr=!1,this.Pr=3e3,this._r=[],this._instance=xn,this._r=[],this.Rr=!0,!V$1(t)&&"onLine"in t.navigator&&(this.Rr=t.navigator.onLine,this.Or=()=>{this.Rr=!0,this.Lr()},this.Fr=()=>{this.Rr=!1},Or(t,"online",this.Or),Or(t,"offline",this.Fr))}get length(){return this._r.length}retriableRequest(xn){var{retriesPerformedSoFar:En}=xn,Nn=_(xn,Ao);Q(En)&&(Nn.url=xo(Nn.url,{retry_count:En})),this._instance._send_request(f({},Nn,{callback:Tn=>{if(Tn.statusCode!==200&&(400>Tn.statusCode||Tn.statusCode>=500)){if((Tn.statusCode===0?3:10)>(En??0))return void this.st(f({retriesPerformedSoFar:En},Nn));Tn.statusCode===0&&li.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(En??0)+" retries.")}Nn.callback==null||Nn.callback(Tn)}}))}st(xn){var En=xn.retriesPerformedSoFar||0;xn.retriesPerformedSoFar=En+1;var Nn=(function(kl){var xl=3e3*Math.pow(2,kl),Nl=xl/2,Rl=Math.min(18e5,xl),Fl=Math.random()-.5;return Math.ceil(Rl+Fl*(Rl-Nl))})(En),Tn=Date.now()+Nn;this._r.push({retryAt:Tn,requestOptions:xn});var $n="Enqueued failed request for retry in "+Nn;navigator.onLine||($n+=" (Browser is offline)"),li.warn($n),this.Mr||(this.Mr=!0,this.Ar())}Ar(){if(this.$r&&clearTimeout(this.$r),this._r.length===0)return this.Mr=!1,void(this.$r=void 0);this.$r=setTimeout((()=>{this.Rr&&this._r.length>0&&this.Lr(),this.Ar()}),this.Pr)}Lr(){var xn=Date.now(),En=[],Nn=this._r.filter(($n=>xn>$n.retryAt||(En.push($n),!1)));if(this._r=En,Nn.length>0)for(var{requestOptions:Tn}of Nn)this.retriableRequest(Tn)}unload(){for(var{requestOptions:xn}of(this.$r&&(clearTimeout(this.$r),this.$r=void 0),this.Mr=!1,V$1(t)||(this.Or&&(t.removeEventListener("online",this.Or),this.Or=void 0),this.Fr&&(t.removeEventListener("offline",this.Fr),this.Fr=void 0)),this._r))try{this._instance._send_request(f({},xn,{transport:"sendBeacon"}))}catch(En){li.error(En)}this._r=[]}}class Mo{constructor(xn){this.Dr=()=>{var En,Nn,Tn,$n;this.Nr||(this.Nr={});var kl=this.scrollElement(),xl=this.scrollY(),Nl=kl?Math.max(0,kl.scrollHeight-kl.clientHeight):0,Rl=xl+(kl?.clientHeight||0),Fl=kl?.scrollHeight||0;this.Nr.lastScrollY=Math.ceil(xl),this.Nr.maxScrollY=Math.max(xl,(En=this.Nr.maxScrollY)!==null&&En!==void 0?En:0),this.Nr.maxScrollHeight=Math.max(Nl,(Nn=this.Nr.maxScrollHeight)!==null&&Nn!==void 0?Nn:0),this.Nr.lastContentY=Rl,this.Nr.maxContentY=Math.max(Rl,(Tn=this.Nr.maxContentY)!==null&&Tn!==void 0?Tn:0),this.Nr.maxContentHeight=Math.max(Fl,($n=this.Nr.maxContentHeight)!==null&&$n!==void 0?$n:0)},this._instance=xn}get qr(){return this._instance.config.scroll_root_selector}getContext(){return this.Nr}resetContext(){var xn=this.Nr;return setTimeout(this.Dr,0),xn}startMeasuringScrollPosition(){Or(t,"scroll",this.Dr,{capture:!0}),Or(t,"scrollend",this.Dr,{capture:!0}),Or(t,"resize",this.Dr)}scrollElement(){if(!this.qr)return t?.document.documentElement;var xn=B(this.qr)?this.qr:[this.qr];for(var En of xn){var Nn=t?.document.querySelector(En);if(Nn)return Nn}}Br(xn){var En=xn==="y"?"scrollTop":"scrollLeft";if(this.qr){var Nn=this.scrollElement();return Nn&&Nn[En]||0}return t?xn==="y"?t.scrollY||t.pageYOffset||t.document.documentElement.scrollTop||0:t.scrollX||t.pageXOffset||t.document.documentElement.scrollLeft||0:0}scrollY(){return this.Br("y")}scrollX(){return this.Br("x")}}var Do=$=>vn($?.config.mask_personal_data_properties,$?.config.custom_personal_data_properties,$?.config.disable_capture_url_hashes);class Lo{constructor(xn,En,Nn,Tn){this.jr=$n=>{var kl=this.Hr();if(!kl||kl.sessionId!==$n){var xl={sessionId:$n,props:this.Ur(this._instance)};this.zr.register({[Zi]:xl})}},this._instance=xn,this.Vr=En,this.zr=Nn,this.Ur=Tn||Do,this.Vr.onSessionId(this.jr)}Hr(){return this.zr.props[Zi]}getSetOnceProps(){var xn,En=(xn=this.Hr())==null?void 0:xn.props;return En?"r"in En?cn$1(En,this._instance.config.disable_capture_url_hashes):{$referring_domain:En.referringDomain,$pathname:En.initialPathName,utm_source:En.utm_source,utm_campaign:En.utm_campaign,utm_medium:En.utm_medium,utm_content:En.utm_content,utm_term:En.utm_term}:{}}getSessionProps(){var xn={};return xr(Rr(this.getSetOnceProps()),((En,Nn)=>{Nn==="$current_url"&&(Nn="url"),xn["$session_entry_"+L(Nn)]=En})),xn}}class No{constructor(){this.Wr={}}on(xn,En){return this.Wr[xn]||(this.Wr[xn]=[]),this.Wr[xn].push(En),()=>{this.Wr[xn]=this.Wr[xn].filter((Nn=>Nn!==En))}}emit(xn,En){for(var Nn of this.Wr[xn]||[])Nn(En);for(var Tn of this.Wr["*"]||[])Tn(xn,En)}}var Uo=ui("[SessionId]");class jo{on(xn,En){return this.Gr.on(xn,En)}constructor(xn,En,Nn){var Tn;if(this.Zr=null,this.Qr=[],this.Jr=void 0,this.Yr=!1,this.Gr=new No,this.Kr=(Rl,Fl)=>!(!Q(Rl)||!Q(Fl))&&Math.abs(Rl-Fl)>this.sessionTimeoutMs,!xn.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(xn.config.cookieless_mode===vr)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Se=xn.config,this.zr=xn.persistence,this.Xr=void 0,this.ei=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ti=En||Nr,this.ri=Nn||Nr;var $n=this.Se.persistence_name||this.Se.token;if(this._sessionTimeoutMs=1e3*lt(this.Se.session_idle_timeout_seconds||1800,60,36e3,Uo.createLogger("session_idle_timeout_seconds"),1800),xn.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ii(),this.ni="ph_"+$n+"_window_id",this.si="ph_"+$n+"_primary_window_exists",this.oi()){var kl=Kr.F(this.ni),xl=Kr.F(this.si);kl&&!xl?this.Xr=kl:Kr.P(this.ni),Kr.q(this.si,!0)}if((Tn=this.Se.bootstrap)!=null&&Tn.sessionID)try{var Nl=(Rl=>{var Fl=this.Se.bootstrap.sessionID.replace(/-/g,"");if(Fl.length!==32)throw new Error("Not a valid UUID");if(Fl[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(Fl.substring(0,12),16)})();this.ai(this.Se.bootstrap.sessionID,new Date().getTime(),Nl)}catch(Rl){Uo.error("Invalid sessionID in bootstrap",Rl)}this.li()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(xn){return V$1(this.Qr)&&(this.Qr=[]),this.Qr.push(xn),this.ei&&xn(this.ei,this.Xr),()=>{this.Qr=this.Qr.filter((En=>En!==xn))}}oi(){return this.Se.persistence!=="memory"&&!this.zr.Vt&&Kr.N()}ui(xn){xn!==this.Xr&&(this.Xr=xn,this.oi()&&Kr.q(this.ni,xn))}hi(){return this.Xr?this.Xr:this.oi()?Kr.F(this.ni):null}di(xn){var En=this.Zr;return!Y(En)&&!Y(xn)&&5e3>Math.abs(xn-En)}ai(xn,En,Nn){var Tn=En!==this._sessionActivityTimestamp,$n=!(xn!==this.ei||Nn!==this._sessionStartTimestamp);this._sessionStartTimestamp=Nn,this._sessionActivityTimestamp=En,this.ei=xn,$n&&!Tn||$n&&this.di(En)||(this.Zr=En,this.zr.register({[Ci]:[En,xn,Nn]}))}ci(){var xn,En=(xn=this.Se)==null?void 0:xn.persistence_save_debounce_ms;return Q(En)&&En>0}vi(){this.ci()?this.zr.refreshKey(Ci):(this.zr.flush(),this.zr.load())}fi(){var xn;if(!Y(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Zr){this.vi();var[,En,Nn]=this.pi();En===this.ei&&Nn===this._sessionStartTimestamp&&(this.Zr=this._sessionActivityTimestamp,this.zr.register({[Ci]:[this._sessionActivityTimestamp,(xn=this.ei)!==null&&xn!==void 0?xn:null,this._sessionStartTimestamp]}),this.zr.flush())}}gi(){var[xn]=this.pi(),En=Q(xn)?xn:0,Nn=Q(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(En,Nn)}mi(xn){return this.vi(),this.Kr(xn,this.gi())}pi(){var xn=this.zr.props[Ci];return B(xn)&&xn.length===2&&xn.push(xn[0]),xn||[0,null,0]}resetSessionId(){this.Zr=null,clearTimeout(this.yi),this.yi=void 0,this.ai(null,null,null)}destroy(){this.Yr=!0,this.fi(),clearTimeout(this.yi),this.yi=void 0,this.Jr&&t&&(t.removeEventListener(gr,this.Jr,{capture:!1}),this.Jr=void 0),this.Qr=[]}li(){this.Jr=()=>{this.fi(),this.oi()&&Kr.P(this.si)},Or(t,gr,this.Jr,{capture:!1})}checkAndGetSessionAndWindowId(xn,En){if(xn===void 0&&(xn=!1),En===void 0&&(En=null),this.Se.cookieless_mode===vr)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var Nn=En||new Date().getTime(),[,Tn,$n]=this.pi(),kl=this.gi(),xl=this.hi(),Nl=Q($n)&&Math.abs(Nn-$n)>864e5,Rl=!1,Fl=!1,Al=!Tn,Tl=Tn,Cl=!Al&&!xn&&this.Kr(Nn,kl);Cl&&((Cl=this.mi(Nn))||Uo.info("cross-tab refresh kept the session alive",{sessionId:Tn}),[,Tn,$n]=this.pi()),Al||Cl||Nl?(Tn=this.ti(),xl=this.ri(),Uo.info("new session ID generated",{sessionId:Tn,windowId:xl,changeReason:{noSessionId:Al,activityTimeout:Cl,sessionPastMaximumLength:Nl}}),$n=Nn,Rl=!0):(xl||(xl=this.ri(),Rl=!0),(Fl=Tn!==Tl)&&(Uo.info("adopted cross-tab session id",{sessionId:Tn,windowId:xl}),Rl=!0));var Il=Q(kl)&&xn&&!Nl?kl:Nn,Ml=Q($n)?$n:new Date().getTime();this.ui(xl),this.ai(Tn,Il,Ml),xn||this.ii();var Dl={noSessionId:Al,activityTimeout:Cl,sessionPastMaximumLength:Nl,crossTabAdoption:Fl};return Rl&&this.Qr.forEach((Ll=>Ll(Tn,xl,Dl))),{sessionId:Tn,windowId:xl,sessionStartTimestamp:Ml,changeReason:Rl?Dl:void 0,lastActivityTimestamp:kl}}ii(){this.Yr||(clearTimeout(this.yi),this.yi=setTimeout((()=>{if(!this.Yr)if(this.mi(new Date().getTime())){var xn=this.ei;this.resetSessionId(),this.Gr.emit("forcedIdleReset",{idleSessionId:xn})}else this.ii()}),1.1*this.sessionTimeoutMs))}}var Bo=function($,xn){if(!$)return!1;var En=$.userAgent;if(En&&F(En,xn))return!0;try{var Nn=$?.userAgentData;if(Nn!=null&&Nn.brands&&Nn.brands.some((Tn=>F(Tn?.brand,xn))))return!0}catch{}return!!$.webdriver};function zo(){return(zo=p((function*(){var $=i?.userAgentData;if($!=null&&$.getHighEntropyValues)try{var xn=yield $.getHighEntropyValues(["model"]),En=xn?.model;return G(En)&&En.length>0?En:void 0}catch(Nn){return void li.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",Nn)}}))).apply(this,arguments)}var Ho=function($,xn){if(!(function(En){try{new RegExp(En)}catch{return!1}return!0})(xn))return!1;try{return new RegExp(xn).test($)}catch{return!1}};function qo($,xn,En){return So({distinct_id:$,userPropertiesToSet:xn,userPropertiesToSetOnce:En})}var Vo={exact:($,xn)=>xn.some((En=>$.some((Nn=>En===Nn)))),is_not:($,xn)=>xn.every((En=>$.every((Nn=>En!==Nn)))),regex:($,xn)=>xn.some((En=>$.some((Nn=>Ho(En,Nn))))),not_regex:($,xn)=>xn.every((En=>$.every((Nn=>!Ho(En,Nn))))),icontains:($,xn)=>xn.map(Go).some((En=>$.map(Go).some((Nn=>En.includes(Nn))))),not_icontains:($,xn)=>xn.map(Go).every((En=>$.map(Go).every((Nn=>!En.includes(Nn))))),gt:($,xn)=>xn.some((En=>{var Nn=parseFloat(En);return!isNaN(Nn)&&$.some((Tn=>Nn>parseFloat(Tn)))})),lt:($,xn)=>xn.some((En=>{var Nn=parseFloat(En);return!isNaN(Nn)&&$.some((Tn=>Nn$.toLowerCase();function Wo($,xn){return!$||Object.entries($).every((En=>{var[Nn,Tn]=En,$n=xn?.[Nn];if(V$1($n)||Y($n))return!1;var kl=[String($n)],xl=Vo[Tn.operator];return!!xl&&xl(Tn.values,kl)}))}var Yo="custom",Ko="i.posthog.com",Jo=/^\/static\//;class Qo{constructor(xn){this.bi={},this.instance=xn}get apiHost(){var xn=this.instance.config.api_host.trim().replace(/\/$/,"");return xn==="https://app.posthog.com"?"https://us.i.posthog.com":xn}get flagsApiHost(){var xn=this.instance.config.flags_api_host;return xn?xn.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var xn,En=(xn=this.instance.config.ui_host)==null?void 0:xn.replace(/\/$/,"");return En||(En=this.apiHost.replace("."+Ko,".posthog.com")),En==="https://app.posthog.com"?"https://us.posthog.com":En}get region(){return this.bi[this.apiHost]||(this.bi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":Yo),this.bi[this.apiHost]}wi(xn){if(Jo.test(xn)){var En=this.instance.config.asset_host;if(typeof En=="string")return En.trim().replace(/\/$/,"")||void 0}}endpointFor(xn,En){if(En===void 0&&(En=""),En&&(En=En[0]==="/"?En:"/"+En),xn==="ui")return this.uiHost+En;if(xn==="flags")return this.flagsApiHost+En;if(xn==="assets"){var Nn=this.wi(En);if(Nn)return""+Nn+En}if(this.region===Yo)return this.apiHost+En;var Tn=Ko+En;switch(xn){case"assets":return"https://"+this.region+"-assets."+Tn;case"api":return"https://"+this.region+"."+Tn}}}var Xo=ui("[Surveys]"),Zo="seenSurvey_",ta=$=>{try{var xn=(En=>((Nn,Tn)=>{var $n=""+Zo+Tn.id;return Tn.current_iteration&&Tn.current_iteration>0&&($n=""+Zo+Tn.id+"_"+Tn.current_iteration),$n})(0,En))($);if(localStorage.getItem(xn))return;localStorage.setItem(xn,"true")}catch(En){Xo.error("Failed to persist survey seen state",En)}},ea=[Sn.Popover,Sn.Widget,Sn.API],ia={ignoreConditions:!1,ignoreDelay:!1,displayType:In.Popover},ra=ui("[PostHog ExternalIntegrations]"),sa={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class na{constructor(xn){this._instance=xn}Mt(xn,En){var Nn;(Nn=h.__PosthogExtensions__)==null||Nn.loadExternalDependency==null||Nn.loadExternalDependency(this._instance,xn,(Tn=>{if(Tn)return ra.error("failed to load script",Tn);En()}))}startIfEnabledOrStop(){var xn=this,En=function(kl){var xl,Nl,Rl;!Tn||(xl=h.__PosthogExtensions__)!=null&&(xl=xl.integrations)!=null&&xl[kl]||xn.Mt(sa[kl],(()=>{var Fl;(Fl=h.__PosthogExtensions__)==null||(Fl=Fl.integrations)==null||(Fl=Fl[kl])==null||Fl.start(xn._instance)})),!Tn&&(Nl=h.__PosthogExtensions__)!=null&&(Nl=Nl.integrations)!=null&&Nl[kl]&&((Rl=h.__PosthogExtensions__)==null||(Rl=Rl.integrations)==null||(Rl=Rl[kl])==null||Rl.stop())};for(var[Nn,Tn]of Object.entries(($n=this._instance.config.integrations)!==null&&$n!==void 0?$n:{})){var $n;En(Nn)}}}var oa,aa={},la=0,ua=()=>{},ha='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',da="Surveys module not available",va="sanitize_properties is deprecated. Use before_send instead",ca="Invalid value for property_denylist config: ",pa="posthog",fa=!yo&&u?.indexOf("MSIE")===-1&&u?.indexOf("Mozilla")===-1,_a=$=>{var xn;return f({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Ir(r$1?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:ua,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:$??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:s&&G(s?.search)&&s.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:(t==null||(xn=t.location)==null?void 0:xn.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(En){li.error("Bad HTTP status: "+En.statusCode+" "+En.text)},get_device_id:En=>En,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:fr,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:Oo},error_tracking:{},_onCapture:ua},(En=>({rageclick:En&&En>="2026-05-30"?{content_ignorelist:gs,ignore_text_selection:!0}:!En||"2025-11-30">En||{content_ignorelist:!0},capture_pageview:!En||"2025-05-24">En||"history_change",session_recording:En&&En>="2026-06-25"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6},streamNetworkBody:!0}:En&&En>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:En&&En>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:En&&En>="2026-01-30"?"head":"body",internal_or_test_user_hostname:En&&En>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:En&&En>="2026-05-30"?250:0,split_storage:!(!En||"2026-05-30">En),detect_google_search_app:!(!En||"2026-05-30">En),disable_capture_url_hashes:!(!En||"2026-06-25">En)}))($))},ga=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],ma=$=>{var xn={};for(var[En,Nn]of ga)V$1($[En])||(xn[Nn]=$[En]);var Tn=Sr({},xn,$),$n=$.__preview_external_dependency_versioned_paths;return V$1($n)||(V$1($.strict_script_versioning)&&(Tn.strict_script_versioning=!!$n),G($n)&&V$1($.asset_host)&&(Tn.asset_host=$n)),B($.property_blacklist)&&(V$1($.property_denylist)?Tn.property_denylist=$.property_blacklist:B($.property_denylist)?Tn.property_denylist=[...$.property_blacklist,...$.property_denylist]:li.error(ca+$.property_denylist)),Tn};class ya{constructor(){this.__forceAllowLocalhost=!1}get xi(){return this.__forceAllowLocalhost}set xi(xn){li.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=xn}}class ba{ki(xn,En){if(xn){var Nn=this.Si.indexOf(xn);Nn!==-1&&this.Si.splice(Nn,1)}return this.Si.push(En),En.initialize==null||En.initialize(),En}Ci(){return this.config.cookieless_mode===vr||this.config.cookieless_mode===dr&&this.consent.isRejected()}get decideEndpointWasHit(){var xn,En;return(xn=(En=this.featureFlags)==null?void 0:En.hasLoadedFlags)!==null&&xn!==void 0&&xn}get flagsEndpointWasHit(){var xn,En;return(xn=(En=this.featureFlags)==null?void 0:En.hasLoadedFlags)!==null&&xn!==void 0&&xn}constructor(){var xn;this.webPerformance=new ya,this.Ii=!1,this.version=v.LIB_VERSION,this.Ti=new No,this.Si=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=_a(),this.SentryIntegration=qs,this.sentryIntegration=Nn=>(function(Tn,$n){var kl=Hs(Tn,$n);return{name:zs,processEvent:xl=>kl(xl)}})(this,Nn),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Ei=!1,this.Mi=null,this.Pi=null,this.Ri=null,this.scrollManager=new Mo(this),this.pageViewManager=new Vs(this),this.rateLimiter=new Mn(this),this.requestRouter=new Qo(this),this.consent=new Jr(this),this.externalIntegrations=new na(this);var En=(xn=ba.__defaultExtensionClasses)!==null&&xn!==void 0?xn:{};this.featureFlags=En.featureFlags&&new En.featureFlags(this),this.toolbar=En.toolbar&&new En.toolbar(this),this.surveys=En.surveys&&new En.surveys(this),this.conversations=En.conversations&&new En.conversations(this),this.logs=En.logs&&new En.logs(this),this.experiments=En.experiments&&new En.experiments(this),this.exceptions=En.exceptions&&new En.exceptions(this),this.people={set:(Nn,Tn,$n)=>{var kl=G(Nn)?{[Nn]:Tn}:Nn;this.setPersonProperties(kl),$n?.({})},set_once:(Nn,Tn,$n)=>{var kl=G(Nn)?{[Nn]:Tn}:Nn;this.setPersonProperties(void 0,kl),$n?.({})}},this.on("eventCaptured",(Nn=>li.info('send "'+Nn?.event+'"',Nn)))}init(xn,En,Nn){if(Nn&&Nn!==pa){var Tn,$n=(Tn=aa[Nn])!==null&&Tn!==void 0?Tn:new ba;return $n._init(xn,En,Nn),aa[Nn]=$n,aa[pa][Nn]=$n,$n}return this._init(xn,En,Nn)}_init(xn,En,Nn){var Tn,$n;En===void 0&&(En={});var kl=G(xn)?xn.trim():"";if(!kl)return li.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},En.debug=this.Oi(En.debug),this.Li=En,this.Fi=[],En.person_profiles?this.Pi=En.person_profiles:En.process_person&&(this.Pi=En.process_person);var xl=_a(En.defaults),Nl=ma(En),Rl=Sr({},xl,Nl,{name:Nn,token:kl});H(xl.rageclick)&&H(Nl.rageclick)&&(Rl.rageclick=Sr({},xl.rageclick,Nl.rageclick)),H(xl.session_recording)&&H(Nl.session_recording)&&(Rl.session_recording=Sr({},xl.session_recording,Nl.session_recording)),this.set_config(Rl),this.config.on_xhr_error&&li.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=En.disable_compression?void 0:Un.GZipJS;var Fl=this.Ai();this.persistence=new yn(this.config,Fl),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new yn(f({},this.config,{persistence:"sessionStorage"}),Fl,!1);var Al=f({},this.persistence.props),Tl=f({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.$i=new Co((Bl=>this.Di(Bl)),this.config.request_queue_config),this.Ni=new Fo(this),this.__request_queue=[];var Cl=this.Ci();if(Cl||(this.sessionManager=new jo(this),this.sessionPropsManager=new Lo(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(li.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.qi(Cl)}),0)):(li.info("Initializing extensions synchronously"),this.qi(Cl)),v.DEBUG=v.DEBUG||this.config.debug,v.DEBUG&&li.info("Starting in debug mode",{this:this,config:En,thisC:f({},this.config),p:Al,s:Tl}),!this.config.identity_distinct_id||(Tn=En.bootstrap)!=null&&Tn.distinctID||(En.bootstrap=f({},En.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),(($n=En.bootstrap)==null?void 0:$n.distinctID)!==void 0){var Il=En.bootstrap.distinctID,Ml=this.get_distinct_id(),Dl=this.persistence.get_property(Xi);if(En.bootstrap.isIdentifiedID&&Ml!=null&&Ml!==Il&&Dl===cr)this.identify(Il);else if(En.bootstrap.isIdentifiedID&&Ml!=null&&Ml!==Il&&Dl===pr)li.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var Ll=this.config.get_device_id(Nr()),$l=En.bootstrap.isIdentifiedID?Ll:Il;this.persistence.set_property(Xi,En.bootstrap.isIdentifiedID?pr:cr),this.register({distinct_id:Il,$device_id:$l})}}if(Cl)this.register_once({distinct_id:or,$device_id:null},"");else if(!this.get_distinct_id()){var Vl=this.config.get_device_id(Nr());this.register_once({distinct_id:Vl,$device_id:Vl},""),this.persistence.set_property(Xi,cr)}return Or(t,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),En.segment?(function(Bl,zl){var Ul=Bl.config.segment;if(!Ul)return zl();(function(Gl,ql){var Kl=Gl.config.segment;if(!Kl)return ql();var Jl=ru=>{var Yl=()=>ru.anonymousId()||Nr();Gl.config.get_device_id=Yl,ru.id()&&(Gl.register({distinct_id:ru.id(),$device_id:Yl()}),Gl.persistence.set_property(Xi,pr)),ql()},tu=Kl.user();"then"in tu&&z(tu.then)?tu.then(Jl):Jl(tu)})(Bl,(()=>{Ul.register((Gl=>{typeof Promise<"u"&&Promise.resolve||Bs.warn("This browser does not have Promise support, and can not use the segment integration");var ql=(Kl,Jl)=>{if(!Jl)return Kl;Kl.event.userId||Kl.event.anonymousId===Gl.get_distinct_id()||(Bs.info("No userId set, resetting PostHog"),Gl.reset()),Kl.event.userId&&Kl.event.userId!==Gl.get_distinct_id()&&(Bs.info("UserId set, identifying with PostHog"),Gl.identify(Kl.event.userId));var tu=Gl.calculateEventProperties(Jl,Kl.event.properties);return Kl.event.properties=Object.assign({},tu,Kl.event.properties),Kl};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:Kl=>ql(Kl,Kl.event.event),page:Kl=>ql(Kl,mr),identify:Kl=>ql(Kl,br),screen:Kl=>ql(Kl,"$screen")}})(Bl)).then((()=>{zl()}))}))})(this,(()=>this.Bi())):this.Bi(),z(this.config._onCapture)&&this.config._onCapture!==ua&&(li.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(Bl=>this.config._onCapture(Bl.event,Bl)))),this.config.ip&&li.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||(function(){return zo.apply(this,arguments)})().then((Bl=>{Bl&&this.register({[pi]:Bl})})).catch(ua),this}qi(xn){var En,Nn,Tn,$n,kl,xl,Nl,Rl=performance.now(),Fl=f({},ba.__defaultExtensionClasses,this.config.__extensionClasses),Al=[];Fl.featureFlags&&this.Si.push(this.featureFlags=(En=this.featureFlags)!==null&&En!==void 0?En:new Fl.featureFlags(this)),Fl.exceptions&&this.Si.push(this.exceptions=(Nn=this.exceptions)!==null&&Nn!==void 0?Nn:new Fl.exceptions(this)),Fl.historyAutocapture&&this.Si.push(this.historyAutocapture=new Fl.historyAutocapture(this)),Fl.tracingHeaders&&this.Si.push(this.tracingHeaders=new Fl.tracingHeaders(this)),Fl.siteApps&&this.Si.push(this.siteApps=new Fl.siteApps(this)),Fl.sessionRecording&&!xn&&this.Si.push(this.sessionRecording=new Fl.sessionRecording(this)),this.config.disable_scroll_properties||Al.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),Fl.autocapture&&this.Si.push(this.autocapture=new Fl.autocapture(this)),Fl.surveys&&this.Si.push(this.surveys=(Tn=this.surveys)!==null&&Tn!==void 0?Tn:new Fl.surveys(this)),Fl.logs&&this.Si.push(this.logs=($n=this.logs)!==null&&$n!==void 0?$n:new Fl.logs(this)),Fl.conversations&&this.Si.push(this.conversations=(kl=this.conversations)!==null&&kl!==void 0?kl:new Fl.conversations(this)),Fl.productTours&&this.Si.push(this.productTours=new Fl.productTours(this)),Fl.heatmaps&&this.Si.push(this.heatmaps=new Fl.heatmaps(this)),Fl.webVitalsAutocapture&&this.Si.push(this.webVitalsAutocapture=new Fl.webVitalsAutocapture(this)),Fl.exceptionObserver&&this.Si.push(this.exceptionObserver=new Fl.exceptionObserver(this)),Fl.deadClicksAutocapture&&this.Si.push(this.deadClicksAutocapture=new Fl.deadClicksAutocapture(this,Us)),Fl.toolbar&&this.Si.push(this.toolbar=(xl=this.toolbar)!==null&&xl!==void 0?xl:new Fl.toolbar(this)),Fl.experiments&&this.Si.push(this.experiments=(Nl=this.experiments)!==null&&Nl!==void 0?Nl:new Fl.experiments(this)),this.Si.forEach((Tl=>{Tl.initialize&&Al.push((()=>{Tl.initialize==null||Tl.initialize()}))})),Al.push((()=>{if(this.ji){var Tl=this.ji;this.ji=void 0,this.pr(Tl)}})),this.Hi(Al,Rl)}Hi(xn,En){for(;xn.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-En>=30&&xn.length>0)return void setTimeout((()=>{this.Hi(xn,En)}),0);var Nn=xn.shift();if(Nn)try{Nn()}catch($n){li.error("Error initializing extension:",$n)}}var Tn=Math.round(performance.now()-En);this.register_for_session({[ar]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[lr]:Tn}),this.config.__preview_deferred_init_extensions&&li.info("PostHog extensions initialized ("+Tn+"ms)")}pr(xn){var En;if(!r$1||!r$1.body)return li.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.pr(xn)}),500);this.config.__preview_deferred_init_extensions&&(this.ji=xn),this.Ui=xn,this.compression=void 0,xn.supportedCompression&&!this.config.disable_compression&&(this.compression=M(xn.supportedCompression,Un.GZipJS)?Un.GZipJS:M(xn.supportedCompression,Un.Base64)?Un.Base64:void 0),(En=xn.analytics)!=null&&En.endpoint&&(this.analyticsDefaultEndpoint=xn.analytics.endpoint),this.set_config({person_profiles:this.Pi?this.Pi:fr}),this.Si.forEach((Nn=>Nn.onRemoteConfig==null?void 0:Nn.onRemoteConfig(xn)))}Bi(){try{this.config.loaded(this)}catch(Nn){li.critical("`loaded` function failed",Nn)}if(this.zi(),this.config.internal_or_test_user_hostname&&s!=null&&s.hostname){var xn=s.hostname,En=this.config.internal_or_test_user_hostname;(typeof En=="string"?xn===En:En.test(xn))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ci())&&this.Vi()}),1),this.Wi=new Ln(this),this.Wi.load()}zi(){var xn;this.is_capturing()&&this.config.request_batching&&((xn=this.$i)==null||xn.enable())}_dom_loaded(){this.is_capturing()&&Er(this.__request_queue,(xn=>this.Di(xn))),this.__request_queue=[],this.zi()}_handle_unload(){var xn,En,Nn,Tn;(xn=this.surveys)==null||xn.handlePageUnload==null||xn.handlePageUnload(),this.config.request_batching?(this.Gi()&&this.capture(yr),(En=this.logs)==null||En.flushLogs("sendBeacon"),(Nn=this.$i)==null||Nn.unload(),(Tn=this.Ni)==null||Tn.unload()):this.Gi()&&this.capture(yr,null,{transport:"sendBeacon"})}_send_request(xn){this.__loaded?fa?this.__request_queue.push(xn):this.rateLimiter.isServerRateLimited(xn.batchKey)?xn.fireCallbackOnDrop&&(xn.callback==null||xn.callback({statusCode:429})):(xn.transport=xn.transport||this.config.api_transport,xn.headers=f({},this.config.request_headers,xn.headers),xn.compression=xn.compression==="best-available"?this.compression:xn.compression,(V$1(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(xn.disableTransport=["sendBeacon"]),xn.fetchOptions=xn.fetchOptions||this.config.fetch_options,(En=>{var Nn,Tn,$n,kl=f({},En);kl.timeout=kl.timeout||6e4,kl.url=Po(kl.url,kl.compression);var xl=(Nn=kl.transport)!==null&&Nn!==void 0?Nn:"fetch",Nl=Io.filter((Fl=>!kl.disableTransport||!Fl.transport||!kl.disableTransport.includes(Fl.transport))),Rl=(Tn=($n=(function(Fl,Al){for(var Tl=0;Fl.length>Tl;Tl++)if(Fl[Tl].transport===xl)return Fl[Tl]})(Nl))==null?void 0:$n.method)!==null&&Tn!==void 0?Tn:Nl[0].method;if(!Rl)throw new Error("No available transport method");xl!=="sendBeacon"&&kl.data&&kl.compression===Un.GZipJS&&l&&typeof Promise<"u"&&!wo?Ro(kl).then((Fl=>{Rl(Fl)})).catch((Fl=>{if(P(Fl))return wo=!0,void Rl(f({},kl,{compression:void 0,url:Po(En.url,void 0)}));(Al=>{if(!Al||typeof Al!="object")return!1;var Tl="name"in Al?String(Al.name):"";return P(Al)||Tl===T})(Fl)&&(wo=!0),Rl(kl)})):Rl(kl)})(f({},xn,{callback:En=>{var Nn,Tn;this.rateLimiter.checkForLimiting(En),400>En.statusCode||(Nn=(Tn=this.config).on_request_error)==null||Nn.call(Tn,En),xn.callback==null||xn.callback(En)}}))):xn.fireCallbackOnDrop&&(xn.callback==null||xn.callback({statusCode:0}))}Di(xn){this.Ni?this.Ni.retriableRequest(xn):this._send_request(xn)}_execute_array(xn){la++;try{var En,Nn=[],Tn=[],$n=[];Er(xn,(xl=>{if(xl)if(B(En=xl[0]))$n.push(xl);else if(z(xl))try{xl.call(this)}catch(Nl){li.error("Error executing queued PostHog call",xl,Nl)}else B(xl)&&En==="alias"?Nn.push(xl):B(xl)&&En.indexOf("capture")!==-1&&z(this[En])?$n.push(xl):Tn.push(xl)}));var kl=function(xl,Nl){Er(xl,(function(Rl){try{if(B(Rl[0])){var Fl=Nl;xr(Rl,(function(Al){Fl=Fl[Al[0]].apply(Fl,Al.slice(1))}))}else Nl[Rl[0]].apply(Nl,Rl.slice(1))}catch(Al){li.error("Error executing queued PostHog call",Rl,Al)}}))};kl(Nn,this),kl(Tn,this),kl($n,this)}finally{la--}}push(xn){if(la>0&&B(xn)&&G(xn[0])){var En=ba.prototype[xn[0]];z(En)&&En.apply(this,xn.slice(1))}else this._execute_array([xn])}capture(xn,En,Nn){var Tn,$n,kl,xl,Nl;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.$i){if(this.is_capturing())if(!V$1(xn)&&G(xn)){var Rl=!this.config.opt_out_useragent_filter&&this._is_bot();if(!Rl||this.config.__preview_capture_bot_pageviews){var Fl=Nn!=null&&Nn.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(Fl==null||!Fl.isRateLimited){En!=null&&En.$current_url&&!G(En?.$current_url)&&(li.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),En==null||delete En.$current_url),xn!=="$exception"||Nn!=null&&Nn.Zi||li.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var Al=new Date,Tl=Nn?.timestamp||Al,Cl=fe(Nn?.uuid,Nr),Il={uuid:Cl,event:xn,properties:this.calculateEventProperties(xn,En||{},Tl,Cl)};xn===mr&&this.config.__preview_capture_bot_pageviews&&Rl&&(Il.event="$bot_pageview",Il.properties.$browser_type="bot"),Fl&&(Il.properties.$lib_rate_limit_remaining_tokens=Fl.remainingTokens),Nn?.$set&&(Il.$set=Nn?.$set);var Ml=Nn?.$unset;Ml&&(Il.$unset=Ml);var Dl,Ll,$l,Vl=this.Qi(Nn?.$set_once,xn!==wr,xn===br);if(Vl&&(Il.$set_once=Vl),Nn!=null&&Nn._noTruncate||($n=this.config.properties_string_max_length,kl=Il,xl=Jl=>G(Jl)?Jl.slice(0,$n):Jl,Nl=new Set,Il=(function Jl(tu,ru){return tu!==Object(tu)?xl?xl(tu):tu:Nl.has(tu)?void 0:(Nl.add(tu),B(tu)?(Yl=[],Er(tu,(cu=>{Yl.push(Jl(cu))}))):(Yl={},xr(tu,((cu,gu)=>{Nl.has(cu)||(Yl[gu]=Jl(cu))}))),Yl);var Yl})(kl)),Il.timestamp=Tl,V$1(Nn?.timestamp)||(Il.properties.$event_time_override_provided=!0,Il.properties.$event_time_override_system_time=Al),xn===Rn.DISMISSED||xn===Rn.SENT){var Bl=En?.[Pn.SURVEY_ID],zl=En?.[Pn.SURVEY_ITERATION];ta({id:Bl,current_iteration:zl}),Il.$set=f({},Il.$set,{[(Dl={id:Bl,current_iteration:zl},Ll=xn===Rn.SENT?"responded":"dismissed",$l="$survey_"+Ll+"/"+Dl.id,Dl.current_iteration&&Dl.current_iteration>0&&($l="$survey_"+Ll+"/"+Dl.id+"/"+Dl.current_iteration),$l)]:!0})}else xn===Rn.SHOWN&&(Il.$set=f({},Il.$set,{[Pn.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(xn===Cn.SHOWN){var Ul=En?.[An.TOUR_TYPE];Ul&&(Il.$set=f({},Il.$set,{[An.TOUR_LAST_SEEN_DATE+"/"+Ul]:new Date().toISOString()}))}var Gl=f({},Il.properties.$set,Il.$set);if(q(Gl)||this.setPersonPropertiesForFlags(Gl),!K(this.config.before_send)){var ql=this.it(Il);if(!ql)return;(Il=ql).uuid=fe(Il.uuid,Nr)}this.Ti.emit("eventCaptured",Il);var Kl={method:"POST",url:(Tn=Nn?._url)!==null&&Tn!==void 0?Tn:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:Il,compression:"best-available",batchKey:Nn?._batchKey,transport:Nn?.transport};return!this.config.request_batching||Nn&&(Nn==null||!Nn._batchKey)||Nn!=null&&Nn.send_instantly?this.Di(Kl):this.$i.enqueue(Kl),Il}li.critical("This capture call is ignored due to client rate limiting.")}}else li.error("No event name provided to posthog.capture")}else li.uninitializedWarning("posthog.capture")}_addCaptureHook(xn){return this.on("eventCaptured",(En=>xn(En.event,En)))}calculateEventProperties(xn,En,Nn,Tn,$n){if(Nn=Nn||new Date,!this.persistence||!this.sessionPersistence)return En;var kl=$n?void 0:this.persistence.remove_event_timer(xn),xl=f({},En);if(xl.token=this.config.token,xl.$config_defaults=this.config.defaults,this.Ci()&&(xl.$cookieless_mode=!0),xn==="$snapshot"){var Nl=f({},this.persistence.properties(),this.sessionPersistence.properties());return xl.distinct_id=Nl.distinct_id,(!G(xl.distinct_id)&&!J(xl.distinct_id)||W(xl.distinct_id))&&li.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),xl}var Rl,Fl=(function(Ll,$l,Vl,Bl){var zl,Ul,Gl,ql;if(Bl===void 0&&(Bl=!1),!u)return{};var Kl,Jl,tu,ru,Yl,cu,gu,_u,ku,ou=Ll?[...en,...$l||[]]:[],[uu,au]=(function(lu){for(var vu=0;ve.length>vu;vu++){var[Su,Ru]=ve[vu],xu=Su.exec(lu),Eu=xu&&(z(Ru)?Ru(xu,lu):Ru);if(Eu)return Eu}return["",""]})(u),Wl=(Kl=typeof navigator<"u"?navigator:void 0)!=null&&Kl.brave?{brave:!0}:{},eu={detectGoogleSearchApp:Vl},fu=Sr(Rr({$os:uu,$os_version:au,$browser:ue(u,navigator.vendor,Wl,eu),$device:ce(u),$device_type:(tu=u,ru={userAgentDataPlatform:(zl=navigator)==null||(zl=zl.userAgentData)==null?void 0:zl.platform,maxTouchPoints:(Ul=navigator)==null?void 0:Ul.maxTouchPoints,screenWidth:t==null||(Gl=t.screen)==null?void 0:Gl.width,screenHeight:t==null||(ql=t.screen)==null?void 0:ql.height,devicePixelRatio:t?.devicePixelRatio},ku=ce(tu),ku===ft||ku===pt||ku==="Kobo"||ku==="Kindle Fire"||ku===Vt?ct:ku===Ft||ku===Dt||ku===Mt||ku===zt?"Console":ku===gt?"Wearable":ku?ht:ru?.userAgentDataPlatform==="Android"&&((Yl=ru?.maxTouchPoints)!==null&&Yl!==void 0?Yl:0)>0?600>Math.min((cu=ru?.screenWidth)!==null&&cu!==void 0?cu:0,(gu=ru?.screenHeight)!==null&&gu!==void 0?gu:0)/((_u=ru?.devicePixelRatio)!==null&&_u!==void 0?_u:1)?ht:ct:"Desktop"),$timezone:pn(),$timezone_offset:fn()}),{$current_url:Xs(Bl?_e(s?.href):s?.href,ou,sn),$host:s?.host,$pathname:s?.pathname,$raw_user_agent:u.length>1e3?u.substring(0,997)+"...":u,$browser_version:de(u,navigator.vendor,Wl,eu),$browser_language:un(),$browser_language_prefix:(Jl=un(),typeof Jl=="string"?Jl.split("-")[0]:void 0),$screen_height:t?.screen.height,$screen_width:t?.screen.width,$viewport_height:t?.innerHeight,$viewport_width:t?.innerWidth,$lib:v.LIB_NAME,$lib_version:v.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return v.SDK_DIST_CHANNEL&&(fu.$sdk_dist_channel=v.SDK_DIST_CHANNEL),fu})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){var{sessionId:Al,windowId:Tl}=this.sessionManager.checkAndGetSessionAndWindowId($n,Nn.getTime());xl.$session_id=Al,xl.$window_id=Tl}this.sessionPropsManager&&Sr(xl,this.sessionPropsManager.getSessionProps());try{var Cl;this.sessionRecording&&Sr(xl,this.sessionRecording.sdkDebugProperties),xl.$sdk_debug_retry_queue_size=(Cl=this.Ni)==null?void 0:Cl.length}catch(Ll){xl.$sdk_debug_error_capturing_properties=String(Ll)}if(this.requestRouter.region===Yo&&(xl.$lib_custom_api_host=this.config.api_host),Rl=xn!==mr||$n?xn!==yr||$n?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(Nn):this.pageViewManager.doPageView(Nn,Tn),xl=Sr(xl,Rl),xn===mr&&r$1&&(xl.title=r$1.title),!V$1(kl)){var Il=Nn.getTime()-kl;xl.$duration=parseFloat((Il/1e3).toFixed(3))}u&&this.config.opt_out_useragent_filter&&(xl.$browser_type=this._is_bot()?"bot":"browser"),(xl=Sr({},Fl,this.persistence.properties(),this.sessionPersistence.properties(),xl)).$is_identified=this._isIdentified(),B(this.config.property_denylist)?xr(this.config.property_denylist,(function(Ll){delete xl[Ll]})):li.error(ca+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var Ml=this.config.sanitize_properties;Ml&&(li.error(va),xl=Ml(xl,xn));var Dl=this.Ji();return xl.$process_person_profile=Dl,Dl&&!$n&&this.Yi("_calculate_event_properties"),xl}Qi(xn,En,Nn){var Tn;if(En===void 0&&(En=!0),Nn===void 0&&(Nn=!1),!this.persistence||!this.Ji()||this.Ii&&!Nn)return xn;var $n=this.persistence.get_initial_props(),kl=(Tn=this.sessionPropsManager)==null?void 0:Tn.getSetOnceProps(),xl=Sr({},$n,kl||{},xn||{}),Nl=this.config.sanitize_properties;return Nl&&(li.error(va),xl=Nl(xl,"$set_once")),En&&(this.Ii=!0),q(xl)?void 0:xl}register(xn,En){var Nn;(Nn=this.persistence)==null||Nn.register(xn,En)}register_once(xn,En,Nn){var Tn;(Tn=this.persistence)==null||Tn.register_once(xn,En,Nn)}register_for_session(xn){var En;(En=this.sessionPersistence)==null||En.register(xn)}unregister(xn){var En;(En=this.persistence)==null||En.unregister(xn)}unregister_for_session(xn){var En;(En=this.sessionPersistence)==null||En.unregister(xn)}Ki(xn,En){this.register({[xn]:En})}getFeatureFlag(xn,En){var Nn;return(Nn=this.featureFlags)==null?void 0:Nn.getFeatureFlag(xn,En)}getFeatureFlagPayload(xn){var En;return(En=this.featureFlags)==null?void 0:En.getFeatureFlagPayload(xn)}getFeatureFlagResult(xn,En){var Nn;return(Nn=this.featureFlags)==null?void 0:Nn.getFeatureFlagResult(xn,En)}getAllFeatureFlags(){var xn,En;return(xn=(En=this.featureFlags)==null?void 0:En.getAllFeatureFlags())!==null&&xn!==void 0?xn:[]}isFeatureEnabled(xn,En){var Nn;return(Nn=this.featureFlags)==null?void 0:Nn.isFeatureEnabled(xn,En)}reloadFeatureFlags(){var xn;(xn=this.featureFlags)==null||xn.reloadFeatureFlags()}updateFlags(xn,En,Nn){var Tn;(Tn=this.featureFlags)==null||Tn.updateFlags(xn,En,Nn)}updateEarlyAccessFeatureEnrollment(xn,En,Nn){var Tn;(Tn=this.featureFlags)==null||Tn.updateEarlyAccessFeatureEnrollment(xn,En,Nn)}getEarlyAccessFeatures(xn,En,Nn){var Tn;return En===void 0&&(En=!1),(Tn=this.featureFlags)==null?void 0:Tn.getEarlyAccessFeatures(xn,En,Nn)}on(xn,En){return this.Ti.on(xn,En)}onFeatureFlags(xn){return this.featureFlags?this.featureFlags.onFeatureFlags(xn):(xn([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(xn){return this.surveys?this.surveys.onSurveysLoaded(xn):(xn([],{isLoaded:!1,error:da}),()=>{})}onSessionId(xn){var En,Nn;return(En=(Nn=this.sessionManager)==null?void 0:Nn.onSessionId(xn))!==null&&En!==void 0?En:()=>{}}getSurveys(xn,En){En===void 0&&(En=!1),this.surveys?this.surveys.getSurveys(xn,En):xn([],{isLoaded:!1,error:da})}getActiveMatchingSurveys(xn,En){En===void 0&&(En=!1),this.surveys?this.surveys.getActiveMatchingSurveys(xn,En):xn([],{isLoaded:!1,error:da})}renderSurvey(xn,En){var Nn;(Nn=this.surveys)==null||Nn.renderSurvey(xn,En)}displaySurvey(xn,En){var Nn;En===void 0&&(En=ia),(Nn=this.surveys)==null||Nn.displaySurvey(xn,En)}cancelPendingSurvey(xn){var En;(En=this.surveys)==null||En.cancelPendingSurvey(xn)}canRenderSurvey(xn){var En,Nn;return(En=(Nn=this.surveys)==null?void 0:Nn.canRenderSurvey(xn))!==null&&En!==void 0?En:{visible:!1,disabledReason:da}}canRenderSurveyAsync(xn,En){var Nn,Tn;return En===void 0&&(En=!1),(Nn=(Tn=this.surveys)==null?void 0:Tn.canRenderSurveyAsync(xn,En))!==null&&Nn!==void 0?Nn:Promise.resolve({visible:!1,disabledReason:da})}Xi(xn){return!xn||W(xn)?(li.critical("Unique user id has not been set in posthog.identify"),!1):xn===or?(li.critical('The string "'+xn+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(xn.toLowerCase())&&!["undefined","null"].includes(xn.toLowerCase())||(li.critical('The string "'+xn+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(xn,En,Nn){if(!this.__loaded||!this.persistence)return li.uninitializedWarning("posthog.identify");if(J(xn)&&(xn=xn.toString(),li.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Xi(xn)&&this.Yi("posthog.identify")){var Tn=this.get_distinct_id();this.register({$user_id:xn}),this.get_property(ci)||this.register_once({$had_persisted_distinct_id:!0,$device_id:Tn},""),xn!==Tn&&xn!==this.get_property(fi)&&(this.unregister(fi),this.register({distinct_id:xn}));var $n,kl=(this.persistence.get_property(Xi)||cr)===cr;xn!==Tn&&kl?(this.persistence.set_property(Xi,pr),this.setPersonPropertiesForFlags({$set:En||{},$set_once:Nn||{}},!1),this.capture(br,{distinct_id:xn,$anon_distinct_id:Tn},{$set:En||{},$set_once:Nn||{}}),this.Ri=qo(xn,En,Nn),($n=this.featureFlags)==null||$n.setAnonymousDistinctId(Tn)):(En||Nn)&&this.setPersonProperties(En,Nn),xn!==Tn&&(this.reloadFeatureFlags(),this.unregister(Yi))}}setPersonProperties(xn,En){if((xn||En)&&this.Yi("posthog.setPersonProperties")){var Nn=qo(this.get_distinct_id(),xn,En);this.Ri!==Nn?(this.setPersonPropertiesForFlags({$set:xn||{},$set_once:En||{}},!0),this.capture("$set",{$set:xn||{},$set_once:En||{}}),this.Ri=Nn):li.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(xn){var En,Nn=(B(xn)?xn:[xn]).filter((Tn=>G(Tn)&&Tn.length>0));Nn.length!==0&&this.Yi("posthog.unsetPersonProperties")&&((En=this.featureFlags)==null||En.unsetPersonPropertiesForFlags(Nn,!0),this.capture("$set",{$unset:Nn}),this.Ri=null)}group(xn,En,Nn){if(xn&&En){var Tn=this.getGroups(),$n=Tn[xn]!==En;if($n&&this.resetGroupPropertiesForFlags(xn),this.register({$groups:f({},Tn,{[xn]:En})}),$n||Nn){var kl={$group_type:xn,$group_key:En};Nn&&(kl.$group_set=Nn),this.capture(wr,kl)}Nn&&this.setGroupPropertiesForFlags({[xn]:Nn}),$n&&!Nn&&this.reloadFeatureFlags()}else li.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(xn,En){var Nn;En===void 0&&(En=!0),(Nn=this.featureFlags)==null||Nn.setPersonPropertiesForFlags(xn,En)}resetPersonPropertiesForFlags(xn){var En;xn===void 0&&(xn=!0),(En=this.featureFlags)==null||En.resetPersonPropertiesForFlags(xn)}setGroupPropertiesForFlags(xn,En){var Nn;En===void 0&&(En=!0),this.Yi("posthog.setGroupPropertiesForFlags")&&((Nn=this.featureFlags)==null||Nn.setGroupPropertiesForFlags(xn,En))}resetGroupPropertiesForFlags(xn){var En;(En=this.featureFlags)==null||En.resetGroupPropertiesForFlags(xn)}reset(xn){var En,Nn,Tn,$n,kl,xl,Nl,Rl,Fl;if(li.info("reset"),!this.__loaded)return li.uninitializedWarning("posthog.reset");var Al,Tl=this.get_property(ci),Cl=this.get_property(pi),Il=this.get_property($i);if(this.consent.reset(),(En=this.persistence)==null||En.clear(),(Nn=this.sessionPersistence)==null||Nn.clear(),V$1(Il)||(Al=this.persistence)==null||Al.register({[$i]:Il}),(Tn=this.surveys)==null||Tn.reset(),($n=this.Wi)==null||$n.stop(),(kl=this.featureFlags)==null||kl.reset(),(xl=this.conversations)==null||xl.reset(),(Nl=this.logs)==null||Nl.reset(),(Rl=this.persistence)==null||Rl.set_property(Xi,cr),(Fl=this.sessionManager)==null||Fl.resetSessionId(),this.Ri=null,this.config.cookieless_mode===vr)this.register_once({distinct_id:or,$device_id:null},"");else{var Ml=this.config.get_device_id(Nr());this.register_once({distinct_id:Ml,$device_id:xn?Ml:Tl},""),xn||V$1(Cl)||this.register({[pi]:Cl})}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}shutdown(xn){var En=this;return p((function*(){var Nn,Tn,$n;En.__loaded?((Nn=En.logs)==null||Nn.flushLogs("sendBeacon"),(Tn=En.$i)==null||Tn.unload(),($n=En.Ni)==null||$n.unload()):li.uninitializedWarning("posthog.shutdown")}))()}setIdentity(xn,En){var Nn;this.config.identity_distinct_id=xn,this.config.identity_hash=En,this.alias(xn),(Nn=this.conversations)==null||Nn.en()}clearIdentity(){var xn;delete this.config.identity_distinct_id,delete this.config.identity_hash,(xn=this.conversations)==null||xn.tn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var xn,En;return(xn=(En=this.sessionManager)==null?void 0:En.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&xn!==void 0?xn:""}get_session_replay_url(xn){if(!this.sessionManager)return"";var{sessionId:En,sessionStartTimestamp:Nn}=this.sessionManager.checkAndGetSessionAndWindowId(!0),Tn=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+En);if(xn!=null&&xn.withTimestamp&&Nn){var $n,kl=($n=xn.timestampLookBack)!==null&&$n!==void 0?$n:10;if(!Nn)return Tn;Tn+="?t="+Math.max(Math.floor((new Date().getTime()-Nn)/1e3)-kl,0)}return Tn}alias(xn,En){return xn===this.get_property(vi)?(li.critical("Attempting to create alias for existing People user - aborting."),-2):this.Yi("posthog.alias")?(V$1(En)&&(En=this.get_distinct_id()),xn!==En?(this.Ki(fi,xn),this.capture("$create_alias",{alias:xn,distinct_id:En})):(li.warn("alias matches current distinct_id - skipping api call."),this.identify(xn),-1)):void 0}set_config(xn){var En=f({},this.config);if(H(xn)){var Nn,Tn,$n,kl,xl,Nl,Rl,Fl,Al,Tl,Cl;Sr(this.config,ma(xn));var Il=this.Ai();(Nn=this.persistence)==null||Nn.update_config(this.config,En,Il),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new yn(f({},this.config,{persistence:"sessionStorage"}),Il,!1);var Ml=this.Oi(this.config.debug);X(Ml)&&(this.config.debug=Ml),X(this.config.debug)&&(this.config.debug?(v.DEBUG=!0,qr.N()&&qr.q("ph_debug",!0),li.info("set_config",{config:xn,oldConfig:En,newConfig:f({},this.config)})):(v.DEBUG=!1,qr.N()&&qr.P("ph_debug"))),(Tn=this.exceptionObserver)==null||Tn.onConfigChange(),($n=this.exceptions)==null||$n.onConfigChange(),(kl=this.sessionRecording)==null||kl.startIfEnabledOrStop(),(xl=this.tracingHeaders)==null||xl.startIfEnabledOrStop(),(Nl=this.autocapture)==null||Nl.startIfEnabled(),(Rl=this.heatmaps)==null||Rl.startIfEnabled(),(Fl=this.exceptionObserver)==null||Fl.startIfEnabledOrStop(),(Al=this.deadClicksAutocapture)==null||Al.startIfEnabledOrStop(),(Tl=this.surveys)==null||Tl.loadIfEnabled(),this.rn(),(Cl=this.externalIntegrations)==null||Cl.startIfEnabledOrStop()}}_overrideSDKInfo(xn,En){v.LIB_NAME=xn,v.LIB_VERSION=En}startSessionRecording(xn){var En,Nn,Tn,$n,kl,xl=xn===!0,Nl={sampling:xl||!(xn==null||!xn.sampling),linked_flag:xl||!(xn==null||!xn.linked_flag),url_trigger:xl||!(xn==null||!xn.url_trigger),event_trigger:xl||!(xn==null||!xn.event_trigger)};Object.values(Nl).some(Boolean)&&((En=this.sessionManager)==null||En.checkAndGetSessionAndWindowId(),Nl.sampling&&((Nn=this.sessionRecording)==null||Nn.overrideSampling()),Nl.linked_flag&&((Tn=this.sessionRecording)==null||Tn.overrideLinkedFlag()),Nl.url_trigger&&(($n=this.sessionRecording)==null||$n.overrideTrigger("url")),Nl.event_trigger&&((kl=this.sessionRecording)==null||kl.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var xn;return!((xn=this.sessionRecording)==null||!xn.started)}captureException(xn,En){if(this.exceptions){var Nn=new Error("PostHog syntheticException"),Tn=this.exceptions.buildProperties(xn,{handled:!0,syntheticException:Nn});return this.exceptions.sendExceptionEvent(f({},Tn,En))}}addExceptionStep(xn,En){var Nn;(Nn=this.exceptions)==null||Nn.addExceptionStep(xn,En)}captureLog(xn){var En;(En=this.logs)==null||En.captureLog(xn)}get logger(){var xn,En;return(xn=(En=this.logs)==null?void 0:En.logger)!==null&&xn!==void 0?xn:ba.nn}startExceptionAutocapture(xn){this.set_config({capture_exceptions:xn==null||xn})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(xn){var En,Nn;return(En=(Nn=this.toolbar)==null?void 0:Nn.loadToolbar(xn))!==null&&En!==void 0&&En}get_property(xn){var En;return(En=this.persistence)==null?void 0:En.props[xn]}getSessionProperty(xn){var En;return(En=this.sessionPersistence)==null?void 0:En.props[xn]}toString(){var xn,En=(xn=this.config.name)!==null&&xn!==void 0?xn:pa;return En!==pa&&(En=pa+"."+En),En}_isIdentified(){var xn,En;return((xn=this.persistence)==null?void 0:xn.get_property(Xi))===pr||((En=this.sessionPersistence)==null?void 0:En.get_property(Xi))===pr}Ji(){var xn,En;return!(this.config.person_profiles==="never"||this.config.person_profiles===fr&&!this._isIdentified()&&q(this.getGroups())&&((xn=this.persistence)==null||(xn=xn.props)==null||!xn[fi])&&((En=this.persistence)==null||(En=En.props)==null||!En[sr]))}Gi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Ji()||this.Yi("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Yi("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Yi(xn){return this.config.person_profiles==="never"?(li.error(xn+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Ki(sr,!0),!0)}Ai(){if(this.config.cookieless_mode==="always")return!0;var xn=this.consent.isOptedOut();return this.config.disable_persistence||xn&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==dr)}rn(){var xn,En,Nn,Tn,$n=this.Ai();return((xn=this.persistence)==null?void 0:xn.Vt)!==$n&&((Nn=this.persistence)==null||Nn.set_disabled($n)),((En=this.sessionPersistence)==null?void 0:En.Vt)!==$n&&((Tn=this.sessionPersistence)==null||Tn.set_disabled($n)),$n}opt_in_capturing(xn){var En;if(this.config.cookieless_mode!==vr){if(this.Ci()){var Nn,Tn,$n,kl,xl;this.reset(!0),(Nn=this.sessionManager)==null||Nn.destroy(),(Tn=this.pageViewManager)==null||Tn.destroy(),this.sessionManager=new jo(this),this.pageViewManager=new Vs(this),this.persistence&&(this.sessionPropsManager=new Lo(this,this.sessionManager,this.persistence));var Nl,Rl=($n=(kl=this.config.__extensionClasses)==null?void 0:kl.sessionRecording)!==null&&$n!==void 0?$n:(xl=ba.__defaultExtensionClasses)==null?void 0:xl.sessionRecording;Rl&&(this.sessionRecording=this.ki(this.sessionRecording,new Rl(this)),this.Ui&&((Nl=this.sessionRecording)==null||Nl.onRemoteConfig==null||Nl.onRemoteConfig(this.Ui)))}var Fl,Al;this.consent.optInOut(!0),this.rn(),this.zi(),(En=this.sessionRecording)==null||En.startIfEnabledOrStop(),this.config.cookieless_mode==dr&&((Fl=this.surveys)==null||Fl.loadIfEnabled()),(V$1(xn?.captureEventName)||xn!=null&&xn.captureEventName)&&this.capture((Al=xn?.captureEventName)!==null&&Al!==void 0?Al:"$opt_in",xn?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Vi()}else li.warn(ha)}opt_out_capturing(){var xn,En,Nn;this.config.cookieless_mode!==vr?(this.config.cookieless_mode===dr&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.rn(),this.config.cookieless_mode===dr&&(this.register({distinct_id:or,$device_id:null}),(xn=this.sessionRecording)==null||xn.stopRecording(),this.sessionRecording=void 0,(En=this.sessionManager)==null||En.destroy(),(Nn=this.pageViewManager)==null||Nn.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.Vi(),this.zi())):li.warn(ha)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var xn=this.consent.consent;return xn===1?"granted":xn===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===vr||(this.config.cookieless_mode===dr?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.rn()}_is_bot(){return i?Bo(i,this.config.custom_blocked_useragents):void 0}Vi(){r$1&&(r$1.visibilityState==="visible"?this.Ei||(this.Ei=!0,this.capture(mr,{title:r$1.title},{send_instantly:!0}),this.Mi&&(r$1.removeEventListener(_r,this.Mi),this.Mi=null)):this.Mi||(this.Mi=this.Vi.bind(this),Or(r$1,_r,this.Mi)))}debug(xn){xn===!1?(t?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(t?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}mr(){var xn,En,Nn,Tn,$n,kl,xl=this.Li||{};return"advanced_disable_flags"in xl?!!xl.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(li.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(Nn="advanced_disable_decide",Tn=li,$n=(En="advanced_disable_flags")in(xn=xl)&&!K(xn[En]),kl=Nn in xn&&!K(xn[Nn]),$n?xn[En]:!!kl&&(Tn&&Tn.warn("Config field '"+Nn+"' is deprecated. Please use '"+En+"' instead. The old field will be removed in a future major version."),xn[Nn]))}it(xn){var En;if(K(this.config.before_send))return xn;var Nn=Object.keys((En=xn.properties)!==null&&En!==void 0?En:{}).filter(et),Tn=B(this.config.before_send)?this.config.before_send:[this.config.before_send],$n=xn;for(var kl of Tn){if($n=kl($n),K($n)){var xl="Event '"+xn.event+"' was rejected in beforeSend function";return tt(xn.event)?li.warn(xl+". This can cause unexpected behavior."):li.info(xl),null}$n.properties&&!q($n.properties)||li.warn("Event '"+xn.event+"' has no properties after beforeSend function, this is likely an error.")}for(var Nl of Nn)if($n.properties&&K($n.properties[Nl]))return li.warn("Event '"+xn.event+"' had its '"+Nl+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return $n}getPageViewId(){var xn;return(xn=this.pageViewManager.Ot)==null?void 0:xn.pageViewId}captureTraceFeedback(xn,En){this.capture("$ai_feedback",{$ai_trace_id:String(xn),$ai_feedback_text:En})}captureTraceMetric(xn,En,Nn){this.capture("$ai_metric",{$ai_trace_id:String(xn),$ai_metric_name:En,$ai_metric_value:String(Nn)})}Oi(xn){var En=X(xn)&&!xn,Nn=qr.N()&&qr.A("ph_debug")==="true";return!En&&(!!Nn||xn)}}ba.__defaultExtensionClasses={},ba.nn={trace:oa=()=>{},debug:oa,info:oa,warn:oa,error:oa,fatal:oa},(function($,xn){for(var En=0;xn.length>En;En++)$.prototype[xn[En]]=kr($.prototype[xn[En]])})(ba,["identify"]);class wa{constructor(xn){this.disabled=xn===!1;var En=H(xn)?xn:{};this.thresholdPx=En.threshold_px||30,this.timeoutMs=En.timeout_ms||1e3,this.clickCount=En.click_count||3,this.clicks=[]}isRageClick(xn,En,Nn){if(this.disabled)return!1;var Tn=this.clicks[this.clicks.length-1];if(Tn&&Math.abs(xn-Tn.x)+Math.abs(En-Tn.y)Nn-Tn.timestamp){if(this.clicks.push({x:xn,y:En,timestamp:Nn}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:xn,y:En,timestamp:Nn}];return!1}}var Ea="$copy_autocapture",xa=ui("[AutoCapture]");function Sa($,xn){return xn.length>$?xn.slice(0,$)+"...":xn}function Ta($){if($.previousElementSibling)return $.previousElementSibling;var xn=$;do xn=xn.previousSibling;while(xn&&!is$1(xn));return xn}function $a($,xn){var En,Nn,{e:Tn,maskAllElementAttributes:$n,maskAllText:kl,elementAttributeIgnoreList:xl,elementsChainAsString:Nl,disableCaptureUrlHashes:Rl}=xn;if(!is$1($))return{props:{}};for(var Fl=[$],Al=$;Al.parentNode&&!rs(Al,"body");)if(ns(Al.parentNode))Fl.push(Al.parentNode.host),Al=Al.parentNode.host;else{if(!is$1(Al.parentNode))break;Fl.push(Al.parentNode),Al=Al.parentNode}var Tl,Cl,Il=[],Ml={},Dl=!1,Ll=!1;if(xr(Fl,(Ul=>{var Gl=Ss(Ul);if(rs(Ul,"a")){var ql=Ul.getAttribute("href");Dl=!!(Gl&&ql&&Cs(ql))&&(Rl?_e(ql):ql)}M(ls(Ul),"ph-no-capture")&&(Ll=!0),Il.push((function(Jl,tu,ru,Yl,cu){cu===void 0&&(cu=!1);var gu=Jl.tagName.toLowerCase(),_u={tag_name:gu};vs.indexOf(gu)>-1&&!ru&&(_u.$el_text=gu.toLowerCase()==="a"||gu.toLowerCase()==="button"?Sa(1024,As(Jl)):Sa(1024,hs(Jl)));var ku=ls(Jl);ku.length>0&&(_u.classes=ku.filter((function(Wl){return Wl!==""}))),xr(Jl.attributes,(function(Wl){var eu;if((!Ts(Jl)||["name","id","class","aria-label"].indexOf(Wl.name)!==-1)&&(Yl==null||!Yl.includes(Wl.name))&&!tu&&Cs(Wl.value)&&(!G(eu=Wl.name)||eu.substring(0,10)!=="_ngcontent"&&eu.substring(0,7)!=="_nghost")){var fu=Wl.value;Wl.name==="class"&&(fu=os(fu).join(" ")),_u["attr__"+Wl.name]=Sa(1024,Wl.name==="href"&&cu?_e(fu):fu)}}));for(var ou=1,uu=1,au=Jl;au=Ta(au);)ou++,au.tagName===Jl.tagName&&uu++;return _u.nth_child=ou,_u.nth_of_type=uu,_u})(Ul,$n,kl,xl,Rl));var Kl=(function(Jl){if(!Ss(Jl))return{};var tu={};return xr(Jl.attributes,(function(ru){if(ru.name&&ru.name.indexOf("data-ph-capture-attribute")===0){var Yl=ru.name.replace("data-ph-capture-attribute-",""),cu=ru.value;Yl&&cu&&Cs(cu)&&(tu[Yl]=cu)}})),tu})(Ul);Sr(Ml,Kl)})),Ll)return{props:{},explicitNoCapture:Ll};if(kl||(Il[0].$el_text=rs($,"a")||rs($,"button")?As($):hs($)),Dl){var $l,Vl;Il[0].attr__href=Dl;var Bl=($l=Js(Dl))==null?void 0:$l.host,zl=t==null||(Vl=t.location)==null?void 0:Vl.host;Bl&&zl&&Bl!==zl&&(Tl=Dl)}return{props:Sr({$event_type:Tn.type,$ce_version:1},Nl?{}:{$elements:Il},{$elements_chain:(Cl=Il,(function(Ul){return Ul.map((Gl=>{var ql,Kl,Jl="";if(Gl.tag_name&&(Jl+=Gl.tag_name),Gl.attr_class)for(var tu of(Gl.attr_class.sort(),Gl.attr_class))Jl+="."+tu.replace(/"/g,"");var ru=f({},Gl.text?{text:Gl.text}:{},{"nth-child":(ql=Gl.nth_child)!==null&&ql!==void 0?ql:0,"nth-of-type":(Kl=Gl.nth_of_type)!==null&&Kl!==void 0?Kl:0},Gl.href?{href:Gl.href}:{},Gl.attr_id?{attr_id:Gl.attr_id}:{},Gl.attributes),Yl={};return Tr(ru).sort(((cu,gu)=>{var[_u]=cu,[ku]=gu;return _u.localeCompare(ku)})).forEach((cu=>{var[gu,_u]=cu;return Yl[Ms(gu.toString())]=Ms(_u.toString())})),(Jl+=":")+Tr(Yl).map((cu=>{var[gu,_u]=cu;return gu+'="'+_u+'"'})).join("")})).join(";")})((function(Ul){return Ul.map((Gl=>{var ql,Kl,Jl={text:(ql=Gl.$el_text)==null?void 0:ql.slice(0,400),tag_name:Gl.tag_name,href:(Kl=Gl.attr__href)==null?void 0:Kl.slice(0,2048),attr_class:Ds(Gl),attr_id:Gl.attr__id,nth_child:Gl.nth_child,nth_of_type:Gl.nth_of_type,attributes:{}};return Tr(Gl).filter((tu=>{var[ru]=tu;return ru.indexOf("attr__")===0})).forEach((tu=>{var[ru,Yl]=tu;return Jl.attributes[ru]=Yl})),Jl}))})(Cl)))},(En=Il[0])!=null&&En.$el_text?{$el_text:(Nn=Il[0])==null?void 0:Nn.$el_text}:{},Tl&&Tn.type==="click"?{$external_click_url:Tl}:{},Ml)}}var ka=ui("[ExceptionAutocapture]"),Ra=ui("[TracingHeaders]"),Pa=ui("[Web Vitals]"),Ia=9e5,Oa="disabled",Ca="lazy_loading",Aa="awaiting_config",Fa="missing_config";ui("[SessionRecording]"),ui("[SessionRecording]");var Ma="[SessionRecording]",Da=ui(Ma),La=ui("[Heatmaps]");function Na($){return H($)&&"clientX"in $&&"clientY"in $&&J($.clientX)&&J($.clientY)}var Ua=ui("[Product Tours]"),ja=$=>{var xn;return!$.config.disable_product_tours&&!((xn=$.persistence)==null||!xn.get_property(Si))},Ba=["$set_once","$set"],za=ui("[SiteApps]"),Ha="Error while initializing PostHog app with config id ";function qa($,xn,En){if(K($))return!1;switch(En){case"exact":return $===xn;case"contains":var Nn=xn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(Nn,"i").test($);case"regex":try{return new RegExp(xn).test($)}catch{return!1}default:return!1}}class Va{constructor(xn){this.sn=new No,this.an=(En,Nn)=>this.ln(En,Nn)&&this.un(En,Nn)&&this.hn(En,Nn)&&this.dn(En,Nn),this.ln=(En,Nn)=>Nn==null||!Nn.event||En?.event===Nn?.event,this._instance=xn,this.cn=new Set,this.vn=new Set}init(){var xn,En;V$1((xn=this._instance)==null?void 0:xn._addCaptureHook)||(En=this._instance)==null||En._addCaptureHook(((Nn,Tn)=>{this.on(Nn,Tn)}))}register(xn){var En,Nn;if(!V$1((En=this._instance)==null?void 0:En._addCaptureHook)&&(xn.forEach((kl=>{var xl,Nl;(xl=this.vn)==null||xl.add(kl),(Nl=kl.steps)==null||Nl.forEach((Rl=>{var Fl;(Fl=this.cn)==null||Fl.add(Rl?.event||"")}))})),(Nn=this._instance)!=null&&Nn.autocapture)){var Tn,$n=new Set;xn.forEach((kl=>{var xl;(xl=kl.steps)==null||xl.forEach((Nl=>{Nl!=null&&Nl.selector&&$n.add(Nl?.selector)}))})),(Tn=this._instance)==null||Tn.autocapture.setElementSelectors($n)}}on(xn,En){var Nn;En!=null&&xn.length!=0&&(this.cn.has(xn)||this.cn.has(En?.event))&&this.vn&&((Nn=this.vn)==null?void 0:Nn.size)>0&&this.vn.forEach((Tn=>{this.fn(En,Tn)&&this.sn.emit("actionCaptured",Tn.name)}))}pn(xn){this.onAction("actionCaptured",(En=>xn(En)))}fn(xn,En){if(En?.steps==null)return!1;for(var Nn of En.steps)if(this.an(xn,Nn))return!0;return!1}onAction(xn,En){return this.sn.on(xn,En)}un(xn,En){if(En!=null&&En.url){var Nn,Tn=xn==null||(Nn=xn.properties)==null?void 0:Nn.$current_url;if(!Tn||typeof Tn!="string"||!qa(Tn,En.url,En.url_matching||"contains"))return!1}return!0}hn(xn,En){return!!this.gn(xn,En)&&!!this.mn(xn,En)&&!!this.yn(xn,En)}gn(xn,En){var Nn;if(En==null||!En.href)return!0;var Tn=this.bn(xn);if(Tn.length>0)return Tn.some((xl=>qa(xl.href,En.href,En.href_matching||"exact")));var $n,kl=(xn==null||(Nn=xn.properties)==null?void 0:Nn.$elements_chain)||"";return!!kl&&qa(($n=kl.match(/(?::|")href="(.*?)"/))?$n[1]:"",En.href,En.href_matching||"exact")}mn(xn,En){var Nn;if(En==null||!En.text)return!0;var Tn=this.bn(xn);if(Tn.length>0)return Tn.some((Rl=>qa(Rl.text,En.text,En.text_matching||"exact")||qa(Rl.$el_text,En.text,En.text_matching||"exact")));var $n,kl,xl,Nl=(xn==null||(Nn=xn.properties)==null?void 0:Nn.$elements_chain)||"";return!!Nl&&($n=(function(Rl){for(var Fl,Al=[],Tl=/(?::|")text="(.*?)"/g;!K(Fl=Tl.exec(Rl));)Al.includes(Fl[1])||Al.push(Fl[1]);return Al})(Nl),kl=En.text,xl=En.text_matching||"exact",$n.some((Rl=>qa(Rl,kl,xl))))}yn(xn,En){var Nn,Tn;if(En==null||!En.selector)return!0;var $n=xn==null||(Nn=xn.properties)==null?void 0:Nn.$element_selectors;if($n!=null&&$n.includes(En.selector))return!0;var kl=(xn==null||(Tn=xn.properties)==null?void 0:Tn.$elements_chain)||"";if(En.selector_regex&&kl)try{return new RegExp(En.selector_regex).test(kl)}catch{return!1}return!1}bn(xn){var En;return(xn==null||(En=xn.properties)==null?void 0:En.$elements)==null?[]:xn?.properties.$elements}dn(xn,En){return En==null||!En.properties||En.properties.length===0||Wo(En.properties.reduce(((Nn,Tn)=>{var $n=B(Tn.value)?Tn.value.map(String):Tn.value!=null?[String(Tn.value)]:[];return Nn[Tn.key]={values:$n,operator:Tn.operator||"exact"},Nn}),{}),xn?.properties)}}class Ga{constructor(xn){this._n=[],this._instance=xn,this.wn=new Map,this.xn=new Map,this.kn=new Map}Sn(xn,En){return!!xn&&Wo(xn.propertyFilters,En?.properties)}Cn(xn,En){var Nn=new Map;return xn.forEach((Tn=>{var $n;($n=Tn.conditions)==null||($n=$n[En])==null||($n=$n.values)==null||$n.forEach((kl=>{if(kl!=null&&kl.name){var xl=Nn.get(kl.name)||[];xl.push(Tn.id),Nn.set(kl.name,xl)}}))})),Nn}In(xn,En,Nn){var Tn=(Nn===bn.Activation?this.wn:this.xn).get(xn),$n=[];return this.Tn((kl=>{$n=kl.filter((xl=>Tn?.includes(xl.id)))})),$n.filter((kl=>{var xl,Nl=(xl=kl.conditions)==null||(xl=xl[Nn])==null||(xl=xl.values)==null?void 0:xl.find((Rl=>Rl.name===xn));return this.Sn(Nl,En)}))}register(xn){var En;V$1((En=this._instance)==null?void 0:En._addCaptureHook)||(this.En(xn),this.Mn(xn))}Mn(xn){var En=xn.filter((Nn=>{var Tn,$n;return((Tn=Nn.conditions)==null?void 0:Tn.actions)&&(($n=Nn.conditions)==null||($n=$n.actions)==null||($n=$n.values)==null?void 0:$n.length)>0}));En.length!==0&&(this.Pn==null&&(this.Pn=new Va(this._instance),this.Pn.init(),this.Pn.pn((Nn=>{this.onAction(Nn)}))),En.forEach((Nn=>{var Tn,$n,kl,xl,Nl;Nn.conditions&&(Tn=Nn.conditions)!=null&&Tn.actions&&($n=Nn.conditions)!=null&&($n=$n.actions)!=null&&$n.values&&((kl=Nn.conditions)==null||(kl=kl.actions)==null||(kl=kl.values)==null?void 0:kl.length)>0&&((xl=this.Pn)==null||xl.register(Nn.conditions.actions.values),(Nl=Nn.conditions)==null||(Nl=Nl.actions)==null||(Nl=Nl.values)==null||Nl.forEach((Rl=>{if(Rl&&Rl.name){var Fl=this.kn.get(Rl.name);Fl&&Fl.push(Nn.id),this.kn.set(Rl.name,Fl||[Nn.id])}})))})))}En(xn){var En,Nn=xn.filter(($n=>{var kl,xl;return((kl=$n.conditions)==null?void 0:kl.events)&&((xl=$n.conditions)==null||(xl=xl.events)==null||(xl=xl.values)==null?void 0:xl.length)>0})),Tn=xn.filter(($n=>{var kl,xl;return((kl=$n.conditions)==null?void 0:kl.cancelEvents)&&((xl=$n.conditions)==null||(xl=xl.cancelEvents)==null||(xl=xl.values)==null?void 0:xl.length)>0}));Nn.length===0&&Tn.length===0||((En=this._instance)==null||En._addCaptureHook((($n,kl)=>{this.onEvent($n,kl)})),this.wn=this.Cn(xn,bn.Activation),this.xn=this.Cn(xn,bn.Cancellation))}onEvent(xn,En){var Nn,Tn,$n=this.Rn(),kl=(En==null||(Nn=En.properties)==null?void 0:Nn.$survey_id)||(En==null||(Tn=En.properties)==null?void 0:Tn.$product_tour_id);if(kl&&this.getActivatedIds().includes(kl)){var xl=this.On(xn,kl);if(xl==="consume")return $n.info("event consumed activated item, removing it",{event:xn,itemId:kl}),void this.Ln([kl]);if(xl==="persist")return $n.info("shown item promoted to persisted activation",{event:xn,itemId:kl}),void this.Fn(kl)}if(this.xn.has(xn)){var Nl=this.In(xn,En,bn.Cancellation);Nl.length>0&&($n.info("cancel event matched, cancelling items",{event:xn,itemsToCancel:Nl.map((Fl=>Fl.id))}),this.Ln(Nl.map((Fl=>Fl.id))),Nl.forEach((Fl=>this.An(Fl.id))))}if(this.wn.has(xn)){$n.info("event name matched",{event:xn,eventPayload:En,items:this.wn.get(xn)});var Rl=this.In(xn,En,bn.Activation);this.$n(Rl.map((Fl=>Fl.id)))}}onAction(xn){this.kn.has(xn)&&this.$n(this.kn.get(xn)||[])}$n(xn){xn.length!==0&&(this._n=[...new Set([...this._n,...xn])],this.Rn().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Fn(xn){this._n=this._n.filter((Nn=>Nn!==xn));var En=this.Dn();En.includes(xn)||this.Nn([...En,xn])}Ln(xn){var En=new Set(xn);this._n=this._n.filter(($n=>!En.has($n)));var Nn=this.Dn(),Tn=Nn.filter(($n=>!En.has($n)));Tn.length!==Nn.length&&this.Nn(Tn)}Dn(){var xn,En=this.qn();return((xn=this._instance)==null||(xn=xn.persistence)==null?void 0:xn.props[En])||[]}getActivatedIds(){return[...new Set([...this.Dn(),...this._n])].filter((xn=>!this.Bn(xn)))}reset(){this._n=[],this.Dn().length>0&&this.Nn([])}getEventToItemsMap(){return this.wn}jn(){return this.Pn}}class Wa extends Ga{constructor(xn){super(xn)}qn(){return Gi}Hn(){return Rn.SHOWN}Tn(xn){var En;(En=this._instance)==null||En.getSurveys(xn)}An(xn){var En;(En=this._instance)==null||En.cancelPendingSurvey(xn)}Rn(){return Xo}Nn(xn){var En;(En=this._instance)==null||(En=En.persistence)==null||En.register({[Gi]:xn})}Bn(){return!1}On(xn,En){var Nn;this.Tn(($n=>{Nn=$n.find((kl=>kl.id===En))}));var Tn=!Nn||(function($n){var kl,xl,Nl,Rl=((kl=(xl=$n.conditions)==null||(xl=xl.events)==null||(xl=xl.values)==null?void 0:xl.length)!==null&&kl!==void 0?kl:0)>0;return $n.schedule===kn.Always||!((Nl=$n.conditions)==null||(Nl=Nl.events)==null||!Nl.repeatedActivation||!Rl)})(Nn);return Tn?xn===Rn.SHOWN?"consume":"ignore":xn===Rn.SHOWN?"persist":xn===Rn.DISMISSED||xn===Rn.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var Ya="SDK is not enabled or survey functionality is not yet loaded",Ka="Disabled. Not loading surveys.",Ja=t!=null&&t.location?Zs(t.location.hash,"__posthog")||Zs(location.hash,"state"):null,Qa="_postHogToolbarParams",Xa=ui("[Toolbar]"),Za=ui("[FeatureFlags]"),tl=ui("[FeatureFlags]",{debugEnabled:!0}),el=`" failed. Feature flags didn't load in time.`,il=$=>{for(var xn={},En=0;$.length>En;En++)xn[$[En]]=!0;return xn},rl=$=>{var xn={};for(var[En,Nn]of Tr($||{}))Nn&&(xn[En]=Nn);return xn},sl=ui("[Error tracking]"),nl="Refusing to render web experiment since the viewer is a likely bot",ol={icontains:($,xn)=>xn.toLowerCase().indexOf($.toLowerCase())>-1,not_icontains:($,xn)=>xn.toLowerCase().indexOf($.toLowerCase())===-1,regex:($,xn)=>Ho(xn,$),not_regex:($,xn)=>!Ho(xn,$),exact:($,xn)=>xn===$,is_not:($,xn)=>xn!==$};class al{get Se(){return this._instance.config}constructor(xn){var En=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(Nn){Nn===void 0&&(Nn=!1),En.getWebExperiments((Tn=>{al.Un("retrieved web experiments from the server"),En.zn=new Map,Tn.forEach(($n=>{if($n.feature_flag_key){var kl;En.zn&&(al.Un("setting flag key ",$n.feature_flag_key," to web experiment ",$n),(kl=En.zn)==null||kl.set($n.feature_flag_key,$n));var xl=En._instance.getFeatureFlag($n.feature_flag_key);G(xl)&&$n.variants[xl]&&En.Vn($n.name,xl,$n.variants[xl].transforms)}else if($n.variants)for(var Nl in $n.variants){var Rl=$n.variants[Nl];al.Wn(Rl,En._instance)&&En.Vn($n.name,Nl,Rl.transforms)}}))}),Nn)},this._instance=xn,this._instance.onFeatureFlags((Nn=>{this.onFeatureFlags(Nn)}))}initialize(){}onFeatureFlags(xn){if(this._is_bot())al.Un(nl);else if(!this.Se.disable_web_experiments){if(K(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();al.Un("applying feature flags",xn),xn.forEach((En=>{var Nn;if(this.zn&&(Nn=this.zn)!=null&&Nn.has(En)){var Tn,$n=this._instance.getFeatureFlag(En),kl=(Tn=this.zn)==null?void 0:Tn.get(En);$n&&kl!=null&&kl.variants[$n]&&this.Vn(kl.name,$n,kl.variants[$n].transforms)}}))}}previewWebExperiment(){var xn=al.getWindowLocation();if(xn!=null&&xn.search){var En=Qs(xn?.search,"__experiment_id"),Nn=Qs(xn?.search,"__experiment_variant");En&&Nn&&(al.Un("previewing web experiments "+En+" && "+Nn),this.getWebExperiments((Tn=>{this.Gn(parseInt(En),Nn,Tn)}),!1,!0))}}loadIfEnabled(){this.Se.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(xn,En,Nn){if(this.Se.disable_web_experiments&&!Nn)return xn([]);var Tn=this._instance.get_property("$web_experiments");if(Tn&&!En)return xn(Tn);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Se.token),method:"GET",callback:$n=>xn($n.statusCode===200&&$n.json&&$n.json.experiments||[])})}Gn(xn,En,Nn){var Tn=Nn.filter(($n=>$n.id===xn));Tn&&Tn.length>0&&(al.Un("Previewing web experiment ["+Tn[0].name+"] with variant ["+En+"]"),this.Vn(Tn[0].name,En,Tn[0].variants[En].transforms))}static Wn(xn,En){return!K(xn.conditions)&&al.Zn(xn,En)&&al.Qn(xn)}static Zn(xn,En){var Nn;if(K(xn.conditions)||K((Nn=xn.conditions)==null?void 0:Nn.url))return!0;var Tn=al.getWindowLocation();if(Tn){var $n,kl,xl,Nl=Qr(En,Tn.href);return($n=xn.conditions)==null||!$n.url||ol[(kl=(xl=xn.conditions)==null?void 0:xl.urlMatchType)!==null&&kl!==void 0?kl:"icontains"](xn.conditions.url,Nl)}return!1}static getWindowLocation(){return t?.location}static Qn(xn){var En;if(K(xn.conditions)||K((En=xn.conditions)==null?void 0:En.utm))return!0;var Nn=on();if(Nn.utm_source){var Tn,$n,kl,xl,Nl,Rl,Fl,Al,Tl=(Tn=xn.conditions)==null||(Tn=Tn.utm)==null||!Tn.utm_campaign||(($n=xn.conditions)==null||($n=$n.utm)==null?void 0:$n.utm_campaign)==Nn.utm_campaign,Cl=(kl=xn.conditions)==null||(kl=kl.utm)==null||!kl.utm_source||((xl=xn.conditions)==null||(xl=xl.utm)==null?void 0:xl.utm_source)==Nn.utm_source,Il=(Nl=xn.conditions)==null||(Nl=Nl.utm)==null||!Nl.utm_medium||((Rl=xn.conditions)==null||(Rl=Rl.utm)==null?void 0:Rl.utm_medium)==Nn.utm_medium,Ml=(Fl=xn.conditions)==null||(Fl=Fl.utm)==null||!Fl.utm_term||((Al=xn.conditions)==null||(Al=Al.utm)==null?void 0:Al.utm_term)==Nn.utm_term;return Tl&&Il&&Ml&&Cl}return!1}static Un(xn){for(var En=arguments.length,Nn=new Array(En>1?En-1:0),Tn=1;En>Tn;Tn++)Nn[Tn-1]=arguments[Tn];li.info("[WebExperiments] "+xn,Nn)}Vn(xn,En,Nn){this._is_bot()?al.Un(nl):En!=="control"?Nn.forEach((Tn=>{if(Tn.selector){var $n;al.Un("applying transform of variant "+En+" for experiment "+xn+" ",Tn);var kl=($n=document)==null?void 0:$n.querySelectorAll(Tn.selector);kl?.forEach((xl=>{var Nl=xl;Tn.html&&(Nl.innerHTML=Tn.html),Tn.css&&Nl.setAttribute("style",Tn.css)}))}})):al.Un("Control variants leave the page unmodified.")}_is_bot(){return i&&this._instance?Bo(i,this.Se.custom_blocked_useragents):void 0}}var ll=ui("[Conversations]"),ul="Conversations not available yet.",hl="console",dl={featureFlags:class{constructor($){this.Jn=!1,this.Yn=!1,this.Kn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this._instance=$,this.featureFlagEventHandlers=[]}get Se(){return this._instance.config}get zr(){return this._instance.persistence}ss($){return this._instance.get_property($)}os(){var $,xn;return($=(xn=this.zr)==null?void 0:xn.Gt(this.Se.feature_flag_cache_ttl_ms))!==null&&$!==void 0&&$}ls(){return!!this.os()&&(this.ns||this.Kn||(this.ns=!0,Za.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}us(){var $,xn=($=this.Se.evaluation_contexts)!==null&&$!==void 0?$:this.Se.evaluation_environments;return!this.Se.evaluation_environments||this.Se.evaluation_contexts||this.rs||(Za.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.rs=!0),xn!=null&&xn.length?xn.filter((En=>{var Nn=En&&typeof En=="string"&&En.trim().length>0;return Nn||Za.error("Invalid evaluation context found:",En,"Expected non-empty string"),Nn})):[]}hs(){return this.us().length>0}ds(){var $=this.Se.flag_keys;if(!V$1($)){if(B($))return $.filter((xn=>{var En=xn&&typeof xn=="string"&&xn.trim().length>0;return En||Za.error("Invalid flag key found:",xn,"Expected non-empty string"),En}));Za.error("Invalid flag_keys found:",$,"Expected array of non-empty strings")}}initialize(){var $,xn,{config:En}=this._instance,Nn=($=(xn=En.bootstrap)==null?void 0:xn.featureFlags)!==null&&$!==void 0?$:{};if(Object.keys(Nn).length){var Tn,$n,kl=(Tn=($n=En.bootstrap)==null?void 0:$n.featureFlagPayloads)!==null&&Tn!==void 0?Tn:{},xl=Object.keys(Nn).filter((Rl=>!!Nn[Rl])).reduce(((Rl,Fl)=>(Rl[Fl]=Nn[Fl]||!1,Rl)),{}),Nl=Object.keys(kl).filter((Rl=>xl[Rl])).reduce(((Rl,Fl)=>(kl[Fl]&&(Rl[Fl]=kl[Fl]),Rl)),{});this.receivedFeatureFlags({featureFlags:xl,featureFlagPayloads:Nl})}}updateFlags($,xn,En){var Nn,Tn,$n=En!=null&&En.merge&&(Nn=this.ss(Fi))!==null&&Nn!==void 0?Nn:{},kl=En!=null&&En.merge&&(Tn=this.ss(Ni))!==null&&Tn!==void 0?Tn:{},xl=f({},$n,$),Nl=f({},kl,xn),Rl={};for(var[Fl,Al]of Object.entries(xl))Rl[Fl]={key:Fl,enabled:m(Al),variant:y(Al),reason:void 0,metadata:V$1(Nl?.[Fl])?void 0:{id:0,version:void 0,description:void 0,payload:Nl[Fl]}};this.receivedFeatureFlags({flags:Rl})}get hasLoadedFlags(){return this.Yn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var $=this.ss(Li),xn=this.ss(ji),En=this.ss(Bi);if(!En&&!xn)return $||{};var Nn=Sr({},$||{}),Tn=[...new Set([...Object.keys(En||{}),...Object.keys(xn||{})])];for(var $n of Tn){var kl,xl,Nl=Nn[$n],Rl=xn?.[$n],Fl=V$1(Rl)?(kl=Nl?.enabled)!==null&&kl!==void 0&&kl:!!Rl,Al=V$1(Rl)?Nl.variant:typeof Rl=="string"?Rl:void 0,Tl=En?.[$n],Cl=f({},Nl,{enabled:Fl,variant:Fl?Al??Nl?.variant:void 0});Fl!==Nl?.enabled&&(Cl.original_enabled=Nl?.enabled),Al!==Nl?.variant&&(Cl.original_variant=Nl?.variant),Tl&&(Cl.metadata=f({},Nl?.metadata,{payload:Tl,original_payload:Nl==null||(xl=Nl.metadata)==null?void 0:xl.payload})),Nn[$n]=Cl}return this.Jn||(Za.warn(" Overriding feature flag details!",{flagDetails:$,overriddenPayloads:En,finalDetails:Nn}),this.Jn=!0),Nn}getAllFeatureFlags(){var $=this.getFlagVariants(),xn=this.getFlagPayloads();return Object.keys($).map((En=>{var Nn=$[En];return{key:En,enabled:m(Nn),variant:y(Nn),payload:g(xn[En])}}))}getFlagVariants(){var $=this.ss(Fi),xn=this.ss(ji);if(!xn)return $||{};for(var En=Sr({},$),Nn=Object.keys(xn),Tn=0;Nn.length>Tn;Tn++)En[Nn[Tn]]=xn[Nn[Tn]];return this.Jn||(Za.warn(" Overriding feature flags!",{enabledFlags:$,overriddenFlags:xn,finalFlags:En}),this.Jn=!0),En}getFlagPayloads(){var $=this.ss(Ni),xn=this.ss(Bi);if(!xn)return $||{};for(var En=Sr({},$||{}),Nn=Object.keys(xn),Tn=0;Nn.length>Tn;Tn++)En[Nn[Tn]]=xn[Nn[Tn]];return this.Jn||(Za.warn(" Overriding feature flag payloads!",{flagPayloads:$,overriddenPayloads:xn,finalPayloads:En}),this.Jn=!0),En}reloadFeatureFlags(){this.Xn||this.Se.advanced_disable_feature_flags||this.cs||(this._instance.Ti.emit("featureFlagsReloading",!0),this.cs=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.cs),this.cs=void 0}ensureFlagsLoaded(){this.Yn||this.Kn||this.cs||this.reloadFeatureFlags()}setAnonymousDistinctId($){this.$anon_distinct_id=$}setReloadingPaused($){this.Xn=$}vs($){var xn;if(this.fs(),!this._instance.mr())if(this.Kn)this.es=!0;else{var En=this.Se.token,Nn=this.ss(ci),Tn={token:En,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:f({},((xn=this.zr)==null?void 0:xn.get_initial_props())||{},this.ss(zi)||{}),group_properties:this.ss(Hi),timezone:pn()};Y(Nn)||V$1(Nn)||(Tn.$device_id=Nn),($!=null&&$.disableFlags||this.Se.advanced_disable_feature_flags)&&(Tn.disable_flags=!0),this.hs()&&(Tn.evaluation_contexts=this.us());var $n=this.ds();V$1($n)||(Tn.flag_keys=$n);var kl=!!this.Se.advanced_only_evaluate_survey_feature_flags,xl=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Se.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Kn=!0,this._instance._send_request({method:"POST",url:xl,data:Tn,compression:this.Se.disable_compression?void 0:Un.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback:Nl=>{var Rl,Fl,Al,Tl=!0;if(Nl.statusCode===200&&(this.es||(this.$anon_distinct_id=void 0),Tl=!1),this.Kn=!1,!Tn.disable_flags||this.es){this.ts=!Tl;var Cl=[];Nl.error?Nl.error instanceof Error?Cl.push(Nl.error.name==="AbortError"?"timeout":"connection_error"):Cl.push("unknown_error"):Nl.statusCode!==200&&Cl.push("api_error_"+Nl.statusCode),(Rl=Nl.json)!=null&&Rl.errorsWhileComputingFlags&&Cl.push("errors_while_computing_flags");var Il,Ml=!((Fl=Nl.json)==null||(Fl=Fl.quotaLimited)==null||!Fl.includes("feature_flags"));Ml&&Cl.push("quota_limited"),(Al=this.zr)==null||Al.register({[Ji]:Cl}),Ml?Za.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(Tn.disable_flags||this.receivedFeatureFlags((Il=Nl.json)!==null&&Il!==void 0?Il:{},Tl,{partialResponse:kl}),this.es&&(this.es=!1,this.vs()))}}})}}getFeatureFlag($,xn){var En;if(xn===void 0&&(xn={}),!xn.fresh||this.ts)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var Nn=this.getFeatureFlagResult($,xn);return(En=Nn?.variant)!==null&&En!==void 0?En:Nn?.enabled}}else Za.warn('getFeatureFlag for key "'+$+el)}getFeatureFlagDetails($){return this.getFlagsWithDetails()[$]}getFeatureFlagPayload($){var xn=this.getFeatureFlagResult($,{send_event:!1});return xn?.payload}getFeatureFlagResult($,xn){if(xn===void 0&&(xn={}),!xn.fresh||this.ts)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var En=this.getFlagVariants(),Nn=$ in En,Tn=En[$],$n=this.getFlagPayloads()[$],kl=String(Tn),xl=this.ss(Ui)||void 0,Nl=this.ss(Qi)||void 0,Rl=this.ss(Yi)||{};if(this.Se.advanced_feature_flags_dedup_per_session){var Fl,Al=this._instance.get_session_id(),Tl=this.ss(Ki);Al&&Al!==Tl&&(Rl={},(Fl=this.zr)==null||Fl.register({[Yi]:Rl,[Ki]:Al}))}if((xn.send_event||!("send_event"in xn))&&(!($ in Rl)||!Rl[$].includes(kl))){var Cl,Il,Ml,Dl,Ll,$l,Vl,Bl,zl,Ul;B(Rl[$])?Rl[$].push(kl):Rl[$]=[kl],(Cl=this.zr)==null||Cl.register({[Yi]:Rl});var Gl=this.getFeatureFlagDetails($),ql=[...(Il=this.ss(Ji))!==null&&Il!==void 0?Il:[]];V$1(Tn)&&ql.push("flag_missing");var Kl={$feature_flag:$,$feature_flag_response:Tn,$feature_flag_payload:$n||null,$feature_flag_request_id:xl,$feature_flag_evaluated_at:Nl,$feature_flag_bootstrapped_response:((Ml=this.Se.bootstrap)==null||(Ml=Ml.featureFlags)==null?void 0:Ml[$])||null,$feature_flag_bootstrapped_payload:((Dl=this.Se.bootstrap)==null||(Dl=Dl.featureFlagPayloads)==null?void 0:Dl[$])||null,$used_bootstrap_value:!this.ts};V$1(Gl==null||(Ll=Gl.metadata)==null?void 0:Ll.version)||(Kl.$feature_flag_version=Gl.metadata.version);var Jl,tu=($l=Gl==null||(Vl=Gl.reason)==null?void 0:Vl.description)!==null&&$l!==void 0?$l:Gl==null||(Bl=Gl.reason)==null?void 0:Bl.code;tu&&(Kl.$feature_flag_reason=tu),Gl!=null&&(zl=Gl.metadata)!=null&&zl.id&&(Kl.$feature_flag_id=Gl.metadata.id),V$1(Gl?.original_variant)&&V$1(Gl?.original_enabled)||(Kl.$feature_flag_original_response=V$1(Gl.original_variant)?Gl.original_enabled:Gl.original_variant),Gl!=null&&(Ul=Gl.metadata)!=null&&Ul.original_payload&&(Kl.$feature_flag_original_payload=Gl==null||(Jl=Gl.metadata)==null?void 0:Jl.original_payload),ql.length&&(Kl.$feature_flag_error=ql.join(",")),this._instance.capture("$feature_flag_called",Kl)}if(Nn)return{key:$,enabled:!!Tn,variant:typeof Tn=="string"?Tn:void 0,payload:g($n)}}}else Za.warn('getFeatureFlagResult for key "'+$+el)}getRemoteConfigPayload($,xn){var En=this.Se.token,Nn={distinct_id:this._instance.get_distinct_id(),token:En};this.hs()&&(Nn.evaluation_contexts=this.us());var Tn=this.ds();V$1(Tn)||(Nn.flag_keys=Tn),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:Nn,compression:this.Se.disable_compression?void 0:Un.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback($n){var kl,xl=(kl=$n.json)==null?void 0:kl.featureFlagPayloads;xn(xl?.[$]||void 0)}})}isFeatureEnabled($,xn){if(xn===void 0&&(xn={}),!xn.fresh||this.ts){if(this.Yn||this.getFlags()&&this.getFlags().length>0){var En=this.getFeatureFlag($,xn);return V$1(En)?void 0:!!En}Za.warn('isFeatureEnabled for key "'+$+el)}}addFeatureFlagsHandler($){this.featureFlagEventHandlers.push($)}removeFeatureFlagsHandler($){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((xn=>xn!==$))}receivedFeatureFlags($,xn,En){if(this.zr){this.Yn=!0;var Nn=this.getFlagVariants(),Tn=this.getFlagPayloads(),$n=this.getFlagsWithDetails();(function(kl,xl,Nl,Rl,Fl,Al){Nl===void 0&&(Nl={}),Rl===void 0&&(Rl={}),Fl===void 0&&(Fl={});var Tl=(ql=>{var Kl=ql.flags;return Kl?(ql.featureFlags=Object.fromEntries(Object.keys(Kl).map((Jl=>{var tu;return[Jl,(tu=Kl[Jl].variant)!==null&&tu!==void 0?tu:Kl[Jl].enabled]}))),ql.featureFlagPayloads=Object.fromEntries(Object.keys(Kl).filter((Jl=>Kl[Jl].enabled)).filter((Jl=>{var tu;return(tu=Kl[Jl].metadata)==null?void 0:tu.payload})).map((Jl=>{var tu;return[Jl,(tu=Kl[Jl].metadata)==null?void 0:tu.payload]})))):ql.featureFlags&&Za.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),ql})(kl),Cl=Tl.flags,Il=Tl.featureFlags,Ml=Tl.featureFlagPayloads;if(Il){var Dl=kl.requestId,Ll=kl.evaluatedAt;if(B(Il)){Za.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var $l={};if(Il)for(var Vl=0;Il.length>Vl;Vl++)$l[Il[Vl]]=!0;xl&&xl.register({[Mi]:Il,[Fi]:$l})}else{var Bl=Il,zl=Ml,Ul=Cl;if(Al!=null&&Al.partialResponse)Bl=f({},Nl,Bl),zl=f({},Rl,zl),Ul=f({},Fl,Ul);else if(kl.errorsWhileComputingFlags)if(Cl){var Gl=new Set(Object.keys(Cl).filter((ql=>{var Kl;return!((Kl=Cl[ql])!=null&&Kl.failed)})));Bl=f({},Nl,Object.fromEntries(Object.entries(Bl).filter((ql=>{var[Kl]=ql;return Gl.has(Kl)})))),zl=f({},Rl,Object.fromEntries(Object.entries(zl||{}).filter((ql=>{var[Kl]=ql;return Gl.has(Kl)})))),Ul=f({},Fl,Object.fromEntries(Object.entries(Ul||{}).filter((ql=>{var[Kl]=ql;return Gl.has(Kl)}))))}else Bl=f({},Nl,Bl),zl=f({},Rl,zl),Ul=f({},Fl,Ul);xl&&xl.register(f({[Mi]:Object.keys(rl(Bl)),[Fi]:Bl||{},[Ni]:zl||{},[Li]:Ul||{}},Dl?{[Ui]:Dl}:{},Ll?{[Qi]:Ll}:{}))}}})($,this.zr,Nn,Tn,$n,En),xn||(this.ns=!1),this.ps(xn)}}override($,xn){xn===void 0&&(xn=!1),Za.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:$,suppressWarning:xn})}overrideFeatureFlags($){if(!this._instance.__loaded||!this.zr)return Za.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if($===!1)return this.zr.unregister(ji),this.zr.unregister(Bi),this.ps(),tl.info("All overrides cleared");if(B($)){var xn=il($);return this.zr.register({[ji]:xn}),this.ps(),tl.info("Flag overrides set",{flags:$})}if($&&typeof $=="object"&&("flags"in $||"payloads"in $)){var En,Nn=$;if(this.Jn=!!((En=Nn.suppressWarning)!==null&&En!==void 0&&En),"flags"in Nn){if(Nn.flags===!1)this.zr.unregister(ji),tl.info("Flag overrides cleared");else if(Nn.flags){if(B(Nn.flags)){var Tn=il(Nn.flags);this.zr.register({[ji]:Tn})}else this.zr.register({[ji]:Nn.flags});tl.info("Flag overrides set",{flags:Nn.flags})}}return"payloads"in Nn&&(Nn.payloads===!1?(this.zr.unregister(Bi),tl.info("Payload overrides cleared")):Nn.payloads&&(this.zr.register({[Bi]:Nn.payloads}),tl.info("Payload overrides set",{payloads:Nn.payloads}))),void this.ps()}if($&&typeof $=="object")return this.zr.register({[ji]:$}),this.ps(),tl.info("Flag overrides set",{flags:$});Za.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:$})}onFeatureFlags($){if(this.addFeatureFlagsHandler($),this.Yn){var{flags:xn,flagVariants:En}=this.gs();try{$(xn,En)}catch(Nn){Za.error("Error while running feature flags callback",Nn)}}return()=>this.removeFeatureFlagsHandler($)}updateEarlyAccessFeatureEnrollment($,xn,En){var Nn,Tn=(this.ss(Di)||[]).find((Nl=>Nl.flagKey===$)),$n={["$feature_enrollment/"+$]:xn},kl={$feature_flag:$,$feature_enrollment:xn,$set:$n};Tn&&(kl.$early_access_feature_name=Tn.name),En&&(kl.$feature_enrollment_stage=En),this._instance.capture("$feature_enrollment_update",kl),this.setPersonPropertiesForFlags($n,!1);var xl=f({},this.getFlagVariants(),{[$]:xn});(Nn=this.zr)==null||Nn.register({[Mi]:Object.keys(rl(xl)),[Fi]:xl}),this.ps()}getEarlyAccessFeatures($,xn,En){xn===void 0&&(xn=!1);var Nn=this.ss(Di),Tn=En?"&"+En.map(($n=>"stage="+$n)).join("&"):"";if(Nn&&!xn)return $(Nn);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Se.token+Tn),method:"GET",callback:$n=>{var kl,xl;if($n.json){var Nl=$n.json.earlyAccessFeatures;return(kl=this.zr)==null||kl.unregister(Di),(xl=this.zr)==null||xl.register({[Di]:Nl}),$(Nl)}}})}gs(){var $=this.getFlags(),xn=this.getFlagVariants();return{flags:$.filter((En=>xn[En])),flagVariants:Object.keys(xn).filter((En=>xn[En])).reduce(((En,Nn)=>(En[Nn]=xn[Nn],En)),{})}}ps($){var{flags:xn,flagVariants:En}=this.gs();this.featureFlagEventHandlers.forEach((Nn=>{try{Nn(xn,En,{errorsLoading:$})}catch(Tn){Za.error("Error while running feature flags callback",Tn)}}))}setPersonPropertiesForFlags($,xn){xn===void 0&&(xn=!0);var En=this.ss(zi)||{},Nn=$?.$set||($!=null&&$.$set_once?{}:$),Tn=$?.$set_once,$n={};if(Tn)for(var kl in Tn)({}).hasOwnProperty.call(Tn,kl)&&(kl in En||($n[kl]=Tn[kl]));this._instance.register({[zi]:f({},En,$n,Nn)}),xn&&this._instance.reloadFeatureFlags()}unsetPersonPropertiesForFlags($,xn){xn===void 0&&(xn=!0);var En=f({},this.ss(zi)||{});$.forEach((Nn=>{delete En[Nn]})),this._instance.register({[zi]:En}),xn&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags($){$===void 0&&($=!0),this._instance.unregister(zi),$&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags($,xn){xn===void 0&&(xn=!0);var En=this.ss(Hi)||{};Object.keys(En).length!==0&&Object.keys(En).forEach((Nn=>{En[Nn]=f({},En[Nn],$[Nn]),delete $[Nn]})),this._instance.register({[Hi]:f({},En,$)}),xn&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags($){if($){var xn=this.ss(Hi)||{};this._instance.register({[Hi]:f({},xn,{[$]:{}})})}else this._instance.unregister(Hi)}reset(){this.Yn=!1,this.Kn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},vl={sessionRecording:class{get Se(){return this._instance.config}get zr(){return this._instance.persistence}get started(){var $;return!(($=this.ys)==null||!$.isStarted)}get status(){var $,xn;return this.bs===Aa||this.bs===Fa?this.bs:($=(xn=this.ys)==null?void 0:xn.status)!==null&&$!==void 0?$:this.bs}constructor($){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=Oa,this._s=void 0,this._instance=$,!this._instance.sessionManager)throw Da.error("started without valid sessionManager"),new Error(Ma+" started without valid sessionManager. This is a bug.");if(this.Se.cookieless_mode===vr)throw new Error(Ma+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var $,xn=!(($=this._instance.get_property($i))==null||!$.enabled),En=!this.Se.disable_session_recording,Nn=this.Se.disable_session_recording||this._instance.consent.isOptedOut();return t&&xn&&En&&!Nn}startIfEnabledOrStop($){var xn;if(!this.ws||(xn=this.ys)==null||!xn.isStarted){var En=!V$1(Object.assign)&&!V$1(Array.from);this.ws&&En?(this.xs($),Da.info("starting")):(this.bs=Oa,this.stopRecording())}}xs($){var xn,En,Nn;this.ws&&(this.bs!==Aa&&this.bs!==Fa&&(this.bs=Ca),h!=null&&(xn=h.__PosthogExtensions__)!=null&&(xn=xn.rrweb)!=null&&xn.record&&(En=h.__PosthogExtensions__)!=null&&En.initSessionRecording?this.ks($):(Nn=h.__PosthogExtensions__)==null||Nn.loadExternalDependency==null||Nn.loadExternalDependency(this._instance,this.Ss,(Tn=>{if(Tn)return Da.error("could not load recorder",Tn);this.ks($)})))}stopRecording(){var $,xn;($=this._s)==null||$.call(this),this._s=void 0,(xn=this.ys)==null||xn.stop()}Cs(){var $,xn;($=this._s)==null||$.call(this),this._s=void 0,(xn=this.ys)==null||xn.discard()}Is(){var $,xn;($=this.zr)==null||$.unregister(Ai),(xn=this.zr)==null||xn.unregister(ki)}Ts($,xn){if(K($))return null;var En,Nn=J($)?$:parseFloat($);return typeof(En=Nn)!="number"||!Number.isFinite(En)||0>En||En>1?(Da.warn(xn+" must be between 0 and 1. Ignoring invalid value:",$),null):Nn}Es($){if(this.zr){var xn,En,Nn=this.zr,Tn=()=>{var $n,kl=$.sessionRecording===!1?void 0:$.sessionRecording,xl=this.Ts(($n=this.Se.session_recording)==null?void 0:$n.sampleRate,"session_recording.sampleRate"),Nl=this.Ts(kl?.sampleRate,"remote config sampleRate"),Rl=xl??Nl;K(Rl)&&this.Is();var Fl=kl?.minimumDurationMilliseconds;Nn.register({[$i]:f({cache_timestamp:Date.now(),enabled:!!kl},kl,{networkPayloadCapture:f({capturePerformance:$.capturePerformance},kl?.networkPayloadCapture),canvasRecording:{enabled:kl?.recordCanvas,fps:kl?.canvasFps,quality:kl?.canvasQuality},sampleRate:Rl,minimumDurationMilliseconds:V$1(Fl)?null:Fl,endpoint:kl?.endpoint,triggerMatchType:kl?.triggerMatchType,masking:kl?.masking,urlTriggers:kl?.urlTriggers,version:kl?.version,triggerGroups:kl?.triggerGroups})})};Tn(),(xn=this._s)==null||xn.call(this),this._s=(En=this._instance.sessionManager)==null?void 0:En.onSessionId(Tn)}}onRemoteConfig($){return"sessionRecording"in $?$.sessionRecording===!1?(this.Es($),void this.Cs()):(this.Es($),void this.startIfEnabledOrStop()):(this.bs===Aa&&(this.bs=Fa,Da.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log($,xn){var En;xn===void 0&&(xn="log"),(En=this.ys)!=null&&En.log?this.ys.log($,xn):Da.warn("log called before recorder was ready")}get Ss(){var $,xn,En=($=this._instance)==null||($=$.persistence)==null?void 0:$.get_property($i);return(En==null||(xn=En.scriptConfig)==null?void 0:xn.script)||"lazy-recorder"}Ms(){var $,xn,En=this._instance.get_property($i);if(!En)return!1;try{xn=typeof En=="object"?En:JSON.parse(En)}catch(Tn){return Da.warn("persisted remote config for session recording is invalid and will be ignored",Tn),!1}var Nn=($=xn.cache_timestamp)!==null&&$!==void 0?$:Date.now();return 36e5>=Date.now()-Nn}ks($){var xn,En;if((xn=h.__PosthogExtensions__)==null||!xn.initSessionRecording)return Da.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[ur]:!0});if(this.ys||(this.ys=(En=h.__PosthogExtensions__)==null?void 0:En.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Ms())return this.bs===Fa||this.bs===Aa?void 0:(this.bs=Aa,Da.info("persisted remote config is stale, requesting fresh config before starting"),void new Ln(this._instance).load());this.bs=Ca,this.ys.start($)}onRRwebEmit($){var xn;(xn=this.ys)==null||xn.onRRwebEmit==null||xn.onRRwebEmit($)}overrideLinkedFlag(){var $,xn;this.ys||(xn=this.zr)==null||xn.register({[Pi]:!0}),($=this.ys)==null||$.overrideLinkedFlag()}overrideSampling(){var $,xn;this.ys||(xn=this.zr)==null||xn.register({[Ri]:!0}),($=this.ys)==null||$.overrideSampling()}overrideTrigger($){var xn,En;this.ys||(En=this.zr)==null||En.register({[$==="url"?Ii:Oi]:!0}),(xn=this.ys)==null||xn.overrideTrigger($)}get sdkDebugProperties(){var $;return(($=this.ys)==null?void 0:$.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent($,xn){var En;return!((En=this.ys)==null||!En.tryAddCustomEvent($,xn))}}},cl={autocapture:class{constructor($){this.Ps=!1,this.Rs=null,this.Os=!1,this.instance=$,this.rageclicks=new wa($.config.rageclick),this.Ls=null}initialize(){this.startIfEnabled()}get Se(){var $,xn,En=H(this.instance.config.autocapture)?this.instance.config.autocapture:{};return En.url_allowlist=($=En.url_allowlist)==null?void 0:$.map((Nn=>new RegExp(Nn))),En.url_ignorelist=(xn=En.url_ignorelist)==null?void 0:xn.map((Nn=>new RegExp(Nn))),En}Fs(){if(this.isBrowserSupported()){if(t&&r$1){var $=En=>{En=En||t?.event;try{this.As(En)}catch(Nn){xa.error("Failed to capture event",Nn)}};if(Or(r$1,"submit",$,{capture:!0}),Or(r$1,"change",$,{capture:!0}),Or(r$1,"click",$,{capture:!0}),this.Se.capture_copied_text){var xn=En=>{En=En||t?.event;try{this.As(En,Ea)}catch(Nn){xa.error("Failed to capture copy/cut event",Nn)}};Or(r$1,"copy",xn,{capture:!0}),Or(r$1,"cut",xn,{capture:!0})}}}else xa.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Ps&&(this.Fs(),this.Ps=!0)}onRemoteConfig($){$.elementsChainAsString&&(this.Os=$.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[gi]:!!$.autocapture_opt_out}),this.Rs=!!$.autocapture_opt_out,this.startIfEnabled()}setElementSelectors($){this.Ls=$}getElementSelectors($){var xn,En=[];return(xn=this.Ls)==null||xn.forEach((Nn=>{var Tn=r$1?.querySelectorAll(Nn);Tn?.forEach(($n=>{$===$n&&En.push(Nn)}))})),En}get isEnabled(){var $,xn,En=($=this.instance.persistence)==null?void 0:$.props[gi];if(Y(this.Rs)&&!X(En)&&!this.instance.mr())return!1;var Nn=(xn=this.Rs)!==null&&xn!==void 0?xn:!!En;return!!this.instance.config.autocapture&&!Nn}As($,xn){if(xn===void 0&&(xn="$autocapture"),this.isEnabled){var En,Nn=ds($);ss(Nn)&&(Nn=Nn.parentNode||null),xn==="$autocapture"&&$.type==="click"&&$ instanceof MouseEvent&&this.instance.config.rageclick&&(En=this.rageclicks)!=null&&En.isRageClick($.clientX,$.clientY,$.timeStamp||new Date().getTime())&&ws(Nn,this.instance.config.rageclick)&&this.As($,"$rageclick");var Tn=xn===Ea;if(Nn&&(function(Al,Tl,Cl,Il,Ml,Dl){var Ll,$l,Vl,Bl,zl,Ul;if(Cl===void 0&&(Cl=void 0),!t||Es(Al)||(Ll=Cl)!=null&&Ll.url_allowlist&&!as(Cl.url_allowlist,Dl)||($l=Cl)!=null&&$l.url_ignorelist&&as(Cl.url_ignorelist,Dl))return!1;if((Vl=Cl)!=null&&Vl.dom_event_allowlist){var Gl=Cl.dom_event_allowlist;if(Gl&&!Gl.some((ru=>Tl.type===ru)))return!1}var{parentIsUsefulElement:ql,targetElementList:Kl}=xs(Al,Il);if(!(function(ru,Yl){var cu=Yl?.element_allowlist;if(V$1(cu))return!0;var gu,_u=function(ou){if(cu.some((uu=>ou.tagName.toLowerCase()===uu)))return{v:!0}};for(var ku of ru)if(gu=_u(ku))return gu.v;return!1})(Kl,Cl)||!cs(Kl,(Bl=Cl)==null?void 0:Bl.css_selector_allowlist)||cs(Kl,(zl=(Ul=Cl)==null?void 0:Ul.css_selector_ignorelist)!==null&&zl!==void 0?zl:fs))return!1;try{var Jl=t.getComputedStyle(Al);if(Jl&&Jl.getPropertyValue("cursor")==="pointer"&&Tl.type==="click")return!0}catch{}var tu=Al.tagName.toLowerCase();switch(tu){case"html":return!1;case"form":return(Ml||["submit"]).indexOf(Tl.type)>=0;case"input":case"select":case"textarea":return(Ml||["change","click"]).indexOf(Tl.type)>=0;default:return ql?(Ml||["click"]).indexOf(Tl.type)>=0:(Ml||["click"]).indexOf(Tl.type)>=0&&(vs.indexOf(tu)>-1||Al.getAttribute("contenteditable")==="true")}})(Nn,$,this.Se,Tn,Tn?["copy","cut"]:void 0,this.instance)){var{props:$n,explicitNoCapture:kl}=$a(Nn,{e:$,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Se.element_attribute_ignorelist,elementsChainAsString:this.Os,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes});if(kl)return!1;var xl=this.getElementSelectors(Nn);if(xl&&xl.length>0&&($n.$element_selectors=xl),xn===Ea){var Nl,Rl=us(t==null||(Nl=t.getSelection())==null?void 0:Nl.toString()),Fl=$.type||"clipboard";if(!Rl)return!1;$n.$selected_content=Rl,$n.$copy_type=Fl}return this.instance.capture(xn,$n),!0}}}isBrowserSupported(){return z(r$1?.querySelectorAll)}},historyAutocapture:class{constructor($){var xn;this._instance=$,this.$s=(t==null||(xn=t.location)==null?void 0:xn.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(li.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,li.info("History API monitoring stopped")}monitorHistoryChanges(){t&&t.history&&(this.Ns("pushState"),this.Ns("replaceState"),this.qs())}Ns($){var xn;if(t&&((xn=t.history[$])==null||!xn.__posthog_wrapped__)){var En=this;(function(Nn,Tn,$n){try{if(!(Tn in Nn))return()=>{};var kl=Nn[Tn],xl=$n(kl);return z(xl)&&(xl.prototype=xl.prototype||{},Object.defineProperties(xl,{__posthog_wrapped__:{enumerable:!1,value:!0}})),Nn[Tn]=xl,()=>{Nn[Tn]===xl&&(Nn[Tn]=kl)}}catch{return()=>{}}})(t.history,$,(Nn=>function(Tn,$n,kl){Nn.call(this,Tn,$n,kl),En.Bs($)}))}}Bs($){try{var xn,En=t==null||(xn=t.location)==null?void 0:xn.pathname;if(!En)return;En!==this.$s&&this.isEnabled&&this._instance.capture(mr,{navigation_type:$}),this.$s=En}catch(Nn){li.error("Error capturing "+$+" pageview",Nn)}}qs(){if(!this.Ds){var $=()=>{this.Bs("popstate")};Or(t,"popstate",$),this.Ds=()=>{t&&t.removeEventListener("popstate",$)}}}},heatmaps:class{get Se(){return this.instance.config}constructor($){var xn;this.js=!1,this.Ps=!1,this.Hs=null,this.instance=$,this.js=!((xn=this.instance.persistence)==null||!xn.props[mi]),this.rageclicks=new wa($.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var $=5e3;return H(this.Se.capture_heatmaps)&&this.Se.capture_heatmaps.flush_interval_milliseconds&&($=this.Se.capture_heatmaps.flush_interval_milliseconds),$}get isEnabled(){return K(this.Se.capture_heatmaps)?K(this.Se.enable_heatmaps)?this.js:this.Se.enable_heatmaps:this.Se.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Ps)return;La.info("starting..."),this.Us(),this.ke()}else{var $;clearInterval(($=this.Hs)!==null&&$!==void 0?$:void 0),this.zs(),this.getAndClearBuffer()}}onRemoteConfig($){if("heatmaps"in $){var xn=!!$.heatmaps;this.instance.persistence&&this.instance.persistence.register({[mi]:xn}),this.js=xn,this.startIfEnabled()}}getAndClearBuffer(){var $=this.R;return this.R=void 0,$}Vs($){this.fe($.originalEvent,"deadclick")}ke(){this.Hs&&clearInterval(this.Hs),this.Hs=r$1?.visibilityState==="visible"?setInterval(this.Lr.bind(this),this.flushIntervalMilliseconds):null}Us(){t&&r$1&&(this.Ws=this.Lr.bind(this),Or(t,gr,this.Ws),this.Gs=$=>this.fe($||t?.event),Or(r$1,"click",this.Gs,{capture:!0}),this.Zs=$=>this.Qs($||t?.event),Or(r$1,"mousemove",this.Zs,{capture:!0}),this.Js=new js(this.instance,Ns,this.Vs.bind(this)),this.Js.startIfEnabledOrStop(),this.Ys=this.ke.bind(this),Or(r$1,_r,this.Ys),this.Ps=!0)}zs(){var $;t&&r$1&&(this.Ws&&t.removeEventListener(gr,this.Ws),this.Gs&&r$1.removeEventListener("click",this.Gs,{capture:!0}),this.Zs&&r$1.removeEventListener("mousemove",this.Zs,{capture:!0}),this.Ys&&r$1.removeEventListener(_r,this.Ys),clearTimeout(this.Ks),($=this.Js)==null||$.stop(),this.Ps=!1)}Xs($,xn){var En=this.instance.scrollManager.scrollY(),Nn=this.instance.scrollManager.scrollX(),Tn=this.instance.scrollManager.scrollElement(),$n=(function(kl,xl,Nl){for(var Rl=kl;Rl&&is$1(Rl)&&!rs(Rl,"body");){if(Rl===Nl)return!1;var Fl=void 0;try{var Al,Tl,Cl;Fl=(Al=(Tl=(Cl=Rl.ownerDocument)==null?void 0:Cl.defaultView)!==null&&Tl!==void 0?Tl:t)==null?void 0:Al.getComputedStyle(Rl).position}catch{return!1}if(M(xl,Fl))return!0;Rl=ps(Rl)}return!1})(ds($),["fixed","sticky"],Tn);return{x:$.clientX+($n?0:Nn),y:$.clientY+($n?0:En),target_fixed:$n,type:xn}}fe($,xn){var En;if(xn===void 0&&(xn="click"),!es($.target)&&Na($)){var Nn=this.Xs($,xn);(En=this.rageclicks)!=null&&En.isRageClick($.clientX,$.clientY,new Date().getTime())&&ws(ds($),this.instance.config.rageclick)&&this.eo(f({},Nn,{type:"rageclick"})),this.eo(Nn)}}Qs($){!es($.target)&&Na($)&&(clearTimeout(this.Ks),this.Ks=setTimeout((()=>{this.eo(this.Xs($,"mousemove"))}),500))}eo($){if(t){var xn=this.Se.disable_capture_url_hashes?_e(t.location.href):t.location.href,En=this.Se.custom_personal_data_properties,Nn=this.Se.mask_personal_data_properties?[...en,...En||[]]:[],Tn=Xs(xn,Nn,sn);this.R=this.R||{},this.R[Tn]||(this.R[Tn]=[]),this.R[Tn].push($)}}Lr(){this.R&&!q(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:js,webVitalsAutocapture:class{constructor($){var xn;this.js=!1,this.Ps=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.ro=()=>{clearTimeout(this.io),this.R.metrics.length!==0&&(this._instance.capture("$web_vitals",this.R.metrics.reduce(((En,Nn)=>f({},En,{["$web_vitals_"+Nn.name+"_event"]:f({},Nn),["$web_vitals_"+Nn.name+"_value"]:Nn.value})),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.no=En=>{var Nn;this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var Tn=this.so();if(!V$1(Tn))if(K(En?.name)||K(En?.value))Pa.error("Invalid metric received",En);else if(!this.oo||this.oo>En.value){this.R.url!==Tn&&(this.ro(),this.io=setTimeout(this.ro,this.flushToCaptureTimeoutMs)),V$1(this.R.url)&&(this.R.url=Tn),this.R.firstMetricTimestamp=V$1(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,En.attribution&&En.attribution.interactionTargetElement&&(En.attribution.interactionTargetElement=void 0);var $n=(Nn=this._instance.sessionManager)==null?void 0:Nn.checkAndGetSessionAndWindowId(!0),kl=f({},En,{$current_url:Tn,timestamp:Date.now()});V$1($n)||(kl.$session_id=$n.sessionId,kl.$window_id=$n.windowId),this.R.metrics.push(kl),this.R.metrics.length===this.allowedMetrics.length&&this.ro()}else Pa.error("Ignoring metric with value >= "+this.oo,En)},this.ao=()=>{if(!this.Ps){var En,Nn,Tn,$n,kl=h.__PosthogExtensions__;V$1(kl)||V$1(kl.postHogWebVitalsCallbacks)||({onLCP:En,onCLS:Nn,onFCP:Tn,onINP:$n}=kl.postHogWebVitalsCallbacks),En&&Nn&&Tn&&$n?(this.allowedMetrics.indexOf("LCP")>-1&&En(this.no.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&Nn(this.no.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&Tn(this.no.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&$n(this.no.bind(this)),this.Ps=!0):Pa.error("web vitals callbacks not loaded - not starting")}},this._instance=$,this.js=!((xn=this._instance.persistence)==null||!xn.props[Ei]),this.startIfEnabled()}get lo(){return this._instance.config.capture_performance}get allowedMetrics(){var $,xn,En=H(this.lo)?($=this.lo)==null?void 0:$.web_vitals_allowed_metrics:void 0;return K(En)?((xn=this._instance.persistence)==null?void 0:xn.props[Ti])||["CLS","FCP","INP","LCP"]:En}get flushToCaptureTimeoutMs(){return(H(this.lo)?this.lo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var $=H(this.lo)?this.lo.web_vitals_attribution:void 0;return $!=null&&$}get oo(){var $=H(this.lo)&&J(this.lo.__web_vitals_max_value)?this.lo.__web_vitals_max_value:Ia;return $>0&&6e4>=$?Ia:$}get isEnabled(){var $=s?.protocol;if($!=="http:"&&$!=="https:")return Pa.info("Web Vitals are disabled on non-http/https protocols"),!1;var xn=H(this.lo)?this.lo.web_vitals:X(this.lo)?this.lo:void 0;return X(xn)?xn:this.js}startIfEnabled(){this.isEnabled&&!this.Ps&&(Pa.info("enabled, starting..."),this.Mt(this.ao))}onRemoteConfig($){if("capturePerformance"in $){var xn=H($.capturePerformance)&&!!$.capturePerformance.web_vitals,En=H($.capturePerformance)?$.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Ei]:xn}),this._instance.persistence.register({[Ti]:En})),this.js=xn,this.startIfEnabled()}}Mt($){var xn,En;(xn=h.__PosthogExtensions__)!=null&&xn.postHogWebVitalsCallbacks?$():(En=h.__PosthogExtensions__)==null||En.loadExternalDependency==null||En.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(Nn=>{Nn?Pa.error("failed to load script",Nn):$()}))}so(){var $=t?this._instance.config.disable_capture_url_hashes?_e(t.location.href):t.location.href:void 0;if($){var xn=this._instance.config.custom_personal_data_properties,En=this._instance.config.mask_personal_data_properties?[...en,...xn||[]]:[];return Xs($,En,sn)}Pa.error("Could not determine current URL")}}},pl={exceptionObserver:class{constructor($){var xn,En,Nn;this.ao=()=>{var Tn;if(t&&this.isEnabled&&(Tn=h.__PosthogExtensions__)!=null&&Tn.errorWrappingFunctions){var $n=h.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,kl=h.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,xl=h.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.uo&&this.Se.capture_unhandled_errors&&(this.uo=$n(this.captureException.bind(this))),!this.ho&&this.Se.capture_unhandled_rejections&&(this.ho=kl(this.captureException.bind(this))),!this.do&&this.Se.capture_console_errors&&(this.do=xl(this.captureException.bind(this)))}catch(Nl){ka.error("failed to start",Nl),this.co()}}},this._instance=$,this.vo=!((xn=this._instance.persistence)==null||!xn.props[yi]),this.fo=new ut({refillRate:(En=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&En!==void 0?En:1,bucketSize:(Nn=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&Nn!==void 0?Nn:10,refillInterval:1e4,Ae:ka}),this.Se=this.po(),this.startIfEnabledOrStop()}po(){var $=this._instance.config.capture_exceptions,xn={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return H($)?xn=f({},xn,$):(V$1($)?this.vo:$)&&(xn=f({},xn,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),xn}get isEnabled(){return this.Se.capture_console_errors||this.Se.capture_unhandled_errors||this.Se.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(ka.info("enabled"),this.co(),this.Mt(this.ao)):this.co()}Mt($){var xn,En;(xn=h.__PosthogExtensions__)!=null&&xn.errorWrappingFunctions?$():(En=h.__PosthogExtensions__)==null||En.loadExternalDependency==null||En.loadExternalDependency(this._instance,"exception-autocapture",(Nn=>{if(Nn)return ka.error("failed to load script",Nn);$()}))}co(){var $,xn,En;($=this.uo)==null||$.call(this),this.uo=void 0,(xn=this.ho)==null||xn.call(this),this.ho=void 0,(En=this.do)==null||En.call(this),this.do=void 0}onRemoteConfig($){"autocaptureExceptions"in $&&(this.vo=!!$.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[yi]:this.vo}),this.Se=this.po(),this.startIfEnabledOrStop())}onConfigChange(){this.Se=this.po()}captureException($){var xn,En,Nn,Tn=(xn=$==null||(En=$.$exception_list)==null||(En=En[0])==null?void 0:En.type)!==null&&xn!==void 0?xn:"Exception";this.fo.consumeRateLimit(Tn)?ka.info("Skipping exception capture because of client rate limiting.",{exception:Tn}):(Nn=this._instance.exceptions)==null||Nn.sendExceptionEvent($)}},exceptions:class{constructor($){var xn,En;this.mo=[],this.yo=new Oe([new He,new Ze,new Ve,new qe,new Qe,new Je,new We,new Xe],(function(Nn){for(var Tn=arguments.length,$n=new Array(Tn>1?Tn-1:0),kl=1;Tn>kl;kl++)$n[kl-1]=arguments[kl];return function(xl,Nl){Nl===void 0&&(Nl=0);for(var Rl=[],Fl=xl.split(` `),Al=Nl;Fl.length>Al;Al++){var Tl=Fl[Al];if(1024>=Tl.length){var Cl=ze.test(Tl)?Tl.replace(ze,"$1"):Tl;if(!Cl.match(/\S*Error: /)){for(var Il of $n){var Ml=Il(Cl,Nn);if(Ml){Rl.push(Ml);break}}if(Rl.length>=50)break}}}return(function(Dl){if(!Dl.length)return[];var Ll=Array.from(Dl);return Ll.reverse(),Ll.slice(0,50).map(($l=>{return f({},$l,{filename:$l.filename||(Vl=Ll,Vl[Vl.length-1]||{}).filename,function:$l.function||Ce});var Vl}))})(Rl)}})("web:javascript",Ne,Be)),this._instance=$,this.mo=(xn=(En=this._instance.persistence)==null?void 0:En.get_property(bi))!==null&&xn!==void 0?xn:[],this.bo=si(this._o()),this.wo=new ni(this.bo)}onConfigChange(){this.bo=si(this._o()),this.wo.setConfig(this.bo)}onRemoteConfig($){var xn,En,Nn;if("errorTracking"in $){var Tn=(xn=(En=$.errorTracking)==null?void 0:En.suppressionRules)!==null&&xn!==void 0?xn:[],$n=(Nn=$.errorTracking)==null?void 0:Nn.captureExtensionExceptions;this.mo=Tn,this._instance.persistence&&this._instance.persistence.register({[bi]:this.mo,[wi]:$n})}}get xo(){var $,xn=!!this._instance.get_property(wi),En=this._instance.config.error_tracking.captureExtensionExceptions;return($=En??xn)!==null&&$!==void 0&&$}buildProperties($,xn){return this.yo.buildFromUnknown($,{syntheticException:xn?.syntheticException,mechanism:{handled:xn?.handled}})}addExceptionStep($,xn){if(this.bo.enabled)try{if(!G($)||$.trim().length===0)return void sl.warn("Ignoring exception step because message must be a non-empty string");var En=this.ko(xn),{sanitizedProperties:Nn,droppedKeys:Tn}=(function($n){if(!$n)return{sanitizedProperties:{},droppedKeys:[]};var kl=[];return{sanitizedProperties:Object.keys($n).reduce(((xl,Nl)=>ii.has(Nl)?(kl.push(Nl),xl):(xl[Nl]=$n[Nl],xl)),{}),droppedKeys:kl}})(En);Tn.length>0&&sl.warn("Ignoring reserved exception step fields",{droppedKeys:Tn}),this.wo.add(f({[ti]:$,[ei]:new Date().toISOString()},Nn))}catch($n){sl.error("Failed to add exception step. Ignoring breadcrumb.",$n)}}sendExceptionEvent($){try{var xn=$.$exception_list;if(this.So(xn)){if(this.Co(xn))return this.Io("Exception dropped: matched a suppression rule"),void sl.info("Skipping exception capture because a suppression rule matched");if(!this.xo&&this.To(xn))return this.Io("Exception dropped: thrown by a browser extension"),void sl.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Eo(xn))return this.Io("Exception dropped: thrown by the PostHog SDK"),void sl.info("Skipping exception capture because it was thrown by the PostHog SDK")}var En=this.bo.enabled&&K($.$exception_steps)?this.Mo($):$;try{var Nn=this._instance.capture("$exception",En,{_noTruncate:!0,_batchKey:"exceptionEvent",Zi:!0});return Nn&&this.wo.clear(),Nn}catch(Tn){return sl.error("Failed to capture exception event. Dropping this exception.",Tn),void this.wo.clear()}}catch(Tn){return void sl.error("Failed to process exception event. Ignoring this exception.",Tn)}}Mo($){try{var xn=this.wo.getAttachable();return xn.length===0?$:f({},$,{$exception_steps:xn})}catch(En){return sl.error("Failed to read buffered exception steps. Capturing exception without steps.",En),$}}Io($){this.bo.enabled&&this.wo.add({[ti]:$,[ei]:new Date().toISOString()})}ko($){return H($)?f({},$):{}}_o(){var $,xn;return($=(xn=this._instance.config.error_tracking)==null?void 0:xn.exception_steps)!==null&&$!==void 0?$:{}}Co($){if($.length===0)return!1;var xn=$.reduce(((En,Nn)=>{var{type:Tn,value:$n}=Nn;return G(Tn)&&Tn.length>0&&En.$exception_types.push(Tn),G($n)&&$n.length>0&&En.$exception_values.push($n),En}),{$exception_types:[],$exception_values:[]});return this.mo.some((En=>{var Nn=En.values.map((Tn=>{var $n,kl=Vo[Tn.operator],xl=B(Tn.value)?Tn.value:[Tn.value],Nl=($n=xn[Tn.key])!==null&&$n!==void 0?$n:[];return xl.length>0&&kl(xl,Nl)}));return En.type==="OR"?Nn.some(Boolean):Nn.every(Boolean)}))}To($){return $.flatMap((xn=>{var En,Nn;return(En=(Nn=xn.stacktrace)==null?void 0:Nn.frames)!==null&&En!==void 0?En:[]})).some((xn=>xn.filename&&xn.filename.startsWith("chrome-extension://")))}Eo($){if($.length>0){var xn,En,Nn,Tn,$n=(xn=(En=$[0].stacktrace)==null?void 0:En.frames)!==null&&xn!==void 0?xn:[],kl=$n[$n.length-1];return(Nn=kl==null||(Tn=kl.filename)==null?void 0:Tn.includes("posthog.com/static"))!==null&&Nn!==void 0&&Nn}return!1}So($){return!K($)&&B($)}}},fl=f({productTours:class{get zr(){return this._instance.persistence}constructor($){this.Po=null,this.Ro=null,this._instance=$}initialize(){this.loadIfEnabled()}onRemoteConfig($){if("productTours"in $){var xn,En;if(this.zr&&this.zr.register({[Si]:!!$.productTours}),!ja(this._instance))return!this.Po&&K((xn=this.zr)==null?void 0:xn.props[Wi])||Ua.info("product tours disabled; stopping and clearing cached tours"),(En=this.Po)==null||En.stop(),this.Po=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.Po&&ja(this._instance)&&this.Mt((()=>this.Oo()))}Mt($){var xn,En;(xn=h.__PosthogExtensions__)!=null&&xn.generateProductTours?$():(En=h.__PosthogExtensions__)==null||En.loadExternalDependency==null||En.loadExternalDependency(this._instance,"product-tours",(Nn=>{Nn?Ua.error("Could not load product tours script",Nn):$()}))}Oo(){var $;!this.Po&&($=h.__PosthogExtensions__)!=null&&$.generateProductTours&&(this.Po=h.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours($,xn){if(xn===void 0&&(xn=!1),!B(this.Ro)||xn){var En=this.zr;if(En){var Nn=En.props[Wi];if(B(Nn)&&!xn)return this.Ro=Nn,void $(Nn,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:Tn=>{if(ja(this._instance)){var $n=Tn.statusCode;if($n!==200||!Tn.json){var kl="Product Tours API could not be loaded, status: "+$n;return Ua.error(kl),void $([],{isLoaded:!1,error:kl})}var xl=B(Tn.json.product_tours)?Tn.json.product_tours:[];this.Ro=xl,En&&En.register({[Wi]:xl}),$(xl,{isLoaded:!0})}else $([],{isLoaded:!0})}})}else $(this.Ro,{isLoaded:!0})}getActiveProductTours($){K(this.Po)?$([],{isLoaded:!1,error:"Product tours not loaded"}):this.Po.getActiveProductTours($)}showProductTour($){var xn;(xn=this.Po)==null||xn.showTourById($)}previewTour($){this.Po?this.Po.previewTour($):this.Mt((()=>{var xn;this.Oo(),(xn=this.Po)==null||xn.previewTour($)}))}dismissProductTour(){var $;($=this.Po)==null||$.dismissTour("user_clicked_skip")}nextStep(){var $;($=this.Po)==null||$.nextStep()}previousStep(){var $;($=this.Po)==null||$.previousStep()}clearCache(){var $;this.Ro=null,($=this.zr)==null||$.unregister(Wi)}resetTour($){var xn;(xn=this.Po)==null||xn.resetTour($)}resetAllTours(){var $;($=this.Po)==null||$.resetAllTours()}cancelPendingTour($){var xn;(xn=this.Po)==null||xn.cancelPendingTour($)}}},dl),_l={siteApps:class{constructor($){this.Lo=0,this._instance=$,this.Fo=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ao($,xn){if(xn){var En=this.globalsForEvent(xn);this.Fo.push(En),this.Fo.length>1e3&&(this.Fo=this.Fo.slice(10))}}get siteAppLoaders(){var $;return($=h._POSTHOG_REMOTE_CONFIG)==null||($=$[this._instance.config.token])==null?void 0:$.siteApps}initialize(){if(this.isEnabled){var $=this._instance._addCaptureHook(this.Ao.bind(this));this.$o=()=>{$(),this.Fo=[],this.$o=void 0}}}globalsForEvent($){var xn,En,Nn,Tn,$n,kl,xl;if(!$)throw new Error("Event payload is required");var Nl={},Rl=this._instance.get_property("$groups")||[],Fl=this._instance.get_property("$stored_group_properties")||{};for(var[Al,Tl]of Object.entries(Fl))Nl[Al]={id:Rl[Al],type:Al,properties:Tl};var{$set_once:Cl,$set:Il}=$;return{event:f({},_($,Ba),{properties:f({},$.properties,Il?{$set:f({},(xn=(En=$.properties)==null?void 0:En.$set)!==null&&xn!==void 0?xn:{},Il)}:{},Cl?{$set_once:f({},(Nn=(Tn=$.properties)==null?void 0:Tn.$set_once)!==null&&Nn!==void 0?Nn:{},Cl)}:{}),elements_chain:($n=(kl=$.properties)==null?void 0:kl.$elements_chain)!==null&&$n!==void 0?$n:"",distinct_id:(xl=$.properties)==null?void 0:xl.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:Nl}}Do($){var xn,En=(xn=$.tagName)==null?void 0:xn.toLowerCase();return En==="style"&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet($)||(za.error("prepare_external_dependency_stylesheet returned null"),null):En==="script"&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script($)||(za.error("prepare_external_dependency_script returned null"),null):$}No(){var $,xn,En,Nn,Tn,$n,kl,xl;if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var Nl=r$1?.defaultView,Rl=Nl==null||($=Nl.Node)==null?void 0:$.prototype;if(!Nl||!Rl)return()=>{};if(this.Lo++,this.qo)return this.Bo();var Fl=[],Al=this,Tl=new WeakSet,Cl=(Dl,Ll,$l)=>{if(Dl!=null&&Dl[Ll]){var Vl=Dl[Ll];Dl[Ll]=$l(Vl),Fl.push((()=>{Dl[Ll]=Vl}))}},Il=Dl=>{if(Tl.has(Dl))return Dl;var Ll=Al.Do(Dl);return Ll&&Tl.add(Ll),Ll},Ml=Dl=>Dl.map((Ll=>typeof Ll=="string"?Ll:Il(Ll))).filter((Ll=>!Y(Ll)));return Cl(Rl,"appendChild",(Dl=>function(Ll){var $l=Il(Ll);return $l?Dl.call(this,$l):Ll})),Cl(Rl,"insertBefore",(Dl=>function(Ll,$l){var Vl=Il(Ll);return Vl?Dl.call(this,Vl,$l):Ll})),Cl(Rl,"replaceChild",(Dl=>function(Ll,$l){var Vl=Il(Ll);return Vl?Dl.call(this,Vl,$l):$l})),[(xn=Nl.Element)==null?void 0:xn.prototype,(En=Nl.Document)==null?void 0:En.prototype,(Nn=Nl.DocumentFragment)==null?void 0:Nn.prototype].forEach((Dl=>{Cl(Dl,"append",(Ll=>function(){for(var $l=arguments.length,Vl=new Array($l),Bl=0;$l>Bl;Bl++)Vl[Bl]=arguments[Bl];return Ll.apply(this,Ml(Vl))})),Cl(Dl,"prepend",(Ll=>function(){for(var $l=arguments.length,Vl=new Array($l),Bl=0;$l>Bl;Bl++)Vl[Bl]=arguments[Bl];return Ll.apply(this,Ml(Vl))}))})),[(Tn=Nl.Element)==null?void 0:Tn.prototype,($n=Nl.CharacterData)==null?void 0:$n.prototype,(kl=Nl.DocumentType)==null?void 0:kl.prototype].forEach((Dl=>{Cl(Dl,"before",(Ll=>function(){for(var $l=arguments.length,Vl=new Array($l),Bl=0;$l>Bl;Bl++)Vl[Bl]=arguments[Bl];return Ll.apply(this,Ml(Vl))})),Cl(Dl,"after",(Ll=>function(){for(var $l=arguments.length,Vl=new Array($l),Bl=0;$l>Bl;Bl++)Vl[Bl]=arguments[Bl];return Ll.apply(this,Ml(Vl))})),Cl(Dl,"replaceWith",(Ll=>function(){for(var $l=arguments.length,Vl=new Array($l),Bl=0;$l>Bl;Bl++)Vl[Bl]=arguments[Bl];var zl=Ml(Vl);return Vl.length&&!zl.length?void 0:Ll.apply(this,zl)}))})),Cl((xl=Nl.Element)==null?void 0:xl.prototype,"insertAdjacentElement",(Dl=>function(Ll,$l){var Vl=Il($l);return Vl?Dl.call(this,Ll,Vl):null})),this.qo=()=>{Fl.forEach((Dl=>Dl())),this.qo=void 0},this.Bo()}Bo(){var $=!1;return()=>{var xn;$||($=!0,this.Lo--,this.Lo===0&&((xn=this.qo)==null||xn.call(this)))}}jo($,xn){xn===void 0&&(xn=!0);var En=this.No();try{var Nn=$(En);return xn&&En(),Nn}catch(Tn){throw En(),Tn}}setupSiteApp($){var xn=this.apps[$.id],En=()=>{var kl;!xn.errored&&this.Fo.length&&(za.info("Processing "+this.Fo.length+" events for site app with id "+$.id),this.Fo.forEach((xl=>this.jo((()=>xn.processEvent==null?void 0:xn.processEvent(xl))))),xn.processedBuffer=!0),Object.values(this.apps).every((xl=>xl.processedBuffer||xl.errored))&&((kl=this.$o)==null||kl.call(this))},Nn=!1,Tn=kl=>{xn.errored=!kl,xn.loaded=!0,za.info("Site app with id "+$.id+" "+(kl?"loaded":"errored")),Nn&&En()};try{var{processEvent:$n}=this.jo((kl=>$.init({posthog:this._instance,callback(xl){kl(),Tn(xl)}})),!1);$n&&(xn.processEvent=$n),Nn=!0}catch(kl){za.error(Ha+$.id,kl),Tn(!1)}if(Nn&&xn.loaded)try{En()}catch(kl){za.error("Error while processing buffered events PostHog app with config id "+$.id,kl),xn.errored=!0}}Ho(){var $=this.siteAppLoaders||[];for(var xn of $)this.apps[xn.id]={id:xn.id,loaded:!1,errored:!1,processedBuffer:!1};for(var En of $)this.setupSiteApp(En)}Uo($){var xn=this;if(Object.keys(this.apps).length!==0){var En=this.globalsForEvent($),Nn=function($n){try{xn.jo((()=>$n.processEvent==null?void 0:$n.processEvent(En)))}catch(kl){za.error("Error while processing event "+$.event+" for site app "+$n.id,kl)}};for(var Tn of Object.values(this.apps))Nn(Tn)}}onRemoteConfig($){var xn,En,Nn,Tn=this;if((xn=this.siteAppLoaders)!=null&&xn.length)return this.isEnabled?(this.Ho(),void this._instance.on("eventCaptured",(Nl=>this.Uo(Nl)))):void za.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((En=this.$o)==null||En.call(this),(Nn=$.siteApps)!=null&&Nn.length)if(this.isEnabled){var $n=function(Nl){var Rl;h["__$$ph_site_app_"+Nl]=Tn._instance,(Rl=h.__PosthogExtensions__)==null||Rl.loadSiteApp==null||Rl.loadSiteApp(Tn._instance,xl,(Fl=>{if(Fl)return za.error(Ha+Nl,Fl)}))};for(var{id:kl,url:xl}of $.siteApps)$n(kl)}else za.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},gl={tracingHeaders:class{constructor($){this.zo=void 0,this.Vo=void 0,this.Wo=void 0,this.ao=()=>{var xn,En,Nn=this.Go();Nn?(V$1(this.zo)&&(this.zo=(xn=h.__PosthogExtensions__)==null||(xn=xn.tracingHeadersPatchFns)==null?void 0:xn._patchXHR(Nn,(()=>this._instance.get_distinct_id()),this._instance.sessionManager)),V$1(this.Vo)&&(this.Vo=(En=h.__PosthogExtensions__)==null||(En=En.tracingHeadersPatchFns)==null?void 0:En._patchFetch(Nn,(()=>this._instance.get_distinct_id()),this._instance.sessionManager))):this.co()},this._instance=$}initialize(){this.startIfEnabledOrStop()}Mt($){var xn,En;(xn=h.__PosthogExtensions__)!=null&&xn.tracingHeadersPatchFns?$():(En=h.__PosthogExtensions__)==null||En.loadExternalDependency==null||En.loadExternalDependency(this._instance,"tracing-headers",(Nn=>{if(Nn)return Ra.error("failed to load script",Nn);$()}))}Zo(){var $,xn;return($=(xn=this._instance.config.tracing_headers)!==null&&xn!==void 0?xn:this._instance.config.addTracingHeaders)!==null&&$!==void 0?$:this._instance.config.__add_tracing_headers}Go(){var $=this.Zo();return B($)?(B(this.Wo)?this.Wo.splice(0,this.Wo.length,...$):this.Wo=[...$],$.length>0?this.Wo:void 0):(B(this.Wo)&&this.Wo.splice(0),this.Wo=$||void 0,this.Wo)}co(){var $,xn;($=this.zo)==null||$.call(this),(xn=this.Vo)==null||xn.call(this),this.zo=void 0,this.Vo=void 0}startIfEnabledOrStop(){this.Go()?this.Mt(this.ao):this.co()}}},ml=f({surveys:class{get Se(){return this._instance.config}constructor($){this.Qo=void 0,this._surveyManager=null,this.Jo=!1,this.Yo=[],this.Ko=null,this.Xo=null,this._instance=$,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig($){if(!this.Se.disable_surveys){var xn=$.surveys;if(K(xn))return Xo.warn("Flags not loaded yet. Not loading surveys.");var En=B(xn);this.Qo=En?xn.length>0:xn,Xo.info("flags response received, isSurveysEnabled: "+this.Qo),this.loadIfEnabled()}}reset(){try{var $;($=this._surveyEventReceiver)==null||$.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var xn=[],En=0;EnlocalStorage.removeItem(Tn)))}catch{}}loadIfEnabled(){if(!this._surveyManager)if(this.Jo)Xo.info("Already initializing surveys, skipping...");else if(this.Se.disable_surveys)Xo.info(Ka);else if(this.Se.cookieless_mode&&this._instance.consent.isOptedOut())Xo.info("Not loading surveys in cookieless mode without consent.");else{var $=h?.__PosthogExtensions__;if($){if(!V$1(this.Qo)||this.Se.advanced_enable_surveys){var xn=this.Qo||this.Se.advanced_enable_surveys;this.Jo=!0;try{var En=$.generateSurveys;if(En)return void this.ea(En,xn);var Nn=$.loadExternalDependency;if(!Nn)return void this.ta(hr);Nn(this._instance,"surveys",(Tn=>{Tn||!$.generateSurveys?this.ta("Could not load surveys script",Tn):this.ea($.generateSurveys,xn)}))}catch(Tn){throw this.ta("Error initializing surveys",Tn),Tn}finally{this.Jo=!1}}}else Xo.error("PostHog Extensions not found.")}}ea($,xn){this._surveyManager=$(this._instance,xn),this._surveyEventReceiver=new Wa(this._instance),Xo.info("Surveys loaded successfully"),this.ra({isLoaded:!0})}ta($,xn){Xo.error($,xn),this.ra({isLoaded:!1,error:$})}onSurveysLoaded($){return this.Yo.push($),this._surveyManager&&this.ra({isLoaded:!0}),()=>{this.Yo=this.Yo.filter((xn=>xn!==$))}}getSurveys($,xn){if(xn===void 0&&(xn=!1),this.Se.disable_surveys)return Xo.info(Ka),$([]);var En,Nn=this._instance.get_property(qi);if(Nn&&!xn)return $(Nn,{isLoaded:!0}),void(this.ia()&&this.getSurveys((()=>{}),!0));typeof Promise<"u"&&this.Ko?this.Ko.then((Tn=>{var{surveys:$n,context:kl}=Tn;return $($n,kl)})):(typeof Promise<"u"&&(this.Ko=new Promise((Tn=>{En=Tn}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Se.token),method:"GET",timeout:this.Se.surveys_request_timeout_ms,callback:Tn=>{var $n;this.Ko=null;var kl=Tn.statusCode;if(kl!==200||!Tn.json){var xl="Surveys API could not be loaded, status: "+kl;Xo.error(xl),this.Xo=Date.now();var Nl={isLoaded:!1,error:xl};return $([],Nl),void(En==null||En({surveys:[],context:Nl}))}this.Xo=null;var Rl,Fl=Tn.json.surveys||[],Al=Fl.filter((Cl=>(function(Il){return!(!Il.start_date||Il.end_date)})(Cl)&&((function(Il){var Ml;return!((Ml=Il.conditions)==null||(Ml=Ml.events)==null||(Ml=Ml.values)==null||!Ml.length)})(Cl)||(function(Il){var Ml;return!((Ml=Il.conditions)==null||(Ml=Ml.actions)==null||(Ml=Ml.values)==null||!Ml.length)})(Cl))));Al.length>0&&((Rl=this._surveyEventReceiver)==null||Rl.register(Al)),($n=this._instance.persistence)==null||$n.register({[qi]:Fl,[Vi]:Date.now()});var Tl={isLoaded:!0};$(Fl,Tl),En?.({surveys:Fl,context:Tl})}}))}ia(){return this.na()&&!this.Ko&&!this.sa()}na(){var $=this._instance.get_property(Vi);return J($)&&Date.now()-$>3e5}sa(){return J(this.Xo)&&3e5>Date.now()-this.Xo}markSurveyAsSeen($,xn){var En,Nn={id:$,current_iteration:(En=xn?.iteration)!==null&&En!==void 0?En:null};ta(Nn);try{localStorage.setItem("lastSeenSurveyDate",new Date().toISOString())}catch{}}ra($){for(var xn of this.Yo)try{if(!$.isLoaded)return xn([],$);this.getSurveys(xn)}catch(En){Xo.error("Error in survey callback",En)}}getActiveMatchingSurveys($,xn){if(xn===void 0&&(xn=!1),!K(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys($,xn);Xo.warn("init was not called")}oa($){var xn=null;return this.getSurveys((En=>{var Nn;xn=(Nn=En.find((Tn=>Tn.id===$)))!==null&&Nn!==void 0?Nn:null})),xn}aa($){if(K(this._surveyManager))return{eligible:!1,reason:Ya};var xn=typeof $=="string"?this.oa($):$;return xn?this._surveyManager.checkSurveyEligibility(xn):{eligible:!1,reason:"Survey not found"}}canRenderSurvey($){if(K(this._surveyManager))return Xo.warn("init was not called"),{visible:!1,disabledReason:Ya};var xn=this.aa($);return{visible:xn.eligible,disabledReason:xn.reason}}canRenderSurveyAsync($,xn){return K(this._surveyManager)?(Xo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:Ya})):new Promise((En=>{this.getSurveys((Nn=>{var Tn,$n=(Tn=Nn.find((xl=>xl.id===$)))!==null&&Tn!==void 0?Tn:null;if($n){var kl=this.aa($n);En({visible:kl.eligible,disabledReason:kl.reason})}else En({visible:!1,disabledReason:"Survey not found"})}),xn)}))}renderSurvey($,xn,En){var Nn;if(K(this._surveyManager))Xo.warn("init was not called");else{var Tn=typeof $=="string"?this.oa($):$;if(Tn!=null&&Tn.id)if(ea.includes(Tn.type)){var $n=r$1?.querySelector(xn);if($n)return(Nn=Tn.appearance)!=null&&Nn.surveyPopupDelaySeconds?(Xo.info("Rendering survey "+Tn.id+" with delay of "+Tn.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var kl,xl;Xo.info("Rendering survey "+Tn.id+" with delay of "+((kl=Tn.appearance)==null?void 0:kl.surveyPopupDelaySeconds)+" seconds"),(xl=this._surveyManager)==null||xl.renderSurvey(Tn,$n,En),Xo.info("Survey "+Tn.id+" rendered")}),1e3*Tn.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(Tn,$n,En);Xo.warn("Survey element not found")}else Xo.warn("Surveys of type "+Tn.type+" cannot be rendered in the app");else Xo.warn("Survey not found")}}displaySurvey($,xn){var En;if(K(this._surveyManager))Xo.warn("init was not called");else{var Nn=this.oa($);if(Nn){var Tn=Nn;if((En=Nn.appearance)!=null&&En.surveyPopupDelaySeconds&&xn.ignoreDelay&&(Tn=f({},Nn,{appearance:f({},Nn.appearance,{surveyPopupDelaySeconds:0})})),xn.displayType!==In.Popover&&xn.initialResponses&&Xo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),xn.ignoreConditions===!1){var $n=this.canRenderSurvey(Nn);if(!$n.visible)return void Xo.warn("Survey is not eligible to be displayed: ",$n.disabledReason)}xn.displayType!==In.Inline?this._surveyManager.handlePopoverSurvey(Tn,xn):this.renderSurvey(Tn,xn.selector,xn.properties)}else Xo.warn("Survey not found")}}cancelPendingSurvey($){K(this._surveyManager)?Xo.warn("init was not called"):this._surveyManager.cancelSurvey($)}handlePageUnload(){var $;($=this._surveyManager)==null||$.handlePageUnload()}}},dl),yl={toolbar:class{constructor($){this.instance=$}la($){h.ph_toolbar_state=$}ua(){var $;return($=h.ph_toolbar_state)!==null&&$!==void 0?$:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar($,xn,En){if($===void 0&&($=void 0),xn===void 0&&(xn=void 0),En===void 0&&(En=void 0),Cr(this.instance.config)||!t||!r$1)return!1;$=$??t.location,En=En??t.history;try{if(!xn){try{t.localStorage.setItem("test","test"),t.localStorage.removeItem("test")}catch{return!1}xn=t?.localStorage}var Nn,Tn=Ja||Zs($.hash,"__posthog")||Zs($.hash,"state"),$n=Tn?$r((()=>JSON.parse(atob(decodeURIComponent(Tn)))))||$r((()=>JSON.parse(decodeURIComponent(Tn)))):null;return $n&&$n.action==="ph_authorize"?((Nn=$n).source="url",Nn&&Object.keys(Nn).length>0&&($n.desiredHash?$.hash=$n.desiredHash:En?En.replaceState(En.state,"",$.pathname+$.search):$.hash="")):((Nn=JSON.parse(xn.getItem(Qa)||"{}")).source="localstorage",delete Nn.userIntent),!(!Nn.token||this.instance.config.token!==Nn.token||(this.loadToolbar(Nn),0))}catch{return!1}}ha($){var xn=h.ph_load_toolbar||h.ph_load_editor;!K(xn)&&z(xn)?xn($,this.instance):Xa.warn("No toolbar load function found")}loadToolbar($){var xn=!(r$1==null||!r$1.getElementById(nr));if(!t||xn)return!1;var En=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,Nn=f({token:this.instance.config.token},$,{apiURL:this.instance.requestRouter.endpointFor("ui")},En?{instrument:!1}:{});if(t.localStorage.setItem(Qa,JSON.stringify(f({},Nn,{source:void 0}))),this.ua()===2)this.ha(Nn);else if(this.ua()===0){var Tn;this.la(1),(Tn=h.__PosthogExtensions__)==null||Tn.loadExternalDependency==null||Tn.loadExternalDependency(this.instance,"toolbar",($n=>{if($n)return Xa.error("[Toolbar] Failed to load",$n),void this.la(0);this.la(2),this.ha(Nn)})),Or(t,"turbolinks:load",(()=>{this.la(0),this.loadToolbar(Nn)}))}return!0}da($){return this.loadToolbar($)}maybeLoadEditor($,xn,En){return $===void 0&&($=void 0),xn===void 0&&(xn=void 0),En===void 0&&(En=void 0),this.maybeLoadToolbar($,xn,En)}}},bl=f({experiments:al},dl),wl=f({},dl,vl,cl,pl,fl,_l,ml,gl,yl,bl,{conversations:class{constructor($){this.ca=void 0,this._conversationsManager=null,this.va=!1,this.fa=null,this._instance=$}initialize(){this.loadIfEnabled()}onRemoteConfig($){if(!this._instance.config.disable_conversations){var xn=$.conversations;K(xn)||(X(xn)?this.ca=xn:(this.ca=xn.enabled,this.fa=xn),this.loadIfEnabled())}}reset(){var $;($=this._conversationsManager)==null||$.reset(),this._conversationsManager=null,this.ca=void 0,this.fa=null}loadIfEnabled(){if(!(this._conversationsManager||this.va||this._instance.config.disable_conversations||Cr(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var $=h?.__PosthogExtensions__;if($&&!V$1(this.ca)&&this.ca)if(this.fa&&this.fa.token){this.va=!0;try{var xn=$.initConversations;if(xn)return this.pa(xn),void(this.va=!1);var En=$.loadExternalDependency;if(!En)return void this.ga(hr);En(this._instance,"conversations",(Nn=>{Nn||!$.initConversations?this.ga("Could not load conversations script",Nn):this.pa($.initConversations),this.va=!1}))}catch(Nn){this.ga("Error initializing conversations",Nn),this.va=!1}}else ll.error("Conversations enabled but missing token in remote config.")}}pa($){if(this.fa)try{this._conversationsManager=$(this.fa,this._instance),ll.info("Conversations loaded successfully")}catch(xn){this.ga("Error completing conversations initialization",xn)}else ll.error("Cannot complete initialization: remote config is null")}ga($,xn){ll.error($,xn),this._conversationsManager=null,this.va=!1}show(){this._conversationsManager?this._conversationsManager.show():ll.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.ca===!0&&!Y(this._conversationsManager)}isVisible(){var $,xn;return($=(xn=this._conversationsManager)==null?void 0:xn.isVisible())!==null&&$!==void 0&&$}sendMessage($,xn,En){var Nn=this;return p((function*(){return Nn._conversationsManager?Nn._conversationsManager.sendMessage($,xn,En):(ll.warn(ul),null)}))()}getMessages($,xn){var En=this;return p((function*(){return En._conversationsManager?En._conversationsManager.getMessages($,xn):(ll.warn(ul),null)}))()}markAsRead($){var xn=this;return p((function*(){return xn._conversationsManager?xn._conversationsManager.markAsRead($):(ll.warn(ul),null)}))()}getTickets($){var xn=this;return p((function*(){return xn._conversationsManager?xn._conversationsManager.getTickets($):(ll.warn(ul),null)}))()}requestRestoreLink($){var xn=this;return p((function*(){return xn._conversationsManager?xn._conversationsManager.requestRestoreLink($):(ll.warn(ul),null)}))()}restoreFromToken($){var xn=this;return p((function*(){return xn._conversationsManager?xn._conversationsManager.restoreFromToken($):(ll.warn(ul),null)}))()}restoreFromUrlToken(){var $=this;return p((function*(){return $._conversationsManager?$._conversationsManager.restoreFromUrlToken():(ll.warn(ul),null)}))()}getCurrentTicketId(){var $,xn;return($=(xn=this._conversationsManager)==null?void 0:xn.getCurrentTicketId())!==null&&$!==void 0?$:null}getWidgetSessionId(){var $,xn;return($=(xn=this._conversationsManager)==null?void 0:xn.getWidgetSessionId())!==null&&$!==void 0?$:null}en(){var $;($=this._conversationsManager)==null||$.setIdentity()}tn(){var $;($=this._conversationsManager)==null||$.clearIdentity()}}},{logs:class{constructor($){var xn;this.ma=!1,this.ya=!1,this.Ae=ui("[logs]"),this._r=[],this.ba=[],this._a=()=>{var En,Nn;(En=this.wa)==null||En.onReconnect(),(Nn=this.xa)==null||Nn.onReconnect()},this._instance=$,this._instance&&(xn=this._instance.config.logs)!=null&&xn.captureConsoleLogs&&(this.ma=!0),t&&Or(t,"online",this._a)}ka($,xn,En,Nn){var Tn,$n=(function(kl,xl){var Nl,Rl,Fl,Al,Tl,Cl,Il,Ml=(Nl=kl?.flushIntervalMs)!==null&&Nl!==void 0?Nl:3e3,Dl=(Rl=kl?.maxBufferSize)!==null&&Rl!==void 0?Rl:100,Ll=xl!=null&&xl.consoleCapture?void 0:(Fl=kl?.maxLogsPerInterval)!==null&&Fl!==void 0?Fl:1e3,$l=V$1(Ll)?Math.max(Dl,2048):Math.max(Dl,Ll),Vl=kl?.resourceAttributes;return{serviceName:(Al=(Tl=Vl?.["service.name"])!==null&&Tl!==void 0?Tl:kl?.serviceName)!==null&&Al!==void 0?Al:xl?.serviceNameDefault,serviceVersion:(Cl=Vl?.["service.version"])!==null&&Cl!==void 0?Cl:kl?.serviceVersion,environment:(Il=Vl?.["deployment.environment"])!==null&&Il!==void 0?Il:kl?.environment,resourceAttributes:Vl,beforeSend:kl?.beforeSend,flushIntervalMs:Ml,maxBufferSize:Dl,maxQueueSize:$l,maxBatchRecordsPerPost:100,rateCapWindowMs:Ml,maxLogsPerInterval:Ll,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0}})((Tn=this._instance)==null||(Tn=Tn.config)==null?void 0:Tn.logs,En);return[new $e(this.Sa($,xn),$n,this.Ae,(()=>this.Ca()),(kl=>kl()),void 0,Nn),$n]}Ia(){var $,xn,En=($=this._instance)==null||($=$.config)==null?void 0:$.logs;return this.wa&&this.Ta===En||((xn=this.wa)==null||xn.reset(),this.Ta=En,[this.wa,this.Ea]=this.ka((()=>this._r),(Nn=>{this._r=Nn}))),this.wa}Ma(){var $,xn,En=($=this._instance)==null||($=$.config)==null?void 0:$.logs;return this.xa&&this.Pa===En||((xn=this.xa)==null||xn.reset(),this.Pa=En,[this.xa,this.Ra]=this.ka((()=>this.ba),(Nn=>{this.ba=Nn}),{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},hl)),this.xa}initialize(){this.loadIfEnabled()}onRemoteConfig($){var xn,En=(xn=$.logs)==null?void 0:xn.captureConsoleLogs;!K(En)&&En&&(this.ma=!0,this.loadIfEnabled())}reset(){var $,xn;this._r=[],($=this.wa)==null||$.reset(),this.ba=[],(xn=this.xa)==null||xn.reset()}captureLog($){this.Ia().captureLog($)}le($){this.Ma().captureLog($)}get logger(){return this.Oa||(this.Oa={trace:($,xn)=>this.captureLog({body:$,level:"trace",attributes:xn}),debug:($,xn)=>this.captureLog({body:$,level:"debug",attributes:xn}),info:($,xn)=>this.captureLog({body:$,level:"info",attributes:xn}),warn:($,xn)=>this.captureLog({body:$,level:"warn",attributes:xn}),error:($,xn)=>this.captureLog({body:$,level:"error",attributes:xn}),fatal:($,xn)=>this.captureLog({body:$,level:"fatal",attributes:xn})}),this.Oa}flushLogs($){$?this.La($):(this.wa&&this.wa.flush().catch((xn=>this.Ae.error("PostHog logs flush failed:",xn))),this.xa&&this.xa.flush().catch((xn=>this.Ae.error("PostHog logs flush failed:",xn))))}loadIfEnabled(){if(this.ma&&!this.ya){var $=h?.__PosthogExtensions__;if($){var xn=$.loadExternalDependency;xn?xn(this._instance,"logs",(En=>{var Nn;En||(Nn=$.logs)==null||!Nn.initializeLogs?this.Ae.error("Could not load logs script",En):($.logs.initializeLogs(this._instance),this.ya=!0)})):this.Ae.error(hr)}else this.Ae.error("PostHog Extensions not found.")}}Sa($,xn){var En=this._instance;return{get isDisabled(){return!1},get optedOut(){return!En.is_capturing()},getPersistedProperty:Nn=>Nn===w.LogsQueue?$():void 0,setPersistedProperty(Nn,Tn){var $n;Nn===w.LogsQueue&&xn(($n=Tn)!==null&&$n!==void 0?$n:[])},ht:Nn=>this.ht(Nn),getLibraryId:()=>v.LIB_NAME,getLibraryVersion:()=>v.LIB_VERSION}}ht($){return new Promise((xn=>{var En=!1,Nn=$n=>{En||(En=!0,clearTimeout(Tn),xn($n))},Tn=setTimeout((()=>Nn({kind:"retry-later",error:new Error("logs request timed out")})),9e4);this._instance._send_request({method:"POST",url:this.Fa(),data:$,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback($n){var kl=$n.statusCode;if(kl>=200&&300>kl)Nn({kind:"ok"});else if(kl===413)Nn({kind:"too-large"});else if(kl!==0&&kl!==429&&500>kl)Nn({kind:"fatal",error:new Error("logs request failed with status "+kl)});else{var xl;Nn({kind:"retry-later",error:(xl=$n.error)!==null&&xl!==void 0?xl:new Error("logs request failed with status "+kl)})}}})}))}La($){this._r.length>0&&this.Aa($,this._r,this.Ea,v.LIB_NAME,(xn=>{this._r=xn})),this.ba.length>0&&this.Aa($,this.ba,this.Ra,hl,(xn=>{this.ba=xn}))}Aa($,xn,En,Nn,Tn){if(xn.length!==0){var $n=xn.map((xl=>xl.record));Tn([]);var kl=Te($n,Se(En,v.LIB_NAME,v.LIB_VERSION),Nn,v.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Fa(),data:kl,compression:"best-available",batchKey:"logs",transport:$})}}Fa(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}Ca(){var $,xn={};if(xn.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:En,windowId:Nn,sessionStartTimestamp:Tn,lastActivityTimestamp:$n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);xn.sessionId=En,xn.windowId=Nn,K(Tn)||(xn.sessionStartTimestamp=Tn),K($n)||(xn.lastActivityTimestamp=$n)}if(h!=null&&($=h.location)!=null&&$.href&&(xn.currentUrl=this._instance.config.disable_capture_url_hashes?_e(h.location.href):h.location.href),this._instance.featureFlags){var kl=this._instance.featureFlags.getFlags();kl&&kl.length>0&&(xn.activeFeatureFlags=kl)}return xn}}});ba.__defaultExtensionClasses=f({},wl);var El=(function(){v.SDK_DIST_CHANNEL="npm";var $=aa[pa]=new ba;return(function(){function xn(){xn.done||(xn.done=!0,fa=!1,xr(aa,(function(En){En._dom_loaded()})))}r$1!=null&&r$1.addEventListener?r$1.readyState==="complete"?xn():Or(r$1,"DOMContentLoaded",xn,{capture:!1}):t&&li.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),$})(),defaultPostHogInstance;function setDefaultPostHogInstance($){defaultPostHogInstance=$}function getDefaultPostHogInstance(){return defaultPostHogInstance}var PostHogContext=reactExports.createContext({get client(){return getDefaultPostHogInstance()},bootstrap:void 0});function isDeepEqual($,xn,En){if(En===void 0&&(En=new WeakMap),$===xn)return!0;if(typeof $!="object"||$===null||typeof xn!="object"||xn===null)return!1;if(En.has($)&&En.get($)===xn)return!0;En.set($,xn);var Nn=Object.keys($),Tn=Object.keys(xn);if(Nn.length!==Tn.length)return!1;for(var $n=0,kl=Nn;$n($,xn)=>{const En=(Nn,Tn)=>({type:$,payload:Nn,meta:Tn,"@CONTEXT":xn});return En.type=$,En},makeMetaActionCreator=()=>($,xn)=>{const En=Nn=>({type:$,meta:Nn,"@CONTEXT":xn});return En.type=$,En};var Attributes=($=>($.ESTIMATED_DATE="__estimated_date",$.UPSELL="__upsell",$.GROUP="__group",$.INCLUDED="__included",$.PO_ID="__po_id",$.ONE_TIME_PRICE="__one_time_price",$.PRODUCT_PAGE="__product_page",$))(Attributes||{}),CartMetafields=($=>($.ESTIMATED_DATE="inventory.estimatedDate",$.PO_ID="inventory.poId",$))(CartMetafields||{}),freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag($){var xn=hasOwnProperty$a.call($,symToStringTag$1),En=$[symToStringTag$1];try{$[symToStringTag$1]=void 0;var Nn=!0}catch{}var Tn=nativeObjectToString$1.call($);return Nn&&(xn?$[symToStringTag$1]=En:delete $[symToStringTag$1]),Tn}var objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString($){return nativeObjectToString.call($)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag($){return $==null?$===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object($)?getRawTag($):objectToString($)}function isObjectLike($){return $!=null&&typeof $=="object"}var symbolTag$1="[object Symbol]";function isSymbol($){return typeof $=="symbol"||isObjectLike($)&&baseGetTag($)==symbolTag$1}function arrayMap($,xn){for(var En=-1,Nn=$==null?0:$.length,Tn=Array(Nn);++En-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex($,xn){var En=typeof $;return xn=xn??MAX_SAFE_INTEGER$1,!!xn&&(En=="number"||En!="symbol"&&reIsUint.test($))&&$>-1&&$%1==0&&$-1&&$%1==0&&$<=MAX_SAFE_INTEGER}function isArrayLike($){return $!=null&&isLength$1($.length)&&!isFunction($)}var objectProto$9=Object.prototype;function isPrototype($){var xn=$&&$.constructor,En=typeof xn=="function"&&xn.prototype||objectProto$9;return $===En}function baseTimes($,xn){for(var En=-1,Nn=Array($);++En<$;)Nn[En]=xn(En);return Nn}var argsTag$2="[object Arguments]";function baseIsArguments($){return isObjectLike($)&&baseGetTag($)==argsTag$2}var objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty,propertyIsEnumerable$1=objectProto$8.propertyIsEnumerable,isArguments=baseIsArguments((function(){return arguments})())?baseIsArguments:function($){return isObjectLike($)&&hasOwnProperty$7.call($,"callee")&&!propertyIsEnumerable$1.call($,"callee")};function stubFalse(){return!1}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer$1=nativeIsBuffer||stubFalse,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray($){return isObjectLike($)&&isLength$1($.length)&&!!typedArrayTags[baseGetTag($)]}function baseUnary($){return function(xn){return $(xn)}}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=(function(){try{var $=freeModule&&freeModule.require&&freeModule.require("util").types;return $||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}})(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function arrayLikeKeys($,xn){var En=isArray($),Nn=!En&&isArguments($),Tn=!En&&!Nn&&isBuffer$1($),$n=!En&&!Nn&&!Tn&&isTypedArray($),kl=En||Nn||Tn||$n,xl=kl?baseTimes($.length,String):[],Nl=xl.length;for(var Rl in $)(xn||hasOwnProperty$6.call($,Rl))&&!(kl&&(Rl=="length"||Tn&&(Rl=="offset"||Rl=="parent")||$n&&(Rl=="buffer"||Rl=="byteLength"||Rl=="byteOffset")||isIndex(Rl,Nl)))&&xl.push(Rl);return xl}function overArg($,xn){return function(En){return $(xn(En))}}var nativeKeys=overArg(Object.keys,Object),objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeys($){if(!isPrototype($))return nativeKeys($);var xn=[];for(var En in Object($))hasOwnProperty$5.call($,En)&&En!="constructor"&&xn.push(En);return xn}function keys($){return isArrayLike($)?arrayLikeKeys($):baseKeys($)}function nativeKeysIn($){var xn=[];if($!=null)for(var En in Object($))xn.push(En);return xn}var objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeysIn($){if(!isObject($))return nativeKeysIn($);var xn=isPrototype($),En=[];for(var Nn in $)Nn=="constructor"&&(xn||!hasOwnProperty$4.call($,Nn))||En.push(Nn);return En}function keysIn($){return isArrayLike($)?arrayLikeKeys($,!0):baseKeysIn($)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey($,xn){if(isArray($))return!1;var En=typeof $;return En=="number"||En=="symbol"||En=="boolean"||$==null||isSymbol($)?!0:reIsPlainProp.test($)||!reIsDeepProp.test($)||xn!=null&&$ in Object(xn)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete($){var xn=this.has($)&&delete this.__data__[$];return this.size-=xn?1:0,xn}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashGet($){var xn=this.__data__;if(nativeCreate){var En=xn[$];return En===HASH_UNDEFINED$2?void 0:En}return hasOwnProperty$3.call(xn,$)?xn[$]:void 0}var objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function hashHas($){var xn=this.__data__;return nativeCreate?xn[$]!==void 0:hasOwnProperty$2.call(xn,$)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet($,xn){var En=this.__data__;return this.size+=this.has($)?0:1,En[$]=nativeCreate&&xn===void 0?HASH_UNDEFINED$1:xn,this}function Hash($){var xn=-1,En=$==null?0:$.length;for(this.clear();++xn-1}function listCacheSet($,xn){var En=this.__data__,Nn=assocIndexOf(En,$);return Nn<0?(++this.size,En.push([$,xn])):En[Nn][1]=xn,this}function ListCache($){var xn=-1,En=$==null?0:$.length;for(this.clear();++xnTn?0:Tn+xn),En=En>Tn?Tn:En,En<0&&(En+=Tn),Tn=xn>En?0:En-xn>>>0,xn>>>=0;for(var $n=Array(Tn);++Nn=Nn?$:baseSlice($,xn,En)}var rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode($){return reHasUnicode.test($)}function asciiToArray($){return $.split("")}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray($){return $.match(reUnicode)||[]}function stringToArray($){return hasUnicode($)?unicodeToArray($):asciiToArray($)}function createCaseFirst($){return function(xn){xn=toString$1(xn);var En=hasUnicode(xn)?stringToArray(xn):void 0,Nn=En?En[0]:xn.charAt(0),Tn=En?castSlice(En,1).join(""):xn.slice(1);return Nn[$]()+Tn}}var upperFirst=createCaseFirst("toUpperCase");function capitalize$1($){return upperFirst(toString$1($).toLowerCase())}function arrayReduce($,xn,En,Nn){for(var Tn=-1,$n=$==null?0:$.length;++Tn<$n;)En=xn(En,$[Tn],Tn,$);return En}function basePropertyOf($){return function(xn){return $?.[xn]}}var deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter=basePropertyOf(deburredLetters),reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr($){return $=toString$1($),$&&$.replace(reLatin,deburrLetter).replace(reComboMark,"")}var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords($){return $.match(reAsciiWord)||[]}var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord($){return reHasUnicodeWord.test($)}var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords($){return $.match(reUnicodeWord)||[]}function words($,xn,En){return $=toString$1($),xn=xn,xn===void 0?hasUnicodeWord($)?unicodeWords($):asciiWords($):$.match(xn)||[]}var rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder($){return function(xn){return arrayReduce(words(deburr(xn).replace(reApos,"")),$,"")}}var camelCase=createCompounder(function($,xn,En){return xn=xn.toLowerCase(),$+(En?capitalize$1(xn):xn)});function baseClamp($,xn,En){return $===$&&(En!==void 0&&($=$<=En?$:En),xn!==void 0&&($=$>=xn?$:xn)),$}function clamp$1($,xn,En){return En===void 0&&(En=xn,xn=void 0),En!==void 0&&(En=toNumber(En),En=En===En?En:0),xn!==void 0&&(xn=toNumber(xn),xn=xn===xn?xn:0),baseClamp(toNumber($),xn,En)}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete($){var xn=this.__data__,En=xn.delete($);return this.size=xn.size,En}function stackGet($){return this.__data__.get($)}function stackHas($){return this.__data__.has($)}var LARGE_ARRAY_SIZE$1=200;function stackSet($,xn){var En=this.__data__;if(En instanceof ListCache){var Nn=En.__data__;if(!Map$1||Nn.lengthxl))return!1;var Rl=$n.get($),Fl=$n.get(xn);if(Rl&&Fl)return Rl==xn&&Fl==$;var Al=-1,Tl=!0,Cl=En&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for($n.set($,xn),$n.set(xn,$);++Al=xn||Gl<0||Al&&ql>=$n}function Ll(){var Ul=now();if(Dl(Ul))return $l(Ul);xl=setTimeout(Ll,Ml(Ul))}function $l(Ul){return xl=void 0,Tl&&Nn?Cl(Ul):(Nn=Tn=void 0,kl)}function Vl(){xl!==void 0&&clearTimeout(xl),Rl=0,Nn=Nl=Tn=xl=void 0}function Bl(){return xl===void 0?kl:$l(now())}function zl(){var Ul=now(),Gl=Dl(Ul);if(Nn=arguments,Tn=this,Nl=Ul,Gl){if(xl===void 0)return Il(Nl);if(Al)return clearTimeout(xl),xl=setTimeout(Ll,xn),Cl(Nl)}return xl===void 0&&(xl=setTimeout(Ll,xn)),kl}return zl.cancel=Vl,zl.flush=Bl,zl}var FUNC_ERROR_TEXT$1="Expected a function";function negate($){if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return function(){var xn=arguments;switch(xn.length){case 0:return!$.call(this);case 1:return!$.call(this,xn[0]);case 2:return!$.call(this,xn[0],xn[1]);case 3:return!$.call(this,xn[0],xn[1],xn[2])}return!$.apply(this,xn)}}function baseSet($,xn,En,Nn){if(!isObject($))return $;xn=castPath(xn,$);for(var Tn=-1,$n=xn.length,kl=$n-1,xl=$;xl!=null&&++Tn<$n;){var Nl=toKey(xn[Tn]),Rl=En;if(Nl==="__proto__"||Nl==="constructor"||Nl==="prototype")return $;if(Tn!=kl){var Fl=xl[Nl];Rl=void 0,Rl===void 0&&(Rl=isObject(Fl)?Fl:isIndex(xn[Tn+1])?[]:{})}assignValue(xl,Nl,Rl),xl=xl[Nl]}return $}function basePickBy($,xn,En){for(var Nn=-1,Tn=xn.length,$n={};++Nn=LARGE_ARRAY_SIZE){var Rl=xn?null:createSet($);if(Rl)return setToArray(Rl);kl=!1,Tn=cacheHas,Nl=new SetCache}else Nl=xn?[]:xl;e:for(;++Nn<$n;){var Fl=$[Nn],Al=xn?xn(Fl):Fl;if(Fl=Fl!==0?Fl:0,kl&&Al===Al){for(var Tl=Nl.length;Tl--;)if(Nl[Tl]===Al)continue e;xn&&Nl.push(Al),xl.push(Fl)}else Tn(Nl,Al,En)||(Nl!==xl&&Nl.push(Al),xl.push(Fl))}return xl}function uniq($){return $&&$.length?baseUniq($):[]}function uniqBy($,xn){return $&&$.length?baseUniq($,baseIteratee(xn)):[]}function isDefined($){return $!==void 0}function isPresent($){return $!=null}function objectEntries($){return Object.entries($)}function objectKeys($){return Object.keys($)}function range($,xn){return xn===void 0&&(xn=$,$=0),new Array(Math.abs(xn-$)+1).fill($).map((En,Nn)=>En+Nn*Math.sign(xn))}const sleep=$=>new Promise(xn=>setTimeout(xn,$));function includes($,...xn){return $!==void 0&&xn.some(En=>$.includes(En))}function objectMap($,xn){return objectEntries($).reduce((En,[Nn,Tn])=>({...En,[Nn]:xn(Tn,Nn)}),{})}function hasDecimals($){return typeof $=="number"&&$%1!==0}function parseNumber($){return typeof $=="number"&&!isNaN($)?$:Number.parseFloat($||"0")||0}function getTimezoneOffsetString($,xn){const En=xn.toLocaleString("en-US",{timeZone:"UTC"}),Nn=xn.toLocaleString("en-US",{timeZone:$}),Tn=new Date(Nn).getTime()-new Date(En).getTime(),$n=Tn>=0?"+":"-",kl=Math.abs(Tn)/6e4,xl=String(Math.floor(kl/60)).padStart(2,"0"),Nl=String(kl%60).padStart(2,"0");return`${$n}${xl}:${Nl}`}function diffDates($,xn){function En(kl){return kl=Math.floor(kl),kl<10?`0${kl}`:kl}const Nn=3600,Tn=Nn*24,$n=Math.max(xn.valueOf()-$.valueOf(),0)/1e3;return{total:$n,day:En($n/Tn),hour:En($n%Tn/Nn),minute:En($n%Nn/60),second:En($n%60)}}const BlogsDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"blogs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BlogFragment"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ArticleFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Article"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"publishedAt"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"content"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BlogFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Blog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"articles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ArticleFragment"}}]}}]}}]}}]}}]},CartLoadDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"cartLoad"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"cart"},name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CartFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LineItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"deliveryPolicy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SellingPlanRecurringDeliveryPolicy"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"intervalCount"}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtAmountPerQuantity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresShipping"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"vendor"}},{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"deliveryGroups"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}},{kind:"Field",name:{kind:"Name",value:"selectedDeliveryOption"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"note"}},{kind:"Field",name:{kind:"Name",value:"checkoutUrl"}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"targetType"}}]}},{kind:"Field",name:{kind:"Name",value:"appliedGiftCards"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"presentmentAmountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lastCharacters"}}]}},{kind:"Field",name:{kind:"Name",value:"buyerIdentity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LineItemFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalQuantity"}}]}}]},CartCreateDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartLineInput"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"buyerIdentity"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"countryCode"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}}]}},{kind:"ObjectField",name:{kind:"Name",value:"lines"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CartFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LineItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"deliveryPolicy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SellingPlanRecurringDeliveryPolicy"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"intervalCount"}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtAmountPerQuantity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresShipping"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"vendor"}},{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"deliveryGroups"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}},{kind:"Field",name:{kind:"Name",value:"selectedDeliveryOption"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"note"}},{kind:"Field",name:{kind:"Name",value:"checkoutUrl"}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"targetType"}}]}},{kind:"Field",name:{kind:"Name",value:"appliedGiftCards"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"presentmentAmountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lastCharacters"}}]}},{kind:"Field",name:{kind:"Name",value:"buyerIdentity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LineItemFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalQuantity"}}]}}]},CartAddDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartAdd"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartLineInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartLinesAdd"},arguments:[{kind:"Argument",name:{kind:"Name",value:"lines"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}},{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CartFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LineItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"deliveryPolicy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SellingPlanRecurringDeliveryPolicy"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"intervalCount"}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtAmountPerQuantity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresShipping"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"vendor"}},{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"deliveryGroups"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}},{kind:"Field",name:{kind:"Name",value:"selectedDeliveryOption"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"note"}},{kind:"Field",name:{kind:"Name",value:"checkoutUrl"}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"targetType"}}]}},{kind:"Field",name:{kind:"Name",value:"appliedGiftCards"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"presentmentAmountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lastCharacters"}}]}},{kind:"Field",name:{kind:"Name",value:"buyerIdentity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LineItemFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalQuantity"}}]}}]},CartAttributesUpdateDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartAttributesUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AttributeInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartAttributesUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"attributes"},value:{kind:"Variable",name:{kind:"Name",value:"attributes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}}]},CartUpdateDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartLineUpdateInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartLinesUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"lines"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CartFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LineItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"deliveryPolicy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SellingPlanRecurringDeliveryPolicy"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"intervalCount"}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtAmountPerQuantity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresShipping"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"vendor"}},{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"deliveryGroups"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}},{kind:"Field",name:{kind:"Name",value:"selectedDeliveryOption"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"note"}},{kind:"Field",name:{kind:"Name",value:"checkoutUrl"}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"targetType"}}]}},{kind:"Field",name:{kind:"Name",value:"appliedGiftCards"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"presentmentAmountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lastCharacters"}}]}},{kind:"Field",name:{kind:"Name",value:"buyerIdentity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LineItemFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalQuantity"}}]}}]},CartRemoveDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartRemove"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartLinesRemove"},arguments:[{kind:"Argument",name:{kind:"Name",value:"lineIds"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}},{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CartFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LineItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"deliveryPolicy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SellingPlanRecurringDeliveryPolicy"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"intervalCount"}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtAmountPerQuantity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresShipping"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"vendor"}},{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"deliveryGroups"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}},{kind:"Field",name:{kind:"Name",value:"selectedDeliveryOption"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"note"}},{kind:"Field",name:{kind:"Name",value:"checkoutUrl"}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"targetType"}}]}},{kind:"Field",name:{kind:"Name",value:"appliedGiftCards"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"presentmentAmountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lastCharacters"}}]}},{kind:"Field",name:{kind:"Name",value:"buyerIdentity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LineItemFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalQuantity"}}]}}]},CartMetafieldsSetDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartMetafieldsSet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"metafields"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartMetafieldsSetInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cartMetafieldsSet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"metafields"},value:{kind:"Variable",name:{kind:"Name",value:"metafields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},CartMetafieldDeleteDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartMetafieldDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartMetafieldDeleteInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cartMetafieldDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedId"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},CartUpdateCountryDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"cartUpdateCountry"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartBuyerIdentityUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"buyerIdentity"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"countryCode"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CartFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LineItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"deliveryPolicy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SellingPlanRecurringDeliveryPolicy"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"intervalCount"}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtAmountPerQuantity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresShipping"}},{kind:"Field",name:{kind:"Name",value:"sku"}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"vendor"}},{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"deliveryGroups"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}},{kind:"Field",name:{kind:"Name",value:"selectedDeliveryOption"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deliveryMethodType"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"note"}},{kind:"Field",name:{kind:"Name",value:"checkoutUrl"}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"subtotalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"targetType"}}]}},{kind:"Field",name:{kind:"Name",value:"appliedGiftCards"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"presentmentAmountUsed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lastCharacters"}}]}},{kind:"Field",name:{kind:"Name",value:"buyerIdentity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"}}]}},{kind:"Field",name:{kind:"Name",value:"attributes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LineItemFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalQuantity"}}]}}]},CollectionDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"collection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"handle"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"collection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"handle"},value:{kind:"Variable",name:{kind:"Name",value:"handle"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"products"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]}}]},ProductDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"product"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"product"},name:{kind:"Name",value:"product"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresSellingPlan"}},{kind:"Field",alias:{kind:"Name",value:"defaultVariant"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"default_variant",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"subscription_images"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subscription_images",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"references"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"20"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"subscription_override"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subscription_override",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductListingFragment"}},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"20"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SellingPlanFragment"}}]}}]}}]}}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell1"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_1",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductUpsellRefFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell1_offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_1_offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell1_expiry"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_1_expiration",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell2"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_2",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductUpsellRefFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell2_offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_2_offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell2_expiry"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_2_expiration",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell3"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_3",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductUpsellRefFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell3_offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_3_offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell3_expiry"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_3_expiration",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsells"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"reference",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Metaobject"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"products"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"references"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"99"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SeedProductFragment"}}]}}]}}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"collection",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SeedProductFragment"}}]}}]}}]}}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"first_free_variants"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"first_free_variants",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"references"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"99"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"first_free_amount"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"first_free_amount",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"first_n_upsells_free_amount"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"first_n_upsells_free_amount",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"gallery_overrides"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"gallery_overrides",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Metaobject"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"title"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"title",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"enabled"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"enabled",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"image_1"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_1",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_2"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_2",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_3"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_3",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_4"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_4",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_5"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_5",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_6"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_6",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_7"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_7",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_8"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_8",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_9"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_9",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_10"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_10",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_11"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_11",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_12"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_12",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_13"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_13",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_14"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_14",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_15"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_15",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_16"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_16",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_17"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_17",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_18"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image_18",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"optionValues"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductOptionFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SellingPlanFragment"}},{kind:"Field",alias:{kind:"Name",value:"upsell1"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_1",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell2"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_2",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"upsell3"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"product_3",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"image_2"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"gallery_image_2",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_3"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"gallery_image_3",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_4"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"gallery_image_4",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"image_5"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"gallery_image_5",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SubtitleFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductListingFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SubtitleFragment"}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_germination"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"germination",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_harvest"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"harvest",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_lifespan"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"lifespan",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_amount"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"amount",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"opaque"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"media",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"opaque_feature",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"featuredImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"priceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPriceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Media"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mediaContentType"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ProductListingFragment"}},{kind:"Field",alias:{kind:"Name",value:"badge"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"badge_text",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"fun_fact_1"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"fun_fact_1",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"fun_fact_2"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"fun_fact_2",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"fun_fact_3"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"fun_fact_3",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"review_count"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"stamped",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"reviews_count",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"reviews_average"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"stamped",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"reviews_average",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"hideMixedVariantDeliveryWarning"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"custom",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"hide_mixed_variant_delivery_warning",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"20"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SellingPlanFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"recurringDeliveries"}},{kind:"Field",name:{kind:"Name",value:"deliveryPolicy"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SellingPlanRecurringDeliveryPolicy"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"intervalCount"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"priceAdjustments"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductUpsellRefFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Metafield"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SeedProductFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductListingFragment"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}},{kind:"Field",name:{kind:"Name",value:"requiresComponents"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductOptionFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductOptionValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"swatch"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"color"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaFragment"}}]}}]}}]}}]},ProductsDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"products"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductListingFragment"}},{kind:"Field",name:{kind:"Name",value:"publishedAt"}},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFragment"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SubtitleFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductListingFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SubtitleFragment"}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_germination"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"germination",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_harvest"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"harvest",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_lifespan"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"lifespan",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_amount"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"amount",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"opaque"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"media",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"opaque_feature",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"featuredImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"priceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPriceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_color"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"color",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"option_image"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"option_image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"selectedOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}}]},UpsellDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"upsell"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"variantIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"products"},name:{kind:"Name",value:"nodes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"Variable",name:{kind:"Name",value:"variantIds"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SubtitleFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductListingFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SubtitleFragment"}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_germination"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"germination",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_harvest"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"harvest",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_lifespan"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"lifespan",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_amount"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"amount",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"opaque"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"media",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"opaque_feature",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"featuredImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"priceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPriceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductListingFragment"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",alias:{kind:"Name",value:"useDescription"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"use_description_as_subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"infoImage"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}}]}}]},CartLoadUpsellsDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"cartLoadUpsells"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"upsells"},name:{kind:"Name",value:"metaobject"},arguments:[{kind:"Argument",name:{kind:"Name",value:"handle"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"handle"},value:{kind:"StringValue",value:"cart-upsells",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"cart_upsells",block:!1}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"items"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"references"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Metaobject"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"expiry"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"expiry",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"expiry_text"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"expiry_text",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"item"},name:{kind:"Name",value:"field"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"item",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellFragment"}}]}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"altText"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SubtitleFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"subtitle"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"descriptors",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductListingFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productType"}},{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"onlineStoreUrl"}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SubtitleFragment"}},{kind:"Field",alias:{kind:"Name",value:"offer"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"offer",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_germination"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"germination",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_harvest"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"harvest",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_lifespan"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"lifespan",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"seed_amount"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"seed",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"amount",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",alias:{kind:"Name",value:"opaque"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"media",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"opaque_feature",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"featuredImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"priceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPriceRange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maxVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"minVariantPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MediaImageFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaImage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"compareAtPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"availableForSale"}},{kind:"Field",name:{kind:"Name",value:"image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductListingFragment"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",alias:{kind:"Name",value:"useDescription"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"use_description_as_subtitle",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"infoImage"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"image",block:!1}},{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"upsells",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MediaImageFragment"}}]}}]}}]}}]},UpsellCheckoutCreateDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"upsellCheckoutCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartLineInput"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"buyerIdentity"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"countryCode"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}}]}},{kind:"ObjectField",name:{kind:"Name",value:"lines"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellCartFragment"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellLineFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellCartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellLineFragment"}}]}}]}}]}}]}}]},UpsellCartAddDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"upsellCartAdd"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartLineInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartLinesAdd"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"lines"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellCartFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellLineFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellCartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellLineFragment"}}]}}]}}]}}]}}]},UpsellCartUpdateDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"upsellCartUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CartLineUpdateInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartLinesUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"lines"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellCartFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellLineFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellCartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellLineFragment"}}]}}]}}]}}]}}]},UpsellCartRemoveDocument={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"upsellCartRemove"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lines"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"country"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CountryCode"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NamedType",name:{kind:"Name",value:"LanguageCode"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"inContext"},arguments:[{kind:"Argument",name:{kind:"Name",value:"country"},value:{kind:"Variable",name:{kind:"Name",value:"country"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"cartLinesRemove"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"lineIds"},value:{kind:"Variable",name:{kind:"Name",value:"lines"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cart"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellCartFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoneyFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MoneyV2"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currencyCode"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellLineFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartLine"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"sellingPlanAllocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"cost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"discountAllocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"merchandise"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductVariant"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoneyFragment"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellCartFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Cart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lines"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellLineFragment"}}]}}]}}]}}]}}]};var CountryCode=($=>($.AC="AC",$.AD="AD",$.AE="AE",$.AF="AF",$.AG="AG",$.AI="AI",$.AL="AL",$.AM="AM",$.AN="AN",$.AO="AO",$.AR="AR",$.AT="AT",$.AU="AU",$.AW="AW",$.AX="AX",$.AZ="AZ",$.BA="BA",$.BB="BB",$.BD="BD",$.BE="BE",$.BF="BF",$.BG="BG",$.BH="BH",$.BI="BI",$.BJ="BJ",$.BL="BL",$.BM="BM",$.BN="BN",$.BO="BO",$.BQ="BQ",$.BR="BR",$.BS="BS",$.BT="BT",$.BV="BV",$.BW="BW",$.BY="BY",$.BZ="BZ",$.CA="CA",$.CC="CC",$.CD="CD",$.CF="CF",$.CG="CG",$.CH="CH",$.CI="CI",$.CK="CK",$.CL="CL",$.CM="CM",$.CN="CN",$.CO="CO",$.CR="CR",$.CU="CU",$.CV="CV",$.CW="CW",$.CX="CX",$.CY="CY",$.CZ="CZ",$.DE="DE",$.DJ="DJ",$.DK="DK",$.DM="DM",$.DO="DO",$.DZ="DZ",$.EC="EC",$.EE="EE",$.EG="EG",$.EH="EH",$.ER="ER",$.ES="ES",$.ET="ET",$.FI="FI",$.FJ="FJ",$.FK="FK",$.FO="FO",$.FR="FR",$.GA="GA",$.GB="GB",$.GD="GD",$.GE="GE",$.GF="GF",$.GG="GG",$.GH="GH",$.GI="GI",$.GL="GL",$.GM="GM",$.GN="GN",$.GP="GP",$.GQ="GQ",$.GR="GR",$.GS="GS",$.GT="GT",$.GW="GW",$.GY="GY",$.HK="HK",$.HM="HM",$.HN="HN",$.HR="HR",$.HT="HT",$.HU="HU",$.ID="ID",$.IE="IE",$.IL="IL",$.IM="IM",$.IN="IN",$.IO="IO",$.IQ="IQ",$.IR="IR",$.IS="IS",$.IT="IT",$.JE="JE",$.JM="JM",$.JO="JO",$.JP="JP",$.KE="KE",$.KG="KG",$.KH="KH",$.KI="KI",$.KM="KM",$.KN="KN",$.KP="KP",$.KR="KR",$.KW="KW",$.KY="KY",$.KZ="KZ",$.LA="LA",$.LB="LB",$.LC="LC",$.LI="LI",$.LK="LK",$.LR="LR",$.LS="LS",$.LT="LT",$.LU="LU",$.LV="LV",$.LY="LY",$.MA="MA",$.MC="MC",$.MD="MD",$.ME="ME",$.MF="MF",$.MG="MG",$.MK="MK",$.ML="ML",$.MM="MM",$.MN="MN",$.MO="MO",$.MQ="MQ",$.MR="MR",$.MS="MS",$.MT="MT",$.MU="MU",$.MV="MV",$.MW="MW",$.MX="MX",$.MY="MY",$.MZ="MZ",$.NA="NA",$.NC="NC",$.NE="NE",$.NF="NF",$.NG="NG",$.NI="NI",$.NL="NL",$.NO="NO",$.NP="NP",$.NR="NR",$.NU="NU",$.NZ="NZ",$.OM="OM",$.PA="PA",$.PE="PE",$.PF="PF",$.PG="PG",$.PH="PH",$.PK="PK",$.PL="PL",$.PM="PM",$.PN="PN",$.PS="PS",$.PT="PT",$.PY="PY",$.QA="QA",$.RE="RE",$.RO="RO",$.RS="RS",$.RU="RU",$.RW="RW",$.SA="SA",$.SB="SB",$.SC="SC",$.SD="SD",$.SE="SE",$.SG="SG",$.SH="SH",$.SI="SI",$.SJ="SJ",$.SK="SK",$.SL="SL",$.SM="SM",$.SN="SN",$.SO="SO",$.SR="SR",$.SS="SS",$.ST="ST",$.SV="SV",$.SX="SX",$.SY="SY",$.SZ="SZ",$.TA="TA",$.TC="TC",$.TD="TD",$.TF="TF",$.TG="TG",$.TH="TH",$.TJ="TJ",$.TK="TK",$.TL="TL",$.TM="TM",$.TN="TN",$.TO="TO",$.TR="TR",$.TT="TT",$.TV="TV",$.TW="TW",$.TZ="TZ",$.UA="UA",$.UG="UG",$.UM="UM",$.US="US",$.UY="UY",$.UZ="UZ",$.VA="VA",$.VC="VC",$.VE="VE",$.VG="VG",$.VN="VN",$.VU="VU",$.WF="WF",$.WS="WS",$.XK="XK",$.YE="YE",$.YT="YT",$.ZA="ZA",$.ZM="ZM",$.ZW="ZW",$.ZZ="ZZ",$))(CountryCode||{}),CurrencyCode=($=>($.AED="AED",$.AFN="AFN",$.ALL="ALL",$.AMD="AMD",$.ANG="ANG",$.AOA="AOA",$.ARS="ARS",$.AUD="AUD",$.AWG="AWG",$.AZN="AZN",$.BAM="BAM",$.BBD="BBD",$.BDT="BDT",$.BGN="BGN",$.BHD="BHD",$.BIF="BIF",$.BMD="BMD",$.BND="BND",$.BOB="BOB",$.BRL="BRL",$.BSD="BSD",$.BTN="BTN",$.BWP="BWP",$.BYN="BYN",$.BYR="BYR",$.BZD="BZD",$.CAD="CAD",$.CDF="CDF",$.CHF="CHF",$.CLP="CLP",$.CNY="CNY",$.COP="COP",$.CRC="CRC",$.CVE="CVE",$.CZK="CZK",$.DJF="DJF",$.DKK="DKK",$.DOP="DOP",$.DZD="DZD",$.EGP="EGP",$.ERN="ERN",$.ETB="ETB",$.EUR="EUR",$.FJD="FJD",$.FKP="FKP",$.GBP="GBP",$.GEL="GEL",$.GHS="GHS",$.GIP="GIP",$.GMD="GMD",$.GNF="GNF",$.GTQ="GTQ",$.GYD="GYD",$.HKD="HKD",$.HNL="HNL",$.HRK="HRK",$.HTG="HTG",$.HUF="HUF",$.IDR="IDR",$.ILS="ILS",$.INR="INR",$.IQD="IQD",$.IRR="IRR",$.ISK="ISK",$.JEP="JEP",$.JMD="JMD",$.JOD="JOD",$.JPY="JPY",$.KES="KES",$.KGS="KGS",$.KHR="KHR",$.KID="KID",$.KMF="KMF",$.KRW="KRW",$.KWD="KWD",$.KYD="KYD",$.KZT="KZT",$.LAK="LAK",$.LBP="LBP",$.LKR="LKR",$.LRD="LRD",$.LSL="LSL",$.LTL="LTL",$.LVL="LVL",$.LYD="LYD",$.MAD="MAD",$.MDL="MDL",$.MGA="MGA",$.MKD="MKD",$.MMK="MMK",$.MNT="MNT",$.MOP="MOP",$.MRU="MRU",$.MUR="MUR",$.MVR="MVR",$.MWK="MWK",$.MXN="MXN",$.MYR="MYR",$.MZN="MZN",$.NAD="NAD",$.NGN="NGN",$.NIO="NIO",$.NOK="NOK",$.NPR="NPR",$.NZD="NZD",$.OMR="OMR",$.PAB="PAB",$.PEN="PEN",$.PGK="PGK",$.PHP="PHP",$.PKR="PKR",$.PLN="PLN",$.PYG="PYG",$.QAR="QAR",$.RON="RON",$.RSD="RSD",$.RUB="RUB",$.RWF="RWF",$.SAR="SAR",$.SBD="SBD",$.SCR="SCR",$.SDG="SDG",$.SEK="SEK",$.SGD="SGD",$.SHP="SHP",$.SLL="SLL",$.SOS="SOS",$.SRD="SRD",$.SSP="SSP",$.STD="STD",$.STN="STN",$.SYP="SYP",$.SZL="SZL",$.THB="THB",$.TJS="TJS",$.TMT="TMT",$.TND="TND",$.TOP="TOP",$.TRY="TRY",$.TTD="TTD",$.TWD="TWD",$.TZS="TZS",$.UAH="UAH",$.UGX="UGX",$.USD="USD",$.UYU="UYU",$.UZS="UZS",$.VED="VED",$.VEF="VEF",$.VES="VES",$.VND="VND",$.VUV="VUV",$.WST="WST",$.XAF="XAF",$.XCD="XCD",$.XOF="XOF",$.XPF="XPF",$.XXX="XXX",$.YER="YER",$.ZAR="ZAR",$.ZMW="ZMW",$))(CurrencyCode||{});function getCurrentPageProductId(){return new URLSearchParams(window.location.search).get("variant")||window.PRODUCT?.variants[0]?.id||null}function useReadyState(){const[$,xn]=reactExports.useState(document.readyState);return reactExports.useEffect(()=>{function En(){xn(document.readyState)}return document.addEventListener("readystatechange",En),()=>{document.removeEventListener("readystatechange",En)}},[]),$}function getScrollbarWidth(){const $=document.createElement("div");$.style.width="100px",$.style.height="100px",$.style.overflow="scroll",$.style.position="absolute",$.style.top="-9999px",document.body.appendChild($);const xn=$.offsetWidth-$.clientWidth;return document.body.removeChild($),xn}function isTouchDevice(){return typeof window.ontouchstart=="function"||navigator.maxTouchPoints>0}function toReactProp($){switch($){case"class":return"className";case"enctype":return"encType";case"checked":return"defaultChecked";default:return camelCase($)}}function extractAttributes($){return Object.entries($.attributes).reduce((xn,[,En])=>Object.assign(xn,{[toReactProp(En.name)]:En.value}),{})}const useSelector=useSelector$1,useDispatch=useDispatch$1;function useQuerySelector($,xn={}){const[En,Nn]=reactExports.useState(document.querySelectorAll($)),[,Tn]=reactExports.useReducer($n=>$n+1,0);return reactExports.useLayoutEffect(()=>{const $n=async Nl=>{try{typeof Nl?.type.includes=="function"&&Nl?.type.includes("shopify")&&await sleep(100);const Rl=document.querySelectorAll($);Rl&&typeof Tn=="function"&&Tn(),Nn(Rl)}catch(Rl){console.warn(Rl)}},kl=new MutationObserver(Nl=>$n());En.forEach(Nl=>{Nl.addEventListener("change",$n),kl.observe(Nl,{attributes:!0,childList:!1,characterData:!1,...xn})});const xl=["locationchange","DOMContentLoaded","shopify:section:load","shopify:section:reorder","shopify:section:unload"];return xl.forEach(Nl=>window.addEventListener(Nl,$n)),()=>{xl.forEach(Nl=>window.removeEventListener(Nl,$n)),kl.disconnect(),En.forEach(Nl=>Nl.removeEventListener("change",$n))}},[$,En,xn]),xn.multiple?En:En[0]??null}function useWindowSize(){const[$,xn]=reactExports.useState({width:window.innerWidth,height:window.innerHeight});return reactExports.useEffect(()=>{function En(){xn({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",En,{passive:!0}),()=>window.removeEventListener("resize",En)},[]),$}function useScrollbarWidth(){const $=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{$.current=getScrollbarWidth()}),$.current}function useScrollCutOff($=0){const[xn,En]=reactExports.useState(null),[Nn,Tn]=reactExports.useState(null),[$n,kl]=reactExports.useState(!1);return reactExports.useEffect(()=>{if(!xn||!Nn)return;const xl=new IntersectionObserver(([Nl])=>kl(!Nl.isIntersecting),{root:xn,rootMargin:`0px 0px ${$}px 0px`});return xl.observe(Nn),()=>xl.disconnect()},[xn,Nn,$]),[En,Tn,$n]}function useUpdateEffect($,xn){const En=reactExports.useRef(!0);reactExports.useEffect(()=>{if(En.current){En.current=!1;return}return $()},xn)}function getStoreCountry(){switch(window.Shopify.shop){case"auk-sweden.myshopify.com":return"SE";case"aukstore.myshopify.com":return"NO";case"aukeco.myshopify.com":return"EU"}}var MarketSwitchStatus=($=>($[$.None=0]="None",$.Domain="Domain",$.Currency="Currency",$.Store="Store",$))(MarketSwitchStatus||{});function getMarketSwitchConfig($,xn,En){if(xn===En)return{status:0,nextMarket:null};const Nn=$.find($n=>$n.countries.includes(En)),Tn=$.find($n=>xn==="EU"?$n.store==="EU":$n.countries.includes(xn));return!Nn||!Tn?{status:0,nextMarket:null}:Tn.id===Nn.id?{status:0,nextMarket:null}:Nn.store!==Tn.store?{status:"Store",nextMarket:Nn}:Nn.currency!==Tn.currency?{status:"Currency",nextMarket:Nn}:Nn.webPresences[0].domain!==Tn.webPresences[0].domain?{status:"Domain",nextMarket:Nn}:{status:0,nextMarket:null}}function getPrefferedCountryCode(){const $=document.cookie.split("; ").find(Tn=>Tn.startsWith("localization"))?.split("="),xn=$?$[1]:null,En=localStorage.getItem("preferredCountryCode");let Nn=null;return getStoreCountry()==="EU"?Nn=En??xn:Nn=xn??En,Nn??"EU"}function getPrefferedCountry(){const $=getPrefferedCountryCode();return window.localization.available_countries.find(xn=>xn.iso_code===$)??null}function getCurrentCountry(){return getPrefferedCountry()??window.localization.country}function getDefaultCountry(){const $={...window.localization?.country??{},iso_code:"EU",name:"Europe"};return getPrefferedCountry()??$}function getCurrentLanguage(){return window.localization.language.shop_locale}function useCurrentCountryCode(){const $=useSelector(En=>En.cart.buyerIdentity?.countryCode),xn=getPrefferedCountryCode();return $??xn}function isMoneyV2($){return $?!!$?.amount:!1}const currencies=uniqBy(typeof window<"u"?window.localization?.available_countries.map($=>$.currency):[],$=>$.iso_code);function getPrice($,xn=!1,En=0){const Nn=isMoneyV2($)?parseNumber($?.amount):parseNumber($);if(xn===!0){const Tn=getCurrentCountry().currency,$n=isObject($)?$.currencyCode:Tn.iso_code,kl=currencies.find(xl=>xl.iso_code===$n);if(!kl)return console.warn("Currency not found",$n),`${Tn?.symbol}${Nn}`;try{const xl=En||hasDecimals(Nn)?Nn.toFixed(En||2):Nn;switch(getStoreCountry()){case"NO":return`${xl}${kl.symbol}`;case"SE":return`${xl} ${kl.symbol}`;case"EU":return kl.symbol.length>1?`${xl} ${kl.symbol}`:`${kl.symbol}${xl}`}}catch(xl){return console.warn(getPrice.name,xl),`${kl.symbol}${Nn}`}}else return Nn}const UNITS_PER_EUR={[CurrencyCode.EUR]:1,[CurrencyCode.USD]:1.15,[CurrencyCode.GBP]:.85,[CurrencyCode.CHF]:.93,[CurrencyCode.DKK]:7.46,[CurrencyCode.NOK]:11.7,[CurrencyCode.SEK]:11,[CurrencyCode.CAD]:1.6};function roughConvert($,xn){const En=getPrice($);if($.currencyCode===xn)return En;const Nn=UNITS_PER_EUR[$.currencyCode],Tn=UNITS_PER_EUR[xn];return!Nn||!Tn?null:En/Nn*Tn}function getDiscountValue($){return getPrice($.discountedAmount)}function getOriginalVariantPrice($){return Math.max(getPrice($.price),getPrice($.compareAtPrice))}function effectiveCompareAtPrice($){return getPrice($.compareAtPrice)>getPrice($.price)?$.compareAtPrice??null:null}function oneTimePrice($){const xn=($.attributes??[]).find(kl=>kl.key===Attributes.ONE_TIME_PRICE)?.value;if(!xn)return null;const[En,Nn]=xn.split("|"),Tn=$.cost?.totalAmount.currencyCode??$.merchandise?.price.currencyCode;if(!Nn||Nn!==Tn)return null;const $n=parseNumber(En);return $n>0?$n:null}function lineProductHandle($){const xn=$.attributes?.find(Nn=>Nn.key===Attributes.PRODUCT_PAGE)?.value;if(xn)return xn;const En=$.merchandise?.product;return En?.onlineStoreUrl?En.handle:null}function linePrice($){const{merchandise:xn,quantity:En}=$;return xn?$.cost?getPrice($.cost.totalAmount):Math.max(getPrice(xn.price),getPrice(xn.compareAtPrice))*En-lineDiscount($):-1}function lineComparePrice($){const xn=oneTimePrice($);return xn!==null?xn*$.quantity:$.cost?Math.max(getPrice($.cost.compareAtAmountPerQuantity),getPrice($.merchandise?.compareAtPrice),getPrice($.merchandise?.price))*$.quantity:linePrice($)+lineDiscount($)}function lineDiscount($){if($.cost)return lineComparePrice($)-linePrice($);const{merchandise:xn}=$,En=Math.max(0,getPrice(xn?.compareAtPrice)-getPrice(xn?.price));return getScriptDiscounts($)+En*$.quantity}function groupComparePrice($){const xn=$.reduce((En,Nn)=>En+linePrice(Nn),0);return Math.max(xn,$.reduce((En,Nn)=>En+lineComparePrice(Nn),0))}function getScriptDiscounts($){return $?.discountAllocations?$.discountAllocations.reduce((xn,En)=>xn+getDiscountValue(En),0):0}function cartCalcSubTotalDiscount($){return groupComparePrice($.lines)-cartCalcSubTotal($)}function cartCalcSubTotal($){return $.lines.reduce((xn,En)=>xn+linePrice(En),0)}function isWhiteSpace($){return $===9||$===32}function printBlockString($,xn){const En=$.replace(/"""/g,'\\"""'),Nn=En.split(/\r\n|[\n\r]/g),Tn=Nn.length===1,$n=Nn.length>1&&Nn.slice(1).every(Cl=>Cl.length===0||isWhiteSpace(Cl.charCodeAt(0))),kl=En.endsWith('\\"""'),xl=$.endsWith('"')&&!kl,Nl=$.endsWith("\\"),Rl=xl||Nl,Fl=!Tn||$.length>70||Rl||$n||kl;let Al="";const Tl=Tn&&isWhiteSpace($.charCodeAt(0));return(Fl&&!Tl||$n)&&(Al+=` `),Al+=En,(Fl||Rl)&&(Al+=` `),'"""'+Al+'"""'}function printString($){return`"${$.replace(escapedRegExp,escapedReplacer)}"`}const escapedRegExp=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer($){return escapeSequences[$.charCodeAt(0)]}const escapeSequences=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function devAssert($,xn){if(!!!$)throw new Error(xn)}const MAX_ARRAY_LENGTH=10,MAX_RECURSIVE_DEPTH=2;function inspect($){return formatValue($,[])}function formatValue($,xn){switch(typeof $){case"string":return JSON.stringify($);case"function":return $.name?`[function ${$.name}]`:"[function]";case"object":return formatObjectValue($,xn);default:return String($)}}function formatObjectValue($,xn){if($===null)return"null";if(xn.includes($))return"[Circular]";const En=[...xn,$];if(isJSONable($)){const Nn=$.toJSON();if(Nn!==$)return typeof Nn=="string"?Nn:formatValue(Nn,En)}else if(Array.isArray($))return formatArray($,En);return formatObject($,En)}function isJSONable($){return typeof $.toJSON=="function"}function formatObject($,xn){const En=Object.entries($);return En.length===0?"{}":xn.length>MAX_RECURSIVE_DEPTH?"["+getObjectTag($)+"]":"{ "+En.map(([Tn,$n])=>Tn+": "+formatValue($n,xn)).join(", ")+" }"}function formatArray($,xn){if($.length===0)return"[]";if(xn.length>MAX_RECURSIVE_DEPTH)return"[Array]";const En=Math.min(MAX_ARRAY_LENGTH,$.length),Nn=$.length-En,Tn=[];for(let $n=0;$n1&&Tn.push(`... ${Nn} more items`),"["+Tn.join(", ")+"]"}function getObjectTag($){const xn=Object.prototype.toString.call($).replace(/^\[object /,"").replace(/]$/,"");if(xn==="Object"&&typeof $.constructor=="function"){const En=$.constructor.name;if(typeof En=="string"&&En!=="")return En}return xn}const QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},kindValues=new Set(Object.keys(QueryDocumentKeys));function isNode($){const xn=$?.kind;return typeof xn=="string"&&kindValues.has(xn)}var OperationTypeNode;(function($){$.QUERY="query",$.MUTATION="mutation",$.SUBSCRIPTION="subscription"})(OperationTypeNode||(OperationTypeNode={}));var Kind;(function($){$.NAME="Name",$.DOCUMENT="Document",$.OPERATION_DEFINITION="OperationDefinition",$.VARIABLE_DEFINITION="VariableDefinition",$.SELECTION_SET="SelectionSet",$.FIELD="Field",$.ARGUMENT="Argument",$.FRAGMENT_SPREAD="FragmentSpread",$.INLINE_FRAGMENT="InlineFragment",$.FRAGMENT_DEFINITION="FragmentDefinition",$.VARIABLE="Variable",$.INT="IntValue",$.FLOAT="FloatValue",$.STRING="StringValue",$.BOOLEAN="BooleanValue",$.NULL="NullValue",$.ENUM="EnumValue",$.LIST="ListValue",$.OBJECT="ObjectValue",$.OBJECT_FIELD="ObjectField",$.DIRECTIVE="Directive",$.NAMED_TYPE="NamedType",$.LIST_TYPE="ListType",$.NON_NULL_TYPE="NonNullType",$.SCHEMA_DEFINITION="SchemaDefinition",$.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",$.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",$.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",$.FIELD_DEFINITION="FieldDefinition",$.INPUT_VALUE_DEFINITION="InputValueDefinition",$.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",$.UNION_TYPE_DEFINITION="UnionTypeDefinition",$.ENUM_TYPE_DEFINITION="EnumTypeDefinition",$.ENUM_VALUE_DEFINITION="EnumValueDefinition",$.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",$.DIRECTIVE_DEFINITION="DirectiveDefinition",$.SCHEMA_EXTENSION="SchemaExtension",$.DIRECTIVE_EXTENSION="DirectiveExtension",$.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",$.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",$.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",$.UNION_TYPE_EXTENSION="UnionTypeExtension",$.ENUM_TYPE_EXTENSION="EnumTypeExtension",$.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",$.TYPE_COORDINATE="TypeCoordinate",$.MEMBER_COORDINATE="MemberCoordinate",$.ARGUMENT_COORDINATE="ArgumentCoordinate",$.DIRECTIVE_COORDINATE="DirectiveCoordinate",$.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Kind||(Kind={}));const BREAK=Object.freeze({});function visit($,xn,En=QueryDocumentKeys){const Nn=new Map;for(const Ll of Object.values(Kind))Nn.set(Ll,getEnterLeaveForKind(xn,Ll));let Tn,$n=Array.isArray($),kl=[$],xl=-1,Nl=[],Rl=$,Fl,Al;const Tl=[],Cl=[];do{xl++;const Ll=xl===kl.length,$l=Ll&&Nl.length!==0;if(Ll){if(Fl=Cl.length===0?void 0:Tl[Tl.length-1],Rl=Al,Al=Cl.pop(),$l)if($n){Rl=Rl.slice();let Bl=0;for(const[zl,Ul]of Nl){const Gl=zl-Bl;Ul===null?(Rl.splice(Gl,1),Bl++):Rl[Gl]=Ul}}else{Rl={...Rl};for(const[Bl,zl]of Nl)Rl[Bl]=zl}xl=Tn.index,kl=Tn.keys,Nl=Tn.edits,$n=Tn.inArray,Tn=Tn.prev}else if(Al){if(Fl=$n?xl:kl[xl],Rl=Al[Fl],Rl==null)continue;Tl.push(Fl)}let Vl;if(!Array.isArray(Rl)){var Il,Ml;isNode(Rl)||devAssert(!1,`Invalid AST Node: ${inspect(Rl)}.`);const Bl=Ll?(Il=Nn.get(Rl.kind))===null||Il===void 0?void 0:Il.leave:(Ml=Nn.get(Rl.kind))===null||Ml===void 0?void 0:Ml.enter;if(Vl=Bl?.call(xn,Rl,Fl,Al,Tl,Cl),Vl===BREAK)break;if(Vl===!1){if(!Ll){Tl.pop();continue}}else if(Vl!==void 0&&(Nl.push([Fl,Vl]),!Ll))if(isNode(Vl))Rl=Vl;else{Tl.pop();continue}}if(Vl===void 0&&$l&&Nl.push([Fl,Rl]),Ll)Tl.pop();else{var Dl;Tn={inArray:$n,index:xl,keys:kl,edits:Nl,prev:Tn},$n=Array.isArray(Rl),kl=$n?Rl:(Dl=En[Rl.kind])!==null&&Dl!==void 0?Dl:[],xl=-1,Nl=[],Al&&Cl.push(Al),Al=Rl}}while(Tn!==void 0);return Nl.length!==0?Nl[Nl.length-1][1]:$}function getEnterLeaveForKind($,xn){const En=$[xn];return typeof En=="object"?En:typeof En=="function"?{enter:En,leave:void 0}:{enter:$.enter,leave:$.leave}}function print($){return visit($,printDocASTReducer)}const MAX_LINE_LENGTH=80,printDocASTReducer={Name:{leave:$=>$.value},Variable:{leave:$=>"$"+$.name},Document:{leave:$=>join($.definitions,` `)},OperationDefinition:{leave($){const xn=hasMultilineItems($.variableDefinitions)?wrap(`( `,join($.variableDefinitions,` `),` )`):wrap("(",join($.variableDefinitions,", "),")"),En=wrap("",$.description,` `)+join([$.operation,join([$.name,xn]),join($.directives," ")]," ");return(En==="query"?"":En+" ")+$.selectionSet}},VariableDefinition:{leave:({variable:$,type:xn,defaultValue:En,directives:Nn,description:Tn})=>wrap("",Tn,` `)+$+": "+xn+wrap(" = ",En)+wrap(" ",join(Nn," "))},SelectionSet:{leave:({selections:$})=>block($)},Field:{leave({alias:$,name:xn,arguments:En,directives:Nn,selectionSet:Tn}){const $n=wrap("",$,": ")+xn;let kl=$n+wrap("(",join(En,", "),")");return kl.length>MAX_LINE_LENGTH&&(kl=$n+wrap(`( `,indent(join(En,` `)),` )`)),join([kl,join(Nn," "),Tn]," ")}},Argument:{leave:({name:$,value:xn})=>$+": "+xn},FragmentSpread:{leave:({name:$,directives:xn})=>"..."+$+wrap(" ",join(xn," "))},InlineFragment:{leave:({typeCondition:$,directives:xn,selectionSet:En})=>join(["...",wrap("on ",$),join(xn," "),En]," ")},FragmentDefinition:{leave:({name:$,typeCondition:xn,variableDefinitions:En,directives:Nn,selectionSet:Tn,description:$n})=>wrap("",$n,` `)+`fragment ${$}${wrap("(",join(En,", "),")")} on ${xn} ${wrap("",join(Nn," ")," ")}`+Tn},IntValue:{leave:({value:$})=>$},FloatValue:{leave:({value:$})=>$},StringValue:{leave:({value:$,block:xn})=>xn?printBlockString($):printString($)},BooleanValue:{leave:({value:$})=>$?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:$})=>$},ListValue:{leave:({values:$})=>"["+join($,", ")+"]"},ObjectValue:{leave:({fields:$})=>"{"+join($,", ")+"}"},ObjectField:{leave:({name:$,value:xn})=>$+": "+xn},Directive:{leave:({name:$,arguments:xn})=>"@"+$+wrap("(",join(xn,", "),")")},NamedType:{leave:({name:$})=>$},ListType:{leave:({type:$})=>"["+$+"]"},NonNullType:{leave:({type:$})=>$+"!"},SchemaDefinition:{leave:({description:$,directives:xn,operationTypes:En})=>wrap("",$,` `)+join(["schema",join(xn," "),block(En)]," ")},OperationTypeDefinition:{leave:({operation:$,type:xn})=>$+": "+xn},ScalarTypeDefinition:{leave:({description:$,name:xn,directives:En})=>wrap("",$,` `)+join(["scalar",xn,join(En," ")]," ")},ObjectTypeDefinition:{leave:({description:$,name:xn,interfaces:En,directives:Nn,fields:Tn})=>wrap("",$,` `)+join(["type",xn,wrap("implements ",join(En," & ")),join(Nn," "),block(Tn)]," ")},FieldDefinition:{leave:({description:$,name:xn,arguments:En,type:Nn,directives:Tn})=>wrap("",$,` `)+xn+(hasMultilineItems(En)?wrap(`( `,indent(join(En,` `)),` )`):wrap("(",join(En,", "),")"))+": "+Nn+wrap(" ",join(Tn," "))},InputValueDefinition:{leave:({description:$,name:xn,type:En,defaultValue:Nn,directives:Tn})=>wrap("",$,` `)+join([xn+": "+En,wrap("= ",Nn),join(Tn," ")]," ")},InterfaceTypeDefinition:{leave:({description:$,name:xn,interfaces:En,directives:Nn,fields:Tn})=>wrap("",$,` `)+join(["interface",xn,wrap("implements ",join(En," & ")),join(Nn," "),block(Tn)]," ")},UnionTypeDefinition:{leave:({description:$,name:xn,directives:En,types:Nn})=>wrap("",$,` `)+join(["union",xn,join(En," "),wrap("= ",join(Nn," | "))]," ")},EnumTypeDefinition:{leave:({description:$,name:xn,directives:En,values:Nn})=>wrap("",$,` `)+join(["enum",xn,join(En," "),block(Nn)]," ")},EnumValueDefinition:{leave:({description:$,name:xn,directives:En})=>wrap("",$,` `)+join([xn,join(En," ")]," ")},InputObjectTypeDefinition:{leave:({description:$,name:xn,directives:En,fields:Nn})=>wrap("",$,` `)+join(["input",xn,join(En," "),block(Nn)]," ")},DirectiveDefinition:{leave:({description:$,name:xn,arguments:En,directives:Nn,repeatable:Tn,locations:$n})=>wrap("",$,` `)+"directive @"+xn+(hasMultilineItems(En)?wrap(`( `,indent(join(En,` `)),` )`):wrap("(",join(En,", "),")"))+wrap(" ",join(Nn," "))+(Tn?" repeatable":"")+" on "+join($n," | ")},SchemaExtension:{leave:({directives:$,operationTypes:xn})=>join(["extend schema",join($," "),block(xn)]," ")},ScalarTypeExtension:{leave:({name:$,directives:xn})=>join(["extend scalar",$,join(xn," ")]," ")},ObjectTypeExtension:{leave:({name:$,interfaces:xn,directives:En,fields:Nn})=>join(["extend type",$,wrap("implements ",join(xn," & ")),join(En," "),block(Nn)]," ")},InterfaceTypeExtension:{leave:({name:$,interfaces:xn,directives:En,fields:Nn})=>join(["extend interface",$,wrap("implements ",join(xn," & ")),join(En," "),block(Nn)]," ")},UnionTypeExtension:{leave:({name:$,directives:xn,types:En})=>join(["extend union",$,join(xn," "),wrap("= ",join(En," | "))]," ")},EnumTypeExtension:{leave:({name:$,directives:xn,values:En})=>join(["extend enum",$,join(xn," "),block(En)]," ")},InputObjectTypeExtension:{leave:({name:$,directives:xn,fields:En})=>join(["extend input",$,join(xn," "),block(En)]," ")},DirectiveExtension:{leave:({name:$,directives:xn})=>join(["extend directive @"+$,join(xn," ")]," ")},TypeCoordinate:{leave:({name:$})=>$},MemberCoordinate:{leave:({name:$,memberName:xn})=>join([$,wrap(".",xn)])},ArgumentCoordinate:{leave:({name:$,fieldName:xn,argumentName:En})=>join([$,wrap(".",xn),wrap("(",En,":)")])},DirectiveCoordinate:{leave:({name:$})=>join(["@",$])},DirectiveArgumentCoordinate:{leave:({name:$,argumentName:xn})=>join(["@",$,wrap("(",xn,":)")])}};function join($,xn=""){var En;return(En=$?.filter(Nn=>Nn).join(xn))!==null&&En!==void 0?En:""}function block($){return wrap(`{ `,indent(join($,` `)),` }`)}function wrap($,xn,En=""){return xn!=null&&xn!==""?$+xn+En:""}function indent($){return wrap(" ",$.replace(/\n/g,` `))}function hasMultilineItems($){var xn;return(xn=$?.some(En=>En.includes(` `)))!==null&&xn!==void 0?xn:!1}const SCREEN_SIZES={xs:"375px",sm:"640px",md:"750px",lg:"1024px",senit:"1104px",xl:"1300px","2xl":"1480px","3xl":"1600px","4xl":"1920px"},FONT_SIZES={h2:"34px",10:"0.625rem",15:"15px",18:"1.125rem",20:"1.25rem",22:"1.375rem","e1/8":"0.125em","e2/8":"0.25em","e3/8":"0.375em","e4/8":"0.50em","e5/8":"0.625em","e6/8":"0.75em","e7/8":"0.875em",e:"1em",e2:"1.125em",e3:"1.25em",e4:"1.375em",e5:"1.50em",e6:"1.75em",e7:"1.875em",e8:"2em",product:"2.85rem",header:["32px","1.1"],"header-lg":["48px","1.1"]},CDN_URL=`https://${window.Shopify.cdnHost}/shop`;window.theme.stylesheet.split("/").slice(0,-1).join("/");function getToken(){switch(getStoreCountry()){case"NO":return"db035772af39a34c43cc70d0c7ffd8bd";case"EU":return"8e85aa52c68e5d2b38e916f9e982090b";case"SE":return"7c1922d485362e0ceffa14a3c3491664"}}function getOnlineStoreToken(){try{const $=document.getElementById("shopify-features")?.textContent;return $&&JSON.parse($).accessToken||getToken()}catch{return getToken()}}const STOREFRONT_CONFIG={domain:location.origin,token:getToken(),onlineStoreToken:getOnlineStoreToken()},__PRODUCT_IDS=getStoreCountry()==="NO"?{Auk:"gid://shopify/Product/4347673149517",ExtraNutrients:"gid://shopify/Product/7676091498728",ChiliKit:"gid://shopify/Product/7542740353256"}:getStoreCountry()==="SE"?{Auk:"gid://shopify/Product/7994870006040",ExtraNutrients:"gid://shopify/Product/7994870366488",ChiliKit:"gid://shopify/Product/7994869940504"}:{Auk:"gid://shopify/Product/7535808151798",ExtraNutrients:"gid://shopify/Product/7537534271734",ChiliKit:"gid://shopify/Product/7535808053494"},PRODUCT_IDS=__PRODUCT_IDS,BREAKPOINTS=transform(SCREEN_SIZES,($,xn,En)=>$[En]=Number.parseInt(xn,10)),FUNCTIONS_REGION=[CountryCode.US,CountryCode.CA].includes(window.localization.country.iso_code)?"us-central1":"europe-west1",FB_PROJECT_ID="auk-api",AUK_API_URL=`https://${FUNCTIONS_REGION}-${FB_PROJECT_ID}.cloudfunctions.net`,API_RETRIES=4,API_RETRY_DELAY_MS=1e3,STORE_ENVIRONMENT=(()=>{switch("production"){case"production":switch(Number(window.theme.id)){case 129173586152:case 130260992246:case 137505145112:return"production";default:return"staging"}return"development"}})();function isError$1($){return typeof $?.message=="string"}class AukError extends Error{contexts;error;constructor(xn,En,Nn={}){super(xn),this.name="AukError",this.message=xn,isError$1(En)&&(this.message+=`: ${En.message}`),this.error=En,this.contexts={error:isError$1(En)?{message:En.message,name:En.name,stack:En.stack}:{},...Nn}}}class GQLError extends AukError{transport;constructor(xn,En=!1){super((isArray(xn)?xn[0]?.message:xn.message)??"Unknown Error",void 0,isArray(xn)?{errors:{...xn}}:{error:{...xn}}),this.name="GQLError",this.transport=En}}class CartError extends GQLError{constructor(xn,En){super(isError(En)?En.errors:[{message:xn}]),this.name="CartError",this.message=xn}}function imageUrl($,xn){if(!isPresent($))return;const En=typeof $=="string"?$.toString():"url"in $?$.url:"src"in $?$.src:null;if(!En)return;const Nn=En.split(".").pop();switch(typeof xn){case"string":return En.replace(`.${Nn}`,`_${xn}.${Nn}`);case"number":return En.replace(`.${Nn}`,`_x${xn}.${Nn}`);default:{const Tn=new URL(En.startsWith("//")?`https:${En}`:En),$n=window.innerWidth*window.devicePixelRatio,kl=xn??{width:Math.ceil($n/100)*100};return Object.entries(kl).forEach(([xl,Nl])=>Tn.searchParams.set(xl,typeof Nl=="number"?Nl.toFixed(0):Nl)),Tn.toString()}}}function filesUrl($){return`${CDN_URL}/files/${$}`}function productUrl($){if(!$)return;const xn=isObject($)?$.handle:$;return`${window.Shopify.routes.root}products/${xn}`}function isShop(){return includes(location.pathname,"/collections","/products")}function hasVariants($){return $.variants.length>1}function isHome(){return location.pathname==window.Shopify.routes.root}function numberFormatter($){const xn=getCurrentCountry(),En=getCurrentLanguage();return new Intl.NumberFormat(`${En.locale}-${xn.iso_code.toUpperCase()}`,$)}function isMediaImage($){return isPresent($)&&isImage$1($.image)}function isImage$1($){return isPresent($)&&isPresent($.url)}function extractNodes($){return $.edges.map(xn=>extractConnections(xn.node))}function extractConnections($){const xn=En=>isArray(En?.edges);return $==null?null:xn($)?extractNodes($):isArray($)?$.filter(En=>En).map(En=>extractConnections(En)):Object.entries($).map(([En,Nn])=>[En,xn(Nn)?extractNodes(Nn):isObject(Nn)&&!isArray(Nn)?extractConnections(Nn):Nn]).reduce((En,[Nn,Tn])=>({...En,[Nn]:Tn}),{})}function toGqlProduct($){const xn=Nn=>({currencyCode:getCurrentCountry().currency.symbol,amount:(Nn/100).toFixed(2)}),En=toGraphId($.id,"product");return{id:En,title:$.title,subtitle:{value:$.subtitle||""},onlineStoreUrl:productUrl($),availableForSale:!0,handle:$.handle,productType:$.type,requiresSellingPlan:!1,variants:$.variants.map(Nn=>({id:toGraphId(Nn.id,"variant"),title:Nn.title,availableForSale:Nn.available,price:xn(Nn.price),compareAtPrice:Nn.compare_at_price?xn(Nn.compare_at_price):null,product:{id:En,handle:$.handle,title:$.title},selectedOptions:$.options.map((Tn,$n)=>({name:Tn,value:Nn.options[$n]})),upsell1:null,upsell2:null,upsell3:null,offer:null,image_2:null,image_3:null,image_4:null,image_5:null,image:null,option_color:null,option_image:null,sellingPlanAllocations:[]})),featuredImage:{id:null,url:$.featured_image,altText:null},images:$.images.map(Nn=>({id:null,url:Nn,altText:null})),compareAtPriceRange:{maxVariantPrice:xn($.compare_at_price_max),minVariantPrice:xn($.compare_at_price_min)},priceRange:{maxVariantPrice:xn($.price_max),minVariantPrice:xn($.price_min)},options:$.options.map(Nn=>({name:Nn,optionValues:[]})),descriptionHtml:$.description,upsell1:$.upsell1?{value:$.upsell1,reference:null}:null,upsell2:$.upsell2?{value:$.upsell2,reference:null}:null,upsell3:$.upsell3?{value:$.upsell3,reference:null}:null,defaultVariant:null,upsell1_offer:null,upsell1_expiry:null,upsell2_offer:null,upsell2_expiry:null,upsell3_offer:null,upsell3_expiry:null,upsells:null,gallery_overrides:null,subscription_images:null,subscription_override:null,badge:null,fun_fact_1:null,fun_fact_2:null,fun_fact_3:null,review_count:null,reviews_average:null,offer:null,seed_germination:null,seed_harvest:null,seed_lifespan:null,seed_amount:null,opaque:null,hideMixedVariantDeliveryWarning:null}}function extractUpsells($,xn){return[1,2,3].map(En=>{const Nn=$[`upsell${En}_offer`]?.value,Tn=$[`upsell${En}`]?.reference?.variants?.nodes?.[0]?.id,$n=$?.[`upsell${En}_expiry`]?.value;return{id:xn?.[`upsell${En}`]?.value||Tn,label:Nn,expiration:$n?new Date($n):null}}).filter(En=>En.id!==void 0)}function isSeed($){return["Seeds","Samen","Graines"].includes($.productType)}function isOpaque($){return $.opaque?.value==="true"}function gidToId($){const xn=$?.split("/")?.pop();if(xn){const En=parseNumber(xn);return isNaN(En)?$:En}return $}function toGraphId($,xn){if($?.toString().includes("gid://"))return $;switch(xn){case"product":return`gid://shopify/Product/${$}`;case"variant":return`gid://shopify/ProductVariant/${$}`}}function hasTransportError($){const xn=$?.errors;return isArray(xn)&&xn.some(En=>En instanceof GQLError&&En.transport)}function isOk($){return $ instanceof Error?!1:isPresent($)&&isPresent($.data)&&!hasTransportError($)}function isError($){const xn=$?.errors;return isArray(xn)?xn.length>0:isPresent(xn)}async function shopifyFetch($,xn,En,Nn){const Tn={country:getCurrentCountry().iso_code,language:window.localization.language.shop_locale.locale.toUpperCase()};return getShopifyData($,{...Tn,...xn},En,Nn)}function getOperation($){return $.definitions.find(xn=>xn.kind==="OperationDefinition")}function getDocumentName($){const xn=getOperation($);return xn?xn.name?.value+capitalize$1(xn.operation):null}const ONLINE_STORE_MUTATIONS=["cartCreate","cartAdd","cartUpdate"];function getAccessToken($){const xn=getOperation($);return xn?.operation==="mutation"&&ONLINE_STORE_MUTATIONS.includes(xn.name?.value??"")?STOREFRONT_CONFIG.onlineStoreToken:STOREFRONT_CONFIG.token}const TRANSIENT_ERROR=/internal error/i,ERROR_BODY_CONTEXT_LIMIT=500;function isTransientError($){const{errors:xn}=$;return!isArray(xn)||xn.length===0?!1:xn.every(En=>TRANSIENT_ERROR.test(En.message??""))}async function getShopifyData($,xn,En,Nn=3){const Tn=typeof $=="string"?$:print($);try{const $n=await fetch(`${STOREFRONT_CONFIG.domain}/api/2026-04/graphql.json`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-Shopify-Storefront-Access-Token":getAccessToken($)},body:JSON.stringify({query:Tn,variables:xn}),signal:En});if($n.ok){const kl=await $n.json();return Nn&&getOperation($)?.operation==="query"&&isTransientError(kl)?getShopifyData($,xn,En,Nn-1):extractData(kl)}else{if(Nn&&($n.status>=500||[403,401].includes($n.status)))return getShopifyData($,xn,En,Nn-1);const kl=getDocumentName($),xl=(await $n.text()).replace(/\s+/g," ").slice(0,ERROR_BODY_CONTEXT_LIMIT),Nl=new AukError(`${kl??$.kind} operation failed: ${$n.status} ${$n.statusText}`);return analytics()?.captureException(Nl,{category:"storefront-api",operation:kl,...xn,status:$n.status,statusText:$n.statusText,body:xl}),{data:null,errors:[Nl]}}}catch($n){const kl=En?.aborted||$n instanceof Error&&$n.name==="AbortError";if(Nn&&!kl)return getShopifyData($,xn,En,Nn-1);const xl=$n instanceof Error?$n:new Error("Unknown error");return analytics()?.captureException(xl,{category:"storefront-api",operation:getDocumentName($),...xn}),{data:null,errors:[new AukError(`${getDocumentName($)??$.kind} operation failed`,$n,{variables:xn})]}}}function extractData($){if(isArray($.data))return{data:$.data,errors:extractErrors($)};if(!$.data)return{data:null,errors:extractErrors($)};let xn=$.data;xn.__typename==="Mutation"&&(xn=omitBy(xn,($n,kl)=>kl==="__typename"),xn=Object.values(xn)[0]);const En=extractErrors({...$,data:xn}),Nn=omitBy(xn,($n,kl)=>kl.toLowerCase().includes("errors")),Tn=Object.values(Nn);if(Tn.length>1){const $n=new AukError("Unexpected query result shape");return console.error($n.message,Tn),analytics()?.captureException($n,{entries:Tn}),{data:null,errors:En!==null?[$n,...En]:[$n]}}return{data:extractConnections(Tn.pop()),errors:En}}function extractErrors($){const xn=Nn=>Object.values(pickBy(Nn,(Tn,$n)=>$n.toLowerCase().includes("errors"))).flat(3).filter(isPresent),En=[...xn($).map(Nn=>new GQLError(Nn,!0)),...xn($.data).map(Nn=>new GQLError(Nn))];return En.length>0?En:null}function useShopifyQuery($,xn,En={}){const{signal:Nn,...Tn}=En??{},$n=useQuery({queryKey:[$,xn],queryFn:()=>shopifyFetch($,xn,Nn,3),retry:!0,retryDelay:kl=>1e3*2**kl,...Tn});return{...$n,data:$n.data?.data,error:$n.error??(Array.isArray($n.data?.errors)?$n.data?.errors[0]??null:$n.data?.errors)}}function toConvergeCartLine($){return{...toConvergeProduct($),quantity:$.quantity,discount:lineDiscount($),sku:$.merchandise?.sku??void 0,image_url:$.merchandise?.image?.url}}function toConvergeProduct($){return{product_id:gidToId($.id).toString(),variant_id:$.id,name:$.product?.title,variant_name:$.title,price:Number.parseFloat($.price?.amount??"0"),currency:$.price?.currencyCode??"EUR",image_url:"image"in $&&$.image?$.image.url:void 0}}const ecommerceEventMapping={$page_load:"Pageview","Viewed Product":"Product Viewed","Selected Product":null,"Viewed Collection":"Product List Viewed","Added To Cart":"Product Added","Removed From Cart":"Product Removed","Added To Wishlist":null,"Removed From Wishlist":null,Searched:"Product List Filtered","Searched For Store":null,"Logged In":null,"Signed Up":null,"Subscribed To Newsletter":null,"Viewed Cart":"Cart Viewed","Started Checkout":"Checkout Started","Added Payment Info":"Payment Info Entered","Placed Order":"Order Completed","Customize Product":null},IGNORED_ERROR_VALUES=["chrome-extension://","Distributor.getValue","window.webkit.messageHandlers","AutofillCallbackHandler","registerTool","ModelContext"],IGNORED_GLOBALS=["Load failed","Failed to fetch","Request failed with status code","Unterminated regular expression literal"],IGNORED_SOURCES=["https://cdn.shopify.com/extensions/","shopifycloud/","/cdn/wpm/","","webkit-masked-url://","optimonk.com","klarna.com","omni","posthog","p.auk.com/pixels/"];function getFrameSource($){return"junk_drawer"in $?$.junk_drawer?.raw_frame?.filename:"filename"in $?$.filename:void 0}const beforeSend=$=>{if(!$)return $;try{if($.properties.event_name=$.event,$.properties.aukEvent)return $;const{aukError:xn}=$.properties,En=$.properties;if($.event==="$exception"&&En.$host?.endsWith(".translate.goog"))return null;const Nn=En.$exception_list?.filter(isPresent)??[],Tn=Nn.flatMap($n=>($n.stacktrace?.frames??[]).map(getFrameSource).filter(isPresent));if(Tn.some($n=>includes($n,...IGNORED_SOURCES)))return null;for(const $n of Nn){if($n.stacktrace?.type==="raw"&&($n.stacktrace?.frames??[]).some(xl=>xl.function?.includes("extractSchemaValuesFromSchemaOrg"))){$.properties.$exception_fingerprint="schema-extraction-error";continue}if(includes($n.value,...IGNORED_ERROR_VALUES)||!xn&&!Tn.length&&includes($n.value,...IGNORED_GLOBALS))return null}return includes(JSON.stringify($),...IGNORED_SOURCES)?null:$}catch(xn){return console.error("Error filtering event",xn),$}},posthogOptions={api_host:"https://a.auk.com",defaults:"2025-11-30",cross_subdomain_cookie:!0,capture_pageview:!1,capture_pageleave:!0,disable_conversations:!0,capture_exceptions:{capture_unhandled_errors:!0,capture_unhandled_rejections:!0,capture_console_errors:!1},error_tracking:{__exceptionRateLimiterRefillRate:1,__exceptionRateLimiterBucketSize:3},before_send:beforeSend},useAnalytics=()=>{const $=usePostHog();return reactExports.useEffect(()=>{$.register({theme:window.theme.id,role:window.theme.role,environment:STORE_ENVIRONMENT,site:STOREFRONT_CONFIG.domain,version:"2.118.11",service:"web"})},[$]),reactExports.useMemo(()=>wrapPosthog({posthogInstance:$}),[$])},wrapPosthog=({posthogInstance:$})=>({track:(Rl,Fl)=>{try{return $.capture(Rl,{...Fl,aukEvent:!0})}catch(Al){console.error("Error tracking event",Rl,Fl,Al)}},capture:(Rl,Fl,Al)=>{try{return window.cvg?.({method:"track",eventName:Rl,properties:Fl}),$.capture(ecommerceEventMapping[Rl]??Rl,{...Fl,aukEvent:!0},Al)}catch(Tl){console.error("Error capturing event",Rl,Tl)}},captureException:(Rl,Fl)=>{try{const Al=Rl instanceof AukError?Rl.error:Rl.cause,Tl=Rl instanceof AukError?Rl.contexts:{};return $.captureException(Al??Rl,{...Fl,...Tl,aukError:!0})}catch(Al){console.error("Error capturing exception",Rl,Al)}},identify:(...Rl)=>{try{return $.identify(...Rl)}catch(Fl){console.error("Error identifying user",Rl,Fl)}},isIdentified:()=>$._isIdentified(),register:(...Rl)=>{try{return $.register(...Rl)}catch(Fl){console.error("Error registering properties",Rl,Fl)}},reset:()=>$.reset(),shutdown:async()=>{try{await $.shutdown()}catch(Rl){console.error("Error shutting down posthog",Rl)}}}),analytics=()=>wrapPosthog({posthogInstance:El}),reportImageFailures=()=>{const $=window.__aukImgFailures;if(!$)return;const xn=()=>{for(const{phase:En,...Nn}of $.queue.splice(0))En==="recovered"?analytics().track("Image Load Recovered",{src:Nn.src,sinceNavMs:Nn.sinceNavMs}):analytics().track("Image Load Failed",{...Nn,retry:En==="retry_failed"})};$.flush=xn,xn()};var classnames$1={exports:{}};var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,(function($){(function(){var xn={}.hasOwnProperty;function En(){for(var $n="",kl=0;kl{const xn=createClassMap($),{conflictingClassGroups:En,conflictingClassGroupModifiers:Nn}=$;return{getClassGroupId:kl=>{const xl=kl.split(CLASS_PART_SEPARATOR);return xl[0]===""&&xl.length!==1&&xl.shift(),getGroupRecursive(xl,xn)||getGroupIdForArbitraryProperty(kl)},getConflictingClassGroupIds:(kl,xl)=>{const Nl=En[kl]||[];return xl&&Nn[kl]?[...Nl,...Nn[kl]]:Nl}}},getGroupRecursive=($,xn)=>{if($.length===0)return xn.classGroupId;const En=$[0],Nn=xn.nextPart.get(En),Tn=Nn?getGroupRecursive($.slice(1),Nn):void 0;if(Tn)return Tn;if(xn.validators.length===0)return;const $n=$.join(CLASS_PART_SEPARATOR);return xn.validators.find(({validator:kl})=>kl($n))?.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=$=>{if(arbitraryPropertyRegex.test($)){const xn=arbitraryPropertyRegex.exec($)[1],En=xn?.substring(0,xn.indexOf(":"));if(En)return"arbitrary.."+En}},createClassMap=$=>{const{theme:xn,prefix:En}=$,Nn={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries($.classGroups),En).forEach(([$n,kl])=>{processClassesRecursively(kl,Nn,$n,xn)}),Nn},processClassesRecursively=($,xn,En,Nn)=>{$.forEach(Tn=>{if(typeof Tn=="string"){const $n=Tn===""?xn:getPart(xn,Tn);$n.classGroupId=En;return}if(typeof Tn=="function"){if(isThemeGetter(Tn)){processClassesRecursively(Tn(Nn),xn,En,Nn);return}xn.validators.push({validator:Tn,classGroupId:En});return}Object.entries(Tn).forEach(([$n,kl])=>{processClassesRecursively(kl,getPart(xn,$n),En,Nn)})})},getPart=($,xn)=>{let En=$;return xn.split(CLASS_PART_SEPARATOR).forEach(Nn=>{En.nextPart.has(Nn)||En.nextPart.set(Nn,{nextPart:new Map,validators:[]}),En=En.nextPart.get(Nn)}),En},isThemeGetter=$=>$.isThemeGetter,getPrefixedClassGroupEntries=($,xn)=>xn?$.map(([En,Nn])=>{const Tn=Nn.map($n=>typeof $n=="string"?xn+$n:typeof $n=="object"?Object.fromEntries(Object.entries($n).map(([kl,xl])=>[xn+kl,xl])):$n);return[En,Tn]}):$,createLruCache=$=>{if($<1)return{get:()=>{},set:()=>{}};let xn=0,En=new Map,Nn=new Map;const Tn=($n,kl)=>{En.set($n,kl),xn++,xn>$&&(xn=0,Nn=En,En=new Map)};return{get($n){let kl=En.get($n);if(kl!==void 0)return kl;if((kl=Nn.get($n))!==void 0)return Tn($n,kl),kl},set($n,kl){En.has($n)?En.set($n,kl):Tn($n,kl)}}},IMPORTANT_MODIFIER="!",createParseClassName=$=>{const{separator:xn,experimentalParseClassName:En}=$,Nn=xn.length===1,Tn=xn[0],$n=xn.length,kl=xl=>{const Nl=[];let Rl=0,Fl=0,Al;for(let Dl=0;DlFl?Al-Fl:void 0;return{modifiers:Nl,hasImportantModifier:Cl,baseClassName:Il,maybePostfixModifierPosition:Ml}};return En?xl=>En({className:xl,parseClassName:kl}):kl},sortModifiers=$=>{if($.length<=1)return $;const xn=[];let En=[];return $.forEach(Nn=>{Nn[0]==="["?(xn.push(...En.sort(),Nn),En=[]):En.push(Nn)}),xn.push(...En.sort()),xn},createConfigUtils=$=>({cache:createLruCache($.cacheSize),parseClassName:createParseClassName($),...createClassGroupUtils($)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=($,xn)=>{const{parseClassName:En,getClassGroupId:Nn,getConflictingClassGroupIds:Tn}=xn,$n=[],kl=$.trim().split(SPLIT_CLASSES_REGEX);let xl="";for(let Nl=kl.length-1;Nl>=0;Nl-=1){const Rl=kl[Nl],{modifiers:Fl,hasImportantModifier:Al,baseClassName:Tl,maybePostfixModifierPosition:Cl}=En(Rl);let Il=!!Cl,Ml=Nn(Il?Tl.substring(0,Cl):Tl);if(!Ml){if(!Il){xl=Rl+(xl.length>0?" "+xl:xl);continue}if(Ml=Nn(Tl),!Ml){xl=Rl+(xl.length>0?" "+xl:xl);continue}Il=!1}const Dl=sortModifiers(Fl).join(":"),Ll=Al?Dl+IMPORTANT_MODIFIER:Dl,$l=Ll+Ml;if($n.includes($l))continue;$n.push($l);const Vl=Tn(Ml,Il);for(let Bl=0;Bl0?" "+xl:xl)}return xl};function twJoin(){let $=0,xn,En,Nn="";for(;${if(typeof $=="string")return $;let xn,En="";for(let Nn=0;Nn<$.length;Nn++)$[Nn]&&(xn=toValue($[Nn]))&&(En&&(En+=" "),En+=xn);return En};function createTailwindMerge($,...xn){let En,Nn,Tn,$n=kl;function kl(Nl){const Rl=xn.reduce((Fl,Al)=>Al(Fl),$());return En=createConfigUtils(Rl),Nn=En.cache.get,Tn=En.cache.set,$n=xl,xl(Nl)}function xl(Nl){const Rl=Nn(Nl);if(Rl)return Rl;const Fl=mergeClassList(Nl,En);return Tn(Nl,Fl),Fl}return function(){return $n(twJoin.apply(null,arguments))}}const fromTheme=$=>{const xn=En=>En[$]||[];return xn.isThemeGetter=!0,xn},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=$=>isNumber($)||stringLengths.has($)||fractionRegex.test($),isArbitraryLength=$=>getIsArbitraryValue($,"length",isLengthOnly),isNumber=$=>!!$&&!Number.isNaN(Number($)),isArbitraryNumber=$=>getIsArbitraryValue($,"number",isNumber),isInteger=$=>!!$&&Number.isInteger(Number($)),isPercent=$=>$.endsWith("%")&&isNumber($.slice(0,-1)),isArbitraryValue=$=>arbitraryValueRegex.test($),isTshirtSize=$=>tshirtUnitRegex.test($),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=$=>getIsArbitraryValue($,sizeLabels,isNever),isArbitraryPosition=$=>getIsArbitraryValue($,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=$=>getIsArbitraryValue($,imageLabels,isImage),isArbitraryShadow=$=>getIsArbitraryValue($,"",isShadow),isAny=()=>!0,getIsArbitraryValue=($,xn,En)=>{const Nn=arbitraryValueRegex.exec($);return Nn?Nn[1]?typeof xn=="string"?Nn[1]===xn:xn.has(Nn[1]):En(Nn[2]):!1},isLengthOnly=$=>lengthUnitRegex.test($)&&!colorFunctionRegex.test($),isNever=()=>!1,isShadow=$=>shadowRegex.test($),isImage=$=>imageRegex.test($),getDefaultConfig=()=>{const $=fromTheme("colors"),xn=fromTheme("spacing"),En=fromTheme("blur"),Nn=fromTheme("brightness"),Tn=fromTheme("borderColor"),$n=fromTheme("borderRadius"),kl=fromTheme("borderSpacing"),xl=fromTheme("borderWidth"),Nl=fromTheme("contrast"),Rl=fromTheme("grayscale"),Fl=fromTheme("hueRotate"),Al=fromTheme("invert"),Tl=fromTheme("gap"),Cl=fromTheme("gradientColorStops"),Il=fromTheme("gradientColorStopPositions"),Ml=fromTheme("inset"),Dl=fromTheme("margin"),Ll=fromTheme("opacity"),$l=fromTheme("padding"),Vl=fromTheme("saturate"),Bl=fromTheme("scale"),zl=fromTheme("sepia"),Ul=fromTheme("skew"),Gl=fromTheme("space"),ql=fromTheme("translate"),Kl=()=>["auto","contain","none"],Jl=()=>["auto","hidden","clip","visible","scroll"],tu=()=>["auto",isArbitraryValue,xn],ru=()=>[isArbitraryValue,xn],Yl=()=>["",isLength,isArbitraryLength],cu=()=>["auto",isNumber,isArbitraryValue],gu=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_u=()=>["solid","dashed","dotted","double","none"],ku=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ou=()=>["start","end","center","between","around","evenly","stretch"],uu=()=>["","0",isArbitraryValue],au=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Wl=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:Wl(),borderColor:[$],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:ru(),borderWidth:Yl(),contrast:Wl(),grayscale:uu(),hueRotate:Wl(),invert:uu(),gap:ru(),gradientColorStops:[$],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:tu(),margin:tu(),opacity:Wl(),padding:ru(),saturate:Wl(),scale:Wl(),sepia:uu(),skew:Wl(),space:ru(),translate:ru()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":au()}],"break-before":[{"break-before":au()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...gu(),isArbitraryValue]}],overflow:[{overflow:Jl()}],"overflow-x":[{"overflow-x":Jl()}],"overflow-y":[{"overflow-y":Jl()}],overscroll:[{overscroll:Kl()}],"overscroll-x":[{"overscroll-x":Kl()}],"overscroll-y":[{"overscroll-y":Kl()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Ml]}],"inset-x":[{"inset-x":[Ml]}],"inset-y":[{"inset-y":[Ml]}],start:[{start:[Ml]}],end:[{end:[Ml]}],top:[{top:[Ml]}],right:[{right:[Ml]}],bottom:[{bottom:[Ml]}],left:[{left:[Ml]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:tu()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:uu()}],shrink:[{shrink:uu()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":cu()}],"col-end":[{"col-end":cu()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":cu()}],"row-end":[{"row-end":cu()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Tl]}],"gap-x":[{"gap-x":[Tl]}],"gap-y":[{"gap-y":[Tl]}],"justify-content":[{justify:["normal",...ou()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ou(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ou(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$l]}],px:[{px:[$l]}],py:[{py:[$l]}],ps:[{ps:[$l]}],pe:[{pe:[$l]}],pt:[{pt:[$l]}],pr:[{pr:[$l]}],pb:[{pb:[$l]}],pl:[{pl:[$l]}],m:[{m:[Dl]}],mx:[{mx:[Dl]}],my:[{my:[Dl]}],ms:[{ms:[Dl]}],me:[{me:[Dl]}],mt:[{mt:[Dl]}],mr:[{mr:[Dl]}],mb:[{mb:[Dl]}],ml:[{ml:[Dl]}],"space-x":[{"space-x":[Gl]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Gl]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,xn]}],"min-w":[{"min-w":[isArbitraryValue,xn,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,xn,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,xn,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,xn,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,xn,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,xn,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[Ll]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[Ll]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._u(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ru()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[Ll]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...gu(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[Il]}],"gradient-via-pos":[{via:[Il]}],"gradient-to-pos":[{to:[Il]}],"gradient-from":[{from:[Cl]}],"gradient-via":[{via:[Cl]}],"gradient-to":[{to:[Cl]}],rounded:[{rounded:[$n]}],"rounded-s":[{"rounded-s":[$n]}],"rounded-e":[{"rounded-e":[$n]}],"rounded-t":[{"rounded-t":[$n]}],"rounded-r":[{"rounded-r":[$n]}],"rounded-b":[{"rounded-b":[$n]}],"rounded-l":[{"rounded-l":[$n]}],"rounded-ss":[{"rounded-ss":[$n]}],"rounded-se":[{"rounded-se":[$n]}],"rounded-ee":[{"rounded-ee":[$n]}],"rounded-es":[{"rounded-es":[$n]}],"rounded-tl":[{"rounded-tl":[$n]}],"rounded-tr":[{"rounded-tr":[$n]}],"rounded-br":[{"rounded-br":[$n]}],"rounded-bl":[{"rounded-bl":[$n]}],"border-w":[{border:[xl]}],"border-w-x":[{"border-x":[xl]}],"border-w-y":[{"border-y":[xl]}],"border-w-s":[{"border-s":[xl]}],"border-w-e":[{"border-e":[xl]}],"border-w-t":[{"border-t":[xl]}],"border-w-r":[{"border-r":[xl]}],"border-w-b":[{"border-b":[xl]}],"border-w-l":[{"border-l":[xl]}],"border-opacity":[{"border-opacity":[Ll]}],"border-style":[{border:[..._u(),"hidden"]}],"divide-x":[{"divide-x":[xl]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[xl]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[Ll]}],"divide-style":[{divide:_u()}],"border-color":[{border:[Tn]}],"border-color-x":[{"border-x":[Tn]}],"border-color-y":[{"border-y":[Tn]}],"border-color-s":[{"border-s":[Tn]}],"border-color-e":[{"border-e":[Tn]}],"border-color-t":[{"border-t":[Tn]}],"border-color-r":[{"border-r":[Tn]}],"border-color-b":[{"border-b":[Tn]}],"border-color-l":[{"border-l":[Tn]}],"divide-color":[{divide:[Tn]}],"outline-style":[{outline:["",..._u()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:Yl()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[Ll]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[Ll]}],"mix-blend":[{"mix-blend":[...ku(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ku()}],filter:[{filter:["","none"]}],blur:[{blur:[En]}],brightness:[{brightness:[Nn]}],contrast:[{contrast:[Nl]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[Rl]}],"hue-rotate":[{"hue-rotate":[Fl]}],invert:[{invert:[Al]}],saturate:[{saturate:[Vl]}],sepia:[{sepia:[zl]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[En]}],"backdrop-brightness":[{"backdrop-brightness":[Nn]}],"backdrop-contrast":[{"backdrop-contrast":[Nl]}],"backdrop-grayscale":[{"backdrop-grayscale":[Rl]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fl]}],"backdrop-invert":[{"backdrop-invert":[Al]}],"backdrop-opacity":[{"backdrop-opacity":[Ll]}],"backdrop-saturate":[{"backdrop-saturate":[Vl]}],"backdrop-sepia":[{"backdrop-sepia":[zl]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[kl]}],"border-spacing-x":[{"border-spacing-x":[kl]}],"border-spacing-y":[{"border-spacing-y":[kl]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:Wl()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:Wl()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Bl]}],"scale-x":[{"scale-x":[Bl]}],"scale-y":[{"scale-y":[Bl]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[ql]}],"translate-y":[{"translate-y":[ql]}],"skew-x":[{"skew-x":[Ul]}],"skew-y":[{"skew-y":[Ul]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",$]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ru()}],"scroll-mx":[{"scroll-mx":ru()}],"scroll-my":[{"scroll-my":ru()}],"scroll-ms":[{"scroll-ms":ru()}],"scroll-me":[{"scroll-me":ru()}],"scroll-mt":[{"scroll-mt":ru()}],"scroll-mr":[{"scroll-mr":ru()}],"scroll-mb":[{"scroll-mb":ru()}],"scroll-ml":[{"scroll-ml":ru()}],"scroll-p":[{"scroll-p":ru()}],"scroll-px":[{"scroll-px":ru()}],"scroll-py":[{"scroll-py":ru()}],"scroll-ps":[{"scroll-ps":ru()}],"scroll-pe":[{"scroll-pe":ru()}],"scroll-pt":[{"scroll-pt":ru()}],"scroll-pr":[{"scroll-pr":ru()}],"scroll-pb":[{"scroll-pb":ru()}],"scroll-pl":[{"scroll-pl":ru()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[$,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},mergeConfigs=($,{cacheSize:xn,prefix:En,separator:Nn,experimentalParseClassName:Tn,extend:$n={},override:kl={}})=>{overrideProperty($,"cacheSize",xn),overrideProperty($,"prefix",En),overrideProperty($,"separator",Nn),overrideProperty($,"experimentalParseClassName",Tn);for(const xl in kl)overrideConfigProperties($[xl],kl[xl]);for(const xl in $n)mergeConfigProperties($[xl],$n[xl]);return $},overrideProperty=($,xn,En)=>{En!==void 0&&($[xn]=En)},overrideConfigProperties=($,xn)=>{if(xn)for(const En in xn)overrideProperty($,En,xn[En])},mergeConfigProperties=($,xn)=>{if(xn)for(const En in xn){const Nn=xn[En];Nn!==void 0&&($[En]=($[En]||[]).concat(Nn))}},extendTailwindMerge=($,...xn)=>typeof $=="function"?createTailwindMerge(getDefaultConfig,$,...xn):createTailwindMerge(()=>mergeConfigs(getDefaultConfig(),$),...xn),twMerge=extendTailwindMerge({extend:{classGroups:{"font-size":[{text:Object.keys(FONT_SIZES)}]}}},$=>($.classGroups["max-w"][0]["max-w"].push({screen:Object.keys(SCREEN_SIZES)}),$));function cn(...$){return twMerge(classnames(...$))}const countryList=[{name:"Norway",iso_code:CountryCode.NO},{name:"Canada",iso_code:CountryCode.CA},{name:"United Kingdom",iso_code:CountryCode.GB},{name:"United States",iso_code:CountryCode.US},{name:"Switzerland",iso_code:CountryCode.CH},{name:"Austria",iso_code:CountryCode.AT},{name:"Belgium",iso_code:CountryCode.BE},{name:"Bulgaria",iso_code:CountryCode.BG},{name:"Croatia",iso_code:CountryCode.HR},{name:"Czechia",iso_code:CountryCode.CZ},{name:"Denmark",iso_code:CountryCode.DK},{name:"Estonia",iso_code:CountryCode.EE},{name:"Finland",iso_code:CountryCode.FI},{name:"France",iso_code:CountryCode.FR},{name:"Germany",iso_code:CountryCode.DE},{name:"Greece",iso_code:CountryCode.GR},{name:"Hungary",iso_code:CountryCode.HU},{name:"Ireland",iso_code:CountryCode.IE},{name:"Italy",iso_code:CountryCode.IT},{name:"Latvia",iso_code:CountryCode.LV},{name:"Lithuania",iso_code:CountryCode.LT},{name:"Luxembourg",iso_code:CountryCode.LU},{name:"Malta",iso_code:CountryCode.MT},{name:"Netherlands",iso_code:CountryCode.NL},{name:"Poland",iso_code:CountryCode.PL},{name:"Portugal",iso_code:CountryCode.PT},{name:"Romania",iso_code:CountryCode.RO},{name:"Slovakia",iso_code:CountryCode.SK},{name:"Slovenia",iso_code:CountryCode.SI},{name:"Spain",iso_code:CountryCode.ES},{name:"Sweden",iso_code:CountryCode.SE}],defaultMarketConfig=[{id:"gid://shopify/Market/2619670774",store:"EU",currency:CurrencyCode.EUR,taxIncluded:!0,dutiesIncluded:!1,webPresences:[{defaultLocale:"en",domain:"www.auk.com"}],countries:[CountryCode.AT,CountryCode.BE,CountryCode.BG,CountryCode.CZ,CountryCode.DE,CountryCode.EE,CountryCode.ES,CountryCode.FI,CountryCode.FR,CountryCode.GR,CountryCode.HR,CountryCode.HU,CountryCode.IE,CountryCode.IT,CountryCode.LT,CountryCode.LU,CountryCode.LV,CountryCode.MT,CountryCode.NL,CountryCode.PL,CountryCode.PT,CountryCode.RO,CountryCode.SI,CountryCode.SK],primary:!0},{id:"gid://shopify/Market/31661949174",store:"EU",currency:CurrencyCode.CAD,taxIncluded:!1,dutiesIncluded:!1,webPresences:[{defaultLocale:"en",domain:"www.auk.com"}],countries:[CountryCode.CA],primary:!1},{id:"gid://shopify/Market/2619736310",store:"EU",currency:CurrencyCode.DKK,taxIncluded:!0,dutiesIncluded:!1,webPresences:[{defaultLocale:"en",domain:"www.auk.com"}],countries:[CountryCode.DK],primary:!1},{id:"gid://shopify/Market/2619900150",store:"EU",currency:CurrencyCode.CHF,taxIncluded:!0,dutiesIncluded:!1,webPresences:[{defaultLocale:"en",domain:"www.auk.com"}],countries:[CountryCode.CH],primary:!1},{id:"gid://shopify/Market/2619441398",store:"EU",currency:CurrencyCode.GBP,taxIncluded:!0,dutiesIncluded:!1,webPresences:[{defaultLocale:"en",domain:"www.auk.com"}],countries:[CountryCode.GB],primary:!1},{id:"gid://shopify/Market/30872076534",store:"EU",currency:CurrencyCode.USD,taxIncluded:!1,dutiesIncluded:!1,webPresences:[{defaultLocale:"en",domain:"www.auk.com"}],countries:[CountryCode.US],primary:!1},{id:"gid://shopify/Market/58458344",store:"NO",currency:CurrencyCode.NOK,taxIncluded:!0,dutiesIncluded:!1,webPresences:[{defaultLocale:"nb",domain:"www.aloseasonsale.shop"}],countries:[CountryCode.NO],primary:!0},{id:"gid://shopify/Market/37164450072",store:"SE",currency:CurrencyCode.SEK,taxIncluded:!0,dutiesIncluded:!1,webPresences:[{defaultLocale:"sv",domain:"se.auk.com"}],countries:[CountryCode.SE],primary:!0}];var Order;(function($){$[$.Asc=1]="Asc",$[$.Desc=-1]="Desc"})(Order||(Order={}));function get($,xn){return typeof xn=="function"?xn($):typeof xn=="string"&&xn.includes(".")?xn.split(".").reduce((En,Nn)=>En?.[Nn],$):$[xn]}function compare($,xn){return $===xn?0:$===null||typeof $>"u"?-1:xn===null||typeof xn>"u"?1:typeof $=="number"&&typeof xn=="number"?$-xn:typeof $=="string"&&typeof xn=="string"?$.localeCompare(xn):$ instanceof Date&&xn instanceof Date?$.getTime()-xn.getTime():Array.isArray($)&&Array.isArray(xn)?$.length-xn.length:$xn?1:0}function by($,xn=Order.Asc){return Array.isArray($)?(En,Nn)=>{for(const Tn of $){const $n=get(En,Tn),kl=get(Nn,Tn),xl=compare($n,kl);if(xl!==0)return xl*xn}return 0}:(En,Nn)=>{const Tn=get(En,$),$n=get(Nn,$);return compare(Tn,$n)*xn}}var vibrant={},color={},util$1={},hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,(function($){Object.defineProperty($,"__esModule",{value:!0}),$.getColorIndex=$.getColorDiffStatus=$.hexDiff=$.rgbDiff=$.deltaE94=$.rgbToCIELab=$.xyzToCIELab=$.rgbToXyz=$.hslToRgb=$.rgbToHsl=$.rgbToHex=$.hexToRgb=$.defer=$.RSHIFT=$.SIGBITS=$.DELTAE94_DIFF_STATUS=void 0,$.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},$.SIGBITS=5,$.RSHIFT=8-$.SIGBITS;function xn(){var Il,Ml,Dl=new Promise(function(Ll,$l){Il=Ll,Ml=$l});return{resolve:Il,reject:Ml,promise:Dl}}$.defer=xn;function En(Il){var Ml=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(Il);return Ml===null?null:[Ml[1],Ml[2],Ml[3]].map(function(Dl){return parseInt(Dl,16)})}$.hexToRgb=En;function Nn(Il,Ml,Dl){return"#"+((1<<24)+(Il<<16)+(Ml<<8)+Dl).toString(16).slice(1,7)}$.rgbToHex=Nn;function Tn(Il,Ml,Dl){Il/=255,Ml/=255,Dl/=255;var Ll=Math.max(Il,Ml,Dl),$l=Math.min(Il,Ml,Dl),Vl,Bl,zl=(Ll+$l)/2;if(Ll===$l)Vl=Bl=0;else{var Ul=Ll-$l;switch(Bl=zl>.5?Ul/(2-Ll-$l):Ul/(Ll+$l),Ll){case Il:Vl=(Ml-Dl)/Ul+(Ml1&&(Kl-=1),Kl<1/6?Gl+(ql-Gl)*6*Kl:Kl<1/2?ql:Kl<2/3?Gl+(ql-Gl)*(2/3-Kl)*6:Gl}if(Ml===0)Ll=$l=Vl=Dl;else{var zl=Dl<.5?Dl*(1+Ml):Dl+Ml-Dl*Ml,Ul=2*Dl-zl;Ll=Bl(Ul,zl,Il+1/3),$l=Bl(Ul,zl,Il),Vl=Bl(Ul,zl,Il-1/3)}return[Ll*255,$l*255,Vl*255]}$.hslToRgb=$n;function kl(Il,Ml,Dl){Il/=255,Ml/=255,Dl/=255,Il=Il>.04045?Math.pow((Il+.005)/1.055,2.4):Il/12.92,Ml=Ml>.04045?Math.pow((Ml+.005)/1.055,2.4):Ml/12.92,Dl=Dl>.04045?Math.pow((Dl+.005)/1.055,2.4):Dl/12.92,Il*=100,Ml*=100,Dl*=100;var Ll=Il*.4124+Ml*.3576+Dl*.1805,$l=Il*.2126+Ml*.7152+Dl*.0722,Vl=Il*.0193+Ml*.1192+Dl*.9505;return[Ll,$l,Vl]}$.rgbToXyz=kl;function xl(Il,Ml,Dl){var Ll=95.047,$l=100,Vl=108.883;Il/=Ll,Ml/=$l,Dl/=Vl,Il=Il>.008856?Math.pow(Il,1/3):7.787*Il+16/116,Ml=Ml>.008856?Math.pow(Ml,1/3):7.787*Ml+16/116,Dl=Dl>.008856?Math.pow(Dl,1/3):7.787*Dl+16/116;var Bl=116*Ml-16,zl=500*(Il-Ml),Ul=200*(Ml-Dl);return[Bl,zl,Ul]}$.xyzToCIELab=xl;function Nl(Il,Ml,Dl){var Ll=kl(Il,Ml,Dl),$l=Ll[0],Vl=Ll[1],Bl=Ll[2];return xl($l,Vl,Bl)}$.rgbToCIELab=Nl;function Rl(Il,Ml){var Dl=1,Ll=1,$l=1,Vl=Il[0],Bl=Il[1],zl=Il[2],Ul=Ml[0],Gl=Ml[1],ql=Ml[2],Kl=Vl-Ul,Jl=Bl-Gl,tu=zl-ql,ru=Math.sqrt(Bl*Bl+zl*zl),Yl=Math.sqrt(Gl*Gl+ql*ql),cu=Ul-Vl,gu=Yl-ru,_u=Math.sqrt(Kl*Kl+Jl*Jl+tu*tu),ku=Math.sqrt(_u)>Math.sqrt(Math.abs(cu))+Math.sqrt(Math.abs(gu))?Math.sqrt(_u*_u-cu*cu-gu*gu):0,ou=1+.045*ru,uu=1+.015*ru;return cu/=Dl,gu/=Ll*ou,ku/=$l*uu,Math.sqrt(cu*cu+gu*gu+ku*ku)}$.deltaE94=Rl;function Fl(Il,Ml){var Dl=Nl.apply(void 0,Il),Ll=Nl.apply(void 0,Ml);return Rl(Dl,Ll)}$.rgbDiff=Fl;function Al(Il,Ml){var Dl=En(Il),Ll=En(Ml);return Fl(Dl,Ll)}$.hexDiff=Al;function Tl(Il){return Il<$.DELTAE94_DIFF_STATUS.NA?"N/A":Il<=$.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":Il<=$.DELTAE94_DIFF_STATUS.CLOSE?"Close":Il<=$.DELTAE94_DIFF_STATUS.GOOD?"Good":Il<$.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"}$.getColorDiffStatus=Tl;function Cl(Il,Ml,Dl){return(Il<<2*$.SIGBITS)+(Ml<<$.SIGBITS)+Dl}$.getColorIndex=Cl})(util$1)),util$1}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function $(xn,En){for(var Nn=-1,Tn=xn==null?0:xn.length,$n=0,kl=[];++Nn-1&&Nn%1==0&&Nn-1&&En%1==0&&En<=$}return isLength_1=xn,isLength_1}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var $=require_baseGetTag(),xn=requireIsLength(),En=requireIsObjectLike(),Nn="[object Arguments]",Tn="[object Array]",$n="[object Boolean]",kl="[object Date]",xl="[object Error]",Nl="[object Function]",Rl="[object Map]",Fl="[object Number]",Al="[object Object]",Tl="[object RegExp]",Cl="[object Set]",Il="[object String]",Ml="[object WeakMap]",Dl="[object ArrayBuffer]",Ll="[object DataView]",$l="[object Float32Array]",Vl="[object Float64Array]",Bl="[object Int8Array]",zl="[object Int16Array]",Ul="[object Int32Array]",Gl="[object Uint8Array]",ql="[object Uint8ClampedArray]",Kl="[object Uint16Array]",Jl="[object Uint32Array]",tu={};tu[$l]=tu[Vl]=tu[Bl]=tu[zl]=tu[Ul]=tu[Gl]=tu[ql]=tu[Kl]=tu[Jl]=!0,tu[Nn]=tu[Tn]=tu[Dl]=tu[$n]=tu[Ll]=tu[kl]=tu[xl]=tu[Nl]=tu[Rl]=tu[Fl]=tu[Al]=tu[Tl]=tu[Cl]=tu[Il]=tu[Ml]=!1;function ru(Yl){return En(Yl)&&xn(Yl.length)&&!!tu[$(Yl)]}return _baseIsTypedArray=ru,_baseIsTypedArray}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function $(xn){return function(En){return xn(En)}}return _baseUnary=$,_baseUnary}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,(function($,xn){var En=require_freeGlobal(),Nn=xn&&!xn.nodeType&&xn,Tn=Nn&&!0&&$&&!$.nodeType&&$,$n=Tn&&Tn.exports===Nn,kl=$n&&En.process,xl=(function(){try{var Nl=Tn&&Tn.require&&Tn.require("util").types;return Nl||kl&&kl.binding&&kl.binding("util")}catch{}})();$.exports=xl})(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var $=require_baseIsTypedArray(),xn=require_baseUnary(),En=require_nodeUtil(),Nn=En&&En.isTypedArray,Tn=Nn?xn(Nn):$;return isTypedArray_1=Tn,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var $=require_baseTimes(),xn=requireIsArguments(),En=requireIsArray(),Nn=requireIsBuffer(),Tn=require_isIndex(),$n=requireIsTypedArray(),kl=Object.prototype,xl=kl.hasOwnProperty;function Nl(Rl,Fl){var Al=En(Rl),Tl=!Al&&xn(Rl),Cl=!Al&&!Tl&&Nn(Rl),Il=!Al&&!Tl&&!Cl&&$n(Rl),Ml=Al||Tl||Cl||Il,Dl=Ml?$(Rl.length,String):[],Ll=Dl.length;for(var $l in Rl)(Fl||xl.call(Rl,$l))&&!(Ml&&($l=="length"||Cl&&($l=="offset"||$l=="parent")||Il&&($l=="buffer"||$l=="byteLength"||$l=="byteOffset")||Tn($l,Ll)))&&Dl.push($l);return Dl}return _arrayLikeKeys=Nl,_arrayLikeKeys}var _isPrototype,hasRequired_isPrototype;function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var $=Object.prototype;function xn(En){var Nn=En&&En.constructor,Tn=typeof Nn=="function"&&Nn.prototype||$;return En===Tn}return _isPrototype=xn,_isPrototype}var _overArg,hasRequired_overArg;function require_overArg(){if(hasRequired_overArg)return _overArg;hasRequired_overArg=1;function $(xn,En){return function(Nn){return xn(En(Nn))}}return _overArg=$,_overArg}var _nativeKeys,hasRequired_nativeKeys;function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var $=require_overArg(),xn=$(Object.keys,Object);return _nativeKeys=xn,_nativeKeys}var _baseKeys,hasRequired_baseKeys;function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var $=require_isPrototype(),xn=require_nativeKeys(),En=Object.prototype,Nn=En.hasOwnProperty;function Tn($n){if(!$($n))return xn($n);var kl=[];for(var xl in Object($n))Nn.call($n,xl)&&xl!="constructor"&&kl.push(xl);return kl}return _baseKeys=Tn,_baseKeys}var isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function $(xn){var En=typeof xn;return xn!=null&&(En=="object"||En=="function")}return isObject_1=$,isObject_1}var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var $=require_baseGetTag(),xn=requireIsObject(),En="[object AsyncFunction]",Nn="[object Function]",Tn="[object GeneratorFunction]",$n="[object Proxy]";function kl(xl){if(!xn(xl))return!1;var Nl=$(xl);return Nl==Nn||Nl==Tn||Nl==En||Nl==$n}return isFunction_1=kl,isFunction_1}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var $=requireIsFunction(),xn=requireIsLength();function En(Nn){return Nn!=null&&xn(Nn.length)&&!$(Nn)}return isArrayLike_1=En,isArrayLike_1}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var $=require_arrayLikeKeys(),xn=require_baseKeys(),En=requireIsArrayLike();function Nn(Tn){return En(Tn)?$(Tn):xn(Tn)}return keys_1=Nn,keys_1}var _baseForOwn,hasRequired_baseForOwn;function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var $=require_baseFor(),xn=requireKeys();function En(Nn,Tn){return Nn&&$(Nn,Tn,xn)}return _baseForOwn=En,_baseForOwn}var _createBaseEach,hasRequired_createBaseEach;function require_createBaseEach(){if(hasRequired_createBaseEach)return _createBaseEach;hasRequired_createBaseEach=1;var $=requireIsArrayLike();function xn(En,Nn){return function(Tn,$n){if(Tn==null)return Tn;if(!$(Tn))return En(Tn,$n);for(var kl=Tn.length,xl=Nn?kl:-1,Nl=Object(Tn);(Nn?xl--:++xl-1}return _listCacheHas=xn,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var $=require_assocIndexOf();function xn(En,Nn){var Tn=this.__data__,$n=$(Tn,En);return $n<0?(++this.size,Tn.push([En,Nn])):Tn[$n][1]=Nn,this}return _listCacheSet=xn,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var $=require_listCacheClear(),xn=require_listCacheDelete(),En=require_listCacheGet(),Nn=require_listCacheHas(),Tn=require_listCacheSet();function $n(kl){var xl=-1,Nl=kl==null?0:kl.length;for(this.clear();++xlCl))return!1;var Ml=Al.get(kl),Dl=Al.get(xl);if(Ml&&Dl)return Ml==xl&&Dl==kl;var Ll=-1,$l=!0,Vl=Nl&Tn?new $:void 0;for(Al.set(kl,xl),Al.set(xl,kl);++Ll0&&this._opts.filters.splice(kl),this},Tn.prototype.clearFilters=function(){return this._opts.filters=[],this},Tn.prototype.quality=function($n){return this._opts.quality=$n,this},Tn.prototype.useImageClass=function($n){return this._opts.ImageClass=$n,this},Tn.prototype.useGenerator=function($n){return this._opts.generator=$n,this},Tn.prototype.useQuantizer=function($n){return this._opts.quantizer=$n,this},Tn.prototype.build=function(){return new xn.default(this._src,this._opts)},Tn.prototype.getPalette=function($n){return this.build().getPalette($n)},Tn.prototype.getSwatches=function($n){return this.build().getPalette($n)},Tn})();return builder.default=Nn,builder}var quantizer={},mmcq={},vbox={},hasRequiredVbox;function requireVbox(){if(hasRequiredVbox)return vbox;hasRequiredVbox=1,Object.defineProperty(vbox,"__esModule",{value:!0});var $=requireUtil$1(),xn=(function(){function En(Nn,Tn,$n,kl,xl,Nl,Rl){this._volume=-1,this._count=-1,this.dimension={r1:Nn,r2:Tn,g1:$n,g2:kl,b1:xl,b2:Nl},this.hist=Rl}return En.build=function(Nn,Tn){var $n=1<<3*$.SIGBITS,kl=new Uint32Array($n),xl,Nl,Rl,Fl,Al,Tl,Cl,Il,Ml,Dl;xl=Rl=Al=0,Nl=Fl=Tl=Number.MAX_VALUE;for(var Ll=Nn.length/4,$l=0;$l>$.RSHIFT,Il=Il>>$.RSHIFT,Ml=Ml>>$.RSHIFT;var Bl=$.getColorIndex(Cl,Il,Ml);kl[Bl]+=1,Cl>xl&&(xl=Cl),ClRl&&(Rl=Il),IlAl&&(Al=Ml),Ml>=$.RSHIFT,$n>>=$.RSHIFT,kl>>=$.RSHIFT,Tn>=Nl&&Tn<=Rl&&$n>=Fl&&$n<=Al&&kl>=Tl&&kl<=Cl},En.prototype.split=function(){var Nn=this.hist,Tn=this.dimension,$n=Tn.r1,kl=Tn.r2,xl=Tn.g1,Nl=Tn.g2,Rl=Tn.b1,Fl=Tn.b2,Al=this.count();if(!Al)return[];if(Al===1)return[this.clone()];var Tl=kl-$n+1,Cl=Nl-xl+1,Il=Fl-Rl+1,Ml=Math.max(Tl,Cl,Il),Dl=null,Ll,$l;Ll=$l=0;var Vl=null;if(Ml===Tl){Vl="r",Dl=new Uint32Array(kl+1);for(var Bl=$n;Bl<=kl;Bl++){Ll=0;for(var zl=xl;zl<=Nl;zl++)for(var Ul=Rl;Ul<=Fl;Ul++){var Gl=$.getColorIndex(Bl,zl,Ul);Ll+=Nn[Gl]}$l+=Ll,Dl[Bl]=$l}}else if(Ml===Cl){Vl="g",Dl=new Uint32Array(Nl+1);for(var zl=xl;zl<=Nl;zl++){Ll=0;for(var Bl=$n;Bl<=kl;Bl++)for(var Ul=Rl;Ul<=Fl;Ul++){var Gl=$.getColorIndex(Bl,zl,Ul);Ll+=Nn[Gl]}$l+=Ll,Dl[zl]=$l}}else{Vl="b",Dl=new Uint32Array(Fl+1);for(var Ul=Rl;Ul<=Fl;Ul++){Ll=0;for(var Bl=$n;Bl<=kl;Bl++)for(var zl=xl;zl<=Nl;zl++){var Gl=$.getColorIndex(Bl,zl,Ul);Ll+=Nn[Gl]}$l+=Ll,Dl[Ul]=$l}}for(var ql=-1,Kl=new Uint32Array(Dl.length),Jl=0;Jl$l/2&&(ql=Jl),Kl[Jl]=$l-tu}var ru=this;function Yl(cu){var gu=cu+"1",_u=cu+"2",ku=ru.dimension[gu],ou=ru.dimension[_u],uu=ru.clone(),au=ru.clone(),Wl=ql-ku,eu=ou-ql;for(Wl<=eu?(ou=Math.min(ou-1,~~(ql+eu/2)),ou=Math.max(0,ou)):(ou=Math.max(ku,~~(ql-1-Wl/2)),ou=Math.min(ru.dimension[_u],ou));!Dl[ou];)ou++;for(var fu=Kl[ou];!fu&&Dl[ou-1];)fu=Kl[--ou];return uu.dimension[_u]=ou,au.dimension[gu]=ou+1,[uu,au]}return Yl(Vl)},En})();return vbox.default=xn,vbox}var pqueue={},hasRequiredPqueue;function requirePqueue(){if(hasRequiredPqueue)return pqueue;hasRequiredPqueue=1,Object.defineProperty(pqueue,"__esModule",{value:!0});var $=(function(){function xn(En){this._comparator=En,this.contents=[],this._sorted=!1}return xn.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},xn.prototype.push=function(En){this.contents.push(En),this._sorted=!1},xn.prototype.peek=function(En){return this._sort(),En=typeof En=="number"?En:this.contents.length-1,this.contents[En]},xn.prototype.pop=function(){return this._sort(),this.contents.pop()},xn.prototype.size=function(){return this.contents.length},xn.prototype.map=function(En){return this._sort(),this.contents.map(En)},xn})();return pqueue.default=$,pqueue}var hasRequiredMmcq;function requireMmcq(){if(hasRequiredMmcq)return mmcq;hasRequiredMmcq=1;var $=mmcq&&mmcq.__importDefault||function(Nl){return Nl&&Nl.__esModule?Nl:{default:Nl}};Object.defineProperty(mmcq,"__esModule",{value:!0});var xn=requireColor(),En=$(requireVbox()),Nn=$(requirePqueue()),Tn=.75;function $n(Nl,Rl){for(var Fl=Nl.size();Nl.size()0){var Tl=Al.split(),Cl=Tl[0],Il=Tl[1];if(Nl.push(Cl),Il&&Il.count()>0&&Nl.push(Il),Nl.size()===Fl)break;Fl=Nl.size()}else break}}var kl=function(Nl,Rl){if(Nl.length===0||Rl.colorCount<2||Rl.colorCount>256)throw new Error("Wrong MMCQ parameters");var Fl=En.default.build(Nl),Al=Fl.hist;Object.keys(Al).length;var Tl=new Nn.default(function(Il,Ml){return Il.count()-Ml.count()});Tl.push(Fl),$n(Tl,Tn*Rl.colorCount);var Cl=new Nn.default(function(Il,Ml){return Il.count()*Il.volume()-Ml.count()*Ml.volume()});return Cl.contents=Tl.contents,$n(Cl,Rl.colorCount-Cl.size()),xl(Cl)};function xl(Nl){for(var Rl=[];Nl.size();){var Fl=Nl.pop(),Al=Fl.avg();Al[0],Al[1],Al[2],Rl.push(new xn.Swatch(Al,Fl.count()))}return Rl}return mmcq.default=kl,mmcq}var hasRequiredQuantizer;function requireQuantizer(){return hasRequiredQuantizer||(hasRequiredQuantizer=1,(function($){Object.defineProperty($,"__esModule",{value:!0}),$.WebWorker=void 0;var xn=requireMmcq();Object.defineProperty($,"MMCQ",{enumerable:!0,get:function(){return xn.default}}),$.WebWorker=null})(quantizer)),quantizer}var generator={},_default$1={},_apply,hasRequired_apply;function require_apply(){if(hasRequired_apply)return _apply;hasRequired_apply=1;function $(xn,En,Nn){switch(Nn.length){case 0:return xn.call(En);case 1:return xn.call(En,Nn[0]);case 2:return xn.call(En,Nn[0],Nn[1]);case 3:return xn.call(En,Nn[0],Nn[1],Nn[2])}return xn.apply(En,Nn)}return _apply=$,_apply}var _overRest,hasRequired_overRest;function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var $=require_apply(),xn=Math.max;function En(Nn,Tn,$n){return Tn=xn(Tn===void 0?Nn.length-1:Tn,0),function(){for(var kl=arguments,xl=-1,Nl=xn(kl.length-Tn,0),Rl=Array(Nl);++xl0){if(++$n>=$)return arguments[0]}else $n=0;return Tn.apply(void 0,arguments)}}return _shortOut=Nn,_shortOut}var _setToString,hasRequired_setToString;function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var $=require_baseSetToString(),xn=require_shortOut(),En=xn($);return _setToString=En,_setToString}var _baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var $=requireIdentity(),xn=require_overRest(),En=require_setToString();function Nn(Tn,$n){return En(xn(Tn,$n,$),Tn+"")}return _baseRest=Nn,_baseRest}var _isIterateeCall,hasRequired_isIterateeCall;function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var $=requireEq(),xn=requireIsArrayLike(),En=require_isIndex(),Nn=requireIsObject();function Tn($n,kl,xl){if(!Nn(xl))return!1;var Nl=typeof kl;return(Nl=="number"?xn(xl)&&En(kl,xl.length):Nl=="string"&&kl in xl)?$(xl[kl],$n):!1}return _isIterateeCall=Tn,_isIterateeCall}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var $=require_baseRest(),xn=requireEq(),En=require_isIterateeCall(),Nn=requireKeysIn(),Tn=Object.prototype,$n=Tn.hasOwnProperty,kl=$(function(xl,Nl){xl=Object(xl);var Rl=-1,Fl=Nl.length,Al=Fl>2?Nl[2]:void 0;for(Al&&En(Nl[0],Nl[1],Al)&&(Fl=1);++Rl=$l&&Kl<=Vl&&Jl>=Ml&&Jl<=Dl&&!$n(Al,Gl)){var tu=kl(Kl,Ll,Jl,Il,Gl.getPopulation(),Cl,Bl);(zl===null||tu>Ul)&&(zl=Gl,Ul=tu)}}),zl}function Nl(Al,Tl,Cl){var Il={};return Il.Vibrant=xl(Il,Al,Tl,Cl.targetNormalLuma,Cl.minNormalLuma,Cl.maxNormalLuma,Cl.targetVibrantSaturation,Cl.minVibrantSaturation,1,Cl),Il.LightVibrant=xl(Il,Al,Tl,Cl.targetLightLuma,Cl.minLightLuma,1,Cl.targetVibrantSaturation,Cl.minVibrantSaturation,1,Cl),Il.DarkVibrant=xl(Il,Al,Tl,Cl.targetDarkLuma,0,Cl.maxDarkLuma,Cl.targetVibrantSaturation,Cl.minVibrantSaturation,1,Cl),Il.Muted=xl(Il,Al,Tl,Cl.targetNormalLuma,Cl.minNormalLuma,Cl.maxNormalLuma,Cl.targetMutesSaturation,0,Cl.maxMutesSaturation,Cl),Il.LightMuted=xl(Il,Al,Tl,Cl.targetLightLuma,Cl.minLightLuma,1,Cl.targetMutesSaturation,0,Cl.maxMutesSaturation,Cl),Il.DarkMuted=xl(Il,Al,Tl,Cl.targetDarkLuma,0,Cl.maxDarkLuma,Cl.targetMutesSaturation,0,Cl.maxMutesSaturation,Cl),Il}function Rl(Al,Tl,Cl){if(Al.Vibrant===null&&Al.DarkVibrant===null&&Al.LightVibrant===null){if(Al.DarkVibrant===null&&Al.DarkMuted!==null){var Il=Al.DarkMuted.getHsl(),Ml=Il[0],Dl=Il[1],Ll=Il[2];Ll=Cl.targetDarkLuma,Al.DarkVibrant=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}if(Al.LightVibrant===null&&Al.LightMuted!==null){var $l=Al.LightMuted.getHsl(),Ml=$l[0],Dl=$l[1],Ll=$l[2];Ll=Cl.targetDarkLuma,Al.DarkVibrant=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}}if(Al.Vibrant===null&&Al.DarkVibrant!==null){var Vl=Al.DarkVibrant.getHsl(),Ml=Vl[0],Dl=Vl[1],Ll=Vl[2];Ll=Cl.targetNormalLuma,Al.Vibrant=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}else if(Al.Vibrant===null&&Al.LightVibrant!==null){var Bl=Al.LightVibrant.getHsl(),Ml=Bl[0],Dl=Bl[1],Ll=Bl[2];Ll=Cl.targetNormalLuma,Al.Vibrant=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}if(Al.DarkVibrant===null&&Al.Vibrant!==null){var zl=Al.Vibrant.getHsl(),Ml=zl[0],Dl=zl[1],Ll=zl[2];Ll=Cl.targetDarkLuma,Al.DarkVibrant=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}if(Al.LightVibrant===null&&Al.Vibrant!==null){var Ul=Al.Vibrant.getHsl(),Ml=Ul[0],Dl=Ul[1],Ll=Ul[2];Ll=Cl.targetLightLuma,Al.LightVibrant=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}if(Al.Muted===null&&Al.Vibrant!==null){var Gl=Al.Vibrant.getHsl(),Ml=Gl[0],Dl=Gl[1],Ll=Gl[2];Ll=Cl.targetMutesSaturation,Al.Muted=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}if(Al.DarkMuted===null&&Al.DarkVibrant!==null){var ql=Al.DarkVibrant.getHsl(),Ml=ql[0],Dl=ql[1],Ll=ql[2];Ll=Cl.targetMutesSaturation,Al.DarkMuted=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}if(Al.LightMuted===null&&Al.LightVibrant!==null){var Kl=Al.LightVibrant.getHsl(),Ml=Kl[0],Dl=Kl[1],Ll=Kl[2];Ll=Cl.targetMutesSaturation,Al.LightMuted=new $.Swatch(xn.hslToRgb(Ml,Dl,Ll),0)}}var Fl=function(Al,Tl){Tl=En({},Tl,Nn);var Cl=Tn(Al),Il=Nl(Al,Cl,Tl);return Rl(Il,Cl,Tl),Il};return _default$1.default=Fl,_default$1}var hasRequiredGenerator;function requireGenerator(){return hasRequiredGenerator||(hasRequiredGenerator=1,(function($){Object.defineProperty($,"__esModule",{value:!0});var xn=require_default$1();Object.defineProperty($,"Default",{enumerable:!0,get:function(){return xn.default}})})(generator)),generator}var filter={},_default={},hasRequired_default;function require_default(){if(hasRequired_default)return _default;hasRequired_default=1,Object.defineProperty(_default,"__esModule",{value:!0});function $(xn,En,Nn,Tn){return Tn>=125&&!(xn>250&&En>250&&Nn>250)}return _default.default=$,_default}var hasRequiredFilter;function requireFilter(){return hasRequiredFilter||(hasRequiredFilter=1,(function($){Object.defineProperty($,"__esModule",{value:!0}),$.combineFilters=void 0;var xn=require_default();Object.defineProperty($,"Default",{enumerable:!0,get:function(){return xn.default}});function En(Nn){return!Array.isArray(Nn)||Nn.length===0?null:function(Tn,$n,kl,xl){if(xl===0)return!1;for(var Nl=0;Nl0){var kl=Math.max(Nn,Tn);kl>En.maxDimension&&($n=En.maxDimension/kl)}else $n=1/En.quality;$n<1&&this.resize(Nn*$n,Tn*$n,$n)},xn.prototype.applyFilter=function(En){var Nn=this.getImageData();if(typeof En=="function")for(var Tn=Nn.data,$n=Tn.length/4,kl=void 0,xl=void 0,Nl=void 0,Rl=void 0,Fl=void 0,Al=0;Al<$n;Al++)kl=Al*4,xl=Tn[kl+0],Nl=Tn[kl+1],Rl=Tn[kl+2],Fl=Tn[kl+3],En(xl,Nl,Rl,Fl)||(Tn[kl+3]=0);return Promise.resolve(Nn)},xn})();return base.ImageBase=$,base}var url={},punycode$1={exports:{}};var punycode=punycode$1.exports,hasRequiredPunycode;function requirePunycode(){return hasRequiredPunycode||(hasRequiredPunycode=1,(function($,xn){(function(En){var Nn=xn&&!xn.nodeType&&xn,Tn=$&&!$.nodeType&&$,$n=typeof commonjsGlobal=="object"&&commonjsGlobal;($n.global===$n||$n.window===$n||$n.self===$n)&&(En=$n);var kl,xl=2147483647,Nl=36,Rl=1,Fl=26,Al=38,Tl=700,Cl=72,Il=128,Ml="-",Dl=/^xn--/,Ll=/[^\x20-\x7E]/,$l=/[\x2E\u3002\uFF0E\uFF61]/g,Vl={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Bl=Nl-Rl,zl=Math.floor,Ul=String.fromCharCode,Gl;function ql(au){throw RangeError(Vl[au])}function Kl(au,Wl){for(var eu=au.length,fu=[];eu--;)fu[eu]=Wl(au[eu]);return fu}function Jl(au,Wl){var eu=au.split("@"),fu="";eu.length>1&&(fu=eu[0]+"@",au=eu[1]),au=au.replace($l,".");var lu=au.split("."),vu=Kl(lu,Wl).join(".");return fu+vu}function tu(au){for(var Wl=[],eu=0,fu=au.length,lu,vu;eu=55296&&lu<=56319&&eu65535&&(Wl-=65536,eu+=Ul(Wl>>>10&1023|55296),Wl=56320|Wl&1023),eu+=Ul(Wl),eu}).join("")}function Yl(au){return au-48<10?au-22:au-65<26?au-65:au-97<26?au-97:Nl}function cu(au,Wl){return au+22+75*(au<26)-((Wl!=0)<<5)}function gu(au,Wl,eu){var fu=0;for(au=eu?zl(au/Tl):au>>1,au+=zl(au/Wl);au>Bl*Fl>>1;fu+=Nl)au=zl(au/Bl);return zl(fu+(Bl+1)*au/(au+Al))}function _u(au){var Wl=[],eu=au.length,fu,lu=0,vu=Il,Su=Cl,Ru,xu,Eu,Iu,Ou,Lu,Vu,Xu,Cu;for(Ru=au.lastIndexOf(Ml),Ru<0&&(Ru=0),xu=0;xu=128&&ql("not-basic"),Wl.push(au.charCodeAt(xu));for(Eu=Ru>0?Ru+1:0;Eu=eu&&ql("invalid-input"),Vu=Yl(au.charCodeAt(Eu++)),(Vu>=Nl||Vu>zl((xl-lu)/Ou))&&ql("overflow"),lu+=Vu*Ou,Xu=Lu<=Su?Rl:Lu>=Su+Fl?Fl:Lu-Su,!(Vuzl(xl/Cu)&&ql("overflow"),Ou*=Cu;fu=Wl.length+1,Su=gu(lu-Iu,fu,Iu==0),zl(lu/fu)>xl-vu&&ql("overflow"),vu+=zl(lu/fu),lu%=fu,Wl.splice(lu++,0,vu)}return ru(Wl)}function ku(au){var Wl,eu,fu,lu,vu,Su,Ru,xu,Eu,Iu,Ou,Lu=[],Vu,Xu,Cu,zu;for(au=tu(au),Vu=au.length,Wl=Il,eu=0,vu=Cl,Su=0;Su=Wl&&Ouzl((xl-eu)/Xu)&&ql("overflow"),eu+=(Ru-Wl)*Xu,Wl=Ru,Su=0;Suxl&&ql("overflow"),Ou==Wl){for(xu=eu,Eu=Nl;Iu=Eu<=vu?Rl:Eu>=vu+Fl?Fl:Eu-vu,!(xu0&&Nl>xl&&(Nl=xl);for(var Rl=0;Rl=0?(Tl=Fl.substr(0,Al),Cl=Fl.substr(Al+1)):(Tl=Fl,Cl=""),Il=decodeURIComponent(Tl),Ml=decodeURIComponent(Cl),$($n,Il)?Array.isArray($n[Il])?$n[Il].push(Ml):$n[Il]=[$n[Il],Ml]:$n[Il]=Ml}return $n},decode}var encode,hasRequiredEncode;function requireEncode(){if(hasRequiredEncode)return encode;hasRequiredEncode=1;var $=function(xn){switch(typeof xn){case"string":return xn;case"boolean":return xn?"true":"false";case"number":return isFinite(xn)?xn:"";default:return""}};return encode=function(xn,En,Nn,Tn){return En=En||"&",Nn=Nn||"=",xn===null&&(xn=void 0),typeof xn=="object"?Object.keys(xn).map(function($n){var kl=encodeURIComponent($($n))+Nn;return Array.isArray(xn[$n])?xn[$n].map(function(xl){return kl+encodeURIComponent($(xl))}).join(En):kl+encodeURIComponent($(xn[$n]))}).join(En):Tn?encodeURIComponent($(Tn))+Nn+encodeURIComponent($(xn)):""},encode}var hasRequiredQuerystring;function requireQuerystring(){return hasRequiredQuerystring||(hasRequiredQuerystring=1,querystring.decode=querystring.parse=requireDecode(),querystring.encode=querystring.stringify=requireEncode()),querystring}var hasRequiredUrl;function requireUrl(){if(hasRequiredUrl)return url;hasRequiredUrl=1;var $=requirePunycode(),xn=requireUtil();url.parse=$l,url.resolve=Bl,url.resolveObject=zl,url.format=Vl,url.Url=En;function En(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Nn=/^([a-z0-9.+-]+:)/i,Tn=/:[0-9]*$/,$n=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,kl=["<",">",'"',"`"," ","\r",` `," "],xl=["{","}","|","\\","^","`"].concat(kl),Nl=["'"].concat(xl),Rl=["%","/","?",";","#"].concat(Nl),Fl=["/","?","#"],Al=255,Tl=/^[+a-z0-9A-Z_-]{0,63}$/,Cl=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Il={javascript:!0,"javascript:":!0},Ml={javascript:!0,"javascript:":!0},Dl={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ll=requireQuerystring();function $l(Ul,Gl,ql){if(Ul&&xn.isObject(Ul)&&Ul instanceof En)return Ul;var Kl=new En;return Kl.parse(Ul,Gl,ql),Kl}En.prototype.parse=function(Ul,Gl,ql){if(!xn.isString(Ul))throw new TypeError("Parameter 'url' must be a string, not "+typeof Ul);var Kl=Ul.indexOf("?"),Jl=Kl!==-1&&Kl127?Ru+="x":Ru+=Su[xu];if(!Ru.match(Tl)){var Iu=lu.slice(0,uu),Ou=lu.slice(uu+1),Lu=Su.match(Cl);Lu&&(Iu.push(Lu[1]),Ou.unshift(Lu[2])),Ou.length&&(Yl="/"+Ou.join(".")+Yl),this.hostname=Iu.join(".");break}}}this.hostname.length>Al?this.hostname="":this.hostname=this.hostname.toLowerCase(),fu||(this.hostname=$.toASCII(this.hostname));var Vu=this.port?":"+this.port:"",Xu=this.hostname||"";this.host=Xu+Vu,this.href+=this.host,fu&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Yl[0]!=="/"&&(Yl="/"+Yl))}if(!Il[_u])for(var uu=0,vu=Nl.length;uu0?ql.host.split("@"):!1;Ru&&(ql.auth=Ru.shift(),ql.host=ql.hostname=Ru.shift())}return ql.search=Ul.search,ql.query=Ul.query,(!xn.isNull(ql.pathname)||!xn.isNull(ql.search))&&(ql.path=(ql.pathname?ql.pathname:"")+(ql.search?ql.search:"")),ql.href=ql.format(),ql}if(!lu.length)return ql.pathname=null,ql.search?ql.path="/"+ql.search:ql.path=null,ql.href=ql.format(),ql;for(var xu=lu.slice(-1)[0],Eu=(ql.host||Ul.host||lu.length>1)&&(xu==="."||xu==="..")||xu==="",Iu=0,Ou=lu.length;Ou>=0;Ou--)xu=lu[Ou],xu==="."?lu.splice(Ou,1):xu===".."?(lu.splice(Ou,1),Iu++):Iu&&(lu.splice(Ou,1),Iu--);if(!eu&&!fu)for(;Iu--;Iu)lu.unshift("..");eu&&lu[0]!==""&&(!lu[0]||lu[0].charAt(0)!=="/")&&lu.unshift(""),Eu&&lu.join("/").substr(-1)!=="/"&&lu.push("");var Lu=lu[0]===""||lu[0]&&lu[0].charAt(0)==="/";if(Su){ql.hostname=ql.host=Lu?"":lu.length?lu.shift():"";var Ru=ql.host&&ql.host.indexOf("@")>0?ql.host.split("@"):!1;Ru&&(ql.auth=Ru.shift(),ql.host=ql.hostname=Ru.shift())}return eu=eu||ql.host&&lu.length,eu&&!Lu&&lu.unshift(""),lu.length?ql.pathname=lu.join("/"):(ql.pathname=null,ql.path=null),(!xn.isNull(ql.pathname)||!xn.isNull(ql.search))&&(ql.path=(ql.pathname?ql.pathname:"")+(ql.search?ql.search:"")),ql.auth=Ul.auth||ql.auth,ql.slashes=ql.slashes||Ul.slashes,ql.href=ql.format(),ql},En.prototype.parseHost=function(){var Ul=this.host,Gl=Tn.exec(Ul);Gl&&(Gl=Gl[0],Gl!==":"&&(this.port=Gl.substr(1)),Ul=Ul.substr(0,Ul.length-Gl.length)),Ul&&(this.hostname=Ul)},url}var hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$1;hasRequiredBrowser$1=1;var $=browser$1&&browser$1.__extends||(function(){var Rl=function(Fl,Al){return Rl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tl,Cl){Tl.__proto__=Cl}||function(Tl,Cl){for(var Il in Cl)Cl.hasOwnProperty(Il)&&(Tl[Il]=Cl[Il])},Rl(Fl,Al)};return function(Fl,Al){Rl(Fl,Al);function Tl(){this.constructor=Fl}Fl.prototype=Al===null?Object.create(Al):(Tl.prototype=Al.prototype,new Tl)}})(),xn=browser$1&&browser$1.__createBinding||(Object.create?(function(Rl,Fl,Al,Tl){Tl===void 0&&(Tl=Al),Object.defineProperty(Rl,Tl,{enumerable:!0,get:function(){return Fl[Al]}})}):(function(Rl,Fl,Al,Tl){Tl===void 0&&(Tl=Al),Rl[Tl]=Fl[Al]})),En=browser$1&&browser$1.__setModuleDefault||(Object.create?(function(Rl,Fl){Object.defineProperty(Rl,"default",{enumerable:!0,value:Fl})}):function(Rl,Fl){Rl.default=Fl}),Nn=browser$1&&browser$1.__importStar||function(Rl){if(Rl&&Rl.__esModule)return Rl;var Fl={};if(Rl!=null)for(var Al in Rl)Al!=="default"&&Object.hasOwnProperty.call(Rl,Al)&&xn(Fl,Rl,Al);return En(Fl,Rl),Fl};Object.defineProperty(browser$1,"__esModule",{value:!0});var Tn=requireBase(),$n=Nn(requireUrl());function kl(Rl){var Fl=$n.parse(Rl);return Fl.protocol===null&&Fl.host===null&&Fl.port===null}function xl(Rl,Fl){var Al=$n.parse(Rl),Tl=$n.parse(Fl);return Al.protocol===Tl.protocol&&Al.hostname===Tl.hostname&&Al.port===Tl.port}var Nl=(function(Rl){$(Fl,Rl);function Fl(){return Rl!==null&&Rl.apply(this,arguments)||this}return Fl.prototype._initCanvas=function(){var Al=this.image,Tl=this._canvas=document.createElement("canvas"),Cl=this._context=Tl.getContext("2d");Tl.className="vibrant-canvas",Tl.style.display="none",this._width=Tl.width=Al.width,this._height=Tl.height=Al.height,Cl.drawImage(Al,0,0),document.body.appendChild(Tl)},Fl.prototype.load=function(Al){var Tl=this,Cl=null,Il=null;if(typeof Al=="string")Cl=document.createElement("img"),!kl(Al)&&!xl(window.location.href,Al)&&(Cl.crossOrigin="anonymous"),Il=Cl.src=Al;else if(Al instanceof HTMLImageElement)Cl=Al,Il=Al.src;else return Promise.reject(new Error("Cannot load buffer as an image in browser"));return this.image=Cl,new Promise(function(Ml,Dl){var Ll=function(){Tl._initCanvas(),Ml(Tl)};Cl.complete?Ll():(Cl.onload=Ll,Cl.onerror=function($l){return Dl(new Error("Fail to load image: "+Il))})})},Fl.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},Fl.prototype.update=function(Al){this._context.putImageData(Al,0,0)},Fl.prototype.getWidth=function(){return this._width},Fl.prototype.getHeight=function(){return this._height},Fl.prototype.resize=function(Al,Tl,Cl){var Il=this,Ml=Il._canvas,Dl=Il._context,Ll=Il.image;this._width=Ml.width=Al,this._height=Ml.height=Tl,Dl.scale(Cl,Cl),Dl.drawImage(Ll,0,0)},Fl.prototype.getPixelCount=function(){return this._width*this._height},Fl.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},Fl.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},Fl})(Tn.ImageBase);return browser$1.default=Nl,browser$1}var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var $=browser&&browser.__importDefault||function(Nn){return Nn&&Nn.__esModule?Nn:{default:Nn}},xn=$(requireVibrant()),En=$(requireBrowser$1());return xn.default.DefaultOpts.ImageClass=En.default,browser=xn.default,browser}var browserExports=requireBrowser();const Vibrant=getDefaultExportFromCjs(browserExports);var utilExports=requireUtil$1();async function getDominantColor($){try{const xn=await new Vibrant($,{colorCount:4}).getPalette();return Object.values(xn).filter(isPresent).sort(by("population",Order.Desc))[0]}catch(xn){return console.warn(`${getDominantColor.name}Error`,xn),null}}function useDominantColor($,xn={height:100}){const[En,Nn]=reactExports.useState(null);return reactExports.useEffect(()=>{const Tn=document.createElement("img");Tn.className="absolute hidden",Tn.alt="",Tn.setAttribute("aria-hidden","true"),Tn.crossOrigin="anonymous",Tn.src=imageUrl($,xn),Tn.addEventListener("load",$n);async function $n(){const kl=await getDominantColor(Tn);Nn(kl?.bodyTextColor==="#fff"?"text-gray-200":"text-gray-800")}return document.body.appendChild(Tn),()=>{document.body.removeChild(Tn),Tn.removeEventListener("load",$n)}},[$,xn]),En}function getVariantImages($){return[$,$.image_2?.reference,$.image_3?.reference,$.image_4?.reference,$.image_5?.reference].filter(isMediaImage).map(xn=>xn.image)}function getShadowColor($){const xn=utilExports.hexToRgb($);if(!xn)return null;const[En,Nn,Tn]=xn,$n=Math.floor((En+Nn+Tn)/3);return $n>200?"shadow-4-25":$n>60?"shadow-4-70":"shadow-4-100"}function getGalleryOverrides($,xn){const En=$.gallery_overrides?.reference;return En?xn.map((Nn,Tn)=>{const $n=En[`image_${Tn+1}`]?.reference;return!$n||!("image"in $n)||$n.image?.url.includes("1x1")?Nn:$n.image??Nn}):xn}function datedShipments($,xn){return $.inStock?xn!=="auk-mini-2"?[]:$.shipments.filter(En=>En.poId==="PREORDER"):$.shipments}function isPreorder($){return $.shipments.some(xn=>xn.poId==="PREORDER")}function isAwaitingStock($,xn){return!$.inStock&&(xn!=="auk-mini-2"||!isPreorder($))}function earliestDatedTime($,xn){if(!isAwaitingStock($,xn))return 0;const En=datedShipments($,xn);return En.length===0?1/0:Math.min(...En.map(Nn=>new Date(Nn.estimatedCheckinDate).getTime()))}function isSellable$1($){return $.inStock||$.inventoryPolicy==="CONTINUE"}function indexStock($){return new Map($.flatMap(xn=>[[xn.id,xn],...xn.variants.map(En=>[En.id,En])]))}const CountryContext=reactExports.createContext({country:getDefaultCountry(),setCountry:$=>{}});function useCountry(){return reactExports.useContext(CountryContext).country}class CountryProvider extends reactExports.Component{state={country:getDefaultCountry(),setCountry:xn=>{this.setState({country:xn})}};render(){return jsxRuntimeExports.jsx(CountryContext.Provider,{value:this.state,children:this.props.children})}}function useMarket(){const $=useSelector(Tn=>Tn.markets),En=useCountry().iso_code;return En==="EU"?$?.filter(Tn=>Tn.currency==="EUR").sort(by(Tn=>Tn.countries,Order.Desc)).pop():$?.find(Tn=>Tn.countries.includes(En))}function ruleQualifies($,xn,En,Nn){if($.productIds&&!$.productIds.some(Tn=>En.productIds?.includes(Tn))||$.minimumQuantity!==null&&En.quantity<$.minimumQuantity)return!1;if($.minimumSubtotal){const Tn=roughConvert($.minimumSubtotal,Nn);if(Tn===null||En.subtotalTn)return!1}return!0}function freesRate($,xn,En,Nn){const Tn=En.filter($n=>$n.merchandise?$n.sellingPlanAllocation?$.appliesOnSubscription:$.appliesOnOneTimePurchase:!1);return Tn.length===0?!1:ruleQualifies($,xn,{subtotal:Tn.reduce(($n,kl)=>$n+linePrice(kl),0),quantity:Tn.reduce(($n,kl)=>$n+kl.quantity,0),productIds:En.flatMap($n=>$n.merchandise?[$n.merchandise.product.id]:[])},Nn)}function getRateForSubtotal($,xn){const En=($.conditions??[]).filter(Nn=>(Nn.criteria??[]).every(Tn=>{if(Tn.field!=="TOTAL_PRICE")return!1;const $n=getPrice(Tn);switch(Tn.operator){case"LESS_THAN_OR_EQUAL_TO":return xn<=$n;case"GREATER_THAN_OR_EQUAL_TO":return xn>=$n}})).sort(by(Nn=>getPrice(Nn.rate),Order.Desc)).pop();return En?parseNumber(En.rate.amount):0}function getSubscriptionShipping($,xn,En,Nn,Tn=0){if(!$)return null;const $n=getFreeShippingThreshold($);if($n!==null&&Tn>=$n)return{rate:0,saving:0};const kl=getRateForSubtotal($,En.subtotal),xl=(Fl,Al)=>($.freeShipping??[]).some(Tl=>(Fl?Tl.appliesOnSubscription:Tl.appliesOnOneTimePurchase)&&ruleQualifies(Tl,kl,Al,xn)),Nl=kl>0&&!xl(!1,En)?kl:0,Rl=kl>0&&!xl(!0,Nn)?kl:0;return{rate:Nl,saving:Nl-Rl}}function getSubscriptionShippingSaving($,xn,En,Nn){return getSubscriptionShipping($,xn,En,Nn)?.saving??0}function useShippingCost($){const xn=useShippingSetting(),En=useFreeShippingThreshold();return!$||!$.lines||!$.cost?null:getShippingCost($,xn,En)}function getShippingCost($,xn,En){const Nn=$.lines.some(Rl=>Rl.merchandise?.requiresShipping);if(!Nn)return{requiresShipping:Nn,cost:0,saved:0,threshold:0,maxCost:0,minCost:0};const Tn=getPrice($.cost.subtotalAmount);if(!xn)return null;const $n=getMaxCost(xn),kl=getMinCost(xn),xl=getRateForSubtotal(xn,Tn),Nl=xl>0&&xn.freeShipping?.some(Rl=>freesRate(Rl,xl,$.lines,$.cost.subtotalAmount.currencyCode))?0:xl;return{requiresShipping:Nn,cost:Nl,saved:kl-Nl,threshold:En??0,minCost:kl,maxCost:$n}}function getRatesForAmount($,xn){return($.conditions??[]).filter(Nn=>(Nn.criteria??[]).every(Tn=>{if(Tn.field!=="TOTAL_PRICE")return!1;const $n=getPrice(Tn);switch(Tn.operator){case"LESS_THAN_OR_EQUAL_TO":return xn<=$n;case"GREATER_THAN_OR_EQUAL_TO":return xn>=$n}}))}function getMinCost($){const xn=getRatesForAmount($,2);return Math.min(...xn.map(En=>getPrice(En.rate)))}function getMaxCost($){const xn=getRatesForAmount($,2);return Math.max(0,...xn.map(En=>getPrice(En.rate)))}function useFreeShippingThreshold(){const $=useShippingSetting();return $?getFreeShippingThreshold($):null}function getFreeShippingThreshold($){const En=($.conditions??[]).flatMap(Nn=>Nn.criteria??[]).map(Nn=>getPrice(Nn));return En?.length?Math.max(...En):null}function useShippingSetting(){const $=useSelector$1(En=>En.shippingSettings),xn=useCurrentCountryCode();return getShippingSetting($,xn)}function getShippingSetting($,xn){return $.find(Nn=>(Nn.countries??[]).includes(xn||""))??$.find(Nn=>(Nn.conditions??[]).some(Tn=>Tn.rate.currencyCode===window.Shopify.currency.active))??$.find(Nn=>(Nn.countries??[]).includes("restOfWorld"))??$[0]??null}const INTL_UNIT={DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"};function cadenceLabel($,xn){const En=$.deliveryPolicy;if(!En?.intervalCount||!En.interval)return $.name;try{return new Intl.NumberFormat(xn,{style:"unit",unit:INTL_UNIT[En.interval],unitDisplay:"long"}).format(En.intervalCount)}catch{return $.name}}function isUpsellLine($){return($.attributes??[]).some(xn=>xn.key===Attributes.UPSELL)}const attribute=($,xn)=>($.attributes??[]).find(En=>En.key===xn)?.value??null;function groupCartLines($){const xn=new Map;for(const Tn of $){const $n=attribute(Tn,Attributes.INCLUDED);$n&&xn.set($n,[...xn.get($n)??[],Tn])}const En=new Set($.map(Tn=>attribute(Tn,Attributes.GROUP)).filter(isPresent)),Nn=new Set;return $.flatMap(Tn=>{const $n=attribute(Tn,Attributes.INCLUDED);if($n)return En.has($n)?[]:[{line:Tn,included:[]}];const kl=attribute(Tn,Attributes.GROUP);return!kl||Nn.has(kl)?[{line:Tn,included:[]}]:(Nn.add(kl),[{line:Tn,included:xn.get(kl)??[]}])})}const CartActions={loadCart:makeActionCreator()("CART_FETCH"),cartFetched:makeActionCreator()("CART_FETCHED"),cartLoaded:makeActionCreator()("CART_LOAD_SUCCESS"),cartUpsellsLoaded:makeActionCreator()("CART_UPSELLS_LOAD_SUCCESS"),addToCart:makeActionCreator()("CART_ADD",{optimistic:!0}),updateQuantity:makeActionCreator()("CART_QUANTITY_UPDATE",{optimistic:!0}),removeFromCart:makeMetaActionCreator()("CART_REMOVE",{optimistic:!0}),updateCartSucess:makeActionCreator()("CART_UPDATE_SUCCESS"),updateCartError:makeActionCreator()("CART_UPDATE_ERROR"),cartAttributesSynced:makeActionCreator()("CART_ATTRIBUTES_SYNCED"),updateCartCountry:makeActionCreator()("CART_COUNTRY_UPDATE"),updateCartCountrySuccesss:makeActionCreator()("CART_COUNTRY_UPDATE_SUCCESS"),updateCartBuyerIdentity:makeActionCreator()("CART_BUYER_IDENTITY_UPDATE"),openCart:makeActionCreator()("CART_OPEN"),addUpsell:makeActionCreator()("UPSELL_ADD"),removeUpsell:makeMetaActionCreator()("UPSELL_REMOVE"),updateUpsell:makeActionCreator()("UPSELL_UPDATE"),loadDeliveryProfiles:makeActionCreator()("SHIPPING_SETTINGS_LOAD"),deliveryProfilesLoaded:makeActionCreator()("SHIPPING_SETTINGS_LOAD_SUCCESS"),loadMarkets:makeActionCreator()("MARKETS_LOAD"),marketsLoaded:makeActionCreator()("MARKETS_LOAD_SUCCESS")},ProductsActions={loadProducts:makeActionCreator()("PRODUCTS_LOAD"),productsLoaded:makeActionCreator()("PRODUCTS_LOAD_SUCCESS"),productsFailed:makeMetaActionCreator()("PRODUCTS_LOAD_ERROR"),loadUpsells:makeActionCreator()("UPSELL_LOAD"),upsellsLoaded:makeActionCreator()("UPSELL_LOAD_SUCCESS"),upsellsCartLoaded:makeActionCreator()("UPSELL_CART_LOAD_SUCCESS"),setUpsellCartPlan:makeActionCreator()("UPSELL_CART_PLAN_SET")},Actions$1={...CartActions,...ProductsActions},CONSTS={SUPPORT_LINK:"https://support.auk.com",DEV_EMAIL:"dev@auk.com"};function parse$1($,xn={}){if(!$)return null;$=$.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'");const En=()=>Tl?.match(/[a-z]/i),Nn=zl=>Dl(/<[a-z]/,2),Tn=zl=>typeof zl=="string"?Dl(``):Dl(/<\/[a-z]/,3),$n=()=>Tl!==void 0,kl=()=>Dl(/({{)|(}})/,2),xl=()=>!Nn()&&!Tn()&&Tl!==void 0,Nl=()=>Tl?['"',"'"].includes(Tl):!1,Rl=()=>Tl==" ",Fl=$;let Al=0,Tl=Fl[Al++];try{const zl=Bl();return Ml(!Tl,`unexpected input: ${Tl}`),typeof zl=="string"?zl:reactExports.createElement(reactExports.Fragment,null,zl)}catch(zl){return console.warn("ParserError",zl),$}function Cl(){const zl=Tl;if(Al>Fl.length)throw new Error("Parser out of bounds");return Tl=Fl[Al++],zl}function Il(zl,Ul){for(;Ul(),Tl==zl;)Cl()}function Ml(zl,Ul){zl||console.warn("Parser:",Ul,"while parsing",$)}function Dl(zl,Ul=0){const Gl=Al-1;if(typeof zl=="string"){Ul=zl.length;for(let ql=0;ql{for(;En();)zl+=Cl();if(zl.length!=0){for(Il(" ",()=>{if(!En())return;let ql="",Kl="";for(;En();)ql+=Cl();Tl=="="?(Cl(),kl()?Kl=Ll():Kl=$l(()=>Nl()||Rl()||Tl==">")):Kl=!0,Ul[toReactProp(ql)]=Kl}),Ml(Tl==">",`Expected >, not ${Tl}`),Cl(),Gl=Bl(),Ml(Tn(zl),`Expected , not ${Tl}`);Tl!==">";)Cl();Cl()}}),zl.length==0?null:reactExports.createElement(zl,Ul,Gl)}function Bl(){const zl=[];let Ul=0;for(;$n()&&Ul++jsxRuntimeExports.jsx(Language.Provider,{value:$,children:xn});function useLocale(){return reactExports.useContext(Language).shop_locale}function useTranslations($,xn){const[En,Nn]=reactExports.useState(null),Tn=useLocale().locale;return reactExports.useEffect(()=>{async function $n(){const kl=await loadTranslations(Tn,$,xn);Nn(kl)}$n()},[Tn,$,xn]),En}const cacheKey$1=($,xn,En)=>`${$}.${xn}.${En&&JSON.stringify(En)})`,loadTranslations=memoize(__lt,cacheKey$1);async function __lt($,xn,En){const Nn=await loadLanguage($);return parseTranslations(Nn,xn,En)}function parseTranslations($,xn,En){const Nn=xn?.split(".").length??0,Tn=xn?get$1($,xn):$;switch(Nn){case 0:return objectMap(Tn,$n=>objectMap($n,kl=>objectMap(kl,xl=>parse$1(xl,En))));case 1:return objectMap(Tn,$n=>objectMap($n,kl=>parse$1(kl,En)));case 2:return objectMap(Tn,$n=>parse$1($n,En));default:return parse$1(Tn,En)}}const loadLanguage=memoize(__ll);async function __ll($){return window.TRANSLATIONS}class ErrorBoundary extends reactExports.Component{constructor(xn){super(xn),this.state={hasError:!1}}static getDerivedStateFromError(xn){return{hasError:!0,error:xn}}componentDidCatch(xn,En){this.props.onError?.(xn),analytics()?.captureException(xn,{componentStack:En.componentStack,errorBoundary:!0})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntimeExports.jsxs("div",{className:"error-boundary",children:[jsxRuntimeExports.jsx("h2",{children:"Something went wrong"}),this.state.error&&jsxRuntimeExports.jsx("p",{children:this.state.error.message}),jsxRuntimeExports.jsx("button",{onClick:()=>this.setState({hasError:!1,error:void 0}),children:"Try again"})]}):this.props.children}}function r($){var xn,En,Nn="";if(typeof $=="string"||typeof $=="number")Nn+=$;else if(typeof $=="object")if(Array.isArray($)){var Tn=$.length;for(xn=0;xntypeof $=="boolean"?`${$}`:$===0?"0":$,cx=clsx,cva=($,xn)=>En=>{var Nn;if(xn?.variants==null)return cx($,En?.class,En?.className);const{variants:Tn,defaultVariants:$n}=xn,kl=Object.keys(Tn).map(Rl=>{const Fl=En?.[Rl],Al=$n?.[Rl];if(Fl===null)return null;const Tl=falsyToString(Fl)||falsyToString(Al);return Tn[Rl][Tl]}),xl=En&&Object.entries(En).reduce((Rl,Fl)=>{let[Al,Tl]=Fl;return Tl===void 0||(Rl[Al]=Tl),Rl},{}),Nl=xn==null||(Nn=xn.compoundVariants)===null||Nn===void 0?void 0:Nn.reduce((Rl,Fl)=>{let{class:Al,className:Tl,...Cl}=Fl;return Object.entries(Cl).every(Il=>{let[Ml,Dl]=Il;return Array.isArray(Dl)?Dl.includes({...$n,...xl}[Ml]):{...$n,...xl}[Ml]===Dl})?[...Rl,Al,Tl]:Rl},[]);return cx($,kl,Nl,En?.class,En?.className)},buttonVariants=cva("inline-flex select-none items-center justify-center whitespace-nowrap border-solid no-underline",{variants:{radius:{full:"rounded-full",9:"rounded-9"},variant:{primary:"bg-green hocus:bg-green-600 border-0 text-white",secondary:"border-green text-green hocus:text-green hocus:border-green border-2 bg-white"},size:{xs:"tracking-none px-3.5 py-0.5 text-base font-bold",sm:"px-4 py-2 text-10 font-bold tracking-[1.5px]",md:"px-7 py-1 text-[13px] font-semibold md:text-15",lg:"text-[13px] md:text-15",xl:"p-3.5 text-[13px] font-bold tracking-[1.5px] md:text-15",pill:"px-3.5 py-2 text-[14px] font-bold leading-none","pill-square":"size-[38px] text-[14px] font-bold leading-none"},transparent:{true:"hocus:bg-gray-800 hocus:bg-opacity-5 bg-transparent text-inherit"},disabled:{true:"opacity-50 saturate-[0.8]"}},defaultVariants:{radius:"full",variant:"primary"}}),Button=$=>{const{active:xn,secondary:En,transparent:Nn,size:Tn,radius:$n,variant:kl,className:xl,children:Nl,disabled:Rl,onDisabledClick:Fl,onClick:Al,...Tl}=$,Cl=!!Tl.href&&!Rl,Il=Cl?"a":"button",Ml={...Tl};return Cl||(delete Ml.href,delete Ml.target,delete Ml.rel),jsxRuntimeExports.jsx(Il,{className:cn(buttonVariants({variant:kl??(En?"secondary":"primary"),size:Tn,radius:$n,transparent:Nn,disabled:Rl}),xl,{active:xn}),"aria-disabled":Rl,onClick:Dl=>Rl?Fl&&Fl(Dl):Al&&Al(Dl),...Ml,children:Nl})},Bulb=""+new URL("bulb.svg",import.meta.url).href,Calendar=""+new URL("calendar.svg",import.meta.url).href,Capsule=""+new URL("capsule.svg",import.meta.url).href,Caret=({stroke:$="currentColor",...xn})=>jsxRuntimeExports.jsx("svg",{viewBox:"0 0 7 5",fill:"none",height:"0.42em",xmlns:"http://www.w3.org/2000/svg",...xn,children:jsxRuntimeExports.jsx("path",{d:"M0.5 1L3.5 4L6.5 1",stroke:$})}),CartIcon=({stroke:$="currentColor",fill:xn="none",height:En="26px",className:Nn,...Tn})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"none",className:cn("align-middle",Nn),height:En,stroke:$,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",viewBox:"0 0 22 16",...Tn,children:[jsxRuntimeExports.jsxs("mask",{id:"cart-mask",children:[jsxRuntimeExports.jsx("rect",{width:22,height:16,fill:"white"}),jsxRuntimeExports.jsx("circle",{cx:9.02,cy:13.88,r:1.63,fill:"black"}),jsxRuntimeExports.jsx("circle",{cx:17.74,cy:13.88,r:1.63,fill:"black"})]}),jsxRuntimeExports.jsx("path",{d:"m6.97 11.03-.81 1.07a.68.68 0 0 0 .46 1.09h11.95M.89.86H3.1l1.03 2.1",mask:"url(#cart-mask)"}),jsxRuntimeExports.jsx("path",{fill:xn,d:"M21.3 2.97H4.14l2.94 8.06h11.28l2.94-8.06Z"}),jsxRuntimeExports.jsx("circle",{cx:9.02,cy:13.88,r:1.63,fill:xn,stroke:"#3faf6d"}),jsxRuntimeExports.jsx("circle",{cx:17.74,cy:13.88,r:1.63,fill:xn,stroke:"#3faf6d"})]}),Arrow=({height:$="1em",...xn})=>jsxRuntimeExports.jsx("svg",{height:$,viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...xn,children:jsxRuntimeExports.jsx("path",{d:"M14.544 4.728V6.648L3.648 6.648V6.744L8.448 11.4H5.712L0 5.688L5.664 0L8.424 2.41287e-07L3.648 4.656V4.728L14.544 4.728Z",fill:"currentColor"})}),Checkmark=$=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 12 8",height:"1em",...$,children:jsxRuntimeExports.jsx("path",{d:"M9.96.2 4.1 6.05 2.04 3.97a.6.6 0 0 0-.88 0 .6.6 0 0 0 0 .88l2.51 2.52a.6.6 0 0 0 .44.19c.2 0 .32-.07.44-.2l6.29-6.28a.6.6 0 0 0 0-.88.6.6 0 0 0-.88 0Z"})}),Chip=""+new URL("chip.svg",import.meta.url).href,Close=({className:$,height:xn="1em",...En})=>jsxRuntimeExports.jsx("svg",{className:cn("align-middle",$),"aria-hidden":"true",focusable:"false",role:"presentation",viewBox:"0 0 16.8 16.8",width:xn,height:xn,fill:"currentColor",...En,children:jsxRuntimeExports.jsx("path",{d:"M16.8 1.5L15.4.1 8.4 7l-7-7L0 1.4l7 7-7 7 1.4 1.4 7-7 7 7 1.4-1.4-7-7z"})}),Coco=""+new URL("coco.svg",import.meta.url).href,CountryIcon=({isoCode:$})=>jsxRuntimeExports.jsx("span",{className:"text-[23px] leading-none md:text-[27px]",children:jsxRuntimeExports.jsx("span",{className:`fi fi-${$.toLowerCase()} fis overflow-hidden rounded-full bg-cover align-middle`,children:jsxRuntimeExports.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-black opacity-15"})})}),Expand=$=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",...$,children:[jsxRuntimeExports.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),jsxRuntimeExports.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),jsxRuntimeExports.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),jsxRuntimeExports.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),FEATURE_ICONS={truck:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"}),jsxRuntimeExports.jsx("path",{d:"M15 18H9"}),jsxRuntimeExports.jsx("path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"}),jsxRuntimeExports.jsx("circle",{cx:"17",cy:"18",r:"2"}),jsxRuntimeExports.jsx("circle",{cx:"7",cy:"18",r:"2"})]}),check:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"m9 12 2 2 4-4"})]}),box:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}),jsxRuntimeExports.jsx("path",{d:"m3.3 7 8.7 5 8.7-5"}),jsxRuntimeExports.jsx("path",{d:"M12 22V12"})]}),clock:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"M12 6v6l4 2"})]}),calendar:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M8 2v3"}),jsxRuntimeExports.jsx("path",{d:"M16 2v3"}),jsxRuntimeExports.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),jsxRuntimeExports.jsx("path",{d:"M3 9h18"})]}),smile:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"M8 14s1.5 2 4 2 4-2 4-2"}),jsxRuntimeExports.jsx("line",{x1:"9",x2:"9.01",y1:"9",y2:"9"}),jsxRuntimeExports.jsx("line",{x1:"15",x2:"15.01",y1:"9",y2:"9"})]}),shield:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}),jsxRuntimeExports.jsx("path",{d:"m9 12 2 2 4-4"})]}),leaf:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z"}),jsxRuntimeExports.jsx("path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12"})]}),sprout:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3"}),jsxRuntimeExports.jsx("path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4"}),jsxRuntimeExports.jsx("path",{d:"M5 21h14"})]}),lock:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),jsxRuntimeExports.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),gift:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M12 7v14"}),jsxRuntimeExports.jsx("path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}),jsxRuntimeExports.jsx("path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}),jsxRuntimeExports.jsx("rect",{x:"3",y:"7",width:"18",height:"4",rx:"1"})]}),return:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),jsxRuntimeExports.jsx("path",{d:"M3 3v5h5"})]}),star:jsxRuntimeExports.jsx("path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}),globe:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),jsxRuntimeExports.jsx("path",{d:"M2 12h20"})]})},FeatureIcon=({name:$,className:xn,...En})=>{const Nn=$?FEATURE_ICONS[$]:null;return Nn?jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:cn("size-5 shrink-0",xn),...En,children:Nn}):null},GrownPlant=""+new URL("grown plant.svg",import.meta.url).href,Leaf=({fill:$="currentColor",height:xn="1em",...En})=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",width:xn,height:xn,fill:$,...En,viewBox:"0 0 16 16",children:jsxRuntimeExports.jsx("path",{d:"M2.51 8.77a3.7 3.7 0 0 0 2.17.66c.5 0 1.07-.1 1.68-.28.36.38.63.84.79 1.33 0 1.08.35 3.62.37 3.66a.29.29 0 0 0 .53-.22c0-.03-.66-3.31-.07-4.95.78.24 1.5.36 2.16.36 1.04 0 1.97-.28 2.76-.84C15.83 6.45 16 1.43 16 1.22a.29.29 0 0 0-.31-.3c-3.59.3-6.06 1.39-7.36 3.25a5.7 5.7 0 0 0-.84 4.46c-.1.24-.17.49-.23.74a4.2 4.2 0 0 0-.46-.6c.1-.45.33-1.99-.67-3.42C5.1 3.89 3.19 3.05.4 2.82a.29.29 0 0 0-.31.3c0 .16.13 4.06 2.41 5.65ZM14.87 2.1a.3.3 0 0 1-.15.4 12.9 12.9 0 0 0-5.88 5.45.3.3 0 1 1-.52-.29 13.49 13.49 0 0 1 6.15-5.71.3.3 0 0 1 .4.15ZM6.18 8.4a.3.3 0 0 0 .5-.33 12 12 0 0 0-4.85-4.4.3.3 0 0 0-.25.54 11.4 11.4 0 0 1 4.6 4.2Z"})}),Lock=({className:$,...xn})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:cn("size-[15px] shrink-0",$),...xn,children:[jsxRuntimeExports.jsx("path",{d:"M10.69 6.56H4.3c-.83 0-1.5.67-1.5 1.5v3.56c0 .83.67 1.5 1.5 1.5h6.38c.83 0 1.5-.67 1.5-1.5V8.07c0-.83-.67-1.5-1.5-1.5"}),jsxRuntimeExports.jsx("path",{d:"M5.13 6.56V4.5a2.37 2.37 0 1 1 4.75 0v2.06"})]}),AmexIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",role:"img",viewBox:"0 0 38 24",height:"24","aria-labelledby":"pi-american_express",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-american_express",children:"American Express"}),jsxRuntimeExports.jsxs("g",{fill:"none",children:[jsxRuntimeExports.jsx("path",{fill:"#000",d:"M35,0 L3,0 C1.3,0 0,1.3 0,3 L0,21 C0,22.7 1.4,24 3,24 L35,24 C36.7,24 38,22.7 38,21 L38,3 C38,1.3 36.6,0 35,0 Z",opacity:".07"}),jsxRuntimeExports.jsx("path",{fill:"#006FCF",d:"M35,1 C36.1,1 37,1.9 37,3 L37,21 C37,22.1 36.1,23 35,23 L3,23 C1.9,23 1,22.1 1,21 L1,3 C1,1.9 1.9,1 3,1 L35,1"}),jsxRuntimeExports.jsx("path",{fill:"#FFF",d:"M8.971,10.268 L9.745,12.144 L8.203,12.144 L8.971,10.268 Z M25.046,10.346 L22.069,10.346 L22.069,11.173 L24.998,11.173 L24.998,12.412 L22.075,12.412 L22.075,13.334 L25.052,13.334 L25.052,14.073 L27.129,11.828 L25.052,9.488 L25.046,10.346 L25.046,10.346 Z M10.983,8.006 L14.978,8.006 L15.865,9.941 L16.687,8 L27.057,8 L28.135,9.19 L29.25,8 L34.013,8 L30.494,11.852 L33.977,15.68 L29.143,15.68 L28.065,14.49 L26.94,15.68 L10.03,15.68 L9.536,14.49 L8.406,14.49 L7.911,15.68 L4,15.68 L7.286,8 L10.716,8 L10.983,8.006 Z M19.646,9.084 L17.407,9.084 L15.907,12.62 L14.282,9.084 L12.06,9.084 L12.06,13.894 L10,9.084 L8.007,9.084 L5.625,14.596 L7.18,14.596 L7.674,13.406 L10.27,13.406 L10.764,14.596 L13.484,14.596 L13.484,10.661 L15.235,14.602 L16.425,14.602 L18.165,10.673 L18.165,14.603 L19.623,14.603 L19.647,9.083 L19.646,9.084 Z M28.986,11.852 L31.517,9.084 L29.695,9.084 L28.094,10.81 L26.546,9.084 L20.652,9.084 L20.652,14.602 L26.462,14.602 L28.076,12.864 L29.624,14.602 L31.499,14.602 L28.987,11.852 L28.986,11.852 Z"})]})]}),ApplePayIcon=({size:$,...xn})=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 60",height:24,...xn,children:jsxRuntimeExports.jsxs("g",{fill:"none",fillRule:"evenodd",children:[jsxRuntimeExports.jsx("rect",{y:"1",x:"1",width:"98",height:"58",rx:"10",stroke:"#000",fill:"#FFF",strokeWidth:"2"}),jsxRuntimeExports.jsx("path",{fill:"#000",d:"M33.9 28c0 3.8 3.5 5 3.5 5 0 .2-.5 1.9-1.8 3.7-1.1 1.5-2.2 3-4 3-1.8.1-2.4-1-4.4-1s-2.6 1-4.3 1.1c-1.7 0-3-1.7-4.2-3.2-2.2-3.1-4-8.9-1.6-12.7 1.1-2 3.2-3.2 5.4-3.2 1.7 0 3.3 1.1 4.4 1.1 1 0 3-1.4 5-1.2.9 0 3.3.4 4.8 2.5 0 .1-2.8 1.7-2.8 4.9m-3.3-9.4a5.4 5.4 0 0 0 1.3-4 6 6 0 0 0-3.8 1.8c-.9 1-1.6 2.5-1.4 4a5 5 0 0 0 3.9-1.8m13.3-1.9a41.7 41.7 0 0 1 2.2-.3 24.8 24.8 0 0 1 2.8-.1c1.4 0 2.6.2 3.6.5s1.9.8 2.5 1.4a5.8 5.8 0 0 1 1.4 2c.3.7.4 1.6.4 2.5a7 7 0 0 1-.6 3.1 6.5 6.5 0 0 1-1.8 2.3c-.8.6-1.6 1-2.7 1.3a13.7 13.7 0 0 1-6.2.2v9.8H44V16.7zm1.6 11.5 1.4.2 1.6.1c2 0 3.7-.5 4.9-1.4 1.2-1 1.7-2.4 1.7-4.2a5 5 0 0 0-.4-2.3 4.2 4.2 0 0 0-1.3-1.7 6 6 0 0 0-2-1l-2.6-.2a18.9 18.9 0 0 0-3.3.2v10.3zM70 35.6a56.7 56.7 0 0 0 .3 3.8h-1.6l-.2-2.3h-.1a5.8 5.8 0 0 1-.8 1 6.2 6.2 0 0 1-2.6 1.5 6.6 6.6 0 0 1-1.9.2c-.8 0-1.5-.1-2.1-.4-.7-.2-1.2-.6-1.6-1a4.1 4.1 0 0 1-.9-1.4 4.7 4.7 0 0 1-.3-1.7 5 5 0 0 1 2.6-4.4 14 14 0 0 1 7.6-1.5v-.5c0-.4 0-1-.2-1.5a4.6 4.6 0 0 0-.5-1.6 3 3 0 0 0-1.3-1.2c-.5-.4-1.3-.5-2.3-.5-.7 0-1.4 0-2.1.3a7.4 7.4 0 0 0-2 .9l-.5-1.2a8 8 0 0 1 2.3-1 9.6 9.6 0 0 1 2.5-.4c1.2 0 2.1.2 2.9.6a5 5 0 0 1 1.7 1.5c.4.6.7 1.3.9 2l.2 2.3v6.5zm-1.6-5-2.8.2c-1 0-2 .3-2.7.6-.9.3-1.5.7-2 1.3-.6.6-.9 1.4-.9 2.4 0 1.1.3 2 1 2.5.7.6 1.5.9 2.3.9.7 0 1.3-.1 1.9-.3a4.7 4.7 0 0 0 2.4-1.8l.6-1.2.2-1v-3.5zm4.9-7.5 4.3 10.6a35.4 35.4 0 0 1 1.2 3.6 212 212 0 0 1 1.3-3.7l4-10.5H86L81 35a136.7 136.7 0 0 1-1.4 3.4 32.3 32.3 0 0 1-1.3 2.8c-.4.9-.9 1.6-1.4 2.2a9.3 9.3 0 0 1-1.5 1.7c-.6.6-1.3 1-1.8 1.3a15.8 15.8 0 0 1-1.1.5l-.6-1.4 1.4-.7a7.7 7.7 0 0 0 1.5-1.2 13.7 13.7 0 0 0 2.8-4l.2-.7c0-.2 0-.4-.2-.7L71.5 23h1.8z"})]})}),BancontactIcon=({size:$,...xn})=>{const En=reactExports.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":`${En}title`,...xn,children:[jsxRuntimeExports.jsx("title",{id:`${En}title`,children:"Bancontact"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{fill:"#1E3764",d:"M6.38 18.562v-3.077h1.125c.818 0 1.344.259 1.344.795 0 .304-.167.515-.401.638.338.132.536.387.536.734 0 .62-.536.91-1.37.91H6.38Zm.724-1.798h.537c.328 0 .468-.136.468-.387 0-.268-.255-.356-.599-.356h-.406v.743Zm0 1.262h.448c.438 0 .693-.093.693-.383 0-.286-.219-.404-.63-.404h-.51v.787Zm3.284.589c-.713 0-1.073-.295-1.073-.69 0-.436.422-.69 1.047-.695.156.002.31.014.464.035v-.105c0-.269-.183-.396-.531-.396a2.128 2.128 0 0 0-.688.105l-.13-.474a3.01 3.01 0 0 1 .9-.132c.767 0 1.147.343 1.147.936v1.222c-.214.093-.615.194-1.136.194Zm.438-.497v-.47a2.06 2.06 0 0 0-.37-.036c-.24 0-.427.08-.427.286 0 .185.156.281.432.281a.947.947 0 0 0 .365-.061Zm1.204.444v-2.106a3.699 3.699 0 0 1 1.177-.193c.76 0 1.198.316 1.198.9v1.399h-.719v-1.354c0-.303-.167-.444-.484-.444a1.267 1.267 0 0 0-.459.079v1.719h-.713Zm4.886-2.167-.135.479a1.834 1.834 0 0 0-.588-.11c-.422 0-.652.25-.652.664 0 .453.24.685.688.685.2-.004.397-.043.578-.114l.115.488a2.035 2.035 0 0 1-.75.128c-.865 0-1.365-.453-1.365-1.17 0-.712.495-1.182 1.323-1.182.27-.001.538.043.787.132Zm1.553 2.22c-.802 0-1.302-.47-1.302-1.178 0-.704.5-1.174 1.302-1.174.807 0 1.297.47 1.297 1.173 0 .708-.49 1.179-1.297 1.179Zm0-.502c.37 0 .563-.259.563-.677 0-.413-.193-.672-.563-.672-.364 0-.568.26-.568.672 0 .418.204.677.568.677Zm1.713.449v-2.106a3.699 3.699 0 0 1 1.177-.193c.76 0 1.198.316 1.198.9v1.399h-.719v-1.354c0-.303-.166-.444-.484-.444a1.268 1.268 0 0 0-.459.079v1.719h-.713Zm3.996.053c-.62 0-.938-.286-.938-.866v-.95h-.354v-.484h.355v-.488l.718-.03v.518h.578v.484h-.578v.94c0 .256.125.374.36.374.093 0 .185-.008.276-.026l.036.488c-.149.028-.3.041-.453.04Zm1.814 0c-.713 0-1.073-.295-1.073-.69 0-.436.422-.69 1.047-.695.155.002.31.014.464.035v-.105c0-.269-.183-.396-.532-.396a2.128 2.128 0 0 0-.687.105l-.13-.474a3.01 3.01 0 0 1 .9-.132c.766 0 1.146.343 1.146.936v1.222c-.213.093-.614.194-1.135.194Zm.438-.497v-.47a2.06 2.06 0 0 0-.37-.036c-.24 0-.427.08-.427.286 0 .185.156.281.432.281a.946.946 0 0 0 .365-.061Zm3.157-1.723-.136.479a1.834 1.834 0 0 0-.588-.11c-.422 0-.651.25-.651.664 0 .453.24.685.687.685.2-.004.397-.043.578-.114l.115.488a2.035 2.035 0 0 1-.75.128c-.865 0-1.365-.453-1.365-1.17 0-.712.495-1.182 1.323-1.182.27-.001.538.043.787.132Zm1.58 2.22c-.62 0-.938-.286-.938-.866v-.95h-.354v-.484h.354v-.488l.72-.03v.518h.577v.484h-.578v.94c0 .256.125.374.36.374.092 0 .185-.008.276-.026l.036.488c-.149.028-.3.041-.453.04Z"}),jsxRuntimeExports.jsx("path",{fill:`url(#${En}a)`,d:"M11.394 13.946c3.803 0 5.705-2.14 7.606-4.28H6.38v4.28h5.014Z"}),jsxRuntimeExports.jsx("path",{fill:`url(#${En}b)`,d:"M26.607 5.385c-3.804 0-5.705 2.14-7.607 4.28h12.62v-4.28h-5.013Z"}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:`${En}a`,x1:"8.933",y1:"12.003",x2:"17.734",y2:"8.13",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#005AB9"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#1E3764"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:`${En}b`,x1:"19.764",y1:"10.037",x2:"29.171",y2:"6.235",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FBA900"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FFD800"})]})]})]})},GooglePayIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":"pi-google_pay",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-google_pay",children:"Google Pay"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{fill:"#5F6368",d:"M18.093 11.976v3.2h-1.018v-7.9h2.691a2.447 2.447 0 0 1 1.747.692 2.28 2.28 0 0 1 .11 3.224l-.11.116c-.47.447-1.098.69-1.747.674l-1.673-.006zm0-3.732v2.788h1.698c.377.012.741-.135 1.005-.404a1.391 1.391 0 0 0-1.005-2.354l-1.698-.03zm6.484 1.348c.65-.03 1.286.188 1.778.613.445.43.682 1.03.65 1.649v3.334h-.969v-.766h-.049a1.93 1.93 0 0 1-1.673.931 2.17 2.17 0 0 1-1.496-.533 1.667 1.667 0 0 1-.613-1.324 1.606 1.606 0 0 1 .613-1.336 2.746 2.746 0 0 1 1.698-.515c.517-.02 1.03.093 1.49.331v-.208a1.134 1.134 0 0 0-.417-.901 1.416 1.416 0 0 0-.98-.368 1.545 1.545 0 0 0-1.319.717l-.895-.564a2.488 2.488 0 0 1 2.182-1.06zM23.29 13.52a.79.79 0 0 0 .337.662c.223.176.5.269.785.263.429-.001.84-.17 1.146-.472.305-.286.478-.685.478-1.103a2.047 2.047 0 0 0-1.324-.374 1.716 1.716 0 0 0-1.03.294.883.883 0 0 0-.392.73zm9.286-3.75l-3.39 7.79h-1.048l1.281-2.728-2.224-5.062h1.103l1.612 3.885 1.569-3.885h1.097z"}),jsxRuntimeExports.jsx("path",{fill:"#4285F4",d:"M13.986 11.284c0-.308-.024-.616-.073-.92h-4.29v1.747h2.451a2.096 2.096 0 0 1-.9 1.373v1.134h1.464a4.433 4.433 0 0 0 1.348-3.334z"}),jsxRuntimeExports.jsx("path",{fill:"#34A853",d:"M9.629 15.721a4.352 4.352 0 0 0 3.01-1.097l-1.466-1.14a2.752 2.752 0 0 1-4.094-1.44H5.577v1.17a4.53 4.53 0 0 0 4.052 2.507z"}),jsxRuntimeExports.jsx("path",{fill:"#FBBC04",d:"M7.079 12.05a2.709 2.709 0 0 1 0-1.735v-1.17H5.577a4.505 4.505 0 0 0 0 4.075l1.502-1.17z"}),jsxRuntimeExports.jsx("path",{fill:"#EA4335",d:"M9.629 8.44a2.452 2.452 0 0 1 1.74.68l1.3-1.293a4.37 4.37 0 0 0-3.065-1.183 4.53 4.53 0 0 0-4.027 2.5l1.502 1.171a2.715 2.715 0 0 1 2.55-1.875z"})]}),IdealIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":"pi-ideal",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-ideal",children:"iDEAL"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M11.5286 5.35759V18.694h8.1496c5.376 0 7.7073-2.8724 7.7073-6.6815 0-3.79396-2.3313-6.65508-7.7073-6.65508l-8.1496.00017Z"}),jsxRuntimeExports.jsx("path",{d:"M19.7305 5.06445c7.1132 0 8.175 4.35195 8.175 6.94535 0 4.4998-2.903 6.9778-8.175 6.9778H11.0118V5.06462l8.7187-.00017Zm-8.0322.65476V18.3329h8.0322c4.8504 0 7.489-2.1557 7.489-6.3231 0-4.28234-2.8603-6.29049-7.489-6.29049h-8.0322Z"}),jsxRuntimeExports.jsx("path",{d:"M12.7759 17.3045h2.5715v-4.3673h-2.5717m2.8836-2.1997c0 .8421-.7153 1.525-1.598 1.525-.8823 0-1.598-.6829-1.598-1.525 0-.4043.1683-.79213.468-1.07805.2997-.28593.7061-.44656 1.13-.44656.4238 0 .8302.16063 1.1299.44656.2997.28592.4681.67375.4681 1.07805Z"}),jsxRuntimeExports.jsx("path",{fill:"#CC0066",d:"M20.7043 11.4505v.7068h-1.8324V9.32029h1.7733v.70631h-1.0325v.329h.9765v.706h-.9765v.3887l1.0916.0002Zm.3557.7075.8969-2.83856h1.054l.8966 2.83856h-.7713l-.1679-.5491h-.9688l-.1687.5491h-.7708Zm1.156-1.2552h.5358l-.2451-.8021h-.0444l-.2463.8021Zm2.0637-1.58306h.7408V11.4505h1.0973c-.301-3.86706-3.4895-4.70245-6.3866-4.70245h-3.0894v2.57258h.4571c.8339 0 1.3516.53951 1.3516 1.40687 0 .8953-.5056 1.4295-1.3516 1.4295h-.4567v5.1482h3.0886c4.7108 0 6.3502-2.0872 6.4081-5.148h-1.8592V9.31944ZM16.6415 10.0273v1.4232h.4577c.3173 0 .6102-.0874.6102-.7227 0-.6211-.326-.7007-.6102-.7007l-.4577.0002Z"})]}),KlarnaIcon=({size:$,...xn})=>jsxRuntimeExports.jsx(KlarnaIconSmall,{...xn}),KlarnaIconSmall=$=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 444.8",height:"24",...$,children:jsxRuntimeExports.jsxs("g",{transform:"translate(.2 .3) scale(17.769)",children:[jsxRuntimeExports.jsx("rect",{width:"45",height:"25",fill:"#ffb3c7",rx:"4.3"}),jsxRuntimeExports.jsx("path",{fill:"#0a0b09",d:"M40.8 14.7a1 1 0 0 0-1 1c0 .6.4 1.1 1 1.1s1-.5 1-1c0-.6-.4-1.1-1-1.1zm-3.5-.9c0-.8-.7-1.4-1.6-1.4s-1.5.6-1.5 1.4c0 .9.7 1.5 1.5 1.5s1.6-.6 1.6-1.5zm0-2.8H39v5.7h-1.7v-.4a3 3 0 0 1-4.7-2.5 3 3 0 0 1 4.7-2.5V11zm-13.6.7V11H22v5.7h1.7V14c0-.9 1-1.4 1.6-1.4V11c-.6 0-1.3.3-1.6.7zm-4.3 2.1c0-.8-.7-1.4-1.6-1.4-.8 0-1.5.6-1.5 1.4 0 .9.7 1.5 1.5 1.5.9 0 1.6-.6 1.6-1.5zm0-2.8H21v5.7h-1.7v-.4a3 3 0 0 1-4.7-2.5 3 3 0 0 1 4.7-2.5V11zm10.2-.2c-.7 0-1.3.2-1.8.8V11h-1.7v5.7H28v-3c0-.9.5-1.3 1.2-1.3.8 0 1.2.4 1.2 1.3v3H32v-3.6c0-1.4-1-2.3-2.4-2.3zm-17.4 5.9H14V8.4h-1.8zm-7.8 0h1.9V8.4H4.4zM11 8.4c0 1.8-.7 3.5-2 4.7l2.7 3.6H9.3l-2.8-3.9.7-.5c1.3-1 2-2.3 2-3.9H11z"})]})}),MastercardIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":"pi-master",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-master",children:"Mastercard"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("circle",{fill:"#EB001B",cx:"15",cy:"12",r:"7"}),jsxRuntimeExports.jsx("circle",{fill:"#F79E1B",cx:"23",cy:"12",r:"7"}),jsxRuntimeExports.jsx("path",{fill:"#FF5F00",d:"M22 12c0-2.4-1.2-4.5-3-5.7-1.8 1.3-3 3.4-3 5.7s1.2 4.5 3 5.7c1.8-1.2 3-3.3 3-5.7z"})]}),MobilePayIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":"pi-mobilepay",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-mobilepay",children:"MobilePay"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{fill:"#5A78FF",fillRule:"evenodd",clipRule:"evenodd",d:"M20.05 15.296s2.53-.771 4.282-.776c2.896-.007 4.857 1.15 4.857 1.15V10.06s-1.97-1.02-4.453-1.09c-2.481-.068-4.687 1.012-4.687 1.012v5.313z"}),jsxRuntimeExports.jsx("path",{fill:"#5A78FF",fillRule:"evenodd",clipRule:"evenodd",d:"M17.308 9.19l2.082 4.957V9.396s1.646-.882 3.485-1.13c1.84-.249 4.181.08 4.181.08l-1.133-2.707s-2.461-.159-4.69.794c-2.228.952-3.925 2.756-3.925 2.756z"}),jsxRuntimeExports.jsx("path",{fill:"#5A78FF",d:"M21.428 5.676l-.82-1.99a1.818 1.818 0 00-2.37-.996l-5.663 2.334a1.818 1.818 0 00-.98 2.376l5.46 13.247a1.818 1.818 0 002.37.995l5.662-2.334a1.817 1.817 0 00.98-2.376l-.677-1.642s-.462-.027-.676-.033c-.226-.006-.644-.001-.644-.001l.88 2.136a.606.606 0 01-.326.793l-5.663 2.333a.606.606 0 01-.79-.331L12.711 6.94a.606.606 0 01.327-.792L18.7 3.814a.606.606 0 01.79.332l.83 2.011s.383-.187.59-.27c.206-.082.518-.211.518-.211z"})]}),PaypalIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",height:"24",role:"img","aria-labelledby":"pi-paypal",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-paypal",children:"PayPal"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{fill:"#003087",d:"M23.9 8.3c.2-1 0-1.7-.6-2.3-.6-.7-1.7-1-3.1-1h-4.1c-.3 0-.5.2-.6.5L14 15.6c0 .2.1.4.3.4H17l.4-3.4 1.8-2.2 4.7-2.1z"}),jsxRuntimeExports.jsx("path",{fill:"#3086C8",d:"M23.9 8.3l-.2.2c-.5 2.8-2.2 3.8-4.6 3.8H18c-.3 0-.5.2-.6.5l-.6 3.9-.2 1c0 .2.1.4.3.4H19c.3 0 .5-.2.5-.4v-.1l.4-2.4v-.1c0-.2.3-.4.5-.4h.3c2.1 0 3.7-.8 4.1-3.2.2-1 .1-1.8-.4-2.4-.1-.5-.3-.7-.5-.8z"}),jsxRuntimeExports.jsx("path",{fill:"#012169",d:"M23.3 8.1c-.1-.1-.2-.1-.3-.1-.1 0-.2 0-.3-.1-.3-.1-.7-.1-1.1-.1h-3c-.1 0-.2 0-.2.1-.2.1-.3.2-.3.4l-.7 4.4v.1c0-.3.3-.5.6-.5h1.3c2.5 0 4.1-1 4.6-3.8v-.2c-.1-.1-.3-.2-.5-.2h-.1z"})]}),ShopPayIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 38 24",height:"24",fill:"none",children:[jsxRuntimeExports.jsxs("g",{clipPath:"url(#a)",children:[jsxRuntimeExports.jsx("path",{fill:"#5A31F4",d:"M35 0H3C1.3 0 0 1.3 0 3v18a3 3 0 0 0 3 3h32c1.7 0 3-1.3 3-3V3a3 3 0 0 0-3-3Z"}),jsxRuntimeExports.jsx("path",{fill:"#5A31F4",d:"M35 1a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2h32Z"}),jsxRuntimeExports.jsx("g",{fill:"#fff",clipPath:"url(#b)",children:jsxRuntimeExports.jsx("path",{d:"M9.86 11.4c-.97-.21-1.4-.3-1.4-.67 0-.36.3-.53.88-.53.5 0 .88.22 1.16.67.02.03.06.04.1.02l1.08-.55a.08.08 0 0 0 .03-.11C11.26 9.43 10.43 9 9.33 9 7.9 9 7 9.72 7 10.87c0 1.21 1.09 1.52 2.05 1.73.97.21 1.4.3 1.4.67 0 .38-.31.56-.94.56-.58 0-1-.27-1.27-.8a.08.08 0 0 0-.1-.03l-1.08.55a.08.08 0 0 0-.04.1c.43.88 1.31 1.37 2.5 1.37 1.5 0 2.4-.7 2.4-1.89 0-1.17-1.1-1.52-2.06-1.73ZM15.67 9c-.61 0-1.16.23-1.55.62a.04.04 0 0 1-.06-.03V7.08a.08.08 0 0 0-.08-.08h-1.36a.08.08 0 0 0-.07.08v7.8c0 .05.03.08.07.08h1.36c.04 0 .08-.03.08-.08v-3.42c0-.66.5-1.17 1.17-1.17.68 0 1.16.5 1.16 1.17v3.42c0 .05.04.08.08.08h1.36c.04 0 .07-.03.07-.08v-3.42c0-1.44-.93-2.46-2.23-2.46ZM20.66 8.78c-.74 0-1.43.23-1.92.56a.08.08 0 0 0-.03.1l.6 1.04c.02.04.07.05.1.03.38-.23.81-.35 1.25-.35 1.19 0 2.06.85 2.06 1.97 0 .96-.7 1.66-1.58 1.66-.72 0-1.22-.42-1.22-1.02 0-.35.14-.63.52-.83a.08.08 0 0 0 .03-.1l-.57-.97a.08.08 0 0 0-.09-.04c-.76.29-1.29.97-1.29 1.9 0 1.38 1.1 2.42 2.62 2.42a2.93 2.93 0 0 0 3.05-3.04c0-1.92-1.48-3.33-3.53-3.33ZM28.16 9c-.68 0-1.3.25-1.74.7-.03.03-.07.01-.07-.02v-.55a.08.08 0 0 0-.08-.08h-1.32a.08.08 0 0 0-.07.08v7.8c0 .04.03.07.07.07h1.36c.04 0 .08-.03.08-.08v-2.55c0-.04.04-.05.06-.03.45.42 1.04.67 1.71.67C29.76 15 31 13.7 31 12c0-1.7-1.24-3-2.84-3Zm-.25 4.69c-.9 0-1.6-.73-1.6-1.7s.69-1.7 1.6-1.7c.9 0 1.59.72 1.59 1.7s-.68 1.7-1.6 1.7Z"})})]}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsx("clipPath",{id:"a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h38v24H0z"})}),jsxRuntimeExports.jsx("clipPath",{id:"b",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v10H0z",transform:"translate(7 7)"})})]})]}),SwishIcon=({size:$,...xn})=>{const En=reactExports.useId();return jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":`${En}title`,...xn,children:[jsxRuntimeExports.jsx("title",{id:`${En}title`,children:"Swish"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:`url(#${En}a)`,d:"M25.239 15.231c.025-.241.037-.487.037-.737 0-.168-.009-.334-.024-.495a5.662 5.662 0 00-.049-.544c-.209-1.489-.868-2.79-1.979-3.901a7.384 7.384 0 00-1.389-1.1l1.545-1.92c.193.153.382.322.567.507a6.865 6.865 0 011.291 1.727c.509.975.762 2.05.762 3.226 0 .354-.02.701-.061 1.039a6.87 6.87 0 01-.7 2.198z"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:`url(#${En}b)`,d:"M21.836 8.455c.49.298.954.665 1.389 1.1 1.11 1.111 1.77 2.412 1.979 3.901.024.178.041.359.049.544.016.161.024.327.024.495 0 .25-.012.496-.037.737a7.633 7.633 0 01-1.291 1.728C22.58 18.319 20.932 19 19 19a6.93 6.93 0 01-2.728-.531 5.772 5.772 0 001.882.302c1.601 0 2.969-.567 4.103-1.703.379-.378.697-.785.954-1.22.032-.064.064-.125.097-.182.435-.813.651-1.715.651-2.705 0-1.603-.567-2.972-1.702-4.107a9.383 9.383 0 00-.421-.399z"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:`url(#${En}c)`,d:"M16.164 15.533a7.245 7.245 0 01-1.255-1.015c-1.159-1.159-1.827-2.521-2.004-4.083a2.773 2.773 0 01-.024-.362 5.01 5.01 0 01-.024-.496c0-.386.027-.757.084-1.111.308-.52.68-1 1.11-1.426C15.42 5.681 17.069 5 19 5c1.07 0 2.052.206 2.944.616a5.926 5.926 0 00-2.063-.351c-1.601 0-2.969.564-4.103 1.691-.367.37-.687.784-.954 1.232a8.204 8.204 0 00-.169.327c-.386.772-.579 1.626-.579 2.56 0 1.603.567 2.972 1.702 4.108.128.121.257.237.386.35z"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:`url(#${En}d)`,d:"M12.941 8.467a6.993 6.993 0 00-.084 1.111c0 .169.008.334.024.496 0 .121.008.241.024.362.177 1.562.845 2.923 2.004 4.083.394.396.813.733 1.255 1.015l-1.557 1.934c-.185-.162-.37-.331-.555-.508a7.52 7.52 0 01-1.159-1.51c-.596-1.024-.893-2.176-.893-3.456 0-.218.008-.431.024-.64a6.596 6.596 0 01.917-2.887z"}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("radialGradient",{id:`${En}a`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(7.80944 0 0 7.81623 22.9 7.79)",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FDD626"}),jsxRuntimeExports.jsx("stop",{offset:".365",stopColor:"#F17345"}),jsxRuntimeExports.jsx("stop",{offset:".663",stopColor:"#F00912"}),jsxRuntimeExports.jsx("stop",{offset:".878",stopColor:"#EE0920"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#E30767"})]}),jsxRuntimeExports.jsxs("radialGradient",{id:`${En}b`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(11.3723 0 0 11.3789 22.404 8.926)",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FDD626"}),jsxRuntimeExports.jsx("stop",{offset:".314",stopColor:"#EB5253"}),jsxRuntimeExports.jsx("stop",{offset:".506",stopColor:"#EB4F65"}),jsxRuntimeExports.jsx("stop",{offset:".639",stopColor:"#E739CB"}),jsxRuntimeExports.jsx("stop",{offset:".8",stopColor:"#9E16EC"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#5702F0"})]}),jsxRuntimeExports.jsxs("radialGradient",{id:`${En}c`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(11.214 0 0 11.2237 15.21 14.578)",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#424EE9"}),jsxRuntimeExports.jsx("stop",{offset:".392",stopColor:"#58C9BE"}),jsxRuntimeExports.jsx("stop",{offset:".765",stopColor:"#6CD82E"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#E5DB2A"})]}),jsxRuntimeExports.jsxs("radialGradient",{id:`${En}d`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(8.09806 0 0 8.10511 15.344 16.199)",children:[jsxRuntimeExports.jsx("stop",{offset:".086",stopColor:"#424EE9"}),jsxRuntimeExports.jsx("stop",{offset:".447",stopColor:"#58C9BE"}),jsxRuntimeExports.jsx("stop",{offset:".71",stopColor:"#59CAB5"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#8CE785"})]})]})]})},VippsIcon=({size:$="normal",...xn})=>$==="small"?jsxRuntimeExports.jsx(VippsIconSmall,{...xn}):jsxRuntimeExports.jsx(VippsIconMedium,{...xn}),VippsIconMedium=$=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 163.5 66.1",height:"24",role:"img",...$,children:[jsxRuntimeExports.jsx("title",{id:"",children:"Vipps"}),jsxRuntimeExports.jsxs("g",{fill:"#FF5B24",children:[jsxRuntimeExports.jsx("path",{d:"m28 22 5.1 14.9 5-14.9H44l-8.8 22.1h-4.4L22 22h6z"}),jsxRuntimeExports.jsx("path",{d:"M57.3 40.6c3.7 0 5.8-1.8 7.8-4.4 1.1-1.4 2.5-1.7 3.5-.9s1.1 2.3 0 3.7a13.9 13.9 0 0 1-11.3 6.1c-5.1 0-9.6-2.8-12.7-7.7-.9-1.3-.7-2.7.3-3.4s2.5-.4 3.4 1c2.2 3.3 5.2 5.6 9 5.6zm6.9-12.3c0 1.8-1.4 3-3 3s-3-1.2-3-3 1.4-3 3-3a3 3 0 0 1 3 3zM78.3 22v3a8.4 8.4 0 0 1 7.2-3.6c4.3 0 9.3 3.6 9.3 11.3 0 8.1-4.8 12-9.8 12a8 8 0 0 1-6.8-3.5v10.6h-5.4V22h5.5zm0 11c0 4.5 2.6 6.9 5.5 6.9 2.8 0 5.6-2.2 5.6-6.9 0-4.6-2.8-6.8-5.6-6.8s-5.5 2.1-5.5 6.8zm26-11v3a8.4 8.4 0 0 1 7.2-3.6c4.3 0 9.3 3.6 9.3 11.3 0 8.1-4.8 12-9.8 12a8 8 0 0 1-6.8-3.5v10.6h-5.4V22h5.5zm0 11c0 4.5 2.6 6.9 5.5 6.9 2.8 0 5.6-2.2 5.6-6.9 0-4.6-2.8-6.8-5.6-6.8-2.9 0-5.5 2.1-5.5 6.8zm28-11.6c4.5 0 7.7 2.1 9.1 7.3l-4.9.8c-.1-2.6-1.7-3.5-4.1-3.5-1.8 0-3.2.8-3.2 2.1 0 1 .7 2 2.8 2.4l3.7.7c3.6.7 5.6 3.1 5.6 6.3 0 4.8-4.3 7.2-8.4 7.2-4.3 0-9.1-2.2-9.8-7.6l4.9-.8c.3 2.8 2 3.8 4.8 3.8 2.1 0 3.5-.8 3.5-2.1 0-1.2-.7-2.1-3-2.5l-3.4-.6c-3.6-.7-5.8-3.2-5.8-6.4.1-5 4.6-7.1 8.2-7.1z"})]})]}),VippsIconSmall=$=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",width:"38",height:"24",...$,children:[jsxRuntimeExports.jsx("title",{id:"pi-vipps",children:"Vipps"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#FF5B24",d:"M27.414 12.07c.357.281.545.667.564 1.155 0 .487-.188.977-.564 1.464C25.218 17.563 22.551 19 19.415 19a9.454 9.454 0 01-5.042-1.437c-1.521-.939-2.836-2.273-3.944-4.001-.319-.469-.451-.929-.394-1.38.038-.432.244-.779.62-1.042.356-.244.76-.31 1.211-.197.469.132.864.432 1.183.901.827 1.239 1.747 2.197 2.761 2.873 1.127.732 2.329 1.099 3.606 1.099 1.22 0 2.29-.291 3.211-.873.751-.47 1.521-1.221 2.31-2.254.395-.47.816-.761 1.268-.873s.852-.028 1.209.254zm-3.746-6.451c.432.413.648.911.648 1.493 0 .639-.217 1.155-.648 1.55-.413.375-.91.563-1.492.563s-1.08-.188-1.494-.563c-.412-.395-.619-.911-.619-1.55 0-.62.207-1.127.619-1.521.414-.394.912-.591 1.494-.591s1.079.206 1.492.619z"})]}),VisaIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":"pi-visa",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-visa",children:"Visa"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsx("path",{d:"M28.3 10.1H28c-.4 1-.7 1.5-1 3h1.9c-.3-1.5-.3-2.2-.6-3zm2.9 5.9h-1.7c-.1 0-.1 0-.2-.1l-.2-.9-.1-.2h-2.4c-.1 0-.2 0-.2.2l-.3.9c0 .1-.1.1-.1.1h-2.1l.2-.5L27 8.7c0-.5.3-.7.8-.7h1.5c.1 0 .2 0 .2.2l1.4 6.5c.1.4.2.7.2 1.1.1.1.1.1.1.2zm-13.4-.3l.4-1.8c.1 0 .2.1.2.1.7.3 1.4.5 2.1.4.2 0 .5-.1.7-.2.5-.2.5-.7.1-1.1-.2-.2-.5-.3-.8-.5-.4-.2-.8-.4-1.1-.7-1.2-1-.8-2.4-.1-3.1.6-.4.9-.8 1.7-.8 1.2 0 2.5 0 3.1.2h.1c-.1.6-.2 1.1-.4 1.7-.5-.2-1-.4-1.5-.4-.3 0-.6 0-.9.1-.2 0-.3.1-.4.2-.2.2-.2.5 0 .7l.5.4c.4.2.8.4 1.1.6.5.3 1 .8 1.1 1.4.2.9-.1 1.7-.9 2.3-.5.4-.7.6-1.4.6-1.4 0-2.5.1-3.4-.2-.1.2-.1.2-.2.1zm-3.5.3c.1-.7.1-.7.2-1 .5-2.2 1-4.5 1.4-6.7.1-.2.1-.3.3-.3H18c-.2 1.2-.4 2.1-.7 3.2-.3 1.5-.6 3-1 4.5 0 .2-.1.2-.3.2M5 8.2c0-.1.2-.2.3-.2h3.4c.5 0 .9.3 1 .8l.9 4.4c0 .1 0 .1.1.2 0-.1.1-.1.1-.1l2.1-5.1c-.1-.1 0-.2.1-.2h2.1c0 .1 0 .1-.1.2l-3.1 7.3c-.1.2-.1.3-.2.4-.1.1-.3 0-.5 0H9.7c-.1 0-.2 0-.2-.2L7.9 9.5c-.2-.2-.5-.5-.9-.6-.6-.3-1.7-.5-1.9-.5L5 8.2z",fill:"#142688"})]}),WeroIcon=({size:$,...xn})=>jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 38 24",xmlns:"http://www.w3.org/2000/svg",role:"img",height:"24","aria-labelledby":"pi-wero",...xn,children:[jsxRuntimeExports.jsx("title",{id:"pi-wero",children:"Wero"}),jsxRuntimeExports.jsx("path",{opacity:".07",d:"M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"}),jsxRuntimeExports.jsx("path",{fill:"#FFF48D",d:"M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"}),jsxRuntimeExports.jsxs("g",{fill:"#1D1C1C",transform:"translate(-.764 -7.758) scale(.39526)",children:[jsxRuntimeExports.jsx("path",{d:"M23.42 49.2l-2.95 9.58h-4.54L9.58 41.17h5.53l3.12 10.52 3.1-10.52h4.17l3.07 10.52 3.14-10.52h5.53L30.9 58.79h-4.58l-2.91-9.6z"}),jsxRuntimeExports.jsx("path",{d:"M54.6 51.85c.11-.61.17-1.24.17-1.87 0-4.87-3.5-9.31-9.6-9.31-5 0-8.26 3.02-9.24 6.82h5.65c.71-1.19 1.94-2.03 3.6-2.03 1.96 0 3.31 1.14 3.91 2.65h-13.3c-.11.61-.17 1.24-.17 1.87 0 4.87 3.5 9.31 9.57 9.31.21 0 .41 0 .61-.01 1.23-.06 2.35-.31 3.34-.71.99-.4 1.87-.95 2.61-1.61.74-.67 1.36-1.44 1.83-2.3.38-.68.67-1.42.87-2.19h-5.66c-.07.12-.15.24-.22.36-.21.28-.45.54-.73.77-.27.22-.58.41-.93.56-.35.15-.72.25-1.11.3-.2.02-.4.04-.61.04-1.93 0-3.29-1.14-3.9-2.65h13.3z"}),jsxRuntimeExports.jsx("path",{d:"M55.68 41.19h8.47c4.04 0 6.64 3.02 6.64 6.57 0 2.39-1.21 4.57-3.23 5.7l3.53 5.37h-6.18l-3-4.52h-.98v4.52h-5.25zm9.75 6.59c0-1.36-.9-2.5-2.32-2.5h-2.19v4.99h2.17c1.4 0 2.34-1.13 2.34-2.49z"}),jsxRuntimeExports.jsx("path",{d:"M71.26 50.02c0-4.87 3.5-9.31 9.56-9.31 6.06 0 9.6 4.44 9.6 9.31s-3.5 9.31-9.6 9.31-9.56-4.44-9.56-9.31zm13.83 0c0-2.35-1.56-4.52-4.26-4.52-2.7 0-4.26 2.17-4.26 4.52 0 2.35 1.58 4.52 4.26 4.52 2.69 0 4.26-2.18 4.26-4.52z"})]})]}),ICON_COMPONENTS={amex:AmexIcon,applepay:ApplePayIcon,bancontact:BancontactIcon,googlepay:GooglePayIcon,ideal:IdealIcon,klarna:KlarnaIcon,mastercard:MastercardIcon,mobilepay:MobilePayIcon,paypal:PaypalIcon,shoppay:ShopPayIcon,swish:SwishIcon,vipps:VippsIcon,visa:VisaIcon,wero:WeroIcon},PAYMENT_ICONS_BY_COUNTRY={BE:["bancontact","paypal","mastercard","visa","applepay","shoppay"],NL:["ideal","wero","paypal","mastercard","visa","applepay","shoppay"],DK:["visa","mastercard","applepay","shoppay","mobilepay"],GB:["visa","mastercard","amex","googlepay","applepay","shoppay"],US:["visa","mastercard","amex","googlepay","applepay","shoppay"],CA:["visa","mastercard","amex","googlepay","applepay","shoppay"]},DEFAULT_PAYMENT_ICONS=["visa","mastercard","amex","paypal","applepay","shoppay"],PAYMENT_ICONS_BY_STORE={NO:["vipps","mastercard","visa","applepay"],SE:["swish","klarna","mastercard","visa","applepay"]},PaymentIcons=({className:$,children:xn,size:En,...Nn})=>{useMarket();const Tn=useCurrentCountryCode(),$n=PAYMENT_ICONS_BY_STORE[getStoreCountry()]??[...PAYMENT_ICONS_BY_COUNTRY[Tn]??DEFAULT_PAYMENT_ICONS];return jsxRuntimeExports.jsxs("div",{className:cn("flex h-6 items-center gap-1.5 [&>svg]:h-full [&>svg]:w-auto",$),...Nn,children:[$n.map(kl=>{const xl=ICON_COMPONENTS[kl];return jsxRuntimeExports.jsx(xl,{size:En},kl)}),xn]})},Plus=({fill:$="currentColor",height:xn="0.85em",...En})=>jsxRuntimeExports.jsx("svg",{viewBox:"0 0 9 9",height:xn,fill:$,xmlns:"http://www.w3.org/2000/svg",...En,children:jsxRuntimeExports.jsx("path",{d:"M8.25 3.75H5.25V0.75C5.25 0.551088 5.17098 0.360322 5.03033 0.21967C4.88968 0.0790176 4.69891 0 4.5 0C4.30109 0 4.11032 0.0790176 3.96967 0.21967C3.82902 0.360322 3.75 0.551088 3.75 0.75V3.75H0.75C0.551088 3.75 0.360322 3.82902 0.21967 3.96967C0.0790176 4.11032 0 4.30109 0 4.5C0 4.69891 0.0790176 4.88968 0.21967 5.03033C0.360322 5.17098 0.551088 5.25 0.75 5.25H3.75V8.25C3.75 8.44891 3.82902 8.63968 3.96967 8.78033C4.11032 8.92098 4.30109 9 4.5 9C4.69891 9 4.88968 8.92098 5.03033 8.78033C5.17098 8.63968 5.25 8.44891 5.25 8.25V5.25H8.25C8.44891 5.25 8.63968 5.17098 8.78033 5.03033C8.92098 4.88968 9 4.69891 9 4.5C9 4.30109 8.92098 4.11032 8.78033 3.96967C8.63968 3.82902 8.44891 3.75 8.25 3.75Z"})}),Pot=""+new URL("pot.svg",import.meta.url).href,Seedling=""+new URL("seedling.svg",import.meta.url).href,Seeds=""+new URL("seeds.svg",import.meta.url).href,Star=({percent:$=100,height:xn="1.1em",stroke:En="currentColor",fill:Nn="currentColor",...Tn})=>{const[$n]=reactExports.useState(`svg_${Math.random().toString(16)}`);return jsxRuntimeExports.jsxs("svg",{height:xn,viewBox:"-2 -2 103 103",...Tn,children:[jsxRuntimeExports.jsx("mask",{id:$n,children:jsxRuntimeExports.jsx("rect",{width:`${$}%`,height:"100%",fill:"white"})}),jsxRuntimeExports.jsx("polygon",{points:"50,2 19,98 98,39 2,39 80,98",mask:`url(#${$n})`,fill:Nn}),jsxRuntimeExports.jsx("polygon",{points:"2,39 38,39 50,2 62,39 98,39 69,61 80,98 50,76 19,98 31,61",fill:"none",strokeWidth:"8",strokeLinejoin:"round",stroke:En})]})},Stars=({className:$,count:xn,...En})=>{const Nn=parseNumber(En.rating),Tn=Math.floor(Nn),$n=Nn-Tn;return jsxRuntimeExports.jsxs("span",{className:"inline-flex items-center space-x-2",children:[jsxRuntimeExports.jsx("span",{className:cn("inline-block space-x-1 leading-none text-yellow-350",$),children:range(1,5).map(kl=>jsxRuntimeExports.jsx(Star,{percent:kl<=Tn?100:$n*100},kl))}),jsxRuntimeExports.jsx("span",{className:"text-15",children:xn?`${parseNumber(xn)}`:null})]})},StartKit=""+new URL("startkit.svg",import.meta.url).href,Truck=({stroke:$="currentColor",...xn})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 44 38",...xn,children:[jsxRuntimeExports.jsxs("mask",{id:"truck-mask",fill:"black",children:[jsxRuntimeExports.jsx("rect",{width:"100%",height:"100%",fill:"white"}),jsxRuntimeExports.jsx("circle",{cx:"11",cy:"31.5",r:"5"}),jsxRuntimeExports.jsx("circle",{cx:"33",cy:"31.5",r:"5"})]}),jsxRuntimeExports.jsxs("g",{stroke:$,strokeWidth:"3.3",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"20",children:[jsxRuntimeExports.jsx("polyline",{points:"26.5,22 26.5,2 2,2 2,31.5 42,31.5 42,19 36,9 26.5,9",mask:"url(#truck-mask)"}),jsxRuntimeExports.jsx("polyline",{points:"31,13.5 31,19 36.5,19"}),jsxRuntimeExports.jsx("circle",{cx:"11",cy:"31.5",r:"5"}),jsxRuntimeExports.jsx("circle",{cx:"33",cy:"31.5",r:"5"})]})]}),TRUSTPILOT_GREEN="#24AD7A",TRUSTPILOT_GREEN_2="#21A56E",TRUSTPILOT_GREY="#DCDCE6",TRUSTPILOT_FOLD="#005128",STAR_PATH="M82.51 111.21l25.09-6.36 10.48 32.31-35.58-25.95ZM140.26 69.44h-44.17l-13.58-41.59-13.58 41.59h-44.17l35.75 25.78-13.58 41.59 35.75-25.78 22-15.81 35.58-25.78h0Z",TILE=165,TrustpilotStar=({fill:$=1,className:xn,...En})=>{const Nn=Math.min(1,Math.max(0,$));return jsxRuntimeExports.jsxs("svg",{viewBox:`0 0 ${TILE} ${TILE}`,className:cn("size-8",xn),"aria-hidden":"true",...En,children:[jsxRuntimeExports.jsx("rect",{width:TILE,height:TILE,fill:TRUSTPILOT_GREY}),Nn>0&&jsxRuntimeExports.jsx("rect",{width:TILE*Nn,height:TILE,fill:TRUSTPILOT_GREEN_2}),jsxRuntimeExports.jsx("path",{d:STAR_PATH,fill:"#fff"})]})},TrustpilotStars=({rating:$,count:xn=5,className:En,starClassName:Nn,...Tn})=>{const $n=parseNumber($);return jsxRuntimeExports.jsx("div",{className:cn("inline-flex gap-0.5",En),role:"img","aria-label":`${$n} out of ${xn} stars`,...Tn,children:range(xn-1).map(kl=>jsxRuntimeExports.jsx(TrustpilotStar,{fill:$n-kl,className:Nn},kl))})},TrustpilotLogo=({className:$,...xn})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"22 162 916 238",className:cn("h-5 w-auto",$),"aria-label":"Trustpilot",role:"img",...xn,children:[jsxRuntimeExports.jsx("polygon",{fill:TRUSTPILOT_GREEN,points:"241.71 243.36 158.23 243.36 132.45 163.91 106.59 243.36 23.11 243.28 90.71 292.43 64.85 371.79 132.45 322.72 199.97 371.79 174.19 292.43 241.71 243.36"}),jsxRuntimeExports.jsx("polygon",{fill:TRUSTPILOT_FOLD,points:"179.99 310.39 174.19 292.43 132.45 322.72"}),jsxRuntimeExports.jsx("path",{fill:"#191919",d:"M262.98 243.36h92.42v17.24h-36.34v96.93h-19.98v-96.93h-36.18v-17.24h.08ZM351.45 274.86h17.08v15.95h.32c.56-2.26 1.61-4.43 3.14-6.53s3.38-4.11 5.56-5.8c2.18-1.77 4.59-3.14 7.25-4.27 2.66-1.05 5.4-1.61 8.14-1.61 2.09 0 3.63.08 4.43.16.81.08 1.61.24 2.5.32v17.56c-1.29-.24-2.58-.4-3.95-.56-1.37-.16-2.66-.24-3.95-.24-3.06 0-5.96.64-8.7 1.85s-5.08 3.06-7.09 5.4c-2.01 2.42-3.63 5.32-4.83 8.86s-1.77 7.57-1.77 12.17v39.32h-18.21v-82.59h.08ZM483.59 357.53h-17.89v-11.52h-.32c-2.26 4.19-5.56 7.49-9.99 9.99-4.43 2.5-8.94 3.79-13.54 3.79-10.88 0-18.77-2.66-23.61-8.06s-7.25-13.54-7.25-24.41v-52.45h18.21v50.68c0 7.25 1.37 12.41 4.19 15.39 2.74 2.98 6.69 4.51 11.68 4.51 3.87 0 7.01-.56 9.59-1.77s4.67-2.74 6.2-4.75c1.61-1.93 2.74-4.35 3.46-7.09.73-2.74 1.05-5.72 1.05-8.94v-47.94h18.21v82.59ZM514.61 331.02c.56 5.32 2.58 9.02 6.04 11.2 3.55 2.09 7.73 3.22 12.65 3.22 1.69 0 3.63-.16 5.8-.4s4.27-.81 6.12-1.53c1.93-.73 3.46-1.85 4.75-3.3 1.21-1.45 1.77-3.3 1.69-5.64-.08-2.34-.97-4.27-2.58-5.72-1.61-1.53-3.63-2.66-6.12-3.63-2.5-.89-5.32-1.69-8.54-2.34-3.22-.64-6.45-1.37-9.75-2.09-3.38-.73-6.69-1.69-9.83-2.74-3.14-1.05-5.96-2.5-8.46-4.35-2.5-1.77-4.51-4.11-5.96-6.93-1.53-2.82-2.26-6.28-2.26-10.47 0-4.51 1.13-8.22 3.3-11.28 2.18-3.06 5-5.48 8.3-7.33 3.38-1.85 7.09-3.14 11.2-3.95 4.11-.73 8.06-1.13 11.76-1.13 4.27 0 8.38.48 12.25 1.37 3.87.89 7.41 2.34 10.56 4.43 3.14 2.01 5.72 4.67 7.82 7.9 2.09 3.22 3.38 7.17 3.95 11.76h-19.02c-.89-4.35-2.82-7.33-5.96-8.78-3.14-1.53-6.77-2.26-10.8-2.26-1.29 0-2.82.08-4.59.32-1.77.24-3.38.64-5 1.21-1.53.56-2.82 1.45-3.95 2.58-1.05 1.13-1.61 2.58-1.61 4.43 0 2.26.81 4.03 2.34 5.4s3.55 2.5 6.04 3.46c2.5.89 5.32 1.69 8.54 2.34 3.22.64 6.53 1.37 9.91 2.09 3.3.73 6.53 1.69 9.75 2.74 3.22 1.05 6.04 2.5 8.54 4.35 2.5 1.85 4.51 4.11 6.04 6.85s2.34 6.2 2.34 10.23c0 4.91-1.13 9.02-3.38 12.49-2.26 3.38-5.16 6.2-8.7 8.3-3.55 2.09-7.57 3.71-11.92 4.67-4.35.97-8.7 1.45-12.97 1.45-5.24 0-10.07-.56-14.5-1.77s-8.3-2.98-11.52-5.32c-3.22-2.42-5.8-5.4-7.65-8.94-1.85-3.55-2.82-7.82-2.98-12.73h18.37v-.16ZM574.72 274.86h13.78v-24.82h18.21v24.82h16.44v13.62h-16.44v44.15c0 1.93.08 3.55.24 5 .16 1.37.56 2.58 1.13 3.55s1.45 1.69 2.66 2.18c1.21.48 2.74.73 4.83.73 1.29 0 2.58 0 3.87-.08s2.58-.24 3.87-.56v14.1c-2.01.24-4.03.4-5.88.64-1.93.24-3.87.32-5.88.32-4.83 0-8.7-.48-11.6-1.37-2.9-.89-5.24-2.26-6.85-4.03-1.69-1.77-2.74-3.95-3.38-6.61-.56-2.66-.97-5.72-1.05-9.1v-48.75h-13.78v-13.78h-.16ZM636.03 274.86h17.24v11.2h.32c2.58-4.83 6.12-8.22 10.72-10.31s9.51-3.14 14.91-3.14c6.53 0 12.17 1.13 17 3.46 4.83 2.26 8.86 5.4 12.09 9.43s5.56 8.7 7.17 14.02c1.61 5.32 2.42 11.04 2.42 17.08 0 5.56-.73 10.96-2.18 16.11-1.45 5.24-3.63 9.83-6.53 13.86s-6.61 7.17-11.12 9.59-9.75 3.63-15.87 3.63c-2.66 0-5.32-.24-7.98-.73-2.66-.48-5.24-1.29-7.65-2.34-2.42-1.05-4.75-2.42-6.77-4.11-2.09-1.69-3.79-3.63-5.24-5.8h-.32v41.25h-18.21v-113.21ZM699.69 316.28c0-3.71-.48-7.33-1.45-10.88s-2.42-6.61-4.35-9.35c-1.93-2.74-4.35-4.91-7.17-6.53-2.9-1.61-6.2-2.5-9.91-2.5-7.65 0-13.46 2.66-17.32 7.98-3.87 5.32-5.8 12.41-5.8 21.27 0 4.19.48 8.06 1.53 11.6 1.05 3.55 2.5 6.61 4.59 9.19 2.01 2.58 4.43 4.59 7.25 6.04 2.82 1.53 6.12 2.26 9.83 2.26 4.19 0 7.65-.89 10.56-2.58 2.9-1.69 5.24-3.95 7.09-6.61 1.85-2.74 3.22-5.8 4.03-9.27.73-3.46 1.13-7.01 1.13-10.64ZM731.83 243.36h18.21v17.24h-18.21v-17.24ZM731.83 274.86h18.21v82.67h-18.21v-82.67ZM766.32 243.36h18.21v114.17h-18.21v-114.17ZM840.37 359.79c-6.61 0-12.49-1.13-17.65-3.3-5.16-2.18-9.51-5.24-13.13-9.02-3.55-3.87-6.28-8.46-8.14-13.78s-2.82-11.2-2.82-17.56.97-12.09 2.82-17.4 4.59-9.91 8.14-13.78c3.55-3.87 7.98-6.85 13.13-9.02 5.16-2.18 11.04-3.3 17.65-3.3s12.49 1.13 17.65 3.3c5.16 2.18 9.51 5.24 13.13 9.02 3.55 3.87 6.28 8.46 8.14 13.78 1.85 5.32 2.82 11.12 2.82 17.4s-.97 12.25-2.82 17.56-4.59 9.91-8.14 13.78-7.98 6.85-13.13 9.02c-5.16 2.18-11.04 3.3-17.65 3.3ZM840.37 345.36c4.03 0 7.57-.89 10.56-2.58 2.98-1.69 5.4-3.95 7.33-6.69 1.93-2.74 3.3-5.88 4.27-9.35.89-3.46 1.37-7.01 1.37-10.64s-.48-7.01-1.37-10.56c-.89-3.55-2.34-6.61-4.27-9.35-1.93-2.74-4.35-4.91-7.33-6.61-2.98-1.69-6.53-2.58-10.56-2.58s-7.57.89-10.56 2.58c-2.98 1.69-5.4 3.95-7.33 6.61-1.93 2.74-3.3 5.8-4.27 9.35-.89 3.55-1.37 7.01-1.37 10.56s.48 7.17 1.37 10.64c.89 3.46 2.34 6.61 4.27 9.35 1.93 2.74 4.35 5 7.33 6.69 2.98 1.77 6.53 2.58 10.56 2.58ZM887.42 274.86h13.78v-24.82h18.21v24.82h16.44v13.62h-16.44v44.15c0 1.93.08 3.55.24 5 .16 1.37.56 2.58 1.13 3.55.56.97 1.45 1.69 2.66 2.18 1.21.48 2.74.73 4.83.73 1.29 0 2.58 0 3.87-.08 1.29-.08 2.58-.24 3.87-.56v14.1c-2.01.24-4.03.4-5.88.64-1.93.24-3.87.32-5.88.32-4.83 0-8.7-.48-11.6-1.37-2.9-.89-5.24-2.26-6.85-4.03-1.69-1.77-2.74-3.95-3.38-6.61-.56-2.66-.97-5.72-1.05-9.1v-48.75h-13.78v-13.78h-.16Z"})]}),Chevron2=({height:$="1em",...xn})=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:$,viewBox:"-3 -3 25 41",fill:"none",...xn,children:jsxRuntimeExports.jsx("path",{d:"M17.5 1.5s-16 11.78-16 16 16 16 16 16",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})});function isNodeList($){return $?.length!==void 0}const DynamicPortal=({selector:$,multiple:xn=!1,render:En,children:Nn})=>{const Tn=useQuerySelector($,{multiple:xn});return isNodeList(Tn)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Array.from(Tn.values()).map($n=>reactDomExports.createPortal(En?En($n):Nn,$n))}):Tn?reactDomExports.createPortal(En?En(Tn):Nn,Tn):null},Modal=({className:$,onClick:xn,onClose:En,children:Nn,...Tn})=>{const $n=reactExports.useRef(null);return reactExports.useEffect(()=>{const kl=$n.current;function xl(Nl){if(Nl.key==="Escape"&&En&&En(),!kl)return;const Rl=kl.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),Fl=Rl[0],Al=Rl[Rl.length-1];Nl.key==="Tab"&&(Nl.shiftKey?document.activeElement===Fl&&(Al.focus(),Nl.preventDefault()):document.activeElement===Al&&(Fl.focus(),Nl.preventDefault()))}return kl?.addEventListener("keydown",xl),()=>{kl?.removeEventListener("keydown",xl)}}),jsxRuntimeExports.jsxs("div",{className:"portal text-lg","aria-modal":!0,role:"dialog",tabIndex:-1,...Tn,ref:$n,children:[jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 z-20 flex items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:cn("container pointer-events-auto max-h-full bg-white p-6 sm:max-w-4xl sm:rounded-xl xl:max-w-6xl",$),children:Nn})}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 z-10 bg-gray-200 opacity-70",onClick:xn})]})},Portal=({open:$,alwaysRender:xn,modal:En,...Nn})=>(reactExports.useEffect(()=>($===!0?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden"),()=>document.body.classList.remove("overflow-hidden")),[$]),!$&&!xn?null:reactDomExports.createPortal(En?jsxRuntimeExports.jsx(Modal,{...Nn}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Nn.children}),document.body));function isNum($){return!isNaN($)}const Price=({price:$,original:xn,decimals:En,asText:Nn=!1,currencyCode:Tn,allowWrapping:$n=!1,priceClassName:kl,compareAtClassName:xl,...Nl})=>{const Rl=useTranslations("react.checkout.free"),Fl=Tl=>isMoneyV2(Tl)?getPrice(Tl,Nn,En):Nn?getPrice(Tn&&isPresent(Tl)?{amount:Tl.toString(),currencyCode:Tn}:Tl,!0,En):isNum(Tl)?numberFormatter().format(Tl):Tl,Al=xn!==$&&(typeof xn=="number"?xn>0:!!xn);return jsxRuntimeExports.jsxs("span",{...Nl,children:[Al&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("s",{className:cn("whitespace-nowrap text-[#828282]",xl),children:Fl(xn)}),$n?jsxRuntimeExports.jsx("span",{children:" "}):jsxRuntimeExports.jsx("span",{children:" "})]}),jsxRuntimeExports.jsx("span",{className:cn("whitespace-nowrap",{"text-green":Al},kl),children:$===0&&Nn&&Rl?Rl:Fl($)})]})};function getPromoText($){const xn=$.offer?.value||"",En=Math.max(0,getPrice($.compareAtPriceRange.minVariantPrice)-getPrice($.priceRange.minVariantPrice));return xn.replace("{DISCOUNT}",getPrice(En,!0,0))}const Promo=({promo:$,className:xn,...En})=>{const Nn=typeof $=="string"?$:getPromoText($);return Nn?jsxRuntimeExports.jsx("aside",{className:cn("z-10 font-semibold leading-none",xn),...En,children:Nn}):null};let hasRedirectedThisDocument=!1;const CountrySelector=()=>{const $=useQuerySelector("#lform-wrapper > #localization_form",{attributeFilter:["class"]}),[{attributes:xn,inputs:En},Nn]=reactExports.useState({attributes:{},inputs:[]}),Tn=useAnalytics(),$n=useDispatch(),kl=useTranslations("react.actions"),xl=useSelector(Vl=>Vl.markets),Nl=useSelector(Vl=>Vl.cart?.buyerIdentity?.countryCode),{country:Rl,setCountry:Fl}=reactExports.useContext(CountryContext),[Al,Tl]=reactExports.useState(!1),[Cl,Il]=reactExports.useState(!1),Ml=reactExports.useRef(null),Dl=reactExports.useRef(null);reactExports.useEffect(()=>{const Vl=setInterval(()=>{if(!window.localization.ready)return;const Bl=getPrefferedCountryCode(),zl=countryList.find(Ul=>Ul.iso_code===Bl);zl&&getStoreCountry()==="EU"&&Fl(zl),setTimeout(()=>Il(!0),200),clearInterval(Vl)},50);return()=>clearInterval(Vl)},[Fl]),useUpdateEffect(()=>{Tn.track(Al?"Country Selector Opened":"Country Selector Closed",{currentCountry:Rl.iso_code})},[Tn,Al]);const Ll=reactExports.useMemo(()=>{if(!xl)return{};const Vl=uniq(xl?.flatMap(Bl=>Bl.webPresences.map(zl=>zl.domain)).filter(isPresent));return Object.fromEntries(Vl.map(Bl=>[Bl,xl.filter(zl=>zl.webPresences.some(Ul=>Ul.domain===Bl)).flatMap(zl=>zl.countries)]))},[xl]);reactExports.useLayoutEffect(()=>{if(xl===null)return;console.debug({current:Rl.iso_code,locale:window.localization.country.iso_code,cookie:getPrefferedCountryCode(),store:getStoreCountry(),ready:Cl});const Vl=Rl.iso_code;if(Dl.current&&(Dl.current.value=Vl),Vl!==void 0)if(window.Shopify.theme.role!=="main"||window.Shopify.designMode)"unit_system"in Rl&&Ml.current&&$n(Actions$1.updateCartCountry(Rl,Ml.current));else if(Vl=="EU")getStoreCountry()==="EU"&&Cl&&Tl(!0);else if(Vl!==window.localization.country.iso_code)if(!Ml.current)Cl&&Tn?.captureException(new Error("#localization_form missing"));else{const Bl=getMarketSwitchConfig(xl,window.localization.country.iso_code,Vl);switch(console.debug(Bl),Bl.status){case MarketSwitchStatus.Store:case MarketSwitchStatus.Domain:case MarketSwitchStatus.Currency:{const zl=Bl.nextMarket.webPresences[0]?.domain;if(zl){const Ul=new URL(`https://${zl}${location.pathname}`);Ul.searchParams.set("country",Vl),location.href===Ul.toString()?Tn.captureException(new Error("Already on the correct store"),{...Bl,markets:xl,currentCountry:window.localization.country.iso_code,nextCountry:Vl}):hasRedirectedThisDocument||(hasRedirectedThisDocument=!0,console.info("Redirecting to",Ul.toString(),"due to",Bl.status),location.replace(Ul.toString()))}else Tn.captureException(new Error("No domain found for market"),Bl),console.error("No domain found for market",Bl.nextMarket);break}case MarketSwitchStatus.None:Ml.current&&$n(Actions$1.updateCartCountry(Rl,Ml.current)),Tl(!1);break}}else Vl!==Nl&&$n(Actions$1.updateCartBuyerIdentity(Rl))},[xl,Rl,Cl,$n]),reactExports.useEffect(()=>{$&&(Nn({attributes:extractAttributes($),inputs:Array.from($.children).filter(Vl=>!includes(Vl.attributes.getNamedItem("name")?.value,"return_to","country_code")).map(extractAttributes)}),$.parentElement?.remove())},[$]);const $l=async(Vl,Bl,zl,Ul)=>{const Gl=countryList.find(ql=>ql.iso_code===Bl.iso_code)??Bl;if(Tn.track("Country Selected",{currentCountry:Rl.iso_code,selectedCountry:Gl.iso_code}),zl===MarketSwitchStatus.None){Fl(Gl),Dl.current&&(Dl.current.value=Gl.iso_code);const ql=new URL(window.location.href);ql.searchParams.delete("country"),window.history.replaceState({},"",ql.toString()),Tl(!1);return}if(!(Vl.metaKey||Vl.ctrlKey||Vl.shiftKey||Vl.altKey||Vl.button!==0)){if(Vl.preventDefault(),!Ul){Tn.captureException(new Error("No domain found for market"),{selectedCountry:Gl.iso_code});return}hasRedirectedThisDocument||(hasRedirectedThisDocument=!0,await Tn.shutdown(),location.replace(Ul.toString()))}};return!xn||!Cl?null:jsxRuntimeExports.jsxs(ErrorBoundary,{children:[(Rl.iso_code!=="EU"||isShop())&&jsxRuntimeExports.jsxs("button",{className:"flex items-center space-x-1.5 rounded-full p-1.5 transition-shadow hocus:shadow hocus:shadow-black/20",onClick:Vl=>Tl(!0),"aria-label":Rl.name,"data-testid":"country-selector",children:[jsxRuntimeExports.jsx(CountryIcon,{isoCode:Rl.iso_code}),jsxRuntimeExports.jsx(Caret,{height:"6px"})]}),jsxRuntimeExports.jsxs(Portal,{open:Al,modal:!0,onClick:Vl=>Tl(!1),onClose:()=>Tl(!1),className:"relative flex flex-col xl:p-9",children:[jsxRuntimeExports.jsx("h2",{className:"mb-4 text-center text-header md:mb-9 lg:text-header-lg",children:kl?.select_country}),jsxRuntimeExports.jsx("ul",{className:"grid grid-cols-2 gap-1.5 overflow-scroll p-1.5 sm:grid-cols-3 xl:grid-cols-4",role:"listbox",children:countryList.map((Vl,Bl)=>{const{status:zl,nextMarket:Ul}=getMarketSwitchConfig(xl??[],Rl.iso_code,Vl.iso_code),Gl=Ul?.webPresences[0]?.domain;let ql;return zl!==MarketSwitchStatus.None&&Gl&&(ql=new URL(`https://${Gl}${location.pathname}`),Ll[Gl]?.length>1&&ql.searchParams.set("country",Vl.iso_code)),jsxRuntimeExports.jsx("li",{role:"option","data-country":Vl.iso_code,children:jsxRuntimeExports.jsxs(Button,{className:"flex w-full justify-start space-x-3 rounded-xl bg-white p-1.5 text-left text-black hover:drop-shadow hocus:bg-white",tabIndex:0,href:ql?.toString(),onClick:Kl=>$l(Kl,Vl,zl,ql),autoFocus:Bl==0,children:[jsxRuntimeExports.jsx(CountryIcon,{isoCode:Vl.iso_code}),jsxRuntimeExports.jsx("span",{className:"text-15",role:"presentation",children:Vl.name})]})},Bl)})}),jsxRuntimeExports.jsx(Button,{className:"absolute right-0 top-0 rounded-none rounded-bl-md p-3 text-base leading-none lg:-right-5 lg:-top-5 lg:rounded-full",onClick:Vl=>Tl(!1),children:jsxRuntimeExports.jsx(Close,{className:"block"})})]}),jsxRuntimeExports.jsxs("form",{...xn,ref:Ml,children:[En.map(Vl=>jsxRuntimeExports.jsx("input",{...Vl,style:{display:"none"}},Vl.name)),jsxRuntimeExports.jsx("input",{type:"hidden",name:"country_code",value:Rl.iso_code,ref:Dl}),jsxRuntimeExports.jsx("input",{type:"hidden",name:"return_to",value:`${location.pathname}?country=${Rl.iso_code}`})]})]})};function _typeof($){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(xn){return typeof xn}:function(xn){return xn&&typeof Symbol=="function"&&xn.constructor===Symbol&&xn!==Symbol.prototype?"symbol":typeof xn},_typeof($)}function toPrimitive($,xn){if(_typeof($)!="object"||!$)return $;var En=$[Symbol.toPrimitive];if(En!==void 0){var Nn=En.call($,xn);if(_typeof(Nn)!="object")return Nn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xn==="string"?String:Number)($)}function toPropertyKey($){var xn=toPrimitive($,"string");return _typeof(xn)=="symbol"?xn:xn+""}function _defineProperty$1($,xn,En){return(xn=toPropertyKey(xn))in $?Object.defineProperty($,xn,{value:En,enumerable:!0,configurable:!0,writable:!0}):$[xn]=En,$}function ownKeys$1($,xn){var En=Object.keys($);if(Object.getOwnPropertySymbols){var Nn=Object.getOwnPropertySymbols($);xn&&(Nn=Nn.filter(function(Tn){return Object.getOwnPropertyDescriptor($,Tn).enumerable})),En.push.apply(En,Nn)}return En}function _objectSpread2$1($){for(var xn=1;xn"u"&&(En=xn,xn=void 0),typeof En<"u"){if(typeof En!="function")throw new Error(formatProdErrorMessage(1));return En(createStore)($,xn)}if(typeof $!="function")throw new Error(formatProdErrorMessage(2));var Tn=$,$n=xn,kl=[],xl=kl,Nl=!1;function Rl(){xl===kl&&(xl=kl.slice())}function Fl(){if(Nl)throw new Error(formatProdErrorMessage(3));return $n}function Al(Ml){if(typeof Ml!="function")throw new Error(formatProdErrorMessage(4));if(Nl)throw new Error(formatProdErrorMessage(5));var Dl=!0;return Rl(),xl.push(Ml),function(){if(Dl){if(Nl)throw new Error(formatProdErrorMessage(6));Dl=!1,Rl();var $l=xl.indexOf(Ml);xl.splice($l,1),kl=null}}}function Tl(Ml){if(!isPlainObject(Ml))throw new Error(formatProdErrorMessage(7));if(typeof Ml.type>"u")throw new Error(formatProdErrorMessage(8));if(Nl)throw new Error(formatProdErrorMessage(9));try{Nl=!0,$n=Tn($n,Ml)}finally{Nl=!1}for(var Dl=kl=xl,Ll=0;Ll"u")throw new Error(formatProdErrorMessage(12));if(typeof En(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers($){for(var xn=Object.keys($),En={},Nn=0;Nn"u")throw Rl&&Rl.type,new Error(formatProdErrorMessage(14));Al[Cl]=Dl,Fl=Fl||Dl!==Ml}return Fl=Fl||$n.length!==Object.keys(Nl).length,Fl?Al:Nl}}function compose$1(){for(var $=arguments.length,xn=new Array($),En=0;En<$;En++)xn[En]=arguments[En];return xn.length===0?function(Nn){return Nn}:xn.length===1?xn[0]:xn.reduce(function(Nn,Tn){return function(){return Nn(Tn.apply(void 0,arguments))}})}function applyMiddleware(){for(var $=arguments.length,xn=new Array($),En=0;En<$;En++)xn[En]=arguments[En];return function(Nn){return function(){var Tn=Nn.apply(void 0,arguments),$n=function(){throw new Error(formatProdErrorMessage(15))},kl={getState:Tn.getState,dispatch:function(){return $n.apply(void 0,arguments)}},xl=xn.map(function(Nl){return Nl(kl)});return $n=compose$1.apply(void 0,xl)(Tn.dispatch),_objectSpread2$1(_objectSpread2$1({},Tn),{},{dispatch:$n})}}}var createSymbol=function(xn){return"@@redux-saga/"+xn},CANCEL$1=createSymbol("CANCEL_PROMISE"),CHANNEL_END_TYPE=createSymbol("CHANNEL_END"),IO=createSymbol("IO"),MATCH=createSymbol("MATCH"),MULTICAST=createSymbol("MULTICAST"),SAGA_ACTION=createSymbol("SAGA_ACTION"),SELF_CANCELLATION=createSymbol("SELF_CANCELLATION"),TASK=createSymbol("TASK"),TASK_CANCEL=createSymbol("TASK_CANCEL"),TERMINATE=createSymbol("TERMINATE"),SAGA_LOCATION=createSymbol("LOCATION"),undef=function(xn){return xn==null},notUndef=function(xn){return xn!=null},func=function(xn){return typeof xn=="function"},string$1=function(xn){return typeof xn=="string"},array$1=Array.isArray,promise=function(xn){return xn&&func(xn.then)},iterator=function(xn){return xn&&func(xn.next)&&func(xn.throw)},_pattern=function(xn){return xn&&(string$1(xn)||symbol$1(xn)||func(xn)||array$1(xn)&&xn.every(_pattern))},channel$1=function(xn){return xn&&func(xn.take)&&func(xn.close)},stringableFunc=function(xn){return func(xn)&&xn.hasOwnProperty("toString")},symbol$1=function(xn){return!!xn&&typeof Symbol=="function"&&xn.constructor===Symbol&&xn!==Symbol.prototype},multicast=function(xn){return channel$1(xn)&&xn[MULTICAST]},MAX_SIGNED_INT=2147483647;function delayP($,xn){xn===void 0&&(xn=!0);var En,Nn=new Promise(function(Tn){En=setTimeout(Tn,Math.min(MAX_SIGNED_INT,$),xn)});return Nn[CANCEL$1]=function(){clearTimeout(En)},Nn}var konst=function(xn){return function(){return xn}},kTrue=konst(!0),noop$2=function(){},identity$1=function(xn){return xn},assignWithSymbols=function(xn,En){_extends$2(xn,En),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(En).forEach(function(Nn){xn[Nn]=En[Nn]})},flatMap=function(xn,En){var Nn;return(Nn=[]).concat.apply(Nn,En.map(xn))};function remove($,xn){var En=$.indexOf(xn);En>=0&&$.splice(En,1)}function once$1($){var xn=!1;return function(){xn||(xn=!0,$())}}var kThrow=function(xn){throw xn},kReturn=function(xn){return{value:xn,done:!0}};function makeIterator($,xn,En){xn===void 0&&(xn=kThrow),En===void 0&&(En="iterator");var Nn={meta:{name:En},next:$,throw:xn,return:kReturn,isSagaIterator:!0};return typeof Symbol<"u"&&(Nn[Symbol.iterator]=function(){return Nn}),Nn}function logError$1($,xn){var En=xn.sagaStack;console.error($),console.error(En)}var createEmptyArray=function(xn){return Array.apply(null,new Array(xn))},wrapSagaDispatch=function(xn){return function(En){return xn(Object.defineProperty(En,SAGA_ACTION,{value:!0}))}},shouldTerminate=function(xn){return xn===TERMINATE},shouldCancel=function(xn){return xn===TASK_CANCEL},shouldComplete=function(xn){return shouldTerminate(xn)||shouldCancel(xn)};function createAllStyleChildCallbacks($,xn){var En=Object.keys($),Nn=En.length,Tn=0,$n,kl=array$1($)?createEmptyArray(Nn):{},xl={};function Nl(){Tn===Nn&&($n=!0,xn(kl))}return En.forEach(function(Rl){var Fl=function(Tl,Cl){$n||(Cl||shouldComplete(Tl)?(xn.cancel(),xn(Tl,Cl)):(kl[Rl]=Tl,Tn++,Nl()))};Fl.cancel=noop$2,xl[Rl]=Fl}),xn.cancel=function(){$n||($n=!0,En.forEach(function(Rl){return xl[Rl].cancel()}))},xl}function getMetaInfo($){return{name:$.name||"anonymous",location:getLocation($)}}function getLocation($){return $[SAGA_LOCATION]}function compose(){for(var $=arguments.length,xn=new Array($),En=0;En<$;En++)xn[En]=arguments[En];return xn.length===0?function(Nn){return Nn}:xn.length===1?xn[0]:xn.reduce(function(Nn,Tn){return function(){return Nn(Tn.apply(void 0,arguments))}})}var BUFFER_OVERFLOW="Channel's Buffer overflow!",ON_OVERFLOW_THROW=1,ON_OVERFLOW_SLIDE=3,ON_OVERFLOW_EXPAND=4;function ringBuffer($,xn){$===void 0&&($=10);var En=new Array($),Nn=0,Tn=0,$n=0,kl=function(Fl){En[Tn]=Fl,Tn=(Tn+1)%$,Nn++},xl=function(){if(Nn!=0){var Fl=En[$n];return En[$n]=null,Nn--,$n=($n+1)%$,Fl}},Nl=function(){for(var Fl=[];Nn;)Fl.push(xl());return Fl};return{isEmpty:function(){return Nn==0},put:function(Fl){if(Nn<$)kl(Fl);else{var Al;switch(xn){case ON_OVERFLOW_THROW:throw new Error(BUFFER_OVERFLOW);case ON_OVERFLOW_SLIDE:En[Tn]=Fl,Tn=(Tn+1)%$,$n=Tn;break;case ON_OVERFLOW_EXPAND:Al=2*$,En=Nl(),Nn=En.length,Tn=En.length,$n=0,En.length=Al,$=Al,kl(Fl);break}}},take:xl,flush:Nl}}var expanding=function(xn){return ringBuffer(xn,ON_OVERFLOW_EXPAND)},TAKE="TAKE",PUT="PUT",ALL="ALL",RACE="RACE",CALL="CALL",CPS="CPS",FORK="FORK",JOIN="JOIN",CANCEL="CANCEL",SELECT="SELECT",ACTION_CHANNEL="ACTION_CHANNEL",CANCELLED$1="CANCELLED",FLUSH="FLUSH",GET_CONTEXT="GET_CONTEXT",SET_CONTEXT="SET_CONTEXT",makeEffect=function(xn,En){var Nn;return Nn={},Nn[IO]=!0,Nn.combinator=!1,Nn.type=xn,Nn.payload=En,Nn};function take$1($,xn){if($===void 0&&($="*"),_pattern($))return notUndef(xn)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),makeEffect(TAKE,{pattern:$});if(multicast($)&¬Undef(xn)&&_pattern(xn))return makeEffect(TAKE,{channel:$,pattern:xn});if(channel$1($))return notUndef(xn)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),makeEffect(TAKE,{channel:$})}function put$1($,xn){return undef(xn)&&(xn=$,$=void 0),makeEffect(PUT,{channel:$,action:xn})}function race$1($){var xn=makeEffect(RACE,$);return xn.combinator=!0,xn}function getFnCallDescriptor($,xn){var En=null,Nn;return func($)?Nn=$:(array$1($)?(En=$[0],Nn=$[1]):(En=$.context,Nn=$.fn),En&&string$1(Nn)&&func(En[Nn])&&(Nn=En[Nn])),{context:En,fn:Nn,args:xn}}function call$3($){for(var xn=arguments.length,En=new Array(xn>1?xn-1:0),Nn=1;Nn1?xn-1:0),Nn=1;Nn1?xn-1:0),Nn=1;Nn$.length)&&(xn=$.length);for(var En=0,Nn=Array(xn);En0&&semaphore>Cl);if(Bl){shouldCancel($l)&&(Nl.status=CANCELLED,Ml.cancel()),Il={arg:$l,isErr:Vl};return}try{var zl;do{zl=!1;var Ul=void 0;if(Vl?(Ul=xn.throw($l),clear()):shouldCancel($l)?(Nl.status=CANCELLED,Ml.cancel(),Ul=func(xn.return)?xn.return(TASK_CANCEL):{done:!0,value:TASK_CANCEL}):shouldTerminate($l)?Ul=func(xn.return)?xn.return():{done:!0}:Ul=xn.next($l),Ul.done){Nl.status!==CANCELLED&&(Nl.status=DONE),Nl.cont(Ul.value);return}else{Il=null;var Gl=Tl,ql=Cl;try{Tl=!0,Cl=semaphore,Ll(Ul.value,Nn,Ml)}finally{Tl=Gl,Cl=ql}if(!Il)return;$l=Il.arg,Vl=Il.isErr,Il=null,zl=!0}}while(zl)}catch(Kl){if(Nl.status===CANCELLED)throw Kl;Nl.status=ABORTED,Nl.cont(Kl,!0)}}function Dl($l,Vl,Bl){if(promise($l))resolvePromise($l,Bl);else if(iterator($l))proc($,$l,Rl.context,Vl,Tn,!1,Bl);else if($l&&$l[IO]){var zl=effectRunnerMap[$l.type];zl($,$l.payload,Bl,Fl)}else Bl($l)}function Ll($l,Vl,Bl,zl){zl===void 0&&(zl="");var Ul=nextSagaId();$.sagaMonitor&&$.sagaMonitor.effectTriggered({effectId:Ul,parentEffectId:Vl,label:zl,effect:$l});var Gl;function ql(Kl,Jl){Gl||(Gl=!0,Bl.cancel=noop$2,$.sagaMonitor&&(Jl?$.sagaMonitor.effectRejected(Ul,Kl):$.sagaMonitor.effectResolved(Ul,Kl)),Jl&&setCrashedEffect($l),Bl(Kl,Jl))}ql.cancel=noop$2,Bl.cancel=function(){Gl||(Gl=!0,ql.cancel(),ql.cancel=noop$2,$.sagaMonitor&&$.sagaMonitor.effectCancelled(Ul))},xl($l,Ul,ql)}}function runSaga($,xn){for(var En=$.channel,Nn=En===void 0?stdChannel():En,Tn=$.dispatch,$n=$.getState,kl=$.context,xl=kl===void 0?{}:kl,Nl=$.sagaMonitor,Rl=$.effectMiddlewares,Fl=$.onError,Al=Fl===void 0?logError$1:Fl,Tl=arguments.length,Cl=new Array(Tl>2?Tl-2:0),Il=2;IlEn.id===xn.meta?{...En,quantity:xn.payload}:En)};case"CART_REMOVE":return{...$,errors:null,lines:$.lines.filter(En=>En.id!=xn.meta),pendingOperation:xn.meta};case"CART_COUNTRY_UPDATE_SUCCESS":return{...$,...xn.payload,errors:null};case"CART_UPDATE_SUCCESS":return{...$,...xn.payload,errors:null,pendingOperation:"cart"};case"CART_ATTRIBUTES_SYNCED":return{...$,pendingOperation:null};case"CART_UPDATE_ERROR":return{...$,...xn.payload,open:!0,pendingOperation:null,errors:xn.meta};case"CART_UPSELLS_LOAD_SUCCESS":return{...$,upsells:xn.payload};case"UPSELL_ADD":return{...$,stagedUpsells:[...$.stagedUpsells,xn.payload]};case"UPSELL_UPDATE":return{...$,stagedUpsells:$.stagedUpsells.map(En=>En.id==xn.meta?{...En,...xn.payload}:En)};case"UPSELL_REMOVE":{const En=$.stagedUpsells.findIndex(Nn=>Nn.id==xn.meta);return En<0?$:{...$,stagedUpsells:$.stagedUpsells.filter((Nn,Tn)=>Tn!==En)}}}return $}function shippingSettings($=[],xn){return xn.type==="SHIPPING_SETTINGS_LOAD_SUCCESS"?xn.payload:$}function markets($=defaultMarketConfig,xn){if(xn.type==="MARKETS_LOAD_SUCCESS"){const En=new Set(xn.payload.map(Tn=>Tn.store)),Nn=defaultMarketConfig.filter(Tn=>!En.has(Tn.store));return[...xn.payload,...Nn]}else return $}const initialState={products:null,error:null,upsells:null,upsellCart:null,upsellPlanId:null,upsellPlanVariants:[]};function products($=initialState,xn){switch(xn.type){case"PRODUCTS_LOAD_SUCCESS":return{...$,products:xn.payload};case"PRODUCTS_LOAD":return{...$,error:null};case"PRODUCTS_LOAD_ERROR":return{...$,error:xn.meta.message};case"UPSELL_LOAD_SUCCESS":return{...$,upsells:xn.payload};case"UPSELL_CART_LOAD_SUCCESS":return{...$,upsellCart:xn.payload};case"UPSELL_CART_PLAN_SET":return{...$,upsellPlanId:xn.meta,upsellPlanVariants:xn.payload}}return $}const reducers=()=>combineReducers({cart,products,shippingSettings,markets});var done=function(xn){return{done:!0,value:xn}},qEnd={};function safeName($){return channel$1($)?"channel":stringableFunc($)?String($):func($)?$.name:String($)}function fsmIterator($,xn,En){var Nn,Tn,$n,kl=xn;function xl(Nl,Rl){if(kl===qEnd)return done(Nl);if(Rl&&!Tn)throw kl=qEnd,Rl;Nn&&Nn(Nl);var Fl=Rl?$[Tn](Rl):$[kl]();return kl=Fl.nextState,$n=Fl.effect,Nn=Fl.stateUpdater,Tn=Fl.errorState,kl===qEnd?done(Nl):$n}return makeIterator(xl,function(Nl){return xl(null,Nl)},En)}function takeEvery$1($,xn){for(var En=arguments.length,Nn=new Array(En>2?En-2:0),Tn=2;Tn2?En-2:0),Tn=2;Tn2?En-2:0),Tn=2;Tn3?Tn-3:0),kl=3;kl2?En-2:0),Tn=2;Tn2?En-2:0),Tn=2;Tn2?En-2:0),Tn=2;Tn3?Nn-3:0),$n=3;$n$.merchandise!=null;function reportCartChange($,xn){try{xn()}catch(En){analytics()?.captureException(En instanceof Error?En:new Error(`${$} failed`),{category:"cart-saga",operation:$})}}function*cartSagas(){yield*takeLatest("CART_FETCH",loadCart),yield*takeLatest("CART_FETCH",loadUpsells$1),yield*takeLatest("CART_FETCHED",onCartFetched),yield*fork(updateCartQueue),yield*takeLatest($=>$.type.startsWith("CART_"),saveState),yield*takeLatest("CART_UPDATE_SUCCESS",onCartUpdated)}function*saveState($){const xn=yield*select(Nn=>Nn.cart),En=["CART_OPEN","CART_FETCH","CART_FETCHED"];xn.loaded&&!En.includes($.type)&&localStorage.setItem("cart",JSON.stringify({...xn,...initialState$1}))}function*onCartFetched($){yield put(Actions$1.cartLoaded($.payload));const xn=getCurrentCountry(),En=$.payload.buyerIdentity?.countryCode;En&&En!==xn.iso_code&&(yield put(Actions$1.updateCartBuyerIdentity(xn)));const Nn=$.payload.lines.filter(Tn=>Tn.merchandise==null);for(const Tn of Nn)yield put(Actions$1.removeFromCart(Tn.id));yield delay(3e3),analytics()?.register({cartId:$.payload.id})}function*loadUpsells$1($){const xn=yield*call$2(()=>shopifyFetch(CartLoadUpsellsDocument,{}));if(!xn.errors&&xn.data?.items){const En=xn.data.items.references?.map(extractConnections).map(Nn=>Nn.item?.reference?{item:Nn.item?.reference,expiry:Nn.expiry?.value?new Date(Nn.expiry.value):null,expiryText:Nn.expiry_text?.value??null,offer:Nn.offer?.value??void 0}:null).filter(isPresent);En&&(yield*put(Actions$1.cartUpsellsLoaded(En)))}}function*loadCart($){let xn=0,En=null;for(;++xn<=10;){try{const Nn=JSON.parse(localStorage.getItem("cart"));if(Nn?.id){"lines"in Nn&&(yield*put(Actions$1.cartFetched(Nn)));const Tn=yield*call$2(()=>shopifyFetch(CartLoadDocument,{id:Nn.id}));if(isError(Tn)){if(Tn.errors.some($n=>$n.message.toLowerCase().includes("invalid"))){localStorage.removeItem("cart");continue}console.warn("Could not load cart",Tn.errors),En=Tn.errors[0]}else if(Tn.data!==null){const $n=Tn.data;console.debug("Checkout loaded",$n),Nn.id.includes($n.id)&&($n.id=Nn.id),yield*put(Actions$1.cartFetched($n));try{yield*writeCartAttributes($n.id,$n.lines,$n.attributes)}catch(kl){analytics()?.captureException(kl instanceof Error?kl:new Error("cart date refresh failed"),{category:"cart-saga",operation:"refreshOnLoad"})}return}else{localStorage.removeItem("cart");continue}}else{const Tn=yield*call$2(()=>shopifyFetch(CartCreateDocument,{}));if(isError(Tn))console.error(Tn.errors),En=Tn.errors[0];else if(Tn.data)return console.debug("Checkout created",Tn.data),yield*put(Actions$1.cartFetched(Tn.data))}}catch(Nn){En=Nn}yield*call$2(sleep,Math.pow(xn,2)*500)}if(En){const Nn=localStorage.getItem("cart");console.warn("Failed to create checkout",En),En.name&&(En.name="CartCreateError"),analytics()?.captureException(En,{cart:Nn?JSON.parse(Nn):null})}}const COALESCE_WINDOW_MS=300,SETTLE_WINDOW_MS=50;function*updateCartQueue(){const $=yield*actionChannel(updateActions);let xn=null,En=null,Nn=[];for(;;){const Tn=Nn.length>0?Nn:[yield*take($)];for(Nn=[];;){yield*delay(COALESCE_WINDOW_MS);const xl=yield*flush$1($);if(xl.length===0)break;Tn.push(...xl)}const $n=yield*call$2(processCartBatch,Tn);if($n){if(isOk($n.res))xn=$n.res.data,En=null;else if($n.message){const xl=Tn[0]["@CONTEXT"]?.prevState,Nl=new CartError($n.message,$n.res);analytics()?.captureException(Nl,{category:"cart-saga",operation:"processCartBatch",actions:Tn.map(Rl=>Rl.type),merchandise:Tn.flatMap(Rl=>Rl.type==="CART_ADD"?Rl.payload.map(Fl=>Fl.id):[Rl.meta])}),En={revertTo:$n.res.data??xl,error:Nl}}}let kl=yield*flush$1($);if(kl.length===0&&(yield*delay(SETTLE_WINDOW_MS),kl=yield*flush$1($)),kl.length>0){Nn=kl;continue}xn?yield*put(Actions$1.updateCartSucess(xn)):En&&(yield*put(Actions$1.updateCartError(En.revertTo,[En.error]))),xn=null,En=null}}function*processCartBatch($){const xn=yield*select($n=>$n.cart.id);if(!xn)return null;let En=null,Nn=!1,Tn=0;for(;Tn<$.length;){const $n=$[Tn].type;let kl=Tn+1;for(;kl<$.length&&$[kl].type===$n;)kl++;const xl=$.slice(Tn,kl);let Nl;switch($n){case"CART_ADD":{const Rl=xl;if(Nl=yield*call$2(addToCart,Rl,xn),Nn||(yield*put(Actions$1.openCart(!0)),Nn=!0),isOk(Nl.res)){const Fl=Nl.res.data;reportCartChange("productAddedToCart",()=>{for(const Al of Rl)for(const Tl of Al.payload){const Cl=Fl?.lines?.find(Il=>Il.merchandise?.id===Tl.id);Cl&&analytics()?.capture("Added To Cart",toConvergeCartLine(Cl))}})}break}case"CART_REMOVE":{const Rl=xl;Nl=yield*call$2(removeFromCart,Rl,xn),isOk(Nl.res)&&reportCartChange("productRemovedFromCart",()=>{for(const Fl of Rl){const Tl=Fl["@CONTEXT"]?.prevState?.lines?.find(Cl=>Cl.merchandise?.id===Fl.meta);Tl&&analytics()?.capture("Removed From Cart",toConvergeCartLine(Tl))}});break}case"CART_QUANTITY_UPDATE":{const Rl=xl;Nl=yield*call$2(updateQuantity,Rl,xn),isOk(Nl.res)&&reportCartChange("cartQuantityUpdated",()=>{for(const Fl of Rl){const Tl=Fl["@CONTEXT"]?.prevState?.lines?.find(Il=>Il.merchandise?.id===Fl.meta);if(!Tl)continue;const Cl=Fl.payload-Tl.quantity;Cl>0?analytics()?.capture("Added To Cart",{...toConvergeCartLine(Tl),quantity:Cl}):Cl<0&&analytics()?.capture("Removed From Cart",{...toConvergeCartLine(Tl),quantity:Cl})}});break}default:Tn=kl;continue}if(En=Nl,!isOk(Nl.res))break;Tn=kl}return En}async function removeFromCart($,xn){const En=Array.from(new Set($.map(Tn=>toGraphId(Tn.meta,"variant")))),Nn=await shopifyFetch(CartRemoveDocument,{id:xn,lines:En});return cartResponse(Nn,"Error removing from cart")}const toCartLineInputs=$=>$.flatMap(xn=>xn.payload.map(En=>({quantity:En.quantity,merchandiseId:toGraphId(En.id,"variant"),attributes:En.attributes,sellingPlanId:En.sellingPlanId})));async function addToCart($,xn){const En=await shopifyFetch(CartAddDocument,{id:xn,lines:toCartLineInputs($)});return cartResponse(En,"Error adding to cart")}async function updateQuantity($,xn){const En=new Map;for(const Tn of $){const $n=toGraphId(Tn.meta,"variant");En.set($n,{id:$n,quantity:Tn.payload})}const Nn=await shopifyFetch(CartUpdateDocument,{id:xn,lines:Array.from(En.values())});return cartResponse(Nn,"Error updating quantity")}async function deriveLineCheckinsFromInventory($){const xn=getPrefferedCountryCode();if(xn==="EU")return null;const En=$.filter(isSellable),Nn=Array.from(new Set(En.map(xl=>xl.merchandise.product.id)));if(Nn.length===0)return[];const Tn=new URLSearchParams({country:xn,store:getStoreCountry()});for(const xl of Nn)Tn.append("ids",xl);const $n=await fetch(`${AUK_API_URL}/inventory?${Tn}`);if($n.status>=500)throw new Error(`Failed to load inventory: ${$n.statusText}`);if(!$n.ok)return null;const kl=await $n.json();return kl.success?En.map(xl=>{const Rl=kl.data.find(Al=>Al.id===xl.merchandise.product.id)?.variants.find(Al=>Al.id===xl.merchandise.id);if(!Rl)return null;const Fl=datedShipments(Rl,xl.merchandise.product.handle).slice().sort(by(Al=>new Date(Al.estimatedCheckinDate),Order.Desc)).pop();return Fl?{lineId:xl.id,date:Fl.estimatedCheckinDate,poId:Fl.poId??null}:null}).filter(isPresent):null}function*onCartUpdated($){try{yield*writeCartAttributes($.payload.id,$.payload.lines,$.payload.attributes)}catch(xn){analytics()?.captureException(xn instanceof Error?xn:new Error("cart attribute write failed"),{category:"cart-saga",operation:"onCartUpdated"})}finally{yield*put(Actions$1.cartAttributesSynced())}}function*writeCartAttributes($,xn,En){const Nn=xn.filter(isSellable);let Tn=null;try{Tn=yield*retry(API_RETRIES,API_RETRY_DELAY_MS,deriveLineCheckinsFromInventory,Nn)}catch(Rl){analytics()?.captureException(Rl instanceof Error?Rl:new Error("inventory fetch failed"),{category:"cart-saga",operation:"deriveLineCheckinsFromInventory"})}if(Tn){const Rl=Nn.map(Fl=>{const Al=Tn.find(Dl=>Dl.lineId===Fl.id),Tl=Fl.attributes.find(Dl=>Dl.key===Attributes.ESTIMATED_DATE)?.value??null,Cl=Fl.attributes.find(Dl=>Dl.key===Attributes.PO_ID)?.value??null,Il=Al?.date??null,Ml=Al?.poId??null;return Tl===Il&&Cl===Ml?null:{id:Fl.id,attributes:[...Fl.attributes.filter(Dl=>Dl.key!==Attributes.ESTIMATED_DATE&&Dl.key!==Attributes.PO_ID&&isPresent(Dl.value)).map(Dl=>({key:Dl.key,value:Dl.value})),...Il?[{key:Attributes.ESTIMATED_DATE,value:Il}]:[],...Ml?[{key:Attributes.PO_ID,value:Ml}]:[]]}}).filter(isPresent);Rl.length>0&&(yield*call$2(()=>shopifyFetch(CartUpdateDocument,{id:$,lines:Rl})))}const kl=(Tn?.map(({date:Rl,poId:Fl})=>({date:Rl,poId:Fl}))??Nn.map(Rl=>{const Fl=Rl.attributes.find(Al=>Al.key===Attributes.ESTIMATED_DATE)?.value;return Fl?{date:Fl,poId:Rl.attributes.find(Al=>Al.key===Attributes.PO_ID)?.value??null}:null}).filter(isPresent)).slice().sort(by(Rl=>new Date(Rl.date))).pop();if(!kl){if(!En.some(Rl=>DELIVERY_ATTRIBUTE_KEYS.has(Rl.key)))return;yield*call$2(()=>Promise.all([shopifyFetch(CartAttributesUpdateDocument,{id:$,attributes:En.filter(Rl=>!DELIVERY_ATTRIBUTE_KEYS.has(Rl.key)&&isPresent(Rl.value)).map(Rl=>({key:Rl.key,value:Rl.value}))}),...[CartMetafields.ESTIMATED_DATE,CartMetafields.PO_ID].map(Rl=>shopifyFetch(CartMetafieldDeleteDocument,{input:{ownerId:$,key:Rl}}))]));return}if((En.find(Rl=>Rl.key===Attributes.ESTIMATED_DATE)?.value??null)===kl.date)return;let Nl;switch(window.localization.language.shop_locale.locale){case"de":Nl="Lieferung geschätzt";break;case"sv":Nl="Uppskattad leveranstid";break;case"no":Nl="Estimert leveringstid";break;case"fr":Nl="Date de livraison estimée";break;default:Nl="Estimated Delivery";break}yield*call$2(()=>Promise.all([shopifyFetch(CartAttributesUpdateDocument,{id:$,attributes:[{key:Attributes.ESTIMATED_DATE,value:kl.date},kl.poId?{key:Attributes.PO_ID,value:kl.poId}:null,{key:Nl,value:kl.date}].filter(isPresent)}),shopifyFetch(CartMetafieldsSetDocument,{metafields:[{ownerId:$,key:CartMetafields.ESTIMATED_DATE,type:"date",value:kl.date},kl.poId?{ownerId:$,key:CartMetafields.PO_ID,type:"single_line_text_field",value:kl.poId}:null].filter(isPresent)})]))}function cartResponse($,xn){return{res:$,message:isOk($)?null:xn}}function*countrySagas(){yield*takeLatest("CART_COUNTRY_UPDATE",updateCountry),yield*takeLatest("CART_BUYER_IDENTITY_UPDATE",updateCountry),yield*takeLatest("CART_COUNTRY_UPDATE",updateCountryCookie),yield*takeLatest("CART_COUNTRY_UPDATE",updatePrefferedCountry),yield*takeLatest("CART_COUNTRY_UPDATE",loadDeliveryProfiles),yield*takeLatest("SHIPPING_SETTINGS_LOAD",loadDeliveryProfiles),yield*takeLatest("MARKETS_LOAD",loadMarkets)}function*updateCountry($){const{name:xn,iso_code:En}=$.payload,Nn=yield*select(Tn=>Tn.cart.id);if(Nn&&En!=="EU"){const Tn=yield*call$2(()=>shopifyFetch(CartLoadDocument,{id:Nn,country:En})),$n={id:Nn,country:En,shippingAddress:{country:xn}},kl=yield*call$2(()=>shopifyFetch(CartUpdateCountryDocument,$n));isOk(kl)?yield*put(Actions$1.updateCartCountrySuccesss(kl.data,$.payload)):isOk(Tn)&&(yield*put(Actions$1.updateCartCountrySuccesss(Tn.data,$.payload))),isError(kl)&&console.info("updateShippingCountryErrors",kl.errors)}}function*updateCountryCookie($){const{payload:xn,meta:En}=$,Nn=document.cookie.split("; ").map(Tn=>Tn.includes("localization")?`localization=${xn.iso_code}`:Tn);document.cookie=Nn.join("; "),yield*call$2(()=>fetch(En.action,{method:"POST",credentials:"include",redirect:"manual",body:new FormData(En)}))}function*updatePrefferedCountry($){const xn=$.payload;yield localStorage.setItem("preferredCountry",JSON.stringify({...xn,updatedDate:new Date})),yield localStorage.setItem("preferredCountryCode",xn.iso_code),yield*delay(50)}function*loadDeliveryProfiles($){const xn=$.type==="CART_COUNTRY_UPDATE"?$.payload.iso_code:getCurrentCountry().iso_code;if(!(yield*select(Nn=>Nn.shippingSettings)).some(Nn=>(Nn.countries??[]).includes(xn)))try{const Nn=yield*retry(API_RETRIES,API_RETRY_DELAY_MS,async()=>{const Tn=await fetch(`${AUK_API_URL}/s?country=${xn}&store=${getStoreCountry()}`);if(!Tn.ok)throw new Error(`Failed to load delivery profiles: ${Tn.statusText}`);const $n=await Tn.text();if(!$n)throw new Error("Empty delivery profiles response");const kl=JSON.parse($n);return Array.isArray(kl)?kl:[kl]});yield*put(Actions$1.deliveryProfilesLoaded(Nn))}catch(Nn){console.error(Nn),analytics()?.captureException(Nn)}}function*loadMarkets($){try{const xn=yield*retry(API_RETRIES,API_RETRY_DELAY_MS,async()=>{const En=await fetch(`${AUK_API_URL}/m`);if(!En.ok)throw new Error(`Failed to load markets: ${En.statusText}`);return await En.json()});yield*put(Actions$1.marketsLoaded(xn))}catch(xn){console.error(xn),analytics()?.captureException(xn)}}function*productSagas(){yield*takeLeading("PRODUCTS_LOAD",loadProducts),yield*takeLatest("UPSELL_LOAD",loadUpsells),yield*fork(upsellCartQueue)}function*upsellCartQueue(){const $=yield*actionChannel(["UPSELL_ADD","UPSELL_REMOVE","UPSELL_CART_PLAN_SET"]);for(;;){const xn=yield*take($);xn.type==="UPSELL_CART_PLAN_SET"?yield*call$2(onPlanChange):yield*call$2(onUpsellChange,xn)}}function*cartReplaced($){const xn=yield*select(En=>En.products.upsellCart);return!!xn&&xn.id!==$.id}function*publishUpsellCart($){yield*put(Actions$1.upsellsCartLoaded($));for(const xn of $.lines??[]){if(!xn.merchandise)continue;const En=getPrice(xn.cost.totalAmount)/(xn.quantity||1),Nn=getPrice(xn.merchandise.price)-En;yield*put(Actions$1.updateUpsell({discounts:Nn},xn.merchandise.id))}}function*syncCartPlan($,xn){let En=$;for(let Nn=0;Nn<3;Nn++){const Tn=yield*select(Rl=>Rl.products.upsellPlanId),$n=new Set(yield*select(Rl=>Rl.products.upsellPlanVariants)),kl=Rl=>Tn&&Rl.merchandise&&$n.has(Rl.merchandise.id)?Tn:null,xl=(En.lines??[]).filter(Rl=>(Rl.sellingPlanAllocation?.sellingPlan.id??null)!==kl(Rl));if(!xl.length)return En;const Nl=yield*call$2(()=>shopifyFetch(UpsellCartUpdateDocument,{id:En.id,lines:xl.map(Rl=>({id:Rl.id,sellingPlanId:kl(Rl)??void 0}))},xn));if(!isOk(Nl))return En;En=Nl.data}return En}function*onPlanChange(){const $=yield*select(En=>En.products.upsellCart);if(!$?.lines?.length)return;const xn=new AbortController;try{const En=yield*call$2(syncCartPlan,$,xn.signal);if(yield*call$2(cartReplaced,En))return;yield*publishUpsellCart(En)}finally{(yield*cancelled())&&xn.abort()}}function*loadProducts($){let xn;try{const En=yield*call$2(()=>shopifyFetch(ProductsDocument,{}));if(isOk(En))return yield*put(Actions$1.productsLoaded(En.data));isError(En)&&(xn=En.errors[0])}catch(En){const Nn=window.TRANSLATIONS.react.products.load_error||"Failed to load products";xn=new AukError(Nn,En,{action:{...$}})}xn&&(yield*put(Actions$1.productsFailed(xn)))}function*loadUpsells($){const xn=$.payload,En=$.meta??xn.variants[0],Nn=!xn.variants.some(Al=>Al.id===En.id),Tn=yield*select(Al=>Al.products.upsellPlanId),$n=En.sellingPlanAllocations??[],kl=Nn||xn.requiresSellingPlan?($n.find(Al=>Al.sellingPlan.id===Tn)??$n[0])?.sellingPlan.id:void 0,xl=Array.from(new Set(xn.variants.flatMap(Al=>extractUpsells(xn,Al).map(Tl=>Tl.id)))),Nl=yield*select(Al=>Al.cart.stagedUpsells),Rl=new Map;for(const Al of Nl)Rl.set(Al.id,(Rl.get(Al.id)??0)+1);const Fl=[{merchandiseId:En.id,quantity:1,...kl?{sellingPlanId:kl}:{}},...Array.from(new Set([...xl,...Rl.keys()])).map(Al=>({merchandiseId:Al,quantity:Rl.get(Al)??1}))];try{const[Al,Tl]=yield*call$2(()=>Promise.all([shopifyFetch(UpsellCheckoutCreateDocument,{lines:Fl}),shopifyFetch(UpsellDocument,{variantIds:xl})]));isOk(Tl)?yield*put(Actions$1.upsellsLoaded(Tl.data,xn.id)):yield*put(Actions$1.upsellsLoaded([],xn.id)),isOk(Al)&&(yield*publishUpsellCart(yield*call$2(syncCartPlan,Al.data)))}catch{yield*put(Actions$1.upsellsLoaded([],xn.id))}}function*onUpsellChange($){for(let xn=0;xn<3;xn++)if(yield*call$2(reconcileUpsell,$))return}function*reconcileUpsell($){let xn=yield*select(kl=>kl.products.upsellCart);if(xn||(yield*take("UPSELL_CART_LOAD_SUCCESS"),xn=yield*select(kl=>kl.products.upsellCart)),!xn)return!0;const En=$.type==="UPSELL_ADD"?$.payload.id:$.meta,Nn=yield*select(kl=>kl.cart.stagedUpsells.filter(xl=>xl.id===En).length),Tn=xn.lines.find(kl=>kl.merchandise?.id===En);if((Tn?.quantity??0)===Nn)return!0;const $n=new AbortController;try{let kl;if($.type==="UPSELL_ADD")kl=yield*call$2(()=>shopifyFetch(UpsellCartAddDocument,{id:xn.id,lines:[{merchandiseId:En,quantity:1}]},$n.signal));else if(Tn&&Nn>0)kl=yield*call$2(()=>shopifyFetch(UpsellCartUpdateDocument,{id:xn.id,lines:[{id:Tn.id,quantity:Nn}]},$n.signal));else if(Tn)kl=yield*call$2(()=>shopifyFetch(UpsellCartRemoveDocument,{id:xn.id,lines:[Tn.id]},$n.signal));else return!0;if(!isOk(kl))return!0;const xl=yield*call$2(syncCartPlan,kl.data,$n.signal);return(yield*call$2(cartReplaced,xl))?!1:(yield*publishUpsellCart(xl),!0)}finally{(yield*cancelled())&&$n.abort()}}function*reportingSagas(){yield*takeEvery($=>$.type.endsWith("ERROR"),logError),yield*fork(watchStuckCartGate)}function*logError($){const{meta:xn}=$;if(xn===void 0)return;const En=isArray(xn)?xn:[xn];for(const Nn of En)console.warn(Nn.message,Nn),yield analytics()?.captureException(Nn)}const STUCK_GATE_MS=3e4;function*watchStuckCartGate(){for(;;){const $=yield*call$2(waitForGate,!0),xn=Date.now(),{stuck:En}=yield*race({stuck:delay(STUCK_GATE_MS),lowered:call$2(waitForGate,!1)});if(!En)continue;const Nn=yield*select(Tn=>Tn.cart);analytics()?.track("Cart Gate Stuck",{raisedBy:$,operation:Nn.pendingOperation??"none",elapsedMs:Date.now()-xn,thresholdMs:STUCK_GATE_MS,visibility:document.visibilityState,lines:Nn.loaded?Nn.lines.length:0}),yield*call$2(waitForGate,!1),analytics()?.track("Cart Gate Recovered",{raisedBy:$,stuckMs:Date.now()-xn})}}function*waitForGate($){let xn=null;for(;;){if((yield*select(Tn=>Tn.cart.pendingOperation))!==null===$)return xn;xn=(yield*take("*")).type}}const CANCEL_SAGAS_HMR="CANCEL_SAGAS_HMR",sagas=[cartSagas,countrySagas,productSagas,reportingSagas];function makeRestartable($){return function*(){for(;;){try{yield*call$2($);break}catch(xn){console.warn(`Saga '${$.name}' failed.`,xn)}yield*delay(1e3)}}}function createAbortableSaga($){return $}const SagaManager={startSagas($){sagas.map(makeRestartable).map(createAbortableSaga).forEach(xn=>$.run(xn))},cancelSagas($){$.dispatch({type:CANCEL_SAGAS_HMR})}},actionInterceptor=$=>xn=>$(xn),effectMiddleware=$=>actionInterceptor($),sagaMiddleware=sagaMiddlewareFactory({effectMiddlewares:[effectMiddleware]}),optimisticUpdateHelper=$=>xn=>En=>En["@CONTEXT"]?.optimistic?xn({...En,"@CONTEXT":{...En["@CONTEXT"],prevState:$.getState().cart}}):xn(En),middlewares=[optimisticUpdateHelper,sagaMiddleware],composeEnhancers=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||compose$1;function configureStore($){const xn=createStore(reducers(),{},composeEnhancers(applyMiddleware(...middlewares)));return SagaManager.startSagas(sagaMiddleware),xn}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function($){for(var xn=1;xn"u")throw new Error(xn)}function warning($,xn){{typeof console<"u"&&console.warn(xn);try{throw new Error(xn)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState($,xn){return{usr:$.state,key:$.key,idx:xn}}function createLocation($,xn,En,Nn){return En===void 0&&(En=null),_extends$1({pathname:typeof $=="string"?$:$.pathname,search:"",hash:""},typeof xn=="string"?parsePath(xn):xn,{state:En,key:xn&&xn.key||Nn||createKey()})}function createPath($){let{pathname:xn="/",search:En="",hash:Nn=""}=$;return En&&En!=="?"&&(xn+=En.charAt(0)==="?"?En:"?"+En),Nn&&Nn!=="#"&&(xn+=Nn.charAt(0)==="#"?Nn:"#"+Nn),xn}function parsePath($){let xn={};if($){let En=$.indexOf("#");En>=0&&(xn.hash=$.substr(En),$=$.substr(0,En));let Nn=$.indexOf("?");Nn>=0&&(xn.search=$.substr(Nn),$=$.substr(0,Nn)),$&&(xn.pathname=$)}return xn}function getUrlBasedHistory($,xn,En,Nn){Nn===void 0&&(Nn={});let{window:Tn=document.defaultView,v5Compat:$n=!1}=Nn,kl=Tn.history,xl=Action$1.Pop,Nl=null,Rl=Fl();Rl==null&&(Rl=0,kl.replaceState(_extends$1({},kl.state,{idx:Rl}),""));function Fl(){return(kl.state||{idx:null}).idx}function Al(){xl=Action$1.Pop;let Dl=Fl(),Ll=Dl==null?null:Dl-Rl;Rl=Dl,Nl&&Nl({action:xl,location:Ml.location,delta:Ll})}function Tl(Dl,Ll){xl=Action$1.Push;let $l=createLocation(Ml.location,Dl,Ll);Rl=Fl()+1;let Vl=getHistoryState($l,Rl),Bl=Ml.createHref($l);try{kl.pushState(Vl,"",Bl)}catch(zl){if(zl instanceof DOMException&&zl.name==="DataCloneError")throw zl;Tn.location.assign(Bl)}$n&&Nl&&Nl({action:xl,location:Ml.location,delta:1})}function Cl(Dl,Ll){xl=Action$1.Replace;let $l=createLocation(Ml.location,Dl,Ll);Rl=Fl();let Vl=getHistoryState($l,Rl),Bl=Ml.createHref($l);kl.replaceState(Vl,"",Bl),$n&&Nl&&Nl({action:xl,location:Ml.location,delta:0})}function Il(Dl){let Ll=Tn.location.origin!=="null"?Tn.location.origin:Tn.location.href,$l=typeof Dl=="string"?Dl:createPath(Dl);return $l=$l.replace(/ $/,"%20"),invariant(Ll,"No window.location.(origin|href) available to create URL for href: "+$l),new URL($l,Ll)}let Ml={get action(){return xl},get location(){return $(Tn,kl)},listen(Dl){if(Nl)throw new Error("A history only accepts one active listener");return Tn.addEventListener(PopStateEventType,Al),Nl=Dl,()=>{Tn.removeEventListener(PopStateEventType,Al),Nl=null}},createHref(Dl){return xn(Tn,Dl)},createURL:Il,encodeLocation(Dl){let Ll=Il(Dl);return{pathname:Ll.pathname,search:Ll.search,hash:Ll.hash}},push:Tl,replace:Cl,go(Dl){return kl.go(Dl)}};return Ml}var ResultType;(function($){$.data="data",$.deferred="deferred",$.redirect="redirect",$.error="error"})(ResultType||(ResultType={}));function stripBasename($,xn){if(xn==="/")return $;if(!$.toLowerCase().startsWith(xn.toLowerCase()))return null;let En=xn.endsWith("/")?xn.length-1:xn.length,Nn=$.charAt(En);return Nn&&Nn!=="/"?null:$.slice(En)||"/"}const ABSOLUTE_URL_REGEX$1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,isAbsoluteUrl=$=>ABSOLUTE_URL_REGEX$1.test($);function resolvePath($,xn){xn===void 0&&(xn="/");let{pathname:En,search:Nn="",hash:Tn=""}=typeof $=="string"?parsePath($):$,$n;if(En)if(isAbsoluteUrl(En))$n=En;else{if(En.includes("//")){let kl=En;En=En.replace(/\/\/+/g,"/"),warning(!1,"Pathnames cannot have embedded double slashes - normalizing "+(kl+" -> "+En))}En.startsWith("/")?$n=resolvePathname(En.substring(1),"/"):$n=resolvePathname(En,xn)}else $n=xn;return{pathname:$n,search:normalizeSearch(Nn),hash:normalizeHash(Tn)}}function resolvePathname($,xn){let En=xn.replace(/\/+$/,"").split("/");return $.split("/").forEach(Tn=>{Tn===".."?En.length>1&&En.pop():Tn!=="."&&En.push(Tn)}),En.length>1?En.join("/"):"/"}function getInvalidPathError($,xn,En,Nn){return"Cannot include a '"+$+"' character in a manually specified "+("`to."+xn+"` field ["+JSON.stringify(Nn)+"]. Please separate it out to the ")+("`to."+En+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches($){return $.filter((xn,En)=>En===0||xn.route.path&&xn.route.path.length>0)}function getResolveToMatches($,xn){let En=getPathContributingMatches($);return xn?En.map((Nn,Tn)=>Tn===En.length-1?Nn.pathname:Nn.pathnameBase):En.map(Nn=>Nn.pathnameBase)}function resolveTo($,xn,En,Nn){Nn===void 0&&(Nn=!1);let Tn;typeof $=="string"?Tn=parsePath($):(Tn=_extends$1({},$),invariant(!Tn.pathname||!Tn.pathname.includes("?"),getInvalidPathError("?","pathname","search",Tn)),invariant(!Tn.pathname||!Tn.pathname.includes("#"),getInvalidPathError("#","pathname","hash",Tn)),invariant(!Tn.search||!Tn.search.includes("#"),getInvalidPathError("#","search","hash",Tn)));let $n=$===""||Tn.pathname==="",kl=$n?"/":Tn.pathname,xl;if(kl==null)xl=En;else{let Al=xn.length-1;if(!Nn&&kl.startsWith("..")){let Tl=kl.split("/");for(;Tl[0]==="..";)Tl.shift(),Al-=1;Tn.pathname=Tl.join("/")}xl=Al>=0?xn[Al]:"/"}let Nl=resolvePath(Tn,xl),Rl=kl&&kl!=="/"&&kl.endsWith("/"),Fl=($n||kl===".")&&En.endsWith("/");return!Nl.pathname.endsWith("/")&&(Rl||Fl)&&(Nl.pathname+="/"),Nl}const joinPaths=$=>$.join("/").replace(/\/\/+/g,"/"),normalizeSearch=$=>!$||$==="?"?"":$.startsWith("?")?$:"?"+$,normalizeHash=$=>!$||$==="#"?"":$.startsWith("#")?$:"#"+$,validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);function _extends(){return _extends=Object.assign?Object.assign.bind():function($){for(var xn=1;xn{xl.current=!0}),reactExports.useCallback(function(Rl,Fl){if(Fl===void 0&&(Fl={}),!xl.current)return;if(typeof Rl=="number"){Nn.go(Rl);return}let Al=resolveTo(Rl,JSON.parse(kl),$n,Fl.relative==="path");$==null&&xn!=="/"&&(Al.pathname=Al.pathname==="/"?xn:joinPaths([xn,Al.pathname])),(Fl.replace?Nn.replace:Nn.push)(Al,Fl.state,Fl)},[xn,Nn,kl,$n,$])}var DataRouterHook$1=(function($){return $.UseBlocker="useBlocker",$.UseRevalidator="useRevalidator",$.UseNavigateStable="useNavigate",$})(DataRouterHook$1||{}),DataRouterStateHook$1=(function($){return $.UseBlocker="useBlocker",$.UseLoaderData="useLoaderData",$.UseActionData="useActionData",$.UseRouteError="useRouteError",$.UseNavigation="useNavigation",$.UseRouteLoaderData="useRouteLoaderData",$.UseMatches="useMatches",$.UseRevalidator="useRevalidator",$.UseNavigateStable="useNavigate",$.UseRouteId="useRouteId",$})(DataRouterStateHook$1||{});function useDataRouterContext($){let xn=reactExports.useContext(DataRouterContext);return xn||invariant(!1),xn}function useRouteContext($){let xn=reactExports.useContext(RouteContext);return xn||invariant(!1),xn}function useCurrentRouteId($){let xn=useRouteContext(),En=xn.matches[xn.matches.length-1];return En.route.id||invariant(!1),En.route.id}function useNavigateStable(){let{router:$}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),xn=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),En=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>{En.current=!0}),reactExports.useCallback(function(Tn,$n){$n===void 0&&($n={}),En.current&&(typeof Tn=="number"?$.navigate(Tn):$.navigate(Tn,_extends({fromRouteId:xn},$n)))},[$,xn])}function logV6DeprecationWarnings($,xn){$?.v7_startTransition,$?.v7_relativeSplatPath}function Router($){let{basename:xn="/",children:En=null,location:Nn,navigationType:Tn=Action$1.Pop,navigator:$n,static:kl=!1,future:xl}=$;useInRouterContext()&&invariant(!1);let Nl=xn.replace(/^\/*/,"/"),Rl=reactExports.useMemo(()=>({basename:Nl,navigator:$n,static:kl,future:_extends({v7_relativeSplatPath:!1},xl)}),[Nl,xl,$n,kl]);typeof Nn=="string"&&(Nn=parsePath(Nn));let{pathname:Fl="/",search:Al="",hash:Tl="",state:Cl=null,key:Il="default"}=Nn,Ml=reactExports.useMemo(()=>{let Dl=stripBasename(Fl,Nl);return Dl==null?null:{location:{pathname:Dl,search:Al,hash:Tl,state:Cl,key:Il},navigationType:Tn}},[Nl,Fl,Al,Tl,Cl,Il,Tn]);return Ml==null?null:reactExports.createElement(NavigationContext.Provider,{value:Rl},reactExports.createElement(LocationContext.Provider,{children:En,value:Ml}))}new Promise(()=>{});function createSearchParams($){return $===void 0&&($=""),new URLSearchParams(typeof $=="string"||Array.isArray($)||$ instanceof URLSearchParams?$:Object.keys($).reduce((xn,En)=>{let Nn=$[En];return xn.concat(Array.isArray(Nn)?Nn.map(Tn=>[En,Tn]):[[En,Nn]])},[]))}function getSearchParamsForLocation($,xn){let En=createSearchParams($);return xn&&xn.forEach((Nn,Tn)=>{En.has(Tn)||xn.getAll(Tn).forEach($n=>{En.append(Tn,$n)})}),En}const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=React$1[START_TRANSITION];function BrowserRouter($){let{basename:xn,children:En,future:Nn,window:Tn}=$,$n=reactExports.useRef();$n.current==null&&($n.current=createBrowserHistory({window:Tn,v5Compat:!0}));let kl=$n.current,[xl,Nl]=reactExports.useState({action:kl.action,location:kl.location}),{v7_startTransition:Rl}=Nn||{},Fl=reactExports.useCallback(Al=>{Rl&&startTransitionImpl?startTransitionImpl(()=>Nl(Al)):Nl(Al)},[Nl,Rl]);return reactExports.useLayoutEffect(()=>kl.listen(Fl),[kl,Fl]),reactExports.useEffect(()=>logV6DeprecationWarnings(Nn),[Nn]),reactExports.createElement(Router,{basename:xn,children:En,location:xl.location,navigationType:xl.action,navigator:kl,future:Nn})}var DataRouterHook;(function($){$.UseScrollRestoration="useScrollRestoration",$.UseSubmit="useSubmit",$.UseSubmitFetcher="useSubmitFetcher",$.UseFetcher="useFetcher",$.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function($){$.UseFetcher="useFetcher",$.UseFetchers="useFetchers",$.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useSearchParams($){let xn=reactExports.useRef(createSearchParams($)),En=reactExports.useRef(!1),Nn=useLocation(),Tn=reactExports.useMemo(()=>getSearchParamsForLocation(Nn.search,En.current?null:xn.current),[Nn.search]),$n=useNavigate(),kl=reactExports.useCallback((xl,Nl)=>{const Rl=createSearchParams(typeof xl=="function"?xl(Tn):xl);En.current=!0,$n("?"+Rl,Nl)},[$n,Tn]);return[Tn,kl]}var updateQueue=makeQueue(),raf=$=>schedule($,updateQueue),writeQueue=makeQueue();raf.write=$=>schedule($,writeQueue);var onStartQueue=makeQueue();raf.onStart=$=>schedule($,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=$=>schedule($,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=$=>schedule($,onFinishQueue);var timeouts=[];raf.setTimeout=($,xn)=>{const En=raf.now()+xn,Nn=()=>{const $n=timeouts.findIndex(kl=>kl.cancel==Nn);~$n&&timeouts.splice($n,1),pendingCount-=~$n?1:0},Tn={time:En,handler:$,cancel:Nn};return timeouts.splice(findTimeout(En),0,Tn),pendingCount+=1,start(),Tn};var findTimeout=$=>~(~timeouts.findIndex(xn=>xn.time>$)||~timeouts.length);raf.cancel=$=>{onStartQueue.delete($),onFrameQueue.delete($),onFinishQueue.delete($),updateQueue.delete($),writeQueue.delete($)};raf.sync=$=>{sync=!0,raf.batchedUpdates($),sync=!1};raf.throttle=$=>{let xn;function En(){try{$(...xn)}finally{xn=null}}function Nn(...Tn){xn=Tn,raf.onStart(En)}return Nn.handler=$,Nn.cancel=()=>{onStartQueue.delete(En),xn=null},Nn};var nativeRaf=typeof window<"u"?window.requestAnimationFrame:(()=>{});raf.use=$=>nativeRaf=$;raf.now=typeof performance<"u"?()=>performance.now():Date.now;raf.batchedUpdates=$=>$();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};var ts=-1,pendingCount=0,sync=!1;function schedule($,xn){sync?(xn.delete($),$(0)):(xn.add($),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){const $=ts;ts=raf.now();const xn=findTimeout(ts);if(xn&&(eachSafely(timeouts.splice(0,xn),En=>En.handler()),pendingCount-=xn),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush($?Math.min(64,ts-$):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let $=new Set,xn=$;return{add(En){pendingCount+=xn==$&&!$.has(En)?1:0,$.add(En)},delete(En){return pendingCount-=xn==$&&$.has(En)?1:0,$.delete(En)},flush(En){xn.size&&($=new Set,pendingCount-=xn.size,eachSafely(xn,Nn=>Nn(En)&&$.add(Nn)),pendingCount+=$.size,xn=$)}}}function eachSafely($,xn){$.forEach(En=>{try{xn(En)}catch(Nn){raf.catch(Nn)}})}var __defProp=Object.defineProperty,__export=($,xn)=>{for(var En in xn)__defProp($,En,{get:xn[En],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});function noop$1(){}var defineHidden=($,xn,En)=>Object.defineProperty($,xn,{value:En,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:$=>!!$&&$.constructor.name==="Object",fun:$=>typeof $=="function",str:$=>typeof $=="string",num:$=>typeof $=="number",und:$=>$===void 0};function isEqual($,xn){if(is.arr($)){if(!is.arr(xn)||$.length!==xn.length)return!1;for(let En=0;En<$.length;En++)if($[En]!==xn[En])return!1;return!0}return $===xn}var each=($,xn)=>$.forEach(xn);function eachProp($,xn,En){if(is.arr($)){for(let Nn=0;Nn<$.length;Nn++)xn.call(En,$[Nn],`${Nn}`);return}for(const Nn in $)$.hasOwnProperty(Nn)&&xn.call(En,$[Nn],Nn)}var toArray=$=>is.und($)?[]:is.arr($)?$:[$];function flush($,xn){if($.size){const En=Array.from($);$.clear(),each(En,xn)}}var flushCalls=($,...xn)=>flush($,En=>En(...xn)),isSSR=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop$1,assign=$=>{$.to&&(to=$.to),$.now&&(raf.now=$.now),$.colors!==void 0&&(colors=$.colors),$.skipAnimation!=null&&(skipAnimation=$.skipAnimation),$.createStringInterpolator&&(createStringInterpolator=$.createStringInterpolator),$.requestAnimationFrame&&raf.use($.requestAnimationFrame),$.batchedUpdates&&(raf.batchedUpdates=$.batchedUpdates),$.willAdvance&&(willAdvance=$.willAdvance),$.frameLoop&&(raf.frameLoop=$.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start($){priority>$.priority?(startQueue.add($),raf.onStart(flushStartQueue)):(startSafely($),raf(advance))},advance,sort($){if(priority)raf.onFrame(()=>frameLoop.sort($));else{const xn=currentFrame.indexOf($);~xn&&(currentFrame.splice(xn,1),startUnsafely($))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely($){currentFrame.includes($)||startUnsafely($)}function startUnsafely($){currentFrame.splice(findIndex(currentFrame,xn=>xn.priority>$.priority),0,$)}function advance($){const xn=prevFrame;for(let En=0;En0}function findIndex($,xn){const En=$.findIndex(xn);return En<0?$.length:En}var colors2={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call$1(...$){return"\\(\\s*("+$.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call$1(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call$1(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call$1(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call$1(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor($){let xn;return typeof $=="number"?$>>>0===$&&$>=0&&$<=4294967295?$:null:(xn=hex6.exec($))?parseInt(xn[1]+"ff",16)>>>0:colors&&colors[$]!==void 0?colors[$]:(xn=rgb.exec($))?(parse255(xn[1])<<24|parse255(xn[2])<<16|parse255(xn[3])<<8|255)>>>0:(xn=rgba.exec($))?(parse255(xn[1])<<24|parse255(xn[2])<<16|parse255(xn[3])<<8|parse1(xn[4]))>>>0:(xn=hex3.exec($))?parseInt(xn[1]+xn[1]+xn[2]+xn[2]+xn[3]+xn[3]+"ff",16)>>>0:(xn=hex8.exec($))?parseInt(xn[1],16)>>>0:(xn=hex4.exec($))?parseInt(xn[1]+xn[1]+xn[2]+xn[2]+xn[3]+xn[3]+xn[4]+xn[4],16)>>>0:(xn=hsl.exec($))?(hslToRgb(parse360(xn[1]),parsePercentage(xn[2]),parsePercentage(xn[3]))|255)>>>0:(xn=hsla.exec($))?(hslToRgb(parse360(xn[1]),parsePercentage(xn[2]),parsePercentage(xn[3]))|parse1(xn[4]))>>>0:null}function hue2rgb($,xn,En){return En<0&&(En+=1),En>1&&(En-=1),En<1/6?$+(xn-$)*6*En:En<1/2?xn:En<2/3?$+(xn-$)*(2/3-En)*6:$}function hslToRgb($,xn,En){const Nn=En<.5?En*(1+xn):En+xn-En*xn,Tn=2*En-Nn,$n=hue2rgb(Tn,Nn,$+1/3),kl=hue2rgb(Tn,Nn,$),xl=hue2rgb(Tn,Nn,$-1/3);return Math.round($n*255)<<24|Math.round(kl*255)<<16|Math.round(xl*255)<<8}function parse255($){const xn=parseInt($,10);return xn<0?0:xn>255?255:xn}function parse360($){return(parseFloat($)%360+360)%360/360}function parse1($){const xn=parseFloat($);return xn<0?0:xn>1?255:Math.round(xn*255)}function parsePercentage($){const xn=parseFloat($);return xn<0?0:xn>100?1:xn/100}function colorToRgba($){let xn=normalizeColor($);if(xn===null)return $;xn=xn||0;const En=(xn&4278190080)>>>24,Nn=(xn&16711680)>>>16,Tn=(xn&65280)>>>8,$n=(xn&255)/255;return`rgba(${En}, ${Nn}, ${Tn}, ${$n})`}var createInterpolator=($,xn,En)=>{if(is.fun($))return $;if(is.arr($))return createInterpolator({range:$,output:xn,extrapolate:En});if(is.str($.output[0]))return createStringInterpolator($);const Nn=$,Tn=Nn.output,$n=Nn.range||[0,1],kl=Nn.extrapolateLeft||Nn.extrapolate||"extend",xl=Nn.extrapolateRight||Nn.extrapolate||"extend",Nl=Nn.easing||(Rl=>Rl);return Rl=>{const Fl=findRange(Rl,$n);return interpolate(Rl,$n[Fl],$n[Fl+1],Tn[Fl],Tn[Fl+1],Nl,kl,xl,Nn.map)}};function interpolate($,xn,En,Nn,Tn,$n,kl,xl,Nl){let Rl=Nl?Nl($):$;if(RlEn){if(xl==="identity")return Rl;xl==="clamp"&&(Rl=En)}return Nn===Tn?Nn:xn===En?$<=xn?Nn:Tn:(xn===-1/0?Rl=-Rl:En===1/0?Rl=Rl-xn:Rl=(Rl-xn)/(En-xn),Rl=$n(Rl),Nn===-1/0?Rl=-Rl:Tn===1/0?Rl=Rl+Nn:Rl=Rl*(Tn-Nn)+Nn,Rl)}function findRange($,xn){for(var En=1;En=$);++En);return En-1}var easings={linear:$=>$},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=$=>!!($&&$[$get]),getFluidValue=$=>$&&$[$get]?$[$get]():$,getFluidObservers=$=>$[$observers]||null;function callFluidObserver($,xn){$.eventObserved?$.eventObserved(xn):$(xn)}function callFluidObservers($,xn){const En=$[$observers];En&&En.forEach(Nn=>{callFluidObserver(Nn,xn)})}var FluidValue=class{constructor($){if(!$&&!($=this.get))throw Error("Unknown getter");setFluidGetter(this,$)}},setFluidGetter=($,xn)=>setHidden($,$get,xn);function addFluidObserver($,xn){if($[$get]){let En=$[$observers];En||setHidden($,$observers,En=new Set),En.has(xn)||(En.add(xn),$.observerAdded&&$.observerAdded(En.size,xn))}return xn}function removeFluidObserver($,xn){const En=$[$observers];if(En&&En.has(xn)){const Nn=En.size-1;Nn?En.delete(xn):$[$observers]=null,$.observerRemoved&&$.observerRemoved(Nn,xn)}}var setHidden=($,xn,En)=>Object.defineProperty($,xn,{value:En,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=$=>{const[xn,En]=parseCSSVariable($);if(!xn||isSSR())return $;const Nn=window.getComputedStyle(document.documentElement).getPropertyValue(xn);if(Nn)return Nn.trim();if(En&&En.startsWith("--")){const Tn=window.getComputedStyle(document.documentElement).getPropertyValue(En);return Tn||$}else{if(En&&cssVariableRegex.test(En))return variableToRgba(En);if(En)return En}return $},parseCSSVariable=$=>{const xn=cssVariableRegex.exec($);if(!xn)return[,];const[,En,Nn]=xn;return[En,Nn]},namedColorRegex,rgbaRound=($,xn,En,Nn,Tn)=>`rgba(${Math.round(xn)}, ${Math.round(En)}, ${Math.round(Nn)}, ${Tn})`,createStringInterpolator2=$=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const xn=$.output.map($n=>getFluidValue($n).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),En=xn.map($n=>$n.match(numberRegex).map(Number)),Tn=En[0].map(($n,kl)=>En.map(xl=>{if(!(kl in xl))throw Error('The arity of each "output" value must be equal');return xl[kl]})).map($n=>createInterpolator({...$,output:$n}));return $n=>{const kl=!unitRegex.test(xn[0])&&xn.find(Nl=>unitRegex.test(Nl))?.replace(numberRegex,"");let xl=0;return xn[0].replace(numberRegex,()=>`${Tn[xl++]($n)}${kl||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=$=>{const xn=$;let En=!1;if(typeof xn!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...Nn)=>{En||(xn(...Nn),En=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString($){return is.str($)&&($[0]=="#"||/\d/.test($)||!isSSR()&&cssVariableRegex.test($)||$ in(colors||{}))}var useIsomorphicLayoutEffect=isSSR()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const $=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>($.current=!0,()=>{$.current=!1}),[]),$};function useForceUpdate(){const $=reactExports.useState()[1],xn=useIsMounted();return()=>{xn.current&&$(Math.random())}}function useMemoOne($,xn){const[En]=reactExports.useState(()=>({inputs:xn,result:$()})),Nn=reactExports.useRef(),Tn=Nn.current;let $n=Tn;return $n?xn&&$n.inputs&&areInputsEqual(xn,$n.inputs)||($n={inputs:xn,result:$()}):$n=En,reactExports.useEffect(()=>{Nn.current=$n,Tn==En&&(En.inputs=En.result=void 0)},[$n]),$n.result}function areInputsEqual($,xn){if($.length!==xn.length)return!1;for(let En=0;En<$.length;En++)if($[En]!==xn[En])return!1;return!0}var useOnce=$=>reactExports.useEffect($,emptyDeps),emptyDeps=[];function usePrev($){const xn=reactExports.useRef();return reactExports.useEffect(()=>{xn.current=$}),xn.current}var $node=Symbol.for("Animated:node"),isAnimated=$=>!!$&&$[$node]===$,getAnimated=$=>$&&$[$node],setAnimated=($,xn)=>defineHidden($,$node,xn),getPayload=$=>$&&$[$node]&&$[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor($){super(),this._value=$,this.done=!0,this.durationProgress=0,is.num(this._value)&&(this.lastPosition=this._value)}static create($){return new AnimatedValue($)}getPayload(){return[this]}getValue(){return this._value}setValue($,xn){return is.num($)&&(this.lastPosition=$,xn&&($=Math.round($/xn)*xn,this.done&&(this.lastPosition=$))),this._value===$?!1:(this._value=$,!0)}reset(){const{done:$}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,$&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor($){super(0),this._string=null,this._toString=createInterpolator({output:[$,$]})}static create($){return new AnimatedString($)}getValue(){const $=this._string;return $??(this._string=this._toString(this._value))}setValue($){if(is.str($)){if($==this._string)return!1;this._string=$,this._value=1}else if(super.setValue($))this._string=null;else return!1;return!0}reset($){$&&(this._toString=createInterpolator({output:[this.getValue(),$]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor($){super(),this.source=$,this.setValue($)}getValue($){const xn={};return eachProp(this.source,(En,Nn)=>{isAnimated(En)?xn[Nn]=En.getValue($):hasFluidValue(En)?xn[Nn]=getFluidValue(En):$||(xn[Nn]=En)}),xn}setValue($){this.source=$,this.payload=this._makePayload($)}reset(){this.payload&&each(this.payload,$=>$.reset())}_makePayload($){if($){const xn=new Set;return eachProp($,this._addToPayload,xn),Array.from(xn)}}_addToPayload($){TreeContext.dependencies&&hasFluidValue($)&&TreeContext.dependencies.add($);const xn=getPayload($);xn&&each(xn,En=>this.add(En))}},AnimatedArray=class extends AnimatedObject{constructor($){super($)}static create($){return new AnimatedArray($)}getValue(){return this.source.map($=>$.getValue())}setValue($){const xn=this.getPayload();return $.length==xn.length?xn.map((En,Nn)=>En.setValue($[Nn])).some(Boolean):(super.setValue($.map(makeAnimated)),!0)}};function makeAnimated($){return(isAnimatedString($)?AnimatedString:AnimatedValue).create($)}function getAnimatedType($){const xn=getAnimated($);return xn?xn.constructor:is.arr($)?AnimatedArray:isAnimatedString($)?AnimatedString:AnimatedValue}var withAnimated=($,xn)=>{const En=!is.fun($)||$.prototype&&$.prototype.isReactComponent;return reactExports.forwardRef((Nn,Tn)=>{const $n=reactExports.useRef(null),kl=En&&reactExports.useCallback(Il=>{$n.current=updateRef(Tn,Il)},[Tn]),[xl,Nl]=getAnimatedState(Nn,xn),Rl=useForceUpdate(),Fl=()=>{const Il=$n.current;if(En&&!Il)return;(Il?xn.applyAnimatedValues(Il,xl.getValue(!0)):!1)===!1&&Rl()},Al=new PropsObserver(Fl,Nl),Tl=reactExports.useRef();useIsomorphicLayoutEffect(()=>(Tl.current=Al,each(Nl,Il=>addFluidObserver(Il,Al)),()=>{Tl.current&&(each(Tl.current.deps,Il=>removeFluidObserver(Il,Tl.current)),raf.cancel(Tl.current.update))})),reactExports.useEffect(Fl,[]),useOnce(()=>()=>{const Il=Tl.current;each(Il.deps,Ml=>removeFluidObserver(Ml,Il))});const Cl=xn.getComponentProps(xl.getValue());return reactExports.createElement($,{...Cl,ref:kl})})},PropsObserver=class{constructor($,xn){this.update=$,this.deps=xn}eventObserved($){$.type=="change"&&raf.write(this.update)}};function getAnimatedState($,xn){const En=new Set;return TreeContext.dependencies=En,$.style&&($={...$,style:xn.createAnimatedStyle($.style)}),$=new AnimatedObject($),TreeContext.dependencies=null,[$,En]}function updateRef($,xn){return $&&(is.fun($)?$(xn):$.current=xn),xn}var cacheKey=Symbol.for("AnimatedComponent"),createHost=($,{applyAnimatedValues:xn=()=>!1,createAnimatedStyle:En=Tn=>new AnimatedObject(Tn),getComponentProps:Nn=Tn=>Tn}={})=>{const Tn={applyAnimatedValues:xn,createAnimatedStyle:En,getComponentProps:Nn},$n=kl=>{const xl=getDisplayName(kl)||"Anonymous";return is.str(kl)?kl=$n[kl]||($n[kl]=withAnimated(kl,Tn)):kl=kl[cacheKey]||(kl[cacheKey]=withAnimated(kl,Tn)),kl.displayName=`Animated(${xl})`,kl};return eachProp($,(kl,xl)=>{is.arr($)&&(xl=getDisplayName(kl)),$n[xl]=$n(kl)}),{animated:$n}},getDisplayName=$=>is.str($)?$:$&&is.str($.displayName)?$.displayName:is.fun($)&&$.name||null;function callProp($,...xn){return is.fun($)?$(...xn):$}var matchProp=($,xn)=>$===!0||!!(xn&&$&&(is.fun($)?$(xn):toArray($).includes(xn))),resolveProp=($,xn)=>is.obj($)?xn&&$[xn]:$,getDefaultProp=($,xn)=>$.default===!0?$[xn]:$.default?$.default[xn]:void 0,noopTransform=$=>$,getDefaultProps=($,xn=noopTransform)=>{let En=DEFAULT_PROPS;$.default&&$.default!==!0&&($=$.default,En=Object.keys($));const Nn={};for(const Tn of En){const $n=xn($[Tn],Tn);is.und($n)||(Nn[Tn]=$n)}return Nn},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps($){const xn={};let En=0;if(eachProp($,(Nn,Tn)=>{RESERVED_PROPS[Tn]||(xn[Tn]=Nn,En++)}),En)return xn}function inferTo($){const xn=getForwardProps($);if(xn){const En={to:xn};return eachProp($,(Nn,Tn)=>Tn in xn||(En[Tn]=Nn)),En}return{...$}}function computeGoal($){return $=getFluidValue($),is.arr($)?$.map(computeGoal):isAnimatedString($)?globals_exports.createStringInterpolator({range:[0,1],output:[$,$]})(1):$}function hasProps($){for(const xn in $)return!0;return!1}function isAsyncTo($){return is.fun($)||is.arr($)&&is.obj($[0])}function detachRefs($,xn){$.ref?.delete($),xn?.delete($)}function replaceRef($,xn){xn&&$.ref!==xn&&($.ref?.delete($),xn.add($),$.ref=xn)}var config={default:{tension:170,friction:26},stiff:{tension:210,friction:20}},defaults={...config.default,mass:1,damping:1,easing:easings.linear,clamp:!1},AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults)}};function mergeConfig($,xn,En){En&&(En={...En},sanitizeConfig(En,xn),xn={...En,...xn}),sanitizeConfig($,xn),Object.assign($,xn);for(const kl in defaults)$[kl]==null&&($[kl]=defaults[kl]);let{frequency:Nn,damping:Tn}=$;const{mass:$n}=$;return is.und(Nn)||(Nn<.01&&(Nn=.01),Tn<0&&(Tn=0),$.tension=Math.pow(2*Math.PI/Nn,2)*$n,$.friction=4*Math.PI*Tn*$n/Nn),$}function sanitizeConfig($,xn){if(!is.und(xn.decay))$.duration=void 0;else{const En=!is.und(xn.tension)||!is.und(xn.friction);(En||!is.und(xn.frequency)||!is.und(xn.damping)||!is.und(xn.mass))&&($.duration=void 0,$.decay=void 0),En&&($.frequency=void 0)}}var emptyArray=[],Animation=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps($,{key:xn,props:En,defaultProps:Nn,state:Tn,actions:$n}){return new Promise((kl,xl)=>{let Nl,Rl,Fl=matchProp(En.cancel??Nn?.cancel,xn);if(Fl)Cl();else{is.und(En.pause)||(Tn.paused=matchProp(En.pause,xn));let Il=Nn?.pause;Il!==!0&&(Il=Tn.paused||matchProp(Il,xn)),Nl=callProp(En.delay||0,xn),Il?(Tn.resumeQueue.add(Tl),$n.pause()):($n.resume(),Tl())}function Al(){Tn.resumeQueue.add(Tl),Tn.timeouts.delete(Rl),Rl.cancel(),Nl=Rl.time-raf.now()}function Tl(){Nl>0&&!globals_exports.skipAnimation?(Tn.delayed=!0,Rl=raf.setTimeout(Cl,Nl),Tn.pauseQueue.add(Al),Tn.timeouts.add(Rl)):Cl()}function Cl(){Tn.delayed&&(Tn.delayed=!1),Tn.pauseQueue.delete(Al),Tn.timeouts.delete(Rl),$<=(Tn.cancelId||0)&&(Fl=!0);try{$n.start({...En,callId:$,cancel:Fl},kl)}catch(Il){xl(Il)}}})}var getCombinedResult=($,xn)=>xn.length==1?xn[0]:xn.some(En=>En.cancelled)?getCancelledResult($.get()):xn.every(En=>En.noop)?getNoopResult($.get()):getFinishedResult($.get(),xn.every(En=>En.finished)),getNoopResult=$=>({value:$,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=($,xn,En=!1)=>({value:$,finished:xn,cancelled:En}),getCancelledResult=$=>({value:$,cancelled:!0,finished:!1});function runAsync($,xn,En,Nn){const{callId:Tn,parentId:$n,onRest:kl}=xn,{asyncTo:xl,promise:Nl}=En;return!$n&&$===xl&&!xn.reset?Nl:En.promise=(async()=>{En.asyncId=Tn,En.asyncTo=$;const Rl=getDefaultProps(xn,(Dl,Ll)=>Ll==="onRest"?void 0:Dl);let Fl,Al;const Tl=new Promise((Dl,Ll)=>(Fl=Dl,Al=Ll)),Cl=Dl=>{const Ll=Tn<=(En.cancelId||0)&&getCancelledResult(Nn)||Tn!==En.asyncId&&getFinishedResult(Nn,!1);if(Ll)throw Dl.result=Ll,Al(Dl),Dl},Il=(Dl,Ll)=>{const $l=new BailSignal,Vl=new SkipAnimationSignal;return(async()=>{if(globals_exports.skipAnimation)throw stopAsync(En),Vl.result=getFinishedResult(Nn,!1),Al(Vl),Vl;Cl($l);const Bl=is.obj(Dl)?{...Dl}:{...Ll,to:Dl};Bl.parentId=Tn,eachProp(Rl,(Ul,Gl)=>{is.und(Bl[Gl])&&(Bl[Gl]=Ul)});const zl=await Nn.start(Bl);return Cl($l),En.paused&&await new Promise(Ul=>{En.resumeQueue.add(Ul)}),zl})()};let Ml;if(globals_exports.skipAnimation)return stopAsync(En),getFinishedResult(Nn,!1);try{let Dl;is.arr($)?Dl=(async Ll=>{for(const $l of Ll)await Il($l)})($):Dl=Promise.resolve($(Il,Nn.stop.bind(Nn))),await Promise.all([Dl.then(Fl),Tl]),Ml=getFinishedResult(Nn.get(),!0,!1)}catch(Dl){if(Dl instanceof BailSignal)Ml=Dl.result;else if(Dl instanceof SkipAnimationSignal)Ml=Dl.result;else throw Dl}finally{Tn==En.asyncId&&(En.asyncId=$n,En.asyncTo=$n?xl:void 0,En.promise=$n?Nl:void 0)}return is.fun(kl)&&raf.batchedUpdates(()=>{kl(Ml,Nn,Nn.item)}),Ml})()}function stopAsync($,xn){flush($.timeouts,En=>En.cancel()),$.pauseQueue.clear(),$.resumeQueue.clear(),$.asyncId=$.asyncTo=$.promise=void 0,xn&&($.cancelId=xn)}var BailSignal=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=$=>$ instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority($){this._priority!=$&&(this._priority=$,this._onPriorityChange($))}get(){const $=getAnimated(this);return $&&$.getValue()}to(...$){return globals_exports.to(this,$)}interpolate(...$){return deprecateInterpolate(),globals_exports.to(this,$)}toJSON(){return this.get()}observerAdded($){$==1&&this._attach()}observerRemoved($){$==0&&this._detach()}_attach(){}_detach(){}_onChange($,xn=!1){callFluidObservers(this,{type:"change",parent:this,value:$,idle:xn})}_onPriorityChange($){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:$})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=$=>($[$P]&HAS_ANIMATED)>0,isAnimating=$=>($[$P]&IS_ANIMATING)>0,isPaused=$=>($[$P]&IS_PAUSED)>0,setActiveBit=($,xn)=>xn?$[$P]|=IS_ANIMATING|HAS_ANIMATED:$[$P]&=~IS_ANIMATING,setPausedBit=($,xn)=>xn?$[$P]|=IS_PAUSED:$[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor($,xn){if(super(),this.animation=new Animation,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is.und($)||!is.und(xn)){const En=is.obj($)?{...$}:{...xn,from:$};is.und(En.default)&&(En.default=!0),this.start(En)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const $=getAnimated(this);return $ instanceof AnimatedValue?$.lastVelocity||0:$.getPayload().map(xn=>xn.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance($){let xn=!0,En=!1;const Nn=this.animation;let{toValues:Tn}=Nn;const{config:$n}=Nn,kl=getPayload(Nn.to);!kl&&hasFluidValue(Nn.to)&&(Tn=toArray(getFluidValue(Nn.to))),Nn.values.forEach((Rl,Fl)=>{if(Rl.done)return;const Al=Rl.constructor==AnimatedString?1:kl?kl[Fl].lastPosition:Tn[Fl];let Tl=Nn.immediate,Cl=Al;if(!Tl){if(Cl=Rl.lastPosition,$n.tension<=0){Rl.done=!0;return}let Il=Rl.elapsedTime+=$;const Ml=Nn.fromValues[Fl],Dl=Rl.v0!=null?Rl.v0:Rl.v0=is.arr($n.velocity)?$n.velocity[Fl]:$n.velocity;let Ll;const $l=$n.precision||(Ml==Al?.005:Math.min(1,Math.abs(Al-Ml)*.001));if(is.und($n.duration))if($n.decay){const Vl=$n.decay===!0?.998:$n.decay,Bl=Math.exp(-(1-Vl)*Il);Cl=Ml+Dl/(1-Vl)*(1-Bl),Tl=Math.abs(Rl.lastPosition-Cl)<=$l,Ll=Dl*Bl}else{Ll=Rl.lastVelocity==null?Dl:Rl.lastVelocity;const Vl=$n.restVelocity||$l/10,Bl=$n.clamp?0:$n.bounce,zl=!is.und(Bl),Ul=Ml==Al?Rl.v0>0:MlVl,!(!Gl&&(Tl=Math.abs(Al-Cl)<=$l,Tl)));++tu){zl&&(ql=Cl==Al||Cl>Al==Ul,ql&&(Ll=-Ll*Bl,Cl=Al));const ru=-$n.tension*1e-6*(Cl-Al),Yl=-$n.friction*.001*Ll,cu=(ru+Yl)/$n.mass;Ll=Ll+cu*Kl,Cl=Cl+Ll*Kl}}else{let Vl=1;$n.duration>0&&(this._memoizedDuration!==$n.duration&&(this._memoizedDuration=$n.duration,Rl.durationProgress>0&&(Rl.elapsedTime=$n.duration*Rl.durationProgress,Il=Rl.elapsedTime+=$)),Vl=($n.progress||0)+Il/this._memoizedDuration,Vl=Vl>1?1:Vl<0?0:Vl,Rl.durationProgress=Vl),Cl=Ml+$n.easing(Vl)*(Al-Ml),Ll=(Cl-Rl.lastPosition)/$,Tl=Vl==1}Rl.lastVelocity=Ll,Number.isNaN(Cl)&&(console.warn("Got NaN while animating:",this),Tl=!0)}kl&&!kl[Fl].done&&(Tl=!1),Tl?Rl.done=!0:xn=!1,Rl.setValue(Cl,$n.round)&&(En=!0)});const xl=getAnimated(this),Nl=xl.getValue();if(xn){const Rl=getFluidValue(Nn.to);(Nl!==Rl||En)&&!$n.decay?(xl.setValue(Rl),this._onChange(Rl)):En&&$n.decay&&this._onChange(Nl),this._stop()}else En&&this._onChange(Nl)}set($){return raf.batchedUpdates(()=>{this._stop(),this._focus($),this._set($)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:$,config:xn}=this.animation;raf.batchedUpdates(()=>{this._onStart(),xn.decay||this._set($,!1),this._stop()})}return this}update($){return(this.queue||(this.queue=[])).push($),this}start($,xn){let En;return is.und($)?(En=this.queue||[],this.queue=[]):En=[is.obj($)?$:{...xn,to:$}],Promise.all(En.map(Nn=>this._update(Nn))).then(Nn=>getCombinedResult(this,Nn))}stop($){const{to:xn}=this.animation;return this._focus(this.get()),stopAsync(this._state,$&&this._lastCallId),raf.batchedUpdates(()=>this._stop(xn,$)),this}reset(){this._update({reset:!0})}eventObserved($){$.type=="change"?this._start():$.type=="priority"&&(this.priority=$.priority+1)}_prepareNode($){const xn=this.key||"";let{to:En,from:Nn}=$;En=is.obj(En)?En[xn]:En,(En==null||isAsyncTo(En))&&(En=void 0),Nn=is.obj(Nn)?Nn[xn]:Nn,Nn==null&&(Nn=void 0);const Tn={to:En,from:Nn};return hasAnimated(this)||($.reverse&&([En,Nn]=[Nn,En]),Nn=getFluidValue(Nn),is.und(Nn)?getAnimated(this)||this._set(En):this._set(Nn)),Tn}_update({...$},xn){const{key:En,defaultProps:Nn}=this;$.default&&Object.assign(Nn,getDefaultProps($,(kl,xl)=>/^on/.test(xl)?resolveProp(kl,En):kl)),mergeActiveFn(this,$,"onProps"),sendEvent(this,"onProps",$,this);const Tn=this._prepareNode($);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const $n=this._state;return scheduleProps(++this._lastCallId,{key:En,props:$,defaultProps:Nn,state:$n,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls($n.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls($n.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,Tn)}}).then(kl=>{if($.loop&&kl.finished&&!(xn&&kl.noop)){const xl=createLoopUpdate($);if(xl)return this._update(xl,!0)}return kl})}_merge($,xn,En){if(xn.cancel)return this.stop(!0),En(getCancelledResult(this));const Nn=!is.und($.to),Tn=!is.und($.from);if(Nn||Tn)if(xn.callId>this._lastToId)this._lastToId=xn.callId;else return En(getCancelledResult(this));const{key:$n,defaultProps:kl,animation:xl}=this,{to:Nl,from:Rl}=xl;let{to:Fl=Nl,from:Al=Rl}=$;Tn&&!Nn&&(!xn.default||is.und(Fl))&&(Fl=Al),xn.reverse&&([Fl,Al]=[Al,Fl]);const Tl=!isEqual(Al,Rl);Tl&&(xl.from=Al),Al=getFluidValue(Al);const Cl=!isEqual(Fl,Nl);Cl&&this._focus(Fl);const Il=isAsyncTo(xn.to),{config:Ml}=xl,{decay:Dl,velocity:Ll}=Ml;(Nn||Tn)&&(Ml.velocity=0),xn.config&&!Il&&mergeConfig(Ml,callProp(xn.config,$n),xn.config!==kl.config?callProp(kl.config,$n):void 0);let $l=getAnimated(this);if(!$l||is.und(Fl))return En(getFinishedResult(this,!0));const Vl=is.und(xn.reset)?Tn&&!xn.default:!is.und(Al)&&matchProp(xn.reset,$n),Bl=Vl?Al:this.get(),zl=computeGoal(Fl),Ul=is.num(zl)||is.arr(zl)||isAnimatedString(zl),Gl=!Il&&(!Ul||matchProp(kl.immediate||xn.immediate,$n));if(Cl){const tu=getAnimatedType(Fl);if(tu!==$l.constructor)if(Gl)$l=this._set(zl);else throw Error(`Cannot animate between ${$l.constructor.name} and ${tu.name}, as the "to" prop suggests`)}const ql=$l.constructor;let Kl=hasFluidValue(Fl),Jl=!1;if(!Kl){const tu=Vl||!hasAnimated(this)&&Tl;(Cl||tu)&&(Jl=isEqual(computeGoal(Bl),zl),Kl=!Jl),(!isEqual(xl.immediate,Gl)&&!Gl||!isEqual(Ml.decay,Dl)||!isEqual(Ml.velocity,Ll))&&(Kl=!0)}if(Jl&&isAnimating(this)&&(xl.changed&&!Vl?Kl=!0:Kl||this._stop(Nl)),!Il&&((Kl||hasFluidValue(Nl))&&(xl.values=$l.getPayload(),xl.toValues=hasFluidValue(Fl)?null:ql==AnimatedString?[1]:toArray(zl)),xl.immediate!=Gl&&(xl.immediate=Gl,!Gl&&!Vl&&this._set(Nl)),Kl)){const{onRest:tu}=xl;each(ACTIVE_EVENTS,Yl=>mergeActiveFn(this,xn,Yl));const ru=getFinishedResult(this,checkFinished(this,Nl));flushCalls(this._pendingCalls,ru),this._pendingCalls.add(En),xl.changed&&raf.batchedUpdates(()=>{xl.changed=!Vl,tu?.(ru,this),Vl?callProp(kl.onRest,ru):xl.onStart?.(ru,this)})}Vl&&this._set(Bl),Il?En(runAsync(xn.to,xn,this._state,this)):Kl?this._start():isAnimating(this)&&!Cl?this._pendingCalls.add(En):En(getNoopResult(Bl))}_focus($){const xn=this.animation;$!==xn.to&&(getFluidObservers(this)&&this._detach(),xn.to=$,getFluidObservers(this)&&this._attach())}_attach(){let $=0;const{to:xn}=this.animation;hasFluidValue(xn)&&(addFluidObserver(xn,this),isFrameValue(xn)&&($=xn.priority+1)),this.priority=$}_detach(){const{to:$}=this.animation;hasFluidValue($)&&removeFluidObserver($,this)}_set($,xn=!0){const En=getFluidValue($);if(!is.und(En)){const Nn=getAnimated(this);if(!Nn||!isEqual(En,Nn.getValue())){const Tn=getAnimatedType(En);!Nn||Nn.constructor!=Tn?setAnimated(this,Tn.create(En)):Nn.setValue(En),Nn&&raf.batchedUpdates(()=>{this._onChange(En,xn)})}}return getAnimated(this)}_onStart(){const $=this.animation;$.changed||($.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,$.to)),this))}_onChange($,xn){xn||(this._onStart(),callProp(this.animation.onChange,$,this)),callProp(this.defaultProps.onChange,$,this),super._onChange($,xn)}_start(){const $=this.animation;getAnimated(this).reset(getFluidValue($.to)),$.immediate||($.fromValues=$.values.map(xn=>xn.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop($,xn){if(isAnimating(this)){setActiveBit(this,!1);const En=this.animation;each(En.values,Tn=>{Tn.done=!0}),En.toValues&&(En.onChange=En.onPause=En.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const Nn=xn?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,$??En.to));flushCalls(this._pendingCalls,Nn),En.changed&&(En.changed=!1,sendEvent(this,"onRest",Nn,this))}}};function checkFinished($,xn){const En=computeGoal(xn),Nn=computeGoal($.get());return isEqual(Nn,En)}function createLoopUpdate($,xn=$.loop,En=$.to){const Nn=callProp(xn);if(Nn){const Tn=Nn!==!0&&inferTo(Nn),$n=(Tn||$).reverse,kl=!Tn||Tn.reset;return createUpdate({...$,loop:xn,default:!1,pause:void 0,to:!$n||isAsyncTo(En)?En:void 0,from:kl?$.from:void 0,reset:kl,...Tn})}}function createUpdate($){const{to:xn,from:En}=$=inferTo($),Nn=new Set;return is.obj(xn)&&findDefined(xn,Nn),is.obj(En)&&findDefined(En,Nn),$.keys=Nn.size?Array.from(Nn):null,$}function declareUpdate($){const xn=createUpdate($);return is.und(xn.default)&&(xn.default=getDefaultProps(xn)),xn}function findDefined($,xn){eachProp($,(En,Nn)=>En!=null&&xn.add(Nn))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn($,xn,En){$.animation[En]=xn[En]!==getDefaultProp(xn,En)?resolveProp(xn[En],$.key):void 0}function sendEvent($,xn,...En){$.animation[xn]?.(...En),$.defaultProps[xn]?.(...En)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller$1=class{constructor(xn,En){this.id=nextId2++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),En&&(this._flush=En),xn&&this.start({default:!0,...xn})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(xn=>xn.idle&&!xn.isDelayed&&!xn.isPaused)}get item(){return this._item}set item(xn){this._item=xn}get(){const xn={};return this.each((En,Nn)=>xn[Nn]=En.get()),xn}set(xn){for(const En in xn){const Nn=xn[En];is.und(Nn)||this.springs[En].set(Nn)}}update(xn){return xn&&this.queue.push(createUpdate(xn)),this}start(xn){let{queue:En}=this;return xn?En=toArray(xn).map(createUpdate):this.queue=[],this._flush?this._flush(this,En):(prepareKeys(this,En),flushUpdateQueue(this,En))}stop(xn,En){if(xn!==!!xn&&(En=xn),En){const Nn=this.springs;each(toArray(En),Tn=>Nn[Tn].stop(!!xn))}else stopAsync(this._state,this._lastAsyncId),this.each(Nn=>Nn.stop(!!xn));return this}pause(xn){if(is.und(xn))this.start({pause:!0});else{const En=this.springs;each(toArray(xn),Nn=>En[Nn].pause())}return this}resume(xn){if(is.und(xn))this.start({pause:!1});else{const En=this.springs;each(toArray(xn),Nn=>En[Nn].resume())}return this}each(xn){eachProp(this.springs,xn)}_onFrame(){const{onStart:xn,onChange:En,onRest:Nn}=this._events,Tn=this._active.size>0,$n=this._changed.size>0;(Tn&&!this._started||$n&&!this._started)&&(this._started=!0,flush(xn,([Nl,Rl])=>{Rl.value=this.get(),Nl(Rl,this,this._item)}));const kl=!Tn&&this._started,xl=$n||kl&&Nn.size?this.get():null;$n&&En.size&&flush(En,([Nl,Rl])=>{Rl.value=xl,Nl(Rl,this,this._item)}),kl&&(this._started=!1,flush(Nn,([Nl,Rl])=>{Rl.value=xl,Nl(Rl,this,this._item)}))}eventObserved(xn){if(xn.type=="change")this._changed.add(xn.parent),xn.idle||this._active.add(xn.parent);else if(xn.type=="idle")this._active.delete(xn.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue($,xn){return Promise.all(xn.map(En=>flushUpdate($,En))).then(En=>getCombinedResult($,En))}async function flushUpdate($,xn,En){const{keys:Nn,to:Tn,from:$n,loop:kl,onRest:xl,onResolve:Nl}=xn,Rl=is.obj(xn.default)&&xn.default;kl&&(xn.loop=!1),Tn===!1&&(xn.to=null),$n===!1&&(xn.from=null);const Fl=is.arr(Tn)||is.fun(Tn)?Tn:void 0;Fl?(xn.to=void 0,xn.onRest=void 0,Rl&&(Rl.onRest=void 0)):each(BATCHED_EVENTS,Ml=>{const Dl=xn[Ml];if(is.fun(Dl)){const Ll=$._events[Ml];xn[Ml]=({finished:$l,cancelled:Vl})=>{const Bl=Ll.get(Dl);Bl?($l||(Bl.finished=!1),Vl&&(Bl.cancelled=!0)):Ll.set(Dl,{value:null,finished:$l||!1,cancelled:Vl||!1})},Rl&&(Rl[Ml]=xn[Ml])}});const Al=$._state;xn.pause===!Al.paused?(Al.paused=xn.pause,flushCalls(xn.pause?Al.pauseQueue:Al.resumeQueue)):Al.paused&&(xn.pause=!0);const Tl=(Nn||Object.keys($.springs)).map(Ml=>$.springs[Ml].start(xn)),Cl=xn.cancel===!0||getDefaultProp(xn,"cancel")===!0;(Fl||Cl&&Al.asyncId)&&Tl.push(scheduleProps(++$._lastAsyncId,{props:xn,state:Al,actions:{pause:noop$1,resume:noop$1,start(Ml,Dl){Cl?(stopAsync(Al,$._lastAsyncId),Dl(getCancelledResult($))):(Ml.onRest=xl,Dl(runAsync(Fl,Ml,Al,$)))}}})),Al.paused&&await new Promise(Ml=>{Al.resumeQueue.add(Ml)});const Il=getCombinedResult($,await Promise.all(Tl));if(kl&&Il.finished&&!(En&&Il.noop)){const Ml=createLoopUpdate(xn,kl,Tn);if(Ml)return prepareKeys($,[Ml]),flushUpdate($,Ml,!0)}return Nl&&raf.batchedUpdates(()=>Nl(Il,$,$.item)),Il}function getSprings($,xn){const En={...$.springs};return xn&&each(toArray(xn),Nn=>{is.und(Nn.keys)&&(Nn=createUpdate(Nn)),is.obj(Nn.to)||(Nn={...Nn,to:void 0}),prepareSprings(En,Nn,Tn=>createSpring(Tn))}),setSprings($,En),En}function setSprings($,xn){eachProp(xn,(En,Nn)=>{$.springs[Nn]||($.springs[Nn]=En,addFluidObserver(En,$))})}function createSpring($,xn){const En=new SpringValue;return En.key=$,xn&&addFluidObserver(En,xn),En}function prepareSprings($,xn,En){xn.keys&&each(xn.keys,Nn=>{($[Nn]||($[Nn]=En(Nn)))._prepareNode(xn)})}function prepareKeys($,xn){each(xn,En=>{prepareSprings($.springs,En,Nn=>createSpring(Nn,$))})}var SpringContext=({children:$,...xn})=>{const En=reactExports.useContext(ctx),Nn=xn.pause||!!En.pause,Tn=xn.immediate||!!En.immediate;xn=useMemoOne(()=>({pause:Nn,immediate:Tn}),[Nn,Tn]);const{Provider:$n}=ctx;return reactExports.createElement($n,{value:xn},$)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext($,xn){return Object.assign($,reactExports.createContext(xn)),$.Provider._context=$,$.Consumer._context=$,$}var SpringRef=()=>{const $=[],xn=function(Nn){deprecateDirectCall();const Tn=[];return each($,($n,kl)=>{if(is.und(Nn))Tn.push($n.start());else{const xl=En(Nn,$n,kl);xl&&Tn.push($n.start(xl))}}),Tn};xn.current=$,xn.add=function(Nn){$.includes(Nn)||$.push(Nn)},xn.delete=function(Nn){const Tn=$.indexOf(Nn);~Tn&&$.splice(Tn,1)},xn.pause=function(){return each($,Nn=>Nn.pause(...arguments)),this},xn.resume=function(){return each($,Nn=>Nn.resume(...arguments)),this},xn.set=function(Nn){each($,(Tn,$n)=>{const kl=is.fun(Nn)?Nn($n,Tn):Nn;kl&&Tn.set(kl)})},xn.start=function(Nn){const Tn=[];return each($,($n,kl)=>{if(is.und(Nn))Tn.push($n.start());else{const xl=this._getProps(Nn,$n,kl);xl&&Tn.push($n.start(xl))}}),Tn},xn.stop=function(){return each($,Nn=>Nn.stop(...arguments)),this},xn.update=function(Nn){return each($,(Tn,$n)=>Tn.update(this._getProps(Nn,Tn,$n))),this};const En=function(Nn,Tn,$n){return is.fun(Nn)?Nn($n,Tn):Nn};return xn._getProps=En,xn};function useSprings($,xn,En){const Nn=is.fun(xn)&&xn;Nn&&!En&&(En=[]);const Tn=reactExports.useMemo(()=>Nn||arguments.length==3?SpringRef():void 0,[]),$n=reactExports.useRef(0),kl=useForceUpdate(),xl=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(Ll,$l){const Vl=getSprings(Ll,$l);return $n.current>0&&!xl.queue.length&&!Object.keys(Vl).some(zl=>!Ll.springs[zl])?flushUpdateQueue(Ll,$l):new Promise(zl=>{setSprings(Ll,Vl),xl.queue.push(()=>{zl(flushUpdateQueue(Ll,$l))}),kl()})}}),[]),Nl=reactExports.useRef([...xl.ctrls]),Rl=[],Fl=usePrev($)||0;reactExports.useMemo(()=>{each(Nl.current.slice($,Fl),Ll=>{detachRefs(Ll,Tn),Ll.stop(!0)}),Nl.current.length=$,Al(Fl,$)},[$]),reactExports.useMemo(()=>{Al(0,Math.min(Fl,$))},En);function Al(Ll,$l){for(let Vl=Ll;Vl<$l;Vl++){const Bl=Nl.current[Vl]||(Nl.current[Vl]=new Controller$1(null,xl.flush)),zl=Nn?Nn(Vl,Bl):xn[Vl];zl&&(Rl[Vl]=declareUpdate(zl))}}const Tl=Nl.current.map((Ll,$l)=>getSprings(Ll,Rl[$l])),Cl=reactExports.useContext(SpringContext),Il=usePrev(Cl),Ml=Cl!==Il&&hasProps(Cl);useIsomorphicLayoutEffect(()=>{$n.current++,xl.ctrls=Nl.current;const{queue:Ll}=xl;Ll.length&&(xl.queue=[],each(Ll,$l=>$l())),each(Nl.current,($l,Vl)=>{Tn?.add($l),Ml&&$l.start({default:Cl});const Bl=Rl[Vl];Bl&&(replaceRef($l,Bl.ref),$l.ref?$l.queue.push(Bl):$l.start(Bl))})}),useOnce(()=>()=>{each(xl.ctrls,Ll=>Ll.stop(!0))});const Dl=Tl.map(Ll=>({...Ll}));return Tn?[Dl,Tn]:Dl}function useSpring($,xn){const En=is.fun($),[[Nn],Tn]=useSprings(1,En?$:[$],En?[]:xn);return En||arguments.length==2?[Nn,Tn]:Nn}function useTrail($,xn,En){const Nn=is.fun(xn)&&xn;Nn&&!En&&(En=[]);let Tn=!0,$n;const kl=useSprings($,(xl,Nl)=>{const Rl=Nn?Nn(xl,Nl):xn;return $n=Rl.ref,Tn=Tn&&Rl.reverse,Rl},En||[{}]);if(useIsomorphicLayoutEffect(()=>{each(kl[1].current,(xl,Nl)=>{const Rl=kl[1].current[Nl+(Tn?1:-1)];if(replaceRef(xl,$n),xl.ref){Rl&&xl.update({to:Rl.springs});return}Rl?xl.start({to:Rl.springs}):xl.start()})},En),Nn||arguments.length==3){const xl=$n??kl[1];return xl._getProps=(Nl,Rl,Fl)=>{const Al=is.fun(Nl)?Nl(Fl,Rl):Nl;if(Al){const Tl=xl.current[Fl+(Al.reverse?1:-1)];return Tl&&(Al.to=Tl.springs),Al}},kl}return kl[0]}var Interpolation=class extends FrameValue{constructor($,xn){super(),this.source=$,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...xn);const En=this._get(),Nn=getAnimatedType(En);setAnimated(this,Nn.create(En))}advance($){const xn=this._get(),En=this.get();isEqual(xn,En)||(getAnimated(this).setValue(xn),this._onChange(xn,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const $=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...$)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),$=>{$.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let $=1;each(toArray(this.source),xn=>{hasFluidValue(xn)&&addFluidObserver(xn,this),isFrameValue(xn)&&(xn.idle||this._active.add(xn),$=Math.max($,xn.priority+1))}),this.priority=$,this._start()}_detach(){each(toArray(this.source),$=>{hasFluidValue($)&&removeFluidObserver($,this)}),this._active.clear(),becomeIdle(this)}eventObserved($){$.type=="change"?$.idle?this.advance():(this._active.add($.parent),this._start()):$.type=="idle"?this._active.delete($.parent):$.type=="priority"&&(this.priority=toArray(this.source).reduce((xn,En)=>Math.max(xn,(isFrameValue(En)?En.priority:0)+1),0))}};function isIdle($){return $.idle!==!1}function checkIdle($){return!$.size||Array.from($).every(isIdle)}function becomeIdle($){$.idle||($.idle=!0,each(getPayload($),xn=>{xn.done=!0}),callFluidObservers($,{type:"idle",parent:$}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:($,xn)=>new Interpolation($,xn)});var isCustomPropRE=/^--/;function dangerousStyleValue($,xn){return xn==null||typeof xn=="boolean"||xn===""?"":typeof xn=="number"&&xn!==0&&!isCustomPropRE.test($)&&!(isUnitlessNumber.hasOwnProperty($)&&isUnitlessNumber[$])?xn+"px":(""+xn).trim()}var attributeCache={};function applyAnimatedValues($,xn){if(!$.nodeType||!$.setAttribute)return!1;const En=$.nodeName==="filter"||$.parentNode&&$.parentNode.nodeName==="filter",{className:Nn,style:Tn,children:$n,scrollTop:kl,scrollLeft:xl,viewBox:Nl,...Rl}=xn,Fl=Object.values(Rl),Al=Object.keys(Rl).map(Tl=>En||$.hasAttribute(Tl)?Tl:attributeCache[Tl]||(attributeCache[Tl]=Tl.replace(/([A-Z])/g,Cl=>"-"+Cl.toLowerCase())));$n!==void 0&&($.textContent=$n);for(const Tl in Tn)if(Tn.hasOwnProperty(Tl)){const Cl=dangerousStyleValue(Tl,Tn[Tl]);isCustomPropRE.test(Tl)?$.style.setProperty(Tl,Cl):$.style[Tl]=Cl}Al.forEach((Tl,Cl)=>{$.setAttribute(Tl,Fl[Cl])}),Nn!==void 0&&($.className=Nn),kl!==void 0&&($.scrollTop=kl),xl!==void 0&&($.scrollLeft=xl),Nl!==void 0&&$.setAttribute("viewBox",Nl)}var isUnitlessNumber={animationIterationCount:!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,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},prefixKey=($,xn)=>$+xn.charAt(0).toUpperCase()+xn.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(($,xn)=>(prefixes.forEach(En=>$[prefixKey(En,xn)]=$[xn]),$),isUnitlessNumber);var domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=($,xn)=>is.num($)&&$!==0?$+xn:$,isValueIdentity=($,xn)=>is.arr($)?$.every(En=>isValueIdentity(En,xn)):is.num($)?$===xn:parseFloat($)===xn,AnimatedStyle=class extends AnimatedObject{constructor({x:$,y:xn,z:En,...Nn}){const Tn=[],$n=[];($||xn||En)&&(Tn.push([$||0,xn||0,En||0]),$n.push(kl=>[`translate3d(${kl.map(xl=>addUnit(xl,"px")).join(",")})`,isValueIdentity(kl,0)])),eachProp(Nn,(kl,xl)=>{if(xl==="transform")Tn.push([kl||""]),$n.push(Nl=>[Nl,Nl===""]);else if(domTransforms.test(xl)){if(delete Nn[xl],is.und(kl))return;const Nl=pxTransforms.test(xl)?"px":degTransforms.test(xl)?"deg":"";Tn.push(toArray(kl)),$n.push(xl==="rotate3d"?([Rl,Fl,Al,Tl])=>[`rotate3d(${Rl},${Fl},${Al},${addUnit(Tl,Nl)})`,isValueIdentity(Tl,0)]:Rl=>[`${xl}(${Rl.map(Fl=>addUnit(Fl,Nl)).join(",")})`,isValueIdentity(Rl,xl.startsWith("scale")?1:0)])}}),Tn.length&&(Nn.transform=new FluidTransform(Tn,$n)),super(Nn)}},FluidTransform=class extends FluidValue{constructor($,xn){super(),this.inputs=$,this.transforms=xn,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let $="",xn=!0;return each(this.inputs,(En,Nn)=>{const Tn=getFluidValue(En[0]),[$n,kl]=this.transforms[Nn](is.arr(Tn)?Tn:En.map(getFluidValue));$+=" "+$n,xn=xn&&kl}),xn?"none":$}observerAdded($){$==1&&each(this.inputs,xn=>each(xn,En=>hasFluidValue(En)&&addFluidObserver(En,this)))}observerRemoved($){$==0&&each(this.inputs,xn=>each(xn,En=>hasFluidValue(En)&&removeFluidObserver(En,this)))}eventObserved($){$.type=="change"&&(this._value=null),callFluidObservers(this,$)}},primitives=["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","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var host=createHost(primitives,{applyAnimatedValues,createAnimatedStyle:$=>new AnimatedStyle($),getComponentProps:({scrollTop:$,scrollLeft:xn,...En})=>En}),animated=host.animated;function clamp($,xn,En){return Math.max(xn,Math.min($,En))}const V={toVector($,xn){return $===void 0&&($=xn),Array.isArray($)?$:[$,$]},add($,xn){return[$[0]+xn[0],$[1]+xn[1]]},sub($,xn){return[$[0]-xn[0],$[1]-xn[1]]},addTo($,xn){$[0]+=xn[0],$[1]+=xn[1]},subTo($,xn){$[0]-=xn[0],$[1]-=xn[1]}};function rubberband($,xn,En){return xn===0||Math.abs(xn)===1/0?Math.pow($,En*5):$*xn*En/(xn+En*$)}function rubberbandIfOutOfBounds($,xn,En,Nn=.15){return Nn===0?clamp($,xn,En):$En?+rubberband($-En,En-xn,Nn)+En:$}function computeRubberband($,[xn,En],[Nn,Tn]){const[[$n,kl],[xl,Nl]]=$;return[rubberbandIfOutOfBounds(xn,$n,kl,Nn),rubberbandIfOutOfBounds(En,xl,Nl,Tn)]}function _toPrimitive($,xn){if(typeof $!="object"||$===null)return $;var En=$[Symbol.toPrimitive];if(En!==void 0){var Nn=En.call($,xn);if(typeof Nn!="object")return Nn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xn==="string"?String:Number)($)}function _toPropertyKey($){var xn=_toPrimitive($,"string");return typeof xn=="symbol"?xn:String(xn)}function _defineProperty($,xn,En){return xn=_toPropertyKey(xn),xn in $?Object.defineProperty($,xn,{value:En,enumerable:!0,configurable:!0,writable:!0}):$[xn]=En,$}function ownKeys($,xn){var En=Object.keys($);if(Object.getOwnPropertySymbols){var Nn=Object.getOwnPropertySymbols($);xn&&(Nn=Nn.filter(function(Tn){return Object.getOwnPropertyDescriptor($,Tn).enumerable})),En.push.apply(En,Nn)}return En}function _objectSpread2($){for(var xn=1;xn{var En,Nn;return xn.target===$.currentTarget||((En=$.currentTarget)===null||En===void 0||(Nn=En.contains)===null||Nn===void 0?void 0:Nn.call(En,xn.target))})}function getTouchList($){return $.type==="touchend"||$.type==="touchcancel"?$.changedTouches:$.targetTouches}function getValueEvent($){return isTouch($)?getTouchList($)[0]:$}function touchIds($){return getCurrentTargetTouchList($).map(xn=>xn.identifier)}function pointerId($){const xn=getValueEvent($);return isTouch($)?xn.identifier:xn.pointerId}function pointerValues($){const xn=getValueEvent($);return[xn.clientX,xn.clientY]}function scrollValues($){var xn,En;const{scrollX:Nn,scrollY:Tn,scrollLeft:$n,scrollTop:kl}=$.currentTarget;return[(xn=Nn??$n)!==null&&xn!==void 0?xn:0,(En=Tn??kl)!==null&&En!==void 0?En:0]}function getEventDetails($){const xn={};if("buttons"in $&&(xn.buttons=$.buttons),"shiftKey"in $){const{shiftKey:En,altKey:Nn,metaKey:Tn,ctrlKey:$n}=$;Object.assign(xn,{shiftKey:En,altKey:Nn,metaKey:Tn,ctrlKey:$n})}return xn}function call($,...xn){return typeof $=="function"?$(...xn):$}function noop(){}function chain(...$){return $.length===0?noop:$.length===1?$[0]:function(){let xn;for(const En of $)xn=En.apply(this,arguments)||xn;return xn}}function assignDefault($,xn){return Object.assign({},xn,$||{})}const BEFORE_LAST_KINEMATICS_DELAY=32;class Engine{constructor(xn,En,Nn){this.ctrl=xn,this.args=En,this.key=Nn,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(xn){this.ctrl.state[this.key]=xn}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:xn,shared:En,ingKey:Nn,args:Tn}=this;En[Nn]=xn._active=xn.active=xn._blocked=xn._force=!1,xn._step=[!1,!1],xn.intentional=!1,xn._movement=[0,0],xn._distance=[0,0],xn._direction=[0,0],xn._delta=[0,0],xn._bounds=[[-1/0,1/0],[-1/0,1/0]],xn.args=Tn,xn.axis=void 0,xn.memo=void 0,xn.elapsedTime=xn.timeDelta=0,xn.direction=[0,0],xn.distance=[0,0],xn.overflow=[0,0],xn._movementBound=[!1,!1],xn.velocity=[0,0],xn.movement=[0,0],xn.delta=[0,0],xn.timeStamp=0}start(xn){const En=this.state,Nn=this.config;En._active||(this.reset(),this.computeInitial(),En._active=!0,En.target=xn.target,En.currentTarget=xn.currentTarget,En.lastOffset=Nn.from?call(Nn.from,En):En.offset,En.offset=En.lastOffset,En.startTime=En.timeStamp=xn.timeStamp)}computeValues(xn){const En=this.state;En._values=xn,En.values=this.config.transform(xn)}computeInitial(){const xn=this.state;xn._initial=xn._values,xn.initial=xn.values}compute(xn){const{state:En,config:Nn,shared:Tn}=this;En.args=this.args;let $n=0;if(xn&&(En.event=xn,Nn.preventDefault&&xn.cancelable&&En.event.preventDefault(),En.type=xn.type,Tn.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,Tn.locked=!!document.pointerLockElement,Object.assign(Tn,getEventDetails(xn)),Tn.down=Tn.pressed=Tn.buttons%2===1||Tn.touches>0,$n=xn.timeStamp-En.timeStamp,En.timeStamp=xn.timeStamp,En.elapsedTime=En.timeStamp-En.startTime),En._active){const Ul=En._delta.map(Math.abs);V.addTo(En._distance,Ul)}this.axisIntent&&this.axisIntent(xn);const[kl,xl]=En._movement,[Nl,Rl]=Nn.threshold,{_step:Fl,values:Al}=En;if(Nn.hasCustomTransform?(Fl[0]===!1&&(Fl[0]=Math.abs(kl)>=Nl&&Al[0]),Fl[1]===!1&&(Fl[1]=Math.abs(xl)>=Rl&&Al[1])):(Fl[0]===!1&&(Fl[0]=Math.abs(kl)>=Nl&&Math.sign(kl)*Nl),Fl[1]===!1&&(Fl[1]=Math.abs(xl)>=Rl&&Math.sign(xl)*Rl)),En.intentional=Fl[0]!==!1||Fl[1]!==!1,!En.intentional)return;const Tl=[0,0];if(Nn.hasCustomTransform){const[Ul,Gl]=Al;Tl[0]=Fl[0]!==!1?Ul-Fl[0]:0,Tl[1]=Fl[1]!==!1?Gl-Fl[1]:0}else Tl[0]=Fl[0]!==!1?kl-Fl[0]:0,Tl[1]=Fl[1]!==!1?xl-Fl[1]:0;this.restrictToAxis&&!En._blocked&&this.restrictToAxis(Tl);const Cl=En.offset,Il=En._active&&!En._blocked||En.active;Il&&(En.first=En._active&&!En.active,En.last=!En._active&&En.active,En.active=Tn[this.ingKey]=En._active,xn&&(En.first&&("bounds"in Nn&&(En._bounds=call(Nn.bounds,En)),this.setup&&this.setup()),En.movement=Tl,this.computeOffset()));const[Ml,Dl]=En.offset,[[Ll,$l],[Vl,Bl]]=En._bounds;En.overflow=[Ml$l?1:0,DlBl?1:0],En._movementBound[0]=En.overflow[0]?En._movementBound[0]===!1?En._movement[0]:En._movementBound[0]:!1,En._movementBound[1]=En.overflow[1]?En._movementBound[1]===!1?En._movement[1]:En._movementBound[1]:!1;const zl=En._active?Nn.rubberband||[0,0]:[0,0];if(En.offset=computeRubberband(En._bounds,En.offset,zl),En.delta=V.sub(En.offset,Cl),this.computeMovement(),Il&&(!En.last||$n>BEFORE_LAST_KINEMATICS_DELAY)){En.delta=V.sub(En.offset,Cl);const Ul=En.delta.map(Math.abs);V.addTo(En.distance,Ul),En.direction=En.delta.map(Math.sign),En._direction=En._delta.map(Math.sign),!En.first&&$n>0&&(En.velocity=[Ul[0]/$n,Ul[1]/$n],En.timeDelta=$n)}}emit(){const xn=this.state,En=this.shared,Nn=this.config;if(xn._active||this.clean(),(xn._blocked||!xn.intentional)&&!xn._force&&!Nn.triggerAllEvents)return;const Tn=this.handler(_objectSpread2(_objectSpread2(_objectSpread2({},En),xn),{},{[this.aliasKey]:xn.values}));Tn!==void 0&&(xn.memo=Tn)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function selectAxis([$,xn],En){const Nn=Math.abs($),Tn=Math.abs(xn);if(Nn>Tn&&Nn>En)return"x";if(Tn>Nn&&Tn>En)return"y"}class CoordinatesEngine extends Engine{constructor(...xn){super(...xn),_defineProperty(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=V.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=V.sub(this.state.offset,this.state.lastOffset)}axisIntent(xn){const En=this.state,Nn=this.config;if(!En.axis&&xn){const Tn=typeof Nn.axisThreshold=="object"?Nn.axisThreshold[getPointerType(xn)]:Nn.axisThreshold;En.axis=selectAxis(En._movement,Tn)}En._blocked=(Nn.lockDirection||!!Nn.axis)&&!En.axis||!!Nn.axis&&Nn.axis!==En.axis}restrictToAxis(xn){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":xn[1]=0;break;case"y":xn[0]=0;break}}}const identity=$=>$,DEFAULT_RUBBERBAND=.15,commonConfigResolver={enabled($=!0){return $},eventOptions($,xn,En){return _objectSpread2(_objectSpread2({},En.shared.eventOptions),$)},preventDefault($=!1){return $},triggerAllEvents($=!1){return $},rubberband($=0){switch($){case!0:return[DEFAULT_RUBBERBAND,DEFAULT_RUBBERBAND];case!1:return[0,0];default:return V.toVector($)}},from($){if(typeof $=="function")return $;if($!=null)return V.toVector($)},transform($,xn,En){const Nn=$||En.shared.transform;return this.hasCustomTransform=!!Nn,Nn||identity},threshold($){return V.toVector($,0)}},DEFAULT_AXIS_THRESHOLD=0,coordinatesConfigResolver=_objectSpread2(_objectSpread2({},commonConfigResolver),{},{axis($,xn,{axis:En}){if(this.lockDirection=En==="lock",!this.lockDirection)return En},axisThreshold($=DEFAULT_AXIS_THRESHOLD){return $},bounds($={}){if(typeof $=="function")return $n=>coordinatesConfigResolver.bounds($($n));if("current"in $)return()=>$.current;if(typeof HTMLElement=="function"&&$ instanceof HTMLElement)return $;const{left:xn=-1/0,right:En=1/0,top:Nn=-1/0,bottom:Tn=1/0}=$;return[[xn,En],[Nn,Tn]]}}),KEYS_DELTA_MAP={ArrowRight:($,xn=1)=>[$*xn,0],ArrowLeft:($,xn=1)=>[-1*$*xn,0],ArrowUp:($,xn=1)=>[0,-1*$*xn],ArrowDown:($,xn=1)=>[0,$*xn]};class DragEngine extends CoordinatesEngine{constructor(...xn){super(...xn),_defineProperty(this,"ingKey","dragging")}reset(){super.reset();const xn=this.state;xn._pointerId=void 0,xn._pointerActive=!1,xn._keyboardActive=!1,xn._preventScroll=!1,xn._delayed=!1,xn.swipe=[0,0],xn.tap=!1,xn.canceled=!1,xn.cancel=this.cancel.bind(this)}setup(){const xn=this.state;if(xn._bounds instanceof HTMLElement){const En=xn._bounds.getBoundingClientRect(),Nn=xn.currentTarget.getBoundingClientRect(),Tn={left:En.left-Nn.left+xn.offset[0],right:En.right-Nn.right+xn.offset[0],top:En.top-Nn.top+xn.offset[1],bottom:En.bottom-Nn.bottom+xn.offset[1]};xn._bounds=coordinatesConfigResolver.bounds(Tn)}}cancel(){const xn=this.state;xn.canceled||(xn.canceled=!0,xn._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(xn){const En=this.config,Nn=this.state;if(xn.buttons!=null&&(Array.isArray(En.pointerButtons)?!En.pointerButtons.includes(xn.buttons):En.pointerButtons!==-1&&En.pointerButtons!==xn.buttons))return;const Tn=this.ctrl.setEventIds(xn);En.pointerCapture&&xn.target.setPointerCapture(xn.pointerId),!(Tn&&Tn.size>1&&Nn._pointerActive)&&(this.start(xn),this.setupPointer(xn),Nn._pointerId=pointerId(xn),Nn._pointerActive=!0,this.computeValues(pointerValues(xn)),this.computeInitial(),En.preventScrollAxis&&getPointerType(xn)!=="mouse"?(Nn._active=!1,this.setupScrollPrevention(xn)):En.delay>0?(this.setupDelayTrigger(xn),En.triggerAllEvents&&(this.compute(xn),this.emit())):this.startPointerDrag(xn))}startPointerDrag(xn){const En=this.state;En._active=!0,En._preventScroll=!0,En._delayed=!1,this.compute(xn),this.emit()}pointerMove(xn){const En=this.state,Nn=this.config;if(!En._pointerActive)return;const Tn=pointerId(xn);if(En._pointerId!==void 0&&Tn!==En._pointerId)return;const $n=pointerValues(xn);if(document.pointerLockElement===xn.target?En._delta=[xn.movementX,xn.movementY]:(En._delta=V.sub($n,En._values),this.computeValues($n)),V.addTo(En._movement,En._delta),this.compute(xn),En._delayed&&En.intentional){this.timeoutStore.remove("dragDelay"),En.active=!1,this.startPointerDrag(xn);return}if(Nn.preventScrollAxis&&!En._preventScroll)if(En.axis)if(En.axis===Nn.preventScrollAxis||Nn.preventScrollAxis==="xy"){En._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(xn);return}else return;this.emit()}pointerUp(xn){this.ctrl.setEventIds(xn);try{this.config.pointerCapture&&xn.target.hasPointerCapture(xn.pointerId)&&xn.target.releasePointerCapture(xn.pointerId)}catch{}const En=this.state,Nn=this.config;if(!En._active||!En._pointerActive)return;const Tn=pointerId(xn);if(En._pointerId!==void 0&&Tn!==En._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(xn);const[$n,kl]=En._distance;if(En.tap=$n<=Nn.tapsThreshold&&kl<=Nn.tapsThreshold,En.tap&&Nn.filterTaps)En._force=!0;else{const[xl,Nl]=En._delta,[Rl,Fl]=En._movement,[Al,Tl]=Nn.swipe.velocity,[Cl,Il]=Nn.swipe.distance,Ml=Nn.swipe.duration;if(En.elapsedTimeAl&&Math.abs(Rl)>Cl&&(En.swipe[0]=Math.sign(xl)),Ll>Tl&&Math.abs(Fl)>Il&&(En.swipe[1]=Math.sign(Nl))}}this.emit()}pointerClick(xn){!this.state.tap&&xn.detail>0&&(xn.preventDefault(),xn.stopPropagation())}setupPointer(xn){const En=this.config,Nn=En.device;En.pointerLock&&xn.currentTarget.requestPointerLock(),En.pointerCapture||(this.eventStore.add(this.sharedConfig.window,Nn,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,Nn,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,Nn,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(xn){this.state._preventScroll&&xn.cancelable&&xn.preventDefault()}setupScrollPrevention(xn){this.state._preventScroll=!1,persistEvent(xn);const En=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",En),this.eventStore.add(this.sharedConfig.window,"touch","cancel",En),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,xn)}setupDelayTrigger(xn){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(xn)},this.config.delay)}keyDown(xn){const En=KEYS_DELTA_MAP[xn.key];if(En){const Nn=this.state,Tn=xn.shiftKey?10:xn.altKey?.1:1;this.start(xn),Nn._delta=En(this.config.keyboardDisplacement,Tn),Nn._keyboardActive=!0,V.addTo(Nn._movement,Nn._delta),this.compute(xn),this.emit()}}keyUp(xn){xn.key in KEYS_DELTA_MAP&&(this.state._keyboardActive=!1,this.setActive(),this.compute(xn),this.emit())}bind(xn){const En=this.config.device;xn(En,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(xn(En,"change",this.pointerMove.bind(this)),xn(En,"end",this.pointerUp.bind(this)),xn(En,"cancel",this.pointerUp.bind(this)),xn("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(xn("key","down",this.keyDown.bind(this)),xn("key","up",this.keyUp.bind(this))),this.config.filterTaps&&xn("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function persistEvent($){"persist"in $&&typeof $.persist=="function"&&$.persist()}const isBrowser=typeof window<"u"&&window.document&&window.document.createElement;function supportsTouchEvents(){return isBrowser&&"ontouchstart"in window}function isTouchScreen(){return supportsTouchEvents()||isBrowser&&window.navigator.maxTouchPoints>1}function supportsPointerEvents(){return isBrowser&&"onpointerdown"in window}function supportsPointerLock(){return isBrowser&&"exitPointerLock"in window.document}function supportsGestureEvents(){try{return"constructor"in GestureEvent}catch{return!1}}const SUPPORT={isBrowser,gesture:supportsGestureEvents(),touch:supportsTouchEvents(),touchscreen:isTouchScreen(),pointer:supportsPointerEvents(),pointerLock:supportsPointerLock()},DEFAULT_PREVENT_SCROLL_DELAY=250,DEFAULT_DRAG_DELAY=180,DEFAULT_SWIPE_VELOCITY=.5,DEFAULT_SWIPE_DISTANCE=50,DEFAULT_SWIPE_DURATION=250,DEFAULT_KEYBOARD_DISPLACEMENT=10,DEFAULT_DRAG_AXIS_THRESHOLD={mouse:0,touch:0,pen:8},dragConfigResolver=_objectSpread2(_objectSpread2({},coordinatesConfigResolver),{},{device($,xn,{pointer:{touch:En=!1,lock:Nn=!1,mouse:Tn=!1}={}}){return this.pointerLock=Nn&&SUPPORT.pointerLock,SUPPORT.touch&&En?"touch":this.pointerLock?"mouse":SUPPORT.pointer&&!Tn?"pointer":SUPPORT.touch?"touch":"mouse"},preventScrollAxis($,xn,{preventScroll:En}){if(this.preventScrollDelay=typeof En=="number"?En:En||En===void 0&&$?DEFAULT_PREVENT_SCROLL_DELAY:void 0,!(!SUPPORT.touchscreen||En===!1))return $||(En!==void 0?"y":void 0)},pointerCapture($,xn,{pointer:{capture:En=!0,buttons:Nn=1,keys:Tn=!0}={}}){return this.pointerButtons=Nn,this.keys=Tn,!this.pointerLock&&this.device==="pointer"&&En},threshold($,xn,{filterTaps:En=!1,tapsThreshold:Nn=3,axis:Tn=void 0}){const $n=V.toVector($,En?Nn:Tn?1:0);return this.filterTaps=En,this.tapsThreshold=Nn,$n},swipe({velocity:$=DEFAULT_SWIPE_VELOCITY,distance:xn=DEFAULT_SWIPE_DISTANCE,duration:En=DEFAULT_SWIPE_DURATION}={}){return{velocity:this.transform(V.toVector($)),distance:this.transform(V.toVector(xn)),duration:En}},delay($=0){switch($){case!0:return DEFAULT_DRAG_DELAY;case!1:return 0;default:return $}},axisThreshold($){return $?_objectSpread2(_objectSpread2({},DEFAULT_DRAG_AXIS_THRESHOLD),$):DEFAULT_DRAG_AXIS_THRESHOLD},keyboardDisplacement($=DEFAULT_KEYBOARD_DISPLACEMENT){return $}});_objectSpread2(_objectSpread2({},commonConfigResolver),{},{device($,xn,{shared:En,pointer:{touch:Nn=!1}={}}){if(En.target&&!SUPPORT.touch&&SUPPORT.gesture)return"gesture";if(SUPPORT.touch&&Nn)return"touch";if(SUPPORT.touchscreen){if(SUPPORT.pointer)return"pointer";if(SUPPORT.touch)return"touch"}},bounds($,xn,{scaleBounds:En={},angleBounds:Nn={}}){const Tn=kl=>{const xl=assignDefault(call(En,kl),{min:-1/0,max:1/0});return[xl.min,xl.max]},$n=kl=>{const xl=assignDefault(call(Nn,kl),{min:-1/0,max:1/0});return[xl.min,xl.max]};return typeof En!="function"&&typeof Nn!="function"?[Tn(),$n()]:kl=>[Tn(kl),$n(kl)]},threshold($,xn,En){return this.lockDirection=En.axis==="lock",V.toVector($,this.lockDirection?[.1,3]:0)},modifierKey($){return $===void 0?"ctrlKey":$},pinchOnWheel($=!0){return $}});_objectSpread2(_objectSpread2({},coordinatesConfigResolver),{},{mouseOnly:($=!0)=>$});class ScrollEngine extends CoordinatesEngine{constructor(...xn){super(...xn),_defineProperty(this,"ingKey","scrolling")}scroll(xn){this.state._active||this.start(xn),this.scrollChange(xn),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(xn){xn.cancelable&&xn.preventDefault();const En=this.state,Nn=scrollValues(xn);En._delta=V.sub(Nn,En._values),V.addTo(En._movement,En._delta),this.computeValues(Nn),this.compute(xn),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(xn){xn("scroll","",this.scroll.bind(this))}}const scrollConfigResolver=coordinatesConfigResolver;_objectSpread2(_objectSpread2({},coordinatesConfigResolver),{},{mouseOnly:($=!0)=>$});const EngineMap=new Map,ConfigResolverMap=new Map;function registerAction($){EngineMap.set($.key,$.engine),ConfigResolverMap.set($.key,$.resolver)}const dragAction={key:"drag",engine:DragEngine,resolver:dragConfigResolver},scrollAction={key:"scroll",engine:ScrollEngine,resolver:scrollConfigResolver};function _objectWithoutPropertiesLoose($,xn){if($==null)return{};var En={},Nn=Object.keys($),Tn,$n;for($n=0;$n=0)&&(En[Tn]=$[Tn]);return En}function _objectWithoutProperties($,xn){if($==null)return{};var En=_objectWithoutPropertiesLoose($,xn),Nn,Tn;if(Object.getOwnPropertySymbols){var $n=Object.getOwnPropertySymbols($);for(Tn=0;Tn<$n.length;Tn++)Nn=$n[Tn],!(xn.indexOf(Nn)>=0)&&Object.prototype.propertyIsEnumerable.call($,Nn)&&(En[Nn]=$[Nn])}return En}const sharedConfigResolver={target($){if($)return()=>"current"in $?$.current:$},enabled($=!0){return $},window($=SUPPORT.isBrowser?window:void 0){return $},eventOptions({passive:$=!0,capture:xn=!1}={}){return{passive:$,capture:xn}},transform($){return $}},_excluded=["target","eventOptions","window","enabled","transform"];function resolveWith($={},xn){const En={};for(const[Nn,Tn]of Object.entries(xn))switch(typeof Tn){case"function":En[Nn]=Tn.call(En,$[Nn],Nn,$);break;case"object":En[Nn]=resolveWith($[Nn],Tn);break;case"boolean":Tn&&(En[Nn]=$[Nn]);break}return En}function parse($,xn,En={}){const Nn=$,{target:Tn,eventOptions:$n,window:kl,enabled:xl,transform:Nl}=Nn,Rl=_objectWithoutProperties(Nn,_excluded);if(En.shared=resolveWith({target:Tn,eventOptions:$n,window:kl,enabled:xl,transform:Nl},sharedConfigResolver),xn){const Fl=ConfigResolverMap.get(xn);En[xn]=resolveWith(_objectSpread2({shared:En.shared},Rl),Fl)}else for(const Fl in Rl){const Al=ConfigResolverMap.get(Fl);Al&&(En[Fl]=resolveWith(_objectSpread2({shared:En.shared},Rl[Fl]),Al))}return En}class EventStore{constructor(xn,En){_defineProperty(this,"_listeners",new Set),this._ctrl=xn,this._gestureKey=En}add(xn,En,Nn,Tn,$n){const kl=this._listeners,xl=toDomEventType(En,Nn),Nl=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},Rl=_objectSpread2(_objectSpread2({},Nl),$n);xn.addEventListener(xl,Tn,Rl);const Fl=()=>{xn.removeEventListener(xl,Tn,Rl),kl.delete(Fl)};return kl.add(Fl),Fl}clean(){this._listeners.forEach(xn=>xn()),this._listeners.clear()}}class TimeoutStore{constructor(){_defineProperty(this,"_timeouts",new Map)}add(xn,En,Nn=140,...Tn){this.remove(xn),this._timeouts.set(xn,window.setTimeout(En,Nn,...Tn))}remove(xn){const En=this._timeouts.get(xn);En&&window.clearTimeout(En)}clean(){this._timeouts.forEach(xn=>{window.clearTimeout(xn)}),this._timeouts.clear()}}class Controller{constructor(xn){_defineProperty(this,"gestures",new Set),_defineProperty(this,"_targetEventStore",new EventStore(this)),_defineProperty(this,"gestureEventStores",{}),_defineProperty(this,"gestureTimeoutStores",{}),_defineProperty(this,"handlers",{}),_defineProperty(this,"config",{}),_defineProperty(this,"pointerIds",new Set),_defineProperty(this,"touchIds",new Set),_defineProperty(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),resolveGestures(this,xn)}setEventIds(xn){if(isTouch(xn))return this.touchIds=new Set(touchIds(xn)),this.touchIds;if("pointerId"in xn)return xn.type==="pointerup"||xn.type==="pointercancel"?this.pointerIds.delete(xn.pointerId):xn.type==="pointerdown"&&this.pointerIds.add(xn.pointerId),this.pointerIds}applyHandlers(xn,En){this.handlers=xn,this.nativeHandlers=En}applyConfig(xn,En){this.config=parse(xn,En,this.config)}clean(){this._targetEventStore.clean();for(const xn of this.gestures)this.gestureEventStores[xn].clean(),this.gestureTimeoutStores[xn].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...xn){const En=this.config.shared,Nn={};let Tn;if(!(En.target&&(Tn=En.target(),!Tn))){if(En.enabled){for(const kl of this.gestures){const xl=this.config[kl],Nl=bindToProps(Nn,xl.eventOptions,!!Tn);if(xl.enabled){const Rl=EngineMap.get(kl);new Rl(this,xn,kl).bind(Nl)}}const $n=bindToProps(Nn,En.eventOptions,!!Tn);for(const kl in this.nativeHandlers)$n(kl,"",xl=>this.nativeHandlers[kl](_objectSpread2(_objectSpread2({},this.state.shared),{},{event:xl,args:xn})),void 0,!0)}for(const $n in Nn)Nn[$n]=chain(...Nn[$n]);if(!Tn)return Nn;for(const $n in Nn){const{device:kl,capture:xl,passive:Nl}=parseProp($n);this._targetEventStore.add(Tn,kl,"",Nn[$n],{capture:xl,passive:Nl})}}}}function setupGesture($,xn){$.gestures.add(xn),$.gestureEventStores[xn]=new EventStore($,xn),$.gestureTimeoutStores[xn]=new TimeoutStore}function resolveGestures($,xn){xn.drag&&setupGesture($,"drag"),xn.wheel&&setupGesture($,"wheel"),xn.scroll&&setupGesture($,"scroll"),xn.move&&setupGesture($,"move"),xn.pinch&&setupGesture($,"pinch"),xn.hover&&setupGesture($,"hover")}const bindToProps=($,xn,En)=>(Nn,Tn,$n,kl={},xl=!1)=>{var Nl,Rl;const Fl=(Nl=kl.capture)!==null&&Nl!==void 0?Nl:xn.capture,Al=(Rl=kl.passive)!==null&&Rl!==void 0?Rl:xn.passive;let Tl=xl?Nn:toHandlerProp(Nn,Tn,Fl);En&&Al&&(Tl+="Passive"),$[Tl]=$[Tl]||[],$[Tl].push($n)};function useRecognizers($,xn={},En,Nn){const Tn=React.useMemo(()=>new Controller($),[]);if(Tn.applyHandlers($,Nn),Tn.applyConfig(xn,En),React.useEffect(Tn.effect.bind(Tn)),React.useEffect(()=>Tn.clean.bind(Tn),[]),xn.target===void 0)return Tn.bind.bind(Tn)}function useDrag($,xn){return registerAction(dragAction),useRecognizers({drag:$},xn||{},"drag")}function useScroll($,xn){return registerAction(scrollAction),useRecognizers({scroll:$},xn||{},"scroll")}const CarouselItem=({className:$,children:xn,...En})=>jsxRuntimeExports.jsx("li",{className:cn("flex-none",$),...En,children:xn}),GalleryIndicator=({index:$,total:xn,visibleRange:En,visibilities:Nn,className:Tn,dotClassName:$n,gapClassName:kl="gap-[3px]",onChange:xl})=>{const[Nl,Rl]=En??[$,$],Fl=Tl=>Nn?.[Tl]??(Tl>=Nl&&Tl<=Rl?1:0),Al=Tl=>.4+.6*Math.max(0,Math.min(1,Fl(Tl)));return jsxRuntimeExports.jsx("div",{className:cn("flex justify-center",kl,Tn),children:Array.from({length:xn}).map((Tl,Cl)=>jsxRuntimeExports.jsx("button",{type:"button","aria-label":`Go to slide ${Cl+1}`,"aria-current":Fl(Cl)>.5,disabled:!xl,onClick:xl?()=>xl(Cl):void 0,style:{opacity:Al(Cl)},className:cn("border-0 bg-current",$n??"h-[3px] w-[10px] rounded-full",xl?"cursor-pointer":"cursor-default")},Cl))})},Carousel=({className:$,hide:xn=[],controlsClassName:En,children:Nn,snap:Tn,scrollMargin:$n="scroll-m-2",scrollDistance:kl="page",...xl})=>{const[Nl,Rl]=reactExports.useState(0),[Fl,Al]=reactExports.useState(!0),Tl=useWindowSize(),[Cl,Il]=reactExports.useState(1),[Ml,Dl]=reactExports.useState([]),Ll=reactExports.useRef(null),[$l,Vl]=reactExports.useState(null),Bl=(Ll.current?.offsetWidth??1)/($l?.scrollWidth??1),zl=$l?.querySelector("a[href], button, input, select, textarea, [tabindex]")!=null,Ul=reactExports.useCallback(ql=>{if(ql===null)return;Vl(ql),Al(ql.scrollWidth>Tl.width);const Kl=Array.from(ql.children).findIndex(Jl=>Jl.offsetLeft+.88*Jl.scrollWidth>=ql.offsetWidth);Il(Kl)},[Tl.width]);reactExports.useLayoutEffect(()=>{if($l===null)return;const ql=throttle(async()=>{const Kl=$l.scrollLeft,Jl=Kl+$l.clientWidth;Dl(Array.from($l.children).map(ru=>{const Yl=ru,cu=Yl.offsetLeft,gu=cu+Yl.offsetWidth,_u=Math.max(0,Math.min(Jl,gu)-Math.max(Kl,cu));return Yl.offsetWidth>0?_u/Yl.offsetWidth:0}));let tu=0;switch(Tn){case"snap-end":case"snap-start":for(let ru=0;ru<$l.children.length;ru++){const Yl=Tn==="snap-end"?$l.firstElementChild.offsetLeft:0,cu=$l.children[ru],gu=cu.offsetLeft-cu.offsetWidth-Yl-5;$l.scrollLeft>=gu&&(tu=ru)}break;case"snap-center":case void 0:tu=$l.scrollLeft/($l.scrollWidth-$l.offsetWidth)*(Nn.length-1),tu=Math.round(tu);break}Rl(clamp$1(tu,0,Nn.length-1))},1e3/144);return $l.addEventListener("scroll",ql,{passive:!0}),ql(),()=>$l.removeEventListener("scroll",ql)},[$l,Tl.width,Tn,Nn,Bl]);function Gl(ql,Kl){if($l===null)return ql;const Jl=$l.children.length-1;ql=clamp$1(ql,0,Jl);let tu;switch(Kl){case"snap-start":tu=$l.children[ql]?.offsetLeft;break;case"snap-end":tu=ql*($l.scrollWidth-$l.offsetWidth)/Jl;break;case"snap-center":case void 0:tu=ql*($l.scrollWidth-$l.offsetWidth)/Jl;break}return $l.scrollTo({left:tu,behavior:"smooth"}),ql}return jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("ul",{className:classnames("no-scrollbar flex snap-mandatory flex-row items-stretch overflow-x-scroll scroll-smooth",{"snap-x":Tn,"justify-center":!Fl},$),ref:Ul,tabIndex:zl?void 0:0,...xl,children:Nn.map((ql,Kl)=>jsxRuntimeExports.jsx(CarouselItem,{className:classnames(Tn,$n,"select-none"),children:ql},Kl))}),Fl&&jsxRuntimeExports.jsxs("div",{className:cn("absolute bottom-0 flex w-full items-center justify-between px-6 leading-[0]",En),children:[!xn.includes("arrows")&&jsxRuntimeExports.jsx(ChangeSlide,{className:"static flex flex-min items-center rounded p-3",onClick:ql=>Gl(Nl-(kl==="single"?1:Cl),Tn),children:jsxRuntimeExports.jsx(Caret,{className:"rotate-90"})}),!xn.includes("dots")&&jsxRuntimeExports.jsx(GalleryIndicator,{className:"flex-grow",index:Nl,total:Nn.length,visibilities:Ml.length===Nn.length?Ml:void 0,visibleRange:[Nl,Math.min(Nl+Cl-1,Nn.length-1)],onChange:ql=>{Gl(ql,Tn)}}),!xn.includes("arrows")&&jsxRuntimeExports.jsx(ChangeSlide,{className:"static flex flex-min items-center rounded p-3",onClick:ql=>Gl(Nl+(kl==="single"?1:Cl),Tn),children:jsxRuntimeExports.jsx(Caret,{className:"-rotate-90"})})]})]})},GalleryControls=({index:$,total:xn,onPrev:En,onNext:Nn,onJumpTo:Tn,visibleRange:$n,visibilities:kl,className:xl})=>{const[Nl,Rl]=$n??[$,$];return jsxRuntimeExports.jsxs("div",{className:cn("flex items-center gap-3",xl),children:[jsxRuntimeExports.jsx(ChevronButton,{onClick:En,"aria-label":"Previous",disabled:Nl===0}),jsxRuntimeExports.jsx("div",{className:"flex h-[38px] items-center rounded-full bg-[#F6EBD7] px-3.5 text-[#3A2E1F] backdrop-blur-[2.45px]",children:jsxRuntimeExports.jsx(GalleryIndicator,{index:$,total:xn,visibleRange:$n,visibilities:kl,onChange:Tn,dotClassName:"size-1.5 rounded-full",gapClassName:"gap-[8.5px]"})}),jsxRuntimeExports.jsx(ChevronButton,{onClick:Nn,"aria-label":"Next",className:"rotate-180",disabled:Rl===xn-1})]})},ChevronButton=({className:$,...xn})=>jsxRuntimeExports.jsx("button",{type:"button",className:cn("flex size-[37px] items-center justify-center rounded-full bg-[#F6EBD7] text-[#3A2E1F] transition-all hover:opacity-80 disabled:opacity-40",$),...xn,children:jsxRuntimeExports.jsx(Arrow,{height:12})});function useHorizontalGallery(){const $=reactExports.useRef(null),xn=reactExports.useRef(null),[En,Nn]=reactExports.useState(0),[Tn,$n]=reactExports.useState([0,0]),[kl,xl]=reactExports.useState([]),[Nl,Rl]=reactExports.useState(),[Fl,Al]=reactExports.useState(!0);reactExports.useLayoutEffect(()=>{const Cl=()=>{const Il=$.current;if(!Il?.isConnected)return;const Ml=window.getComputedStyle(Il),Dl=Il.getBoundingClientRect().left+parseFloat(Ml.paddingLeft);Rl(Dl)};return Cl(),window.addEventListener("resize",Cl),()=>window.removeEventListener("resize",Cl)},[]),reactExports.useLayoutEffect(()=>{const Cl=xn.current;if(!Cl)return;const Il=()=>Al(Cl.scrollWidth>Cl.clientWidth);return Il(),window.addEventListener("resize",Il),()=>window.removeEventListener("resize",Il)},[]);const Tl=reactExports.useCallback(Cl=>{const Il=xn.current;if(!Il)return;const Ml=Il.children,Dl=Ml[0],Ll=Ml[Cl];!Ll||!Dl||Il.scrollTo({left:Math.max(0,Ll.offsetLeft-Dl.offsetLeft),behavior:"smooth"})},[]);return reactExports.useEffect(()=>{const Cl=xn.current;if(!Cl)return;const Il=()=>{const Ll=Array.from(Cl.children);if(Ll.length===0)return;const $l=Cl.scrollLeft,Vl=$l+Cl.clientWidth,Bl=Ll.map(ql=>{const Kl=ql.offsetLeft,Jl=Kl+ql.offsetWidth,tu=Math.max(0,Math.min(Vl,Jl)-Math.max($l,Kl));return ql.offsetWidth>0?tu/ql.offsetWidth:0});xl(Bl);const zl=.99;let Ul=-1,Gl=-1;for(let ql=0;ql=zl&&(Ul===-1&&(Ul=ql),Gl=ql);if(Ul===-1){let ql=-1,Kl=0;for(let Jl=0;Jlql&&(ql=Bl[Jl],Kl=Jl);Ul=Kl,Gl=Kl}$n([Ul,Gl]),Nn(Ul)};let Ml;const Dl=()=>{Ml||(Ml=requestAnimationFrame(()=>{Ml=void 0,Il()}))};return Il(),Cl.addEventListener("scroll",Dl,{passive:!0}),window.addEventListener("resize",Dl),()=>{Ml&&cancelAnimationFrame(Ml),Cl.removeEventListener("scroll",Dl),window.removeEventListener("resize",Dl)}},[]),reactExports.useEffect(()=>{const Cl=xn.current;if(!Cl)return;let Il=!1,Ml=!1,Dl=-1,Ll=0,$l=0,Vl=0,Bl="",zl="",Ul="";const Gl=5,ql=()=>{Ml=!0,Bl=Cl.style.scrollSnapType,zl=Cl.style.scrollBehavior,Ul=Cl.style.userSelect,Cl.style.scrollSnapType="none",Cl.style.scrollBehavior="auto",Cl.style.userSelect="none",Cl.style.cursor="grabbing",Cl.setPointerCapture(Dl)},Kl=Yl=>{Yl.pointerType!=="mouse"||Yl.button!==0||(Il=!0,Ml=!1,Dl=Yl.pointerId,Ll=Yl.clientX,$l=Cl.scrollLeft,Vl=0)},Jl=Yl=>{if(!Il||Yl.pointerId!==Dl)return;if(Yl.buttons===0)return ru();const cu=Yl.clientX-Ll;if(Vl=Math.max(Vl,Math.abs(cu)),!Ml){if(Vl<=Gl)return;ql()}Cl.scrollLeft=$l-cu},tu=Yl=>{Il&&Yl.preventDefault()},ru=()=>{if(!Il||(Il=!1,!Ml))return;Ml=!1,Cl.style.scrollSnapType=Bl,Cl.style.scrollBehavior=zl,Cl.style.userSelect=Ul,Cl.style.cursor="";const Yl=Cl.children,cu=Yl[0];if(cu){let _u=0,ku=1/0;for(let uu=0;uu{_u.preventDefault(),_u.stopPropagation()};Cl.addEventListener("click",gu,{capture:!0,once:!0}),setTimeout(()=>Cl.removeEventListener("click",gu,!0),0)};return Cl.addEventListener("pointerdown",Kl),Cl.addEventListener("pointermove",Jl),Cl.addEventListener("dragstart",tu),window.addEventListener("pointerup",ru),window.addEventListener("pointercancel",ru),()=>{Cl.removeEventListener("pointerdown",Kl),Cl.removeEventListener("pointermove",Jl),Cl.removeEventListener("dragstart",tu),window.removeEventListener("pointerup",ru),window.removeEventListener("pointercancel",ru)}},[]),{headerRef:$,scrollRef:xn,index:En,visibleRange:Tn,visibilities:kl,padLeft:Nl,overflowing:Fl,scrollToIndex:Tl}}const ChangeSlide=({color:$,className:xn,...En})=>jsxRuntimeExports.jsx(Button,{transparent:!0,className:cn("absolute top-0 h-full w-15 rounded-none text-header enabled:hover:opacity-70 lg:text-header-lg",$,xn),...En}),Slideshow=({images:$,index:xn=0,className:En,onUpdate:Nn,onClick:Tn,onDoubleClick:$n,onTripleClick:kl,onKeyDown:xl,children:Nl,showControls:Rl=!0,controlsColor:Fl="text-gray-800",background:Al="contain",...Tl})=>{const Cl=reactExports.useRef(null),Il=useTranslations("react.a11y"),[Ml,Dl]=reactExports.useState(!1),[Ll,$l]=reactExports.useState(0),Vl=reactExports.useRef(!1);reactExports.useLayoutEffect(()=>{const ql=Cl.current;if(!ql)return;const Kl=()=>$l(ql.clientWidth);if(Kl(),typeof ResizeObserver>"u")return;const Jl=new ResizeObserver(Kl);return Jl.observe(ql),()=>Jl.disconnect()},[]),reactExports.useEffect(()=>{Ll>0&&(Vl.current=!0)},[Ll]),reactExports.useEffect(()=>{Nn(clamp$1(xn,0,$.length-1))},[xn,Nn,$]);const[Bl,zl]=useSprings($.length,ql=>({x:(ql-xn)*Ll,scale:1,immediate:!Vl.current}),[Ll,xn]),Ul=useDrag(({active:ql,movement:[Kl],direction:[Jl],cancel:tu})=>{ql&&Math.abs(Kl)>Ll/4&&(Dl(!1),Nn(xn+(Jl>0?-1:1)),tu()),zl.start(ru=>{Dl(!0);const Yl=(ru-xn)*Ll+(ql?Kl:0),cu=ql?1-Math.abs(Kl)/Ll:1;return{x:Yl,scale:cu}})},{threshold:5}),Gl=ql=>{ql.key=="ArrowLeft"?Nn(xn-1):ql.key=="ArrowRight"&&Nn(xn+1),xl&&xl(ql)};return jsxRuntimeExports.jsxs("div",{ref:Cl,className:cn("relative size-full cursor-move",En),onKeyDown:Gl,onClick:ql=>ql.detail===3&&kl&&kl(ql),tabIndex:0,role:"group","aria-roledescription":"carousel","aria-label":Il?.product_gallery??void 0,...Tl,children:[!isTouchDevice()&&jsxRuntimeExports.jsx("input",{onKeyDown:Gl,readOnly:!0,tabIndex:-1,"aria-hidden":"true",className:"block h-0 cursor-default border-none opacity-0"}),Al==="backdrop"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Bl.map(({x:ql},Kl)=>jsxRuntimeExports.jsx(animated.div,{className:"absolute inset-0 bg-cover bg-center no-supports-backdrop:hidden",style:{x:ql.to(Math.round),backgroundImage:`url(${imageUrl($[Kl])})`},"aria-hidden":"true"},getKey($,Kl))),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 backdrop-blur-lg backdrop-brightness-90"})]}),Bl.map(({x:ql,scale:Kl},Jl)=>reactExports.createElement(animated.div,{className:"absolute size-full touch-none",...Ul(),key:getKey($,Jl),style:{x:ql},"aria-hidden":Jl!==xn||void 0},jsxRuntimeExports.jsx(animated.div,{onClick:tu=>!Ml&&Tn&&Tn(tu),onMouseUp:tu=>{setTimeout(()=>Dl(!1),0)},onDoubleClick:$n,className:cn("absolute inset-0 touch-none bg-center bg-no-repeat",Al==="cover"?"bg-cover":"bg-contain"),style:{scale:Kl,backgroundImage:`url(${imageUrl($[Jl])})`},"data-testid":"gallery-slide",role:$[Jl]?.altText?"img":"presentation","aria-label":$[Jl]?.altText||void 0}))),jsxRuntimeExports.jsx("div",{className:"contents",onClick:ql=>{ql.stopPropagation(),ql.preventDefault(),ql.nativeEvent.stopImmediatePropagation()},children:Rl&&$.length>1&&jsxRuntimeExports.jsx(SlideshowControls,{color:Fl,value:xn,onChange:Nn,keys:$.map((ql,Kl)=>getKey($,Kl))})}),Nl]})};function getKey($,xn){return $[xn]?.id??xn}const SlideshowControls=({color:$,arrowColor:xn,loop:En=!0,keys:Nn,value:Tn,onChange:$n,outside:kl=!1})=>{const xl=useTranslations("react.a11y"),Nl=Array.isArray(Nn)?Nn.length:Nn,Rl=xn??$;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ChangeSlide,{"data-testid":"gallery-prev","aria-label":xl?.previous_image??void 0,className:kl?"left-0 min-[1280px]:left-auto min-[1280px]:right-full min-[1280px]:hocus:bg-transparent min-[1280px]:hocus:opacity-50":"left-0",disabled:En?!1:Tn===0,onClick:Fl=>$n(Tn===0?Nl-1:Tn-1),color:Rl,children:jsxRuntimeExports.jsx(Chevron2,{className:"h-7"})}),jsxRuntimeExports.jsx(GalleryIndicator,{index:Tn,total:Nl,onChange:$n,className:cn("absolute inset-x-0 bottom-3 z-10",$)}),jsxRuntimeExports.jsx(ChangeSlide,{"data-testid":"gallery-next","aria-label":xl?.next_image??void 0,className:kl?"right-0 min-[1280px]:left-full min-[1280px]:right-auto min-[1280px]:hocus:bg-transparent min-[1280px]:hocus:opacity-50":"right-0",disabled:En?!1:Tn===Nl-1,onClick:Fl=>$n(Tn{const Nl=$n.id!==Tn[0].id?[$n,...Tn]:Tn,Rl=useTranslations("react.a11y"),[Fl,Al]=reactExports.useState(null),[Tl,Cl]=reactExports.useState(0),Il=$l=>Cl($l>=Nl.length?0:$l<0?Nl.length-1:$l);reactExports.useEffect(()=>Cl(0),[$n.url]);const Ml=Nl.length>0?Math.min(Tl,Nl.length-1):0,Dl=useDominantColor(Nl[Ml]?.url??"",{height:400,width:100,crop:"bottom"}),Ll="cursor-pointer overflow-hidden";return $n===void 0?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[xn=="inline"||xn=="both"?jsxRuntimeExports.jsx(Slideshow,{...xl,"data-testid":"product-gallery",className:cn(Ll,$),onClick:$l=>Il(Ml+1),onUpdate:Il,index:Ml,background:En,images:Nl,controlsColor:Dl??void 0,children:xn=="both"&&jsxRuntimeExports.jsx(Expand,{className:cn("absolute bottom-0 right-0 z-20 box-content p-4 text-22",Nl.length>1?"opacity-70 hover:opacity-100":"opacity-20 hover:opacity-40",Dl),onClick:$l=>{$l.stopPropagation(),Al(Ml)}})}):jsxRuntimeExports.jsxs("div",{...xl,className:cn(Ll,"relative mb-3 rounded-3xl",$),children:[jsxRuntimeExports.jsx("button",{type:"button",style:{backgroundImage:`url(${$n.url})`},"aria-label":$n.altText||(Rl?.view_images??void 0),className:"absolute size-full cursor-pointer border-0 bg-cover bg-center scale-100 transition-transform duration-300 ease-out hover:scale-105",onClick:$l=>Al(0)}),jsxRuntimeExports.jsx(Expand,{className:"pointer-events-none absolute bottom-3 right-3 h-4",fill:"white"})]}),Nn&&Nl.length>1&&jsxRuntimeExports.jsx("div",{"data-testid":"gallery-thumbnails",className:"mt-1.5 grid grid-cols-[repeat(auto-fit,5rem)] gap-1.5",children:Nl.map(($l,Vl)=>xn=="dialog"&&Vl===0?null:jsxRuntimeExports.jsx("button",{type:"button","data-testid":`gallery-thumbnail-${Vl}`,className:"h-[5rem] rounded bg-cover bg-center",style:{backgroundImage:`url(${imageUrl($l,100)})`},title:$l.altText||void 0,"aria-label":$l.altText||`${Rl?.image??""} ${Vl+1}`.trim(),"aria-current":xn!="dialog"&&Vl===Ml,onClick:Bl=>xn=="dialog"?Al(Vl):Il(Vl)},Vl))}),jsxRuntimeExports.jsx(Portal,{open:Fl!==null&&xn!=="inline",children:jsxRuntimeExports.jsx("div",{className:"fixed inset-0 z-50 bg-white",children:jsxRuntimeExports.jsx("dialog",{open:!0,className:"relative size-full overflow-hidden border-none bg-white",children:jsxRuntimeExports.jsx(Slideshow,{index:Fl,images:Nl,onKeyDown:$l=>$l.key=="Escape"&&Al(null),onUpdate:$l=>{Il($l),Al($l)},onTripleClick:$l=>Al(null),children:jsxRuntimeExports.jsx(Button,{className:"absolute right-6 top-6 z-10 size-12 leading-none","aria-label":Rl?.close??void 0,onClick:$l=>Al(null),children:jsxRuntimeExports.jsx(Close,{})})})})})}),kl.map(($l,Vl)=>jsxRuntimeExports.jsx("img",{className:"absolute hidden",src:imageUrl($l),alt:"","aria-hidden":"true"},Vl))]})},Image=({src:$,alt:xn="",loading:En="lazy",dimensions:Nn="responsive",crop:Tn="center",...$n})=>{const kl=reactExports.useRef(null),[xl,Nl]=reactExports.useState();return reactExports.useLayoutEffect(()=>{if(kl.current===null)return;const Rl=1.2*window.devicePixelRatio,Fl=kl.current;switch(Nn){case"responsive":Fl.clientWidth>30&&Fl.clientHeight>30?Nl({height:Fl.clientHeight*Rl,width:Fl.clientWidth*Rl,crop:Tn}):Nl(Fl.clientHeight>30||Fl.clientWidth===0?{height:Fl.clientHeight*Rl}:{width:Fl.clientWidth*Rl});break;case"width":Fl.clientWidth>0&&Nl({width:Fl.clientWidth*Rl});break;case"full":Nl({width:window.innerWidth*Rl});break;default:Nl(Nn);break}},[Nn,Tn]),jsxRuntimeExports.jsx("img",{src:imageUrl($,xl),ref:kl,alt:xn,loading:En,...$n})};function sectionSpacingProps($,xn){const En=$.padding_top??xn.top,Nn=$.padding_bottom??xn.bottom,Tn=$.spacing_type==="margin",$n={"--sec-pt-mobile":`${En/2}rem`,"--sec-pt-desktop":`${En}rem`,"--sec-pb-mobile":`${Nn/2}rem`,"--sec-pb-desktop":`${Nn}rem`};return{className:Tn?"mt-[--sec-pt-mobile] mb-[--sec-pb-mobile] md:mt-[--sec-pt-desktop] md:mb-[--sec-pb-desktop]":"pt-[--sec-pt-mobile] pb-[--sec-pb-mobile] md:pt-[--sec-pt-desktop] md:pb-[--sec-pb-desktop]",style:$n}}function mediaAspectProps($,xn){const En=$.mobile_aspect_ratio,Nn=$.desktop_aspect_ratio,Tn={...En&&{"--media-aspect":En},...Nn&&{"--media-aspect-md":Nn}};return{className:cn(En?"aspect-[--media-aspect] h-auto":xn.mobile,Nn?"md:aspect-[--media-aspect-md] md:h-auto":cn(xn.desktop,En&&"md:aspect-auto")),style:Tn}}const Title$1=({className:$,...xn})=>jsxRuntimeExports.jsx("h2",{className:cn("mx-auto px-1.5 text-header leading-tight text-inherit lg:text-header-lg",$),...xn}),Section$1=({full:$,className:xn,containerCns:En,...Nn})=>(Nn.tag||(Nn.tag="section"),$?jsxRuntimeExports.jsx(Nn.tag,{className:xn,...Nn,children:Nn.children}):jsxRuntimeExports.jsx(Nn.tag,{className:cn("px-3.5 md:px-7",En),...Nn,children:jsxRuntimeExports.jsx("div",{className:cn("mx-auto max-w-screen-senit",xn),children:Nn.children})}));function attributesToProps($){if(!$)return{};const xn=$.trim().split(" ").map(En=>En.split("=").map(Nn=>Nn.replaceAll('"',"").replaceAll(""",'"')));return Object.fromEntries(xn)}const Articles=({section:$})=>{const xn=useTranslations("react.blogs");return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,className:"space-y-9 py-17.5 lg:space-y-12 lg:py-20",children:[jsxRuntimeExports.jsx("div",{className:"text-center",children:jsxRuntimeExports.jsx("h2",{className:"font-bold",children:$.title})}),jsxRuntimeExports.jsxs(ArticleGrid,{children:[$.blogs?.map((En,Nn)=>jsxRuntimeExports.jsx(ArticleCard,{article:{title:En.title,handle:En.url.split("/").pop()??"",publishedAt:En.published_at,content:En.content??"",excerpt:En.excerpt??"",image:En.image?{id:"",url:En.image,altText:En.title}:void 0},showDate:$.settings.blog_show_date},Nn)),$.blogs?.length===1&&jsxRuntimeExports.jsx("div",{})]}),$.blogs?.length===0&&jsxRuntimeExports.jsx("p",{className:"text-center",children:xn?.no_articles})]})},ArticleGrid=({children:$})=>jsxRuntimeExports.jsx("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(20rem,1fr))] justify-start gap-12 lg:grid-cols-[repeat(auto-fit,minmax(25rem,1fr))]",children:$}),ArticleCard=({article:$,blog:xn,showDate:En})=>{const Nn=useTranslations("react.blogs");return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("a",{href:`${window.Shopify.routes.root}blogs/${xn?.handle}/${$.handle}`,className:"space-y-3 text-inherit no-underline transition-opacity hover:opacity-80",children:[$.image&&jsxRuntimeExports.jsx("div",{className:"aspect-14/9 overflow-hidden rounded-lg",children:jsxRuntimeExports.jsx(Image,{src:$.image,alt:$.title,className:"size-full object-cover"})}),En&&$.publishedAt&&jsxRuntimeExports.jsx("span",{className:"absolute -top-7 right-1.5 text-15 font-semibold text-white",children:new Date($.publishedAt).toLocaleDateString()}),xn?.title&&jsxRuntimeExports.jsx("span",{className:"text-base font-medium uppercase leading-none",children:xn.title}),jsxRuntimeExports.jsx("h3",{className:"text-[27px]",children:$.title}),jsxRuntimeExports.jsx("p",{className:"leading-snug",children:$.excerpt&&$.excerpt.trim().length>0?jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:$.excerpt}}):$.content.split(" ").length>40?jsxRuntimeExports.jsxs("span",{children:[$.content.split(" ").slice(0,40).join(" "),"..."]}):jsxRuntimeExports.jsx("span",{children:$.content})}),jsxRuntimeExports.jsx("span",{className:"inline-block rounded-2xl border-2 border-primary bg-primary px-3 py-0 text-[0.9rem] font-bold uppercase tracking-[1px] text-white",children:Nn?.read_more})]})})},SearchInput=({value:$,onChange:xn,placeholder:En,className:Nn,containerClassName:Tn,...$n})=>{const kl=useTranslations("react.a11y");return jsxRuntimeExports.jsxs("div",{className:cn("relative",Tn),children:[jsxRuntimeExports.jsx("input",{type:"text",name:"search",placeholder:En,"aria-label":En?.toString(),value:$,onChange:xl=>xn(xl.target.value),className:Nn,...$n}),$&&jsxRuntimeExports.jsx("button",{type:"button",className:"absolute inset-y-0 right-0 flex items-center px-2","aria-label":kl?.clear_search??void 0,onClick:()=>xn(""),children:jsxRuntimeExports.jsx(Close,{className:"size-3.5 text-gray-400"})})]})},Blogs=()=>{const{data:$}=useShopifyQuery(BlogsDocument,{}),xn=useTranslations("react.blogs"),[En,Nn]=reactExports.useState(""),[Tn,$n]=reactExports.useState(""),kl=reactExports.useMemo(()=>$?$?.flatMap(xl=>xl.articles.map(Nl=>({...Nl,blog:xl}))).filter(xl=>{const Nl=En.toLowerCase();return xl.title.toLowerCase().includes(Nl)||xl.blog.title.toLowerCase().includes(Nl)||xl.content?.toLowerCase().includes(Nl)}).sort(by("publishedAt",Tn==="oldest"?Order.Asc:Order.Desc)):[],[$,En,Tn]);return $?jsxRuntimeExports.jsxs("div",{className:"page-width mt-15 space-y-9",children:[jsxRuntimeExports.jsx("h1",{className:"text-center text-[45px]",children:xn?.blogs}),jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center gap-3 sm:gap-6",children:$.map(xl=>jsxRuntimeExports.jsx(Button,{href:`${window.Shopify.routes.root}blogs/${xl.handle}`,className:"px-3 py-1.5 text-lg sm:px-7 sm:py-3 sm:text-22",children:xl.title},xl.handle))}),jsxRuntimeExports.jsxs("div",{className:"mt-3 flex items-center gap-3",children:[jsxRuntimeExports.jsx(SearchInput,{placeholder:xn?.search,value:En,onChange:Nn,className:"rounded-md border border-gray-300 px-3 py-1.5",containerClassName:"w-full"}),jsxRuntimeExports.jsxs("select",{name:"sort",value:Tn,onChange:xl=>$n(xl.target.value),className:"rounded-md border border-gray-300 px-3 py-1.5",children:[jsxRuntimeExports.jsx("option",{value:"",disabled:!0,children:xn?.sort_by}),jsxRuntimeExports.jsx("option",{value:"newest",children:xn?.newest}),jsxRuntimeExports.jsx("option",{value:"oldest",children:xn?.oldest})]})]}),kl.length===0?jsxRuntimeExports.jsx("p",{className:"text-center",children:xn?.no_articles}):jsxRuntimeExports.jsx(ArticleGrid,{children:kl.map(xl=>jsxRuntimeExports.jsx(ArticleCard,{article:xl,blog:xl.blog},xl.id))})]}):null},Badge=({className:$,size:xn="md",...En})=>jsxRuntimeExports.jsx("span",{className:cn("badge",xn==="sm"&&"badge-sm",$),...En}),Checkbox=$=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...$,children:[jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20Z"}),jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M8.7 14.3c-.3.2-.6.2-.9 0L4 10.4a.6.6 0 0 1 0-.8l.4-.4c.2-.2.6-.2.8 0l2.6 2.6c.3.3.6.3.9 0l6-6c.3-.3.7-.3 1 0l.3.3c.3.2.3.6 0 .8l-7.3 7.4Z"})]}),ComparisonSection=({section:{tag:$,settings:{product_a:xn,product_b:En,...Nn},blocks:Tn}})=>{const $n=useSelector(Rl=>Rl.products.products),kl=useDispatch();reactExports.useEffect(()=>{$n||kl(Actions$1.loadProducts())},[$n,kl]);const xl=useTranslations("react"),Nl=Nn.heading_alignment==="center";return jsxRuntimeExports.jsxs(Section$1,{className:"space-y-15 text-[#1B1B1B]",tag:$,style:{paddingTop:`${Nn.size_top}rem`,paddingBottom:`${Nn.size_bottom}rem`,backgroundColor:Nn.background_color,color:Nn.text_color},children:[jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[Nn.badge&&jsxRuntimeExports.jsx("div",{className:cn("mx-auto px-1.5 md:w-7/12",Nl?"text-center":"max-sm:text-center sm:text-left"),children:jsxRuntimeExports.jsx(Badge,{className:"px-4",children:Nn.badge})}),jsxRuntimeExports.jsx(Title$1,{className:cn(Nl?"text-center":"max-sm:text-center"),children:Nn.title})]}),jsxRuntimeExports.jsx("div",{className:"self-start text-base sm:row-start-2",dangerouslySetInnerHTML:{__html:Nn.text}}),jsxRuntimeExports.jsxs("div",{className:"grid grid-flow-col grid-cols-3 items-center justify-center gap-y-3.5 text-center sm:gap-x-15",children:[objectEntries({product_a:xn,product_b:En}).map(([Rl,Fl],Al)=>{const Tl=$n?.find(Il=>Il.handle===Fl);if(!Tl)return null;const Cl={title:Nn[`${Rl}_title`]||Tl.title,subtitle:Nn[`${Rl}_subtitle`],label:Nn[`${Rl}_label`],image:Nn[`${Rl}_image`]||Tl.featuredImage,titleLabel:Nn[`${Rl}_title_label`]};return jsxRuntimeExports.jsxs("div",{className:cn("relative row-start-1 mb-3 space-y-1.5",{"col-start-1 col-end-3 max-sm:mr-[30%] sm:col-start-2":Al===0,"col-start-2 col-end-4 max-sm:ml-[30%] sm:col-start-3":Al===1}),children:[Cl.label&&jsxRuntimeExports.jsx("div",{className:"absolute -top-2.5 flex w-full items-center justify-center",children:jsxRuntimeExports.jsx(Badge,{size:"sm",children:Cl.label})}),Cl.image&&jsxRuntimeExports.jsx(Image,{className:"aspect-[11/9] w-full rounded-2xl object-cover",src:Cl.image}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[jsxRuntimeExports.jsx("div",{className:"font-flare text-lg font-bold sm:text-2xl",children:Cl.title}),Cl.titleLabel&&jsxRuntimeExports.jsx(Badge,{className:"py-1.5",size:"sm",children:Cl.titleLabel})]}),jsxRuntimeExports.jsx("h3",{className:"text-sm font-bold sm:text-lg",children:Cl.subtitle}),jsxRuntimeExports.jsxs("p",{className:"text-base italic sm:text-base",children:[xl?.checkout.from," ",jsxRuntimeExports.jsx(Price,{price:Tl.priceRange.minVariantPrice,asText:!0})]})]},Al)}),Tn.map((Rl,Fl)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:["title"in Rl.settings&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Fl>0&&jsxRuntimeExports.jsx("hr",{className:"col-span-full my-0 h-px bg-gray-150",style:{gridRow:Fl*2+1}}),jsxRuntimeExports.jsx("h3",{className:"col-start-2 h-full text-15 font-medium sm:col-start-1 sm:text-left",style:{gridRow:Fl*2+2},children:Rl.settings.title})]}),objectEntries({option_a:Rl.settings.option_a,option_b:Rl.settings.option_b}).map(([Al,Tl],Cl)=>jsxRuntimeExports.jsx("div",{className:cn("flex flex-col items-center justify-center space-y-3",{"col-start-1 sm:col-start-2":Cl===0,"col-start-3 sm:col-start-3":Cl===1,"max-sm:col-start-1 max-sm:col-end-3 max-sm:mr-[30%]":Cl===0&&includes(Rl.type,"comparison_image","comparison_cta"),"max-sm:col-start-2 max-sm:col-end-4 max-sm:ml-[30%]":Cl===1&&includes(Rl.type,"comparison_image","comparison_cta"),"max-sm:mt-8":Rl.type==="comparison_image"}),style:{gridRow:Fl*2+(Rl.type==="comparison_cta"?1:2)},children:typeof Tl=="boolean"?Tl?jsxRuntimeExports.jsx(Checkbox,{className:"size-6 text-green-700","aria-label":"Yes"}):jsxRuntimeExports.jsx("span",{className:"select-none text-center text-[35px] font-medium leading-[21px] text-[#BC0000]","aria-label":"No",children:"x"}):Rl.type==="comparison_image"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-full text-base font-semibold",children:Tl}),jsxRuntimeExports.jsx(Image,{className:"aspect-[11/9] w-full rounded-2xl object-cover",src:Rl.settings[`${Al}_image`]})]}):Rl.type==="comparison_cta"?jsxRuntimeExports.jsx(Button,{className:"rounded-full bg-[#3FAF6D] text-base font-semibold",href:Tl||productUrl(Al.endsWith("a")?xn:En),size:"md",children:xl?.actions.buy_now}):jsxRuntimeExports.jsx("span",{className:"rounded-full bg-green-700 px-4 py-0.5 text-base font-semibold text-white",children:Tl})},Al))]},Rl.id))]})]})},FaqSection=({section:$})=>{const{settings:xn,blocks:En}=$,Nn=Math.max(0,Math.min(En.length,xn.first_tab_count??En.length)),Tn=En.slice(0,Nn),$n=En.slice(Nn),kl=$n.length>0,[xl,Nl]=reactExports.useState(0),Rl=xn.columns!=="one",Fl=xl===0?Tn:$n,Al=xl===0?xn.title:xn.specs_title,Tl=sectionSpacingProps(xn,{top:3.75,bottom:3.75});return jsxRuntimeExports.jsx(Section$1,{tag:$.tag,full:!0,className:Tl.className,style:{...Tl.style,...xn.background_color?{backgroundColor:xn.background_color}:{}},children:jsxRuntimeExports.jsxs("div",{className:"mx-auto max-w-screen-senit px-3.5 md:px-7 senit:px-0",children:[jsxRuntimeExports.jsxs("header",{className:"mb-6 flex flex-col items-center gap-6 md:mb-10 md:gap-7",children:[kl&&jsxRuntimeExports.jsxs("div",{className:cn("relative inline-flex w-[351px] max-w-full items-center bg-[#f8f1e4]","h-[52px] rounded-[26px] p-[5px] md:h-[46px] md:rounded-[23px] md:p-1"),children:[jsxRuntimeExports.jsx("span",{"aria-hidden":"true",className:cn("absolute bg-[#024227] transition-transform duration-300 ease-out","inset-y-[5px] left-[5px] w-[calc(50%-5px)] rounded-[26px]","md:inset-y-1 md:left-1 md:w-[calc(50%-4px)] md:rounded-[23px]",{"translate-x-full":xl===1})}),jsxRuntimeExports.jsx(TabButton,{active:xl===0,onClick:()=>Nl(0),children:xn.faq_label}),jsxRuntimeExports.jsx(TabButton,{active:xl===1,onClick:()=>Nl(1),children:xn.specs_label})]}),Al&&jsxRuntimeExports.jsx("h2",{className:"text-center font-header text-header font-normal text-[#1b1b1b] lg:text-header-lg",children:Al})]}),jsxRuntimeExports.jsx("ul",{itemScope:!0,itemType:"https://schema.org/FAQPage",className:cn("grid gap-3 md:gap-2",{"md:grid-cols-2 md:gap-x-3":Rl}),children:Fl.map(Cl=>jsxRuntimeExports.jsx(FaqItem,{question:Cl.settings.question,answer:Cl.settings.answer,attributes:Cl.attributes},Cl.id))})]})})},TabButton=({active:$,onClick:xn,children:En})=>jsxRuntimeExports.jsx("button",{type:"button",onClick:xn,"aria-pressed":$,className:cn("relative z-10 flex h-full flex-1 items-center justify-center rounded-[23px] text-base transition-colors duration-200",$?"font-bold text-white":"font-normal text-black"),children:En}),FaqItem=({question:$,answer:xn,attributes:En})=>{const[Nn,Tn]=reactExports.useState(!1),[$n,kl]=reactExports.useState(0),xl=reactExports.useRef(null),Nl=animated(Caret);reactExports.useLayoutEffect(()=>{kl(xl.current?.scrollHeight??0)},[xn]);const{height:Rl,rotate:Fl}=useSpring({height:Nn?$n:0,rotate:Nn?180:0,config:{tension:300,friction:32}});if(!$)return null;const Al=xn?{__html:String(xn)}:null;return jsxRuntimeExports.jsx("li",{itemProp:"mainEntity",itemScope:!0,itemType:"https://schema.org/Question",...attributesToProps(En),className:"max-w-full overflow-hidden",children:jsxRuntimeExports.jsxs("div",{className:"overflow-hidden rounded-[15px] bg-[#fdfaf5]",children:[jsxRuntimeExports.jsxs("button",{type:"button",onClick:()=>Tn(Tl=>!Tl),"aria-expanded":Nn,className:"flex w-full items-center justify-between gap-3 px-4 py-4 text-left text-lg leading-[30px] text-[#2f3c33] md:px-6 md:py-3.5 md:text-22",children:[jsxRuntimeExports.jsx("span",{itemProp:"name",children:$}),jsxRuntimeExports.jsx(Nl,{className:"shrink-0",style:{rotate:Fl,height:"0.6em",stroke:"#2f3c33"}})]}),jsxRuntimeExports.jsx(animated.div,{itemProp:"acceptedAnswer",itemScope:!0,itemType:"https://schema.org/Answer",style:{height:Rl},className:"overflow-hidden",children:jsxRuntimeExports.jsx("div",{ref:xl,itemProp:"text",className:"px-4 pb-5 text-base leading-relaxed text-[#3F3E3E] md:px-6 md:pb-4 [&_p+p]:mt-3 md:[&_p+p]:mt-2",...Al?{dangerouslySetInnerHTML:Al}:{}})})]})})},CollapsibleContext=reactExports.createContext(null),useCollapsible=()=>{const $=reactExports.useContext(CollapsibleContext);if(!$)throw new Error("Collapsible primitives must be used inside ");return $},CollapsibleRoot=({defaultOpen:$=!1,children:xn})=>{const[En,Nn]=reactExports.useState(!0),[Tn,$n]=reactExports.useState(!1),[kl,xl]=reactExports.useState(0),Nl=reactExports.useRef(null),[{height:Rl,rotate:Fl},Al]=useSpring(()=>({height:0,rotate:$?-180:0,onRest:{height:Cl=>{$n(!1),Cl.value===0&&Nn(!1)}}}));reactExports.useLayoutEffect(()=>{$||Nn(!1);const Cl=range(0,20).map(Il=>setTimeout(()=>{xl(Nl.current?.scrollHeight||1)},Il*200));return()=>{Cl.forEach(clearTimeout)}},[$]),reactExports.useLayoutEffect(()=>{$&&kl>0&&Rl.goal===0&&Al.start({height:kl,rotate:-180,immediate:!0})},[$,kl,Al,Rl]);const Tl=()=>{En||Nn(!0),Al.start(Rl.goal===0?{height:kl,rotate:-180}:{height:0,rotate:0}),$n(!0)};return jsxRuntimeExports.jsx(CollapsibleContext.Provider,{value:{open:En,toggle:Tl,contentRef:Nl,expanding:Tn,height:Rl,rotate:Fl},children:xn})},CollapsibleTrigger=({className:$,onClick:xn,children:En,...Nn})=>{const{open:Tn,toggle:$n}=useCollapsible();return jsxRuntimeExports.jsx("button",{type:"button","aria-expanded":Tn,className:cn("cursor-pointer select-none focus-visible:opacity-60 hocus:opacity-60",$),onClick:kl=>{xn?.(kl),kl.defaultPrevented||$n()},...Nn,children:En})},CollapsibleContent=({className:$,children:xn,...En})=>{const{height:Nn,contentRef:Tn,expanding:$n}=useCollapsible();return jsxRuntimeExports.jsx(animated.div,{style:{height:Nn},className:"overflow-hidden","aria-busy":$n,children:jsxRuntimeExports.jsx("div",{ref:Tn,className:cn("overflow-visible",$),...En,children:xn})})},CollapsibleCaret=({className:$})=>{const{rotate:xn}=useCollapsible(),En=animated(Caret);return jsxRuntimeExports.jsx(En,{className:$,style:{rotate:xn}})},Collapsible=({title:$,className:xn,summaryClassname:En,children:Nn,...Tn})=>jsxRuntimeExports.jsx(CollapsibleRoot,{children:jsxRuntimeExports.jsxs("div",{role:"dialog","aria-modal":!0,onClick:$n=>$n.preventDefault(),className:cn(xn,"overflow-hidden"),...Tn,children:[jsxRuntimeExports.jsxs(CollapsibleTrigger,{className:cn("leading-none",En),children:[$,jsxRuntimeExports.jsx(CollapsibleCaret,{className:"ml-1.5 align-middle"})]}),jsxRuntimeExports.jsx(CollapsibleContent,{children:Nn})]})}),BoxTitle=({title:$,quantity:xn})=>jsxRuntimeExports.jsx("h3",{className:"my-0 inline-block font-body text-sm font-medium leading-none text-green-700 xs:text-lg xs:leading-none",children:xn?jsxRuntimeExports.jsxs("span",{children:[xn," x ",jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:$}})]}):jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:$}})}),ASPECT_CLASSES={"3/2":"aspect-3/2",fullscreen:"aspect-fullscreen","5/4":"aspect-5/4","14/9":"aspect-14/9","16/10":"aspect-16/10"},BoxItem=({item:$,product:xn,inCart:En,settings:Nn})=>{const Tn=$.name||xn?.title||"",$n=jsxRuntimeExports.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-stone-100",children:[jsxRuntimeExports.jsx("img",{className:cn("block w-full object-cover",ASPECT_CLASSES[Nn.aspect]??ASPECT_CLASSES["3/2"]),src:imageUrl($.image||xn?.featuredImage,400),alt:"",loading:"lazy"}),En&&jsxRuntimeExports.jsx("div",{className:"absolute left-3 top-3 z-10 flex size-6 items-center justify-center rounded-full bg-green-700 text-10",children:jsxRuntimeExports.jsx(Checkmark,{className:"mt-0.5"})})]});return $.description?jsxRuntimeExports.jsx("li",{className:cn("space-y-3",{"opacity-30":!En}),children:jsxRuntimeExports.jsxs(CollapsibleRoot,{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center leading-none",children:[jsxRuntimeExports.jsxs(CollapsibleTrigger,{children:[jsxRuntimeExports.jsx(BoxTitle,{title:Tn,quantity:$.quantity}),jsxRuntimeExports.jsx(CollapsibleCaret,{className:"ml-1.5 align-middle"})]}),jsxRuntimeExports.jsx(CollapsibleContent,{children:jsxRuntimeExports.jsx("p",{className:"prose text-left leading-normal",dangerouslySetInnerHTML:{__html:$.description}})})]}),jsxRuntimeExports.jsx(CollapsibleTrigger,{className:"block w-full","aria-hidden":!0,tabIndex:-1,children:$n})]})}):jsxRuntimeExports.jsxs("li",{className:cn("space-y-3",{"opacity-30":!En}),children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center leading-none",children:jsxRuntimeExports.jsx(BoxTitle,{title:Tn,quantity:$.quantity})}),$n]})},InTheBoxSection=({section:$})=>{const xn=useSelector(kl=>kl.cart.lines)?.map(kl=>kl?.merchandise?.product?.handle),En=useSelector(kl=>kl.cart.stagedUpsells)?.map(kl=>kl.product?.handle),Nn=[xn,En].flat().filter(isPresent),Tn=useSelector(kl=>kl.products.products),$n=useDispatch();return reactExports.useEffect(()=>{Tn||$n(Actions$1.loadProducts())},[Tn,$n]),jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,className:classnames("space-y-7 text-center md:space-y-12",{"max-w-[900px]":$.settings.max_width!=="senit"}),style:{backgroundColor:$.settings.background_color,color:$.settings.color,paddingTop:`${$.settings.size_top}rem`,paddingBottom:`${$.settings.size_bottom}rem`},children:[jsxRuntimeExports.jsx("h2",{className:"text-header lg:text-header-lg",children:$.settings.title}),jsxRuntimeExports.jsx("ul",{className:classnames("grid grid-cols-2 grid-rows-[auto,auto] gap-5 sm:grid-cols-3 md:gap-6",{"lg:grid-cols-4":($.blocks?.length??0)>6}),children:$.blocks?.map(({id:kl,settings:xl,attributes:Nl})=>{const Rl=Tn?.find(Al=>Al.handle===xl.product),Fl=isInCart(Nn,xl);return $.settings.only_added&&!Fl?null:jsxRuntimeExports.jsx(BoxItem,{item:xl,product:Rl,inCart:Fl,settings:$.settings,...attributesToProps(Nl)},kl)})}),$.settings.summary_image&&jsxRuntimeExports.jsx("img",{className:"block w-full rounded-3xl object-cover sm:hidden",src:imageUrl($.settings.summary_image),alt:"",loading:"lazy"})]})};function isInCart($,xn){return xn.product?window.PRODUCT?.handle===xn.product||$.includes(xn.product):!1}function stripTags($){return $.replace(/<[^>]+>/g,"").trim()}function getReviewSettings($,xn){const En=$.settings.author,Nn=$.settings.product||xn.product,Tn={"@context":"https://schema.org",reviewRating:{"@type":"Rating",ratingValue:$.settings.rating,bestRating:5,worstRating:1},itemReviewed:Nn?{"@type":"Product",identifier:Nn,name:startCase(Nn),url:window.location.origin+productUrl(Nn)}:void 0};switch($.type){case"media_review":return{...Tn,"@type":"CriticReview",abstract:$.settings.title,...$.settings.url?{url:$.settings.url}:{},thumbnailUrl:imageUrl($.settings.image),author:{"@type":"NewsMediaOrganization",name:En}};case"review":return xn.show_score?{...Tn,"@type":"UserReview",reviewBody:stripTags($.settings.body.toString()),author:{"@type":"Person",name:En}}:null}}const TrustpilotReview=({className:$,review:xn,schema:En,...Nn})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:cn("flex h-full w-80 max-w-[80vw] shrink-0 flex-col justify-between gap-3.5 rounded-lg bg-white p-6 md:w-108","text-left shadow-[2px_4px_12.1px_0px_rgba(0,0,0,0.1)]",$),...Nn,children:[jsxRuntimeExports.jsx(TrustpilotStars,{rating:xn.settings.rating||5}),xn.settings.title&&jsxRuntimeExports.jsx("h3",{className:"font-body text-xl font-bold leading-tight text-[#0a3518] md:text-[28px]",children:xn.settings.title}),xn.type==="review"&&xn.settings.body&&jsxRuntimeExports.jsx("p",{className:"text-16 leading-snug text-[#696969] md:text-18",children:stripTags(xn.settings.body.toString())}),jsxRuntimeExports.jsxs("div",{className:"mt-3.5 flex items-end justify-between",children:[xn.type==="review"&&xn.settings.author&&jsxRuntimeExports.jsx("span",{className:"font-header text-[17px] text-[#696969] md:text-[24px]",children:xn.settings.author}),xn.type==="review"&&xn.settings.date&&jsxRuntimeExports.jsx("span",{className:"text-[16px] text-[#696969]",children:xn.settings.date})]})]}),En&&jsxRuntimeExports.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(En,null," ")}})]}),Review=({className:$,review:xn,settings:En,...Nn})=>{const Tn=useTranslations("react.actions"),$n=getReviewSettings(xn,En);return En.style==="trustpilot"&&xn.type==="review"?jsxRuntimeExports.jsx(TrustpilotReview,{className:$,review:xn,schema:$n,...Nn}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:cn("h-full bg-white drop-shadow-xl","flex flex-col items-center justify-between",En.style==="default"?"space-y-2 rounded-2xl p-7 md:space-y-3 md:p-9":"items-start justify-start gap-3.5 rounded-xl pb-6 text-left md:gap-6 md:px-6 md:pb-12 md:pt-6 [&>*:not(:first-child)]:max-md:px-5",{"w-72 md:w-84":En.style==="default"},{"w-[225px] md:w-[490px]":En.style==="media"},$),...Nn,children:[xn.settings.image&&jsxRuntimeExports.jsx(Image,{className:cn("block w-full object-cover",En.style==="media"?"aspect-16/10 rounded-t-2xl md:rounded-2xl":"aspect-square rounded-3xl"),src:xn.settings.image,dimensions:"responsive"}),En.show_score&&jsxRuntimeExports.jsx(Stars,{rating:xn.settings.rating,className:cn({"!mt-5":En.style==="default"})}),xn.type==="media_review"&&xn.settings.author_image&&jsxRuntimeExports.jsx(Image,{className:"h-5 max-w-[90%] object-contain md:h-7",dimensions:{height:40},src:xn.settings.author_image,alt:xn.settings.author}),xn.settings.title&&jsxRuntimeExports.jsx("h3",{className:cn("font-bold",{"my-0 text-sm md:text-22":En.style==="media","text-22":En.style==="default"}),children:xn.settings.title}),xn.type==="review"&&(xn.settings.body.toString().length>5||xn.settings.author)&&jsxRuntimeExports.jsx("p",{className:"flex-auto text-lg",dangerouslySetInnerHTML:{__html:xn.settings.body.toString()}}),xn.type==="review"&&xn.settings.author&&jsxRuntimeExports.jsxs("p",{className:"space-x-1.5 text-sm",children:[jsxRuntimeExports.jsx("span",{children:xn.settings.author}),jsxRuntimeExports.jsx("span",{className:"inline-block rounded-full bg-cyan-500 px-0.5 py-1 align-text-bottom text-e4/8 leading-none text-white",children:jsxRuntimeExports.jsx(Checkmark,{className:"inline align-middle"})})]}),xn.type==="media_review"&&xn.settings.url&&jsxRuntimeExports.jsx("div",{className:"flex flex-1 flex-col justify-end",children:jsxRuntimeExports.jsx(Button,{href:xn.settings.url,target:"_blank",rel:"noopener noreferrer",className:"px-7 text-xs uppercase",size:"sm",children:xn.settings.url_text||Tn?.read_review||"Read the review"})})]}),$n&&jsxRuntimeExports.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify($n,null," ")}})]})},TrustpilotSummary=({settings:$})=>jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 pb-7 text-center text-18 md:gap-7",children:[$.trustpilot_label&&jsxRuntimeExports.jsx("span",{className:"font-header text-[26px] text-[#0a3518] md:text-[21px]",children:$.trustpilot_label}),jsxRuntimeExports.jsxs("span",{className:"inline-flex flex-col items-center gap-1",children:[jsxRuntimeExports.jsx(TrustpilotLogo,{className:"h-8"}),jsxRuntimeExports.jsx(TrustpilotStars,{rating:$.trustpilot_score||5})]}),($.trustpilot_score||$.trustpilot_count)&&jsxRuntimeExports.jsxs("span",{className:"text-[#696969]",children:[$.trustpilot_score?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["TrustScore ",jsxRuntimeExports.jsx("span",{className:"font-bold text-[#2f3c33]",children:$.trustpilot_score})]}):null,$.trustpilot_score&&$.trustpilot_count?jsxRuntimeExports.jsx("span",{className:"px-1.5",children:"•"}):null,$.trustpilot_count?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Based on"," ",$.trustpilot_link?jsxRuntimeExports.jsx("a",{href:$.trustpilot_link,className:"font-bold text-[#2f3c33] underline",target:"_blank",rel:"noopener noreferrer",children:$.trustpilot_count}):jsxRuntimeExports.jsx("span",{className:"font-bold text-[#2f3c33] underline",children:$.trustpilot_count})]}):null]})]}),ReviewsSection=({section:$})=>{const xn=useWindowSize(),En=[$.settings.badge&&jsxRuntimeExports.jsx(Badge,{children:$.settings.badge},"badge"),$.settings.title&&jsxRuntimeExports.jsx(Title$1,{children:$.settings.title},"title"),$.settings.description&&jsxRuntimeExports.jsx("p",{dangerouslySetInnerHTML:{__html:$.settings.description}},"description")].filter(Boolean);return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,className:cn("space-y-6 text-center",{"pt-17.5 lg:pt-20":$.settings.top_padding,"pb-17.5 lg:pb-20":$.settings.bottom_padding&&$.settings.style!=="trustpilot","pb-9":$.settings.bottom_padding&&$.settings.style==="trustpilot"}),style:{backgroundColor:$.settings.background_color,color:$.settings.color},children:[En.length>0&&jsxRuntimeExports.jsx("header",{className:"space-y-4 px-4 text-center",children:En}),jsxRuntimeExports.jsx(Carousel,{className:cn("space-x-6",$.settings.style==="trustpilot"?"pb-4 pt-3":"pb-15 pt-3"),controlsClassName:cn({"text-green":$.settings.style==="media"}),hide:[($.settings.style==="media"||$.settings.style==="trustpilot")&&"arrows",$.settings.style==="trustpilot"&&"dots"].filter(Nn=>typeof Nn=="string"),snap:xn.width<=BREAKPOINTS.xs?"snap-center":"snap-start",scrollMargin:"scroll-m-4",children:$.blocks.map((Nn,Tn)=>jsxRuntimeExports.jsx(Review,{...attributesToProps(Nn.attributes),className:cn({"ml-3.5 md:ml-9":Tn===0,"mr-3.5 md:mr-9":Tn===$.blocks.length-1}),review:Nn,settings:$.settings},Nn.id))}),$.settings.style==="trustpilot"&&$.settings.trustpilot_summary&&jsxRuntimeExports.jsx(TrustpilotSummary,{settings:$.settings})]})},Countdown=({to:$,rounding:xn,className:En,separatorClassName:Nn,children:Tn,...$n})=>{const kl=reactExports.useRef(null),[{total:xl,...Nl},Rl]=reactExports.useState(diffDates(new Date,$));reactExports.useEffect(()=>{const Tl=setInterval(()=>{Rl(diffDates(new Date,$))},999);return()=>clearInterval(Tl)},[$]);const Fl=useTranslations("react.units");reactExports.useLayoutEffect(()=>{kl.current&&(xl<=0?kl.current.closest(".countdown-container")?.classList.add("hidden"):kl.current.closest(".countdown-container")?.classList.remove("hidden"))},[xl]);const Al=objectKeys(Nl).findIndex(Tl=>Tl===xn);return xl<=0?null:jsxRuntimeExports.jsxs("span",{ref:kl,className:cn("rounded-2xl text-[1.25em] font-semibold",En),...$n,children:[Tn,objectEntries({...Nl}).filter((Tl,Cl)=>Al>=0?Cl<=Al:!0).map(([Tl,Cl])=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:Cl}),jsxRuntimeExports.jsx("span",{className:"text-e7/8",children:Fl?.[`${Tl}_short`]}),jsxRuntimeExports.jsx("span",{className:cn("mx-0.5 last:hidden",Nn),children:":"})]},Tl))]})},btnClasses=["relative inline-block rounded-full border-2 border-primary bg-primary","px-[30px] py-[10px] text-[0.9rem] font-bold uppercase leading-[2.2] tracking-[1px] text-button-text","outline outline-2 outline-primary hover:outline-4"].join(" "),NotFound=()=>{const $=useTranslations("templates.404");return jsxRuntimeExports.jsxs("div",{"data-testid":"not-found",className:"py-15 text-center md:py-28",children:[jsxRuntimeExports.jsx("h1",{className:"text-header-lg",children:$?.title}),jsxRuntimeExports.jsx("p",{children:$?.subtext}),jsxRuntimeExports.jsxs("p",{className:"flex flex-wrap justify-center gap-3",children:[jsxRuntimeExports.jsx("a",{href:"https://support.auk.com",className:btnClasses,children:$?.contact_support}),jsxRuntimeExports.jsx("a",{href:"/",className:btnClasses,children:$?.go_back})]}),jsxRuntimeExports.jsx("style",{children:".main-content__wrapper { visibility: visible !important; }"})]})};function useStock($){const xn=useCountry(),En=[...new Set(($??[]).filter(isPresent))].sort(),Nn=useQuery(["inventory",xn.iso_code,En],async()=>{const Nl=new URLSearchParams({country:xn.iso_code,store:getStoreCountry()});En.forEach(Fl=>Nl.append("ids",Fl));const Rl=await fetch(`${AUK_API_URL}/inventory?${Nl}`);if(Rl.status>=500)throw new Error(`Failed to load inventory: ${Rl.statusText}`);return Rl.json()},{enabled:En.length>0&&xn.iso_code!=="EU",staleTime:6e4}),Tn=Nn.data?.success?Nn.data.data:void 0,$n=reactExports.useMemo(()=>Tn?indexStock(Tn):null,[Tn]),kl=Nn.data?.success===!1?Nn.data.error:null;reactExports.useEffect(()=>{kl&&console.error(kl)},[kl]);const xl=reactExports.useCallback(Nl=>{const Rl=Nl?$n?.get(Nl):void 0;return Rl?isSellable$1(Rl):void 0},[$n]);return reactExports.useMemo(()=>({data:Tn,sellable:xl}),[Tn,xl])}const FunFacts=({product:$})=>{const xn=useTranslations("react.products"),En=extractFunFacts($);return En.length>0?jsxRuntimeExports.jsxs("div",{className:"text-lg",children:[jsxRuntimeExports.jsx("h3",{className:"text-22",children:xn?.fun_facts}),jsxRuntimeExports.jsx("ul",{className:"space-y-3",children:En.map((Nn,Tn)=>jsxRuntimeExports.jsxs("li",{className:"flex items-start",children:[jsxRuntimeExports.jsx("img",{src:Bulb,alt:"",className:"mb-3 mr-4 mt-1.5 h-9 shrink-0 align-middle"}),jsxRuntimeExports.jsx("p",{children:Nn})]},Tn))})]}):null};function extractFunFacts($){return range(1,3).map(xn=>$[`fun_fact_${xn}`]?.value).filter(isDefined)}const InTheBox=({productId:$,upsells:xn})=>{const En=useBoxContents($,xn),Nn=useTranslations("react");return jsxRuntimeExports.jsx("div",{className:"bg-gray-100 p-3 py-15 text-center lg:px-15",children:jsxRuntimeExports.jsxs("div",{className:"mx-auto max-w-screen-lg",children:[jsxRuntimeExports.jsx("h2",{className:"text-header font-normal lg:text-header-lg",children:Nn?.auk_page.whats_in_the_box}),jsxRuntimeExports.jsx("ul",{className:"grid grid-cols-3 grid-rows-[auto,auto]",children:En.map((Tn,$n)=>{const kl=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("img",{className:"inline-block w-17.5 p-0.5",src:Tn.icon,alt:""}),jsxRuntimeExports.jsxs("h3",{className:"mb-1.5 font-body text-22 leading-none",children:[Tn.quantity," x ",Tn.name]}),jsxRuntimeExports.jsx("p",{className:"my-0",children:Tn.description})]});return jsxRuntimeExports.jsx("li",{className:"p-3",children:Tn.extraInfo?jsxRuntimeExports.jsx(CollapsibleRoot,{children:jsxRuntimeExports.jsx(ExpandableCard,{info:Nn?.products.info,extraInfo:Tn.extraInfo,children:kl})}):kl},$n)})})]})})},ExpandableCard=({info:$,extraInfo:xn,children:En})=>{const{toggle:Nn}=useCollapsible();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"cursor-pointer",onClick:Nn,children:[En,jsxRuntimeExports.jsxs(CollapsibleTrigger,{className:"text-sm opacity-60 hover:opacity-100",onClick:Tn=>Tn.stopPropagation(),children:[$,jsxRuntimeExports.jsx(CollapsibleCaret,{className:"ml-1.5 inline-block align-middle"})]})]}),jsxRuntimeExports.jsx(CollapsibleContent,{children:jsxRuntimeExports.jsx("p",{className:"my-0 text-15",children:xn})})]})};function useBoxContents($,xn){const En=useTranslations("react.auk_page");if($===PRODUCT_IDS.Auk&&xn){const Nn=xn.find($n=>$n.product.id===PRODUCT_IDS.ExtraNutrients),Tn=xn.find($n=>$n.product.id===PRODUCT_IDS.ChiliKit);return[{quantity:1,name:"Auk",description:En?.auk_desc,icon:StartKit},{quantity:6,name:En?.pots,description:En?.pots_desc,icon:Pot},{quantity:6,name:En?.coconut_soil,description:En?.coconut_soil_desc,icon:Coco},{quantity:Nn?9:3,name:En?.nutrients,description:Nn?En?.nutrients_desc_upsell:En?.nutrients_desc,icon:Capsule,extraInfo:En?.nutrients_extra_info},{quantity:Tn?2:1,name:En?.plant_program,description:Tn?En?.plant_program_desc_upsell:En?.plant_program_desc,icon:Chip,extraInfo:En?.plant_program_extra_info},{quantity:Tn?5:3,name:En?.seed_packets,description:Tn?En?.seed_packets_desc_upsell:En?.seed_packets_desc,icon:Seeds,extraInfo:En?.seed_packets_extra_info}]}else return[]}const ProductError=({onRetry:$})=>{const xn=useTranslations("templates.product_error");return jsxRuntimeExports.jsxs("div",{"data-testid":"product-error",className:"py-15 text-center md:py-28",children:[jsxRuntimeExports.jsx("h1",{className:"text-header-lg",children:xn?.title??"We couldn't load this product"}),jsxRuntimeExports.jsx("p",{children:xn?.subtext??"Something went wrong on our end. Check your connection and try again."}),jsxRuntimeExports.jsxs("p",{className:"flex flex-wrap justify-center gap-3",children:[jsxRuntimeExports.jsx("button",{type:"button",onClick:$,className:btnClasses,children:xn?.retry??"Try again"}),jsxRuntimeExports.jsx("a",{href:"https://support.auk.com",className:btnClasses,children:xn?.contact_support??"Contact support"})]}),jsxRuntimeExports.jsx("style",{children:".main-content__wrapper { visibility: visible !important; }"})]})},UspList=({items:$,layout:xn="stacked",className:En})=>{const Nn=$.filter(kl=>kl.title||kl.description);if(!Nn.length)return null;const Tn=xn==="stacked",$n=Tn?"mt-px size-[18px]":"mt-[2.5px] size-[15px]";return jsxRuntimeExports.jsx("ul",{className:cn("rounded-[10px] border border-solid border-[#D5DED7] bg-[#FBFCFB] text-left",Tn?"space-y-[18px] px-4 py-5":"space-y-[13px] p-4",En),children:Nn.map((kl,xl)=>jsxRuntimeExports.jsxs("li",{className:"flex items-start gap-2",children:[kl.icon_image?jsxRuntimeExports.jsx("span",{className:cn("block shrink-0 bg-primary",$n),style:{WebkitMask:`url('${kl.icon_image}') center / contain no-repeat`,mask:`url('${kl.icon_image}') center / contain no-repeat`},"aria-hidden":"true"}):jsxRuntimeExports.jsx(FeatureIcon,{name:kl.icon,className:cn("text-primary",$n)}),Tn?jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[kl.title&&jsxRuntimeExports.jsx("span",{className:"block text-15 font-medium leading-[19.8px] tracking-[0.01em] text-[#1A1A18]",children:kl.title}),kl.description&&jsxRuntimeExports.jsx("p",{className:"mt-0.5 text-[13.5px] font-normal leading-[20px] text-[#3D3D3D]",children:kl.description})]}):jsxRuntimeExports.jsxs("p",{className:"min-w-0 text-[14.5px] font-normal leading-[20px] text-[#5C5C57]",children:[kl.title&&jsxRuntimeExports.jsx("strong",{className:"font-medium text-[#1A1A18]",children:kl.title}),kl.title&&kl.description?" — ":null,kl.description]})]},kl.id??xl))})};function groupUspBlocks($){const xn=[];for(const En of $){if(En.type!=="usp_block"){xn.push(En);continue}const Nn=xn[xn.length-1];Array.isArray(Nn)?Nn.push(En):xn.push([En])}return xn}const ProductExtra=({blocks:$})=>$?.length?jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-4",children:groupUspBlocks($).map(xn=>Array.isArray(xn)?jsxRuntimeExports.jsx(UspList,{items:xn.map(En=>({id:En.id,...En.settings}))},xn[0].id):jsxRuntimeExports.jsx(ExtraBlock,{block:xn},xn.id))}):null,ExtraBlock=({block:$})=>{const xn=attributesToProps($.attributes);switch($.type){case"payment_icons":return jsxRuntimeExports.jsx(PaymentIcons,{size:"normal",className:"justify-end",...xn});case"countdown_block":{const En=$.settings.to;if(!En)return null;const Tn=/[Zz]|[+-]\d{2}:\d{2}$/.test(En)?new Date(En):new Date(En+getTimezoneOffsetString("Europe/Oslo",new Date(En)));return jsxRuntimeExports.jsxs("p",{className:"flex items-center justify-center gap-2 rounded-xl bg-gray-25 px-4 py-3 text-center text-[14px] font-medium text-[#333333]",...xn,children:[jsxRuntimeExports.jsx(FeatureIcon,{name:"clock",className:"size-4"}),$.settings.prefix&&jsxRuntimeExports.jsx("span",{children:$.settings.prefix}),jsxRuntimeExports.jsx(Countdown,{to:Tn,className:"text-[1em] font-bold tabular-nums text-[#C20505]",separatorClassName:"mx-0"})]})}case"guarantee_block":{const{background_color:En,icon:Nn,icon_background_color:Tn,title:$n,description:kl}=$.settings;return jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 rounded-lg p-3",style:{backgroundColor:En||"#F3F4F6"},...xn,children:[Nn?jsxRuntimeExports.jsx("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full",style:{backgroundColor:Tn||"#FFFFFF"},"aria-hidden":"true",children:jsxRuntimeExports.jsx("span",{className:"block size-5 bg-current",style:{WebkitMask:`url('${Nn}') center / contain no-repeat`,mask:`url('${Nn}') center / contain no-repeat`}})}):jsxRuntimeExports.jsx("img",{src:"https://cdn.shopify.com/s/files/1/0623/6694/1430/files/checkmark_badge_56x56.png?v=1643107880",alt:"",width:56,height:56,loading:"lazy"}),jsxRuntimeExports.jsxs("div",{children:[$n&&jsxRuntimeExports.jsx("span",{className:"block text-15 font-medium text-[#505050] md:text-[17px]",children:$n}),kl&&jsxRuntimeExports.jsx("p",{className:"text-[14px] text-[#696969]",children:kl})]})]})}case"html_block":return $.settings.html_area?jsxRuntimeExports.jsx("div",{className:"rounded-xl bg-gray-100 px-3 py-4",...xn,dangerouslySetInnerHTML:{__html:$.settings.html_area}}):null;default:return null}},ProductHeader=({product:$,settings:xn})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[$.handle==="auk-mini-2"&&$.offer?.value&&jsxRuntimeExports.jsx("p",{className:"text-[17px] text-[#226637]",children:$.offer?.value}),xn.show_review_stars&&$.reviews_average?.value&&jsxRuntimeExports.jsx(Stars,{rating:$.reviews_average?.value,count:$.review_count?.value}),jsxRuntimeExports.jsxs("h1",{className:"flex flex-wrap items-center gap-x-3 text-header font-bold xs:text-[40px] lg:text-header-lg",children:[jsxRuntimeExports.jsx("span",{children:$.title}),$.badge&&jsxRuntimeExports.jsx(Badge,{children:jsxRuntimeExports.jsx("span",{className:"font-semibold",children:$.badge.value})})]}),$.descriptionHtml.length>11&&jsxRuntimeExports.jsx("div",{className:"prose text-15 font-normal prose-p:my-2 prose-ul:my-2 prose-li:my-0 [&_img]:hidden",dangerouslySetInnerHTML:{__html:$.descriptionHtml}})]}),seedVariant=$=>$.variants[0],variantId=$=>$.variants[0].id,isSeedMix=$=>seedVariant($).requiresComponents||$.tags.includes("seed-mix"),seedSellable=$=>xn=>$.sellable(variantId(xn))??seedVariant(xn).availableForSale;function buildSeedPool($,xn){if(!xn?.length)return $?.length?$:null;const En=new Map(xn.map($n=>[variantId($n),$n])),Nn=($??[]).map($n=>En.get(variantId($n))).filter(isPresent),Tn=new Set(Nn.map(variantId));return[...Nn,...xn.filter($n=>!Tn.has(variantId($n)))]}function useDismiss($,xn){const En=reactExports.useRef(null),Nn=reactExports.useRef(xn);return reactExports.useEffect(()=>{Nn.current=xn}),reactExports.useEffect(()=>{if(!$)return;const Tn=$n=>{$n instanceof KeyboardEvent&&$n.key!=="Escape"||$n.type==="pointerdown"&&En.current?.contains($n.target)||Nn.current()};return document.addEventListener("pointerdown",Tn),document.addEventListener("keydown",Tn),()=>{document.removeEventListener("pointerdown",Tn),document.removeEventListener("keydown",Tn)}},[$]),En}function sortSeedMenu($,xn){const En=new Intl.Collator(xn);return[...$].sort((Nn,Tn)=>En.compare(Nn.title,Tn.title))}function useSeedMenu($){const xn=useLocale().locale;return reactExports.useMemo(()=>sortSeedMenu($,xn),[$,xn])}const SeedPrice=({seed:$,discount:xn=0,className:En})=>{const Nn=seedVariant($),Tn=effectiveCompareAtPrice(Nn),$n=getPrice(Nn.price)-xn,kl=xn>0?getPrice(Nn.price):Tn?getPrice(Tn):void 0;return jsxRuntimeExports.jsx(Price,{className:cn("shrink-0 text-[13px] font-bold leading-none text-[#371F15]",En),price:$n,original:kl,currencyCode:Nn.price.currencyCode,compareAtClassName:"text-[12px] font-medium",asText:!0,allowWrapping:!1})},SeedSelect=({options:$,value:xn,onChange:En,open:Nn,onOpenChange:Tn,label:$n,caption:kl,trailing:xl,showPrices:Nl,voided:Rl=!1,className:Fl,sellable:Al})=>{const Tl=useTranslations("react"),Cl=useSeedMenu($);return jsxRuntimeExports.jsxs("div",{className:cn("relative min-w-0 flex-1",Fl),children:[jsxRuntimeExports.jsxs("button",{type:"button","aria-haspopup":"listbox","aria-expanded":Nn,disabled:Rl,onClick:()=>Tn(!Nn),className:cn("flex w-full items-center gap-3 rounded-2xl bg-gray-100 p-2 text-left","outline outline-2 outline-offset-0 outline-transparent","transition-[outline-color] hocus:outline-green",Rl&&"hocus:outline-transparent"),children:[jsxRuntimeExports.jsx("img",{className:cn("size-9 shrink-0 rounded-lg object-cover",Rl&&"opacity-55 grayscale"),src:imageUrl(xn.featuredImage,100),alt:"",loading:"lazy"}),jsxRuntimeExports.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[$n&&jsxRuntimeExports.jsx("span",{className:cn("text-[12px] leading-none text-[#6E6E68]",Rl&&"line-through"),children:$n}),kl&&jsxRuntimeExports.jsx("span",{className:cn("text-[13px] leading-none",Rl&&"text-[#6E6E68] line-through"),children:kl}),jsxRuntimeExports.jsx("span",{className:cn("truncate text-[14px] font-bold leading-tight text-[#371F15]",Rl&&"text-[#6E6E68] line-through"),children:xn.title})]}),xl,jsxRuntimeExports.jsx(Caret,{height:"9px",className:cn("w-3 shrink-0 transition-transform",Nn&&"rotate-180",Rl&&"text-[#6E6E68] opacity-50"),"aria-hidden":"true"})]}),Nn&&jsxRuntimeExports.jsx("ul",{role:"listbox",className:cn("absolute inset-x-0 top-[calc(100%+8px)] z-20 max-h-[280px]","overflow-y-auto rounded-xl bg-white p-1.5","shadow-[0_12px_28px_rgba(0,0,0,0.14)]"),children:Cl.map(Il=>{const Ml=!Al(Il);return jsxRuntimeExports.jsx("li",{role:"presentation",children:jsxRuntimeExports.jsxs("button",{type:"button",role:"option","aria-selected":Il.id===xn.id,"aria-disabled":Ml||void 0,onClick:()=>{Ml||(En(Il),Tn(!1))},className:cn("flex w-full items-center gap-2.5 rounded-lg p-2 text-left","text-[14px] text-[#371F15] hocus:bg-[#EEF5EC]",Ml&&"cursor-default text-[#A8A29A] hocus:bg-transparent"),children:[jsxRuntimeExports.jsx("img",{className:cn("size-8 shrink-0 rounded-md object-cover",Ml&&"opacity-40"),src:imageUrl(Il.featuredImage,100),alt:"",loading:"lazy"}),jsxRuntimeExports.jsx("span",{className:"min-w-0 flex-1 truncate",children:Il.title}),Ml?jsxRuntimeExports.jsx("span",{className:"shrink-0 text-[11px] font-bold leading-none",children:Tl?.auk_page.out_of_stock}):Nl&&jsxRuntimeExports.jsx(SeedPrice,{seed:Il})]})},Il.id)})})]})},SeedAddOns=({seeds:$,stock:xn,staged:En,onAdd:Nn,onRemove:Tn})=>{const $n=useTranslations("react"),[kl,xl]=reactExports.useState(null),Nl=useDismiss(kl!==null,()=>xl(null)),Rl=useSeedMenu($),Fl=reactExports.useMemo(()=>seedSellable(xn),[xn]),Al=reactExports.useMemo(()=>Rl.filter(Fl),[Rl,Fl]),[Tl,Cl]=reactExports.useState(null),Il=reactExports.useMemo(()=>new Map($.map(Ll=>[variantId(Ll),Ll])),[$]),Ml=reactExports.useMemo(()=>En.map(Ll=>({item:Ll,seed:Il.get(Ll.id)})).filter(Ll=>!!Ll.seed),[En,Il]);if(Al.length===0)return null;const Dl=Tl&&Il.get(Tl)||Al.find(Ll=>!En.some($l=>$l.id===variantId(Ll)))||Al[0];return jsxRuntimeExports.jsxs("div",{ref:Nl,children:[jsxRuntimeExports.jsx("legend",{className:"mb-1 text-15 font-semibold",children:$n?.products.add_seeds}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2.5",children:[Ml.map(({item:Ll,seed:$l},Vl)=>jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("button",{type:"button","aria-label":`${$n?.a11y.remove_item}: ${$l.title}`,onClick:()=>Tn($l),className:cn("flex size-10 shrink-0 items-center justify-center rounded-full","bg-gray-100 text-[#6E6E68] transition-colors","hocus:bg-red-100 hocus:text-red-700"),children:jsxRuntimeExports.jsx(Close,{height:"0.7em"})}),jsxRuntimeExports.jsx(SeedSelect,{options:$,value:$l,sellable:Fl,onChange:Bl=>{Tn($l),Nn(Bl)},open:kl===Vl,onOpenChange:Bl=>xl(Bl?Vl:null),trailing:jsxRuntimeExports.jsx(SeedPrice,{seed:$l,discount:Ll.discounts}),showPrices:!0})]},`${Ll.id}-${Vl}`)),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("button",{type:"button","aria-label":`${$n?.actions.add}: ${Dl.title}`,onClick:()=>{Nn(Dl),Cl(null)},className:cn("flex size-10 shrink-0 items-center justify-center rounded-full","bg-green text-white transition-opacity hocus:opacity-80"),children:jsxRuntimeExports.jsx(Plus,{height:"0.8em"})}),jsxRuntimeExports.jsx(SeedSelect,{options:$,value:Dl,sellable:Fl,onChange:Ll=>Cl(variantId(Ll)),open:kl==="chooser",onOpenChange:Ll=>xl(Ll?"chooser":null),trailing:jsxRuntimeExports.jsx(SeedPrice,{seed:Dl}),showPrices:!0})]})]})]})},Info=({icon:$,children:xn})=>jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx("img",{src:$,alt:"",className:"my-1.5 mr-4 h-9 align-middle"}),jsxRuntimeExports.jsx("span",{className:"leading-tight",children:xn})]}),SeedInfo=({product:$})=>{const xn={GERMINATION_TIME:$.seed_germination?.value,HARVEST_TIME:$.seed_harvest?.value,LIFESPAN:$.seed_lifespan?.value,SEEDS_PER_POT:$.seed_amount?.value},En=useTranslations("react.seeds",xn);return!En||!Object.values(xn).some(Boolean)?null:jsxRuntimeExports.jsxs("div",{className:"!mt-0 text-lg",children:[xn.GERMINATION_TIME&&jsxRuntimeExports.jsx(Info,{icon:Seedling,children:En.germination_time}),xn.HARVEST_TIME&&jsxRuntimeExports.jsx(Info,{icon:GrownPlant,children:En.harvest_time}),xn.LIFESPAN&&jsxRuntimeExports.jsx(Info,{icon:Calendar,children:En.lifespan}),xn.SEEDS_PER_POT&&jsxRuntimeExports.jsx(Info,{icon:Pot,children:En.seeds_per_pot})]})},SeedPicker=({slots:$,seeds:xn,stock:En,onAdd:Nn,onRemove:Tn,onCard:$n=!1,voided:kl=!1})=>{const xl=useTranslations("react"),[Nl,Rl]=reactExports.useState(null),Fl=useDismiss(Nl!==null,()=>Rl(null)),Al=reactExports.useMemo(()=>seedSellable(En),[En]),Tl=reactExports.useMemo(()=>xn.filter(Al),[xn,Al]),[Cl,Il]=reactExports.useState(()=>Tl.slice(0,Math.max(0,$)));reactExports.useEffect(()=>{Il(Dl=>{if(Dl.every(Al))return Dl;const Ll=new Set(Dl.filter(Al).map(variantId)),$l=Tl.filter(Bl=>!Ll.has(variantId(Bl)));let Vl=0;return Dl.map(Bl=>Al(Bl)?Bl:$l[Vl++]??Tl[0]).filter(isPresent)})},[Tl,Al]);const Ml=reactExports.useRef(new Map);return reactExports.useEffect(()=>{const Dl=new Map;Cl.forEach($l=>Dl.set(variantId($l),(Dl.get(variantId($l))??0)+1));const Ll=new Map(xn.map($l=>[variantId($l),$l]));new Set([...Dl.keys(),...Ml.current.keys()]).forEach($l=>{const Vl=Ll.get($l);if(!Vl)return;const Bl=(Dl.get($l)??0)-(Ml.current.get($l)??0);for(let zl=0;zlBl;zl--)Tn(Vl)}),Ml.current=Dl},[Cl,xn]),$<1||Tl.length===0?null:jsxRuntimeExports.jsx("div",{ref:Fl,className:"flex flex-col gap-3 sm:flex-row",children:Cl.map((Dl,Ll)=>jsxRuntimeExports.jsx(SeedSelect,{className:$n?"[&>button]:bg-white":void 0,options:xn,value:Dl,sellable:Al,onChange:$l=>Il(Vl=>Vl.map((Bl,zl)=>zl===Ll?$l:Bl)),open:Nl===Ll&&!kl,onOpenChange:$l=>Rl($l?Ll:null),voided:kl,label:xl?.products.seed_option.replace("{INDEX}",String(Ll+1)),caption:jsxRuntimeExports.jsxs("span",{className:"flex items-baseline gap-1.5",children:[jsxRuntimeExports.jsx("span",{className:cn("font-bold uppercase",kl?"text-[#6E6E68]":"text-green"),children:xl?.checkout.free}),jsxRuntimeExports.jsx("s",{className:"font-medium text-[#A8A29A]",children:getPrice(seedVariant(Dl).price,!0)})]})},Ll))})},DELIVERIES_PER_YEAR={DAY:365,WEEK:52,MONTH:12,YEAR:1},INTERVAL_DAYS={DAY:1,WEEK:7,MONTH:30,YEAR:365};function byCadence($,xn){const En=({sellingPlan:Nn})=>{const Tn=Nn.deliveryPolicy;return Tn?.intervalCount?INTERVAL_DAYS[Tn.interval]*Tn.intervalCount:1/0};return En($)-En(xn)}function planPrice($,xn){const En=$.priceAdjustments[0]?.price;return En?getPrice(En):xn}function isOverrideWithheld($){const xn=$.subscription_override;return!!xn?.value&&!xn.reference}function deliveriesPerYear($){const xn=$.sellingPlan.deliveryPolicy;return xn?.intervalCount?DELIVERIES_PER_YEAR[xn.interval]/xn.intervalCount:null}const SubscriptionBox=({plans:$,selectedPlan:xn,onSelectPlan:En,subscribed:Nn,onSubscribedChange:Tn,planRequired:$n=!1,price:kl,subscribePrice:xl,comparePrice:Nl,extraPerk:Rl,seedPicker:Fl,shipping:Al=null,yearlyShippingSaving:Tl=Al?.saving??0})=>{const Cl=useTranslations("react"),Il=useLocale().locale,Ml=reactExports.useId(),Dl=deliveriesPerYear(xn),Ll=ql=>Dl===null?0:Math.round(ql*Dl),$l=Ll(Tl),Vl=Ll(kl-xl),Bl=Nn?xl:kl,zl=Nn?kl:Nl,Ul=Nn?(Al?.rate??0)-(Al?.saving??0):Al?.rate??0,Gl=[Cl?.subscription.perk_free_shipping,$.length>1?Cl?.subscription.perk_chosen_frequency:$l>0?Cl?.subscription.save_per_year_in_shipping.replace("{AMOUNT}",getPrice($l,!0,0)):Vl>0?Cl?.subscription.save_per_year.replace("{AMOUNT}",getPrice(Vl,!0,0)):void 0,Cl?.subscription.perk_cancel_any_time,Rl].filter(isPresent);return jsxRuntimeExports.jsxs("section",{className:"flex flex-col gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3 rounded-2xl bg-[#EEF5EC] px-4 py-3.5",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center gap-x-[18px] gap-y-3",children:[jsxRuntimeExports.jsxs("label",{className:"relative shrink-0",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"peer sr-only",checked:Nn,disabled:$n,"aria-labelledby":Ml,onChange:ql=>Tn(ql.target.checked)}),jsxRuntimeExports.jsx("span",{className:cn("block h-[30px] w-[52px] rounded-full bg-[#C7C2B8] transition-colors",$n?"cursor-default":"cursor-pointer","peer-checked:bg-green peer-focus-visible:outline peer-focus-visible:outline-2","peer-focus-visible:outline-offset-2 peer-focus-visible:outline-green","peer-checked:[&>span]:translate-x-[25px]"),children:jsxRuntimeExports.jsx("span",{className:cn("block size-6 translate-x-[3px] translate-y-[3px] rounded-full bg-white","shadow-[0_1px_3px_rgba(0,0,0,0.25)] transition-transform")})})]}),jsxRuntimeExports.jsxs("div",{className:"flex min-w-0 flex-col flex-wrap gap-1",children:[jsxRuntimeExports.jsx("p",{id:Ml,className:"text-[14px] font-bold leading-none text-[#3A3A3A]",children:Cl?.actions.subscribe}),$.length===1&&jsxRuntimeExports.jsxs("p",{className:"text-[12.5px] font-bold leading-none text-[#371F15]",children:[Cl?.subscription.every," ",cadenceLabel(xn.sellingPlan,Il)]})]}),jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-baseline gap-2.5",children:[jsxRuntimeExports.jsx("span",{className:"font-header text-[24px] font-bold leading-none text-green sm:text-[19.5px]",children:getPrice(Bl,!0,0)}),zl>Bl&&jsxRuntimeExports.jsx("s",{className:"font-header text-[15px] font-medium leading-none text-[#A8A29A] decoration-2 sm:text-[12px]",children:getPrice(zl,!0,0)})]}),Al&&jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-baseline gap-2",children:[jsxRuntimeExports.jsxs("span",{className:"text-[14px] font-bold leading-none text-[#3A3A3A]",children:[Cl?.subscription.shipping,":"]}),jsxRuntimeExports.jsx("span",{"data-testid":"subscription-shipping",className:"font-header text-[19.5px] font-bold leading-none text-green sm:text-[16.5px]",children:getPrice(Ul,!0,0)}),Nn&&Al.saving>0&&jsxRuntimeExports.jsx("s",{"data-testid":"subscription-shipping-was",className:"font-header text-[13.5px] font-medium leading-none text-[#A8A29A] decoration-2 sm:text-[12px]",children:getPrice(Al.rate,!0,0)})]})]}),Nn&&$.length>1&&jsxRuntimeExports.jsx("div",{role:"group","aria-label":Cl?.subscription.delivery_frequency??void 0,className:"flex flex-col gap-2.5 sm:flex-row",children:$.map(ql=>{const Kl=ql.sellingPlan.id===xn.sellingPlan.id;return jsxRuntimeExports.jsxs("button",{type:"button","aria-pressed":Kl,onClick:()=>En(ql),className:cn("flex flex-1 items-baseline gap-[5px] rounded-xl px-2.5 py-2 text-left","outline outline-2 outline-offset-0 transition-[outline-color]","hocus:outline-green",Kl?"bg-[#F1F8F2] outline-green":"bg-white outline-transparent"),children:[jsxRuntimeExports.jsx("span",{className:"text-[12px] text-[#6E6E68]",children:Cl?.subscription.every}),jsxRuntimeExports.jsx("span",{className:cn("text-[13px] font-bold",Kl?"text-green":"text-[#371F15]"),children:cadenceLabel(ql.sellingPlan,Il)})]},ql.sellingPlan.id)})}),jsxRuntimeExports.jsx("div",{className:"border-0 border-t border-solid border-[rgba(7,93,57,0.15)] pt-3",children:jsxRuntimeExports.jsx("ul",{className:cn("grid grid-cols-1 gap-x-5 gap-y-1.5","text-[13px] leading-[1.35] text-[#371F15]",Gl.length>1&&"sm:grid-cols-2"),children:Gl.map(ql=>jsxRuntimeExports.jsxs("li",{className:cn("flex items-start gap-2",!Nn&&"text-[#6E6E68] line-through"),children:[jsxRuntimeExports.jsx("span",{"aria-hidden":"true",className:cn("shrink-0 font-bold",Nn?"text-green":"text-[#6E6E68]"),children:"✓"}),ql]},ql))})}),Fl]}),Nn&&Cl?.subscription.why_subscribe_body&&jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-3 py-1",children:[jsxRuntimeExports.jsx(FeatureIcon,{name:"smile",className:"mt-0.5 size-[18px] text-green"}),jsxRuntimeExports.jsxs("p",{className:"text-[15px] leading-[1.45] text-[#6E6E68]",children:[jsxRuntimeExports.jsxs("strong",{className:"text-[#371F15]",children:[Cl.subscription.why_subscribe," "]}),Cl.subscription.why_subscribe_body]})]})]})};function extractProductUpsells($){const xn=$.upsells?.reference;if(xn?.__typename!=="Metaobject")return null;const En=xn.products?.references?.map(Nn=>Nn?.__typename==="Product"?Nn:null).filter(isPresent);return En?.length&&En.length>0?En:null}function extractSeedCollection($){const xn=$.upsells?.reference;if(xn?.__typename!=="Metaobject")return null;const En=xn.collection?.reference?.products;return En?.length?En:null}const UpsellCartActions=({className:$,inCart:xn,soldOut:En,onAdd:Nn,onRemove:Tn})=>{const $n=useTranslations("react");return jsxRuntimeExports.jsxs("div",{className:cn("flex w-20 items-center justify-center gap-[6px]",$),children:[En?jsxRuntimeExports.jsx("span",{className:"text-balance text-center text-10 font-bold leading-tight text-gray-750",children:$n?.auk_page.out_of_stock}):xn?jsxRuntimeExports.jsx("span",{className:"flex size-7 items-center justify-center rounded-full bg-green",children:jsxRuntimeExports.jsx(Checkmark,{height:"0.75em",className:"align-middle"})}):Nn?jsxRuntimeExports.jsx(Button,{size:"pill","data-testid":"upsell-add",onClick:Nn,children:$n?.actions.add}):jsxRuntimeExports.jsx("span",{className:cn(buttonVariants({variant:"primary",size:"pill"})),children:$n?.actions.add}),xn&&Tn&&jsxRuntimeExports.jsx("button",{type:"button",className:"flex size-7 items-center justify-center rounded-full bg-transparent opacity-70 hocus:bg-black/10",onClick:Tn,"aria-label":"Remove",children:jsxRuntimeExports.jsx("img",{className:"h-3 align-middle",src:filesUrl("trash.svg"),alt:""})})]})},Upsell=({className:$,upsellIds:xn,expirationText:En,variant:Nn,label:Tn,soldOut:$n,upsellCart:kl,mode:xl,expiration:Nl,onAdd:Rl,onRemove:Fl,...Al})=>{const Tl=useDispatch(),Cl=useTranslations("react"),Il=Nn.product,Ml=kl?.lines?.find($l=>$l.merchandise?.id===Nn.id),Dl=Ml?getScriptDiscounts(Ml):0,Ll=Il.descriptionHtml.length>35||Nn.infoImage;return jsxRuntimeExports.jsxs("li",{"data-testid":"upsell-item",className:"text-right",children:[Tn&&jsxRuntimeExports.jsx("aside",{className:twJoin("mr-3.5 inline-block rounded-t-7 px-3.5","bg-green-75 text-10 font-semibold leading-loose text-green-800"),children:Tn}),jsxRuntimeExports.jsxs("div",{className:cn("grid grid-cols-[72px,1fr,min-content] grid-rows-[auto,auto,auto,min-content]","items-center space-x-3 bg-gray-25 p-2 text-left",xl==="product"?"rounded-7":"rounded-xl",xn?.includes(Nn.id)&&"ring-2 ring-green",$),...Al,children:[jsxRuntimeExports.jsx("div",{className:"col-start-1 row-span-3 row-start-1 self-center rounded bg-cover bg-center",style:{aspectRatio:"72/60",backgroundImage:`url(${imageUrl(Il.featuredImage,100)})`}}),jsxRuntimeExports.jsx("span",{className:cn(Il.subtitle?"row-span-1":"row-span-3","col-start-2 col-end-3 row-start-1 font-header font-bold leading-none",xl==="product"?"text-xs md:text-sm":"text-base"),children:Il?.title}),Il.useDescription?jsxRuntimeExports.jsx("div",{className:"prose col-span-3 col-start-1 row-start-4 !ml-0 px-7 py-3 prose-p:my-2 prose-ul:my-2 prose-li:my-0",dangerouslySetInnerHTML:{__html:Il.descriptionHtml}}):jsxRuntimeExports.jsx("span",{className:`col-start-2 row-start-2 text-xs ${Ll?"leading-snug":"leading-tight"}`,children:Il.subtitle?.value}),jsxRuntimeExports.jsx("span",{className:"col-start-3 row-start-1 text-center text-sm font-bold",children:Nn.price.amount==="..."?jsxRuntimeExports.jsx("span",{children:"..."}):jsxRuntimeExports.jsx(Price,{original:getOriginalVariantPrice(Nn),price:getPrice(Nn.price)-Dl,asText:!0})}),jsxRuntimeExports.jsx("div",{className:"col-span-full row-start-3 row-end-3 py-1.5"}),jsxRuntimeExports.jsx(UpsellCartActions,{className:"z-[2] col-start-3 row-start-2 row-end-4 !ml-1.5 h-6 self-center",inCart:xn?.includes(Nn.id)??!1,soldOut:$n,onAdd:()=>Rl?Rl({...Nn,discounts:Dl}):Tl(Actions$1.addToCart([{quantity:1,id:Nn.id,attributes:[{key:"__upsell",value:Al.product?.id||"true"}]}])),onRemove:Fl&&(()=>Fl(Nn))}),Nl&&jsxRuntimeExports.jsx(Countdown,{to:Nl,className:"col-span-full col-start-1 row-start-5 my-1.5 !ml-0 text-center text-15 text-red-500",separatorClassName:xl==="product"?"":"mx-px",children:jsxRuntimeExports.jsxs("span",{className:"text-gray-750",children:[En??Cl?.presale.offer_ends_in," "]})}),Ll&&!Il.useDescription&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Collapsible,{className:"col-span-2 col-start-2 row-span-2 row-start-3 !ml-0 w-0 min-w-full self-baseline text-xs text-gray-750",title:jsxRuntimeExports.jsx("strong",{className:cn("ml-3"),children:Cl?.products.info}),children:jsxRuntimeExports.jsxs("div",{className:"pb-1.5 pt-3",children:[jsxRuntimeExports.jsx("div",{className:"prose prose-p:my-2 prose-ul:my-2 prose-li:my-0",dangerouslySetInnerHTML:{__html:Il.descriptionHtml}}),isMediaImage(Nn.infoImage?.reference)&&jsxRuntimeExports.jsx("img",{src:imageUrl(Nn.infoImage?.reference.image,"1024x"),alt:""})]})}),jsxRuntimeExports.jsx("div",{className:"relative col-start-1 row-start-4 !mx-0 h-full w-[2px] justify-self-center overflow-hidden",children:jsxRuntimeExports.jsx("div",{className:"absolute top-3 size-full bg-gray-400"})})]})]})]})},parseSubtitleBullets=$=>{const xn=$?.trim();if(!xn)return[];if(xn.startsWith("["))try{const En=JSON.parse(xn);if(Array.isArray(En))return En.map(String).filter(Boolean)}catch{}return xn.split(",").map(En=>En.trim()).filter(Boolean)},UpsellLarge=({className:$,variant:xn,upsellIds:En,soldOut:Nn,onAdd:Tn,onRemove:$n,onMoreInfo:kl,product:xl,...Nl})=>{const Rl=useTranslations("react"),Fl=useDispatch(),Al=xn.product,Tl=En?.includes(xn.id)??!1,Cl=parseSubtitleBullets(Al.subtitle?.value),Il=()=>{if(Tn){Tn(xn);return}Fl(Actions$1.addToCart([{quantity:1,id:xn.id,attributes:[{key:"__upsell",value:xl?.id||"true"}]}]))};return jsxRuntimeExports.jsx("li",{"data-testid":"upsell-item-large",children:jsxRuntimeExports.jsx(CollapsibleRoot,{children:jsxRuntimeExports.jsxs("div",{className:cn("group relative flex flex-col","rounded-[10px] bg-gray-25 p-2 text-[#371f15]",Tl&&"ring-2 ring-green",$),...Nl,children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-[145px,1fr] items-stretch gap-x-[10px]",children:[jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-[8px] bg-white",children:(xn.image??Al.featuredImage)&&jsxRuntimeExports.jsx("img",{className:"size-full object-cover",src:imageUrl(xn.image??Al.featuredImage,400),alt:Al.title,loading:"lazy"})}),jsxRuntimeExports.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntimeExports.jsx("h3",{className:"font-header text-[15px] font-bold leading-[1.3]",children:Al.title}),Cl.length>0&&jsxRuntimeExports.jsx("ul",{className:"mt-[6px] list-disc pl-[16px] text-[11px] leading-[1.3] [&_li]:mb-0",children:Cl.map((Ml,Dl)=>jsxRuntimeExports.jsx("li",{children:Ml},Dl))}),jsxRuntimeExports.jsxs("div",{className:"mt-auto flex items-end justify-between pt-[8px]",children:[jsxRuntimeExports.jsxs(CollapsibleTrigger,{className:"flex items-center gap-1 bg-transparent text-xs font-bold text-[#371f15]",onClick:()=>kl?.(),children:[jsxRuntimeExports.jsx("span",{children:Rl?.products.info}),jsxRuntimeExports.jsx(CollapsibleCaret,{className:"h-[7px] w-auto align-middle"})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntimeExports.jsx(Price,{className:"whitespace-nowrap text-[13px] font-bold leading-[1.3]",original:getOriginalVariantPrice(xn),price:getPrice(xn.price),asText:!0}),jsxRuntimeExports.jsx(UpsellCartActions,{className:"h-7",inCart:Tl,soldOut:Nn,onAdd:Il,onRemove:$n&&(()=>$n(xn))})]})]})]})]}),jsxRuntimeExports.jsx(CollapsibleContent,{className:"mt-[10px] text-xs leading-[1.4] [&_li]:mb-0 [&_ul]:list-disc [&_ul]:pl-4",children:jsxRuntimeExports.jsx("div",{className:"prose prose-p:my-2 prose-ul:my-2 prose-li:my-0",dangerouslySetInnerHTML:{__html:Al.descriptionHtml}})})]})})})},UpsellComponent=({variants:$,disabled:xn,offerTexts:En,expirations:Nn,upsellCart:Tn,stock:$n,...kl})=>{const xl=useTranslations("react"),Nl=Rl=>!($n.sellable(Rl.id)??Rl.availableForSale);return jsxRuntimeExports.jsxs("div",{"data-testid":"upsells",className:cn({"pointer-events-none opacity-step":xn}),children:[jsxRuntimeExports.jsx("h3",{className:"mb-1 text-15 font-semibold",children:xl?.auk_page.choose_accessories}),jsxRuntimeExports.jsx("ul",{className:"space-y-4",children:$.map((Rl,Fl)=>{const Al=En?.[Fl],Tl=Nn?.[Fl]??null;return Fl===0?jsxRuntimeExports.jsx(UpsellLarge,{className:"w-full",variant:Rl,soldOut:Nl(Rl),...kl},Rl.id):jsxRuntimeExports.jsx(Upsell,{className:"w-full",variant:Rl,label:Al,expiration:Tl,soldOut:Nl(Rl),mode:"product",upsellCart:Tn,...kl},Rl.id)})})]})},Upsells=({product:$,selectedVariant:xn,...En})=>{const{upsellCart:Nn,upsells:Tn}=useSelector(xl=>xl.products),$n=extractUpsells($,xn);if($n.length==0)return null;const kl=Tn?$n.map(xl=>Tn.find(Nl=>Nl?.id===xl.id)).filter(isPresent):null;return kl?jsxRuntimeExports.jsx(UpsellComponent,{product:$,variants:kl,upsellCart:Nn,offerTexts:$n.map(xl=>xl.label),expirations:$n.map(xl=>xl.expiration),...En}):jsxRuntimeExports.jsx(UpsellComponent,{product:$,offerTexts:$n.map(xl=>xl.label),expirations:$n.map(xl=>xl.expiration),variants:window.UPSELLS?window.UPSELLS.map(toGqlProduct).map(xl=>({id:xl.variants[0].id,availableForSale:xl.variants[0].availableForSale,price:xl.priceRange.minVariantPrice,compareAtPrice:xl.variants[0].compareAtPrice,image:xl.variants[0].image,infoImage:null,product:{id:xl.id,title:xl.title,subtitle:xl.subtitle,descriptionHtml:xl.descriptionHtml,productType:xl.productType,handle:xl.handle,onlineStoreUrl:xl.onlineStoreUrl,availableForSale:xl.availableForSale,featuredImage:xl.featuredImage,priceRange:xl.priceRange,compareAtPriceRange:xl.compareAtPriceRange,offer:xl.offer,seed_germination:xl.seed_germination,seed_harvest:xl.seed_harvest,seed_lifespan:xl.seed_lifespan,seed_amount:xl.seed_amount,opaque:xl.opaque,useDescription:null}})):[],...En})},VariantOption=({badge:$,prefer:xn="image",option:En,price:Nn,variant:Tn,children:$n,...kl})=>{const xl=Tn.product.handle==="auk-mini-2",Nl=useTranslations("react.presale"),Rl=xn==="color"?Tn.option_color?.value??En.swatch?.color:null,Fl=Tn.option_image?.reference?.image??En.swatch?.image,Al=xn==="image"&&Fl?"url"in Fl&&Fl.url:null;return jsxRuntimeExports.jsxs("label",{className:cn("relative flex cursor-pointer items-center justify-between gap-2 ring-[3px]",xl?"rounded-full":"rounded-2xl",kl.disabled?"cursor-not-allowed opacity-60":"group hover:ring-green-200",kl.checked?"bg-green/15 ring-green hover:ring-green":"bg-stone-100 ring-transparent",xl?"":Al?"pl-4":"px-4 py-3"),children:[jsxRuntimeExports.jsx("input",{className:"sr-only",type:"radio","data-testid":`variant-${kl.name}-${En.name}`,...kl}),xl?jsxRuntimeExports.jsx("span",{className:"sr-only",children:$n}):jsxRuntimeExports.jsx("span",{className:"font-semibold",children:$n}),window.PRODUCT?.handle!=="gift-card"&&!xl&&jsxRuntimeExports.jsx("span",{className:"flex-auto text-sm font-bold text-gray-600",children:Nn>0&&Tn.availableForSale?jsxRuntimeExports.jsxs("span",{children:["+ ",getCurrentCountry().currency.symbol.length===1?getPrice(Nn,!0,0):Nn]}):Tn.availableForSale?null:jsxRuntimeExports.jsx("span",{children:Nl?.sold_out})}),Al?jsxRuntimeExports.jsx("img",{className:"size-10 rounded-2xl md:size-12",src:imageUrl(Al,{height:100}),alt:""}):Rl?jsxRuntimeExports.jsx("span",{className:cn("rounded-full p-3.5",getShadowColor(Rl)),style:{background:Rl}}):jsxRuntimeExports.jsx("div",{className:cn("rounded-full p-0.5 outline outline-2",kl.checked?"outline-green":kl.disabled?"outline-gray-400":"outline-green-700"),children:jsxRuntimeExports.jsx("div",{className:cn("rounded-full p-1.5",kl.checked?"bg-green":"bg-transparent group-hover:bg-green-200")})}),$&&jsxRuntimeExports.jsx("aside",{className:"absolute -top-3 right-12 rounded-full px-3 py-0.5 bg-green-200 text-10 font-semibold text-green-800",children:$?.toUpperCase()})]})},VariantSelector=({product:$,onChange:xn,stage:En=999})=>{const Nn=$.variants,Tn=useTranslations("react.actions"),[$n,kl]=useSearchParams(),xl=useAnalytics(),Nl=$.variants.find(Dl=>gidToId(Dl.id).toString()===$n.get("variant"))??$.variants.find(Dl=>Dl.id===$.defaultVariant?.value),Rl=selectedVariant($,Nl),Fl=getAvailableProductOptions($),[Al,Tl]=reactExports.useState([Nl?Fl.length:En,-1]),Cl=reactExports.useRef(new Set),Il=$.handle==="auk-mini-2",Ml=Nl!=null||Al[1]!==-1;return reactExports.useEffect(()=>{xn&&Nl&&xn(Nl,Al)},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Fl.map((Dl,Ll)=>{const $l=findVariantPrices(Rl,Nn,Dl),Vl=findVariantLabels(Nn,Dl),Bl=En{const Gl=findVariant(Rl,Nn,Dl.name,zl.name);if(!Gl)return null;const ql=isOptionSelected(Rl,Dl.name,zl.name)&&En>=Ll;return jsxRuntimeExports.jsx(VariantOption,{name:Dl.name,checked:ql,disabled:Bl||!Gl.availableForSale,variant:Gl,option:zl,prefer:$.handle==="auk-mini"&&Ll===0?"color":void 0,price:$l[Ul],badge:Vl[Ul],onChange:()=>{const Kl=findVariant(Rl,Nn,Dl.name,zl.name);Tl([Ll,Ul]),Kl&&(kl({variant:gidToId(Kl.id).toString()}),Cl.current.has(Kl.id)||(Cl.current.add(Kl.id),xl.capture("Customize Product",toConvergeProduct(Kl))),xn?.(Kl,[Ll,Ul]))},children:zl.name},`${Dl.name}-${zl.name}`)})]},Dl.name)}),jsxRuntimeExports.jsxs("div",{className:cn("text-[17px]",Il&&!Ml&&"invisible"),children:[Rl.title," -"," ",jsxRuntimeExports.jsx(Price,{priceClassName:"font-bold",original:effectiveCompareAtPrice(Rl),price:Rl.price,asText:!0})]})]})};function getAvailableProductOptions($){const xn=$.variants.find(Nn=>Nn.availableForSale)??$.variants[0];return $.options.map(Nn=>({name:Nn.name,optionValues:Nn.optionValues.filter(Tn=>findVariant(xn,$.variants,Nn.name,Tn.name))})).filter(Nn=>Nn.optionValues.length>1)}function findVariant($,xn,En,Nn){return xn.find(Tn=>Tn.selectedOptions.every($n=>En==$n.name?Nn==$n.value:isOptionSelected($,$n.name,$n.value)))}function isOptionSelected($,xn,En){return $?.selectedOptions.find(Nn=>Nn.name==xn&&Nn.value==En)!==void 0}function findVariantPrices($,xn,En){const Nn=En.optionValues.map($n=>findVariant($,xn,En.name,$n.name)).filter(isDefined).map($n=>({name:$n.selectedOptions.find(kl=>kl.name===En.name)?.value,price:getPrice($n.price)})),Tn=Math.min(...Nn.map($n=>$n.price));return Nn.map($n=>$n.price-Tn)}function findVariantLabels($,xn){return xn.optionValues.map(En=>{const Tn=$.filter(kl=>kl.selectedOptions.some(xl=>xl.name===xn.name&&xl.value===En.name)).map(kl=>kl.offer?.value),$n=[...new Set(Tn)];if($n.length===1&&$n[0]!==void 0)return $n[0]})}function selectedVariant($,xn){return xn??$.variants.find(En=>En.availableForSale)??$.variants[0]}const ProductPage$1=({section:$})=>{const xn=useDispatch(),En=toGraphId($.settings.product_id||"","product"),Nn=useShopifyQuery(ProductDocument,{id:En}),Tn=useSelector($n=>$n.products.upsells);return reactExports.useEffect(()=>{if(!Nn.data)return;const $n=Nn.data.subscription_override?.reference?.variants?.[0],kl=$n&&$n.sellingPlanAllocations.length>0?$n:Nn.data.variants[0];xn(Actions$1.loadUpsells(Nn.data,kl))},[Nn.data,xn]),Nn.error?jsxRuntimeExports.jsx(ProductError,{onRetry:()=>Nn.refetch()}):Nn&&Nn.data===null?jsxRuntimeExports.jsx(NotFound,{}):Nn.data&&Tn!==null?jsxRuntimeExports.jsx(ProductPageComponent,{product:Nn.data,settings:$.settings,blocks:$.blocks}):null},ProductPageComponent=({product:$,settings:xn,blocks:En})=>{const Nn=useCountry(),Tn=useDispatch(),$n=useWindowSize(),kl=useSelector(hu=>hu.cart.pendingOperation!==null),[xl,Nl]=reactExports.useState(null),[Rl,Fl]=reactExports.useState(-1),[Al,Tl]=reactExports.useState(1),Cl=useSelector(hu=>hu.cart.stagedUpsells),Il=useSelector(hu=>hu.cart.cost?getPrice(hu.cart.cost.subtotalAmount):0),Ml=useSelector(hu=>hu.products.upsellCart),Dl=useMarket(),[Ll,$l]=reactExports.useState(),[Vl]=useSearchParams(),Bl=Ll||$.variants[0],zl=(hu,[Du])=>{Du>=Rl&&Fl(Du);const Nc=new Set(extractUpsells($,Bl).map(kc=>kc.id)),Lc=new Set(extractUpsells($,hu).map(kc=>kc.id));Cl.forEach(kc=>{Nc.has(kc.id)&&!Lc.has(kc.id)&&Tn(Actions$1.removeUpsell(kc.id))}),$l(hu)},Ul=getAvailableProductOptions($),Gl=useTranslations("react",{COUNTRY:Nn.name,VARIANT_TYPE:Ul[Rl+1]?.name.toLocaleLowerCase()}),ql=useLocale().locale,Kl=$.subscription_override?.reference,Jl=Kl?.variants?.[0]??null,tu=isOverrideWithheld($),ru=Jl??Bl,Yl=xn.seed_picker_slots??0,cu=reactExports.useMemo(()=>buildSeedPool(extractProductUpsells($),extractSeedCollection($)),[$]),gu=reactExports.useMemo(()=>cu?.filter(hu=>!isSeedMix(hu))??null,[cu]),_u=!tu&&ru.sellingPlanAllocations.length>0,ku=Yl>0&&!!gu?.length&&_u,ou=useSelector(hu=>hu.products.upsells),uu=useStock([$.id,Jl?.product.id,...cu?.map(hu=>hu.id)??[],...ou?.map(hu=>hu.product.id)??[]]),au=uu.data??[],Wl=reactExports.useMemo(()=>tu||isSeed($)&&!ku?[]:[...ru.sellingPlanAllocations].sort(byCadence),[tu,ru,$,ku]),[eu,fu]=reactExports.useState(!0),lu=$.requiresSellingPlan,vu=lu||eu,[Su,Ru]=reactExports.useState(null),xu=Wl.find(hu=>hu.sellingPlan.id===Su)??Wl[0],Eu=vu&&!!xu,Iu=Eu?ru:Bl;reactExports.useEffect(()=>{Tn(Actions$1.loadUpsells($,Iu))},[$,Iu,Tn]);const Ou=Eu?xu.sellingPlan.id:null,Lu=reactExports.useMemo(()=>{if(!Ou)return[];const hu=Du=>Du.some(Nc=>Nc.sellingPlan.id===Ou);return[...$.variants.filter(Du=>hu(Du.sellingPlanAllocations)).map(Du=>Du.id),...(Jl?[Jl]:[]).filter(Du=>hu(Du.sellingPlanAllocations)).map(Du=>Du.id),...(cu??[]).map(Du=>Du.variants[0]).filter(Du=>hu(Du.sellingPlanAllocations)).map(Du=>Du.id)]},[Ou,$,Jl,cu]);reactExports.useEffect(()=>{Eu&&Tl(1)},[Eu]),reactExports.useEffect(()=>{Tn(Actions$1.setUpsellCartPlan(Lu,Ou))},[Lu,Ou,Tn]);const Vu=reactExports.useMemo(()=>new Set(ku&&gu?gu.map(hu=>hu.variants[0].id):[]),[ku,gu]),Xu=!!xu&&!vu,Cu=Xu?Cl.filter(hu=>!Vu.has(hu.id)):Cl,zu=Ml?.lines?.some(hu=>hu.merchandise?.id===Iu.id)??!1,Mu=hu=>Eu&&Vu.has(hu.id)&&(!zu||hu.discounts===void 0)?getPrice(hu.price):hu.discounts??0,nc=Xu?Al*Cl.filter(hu=>Vu.has(hu.id)).reduce((hu,Du)=>hu+getPrice(Du.price)-Mu(Du),0):0,sc=getOriginalVariantPrice(Bl),Tc=Al*Cu.reduce((hu,Du)=>hu+getOriginalVariantPrice(Du),sc),fc=Ml?.lines?.find(hu=>$.variants.some(Du=>Du.id===hu.merchandise?.id)),oc=getPrice(Bl.price)-getScriptDiscounts(fc),Uu=Al*Cu.reduce((hu,Du)=>hu+getPrice(Du.price)-Mu(Du),oc),Xc=$.variants.flatMap(getVariantImages),sd=Xc.map(hu=>hu.id),gd=$.images.filter(hu=>!sd.includes(hu.id)),yd=!!Vl.get("variant")||!!$.defaultVariant?.value,$d=$.handle==="auk-mini-2"&&!yd?[gd[0],...getVariantImages(Bl),...gd.slice(1)]:[...getVariantImages(Bl),...gd],Sc=au.find(hu=>hu.id===$.id),ic=Sc?.variants.find(hu=>hu.id===Bl.id),bc=reactExports.useMemo(()=>ic?datedShipments(ic,$.handle).slice().sort(by(hu=>new Date(hu.estimatedCheckinDate),Order.Desc)).pop()??null:null,[ic,$.handle]),Ec=reactExports.useMemo(()=>{if(!ic||!Gl||!isAwaitingStock(ic,$.handle))return null;const hu=Sc?.variants.filter(lc=>lc.id!==Bl.id)??[];if($.hideMixedVariantDeliveryWarning?.value==="true"&&hu.some(lc=>!isAwaitingStock(lc,$.handle))||$.handle==="auk-mini-2"&&hu.length>0&&earliestDatedTime(ic,$.handle)<=Math.min(...hu.map(lc=>earliestDatedTime(lc,$.handle))))return null;if(ic.shipments.length===0)return{message:Gl.auk_page.delayed_delivery_no_shipments};const Du=bc?.estimatedCheckinDate?(new Date(bc.estimatedCheckinDate).getTime()-new Date().getTime())/(1e3*60*60*24):0,Nc=ic.inventoryPolicy==="CONTINUE",Lc=Du>10,kc=Lc?Nc?Gl.auk_page.delayed_delivery_on:Gl.auk_page.back_in_stock_on:Nc?Gl.auk_page.delayed_delivery_by:Gl.auk_page.back_in_stock_by,Hd=Lc?new Intl.DateTimeFormat(ql,{day:"numeric",month:"long"}).format(new Date(bc.estimatedCheckinDate)):Math.ceil(Du).toString();return bc&&Du>1?{...bc,message:kc?.replace(Lc?"{DATE}":"{DAYS}",Hd)}:null},[ic,Sc,Bl.id,$.handle,$.hideMixedVariantDeliveryWarning,Gl,bc,ql]),Dc=useFreeShippingThreshold(),hp=useShippingSetting(),kd=[Sc?isSellable$1(Sc):$.availableForSale,ic?isSellable$1(ic):!0,!Eu||!Jl||(uu.sellable(Jl.id)??Jl.availableForSale)].every(Boolean),rm=kl||hasVariants($)&&RlRu(hu.sellingPlan.id),subscribed:vu,onSubscribedChange:fu,planRequired:lu,price:Uu,subscribePrice:Jc,comparePrice:Tc,extraPerk:xn.subscription_extra_perk},Pm=Cl.filter(hu=>!Vu.has(hu.id)),gp=Pm.reduce((hu,Du)=>hu+getPrice(Du.price)-Mu(Du),0),Im=Jl?[$.id,Jl.product.id]:[$.id],Mm={subtotal:Uu,quantity:Al*(1+Cu.length),productIds:Im},am={subtotal:Jc+nc-Al*gp,quantity:Al*(1+Cl.length-Pm.length),productIds:Im},sm=getSubscriptionShipping(hp,Bl.price.currencyCode,Mm,am,Il),Ud=getSubscriptionShippingSaving(hp,Bl.price.currencyCode,Mm,am),Bd=getPrice(Bl.price)>=(Dc??0)||Eu&&(sm?.saving??0)>0?Dl?.taxIncluded?Gl?.checkout.inc_shipping_and_taxes:Gl?.checkout.inc_shipping:Dl?.taxIncluded?Gl?.checkout?.inc_taxes:null,om=xd,ed=Math.max(Tc,Uu)+(Eu?sm?.saving??0:0),od=($.subscription_images?.references??[]).filter(isMediaImage).map(hu=>hu.image),lm=getGalleryOverrides($,$d),zd=Kl?.images??[],kp=Eu&&zd.length>0?zd:lm,xp=Eu&&od.length>0?[...od,...kp.slice(od.length)]:kp,_p=ku&&gu&&jsxRuntimeExports.jsx(SeedPicker,{slots:Yl,seeds:gu,stock:uu,onCard:!!xu,voided:Xu,onAdd:hu=>Tn(Actions$1.addUpsell(hu.variants[0])),onRemove:hu=>Tn(Actions$1.removeUpsell(hu.variants[0].id))}),ld=hu=>{const Du=Cu.filter(lc=>Vu.has(lc.id)).map(lc=>String(lc.id)).sort(),Nc=Du.length>0?`${$.id}:${Du.join(",")}`:null,Lc=new Map;for(const lc of Cu){const bp=Lc.get(lc.id);if(bp)bp.quantity+=Al;else{const Wu=Vu.has(lc.id);Lc.set(lc.id,{...lc,sellingPlanId:Wu?hu:void 0,attributes:[{key:Attributes.UPSELL,value:$.id},...Wu&&Nc?[{key:Attributes.INCLUDED,value:Nc}]:[]],quantity:Al})}}const kc=Iu.id!==Bl.id,Hd=[...bc&&!kc?[{key:Attributes.ESTIMATED_DATE,value:bc.estimatedCheckinDate},{key:Attributes.PO_ID,value:bc.poId}].filter(lc=>isPresent(lc.value)):[],...kc?[{key:Attributes.ONE_TIME_PRICE,value:`${getOriginalVariantPrice(Bl)}|${Bl.price.currencyCode}`},{key:Attributes.PRODUCT_PAGE,value:$.handle}]:[],...Nc?[{key:Attributes.GROUP,value:Nc}]:[]];return[{...Iu,sellingPlanId:hu,quantity:Al,attributes:Hd.length>0?Hd:void 0},...Lc.values()]},Sp=()=>kl?null:kd?hasVariants($)?Nl(Gl?.auk_page.error_no_variant):null:Nl(Gl?.auk_page.out_of_stock);return reactExports.useEffect(()=>Nl(null),[rm]),reactExports.useEffect(()=>{try{window.Klarna?.OnsiteMessaging?.refresh?.()}catch{}},[Uu]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{id:$.handle,className:"mx-auto grid grid-cols-1 text-15 lg:grid-cols-[4fr,minmax(450px,28vw)] xl:grid-cols-[4fr,3fr]2xl:grid-cols-[5fr,minmax(400px,3fr)] 4xl:grid-cols-[4fr,minmax(400px,2fr)]mb-9 mt-4 gap-6 lg:mb-15 lg:mt-6 lg:px-6 xl:mt-7 xl:min-w-[88vw] xl:max-w-[160vh] xl:gap-12 xl:px-12",children:[Vd&&jsxRuntimeExports.jsx("hgroup",{className:"mx-3.5 space-y-2 lg:hidden",children:jsxRuntimeExports.jsx(ProductHeader,{product:$,settings:xn})}),jsxRuntimeExports.jsxs("div",{className:"gallery relative min-h-[70vw] lg:sticky lg:top-7 lg:min-h-0 lg:self-start",children:[xp.length>0&&jsxRuntimeExports.jsx(Gallery,{images:xp,sizing:isSeed($)&&!isOpaque($)?"contain":void 0,mode:$n.width>1024?"both":"inline",thumbnails:$n.width>1024,className:"safari-overflow-fix lg:aspect-[12/8] lg:h-auto lg:rounded-3xl no-supports-aspect:lg:min-h-[60vh]",preloadedImages:[...Xc,...od,...zd]}),!Vd&&jsxRuntimeExports.jsx(Promo,{promo:$,className:cn("absolute left-0 top-0 rounded-br-lg bg-green-50 px-6 py-3 text-green-700 lg:top-6","lg:left-[initial] lg:right-0 lg:rounded-l-xl lg:rounded-br-none")})]}),jsxRuntimeExports.jsxs("div",{className:"mx-3.5 flex flex-col gap-4 lg:mx-0",children:[jsxRuntimeExports.jsx("hgroup",{className:cn("space-y-1.5",Vd&&"hidden lg:block"),children:jsxRuntimeExports.jsx(ProductHeader,{product:$,settings:xn})}),jsxRuntimeExports.jsx(SeedInfo,{product:$}),jsxRuntimeExports.jsx(FunFacts,{product:$}),hasVariants($)&&jsxRuntimeExports.jsx(VariantSelector,{stage:Rl,product:$,onChange:zl}),Ec&&jsxRuntimeExports.jsx("p",{className:cn("text-base font-bold",kd?"text-yellow-600":"text-red-700"),children:Ec.message}),jsxRuntimeExports.jsx(Upsells,{product:$,stock:uu,disabled:RlTn(Actions$1.addUpsell(hu)),onRemove:hu=>Tn(Actions$1.removeUpsell(hu.id)),upsellIds:Cl.map(hu=>hu.id),selectedVariant:Bl}),ku?!xu&&_p:cu&&jsxRuntimeExports.jsx(SeedAddOns,{seeds:cu,stock:uu,staged:Cl,onAdd:hu=>Tn(Actions$1.addUpsell(hu.variants[0])),onRemove:hu=>Tn(Actions$1.removeUpsell(hu.variants[0].id))}),jsxRuntimeExports.jsxs("div",{className:"mt-3 flex flex-col gap-1.5",children:[xu&&jsxRuntimeExports.jsx(SubscriptionBox,{...vp,selectedPlan:xu,shipping:sm,yearlyShippingSaving:Ud,seedPicker:_p}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-[auto,auto] items-center gap-x-1.5 text-lg leading-none xs:text-22",children:[jsxRuntimeExports.jsx("strong",{children:Gl?.checkout?.total}),jsxRuntimeExports.jsx("strong",{className:"text-right text-e6/8 leading-none text-green-700",children:ed>om&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Gl?.checkout.you_save," ",getPrice(ed-om,!0,0)]})}),jsxRuntimeExports.jsx("span",{className:"text-e5/8",children:Bd}),jsxRuntimeExports.jsx(Price,{className:"text-right font-bold leading-none",original:ed>om?jsxRuntimeExports.jsx("span",{className:"text-e6/8",children:getPrice(ed,!0,0)}):null,price:getPrice(om,!0,0)})]}),xn.show_quantity_selector&&!Eu&&jsxRuntimeExports.jsxs("label",{className:"my-0 flex items-center rounded-full bg-gray-100 py-3 pl-6 pr-4 text-lg",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0",children:Gl?.auk_page.quantity}),jsxRuntimeExports.jsx("span",{className:"mx-2",children:"-"}),jsxRuntimeExports.jsx("input",{className:"w-full min-w-0 bg-transparent text-inherit outline-none",type:"number",min:1,defaultValue:Al,inputMode:"decimal",onChange:hu=>Tl(parseNumber(hu.target.value)||1)})]}),jsxRuntimeExports.jsx(Button,{"data-testid":"add-to-cart",size:"xl",className:"uppercase",onClick:hu=>{Nl(null),Tn(Actions$1.addToCart(ld(Eu?xu.sellingPlan.id:void 0)))},onDisabledClick:hu=>Sp(),disabled:rm,title:hasVariants($)&&Rlhu.type==="payment_icons")&&jsxRuntimeExports.jsx(PaymentIcons,{size:"normal",className:"justify-end"})]})]}),jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:".main-content__wrapper { visibility: visible !important; }"}}),jsxRuntimeExports.jsx(DynamicPortal,{selector:".in-the-box",children:jsxRuntimeExports.jsx(InTheBox,{productId:$.id,upsells:Cl})})]})},ProductPage=({section:$})=>jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(ProductPage$1,{section:$})}),Action=({className:$,children:xn,...En})=>jsxRuntimeExports.jsx(Button,{...En,className:cn("bg-green font-bold sm:px-3.5 sm:py-2 sm:text-15",{"px-3.5 py-2 text-15":En.size!=="sm"},$),children:xn}),Actions=({className:$,children:xn,...En})=>jsxRuntimeExports.jsx("div",{...En,className:cn("flex space-x-1.5",$),children:xn}),Container=({className:$,size:xn="large",product:En,bg:Nn,available:Tn=En.availableForSale,children:$n})=>{const kl=useTranslations("react"),[xl,Nl]=reactExports.useState(!1),Rl=isOpaque(En);return jsxRuntimeExports.jsxs(animated.li,{"data-testid":"product-card",onMouseEnter:()=>Nl(!0),onMouseLeave:()=>Nl(!1),itemScope:!0,itemType:"https://schema.org/Product",itemProp:"itemListElement",className:cn("safari-overflow-fix relative h-72 overflow-hidden rounded-3xl bg-white text-22",{"h-40 sm:h-72":xn=="small","h-52 sm:h-72":xn=="medium","h-72":xn=="large"},$),children:[jsxRuntimeExports.jsx("img",{className:cn("absolute z-0 size-full transform-gpu transition-transform duration-300 ease-out",Rl?"object-cover":"object-contain",xl?"scale-100":"scale-110"),src:imageUrl(En.featuredImage,700),alt:"",itemProp:"image",loading:"lazy"}),En.productType&&jsxRuntimeExports.jsx("meta",{itemProp:"category",content:En.productType}),jsxRuntimeExports.jsxs("div",{itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer",hidden:!0,children:[jsxRuntimeExports.jsx("meta",{itemProp:"price",content:En.priceRange.minVariantPrice.amount}),jsxRuntimeExports.jsx("meta",{itemProp:"priceCurrency",content:En.priceRange.minVariantPrice.currencyCode}),jsxRuntimeExports.jsx("link",{itemProp:"availability",href:`https://schema.org/${Tn?"InStock":"OutOfStock"}`}),jsxRuntimeExports.jsx("meta",{itemProp:"url",content:productUrl(En)}),getPrice(En.compareAtPriceRange.minVariantPrice)>getPrice(En.priceRange.minVariantPrice)&&jsxRuntimeExports.jsxs("div",{itemProp:"priceSpecification",itemScope:!0,itemType:"https://schema.org/UnitPriceSpecification",children:[jsxRuntimeExports.jsx("meta",{itemProp:"price",content:En.compareAtPriceRange.minVariantPrice.amount}),jsxRuntimeExports.jsx("meta",{itemProp:"priceCurrency",content:En.compareAtPriceRange.minVariantPrice.currencyCode}),jsxRuntimeExports.jsx("link",{itemProp:"priceType",href:"https://schema.org/ListPrice"})]})]}),jsxRuntimeExports.jsx("a",{className:cn("absolute z-[5] size-full",{"bg-black opacity-30":Rl},Nn),href:productUrl(En),"aria-hidden":"true",tabIndex:-1}),jsxRuntimeExports.jsxs("div",{className:cn("pointer-events-none absolute z-10 flex size-full flex-col items-start justify-between",{"p-7":xn=="large"||xn=="medium","p-3 sm:p-7":xn=="small"}),children:[jsxRuntimeExports.jsxs("div",{className:"pointer-events-auto",children:[jsxRuntimeExports.jsx("h3",{itemProp:"name",className:cn("mb-2 font-body leading-none",{"text-lg xs:text-22":xn==="small","text-[27px]":xn==="medium"||xn==="large"},Rl?"text-white":"text-gray-900"),children:jsxRuntimeExports.jsx("a",{href:productUrl(En),itemProp:"url",children:En.title})}),jsxRuntimeExports.jsx(Promo,{promo:En,className:"inline-block justify-self-start rounded-full px-3 py-1.5 bg-white text-15 font-bold text-green-550"})]}),jsxRuntimeExports.jsx("div",{className:"pointer-events-auto",children:Tn?$n:jsxRuntimeExports.jsx(Actions,{children:jsxRuntimeExports.jsx(Action,{href:productUrl(En),className:"bg-stone-300 px-9",children:kl?.auk_page.out_of_stock})})})]})]})},ProductCard={Actions,Action,Container},sortProducts=$=>(xn,En)=>{switch($){default:case"featured":return xn.offer&&En.offer?0:xn.offer?-1:En.offer?1:0;case"alphabetical":return xn.title.localeCompare(En.title);case"alphabetical_reversed":return En.title.localeCompare(xn.title);case"products_high":return getPrice(En.priceRange.minVariantPrice)-getPrice(xn.priceRange.minVariantPrice);case"products_low":return getPrice(xn.priceRange.minVariantPrice)-getPrice(En.priceRange.minVariantPrice);case"date":return new Date(xn.publishedAt).getTime()-new Date(En.publishedAt).getTime();case"date_reversed":return new Date(En.publishedAt).getTime()-new Date(xn.publishedAt).getTime()}},Title=({className:$,children:xn,...En})=>jsxRuntimeExports.jsx("h2",{className:cn("mb-12 text-center text-header md:text-header-lg",$),...En,children:xn}),Section=({className:$,containerCns:xn,title:En,children:Nn,section:Tn,backgroundColor:$n,...kl})=>jsxRuntimeExports.jsx("div",{className:cn(xn),"data-section-id":Tn?.id,"data-section-type":Tn?.name,style:{backgroundColor:$n},children:jsxRuntimeExports.jsxs("section",{className:cn("mx-auto max-w-pagewidth-xl px-6 pb-28 pt-12",$),...kl,children:[jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:En&&jsxRuntimeExports.jsx(Title,{children:En})}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Nn})]})}),List=({className:$,children:xn,...En})=>jsxRuntimeExports.jsx("ul",{className:cn("grid grid-cols-1 gap-7 text-white sm:grid-cols-2 lg:grid-cols-3",$),...En,children:xn}),CollectionSection=({section:$})=>{const xn=useDispatch(),En=useTranslations("react"),{data:Nn}=useShopifyQuery(ProductsDocument,{}),Tn=useFreeShippingThreshold(),{data:$n}=useShopifyQuery(CollectionDocument,{handle:$.settings.collection},{enabled:!!$.settings.collection}),kl=$n?.products?.map(Rl=>Rl.id)?.filter(Rl=>gidToId(Rl)!==getCurrentPageProductId()),xl=Nn?.filter(Rl=>kl?.includes(Rl.id)).sort(sortProducts($.settings.sort)),Nl=useStock(Nn?.map(Rl=>Rl.id));return xl&&xl.length>0?jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsxs(Section,{title:$.settings.title||$n?.title,section:$,backgroundColor:$.settings.background_color,id:$.settings.anchor||void 0,itemScope:!0,itemType:"https://schema.org/ItemList",children:[($.settings.title||$n?.title)&&jsxRuntimeExports.jsx("meta",{itemProp:"name",content:$.settings.title||$n?.title||""}),$.settings.show_free_shipping_note&&Tn!==null&&jsxRuntimeExports.jsxs("p",{className:"mb-15 text-center text-22 font-semibold md:hidden",children:[En?.products.free_shipping_over," ",getPrice(Tn,!0)]}),jsxRuntimeExports.jsx(List,{className:cn({"grid-cols-2":$.settings.size=="small"}),children:xl?.map(Rl=>jsxRuntimeExports.jsx(ProductCard.Container,{product:Rl,size:$.settings.size,available:Nl.sellable(Rl.id)??Rl.availableForSale,children:jsxRuntimeExports.jsxs(ProductCard.Actions,{children:[jsxRuntimeExports.jsx(ProductCard.Action,{size:"xs",href:productUrl(Rl),className:"sm:px-9",children:En?.actions.buy_now}),$.settings.show_quick_add&&jsxRuntimeExports.jsx(ProductCard.Action,{size:"xs",title:En?.actions.add_to_cart,onClick:Fl=>xn(Actions$1.addToCart([{quantity:1,id:Rl.variants[0]?.id}])),children:"+"})]})},Rl.id))})]})}):null},Collection=({section:$})=>jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(CollectionSection,{section:$})}),Sections=()=>{const state=useReadyState(),[sections,setSections]=reactExports.useState(window.Sections);return reactExports.useEffect(()=>{if(!window.Shopify.designMode)return;const events=["shopify:section:load","shopify:section:reorder"];function onChange(e){const elem=e.target,script=elem?.querySelector("script");script&&elem&&(window.Sections=window.Sections.filter($=>$.id!==`#${elem.id}`),eval(script.innerText)),setSections([...window.Sections])}return events.forEach($=>window.addEventListener($,onChange)),()=>{events.forEach($=>window.removeEventListener($,onChange))}},[]),state==="loading"?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[sections?.map($=>jsxRuntimeExports.jsx(ErrorBoundary,{onError:xn=>console.warn(`${startCase($.name)} Error`,xn),children:jsxRuntimeExports.jsxs(DynamicPortal,{selector:$.id,children:[$.name==="Comparison"&&jsxRuntimeExports.jsx(ComparisonSection,{section:$}),$.name==="Reviews"&&jsxRuntimeExports.jsx(ReviewsSection,{section:$}),$.name==="Steps"&&jsxRuntimeExports.jsx(StepsSection,{section:$}),$.name==="Blogs"&&jsxRuntimeExports.jsx(Articles,{section:$}),["BlogList"].includes($.name)&&jsxRuntimeExports.jsx(Blogs,{}),$.name==="InTheBox"&&jsxRuntimeExports.jsx(InTheBoxSection,{section:$}),$.name==="ColorwayGallery"&&jsxRuntimeExports.jsx(ColorwayGallerySection,{section:$}),$.name==="SeedsSlider"&&jsxRuntimeExports.jsx(SeedsSection,{section:$}),$.name==="PotSlider"&&jsxRuntimeExports.jsx(PotSliderSection,{section:$}),$.name==="SenitGallery"&&jsxRuntimeExports.jsx(SenitGallerySection,{section:$}),$.name==="Collage"&&jsxRuntimeExports.jsx(CollageSection,{section:$}),$.name==="Infographics"&&jsxRuntimeExports.jsx(InfographicsSection,{section:$}),$.name==="SenitFaq"&&jsxRuntimeExports.jsx(FaqSection,{section:$}),$.name==="VideoHighlight"&&jsxRuntimeExports.jsx(VideoHighlightSection,{section:$}),$.name==="ProductBlock"&&jsxRuntimeExports.jsx(ProductPage,{section:$}),["collection-section"].includes($.name)&&jsxRuntimeExports.jsx(Collection,{section:$})]})},$.id)),jsxRuntimeExports.jsx(DynamicPortal,{selector:".countdown[data-to]",multiple:!0,render:$=>{const xn=$.getAttribute("data-to");if(!xn)return null;const Nn=/[Zz]|[+-]\d{2}:\d{2}$/.test(xn)?new Date(xn):new Date(xn+getTimezoneOffsetString("Europe/Oslo",new Date(xn)));return jsxRuntimeExports.jsx(Countdown,{to:Nn})}})]})},IMAGE_KEYS=["image_1","image_2","image_3","image_4","image_5","image_6","image_7","image_8"];function blockImages($){return IMAGE_KEYS.map(xn=>$.settings[xn]).filter(xn=>!!xn)}const ColorwayGallerySection=({section:$})=>{const[xn,En]=reactExports.useState(0),[Nn,Tn]=reactExports.useState({}),$n=$.blocks.length,kl=$.blocks[xn],xl=kl?blockImages(kl):[],Nl=Nn[xn]??0,Rl=useDominantColor(xl[Nl],{height:400,width:100,crop:"bottom"}),Fl=$l=>Tn(Vl=>({...Vl,[xn]:$l})),Al=reactExports.useRef(null),[Tl,Cl]=reactExports.useState(0),[Il,Ml]=reactExports.useState(!1),Dl=useDrag(({active:$l,movement:[Vl],direction:[Bl],cancel:zl})=>{if(xl.length<=1)return;const Ul=Al.current?.clientWidth||1;if($l&&Math.abs(Vl)>Ul/4){const Gl=clamp$1(Nl+(Bl>0?-1:1),0,xl.length-1);Fl(Gl),Cl(0),Ml(!1),zl();return}Ml($l),Cl($l?Vl:0)},{axis:"x",threshold:5,filterTaps:!0}),Ll=sectionSpacingProps($.settings,{top:4.375,bottom:4.375});return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,className:cn("px-3.5 md:px-7 min-[1280px]:px-0",Ll.className),style:{...Ll.style,...$.settings.background_color?{backgroundColor:$.settings.background_color}:{}},children:[$.settings.title&&jsxRuntimeExports.jsx("h2",{className:cn("mx-auto mb-7 max-w-[1440px] text-center font-header text-header font-normal leading-tight","md:mb-10 lg:text-header-lg"),style:{color:$.settings.title_color||"#1B1B1B"},children:$.settings.title}),jsxRuntimeExports.jsx("div",{role:"tablist","aria-label":"Colorways",className:"mx-auto flex w-fit max-w-full items-center gap-1 rounded-full bg-[#F8F1E4] p-1 md:hidden",children:$.blocks.map(($l,Vl)=>{const Bl=Vl===xn;return jsxRuntimeExports.jsxs("button",{type:"button",role:"tab","aria-selected":Bl,"aria-label":$l.settings.title,onClick:()=>En(Vl),className:cn("flex shrink-0 items-center rounded-full bg-beige text-xs transition-[background-color,padding] duration-300 ease-out xs:text-base",Bl?"bg-[#eed5ae] pr-3.5 md:bg-[#024227] md:text-white":""),children:[jsxRuntimeExports.jsx(Image,{src:$l.settings.swatch_image,className:"size-6 shrink-0 rounded-full object-cover xs:size-10",dimensions:{width:80,height:80,crop:"center"}}),jsxRuntimeExports.jsx("span",{className:cn("grid overflow-hidden text-base leading-none transition-[grid-template-columns] duration-300 ease-out",Bl?"grid-cols-[1fr] pl-2.5":"grid-cols-[0fr] pl-0"),children:jsxRuntimeExports.jsx("span",{className:"overflow-hidden whitespace-nowrap leading-normal",children:$l.settings.title})})]},$l.id)})}),jsxRuntimeExports.jsxs("div",{role:"tablist","aria-label":"Colorways",className:"relative mx-auto hidden max-w-[805px] overflow-hidden rounded-full bg-[#F8F1E4] p-0.5 md:flex",children:[jsxRuntimeExports.jsx("div",{"aria-hidden":"true",className:"absolute inset-y-0.5 left-0.5 rounded-full bg-[#024227] transition-transform duration-300 ease-out",style:{width:`calc((100% - 0.5rem) / ${$n})`,transform:`translateX(${xn*100}%)`}}),$.blocks.map(($l,Vl)=>jsxRuntimeExports.jsx("button",{type:"button",role:"tab","aria-selected":Vl===xn,onClick:()=>En(Vl),className:cn("relative z-10 flex-1 whitespace-nowrap rounded-full px-3 py-2 text-[16px] transition-colors",Vl===xn?"text-white":"text-black"),children:$l.settings.title},$l.id))]}),xl.length>0&&jsxRuntimeExports.jsxs("div",{className:"relative mx-auto mt-6 w-full max-w-screen-senit",children:[jsxRuntimeExports.jsx("div",{ref:Al,...Dl(),className:cn("relative touch-pan-y overflow-hidden rounded-20",xl.length>1&&"cursor-grab",Il&&"cursor-grabbing"),children:jsxRuntimeExports.jsx("div",{className:"flex transition-transform duration-500 ease-out",style:{transform:`translateX(-${xn*100}%)`},children:$.blocks.map(($l,Vl)=>{const Bl=blockImages($l),zl=Nn[Vl]??0,Ul=Vl===xn,Gl=Ul&&Il?Tl:0;return jsxRuntimeExports.jsx("div",{...attributesToProps($l.attributes),className:"w-full shrink-0 overflow-hidden",children:jsxRuntimeExports.jsx("div",{className:"flex",style:{transform:`translate3d(calc(-${zl*100}% + ${Gl}px), 0, 0)`,transition:Ul&&Il?"none":"transform 500ms cubic-bezier(0, 0, 0.2, 1)"},children:Bl.length>0?Bl.map((ql,Kl)=>jsxRuntimeExports.jsx("div",{className:"relative aspect-[4/5] w-full shrink-0 md:aspect-[1008/633]",children:jsxRuntimeExports.jsx(Image,{src:ql,alt:$l.settings.title||"",loading:Vl===0&&Kl===0?"eager":"lazy",draggable:!1,className:"absolute inset-0 size-full select-none object-cover"})},ql+Kl)):jsxRuntimeExports.jsx("div",{className:"aspect-[4/5] w-full shrink-0 bg-[#F8F1E4] md:aspect-[1008/633]"})})},$l.id)})})}),xl.length>1&&jsxRuntimeExports.jsx(SlideshowControls,{outside:!0,value:Nl,color:Rl??void 0,arrowColor:cn(Rl,"min-[1280px]:text-inherit"),onChange:Fl,loop:!1,keys:xl.length})]})]})},REDUCED_MOTION="(prefers-reduced-motion: reduce)";function usePrefersReducedMotion(){const[$,xn]=reactExports.useState(()=>window.matchMedia(REDUCED_MOTION).matches);return reactExports.useEffect(()=>{const En=window.matchMedia(REDUCED_MOTION),Nn=()=>xn(En.matches);return En.addEventListener("change",Nn),()=>En.removeEventListener("change",Nn)},[]),$}function orderedSources($){const xn=$?.sources??[];return[...xn.filter(En=>En.format==="mp4"),...xn.filter(En=>En.format!=="mp4")]}function hasVideoSources($){return orderedSources($).length>0}const SectionVideo=({video:$,className:xn,style:En,poster:Nn,label:Tn,autoplay:$n=!0,loop:kl=!0,muted:xl=!0,controls:Nl=!1})=>{const Rl=reactExports.useRef(null),Fl=$,Al=orderedSources($),Tl=Al.length>0,Cl=usePrefersReducedMotion(),Il=$n&&!Cl,[Ml,Dl]=reactExports.useState(!0),[Ll,$l]=reactExports.useState();return reactExports.useLayoutEffect(()=>{const Vl=Rl.current?.clientWidth;Vl&&$l(Vl*1.2*window.devicePixelRatio)},[Tl]),reactExports.useEffect(()=>{const Vl=Rl.current;if(!Vl||!Tl)return;const Bl=new IntersectionObserver(([zl])=>{if(!zl.isIntersecting){Vl.paused||Vl.pause();return}Il&&(Vl.muted=xl,Vl.play().catch(Ul=>{Ul instanceof Error&&Ul.name!=="AbortError"&&Ul.name!=="NotAllowedError"&&console.error(Ul)}))},{threshold:.4});return Bl.observe(Vl),()=>Bl.disconnect()},[Il,xl,Tl]),Tl?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("video",{ref:Rl,className:xn,style:En,poster:imageUrl(Nn||Fl?.preview_image?.src,Ll?{width:Ll}:void 0),"aria-label":Tn||void 0,controls:Nl||!Il,controlsList:"nodownload noplaybackrate noremoteplayback",disablePictureInPicture:!0,onContextMenu:Vl=>Vl.preventDefault(),onPlay:()=>Dl(!1),onPause:()=>Dl(!0),loop:kl,muted:xl,playsInline:!0,preload:Il?"none":"metadata",children:Al.map(Vl=>jsxRuntimeExports.jsx("source",{src:Vl.url,type:Vl.mime_type},Vl.url))}),!Il&&Ml&&jsxRuntimeExports.jsx("button",{type:"button","aria-label":"Play video",onClick:()=>{const Vl=Rl.current;Vl&&Vl.play().catch(Bl=>{Bl instanceof Error&&Bl.name!=="AbortError"&&console.error(Bl)})},className:cn("absolute left-1/2 top-1/2 flex size-14 -translate-x-1/2 -translate-y-1/2 items-center justify-center","rounded-full border-0 bg-black/40 text-white transition-colors hover:bg-black/60 md:size-16"),children:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 14",fill:"currentColor","aria-hidden":"true",className:"ml-0.5 h-5 w-4",children:jsxRuntimeExports.jsx("path",{d:"M12 7L0 14V0L12 7Z"})})})]}):null};function cardWidthClass($,xn){switch($){case"compact":return"md:w-[300px]";case"comfortable":return"md:w-[350px]";default:return xn<=3?"md:w-[350px]":"md:w-[300px]"}}const PotSliderSection=({section:$})=>{const{scrollRef:xn,index:En,visibleRange:Nn,visibilities:Tn,overflowing:$n}=useHorizontalGallery(),kl=$.blocks.length,xl=kl>0&&Nn[0]===0&&Nn[1]===kl-1,Nl=$.settings.image_fit==="contain",Rl=Nl?"object-contain":"object-cover",Fl=Nl?"width":"responsive",Al=cardWidthClass($.settings.card_size,kl),Tl=mediaAspectProps($.settings,{mobile:"h-[400px]",desktop:"md:h-[450px]"}),Cl=!!($.settings.badge||$.settings.title||$.settings.description),Il=sectionSpacingProps($.settings,{top:2.75,bottom:3.5});return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,className:Il.className,style:{...Il.style,...$.settings.background_color?{backgroundColor:$.settings.background_color}:{}},children:[jsxRuntimeExports.jsx("div",{className:"mx-auto max-w-screen-senit px-3.5 md:px-7 senit:px-0",children:jsxRuntimeExports.jsxs("header",{className:"space-y-3.5 md:mx-auto md:max-w-[645px] md:space-y-9 md:text-center",children:[$.settings.badge&&jsxRuntimeExports.jsx(Badge,{children:$.settings.badge}),$.settings.title&&jsxRuntimeExports.jsx("h2",{className:"font-header text-header font-normal leading-9 lg:text-header-lg",style:{color:$.settings.title_color||"#1B1B1B"},children:$.settings.title}),$.settings.description&&jsxRuntimeExports.jsx("p",{className:"text-15 md:text-22",style:{color:$.settings.description_color||"#696969"},children:$.settings.description})]})}),jsxRuntimeExports.jsx("div",{ref:xn,tabIndex:0,className:cn("no-scrollbar relative flex snap-x snap-mandatory overflow-x-auto scroll-smooth",Cl?"mt-7 md:mt-10":"mt-3.5",!$n&&"justify-center","scroll-pl-5 gap-3 px-3.5 md:scroll-pl-10 md:gap-7 md:px-7"),children:$.blocks.map(Ml=>jsxRuntimeExports.jsxs("div",{...attributesToProps(Ml.attributes),className:cn("relative w-[300px] shrink-0 snap-start overflow-hidden rounded-18 md:rounded-20",Tl.className,Al),style:{...Tl.style,backgroundColor:Ml.settings.background_color||void 0,color:Ml.settings.text_color||void 0},children:[hasVideoSources(Ml.settings.video)?jsxRuntimeExports.jsx(SectionVideo,{className:cn("absolute inset-0 size-full",Rl),video:Ml.settings.video,poster:Ml.settings.image||void 0,label:Ml.settings.title,autoplay:$.settings.video_autoplay,loop:$.settings.video_loop,muted:$.settings.video_muted,controls:$.settings.video_controls}):Ml.settings.image?jsxRuntimeExports.jsx(Image,{className:cn("absolute inset-0 size-full",Rl),src:Ml.settings.image,alt:Ml.settings.title,dimensions:Fl,draggable:!1}):null,Ml.settings.title&&jsxRuntimeExports.jsx("h3",{className:cn("absolute inset-x-0 top-6 px-6 text-center font-header text-[20px] font-medium md:text-[25px] md:font-normal",{"text-white":!Ml.settings.text_color}),children:Ml.settings.title}),Ml.settings.description&&jsxRuntimeExports.jsx("p",{className:cn("absolute inset-x-0 bottom-4 text-center text-15 leading-8",!Ml.settings.text_color&&"text-[#1B1B1B]"),children:Ml.settings.description})]},Ml.id))}),!xl&&jsxRuntimeExports.jsx(GalleryIndicator,{index:En,total:kl,visibleRange:Nn,visibilities:Tn,className:"mt-3.5"})]})},SeedsSection=({section:$})=>{const{headerRef:xn,scrollRef:En,index:Nn,visibleRange:Tn,visibilities:$n,scrollToIndex:kl}=useHorizontalGallery(),xl=$.blocks.length,[Nl]=Tn,Rl=sectionSpacingProps($.settings,{top:2.75,bottom:2.75});return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,className:Rl.className,style:Rl.style,children:[jsxRuntimeExports.jsxs("div",{ref:xn,className:"mx-auto mb-6 max-w-screen-senit px-3.5 text-center md:px-7 lg:grid lg:grid-cols-[1fr_auto] lg:items-end lg:gap-7 senit:px-0",children:[jsxRuntimeExports.jsxs("header",{className:"mx-auto lg:mx-0 lg:justify-self-center lg:text-center",children:[$.settings.badge&&jsxRuntimeExports.jsx(Badge,{children:$.settings.badge}),$.settings.title&&jsxRuntimeExports.jsx("h2",{className:"mt-3.5 font-header text-header font-normal leading-tight lg:text-header-lg",style:{color:$.settings.title_color||"#1B1B1B"},children:$.settings.title}),$.settings.description&&jsxRuntimeExports.jsx("p",{className:"mx-auto mt-4 max-w-[668px] text-20 md:text-22",style:{color:$.settings.description_color||"#696969"},children:$.settings.description})]}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block lg:justify-self-end",children:jsxRuntimeExports.jsx(GalleryControls,{index:Nn,total:xl,visibleRange:Tn,visibilities:$n,onPrev:()=>kl(Math.max(0,Nl-1)),onNext:()=>kl(Math.min(xl-1,Nl+1)),onJumpTo:kl})})]}),jsxRuntimeExports.jsx("div",{ref:En,tabIndex:0,className:cn("no-scrollbar relative flex snap-x snap-mandatory overflow-x-auto scroll-smooth","scroll-pl-5 gap-3 px-3.5 md:scroll-pl-10 md:px-7 lg:gap-3.5"),children:$.blocks.map(Fl=>jsxRuntimeExports.jsxs("div",{...attributesToProps(Fl.attributes),className:"w-[246px] shrink-0 snap-start space-y-1.5",children:[Fl.settings.image&&jsxRuntimeExports.jsx(Image,{className:"h-[260px] w-full rounded-20 object-cover",src:Fl.settings.image,alt:Fl.settings.name}),Fl.settings.name&&jsxRuntimeExports.jsx("h3",{className:"text-[26px] font-medium text-[#1B1B1B]",children:Fl.settings.name}),Fl.settings.description&&jsxRuntimeExports.jsx("p",{className:"text-[13px] text-[#696969]",children:Fl.settings.description})]},Fl.id))}),jsxRuntimeExports.jsx(GalleryIndicator,{index:Nn,total:xl,visibleRange:Tn,visibilities:$n,className:"mt-4 lg:hidden"})]})},SIZES={wide:"md:w-[650px]",xwide:"md:w-[800px]"},SenitGallerySection=({section:$})=>{const{headerRef:xn,scrollRef:En,index:Nn,visibleRange:Tn,visibilities:$n,padLeft:kl,scrollToIndex:xl}=useHorizontalGallery(),Nl=$.blocks.length,[Rl,Fl]=Tn,Al=$.settings.size==="xwide"?SIZES.xwide:SIZES.wide,Tl=$.settings.image_fit==="contain",Cl=Tl?"object-contain":"object-cover",Il=Tl?"width":"responsive",Ml=mediaAspectProps($.settings,{mobile:"h-[335px]",desktop:"md:h-[450px]"}),Dl=$.settings.title?{__html:String($.settings.title)}:null,Ll=$.settings.text?{__html:String($.settings.text)}:null,$l=sectionSpacingProps($.settings,{top:6,bottom:6});return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,className:$l.className,style:{...$l.style,...$.settings.background_color?{backgroundColor:$.settings.background_color}:{}},children:[jsxRuntimeExports.jsxs("div",{ref:xn,className:"mx-auto mb-6 max-w-[1440px] px-3.5 md:grid md:grid-cols-[1fr_auto] md:items-end md:gap-7 md:px-[82px] lg:px-[168px]",children:[jsxRuntimeExports.jsxs("header",{children:[$.settings.badge&&jsxRuntimeExports.jsx(Badge,{children:$.settings.badge}),Dl&&jsxRuntimeExports.jsx("div",{role:"heading","aria-level":2,className:"mt-3.5 font-header text-header font-normal leading-tight lg:text-header-lg",style:{color:$.settings.title_color||"#1B1B1B"},dangerouslySetInnerHTML:Dl}),Ll&&jsxRuntimeExports.jsx("div",{className:"mt-4 max-w-[668px] text-20 md:text-22",style:{color:$.settings.text_color||"#696969"},dangerouslySetInnerHTML:Ll})]}),jsxRuntimeExports.jsx("div",{className:"hidden md:block",children:jsxRuntimeExports.jsx(GalleryControls,{index:Nn,total:Nl,visibleRange:Tn,visibilities:$n,onPrev:()=>xl(Math.max(0,Rl-1)),onNext:()=>xl(Math.min(Nl-1,Fl+1)),onJumpTo:xl})})]}),jsxRuntimeExports.jsx("div",{ref:En,tabIndex:0,className:cn("no-scrollbar relative flex snap-x snap-mandatory overflow-x-auto scroll-smooth","scroll-pl-5 gap-3.5 px-3.5 md:cursor-grab md:gap-4"),style:kl!=null?{paddingLeft:kl,paddingRight:kl,scrollPaddingLeft:kl}:void 0,children:$.blocks.map(Vl=>{const Bl=Vl.settings.label_position==="bottom_inside";return jsxRuntimeExports.jsxs("div",{...attributesToProps(Vl.attributes),className:cn("w-[85vw] shrink-0 snap-start md:w-auto",Al),children:[jsxRuntimeExports.jsxs("div",{className:cn("relative w-full overflow-hidden rounded-20",Ml.className),style:Ml.style,children:[hasVideoSources(Vl.settings.video)?jsxRuntimeExports.jsx(SectionVideo,{className:cn("absolute inset-0 size-full",Cl),video:Vl.settings.video,poster:Vl.settings.image||void 0,label:Vl.settings.label,autoplay:$.settings.video_autoplay,loop:$.settings.video_loop,muted:$.settings.video_muted,controls:$.settings.video_controls}):Vl.settings.image?jsxRuntimeExports.jsx(Image,{className:cn("absolute inset-0 size-full",Cl),src:Vl.settings.image,alt:Vl.settings.label||"",dimensions:Il}):null,Vl.settings.label&&Bl&&jsxRuntimeExports.jsx("p",{className:"absolute inset-x-0 bottom-3.5 mx-auto max-w-[257px] text-center font-body text-[25px] text-[#051502]",children:Vl.settings.label})]}),Vl.settings.label&&!Bl&&jsxRuntimeExports.jsx("p",{className:"mt-2 text-18 text-[#696969]",children:Vl.settings.label})]},Vl.id)})}),jsxRuntimeExports.jsx(GalleryIndicator,{index:Nn,total:Nl,visibleRange:Tn,visibilities:$n,className:"mt-4 md:hidden"})]})},GAP_CLS="gap-[--ugc-gap-mobile] md:gap-[--ugc-gap-desktop]",Tile=({block:$,featuredAllowed:xn,blurFill:En})=>{const Nn=xn&&$.settings.featured,Tn=$.settings.image,$n=Nn?"col-span-2 row-span-2 aspect-[10/16]":"aspect-[10/16]";return Tn?jsxRuntimeExports.jsx("div",{...attributesToProps($.attributes),className:$n,children:jsxRuntimeExports.jsxs("div",{className:cn("relative size-full overflow-hidden rounded-xl bg-black/5",En&&"p-[--ugc-blur-inset-mobile] md:p-[--ugc-blur-inset-desktop]"),children:[En&&jsxRuntimeExports.jsx(Image,{"aria-hidden":!0,className:"absolute inset-0 size-full scale-110 object-cover object-top [filter:blur(80px)]",src:Tn,dimensions:{width:100}}),jsxRuntimeExports.jsx(Image,{className:cn("size-full object-cover object-top",En?"relative rounded-xl":"absolute inset-0"),src:Tn,crop:"top"})]})}):null},StaggeredGrid=({blocks:$,cols:xn,visibility:En,blurFill:Nn})=>{const Tn=$.slice(0,Math.floor($.length/xn)*xn),$n=Array.from({length:xn},()=>[]);return Tn.forEach((kl,xl)=>$n[xl%xn].push(kl)),jsxRuntimeExports.jsx("div",{className:cn(En,GAP_CLS),style:{gridTemplateColumns:`repeat(${xn}, minmax(0, 1fr))`},children:$n.map((kl,xl)=>jsxRuntimeExports.jsxs("div",{className:cn("flex flex-col",GAP_CLS),children:[xl%2===1&&jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:"aspect-[45/16]"}),kl.map(Nl=>jsxRuntimeExports.jsx(Tile,{block:Nl,featuredAllowed:!1,blurFill:Nn},Nl.id))]},xl))})},UniformGrid=({blocks:$,blurFill:xn})=>jsxRuntimeExports.jsx("div",{className:cn("grid","[grid-template-columns:repeat(var(--ugc-cols-mobile),minmax(0,1fr))]","md:[grid-template-columns:repeat(var(--ugc-cols-desktop),minmax(0,1fr))]",GAP_CLS,"[grid-auto-flow:dense]"),children:$.map(En=>jsxRuntimeExports.jsx(Tile,{block:En,featuredAllowed:!0,blurFill:xn},En.id))}),CollageSection=({section:$})=>{const{settings:xn}=$,En=xn.columns_desktop??6,Nn=xn.columns_mobile??3,Tn=xn.gap??8,$n=xn.layout??"staggered",kl=xn.blur_fill??!1,xl=xn.blur_inset??10,Nl=xn.padding_top??5,Rl=xn.padding_bottom??5,Fl=xn.title?{__html:String(xn.title)}:null,Al=xn.text?{__html:String(xn.text)}:null,Tl={"--ugc-cols-mobile":Nn,"--ugc-cols-desktop":En,"--ugc-gap-mobile":`${Tn/2}px`,"--ugc-gap-desktop":`${Tn}px`,"--ugc-blur-inset-mobile":`${xl/2}px`,"--ugc-blur-inset-desktop":`${xl}px`,"--ugc-pt-mobile":`${Nl/2}rem`,"--ugc-pt-desktop":`${Nl}rem`,"--ugc-pb-mobile":`${Rl/2}rem`,"--ugc-pb-desktop":`${Rl}rem`,...xn.background_color?{backgroundColor:xn.background_color}:{}};return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,className:"pb-[--ugc-pb-mobile] pt-[--ugc-pt-mobile] md:pb-[--ugc-pb-desktop] md:pt-[--ugc-pt-desktop]",style:Tl,children:[(xn.badge||Fl||Al)&&jsxRuntimeExports.jsxs("header",{className:"mx-auto mb-7 max-w-[1440px] px-3.5 text-center md:mb-10 md:px-[82px] lg:px-[168px]",style:xn.text_color?{color:xn.text_color}:void 0,children:[xn.badge&&jsxRuntimeExports.jsx(Badge,{children:xn.badge}),Fl&&jsxRuntimeExports.jsx("div",{role:"heading","aria-level":2,className:cn("mt-3.5 font-header text-header font-normal leading-tight lg:text-header-lg",!xn.text_color&&"text-[#1B1B1B]"),dangerouslySetInnerHTML:Fl}),Al&&jsxRuntimeExports.jsx("div",{className:cn("mx-auto mt-4 max-w-[668px] text-20 md:text-22",!xn.text_color&&"text-[#696969]"),dangerouslySetInnerHTML:Al})]}),jsxRuntimeExports.jsx("div",{className:"mx-auto max-w-[1440px] px-3.5 md:px-7",children:$n==="staggered"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StaggeredGrid,{blocks:$.blocks,cols:Nn,visibility:"grid md:hidden",blurFill:kl}),jsxRuntimeExports.jsx(StaggeredGrid,{blocks:$.blocks,cols:En,visibility:"hidden md:grid",blurFill:kl})]}):jsxRuntimeExports.jsx(UniformGrid,{blocks:$.blocks,blurFill:kl})})]})},VB_WIDTH=1e3,desktopCoords=$=>({x:$.x_desktop,y:$.y_desktop,len:$.line_length_desktop,direction:$.line_direction,position:$.line_position,text:$.text}),mobileCoords=$=>({x:$.x_mobile,y:$.y_mobile,len:$.line_length_mobile,direction:!$.line_direction_mobile||$.line_direction_mobile==="inherit"?$.line_direction:$.line_direction_mobile,position:!$.line_position_mobile||$.line_position_mobile==="inherit"?$.line_position:$.line_position_mobile,text:$.text_mobile||$.text});function verticalAnchor($){return $==="left"?"start":$==="right"?"end":"middle"}const CalloutNode=({coords:$,width:xn,height:En,font:Nn})=>{const Tn=$.direction,$n=$.position,kl=$.x/100*xn,xl=$.y/100*En,Nl=$.len,Rl=Nn*.3,Fl=Nn*.4,Al=Nn*.45,Tl=Nn*.6;let Cl=null,Il=kl,Ml=xl,Dl="middle",Ll="central";switch(Tn){case"down":{Dl=verticalAnchor($n);const $l=xl+Al+Rl;Cl={x1:kl,y1:$l,x2:kl,y2:$l+Nl};break}case"up":{Dl=verticalAnchor($n),Ll="auto",Ml=xl+Tl;const $l=xl-Rl;Cl={x1:kl,y1:$l,x2:kl,y2:$l-Nl};break}case"left":{Dl="start",Il=kl+Fl;const $l=$n==="above"?xl-Al:$n==="below"?xl+Al:xl;Cl={x1:kl,y1:$l,x2:kl-Nl,y2:$l};break}case"right":{Dl="end",Il=kl-Fl;const $l=$n==="above"?xl-Al:$n==="below"?xl+Al:xl;Cl={x1:kl,y1:$l,x2:kl+Nl,y2:$l};break}}return jsxRuntimeExports.jsxs("g",{children:[Cl&&jsxRuntimeExports.jsx("line",{...Cl,stroke:"currentColor",strokeWidth:Math.max(1,Nn*.05),strokeLinecap:"round"}),jsxRuntimeExports.jsx("text",{x:Il+(Dl==="start"?-2:2),y:Ml,textAnchor:Dl,dominantBaseline:Ll,fontSize:Nn,fill:"currentColor",children:$.text})]})},Infographic=({src:$,aspect:xn,blocks:En,pick:Nn,title:Tn,titleColor:$n,textColor:kl,titleTopPct:xl,font:Nl,titleFont:Rl,className:Fl})=>{const Al=VB_WIDTH,Tl=Math.round(VB_WIDTH/xn);return jsxRuntimeExports.jsxs("svg",{viewBox:`0 0 ${Al} ${Tl}`,preserveAspectRatio:"xMidYMid slice",className:Fl,style:{color:kl},children:[$&&jsxRuntimeExports.jsx("image",{href:$,x:0,y:0,width:Al,height:Tl,preserveAspectRatio:"xMidYMid slice"}),Tn&&jsxRuntimeExports.jsx("foreignObject",{x:Al*.1,y:Tl*xl/100,width:Al*.8,height:Tl,pointerEvents:"none",children:jsxRuntimeExports.jsx("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"font-header font-normal",style:{fontSize:Rl,lineHeight:1.1,textAlign:"center",color:$n??"inherit"},children:Tn})}),jsxRuntimeExports.jsx("g",{className:"font-header",children:En.map(Cl=>jsxRuntimeExports.jsx(CalloutNode,{coords:Nn(Cl.settings),width:Al,height:Tl,font:Nl},Cl.id))})]})},InfographicsSection=({section:$})=>{const{settings:xn,blocks:En}=$,Nn=xn.desktop_aspect_ratio??16/9,Tn=xn.mobile_aspect_ratio??3/4,$n={...xn.margin_top?{marginTop:`${xn.margin_top}rem`}:{},...xn.margin_bottom?{marginBottom:`${xn.margin_bottom}rem`}:{},...xn.background_color?{backgroundColor:xn.background_color}:{}},kl=imageUrl(xn.mobile_image,1200),xl=imageUrl(xn.desktop_image,2400);return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,style:$n,children:[jsxRuntimeExports.jsx(Infographic,{className:"block w-full md:hidden",src:kl,aspect:Tn,blocks:En,pick:mobileCoords,title:xn.title,titleColor:xn.title_color,textColor:xn.text_color,titleTopPct:5,font:42,titleFont:78}),jsxRuntimeExports.jsx(Infographic,{className:"hidden w-full md:block",src:xl,aspect:Nn,blocks:En,pick:desktopCoords,title:xn.title,titleColor:xn.title_color,textColor:xn.text_color,titleTopPct:7,font:18,titleFont:34})]})},StepsSection=({section:$})=>jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,className:"my-15 space-y-9 py-17.5 text-center lg:space-y-12 lg:!py-20",style:{backgroundColor:$.settings.background_color,color:$.settings.text_color,textAlign:$.settings.text_align},children:[jsxRuntimeExports.jsx(Title$1,{children:$.settings.title}),jsxRuntimeExports.jsx("div",{className:"self-start text-base md:row-start-2",dangerouslySetInnerHTML:{__html:$.settings.text}}),jsxRuntimeExports.jsx("div",{className:"grid items-center gap-y-6 md:auto-cols-[5fr_1fr] md:grid-flow-col md:gap-y-3",children:$.blocks.map(({id:xn,settings:En},Nn)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"text-2xl leading-none md:row-start-1",children:En.title}),En.text&&jsxRuntimeExports.jsx("p",{className:"self-start text-base md:row-start-2",dangerouslySetInnerHTML:{__html:En.text}}),En.image&&jsxRuntimeExports.jsx(Image,{className:cn("h-72 justify-self-center rounded-full object-cover md:row-start-3 md:size-48",Nn<$.blocks.length-1?"mb-15":"mb-6","md:mb-0"),src:En.image}),jsxRuntimeExports.jsx("div",{className:cn("row-start-1 hidden h-0.5 bg-green-600",{"md:block":Nn<$.blocks.length-1})})]},xn))})]});function parseVideoUrl($){if(!$)return null;if(typeof $=="object"&&$!==null){const Tn=$;if((Tn.type==="youtube"||Tn.type==="vimeo")&&Tn.id)return{type:Tn.type,id:Tn.id}}if(typeof $!="string")return null;const xn=$.match(/youtube\.com\/shorts\/([\w-]{6,})/);if(xn)return{type:"youtube",id:xn[1],isShort:!0};const En=$.match(/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|embed\/|v\/)|youtu\.be\/)([\w-]{6,})/);if(En)return{type:"youtube",id:En[1]};const Nn=$.match(/(?:vimeo\.com\/(?:video\/)?|player\.vimeo\.com\/video\/)(\d+)/);return Nn?{type:"vimeo",id:Nn[1]}:null}const VideoHighlightSection=({section:$})=>{const{image:xn,preview_video:En,background_color:Nn,overlay_opacity:Tn,title:$n,title_color:kl,subtitle:xl,subtitle_color:Nl,button_label:Rl,video_url:Fl,display_rule:Al}=$.settings,Tl=Al==="desktop"?"max-md:hidden":Al==="mobile"?"md:hidden":"",Cl=En?.sources,[Il,Ml]=reactExports.useState(!1),Dl=reactExports.useRef(null),Ll=reactExports.useRef(null),$l=reactExports.useCallback(()=>Ml(!1),[]);reactExports.useEffect(()=>{if(!Cl?.length)return;const Gl=()=>{Ll.current?.play().catch(ql=>{ql instanceof Error&&ql.name!=="AbortError"&&console.error(ql)})};return document.body.addEventListener("touchstart",Gl,{once:!0}),()=>document.body.removeEventListener("touchstart",Gl)},[Cl]),reactExports.useEffect(()=>{const Gl=Dl.current;if(Gl)return Il?(Gl.open||Gl.showModal(),document.body.style.overflow="hidden"):(Gl.open&&Gl.close(),document.body.style.overflow=""),()=>{document.body.style.overflow=""}},[Il]),reactExports.useEffect(()=>{const Gl=Dl.current;if(!Gl)return;const ql=()=>Ml(!1);return Gl.addEventListener("close",ql),Gl.addEventListener("cancel",ql),()=>{Gl.removeEventListener("close",ql),Gl.removeEventListener("cancel",ql)}},[]);const Vl=parseVideoUrl(Fl),Bl=Vl?.type==="youtube"?`https://www.youtube.com/embed/${Vl.id}?autoplay=1&modestbranding=1&playsinline=1&rel=0`:Vl?.type==="vimeo"?`https://player.vimeo.com/video/${Vl.id}?autoplay=1&title=0&byline=0&portrait=0&dnt=1`:null,zl=Vl?.isShort||Al==="mobile",Ul=sectionSpacingProps($.settings,{top:3,bottom:3});return jsxRuntimeExports.jsxs(Section$1,{tag:$.tag,full:!0,className:cn("px-3.5 md:px-7",Ul.className,Tl),style:Ul.style,children:[jsxRuntimeExports.jsx("div",{className:"mx-auto max-w-screen-2xl",children:jsxRuntimeExports.jsxs("div",{className:"relative aspect-[336/525] overflow-hidden rounded-20 md:aspect-[1280/681]",style:{backgroundColor:Nn||"#e6e0d5"},children:[Cl&&Cl.length>0?jsxRuntimeExports.jsx("video",{ref:Ll,className:"absolute inset-0 size-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,poster:imageUrl(xn),children:Cl.map(Gl=>jsxRuntimeExports.jsx("source",{src:Gl.url,type:Gl.mime_type},Gl.url))}):xn?jsxRuntimeExports.jsx(Image,{className:"absolute inset-0 size-full object-cover",src:xn,alt:$n||""}):null,xn&&Tn>0&&jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundColor:`rgba(0,0,0,${Tn/100})`}}),jsxRuntimeExports.jsxs("div",{className:cn("relative z-10 flex h-full flex-col items-center justify-between px-6 py-7 [text-align:center]","md:items-start md:justify-center md:px-15 md:[text-align:left]"),children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center md:max-w-[740px] md:items-start",children:[$n&&jsxRuntimeExports.jsx("h2",{className:"font-header text-header font-bold lg:text-header-lg",style:{color:kl||"#ffffff"},children:$n}),xl&&jsxRuntimeExports.jsx("p",{className:"mt-3 max-w-[260px] font-body text-[17px] leading-normal md:mt-4 md:max-w-[482px] md:text-22",style:{color:Nl||"#ffffff"},children:xl})]}),Rl&&jsxRuntimeExports.jsxs("button",{type:"button",onClick:()=>Bl&&Ml(!0),disabled:!Bl,className:cn("inline-flex w-[265px] items-center justify-center gap-2 rounded-full bg-[#f8f1e4] px-4 py-3 font-body text-[#085b2c]","text-[20px] font-bold leading-5 transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60 md:mt-7"),children:[Rl,jsxRuntimeExports.jsx("svg",{className:"h-2.5 w-2",viewBox:"0 0 12 14",fill:"currentColor","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12 7L0 14V0L12 7Z"})})]})]})]})}),Bl&&jsxRuntimeExports.jsxs("dialog",{ref:Dl,onClick:Gl=>{Gl.target===Dl.current&&$l()},"aria-label":$n||"Video",className:cn("m-0 h-screen max-h-none w-screen max-w-none overflow-hidden border-0 bg-transparent","backdrop:bg-black/90 open:flex open:items-center open:justify-center"),children:[jsxRuntimeExports.jsx("button",{type:"button",onClick:$l,"aria-label":"Close video",className:cn("absolute right-3 top-3 z-10 flex size-8 cursor-pointer items-center justify-center","rounded-full border-0 bg-white/10 text-white transition-colors hover:bg-white/20"),children:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"size-[22px]",children:jsxRuntimeExports.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}),jsxRuntimeExports.jsx("div",{className:cn("relative bg-black",zl?"aspect-[9/16] h-[min(100vh,calc(100vw*16/9))]":"aspect-video w-[min(100vw,calc(100vh*16/9))]"),children:Il&&jsxRuntimeExports.jsx("iframe",{src:Bl,title:$n||"Video",frameBorder:0,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 size-full border-0"})})]})]})},Progress=({max:$,current:xn})=>{const En=Math.min(xn/$*100,100);return jsxRuntimeExports.jsx("div",{className:"h-px-2 bg-green-100",children:jsxRuntimeExports.jsx("div",{className:"h-px-2 bg-green",style:{width:`${En}%`}})})},priceStyle={compareAtClassName:"font-normal text-[#6E6E68]",priceClassName:"font-medium text-[#075D39]"},CartItem=({lineItem:$,included:xn=[],soldOut:En=!1})=>{const Nn=useSelector(ql=>ql.cart.pendingOperation),[Tn,$n]=reactExports.useState([0,0]),kl=useDispatch(),{id:xl,quantity:Nl,merchandise:Rl}=$,Fl=useAnalytics(),Al=useTranslations("react.a11y"),Tl=useTranslations("react"),Cl=useLocale().locale,Il=ql=>xn.reduce((Kl,Jl)=>Kl+ql(Jl),ql($)),Ml=!!$.sellingPlanAllocation,Dl=Il(linePrice),Ll=groupComparePrice([$,...xn]);reactExports.useEffect(()=>{Nn||$n([Ll/Nl,Dl/Nl])},[Nn,Ll,Dl,Nl]);const $l=ql=>{kl(Actions$1.updateQuantity(ql,xl));for(const Kl of xn)kl(Actions$1.updateQuantity(Math.max(1,Math.round(Kl.quantity/Nl*ql)),Kl.id))},Vl=()=>{kl(Actions$1.removeFromCart(xl));for(const ql of xn)kl(Actions$1.removeFromCart(ql.id))};if(!Rl)return Fl.captureException(new Error(`Variant for cart line ${$.id} missing`)),null;const Bl=lineProductHandle($),zl=Bl?productUrl(Bl):void 0,Ul=!!zl&&!location.pathname.includes(zl),Gl=xn.length>0;return jsxRuntimeExports.jsxs("li",{"data-testid":"cart-item","data-upsell":isUpsellLine($)||void 0,className:cn("grid grid-cols-[71px_min-content_2fr_1fr] items-center gap-x-4 py-5",Gl?"min-h-[100px] grid-rows-[min-content_min-content_min-content] gap-y-1.5":"h-[100px] grid-rows-[min-content_1fr_min-content]"),children:[jsxRuntimeExports.jsx("div",{className:cn("col-start-1 row-span-3 h-full overflow-hidden rounded-7 bg-cover bg-center",En&&"opacity-40"),style:{backgroundImage:`url(${Rl.image?.url}&height=100)`},"aria-hidden":"true"}),jsxRuntimeExports.jsx("a",{className:"col-span-2 col-start-2 truncate text-lg/none font-medium text-inherit no-underline",href:Ul?zl:void 0,children:Rl.product.title||Rl.title}),jsxRuntimeExports.jsx("button",{"data-testid":"cart-item-remove",type:"button",className:"col-start-4 row-start-1 justify-self-end","aria-label":Al?`${Al.remove_item}: ${Rl.product.title||Rl.title}`:void 0,onClick:ql=>Vl(),children:jsxRuntimeExports.jsx("img",{src:filesUrl("trash.svg"),alt:"",className:"h-3"})}),jsxRuntimeExports.jsx("span",{"data-testid":"cart-item-desc",className:"col-span-3 col-start-2 row-start-2 self-baseline truncate text-xs font-normal",children:En?jsxRuntimeExports.jsx("span",{className:"font-medium text-red-700",children:Tl?.auk_page.out_of_stock}):getDescription($,Cl,Tl?.subscription.every)}),Gl&&jsxRuntimeExports.jsx("ul",{"data-testid":"cart-item-included",className:cn("row-start-3 flex flex-wrap gap-1.5",Ml?"col-span-2 col-start-2":"col-start-3"),children:xn.map(ql=>jsxRuntimeExports.jsxs("li",{className:"flex min-w-0 items-center gap-1.5 rounded-lg border border-[#e0e0e0] py-1 pl-1 pr-2",children:[jsxRuntimeExports.jsx("img",{src:imageUrl(ql.merchandise?.image,40),alt:"",className:"size-5 shrink-0 rounded object-cover",loading:"lazy"}),jsxRuntimeExports.jsx("span",{className:"truncate text-xs leading-none",children:ql.merchandise?.product.title||ql.merchandise?.title})]},ql.id))}),!Ml&&jsxRuntimeExports.jsx("div",{className:"col-start-2 row-start-3",children:jsxRuntimeExports.jsxs("div",{"data-testid":"cart-item-adjust",className:"inline-flex h-[21px] items-center bg-[#f3f3f3] shadow-[0_1px_4px_rgba(0,0,0,0.15)]",children:[jsxRuntimeExports.jsx("button",{"data-testid":"cart-item-decrease",type:"button",className:"w-[21px] self-stretch rounded-[2px] bg-white text-sm leading-[1px] hover:opacity-80 disabled:cursor-not-allowed disabled:text-[#c7c7c7]","aria-label":Al?.decrease_quantity??void 0,onClick:ql=>$l(Nl-1),disabled:Nl==1,children:jsxRuntimeExports.jsx("span",{"aria-hidden":"true",children:"-"})}),jsxRuntimeExports.jsx("span",{"data-testid":"cart-item-quantity",className:"min-w-[26px] select-none text-center text-xs font-normal leading-[1px]",children:Nl}),jsxRuntimeExports.jsx("button",{"data-testid":"cart-item-increase",type:"button",className:"w-[21px] self-stretch rounded-[2px] bg-white text-sm leading-[1px] hover:opacity-80","aria-label":Al?.increase_quantity??void 0,onClick:ql=>$l(Nl+1),children:jsxRuntimeExports.jsx("span",{"aria-hidden":"true",children:"+"})})]})}),jsxRuntimeExports.jsx("span",{"data-testid":"cart-item-price",className:cn("row-start-3 text-right text-15 leading-5",Gl?"col-start-4":"col-span-2 col-start-3"),children:Nn&&includes(Nn,$.id,Rl.id,...xn.map(ql=>ql.id))?jsxRuntimeExports.jsx(Price,{...priceStyle,compareAtClassName:cn(priceStyle.compareAtClassName,"text-[14px]"),original:Tn[0]*Nl,price:Tn[1]*Nl,asText:!0}):jsxRuntimeExports.jsx(Price,{...priceStyle,compareAtClassName:cn(priceStyle.compareAtClassName,"text-[14px]"),original:Ll,price:Dl,currencyCode:Rl.price.currencyCode,asText:!0})})]})};function getDescription($,xn,En){const Nn=$.sellingPlanAllocation?.sellingPlan;if(Nn)return[Nn.deliveryPolicy?.intervalCount?En:void 0,cadenceLabel(Nn,xn)].filter(Boolean).join(" ");const Tn=$.merchandise;if(Tn)return Tn.selectedOptions.filter($n=>$n.value!="Default Title").map($n=>$n.value).join(" / ")||Tn.product.subtitle?.value}const DiscountIcon=$=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",viewBox:"5 40 204 152",...$,children:[jsxRuntimeExports.jsx("path",{fill:"#229154",fillRule:"nonzero",stroke:"#229154",strokeWidth:"1.7",d:"M137.7 78.3a34.7 34.7 0 0 0-23.1 37.4 34.6 34.6 0 1 0 23-37.4Zm-22.4 16.4A37.4 37.4 0 0 1 164.1 77l1.3.7 9.3 4.5a38.4 38.4 0 0 1 19 50.8l-.1.4-.1.2-.2.2-.7 1.3a38.4 38.4 0 0 1-50.4 13.9l-6.5-3.2a37.2 37.2 0 0 1-20.4-51Zm67.3 32 9 4.5.2-.4c1.2-2.9 2-5.9 2.4-8.9l-8.7-4.3c-.5 2.7-1.3 5.2-2.3 7.7l-.6 1.5Zm-6.3 9.4 8.8 4.2c2-2 3.8-4.2 5.3-6.8l-9-4.4c-1.2 2-2.5 4-4 5.7l-1 1.3Zm9.6-21.2 8.6 4.2c.2-3.3-.1-6.6-.8-9.9l-8-3.9c.4 3.2.5 6.4.2 9.6Zm-19.3 28.8 7.9 3.9c3-1.4 6-3.2 8.5-5.3l-8.6-4.2a37 37 0 0 1-7.8 5.6Zm9.9-57.6.4.4c3.9 4.5 6.6 9.8 8 15.6l7.8 3.7a35.7 35.7 0 0 0-16.2-19.7Zm-29.8 62 .8.4c7.6 2.8 16 3 23.6.4l-7.5-3.7c-4.9 2-10 3-15.3 3h-1.6Z"}),jsxRuntimeExports.jsx("path",{fill:"#229154",fillRule:"nonzero",stroke:"#229154",strokeWidth:"1.7",d:"M86.4 158.7a34.7 34.7 0 0 0-10-42.8 34.6 34.6 0 1 0 10 42.8Zm4.2-27.4a37.4 37.4 0 0 1-21.9 47l-1.4.5-9.8 3.3a38.4 38.4 0 0 1-49.4-22.5v-.3l-.2-.2v-.3l-.4-1.4a38.4 38.4 0 0 1 25.8-45.5l6.8-2.4a37.2 37.2 0 0 1 50.5 21.8Zm-70.1 24.9-9.6 3.3.1.4c1.3 2.9 2.8 5.6 4.6 8l9.3-3.2a37.2 37.2 0 0 1-3.8-7l-.6-1.5Zm-2.2-11L9 148.3c0 3 .3 5.8 1 8.6l9.6-3.3c-.7-2.2-1.1-4.4-1.3-6.7l-.1-1.7Zm8.2 21.7-9 3.1c2.2 2.5 4.7 4.7 7.5 6.4l8.5-2.9c-2.6-1.9-5-4.1-7-6.6Zm-6.7-34-8.4 2.9c-1.2 3-2 6.4-2.2 9.7l9-3.1c.1-3.2.7-6.4 1.6-9.5Zm33.7 47.8H53c-6-.5-11.7-2.3-16.8-5.4l-8.1 2.9a36 36 0 0 0 25.4 2.5Zm-22.8-65-.8.3a35.7 35.7 0 0 0-17 16.5l8-2.8c2-4.9 4.9-9.3 8.6-13l1.2-1Z"}),jsxRuntimeExports.jsx("path",{fill:"#229054",fillRule:"nonzero",stroke:"#229054",strokeWidth:"1.7",d:"M139 94.8a1.8 1.8 0 1 1 2.5 2.5 8.2 8.2 0 0 1-7.5 2.6 8.2 8.2 0 0 1-6-5 1.8 1.8 0 0 1 3-1.5c1 1.8 2 2.8 3.6 3 1.6.3 3-.2 4.4-1.6Zm22.2 4a1.8 1.8 0 0 1 3 1.2c0 .5-.2.9-.5 1.2a8.2 8.2 0 0 1-7.4 2.6 8.2 8.2 0 0 1-6.1-5 1.8 1.8 0 0 1 3.1-1.5c.9 1.8 2 2.8 3.6 3 1.5.3 2.9-.1 4.3-1.5ZM150 114.4l.6-.5a1.7 1.7 0 0 1 2 .4 1.8 1.8 0 0 1 .3 2l-.4.5c-3.4 3.4-7.3 4.8-11.4 4-4.2-.7-7.3-3.3-9.4-7.7a1.8 1.8 0 0 1 1.5-2.5 1.8 1.8 0 0 1 1.7 1c1.6 3.4 3.8 4.4 6.8 5 3 .5 5.7.3 8.3-2.3v.1Zm-102 15a1.8 1.8 0 0 1 1-.9 1.8 1.8 0 0 1 2.2 1.9c0 .2 0 .4-.2.6a8.2 8.2 0 0 1-6.2 4.8c-2.8.4-5.3-.6-7.4-2.9a1.8 1.8 0 0 1 1.3-3 1.8 1.8 0 0 1 1.3.6c1.3 1.5 2.7 2 4.3 1.8 1.5-.2 2.7-1.1 3.6-2.9Zm22.3-3.1a1.8 1.8 0 0 1 2.4-.8 1.7 1.7 0 0 1 1 1.7l-.3.7a8.2 8.2 0 0 1-6.3 4.7c-2.7.4-5.2-.6-7.3-2.8a1.8 1.8 0 1 1 2.6-2.4c1.3 1.4 2.7 2 4.3 1.8 1.5-.2 2.7-1.2 3.6-3Zm-5.8 18.3a1.8 1.8 0 0 1 2.4-.7 1.8 1.8 0 0 1 .7 2.3 13.8 13.8 0 0 1-5.6 6.1 11 11 0 0 1-4 1.3c-4.2.6-8-1-11.3-4.4a1.8 1.8 0 0 1 2.6-2.4c2.5 2.7 5.2 3.7 8.2 3.3 3-.4 5.3-2.2 7-5.5Z"}),jsxRuntimeExports.jsx("path",{fill:"#229154",fillRule:"nonzero",d:"M74.7 87.9a4.7 4.7 0 1 0 0-9.4 4.7 4.7 0 0 0 0 9.4Zm84-35.5a4.7 4.7 0 1 0 0-9.4 4.7 4.7 0 0 0 0 9.4Zm-54.9 127a4.7 4.7 0 1 0 0-9.3 4.7 4.7 0 0 0 0 9.3Z"}),jsxRuntimeExports.jsx("path",{fill:"#2ea765",fillRule:"nonzero",d:"m129.1 186.9.4.7c3 6 16.3-6 16.3-12.2-7.2-2-20 2.8-16.7 11.5Z"}),jsxRuntimeExports.jsx("path",{fill:"#2ea765",fillRule:"nonzero",d:"m129.5 187.6 1.4-.7-1.4.7Zm16.3-12.2h1.6c0-.7-.5-1.3-1.2-1.5l-.4 1.5Zm-20 13.3a1.6 1.6 0 0 0 2.5 1.8l-2.5-1.8Zm8.4-4a1.6 1.6 0 0 0-1.7-2.7l1.7 2.6Zm-3.3 2.2-.3-.6-3 1.2.5.8 2.8-1.4Zm-.3-.6a5.1 5.1 0 0 1 0-4.4 8.4 8.4 0 0 1 3.6-3.4c3.4-1.8 8-2.4 11.2-1.5l.8-3a19 19 0 0 0-13.5 1.8c-2 1.1-3.8 2.7-4.8 4.6a8.5 8.5 0 0 0-.2 7l2.9-1Zm-2.5 2c.5 1 1.3 1.9 2.4 2.3 1 .3 2.1.3 3.1 0a16 16 0 0 0 6.2-3.3 28 28 0 0 0 5.2-5.7c1.3-2 2.4-4.2 2.4-6.2h-3.1a9 9 0 0 1-1.9 4.5 24.8 24.8 0 0 1-4.6 5 13 13 0 0 1-4.9 2.7c-.6.2-1 .1-1.3 0-.3 0-.5-.2-.7-.7l-2.8 1.4Zm.2 2.2 2-2.6-2.4-2-2 2.8 2.4 1.8Zm2-2.6c1.2-1.4 1.8-1.8 4-3.3l-1.8-2.6c-2.2 1.5-3 2-4.6 3.9l2.4 2Z"}),jsxRuntimeExports.jsx("path",{fill:"#2ea765",fillRule:"nonzero",d:"m29.8 86.8.8.1c6.7 1 4.3-17-.7-20.4-5.8 4.9-9.1 18.2 0 20.3Z"}),jsxRuntimeExports.jsx("path",{fill:"#2ea765",fillRule:"nonzero",d:"m30.6 86.9.3-1.5-.3 1.5ZM30 66.5l.9-1.3c-.6-.4-1.4-.3-2 .1l1 1.2Zm-.5 24a1.6 1.6 0 1 0 3-1l-3 1Zm1.5-9.2a1.6 1.6 0 0 0-3.2 0H31Zm0 4a9 9 0 0 1-.7 0l-.7 3 .9.1.5-3Zm-.7 0c-1.9-.5-3-1.4-3.6-2.6-.7-1.3-1-3-.7-4.9a16 16 0 0 1 5-10l-2-2.5a19.5 19.5 0 0 0-6.1 12.2c-.3 2.3 0 4.7 1 6.6 1.1 2 3 3.6 5.7 4.2l.7-3Zm.2 3.1a4 4 0 0 0 3.2-.7c1-.6 1.5-1.5 1.9-2.5.8-2 1-4.5.7-7a28 28 0 0 0-1.7-7.5c-.9-2.2-2-4.3-3.7-5.5L29 67.8a9 9 0 0 1 2.6 4c.8 2 1.3 4.4 1.5 6.7a13 13 0 0 1-.5 5.5c-.3.7-.5 1-.8 1.2l-1 .2-.4 3Zm2 1-1-3-3 .8c.2.9.5 2 1 3.3l3-1Zm-1-3c-.6-1.8-.6-2.6-.5-5.1h-3.2c0 2.5 0 3.7.6 5.9l3-.9Z"}),jsxRuntimeExports.jsx("path",{fill:"#2ea765",fillRule:"nonzero",d:"m189.6 66.2.4.7c3 6 16.3-6.2 16.3-12.3-7.3-2-20.1 3-16.7 11.6Z"}),jsxRuntimeExports.jsx("path",{fill:"#2ea765",fillRule:"nonzero",d:"m190 66.9 1.4-.7-1.4.7Zm16.3-12.3h1.5c0-.7-.5-1.3-1.1-1.5l-.4 1.5Zm-20 13.4a1.6 1.6 0 1 0 2.6 1.8l-2.6-1.8Zm8.4-4.1a1.6 1.6 0 1 0-1.8-2.6l1.8 2.6Zm-3.3 2.3-.3-.6-3 1.1.5.9 2.8-1.4Zm-.3-.6a5.1 5.1 0 0 1 0-4.5 8.4 8.4 0 0 1 3.6-3.3c3.4-1.9 8-2.5 11.2-1.7l.8-3c-4.1-1-9.5-.3-13.5 2-2 1-3.8 2.6-4.8 4.6a8.5 8.5 0 0 0-.2 7l2.9-1.1Zm-2.5 2c.5 1 1.3 1.8 2.4 2.2 1 .4 2.1.3 3.1.1a16 16 0 0 0 6.2-3.4 28 28 0 0 0 5.1-5.7c1.4-2 2.4-4.2 2.4-6.2h-3.1a9 9 0 0 1-1.8 4.5 24.8 24.8 0 0 1-4.6 5 13 13 0 0 1-4.9 2.8h-1.3c-.3-.1-.5-.3-.7-.7l-2.8 1.4Zm.3 2.2a65 65 0 0 1 2-2.7l-2.5-2-2 2.9 2.5 1.8Zm2-2.7c1.1-1.4 1.7-1.8 3.8-3.2l-1.8-2.6c-2 1.5-3 2-4.5 3.9l2.5 2Z"}),jsxRuntimeExports.jsx("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:"2.1",d:"M133.3 183.3s2.1-2 6.3-4.1"}),jsxRuntimeExports.jsx("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:"2.1",d:"M29.3 81.3s-.3-1.4-.2-3.9l.3-3.6"}),jsxRuntimeExports.jsx("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:"2.1",d:"M193.8 62.6s2-2.1 6.2-4.2"})]}),Cart=()=>{const $=useSelector(Vl=>Vl.cart),xn=useCountry(),En=useTranslations("react"),Nn=useShippingCost($),Tn=useMarket(),$n=window.ShopifyHeader.cart_usps??[],[kl,xl,Nl]=useScrollCutOff(32),Rl=useStock([...($.lines??[]).map(Vl=>Vl.merchandise?.product.id),...$.upsells.map(Vl=>Vl.item.product.id)]);if(!$.loaded)return jsxRuntimeExports.jsxs("div",{className:"flex size-full flex-col bg-white text-base",children:[jsxRuntimeExports.jsx("div",{className:"px-[22px] py-4 md:px-8",children:jsxRuntimeExports.jsx("p",{className:"font-medium",children:En?.checkout.your_cart})}),jsxRuntimeExports.jsx("div",{className:"flex flex-[0_1_100%] items-center justify-center",role:"status",children:jsxRuntimeExports.jsx("span",{className:"size-8 animate-spin rounded-full border-2 border-gray-200 border-t-gray-500"})})]});const Fl=$.lines.filter(Vl=>Rl.sellable(Vl.merchandise?.id)===!1),Al=$.lines.reduce((Vl,Bl)=>Bl.quantity+Vl,0)<1||$.pendingOperation!==null||Fl.length>0,Tl=$.lines.some(Vl=>Vl.merchandise?.requiresShipping),Cl=cartCalcSubTotalDiscount($),Il=getPrice($.cost.subtotalAmount),Ml=getPrice($.cost.totalAmount)+(Nn?.cost??0),Dl=Cl+(Nn?.saved??0),Ll=$.lines.length==0||Cl>0||Cl===0&&Nn?.cost===0&&Tl,$l=xn.name??$?.buyerIdentity.countryCode;return jsxRuntimeExports.jsxs("div",{className:"flex size-full flex-col bg-white text-base",children:[jsxRuntimeExports.jsx("div",{className:"px-[22px] py-4 md:px-8",children:jsxRuntimeExports.jsx("p",{className:"font-medium",children:En?.checkout.your_cart})}),jsxRuntimeExports.jsxs("div",{ref:kl,className:"flex-[0_1_100%] overflow-y-auto leading-none",children:[Ll&&jsxRuntimeExports.jsxs("div",{className:"flex h-14 flex-grow items-center justify-center bg-gray-0",children:[$.lines.length==0&&jsxRuntimeExports.jsxs("p",{className:"text-center",children:[En?.checkout.cart_empty,"."]}),Cl>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-green-600",children:En?.checkout.discount_added}),jsxRuntimeExports.jsx(DiscountIcon,{height:"36",className:"ml-3"})]}):Tl&&Nn?.cost===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-green-600",children:En?.checkout.free_shipping_added}),jsxRuntimeExports.jsx(DiscountIcon,{height:"36",className:"ml-3"})]}):null]}),jsxRuntimeExports.jsx("ul",{className:"divide-y divide-[#e0e0e0] px-[22px] md:px-8",children:groupCartLines($.lines).map(Vl=>jsxRuntimeExports.jsx(CartItem,{lineItem:Vl.line,included:Vl.included,soldOut:[Vl.line,...Vl.included].some(Bl=>Fl.includes(Bl))},Vl.line.id))}),jsxRuntimeExports.jsx("ul",{className:"mt-3 space-y-3 px-[22px] pb-3 md:px-8",children:$.upsells.filter(Vl=>Rl.sellable(Vl.item.id)??Vl.item.availableForSale).filter(Vl=>!$.lines.some(Bl=>Bl.merchandise?.id===Vl.item.id)).filter(Vl=>!$.lines.some(Bl=>Bl.merchandise?.product.id===Vl.item.product.id)).map(Vl=>jsxRuntimeExports.jsx(Upsell,{variant:Vl.item,label:Vl.offer,expiration:Vl.expiry,expirationText:Vl.expiryText,mode:"cart"},Vl.item.id))}),jsxRuntimeExports.jsx("div",{ref:xl,className:"h-px"})]}),$.errors&&jsxRuntimeExports.jsxs("div",{"data-testid":"cart-error",className:"cursor-pointer bg-red-500 text-center text-[0.8em] font-bold text-white",onClick:Vl=>location.reload(),children:[$.errors[0].message,". ",En?.actions.click_here_to_reload,"."]}),$.lines.length>0&&jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:cn("pointer-events-none absolute inset-x-0 bottom-full h-4","bg-[linear-gradient(to_top,rgba(26,26,24,0.22)_0%,rgba(26,26,24,0.14)_15%,rgba(26,26,24,0.07)_35%,rgba(26,26,24,0.026)_60%,rgba(26,26,24,0)_100%)]","[mask-image:linear-gradient(to_right,rgba(0,0,0,0)_0%,rgba(0,0,0,0.35)_8%,rgba(0,0,0,0.72)_20%,rgba(0,0,0,0.96)_40%,rgb(0,0,0)_50%,rgba(0,0,0,0.96)_60%,rgba(0,0,0,0.72)_80%,rgba(0,0,0,0.35)_92%,rgba(0,0,0,0)_100%)]","transition-opacity duration-200",Nl?"opacity-100":"opacity-0")}),jsxRuntimeExports.jsxs("div",{className:"space-y-4 px-[22px] pb-[25px] pt-4 text-right md:px-8",children:[jsxRuntimeExports.jsx("table",{className:"w-full text-15 leading-5 [&_tr+tr_td]:pt-2",children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"text-left",children:En?.checkout.subtotal}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(Price,{...priceStyle,original:Il+Cl,price:Il,asText:!0,decimals:0})})]}),Tl&&jsxRuntimeExports.jsxs("tr",{"data-testid":"cart-shipping-row",children:[jsxRuntimeExports.jsx("td",{className:"text-left",children:$l&&Tn?.currency==="EUR"&&window.Shopify.locale==="en"?En?.checkout.shipping_to?.replace("{COUNTRY}",$l):En?.checkout.shipping}),jsxRuntimeExports.jsx("td",{children:Nn?jsxRuntimeExports.jsxs("span",{"data-testid":"cart-shipping",children:[Nn.cost!=0&&jsxRuntimeExports.jsxs("div",{"data-testid":"cart-shipping-progress",className:"mr-2 inline-block align-baseline text-base leading-tight text-[#229054]",children:[jsxRuntimeExports.jsx("div",{children:`${En?.checkout.free_shipping_in} ${getPrice(Nn.threshold-Il,!0)}`}),jsxRuntimeExports.jsx(Progress,{current:Il,max:Nn.threshold})]}),jsxRuntimeExports.jsx(Price,{...priceStyle,original:getPrice(Nn.minCost,!0,0),price:Nn.cost>0?getPrice(Nn.cost,!0):En?.checkout.free})]}):jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:En?.checkout.shipping_at_checkout})})]})]})}),jsxRuntimeExports.jsx("hr",{className:"border-0 border-b border-b-[#E6E5E1]"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("div",{className:"flex-auto text-left text-[17px] font-medium leading-6 text-[#1A1A18]",children:En?.checkout.total}),Dl>0&&jsxRuntimeExports.jsxs("span",{className:"whitespace-nowrap rounded-full bg-[#EAF4EC] px-[11px] py-1 text-sm font-medium leading-[18px] text-[#1A7A45]",children:[En?.checkout.you_save," ",jsxRuntimeExports.jsx(Price,{price:Dl,asText:!0,decimals:0})]}),jsxRuntimeExports.jsx(Price,{...priceStyle,className:"text-[19px] leading-[27px]",price:Ml,asText:!0,decimals:0})]}),jsxRuntimeExports.jsx("p",{className:"mt-2 text-[13.5px] font-normal leading-[17px] text-[#6E6E68]",children:Tn?.taxIncluded?En?.checkout.taxes_and_duties:En?.checkout.taxes_at_checkout})]}),$n.length>0&&jsxRuntimeExports.jsx(UspList,{items:$n,layout:"inline"}),jsxRuntimeExports.jsxs(Button,{"data-testid":"cart-checkout",href:$.checkoutUrl,disabled:Al,size:"xl",radius:9,className:"w-full gap-2 text-base font-medium tracking-[0.045em] md:text-base",children:[jsxRuntimeExports.jsx(Lock,{}),En?.checkout.go_to_checkout]}),Fl.length>0&&jsxRuntimeExports.jsx("p",{role:"alert",className:"text-center text-[13.5px] leading-[17px] text-red-700",children:En?.checkout.items_sold_out}),window.ShopifyHeader.settings.show_payment_icons&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PaymentIcons,{size:"small",className:"justify-center xs:hidden"}),jsxRuntimeExports.jsx(PaymentIcons,{size:"normal",className:"hidden justify-center xs:flex"})]})]})]})]})},inertWhenClosed=$=>$?{}:{inert:""},CartDrawer=({settings:$})=>{const xn=useDispatch(),En=useAnalytics(),Nn=Ul=>xn(Actions$1.openCart(Ul)),Tn=useTranslations("react.actions"),$n=useTranslations("react.a11y"),kl=useWindowSize(),xl=useScrollbarWidth(),Nl=Math.min(kl.width,460),Rl=useSelector(Ul=>Ul.cart),{open:Fl,lines:Al,cost:Tl}=Rl,Cl=Al?.reduce((Ul,Gl)=>Ul+Gl.quantity,0)||0,[Il,Ml]=reactExports.useState(Cl>0),Dl=useShippingCost(Rl);reactExports.useEffect(()=>{Cl>0&&Ml(!0)},[Cl]);const[Ll,$l]=reactExports.useState(""),Vl=reactExports.useRef(Cl);reactExports.useEffect(()=>{!$n||Cl===Vl.current||(Vl.current=Cl,$l(`${$n.cart}: ${Cl}`))},[Cl,$n]),reactExports.useEffect(()=>{Fl&&Tl&&En.capture("Viewed Cart",{total_price:getPrice(Tl.totalAmount),total_tax:getPrice(Tl.totalTaxAmount),total_discount:getPrice(Tl.subtotalAmount),total_shipping:Dl?.cost,currency:Tl.totalAmount.currencyCode,items:Al?.map(toConvergeCartLine)??[]})},[Fl]);const{right:Bl,opacity:zl}=useSpring({right:Fl?xl:-Nl,opacity:Fl?1:0,config:{...config.default,restVelocity:Fl?.01:10}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:Ll}),isShop()||Il?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("button",{"data-testid":"cart-icon",type:"button",className:"relative size-[50px] leading-[50px] transition-transform hover:scale-110 active:scale-100","aria-label":$n?[$n.open_cart,Cl>0&&`(${Cl})`].filter(Boolean).join(" "):void 0,"aria-expanded":Fl,"aria-haspopup":"dialog",onClick:()=>Nn(!0),children:[jsxRuntimeExports.jsx(CartIcon,{}),Cl>0&&jsxRuntimeExports.jsx("span",{className:"absolute right-1.5 top-3 size-3 rounded-full bg-red-600"})]})}):jsxRuntimeExports.jsx(Button,{size:"md",href:$.shop_link,className:"float-right px-3 py-2 lg:px-6",children:Tn?.buy_now}),jsxRuntimeExports.jsxs(Portal,{open:Fl,alwaysRender:!0,children:[jsxRuntimeExports.jsxs(animated.div,{"data-testid":"cart-drawer",className:"portal bg-white",style:{right:Bl.to(Math.round),width:`${Nl}px`},role:"dialog","aria-modal":"true","aria-label":$n?.cart??void 0,...inertWhenClosed(Fl),children:[jsxRuntimeExports.jsx(Cart,{}),jsxRuntimeExports.jsx("button",{"data-testid":"cart-close",type:"button",className:"absolute right-4 top-2 inline-block border-0 bg-transparent text-body hover:opacity-80","aria-label":$n?.close??void 0,onClick:()=>Nn(!1),children:jsxRuntimeExports.jsx(Close,{className:"w-[15px]"})})]}),jsxRuntimeExports.jsx(animated.div,{className:cn("fixed left-0 top-0 z-40 h-screen w-screen bg-[linear-gradient(#00000069,#00000069)]",{"pointer-events-none":!Fl}),style:{opacity:zl.to(Ul=>Ul.toFixed(2))},onClick:()=>Nn(!1)})]})]})},headerContainer="mx-auto max-w-[92vw] xl:min-w-[1300px] xl:max-w-[160vh] xl:px-12",isAuk=()=>window.PRODUCT?.id==gidToId(PRODUCT_IDS.Auk),AnnouncementBarHeight=42;function showStartkitHeader($){return $.show_header&&($.product_page_only?isAuk():!0)}function showAnnouncementBar($){return $.show_announcement&&($.home_page_only?isHome():!0)}const showHeader=$=>showAnnouncementBar($)||showStartkitHeader($),AnnouncementBar=({settings:$})=>{const xn=useTranslations("react"),En=useFreeShippingThreshold();return showHeader($)?jsxRuntimeExports.jsx("div",{className:"w-full py-2 text-xs font-semibold xs:text-sm sm:text-base",role:"banner",style:{height:`${AnnouncementBarHeight}px`,...showAnnouncementBar($)?{color:$.announcement_color_text,backgroundColor:$.announcement_color_bg}:{color:$.header_color_text,backgroundColor:$.header_color_bg}},children:jsxRuntimeExports.jsx("div",{className:cn(headerContainer,"flex h-full items-center justify-between md:grid md:grid-cols-[1fr_auto_1fr]"),children:showAnnouncementBar($)?jsxRuntimeExports.jsx("a",{href:$.announcement_link,role:"banner",className:"block w-full bg-gray-200 px-[3vw] py-3 text-center text-xs font-semibold xs:text-15 md:col-span-full",children:$.announcement_text}):showHeader($)&&isPresent(En)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{className:"inline-flex items-center gap-1.5 text-left",children:[jsxRuntimeExports.jsx(Leaf,{height:"1em"}),jsxRuntimeExports.jsx("span",{children:$.header_text_1||xn?.checkout.return_policy_heading})]}),jsxRuntimeExports.jsx("span",{className:"hidden items-center justify-center gap-1.5 text-center md:inline-flex",children:jsxRuntimeExports.jsx("span",{children:$.header_text_2||xn?.presale.limited_offer})}),jsxRuntimeExports.jsxs("span",{className:"inline-flex items-center justify-end gap-1.5 text-right",children:[jsxRuntimeExports.jsx("span",{children:($.header_text_3||xn?.checkout.free_shipping)?.replace("{FREE_SHIPPING_THRESHOLD}",getPrice(En,!0))}),jsxRuntimeExports.jsx(Truck,{height:"1em"})]})]}):null})}):null},bar="block h-0.5 w-6 bg-current transition-transform duration-200 ease-out",MenuButton=({className:$,open:xn,...En})=>{const Nn=useTranslations("react.actions.menu");return jsxRuntimeExports.jsxs("button",{className:cn("group z-10 flex flex-nowrap items-center gap-2 font-body text-[19px] hover:opacity-80",$),"aria-expanded":xn,...En,children:[jsxRuntimeExports.jsx("span",{className:"sr-only md:not-sr-only md:inline",children:Nn}),jsxRuntimeExports.jsxs("span",{className:"relative inline-flex size-6 flex-col items-center justify-center gap-1.5",children:[jsxRuntimeExports.jsx("span",{className:cn(bar,{"translate-y-2 rotate-45 scale-110":xn})}),jsxRuntimeExports.jsx("span",{className:cn("h-0.5 w-6 bg-current transition-opacity duration-200 ease-out",{"opacity-0":xn})}),jsxRuntimeExports.jsx("span",{className:cn(bar,{"-translate-y-2 -rotate-45 scale-110":xn})})]})]})},MenuColumn=({menu:$,isOpen:xn,onNavigate:En})=>{const[Nn,Tn]=useTrail($.links.length,()=>({opacity:0,transform:"translateY(100%)",config:config.stiff}));return reactExports.useEffect(()=>{xn?Tn.start({opacity:1,transform:"translateY(0%)"}):Tn.set({opacity:0,transform:"translateY(100%)"})},[xn,Tn]),jsxRuntimeExports.jsxs("div",{className:"flex flex-col",children:[$.label&&jsxRuntimeExports.jsx("p",{className:"mb-2 text-[15px] text-[#7d7b7b] md:text-lg",children:$.label}),jsxRuntimeExports.jsx("ul",{className:"flex flex-col gap-y-4 md:gap-y-6",children:Nn.map(($n,kl)=>{const xl=$.links[kl];return jsxRuntimeExports.jsx(animated.li,{style:$n,children:jsxRuntimeExports.jsx("a",{href:xl.url,onClick:Nl=>{!Nl.defaultPrevented&&!Nl.metaKey&&!Nl.ctrlKey&&!Nl.shiftKey&&!Nl.altKey&&En()},"aria-current":xl.active?"page":void 0,className:"font-header text-[20px] font-medium leading-none text-[#1b1b1b] hover:opacity-70 md:text-[26px]",children:xl.title})},xl.url+xl.title)})})]})},HeaderElem=()=>{const{menus:$,settings:xn}=window.ShopifyHeader,En=reactExports.useRef(null),Nn=showHeader(xn)?AnnouncementBarHeight:0,Tn=(En.current?.offsetHeight||72)+Nn,[$n,kl]=reactExports.useState(!1),[xl,Nl]=reactExports.useState(!1),[Rl,Fl]=useSpring(()=>({y:0,config:{tension:120,friction:25,bounce:0},onRest:{y:Cl=>Cl.value==-Tn&&Nl(!1)}})),Al=useSpring({opacity:$n?1:0,config:config.stiff});reactExports.useEffect(()=>{const Cl=()=>kl(!1);return window.addEventListener("pagehide",Cl),()=>window.removeEventListener("pagehide",Cl)},[]),useScroll(({direction:[,Cl],values:[,Il]})=>{Il<=Nn?(Nl(!1),Fl.start({y:0})):Il>=Tn*4&&(Cl==-1?(Nl(!0),Fl.start({y:0})):Cl==1&&Fl.start({y:-Tn}))},{target:window,threshold:5});const Tl=xn.enable_transparent&&isHome()&&!(xl||$n);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"invisible",style:{height:isHome()?Nn:Tn}}),jsxRuntimeExports.jsxs(animated.header,{className:cn("absolute inset-x-0 top-0 z-30 transition-colors",(Tl||$n)&&!xl?"bg-transparent":"bg-white",{fixed:xl}),style:{...Rl,color:Tl?xn.transparent_text_color:void 0},children:[jsxRuntimeExports.jsx(AnnouncementBar,{settings:xn,isFixed:xl}),jsxRuntimeExports.jsxs("div",{className:cn(headerContainer,"flex items-center justify-between py-3"),ref:En,children:[xn.show_nav&&jsxRuntimeExports.jsxs("nav",{className:"w-[50px]",children:[jsxRuntimeExports.jsx(MenuButton,{open:$n,onClick:Cl=>kl(!$n)}),jsxRuntimeExports.jsx(Portal,{open:$n,children:jsxRuntimeExports.jsx(animated.div,{className:"portal z-10 max-h-screen overflow-y-auto bg-white",style:{opacity:Al.opacity,paddingTop:Tn},children:jsxRuntimeExports.jsx("div",{"data-testid":"nav-links",className:cn(headerContainer,"grid grid-cols-1 gap-y-10 py-9 md:grid-cols-3 md:gap-x-9 md:gap-y-0 md:py-12"),children:$.map((Cl,Il)=>jsxRuntimeExports.jsx(MenuColumn,{menu:Cl,isOpen:$n,onNavigate:()=>kl(!1)},`${Il}-${Cl.label}`))})})})]}),jsxRuntimeExports.jsx("div",{itemType:"http://schema.org/Organization",className:"contents",children:jsxRuntimeExports.jsx("a",{href:window.Shopify.routes.root,itemProp:"url",className:"contents",children:jsxRuntimeExports.jsx("img",{style:{height:xn.logo_max_height},src:imageUrl(Tl?xn.transparent_logo??xn.logo:xn.logo,xn.logo_max_height*2),alt:"Auk",itemProp:"logo"})})}),jsxRuntimeExports.jsxs("div",{className:"flex w-[50px] flex-row-reverse items-center gap-x-0.5",children:[jsxRuntimeExports.jsx(CartDrawer,{settings:xn}),jsxRuntimeExports.jsx(CountrySelector,{headerOpen:xl})]})]})]})]})};class HeaderErrorBoundary extends reactExports.Component{state={hasError:!1,error:null,info:null};static getDerivedStateFromError=xn=>({hasError:!0});componentDidCatch=(xn,En)=>{console.warn(xn,En),analytics()?.captureException(xn,{componentStack:En.componentStack,errorBoundary:!0}),this.setState({error:xn,info:En})};render(){const{hasError:xn}=this.state;return xn?null:this.props.children}}const Header=()=>jsxRuntimeExports.jsx(HeaderErrorBoundary,{children:jsxRuntimeExports.jsx(HeaderElem,{})}),App=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header,{}),jsxRuntimeExports.jsxs(BrowserRouter,{children:[jsxRuntimeExports.jsx(Sections,{}),jsxRuntimeExports.jsx(DynamicPortal,{selector:".payment-icons-custom",children:jsxRuntimeExports.jsx(PaymentIcons,{size:"small",className:"justify-end"})})]})]}),store=configureStore(),queryClient=new QueryClient,fallbackBtn=["relative inline-block rounded-full border-2 border-primary bg-primary","px-[30px] py-[10px] text-[0.9rem] font-bold uppercase leading-[2.2] tracking-[1px] text-button-text","outline outline-2 outline-primary hover:outline-4"].join(" "),Fallback=()=>{const $=useTranslations("react");return reactDomExports.createPortal(jsxRuntimeExports.jsx("div",{className:"portal bg-white text-center text-lg",children:jsxRuntimeExports.jsxs("div",{className:"m-auto max-w-3xl p-6",children:[jsxRuntimeExports.jsx("h2",{children:"Error 500"}),jsxRuntimeExports.jsx("img",{src:imageUrl(filesUrl("errordog.png"),"200x"),alt:""}),jsxRuntimeExports.jsxs("p",{children:[$?.error_boundary.line_1,jsxRuntimeExports.jsx("br",{}),$?.error_boundary.line_2]}),jsxRuntimeExports.jsx("p",{children:$?.error_boundary.retry}),jsxRuntimeExports.jsx("button",{className:fallbackBtn,onClick:xn=>location.reload(),children:$?.actions.try_again})]})}),document.body)},Root=()=>(reactExports.useEffect(()=>{if(window.PRODUCT){const $=toGqlProduct(window.PRODUCT),xn=new URLSearchParams(window.location.search).get("variant"),En=$.variants.find(Nn=>gidToId(Nn.id)===Number(xn));store.dispatch(Actions$1.loadUpsells($,En??$.variants[0]))}store.dispatch(Actions$1.loadDeliveryProfiles()),store.dispatch(Actions$1.loadMarkets()),store.dispatch(Actions$1.loadCart()),window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],console.warn),reportImageFailures(),console.info("Root app initialized.")},[]),jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsx(CountryProvider,{children:jsxRuntimeExports.jsx(LanguageProvider,{children:jsxRuntimeExports.jsx(ErrorBoundary,{fallback:jsxRuntimeExports.jsx(Fallback,{}),showDialog:!0,children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(PostHogProvider,{apiKey:"phc_jm5PozpdkDcKZS0HaWSv70H6oVnRmUWTsPY3RPN6StW",options:posthogOptions,children:jsxRuntimeExports.jsx(App,{})})})})})})})})})),VIDEO_SELECTOR="[data-custom-video]",PLAY_BUTTON_SELECTOR="[data-custom-video-play]";function initCustomContentVideos($=document){for(const xn of $.querySelectorAll(VIDEO_SELECTOR)){if(xn.dataset.customVideoInitialized==="true")continue;xn.dataset.customVideoInitialized="true";const En=xn.closest("[data-custom-video-frame]"),Nn=En?.querySelector(PLAY_BUTTON_SELECTOR),Tn=()=>{Nn&&(Nn.hidden=!1)},$n=()=>{Nn&&(Nn.hidden=!0)};(En??xn).addEventListener("contextmenu",xl=>xl.preventDefault()),xn.addEventListener("play",$n),xn.addEventListener("pause",Tn),xn.addEventListener("ended",Tn),Nn&&(Nn.addEventListener("click",()=>{$n(),xn.play().catch(xl=>{Tn(),xl instanceof Error&&xl.name!=="AbortError"&&console.error(xl)})}),Nn.hidden=!xn.paused)}}initCustomContentVideos();window.addEventListener("shopify:section:load",$=>{const xn=$.target;xn instanceof HTMLElement&&initCustomContentVideos(xn)});const rootElem=document.getElementById("react-root");rootElem?(clientExports.createRoot(rootElem).render(jsxRuntimeExports.jsx(Root,{})),console.info("React Cart Loaded.","production","auk-store","2.118.11")):console.error("React Cart Root not found."); //# chunkId=01a0d32f-b51d-7f60-8fcb-27b80ff9175b