@lockerverse/react 0.2.257 → 0.2.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/MIGRATIONS.md +17 -1
  2. package/dist/analytics.js +1 -1
  3. package/dist/analytics.js.map +1 -1
  4. package/dist/auction-analytics.js +2 -0
  5. package/dist/auction-analytics.js.map +1 -0
  6. package/dist/auction-data.d.ts +2 -0
  7. package/dist/auction-data.d.ts.map +1 -1
  8. package/dist/auction-data.js +1 -1
  9. package/dist/auction-data.js.map +1 -1
  10. package/dist/auction-item.d.ts.map +1 -1
  11. package/dist/auction-item.js +1 -1
  12. package/dist/auction-item.js.map +1 -1
  13. package/dist/auction-payment-view.js +1 -1
  14. package/dist/auction-payment-view.js.map +1 -1
  15. package/dist/bookings.d.ts +5 -1
  16. package/dist/bookings.d.ts.map +1 -1
  17. package/dist/bookings.js +1 -1
  18. package/dist/bookings.js.map +1 -1
  19. package/dist/embed/chunks/auction-payment-view-JOK2WFRJ.js +9 -0
  20. package/dist/embed/chunks/{chunk-MTUSLYXZ.js → chunk-OMS5LFW5.js} +1 -1
  21. package/dist/embed/chunks/chunk-TQFXE7YH.js +2 -0
  22. package/dist/embed/chunks/{chunk-RSE2YFEO.js → chunk-VYRBMRIO.js} +2 -2
  23. package/dist/embed/chunks/lockerverse-auction-item-NQTUMZBG.js +2 -0
  24. package/dist/embed/lockerverse.js +1 -1
  25. package/dist/embed/runtime.js +6 -6
  26. package/dist/lockerverse-donate-launcher.js +1 -1
  27. package/dist/lockerverse-payment.js +1 -1
  28. package/dist/lockerverse-payment.js.map +1 -1
  29. package/dist/signup.js +1 -1
  30. package/dist/signup.js.map +1 -1
  31. package/dist/use-lockerverse-auctions.d.ts +2 -0
  32. package/dist/use-lockerverse-auctions.d.ts.map +1 -1
  33. package/dist/use-lockerverse-auctions.js +1 -1
  34. package/dist/use-lockerverse-auctions.js.map +1 -1
  35. package/dist/use-lockerverse-widget.js +1 -1
  36. package/dist/use-lockerverse-widget.js.map +1 -1
  37. package/guides/auctions.md +1 -1
  38. package/guides/bookings.md +1 -1
  39. package/guides/browser-embed.md +1 -1
  40. package/guides/events.md +1 -1
  41. package/guides/integration.md +1 -1
  42. package/guides/payment-widgets.md +1 -1
  43. package/guides/signup.md +1 -1
  44. package/package.json +2 -2
  45. package/dist/embed/chunks/auction-payment-view-EOGQV3PV.js +0 -9
  46. package/dist/embed/chunks/chunk-AZY7R6CO.js +0 -2
  47. package/dist/embed/chunks/lockerverse-auction-item-AWPZIAPZ.js +0 -2
  48. /package/dist/embed/chunks/{chunk-AZY7R6CO.js.LEGAL.txt → chunk-TQFXE7YH.js.LEGAL.txt} +0 -0
  49. /package/dist/embed/chunks/{chunk-RSE2YFEO.js.LEGAL.txt → chunk-VYRBMRIO.js.LEGAL.txt} +0 -0
  50. /package/dist/embed/chunks/{lockerverse-auction-item-AWPZIAPZ.js.LEGAL.txt → lockerverse-auction-item-NQTUMZBG.js.LEGAL.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a as ge,c as Ta}from"./chunk-DCANE7XH.js";var Va=ge(g=>{"use strict";var Ne=Symbol.for("react.transitional.element"),Nt=Symbol.for("react.portal"),zt=Symbol.for("react.fragment"),Wt=Symbol.for("react.strict_mode"),jt=Symbol.for("react.profiler"),Xt=Symbol.for("react.consumer"),$t=Symbol.for("react.context"),Kt=Symbol.for("react.forward_ref"),Qt=Symbol.for("react.suspense"),Jt=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),Zt=Symbol.for("react.activity"),Fa=Symbol.iterator;function Yt(e){return e===null||typeof e!="object"?null:(e=Fa&&e[Fa]||e["@@iterator"],typeof e=="function"?e:null)}var Oa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_a=Object.assign,Ua={};function ie(e,t,a){this.props=e,this.context=t,this.refs=Ua,this.updater=a||Oa}ie.prototype.isReactComponent={};ie.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ie.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ha(){}Ha.prototype=ie.prototype;function ze(e,t,a){this.props=e,this.context=t,this.refs=Ua,this.updater=a||Oa}var We=ze.prototype=new Ha;We.constructor=ze;_a(We,ie.prototype);We.isPureReactComponent=!0;var Ba=Array.isArray;function Ve(){}var P={H:null,A:null,T:null,S:null},Ga=Object.prototype.hasOwnProperty;function je(e,t,a){var r=a.ref;return{$$typeof:Ne,type:e,key:t,ref:r!==void 0?r:null,props:a}}function er(e,t){return je(e.type,t,e.props)}function Xe(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ne}function ar(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Ra=/\/+/g;function Ge(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ar(""+e.key):t.toString(36)}function tr(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ve,Ve):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ne(e,t,a,r,o){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ne:case Nt:s=!0;break;case Ea:return s=e._init,ne(s(e._payload),t,a,r,o)}}if(s)return o=o(e),s=r===""?"."+Ge(e,0):r,Ba(o)?(a="",s!=null&&(a=s.replace(Ra,"$&/")+"/"),ne(o,t,a,"",function(c){return c})):o!=null&&(Xe(o)&&(o=er(o,a+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(Ra,"$&/")+"/")+s)),t.push(o)),1;s=0;var i=r===""?".":r+":";if(Ba(e))for(var f=0;f<e.length;f++)r=e[f],u=i+Ge(r,f),s+=ne(r,t,a,u,o);else if(f=Yt(e),typeof f=="function")for(e=f.call(e),f=0;!(r=e.next()).done;)r=r.value,u=i+Ge(r,f++),s+=ne(r,t,a,u,o);else if(u==="object"){if(typeof e.then=="function")return ne(tr(e),t,a,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function xe(e,t,a){if(e==null)return e;var r=[],o=0;return ne(e,r,"","",function(u){return t.call(a,u,o++)}),r}function rr(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qa=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ur={map:xe,forEach:function(e,t,a){xe(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return xe(e,function(){t++}),t},toArray:function(e){return xe(e,function(t){return t})||[]},only:function(e){if(!Xe(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};g.Activity=Zt;g.Children=ur;g.Component=ie;g.Fragment=zt;g.Profiler=jt;g.PureComponent=ze;g.StrictMode=Wt;g.Suspense=Qt;g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P;g.__COMPILER_RUNTIME={__proto__:null,c:function(e){return P.H.useMemoCache(e)}};g.cache=function(e){return function(){return e.apply(null,arguments)}};g.cacheSignal=function(){return null};g.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=_a({},e.props),o=e.key;if(t!=null)for(u in t.key!==void 0&&(o=""+t.key),t)!Ga.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(r[u]=t[u]);var u=arguments.length-2;if(u===1)r.children=a;else if(1<u){for(var s=Array(u),i=0;i<u;i++)s[i]=arguments[i+2];r.children=s}return je(e.type,o,r)};g.createContext=function(e){return e={$$typeof:$t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Xt,_context:e},e};g.createElement=function(e,t,a){var r,o={},u=null;if(t!=null)for(r in t.key!==void 0&&(u=""+t.key),t)Ga.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=a;else if(1<s){for(var i=Array(s),f=0;f<s;f++)i[f]=arguments[f+2];o.children=i}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return je(e,u,o)};g.createRef=function(){return{current:null}};g.forwardRef=function(e){return{$$typeof:Kt,render:e}};g.isValidElement=Xe;g.lazy=function(e){return{$$typeof:Ea,_payload:{_status:-1,_result:e},_init:rr}};g.memo=function(e,t){return{$$typeof:Jt,type:e,compare:t===void 0?null:t}};g.startTransition=function(e){var t=P.T,a={};P.T=a;try{var r=e(),o=P.S;o!==null&&o(a,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Ve,qa)}catch(u){qa(u)}finally{t!==null&&a.types!==null&&(t.types=a.types),P.T=t}};g.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()};g.use=function(e){return P.H.use(e)};g.useActionState=function(e,t,a){return P.H.useActionState(e,t,a)};g.useCallback=function(e,t){return P.H.useCallback(e,t)};g.useContext=function(e){return P.H.useContext(e)};g.useDebugValue=function(){};g.useDeferredValue=function(e,t){return P.H.useDeferredValue(e,t)};g.useEffect=function(e,t){return P.H.useEffect(e,t)};g.useEffectEvent=function(e){return P.H.useEffectEvent(e)};g.useId=function(){return P.H.useId()};g.useImperativeHandle=function(e,t,a){return P.H.useImperativeHandle(e,t,a)};g.useInsertionEffect=function(e,t){return P.H.useInsertionEffect(e,t)};g.useLayoutEffect=function(e,t){return P.H.useLayoutEffect(e,t)};g.useMemo=function(e,t){return P.H.useMemo(e,t)};g.useOptimistic=function(e,t){return P.H.useOptimistic(e,t)};g.useReducer=function(e,t,a){return P.H.useReducer(e,t,a)};g.useRef=function(e){return P.H.useRef(e)};g.useState=function(e){return P.H.useState(e)};g.useSyncExternalStore=function(e,t,a){return P.H.useSyncExternalStore(e,t,a)};g.useTransition=function(){return P.H.useTransition()};g.version="19.2.8"});var $e=ge((po,Na)=>{"use strict";Na.exports=Va()});var Ka=ge(Se=>{"use strict";var vr=Symbol.for("react.transitional.element"),Sr=Symbol.for("react.fragment");function $a(e,t,a){var r=null;if(a!==void 0&&(r=""+a),t.key!==void 0&&(r=""+t.key),"key"in t){a={};for(var o in t)o!=="key"&&(a[o]=t[o])}else a=t;return t=a.ref,{$$typeof:vr,type:e,key:r,ref:t!==void 0?t:null,props:a}}Se.Fragment=Sr;Se.jsx=$a;Se.jsxs=$a});var kr=ge((Is,Qa)=>{"use strict";Qa.exports=Ka()});var ve=Ta($e());var za=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),or=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Ke=e=>{let t=or(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ce=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),Wa=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var pe=Ta($e());var ja={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Xa=(0,pe.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:u,iconNode:s,...i},f)=>(0,pe.createElement)("svg",{ref:f,...ja,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:Ce("lucide",o),...!u&&!Wa(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,h])=>(0,pe.createElement)(c,h)),...Array.isArray(u)?u:[u]]));var w=(e,t)=>{let a=(0,ve.forwardRef)(({className:r,...o},u)=>(0,ve.createElement)(Xa,{ref:u,iconNode:t,className:Ce(`lucide-${za(Ke(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Ke(e),a};var sr=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Qe=w("arrow-right",sr);var lr=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Je=w("chevron-left",lr);var nr=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],fe=w("badge-check",nr);var ir=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ze=w("chevron-down",ir);var fr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ye=w("chevron-right",fr);var dr=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ea=w("clock-3",dr);var cr=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],aa=w("file-text",cr);var pr=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],ta=w("gavel",pr);var mr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ra=w("info",mr);var hr=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],ua=w("list-checks",hr);var Lr=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],oa=w("pause",Lr);var yr=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],sa=w("play",yr);var Ir=[["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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],la=w("shield-check",Ir);var gr=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],na=w("shopping-bag",gr);var xr=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],ia=w("timer-reset",xr);var Cr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fa=w("x",Cr);var Ja=new Map;function Za(e,t=2){let a=Ja.get(t);return a||(a=new Intl.NumberFormat("en-US",{currency:"USD",maximumFractionDigits:2,minimumFractionDigits:t,style:"currency"}),Ja.set(t,a)),a.format(e/100)}function Cs(e,t=e.status,a){let r=t==="draft",o=a??br(e),u=r?o?.startAt??e.startAt:(t==="finished"?a?.finishedAt:void 0)??a?.endAt??e.endAt,s=new Date(u);if(!Number.isFinite(s.getTime()))return"";let f=(r?o?.startAt:a?.endAt)?!0:(r?e.configuration.startTimeEnabled:e.configuration.endTimeEnabled)??!0,c=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"short",timeZone:"America/New_York",year:"numeric"}).format(s);if(!f)return c;let h=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",timeZone:"America/New_York",timeZoneName:"short"}).format(s);return`${c} at ${h}`}function vs(e){return Za(e,0)}function wr(e,t){if(e.status==="finished"||t?.status==="finished")return"finished";if(t&&!(t.startAt&&t.endAt)&&(t.status==="draft"||e.status==="draft"))return"draft";let a=Date.now();if(Date.parse(t?.endAt??e.endAt)<=a)return"finished";if(Date.parse(t?.startAt??e.startAt)>a)return"draft";if(t)return"active";if(e.items.length){let r=e.items.map(o=>wr(e,o));return r.includes("active")?"active":r.includes("draft")?"draft":"finished"}return e.status}function br(e){let t=Date.now();return e.items.filter(a=>a.status!=="finished"&&Date.parse(a.startAt??e.startAt)>t).sort((a,r)=>Date.parse(a.startAt??e.startAt)-Date.parse(r.startAt??e.startAt))[0]}function Ss(e){return e.isSoldOut||e.saleMode==="buy_now"&&e.availableQuantity===0}var ke,Ar={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function da(e){return!e&&!ke?Ar:{lang:e?.lang??ke?.lang,message:e?.message,abortEarly:e?.abortEarly??ke?.abortEarly,abortPipeEarly:e?.abortPipeEarly??ke?.abortPipeEarly}}var Pr;function Dr(e){return Pr?.get(e)}var Mr;function Tr(e){return Mr?.get(e)}var Fr;function Br(e,t){return Fr?.get(e)?.get(t)}function Q(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function C(e,t,a,r,o){let u=o&&"input"in o?o.input:a.value,s=o?.expected??e.expects??null,i=o?.received??Q(u),f={kind:e.kind,type:e.type,input:u,expected:s,received:i,message:`Invalid ${t}: ${s?`Expected ${s} but r`:"R"}eceived ${i}`,requirement:e.requirement,path:o?.path,issues:o?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},c=e.kind==="schema",h=o?.message??e.message??Br(e.reference,f.lang)??(c?Tr(f.lang):null)??r.message??Dr(f.lang);h!==void 0&&(f.message=typeof h=="function"?h(f):h),c&&(a.typed=!1),a.issues?a.issues.push(f):a.issues=[f]}var Ya=new WeakMap;function D(e){let t=Ya.get(e);return t||(t={version:1,vendor:"valibot",validate(a){return e["~run"]({value:a},da())}},Ya.set(e,t)),t}function ca(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function pa(e,t){let a=[...new Set(e)];return a.length>1?`(${a.join(` ${t} `)})`:a[0]??"never"}var ma=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};var Rr=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;var qr=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z| ?[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;var Er=/^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/iu;function R(e,t){return{kind:"validation",type:"check",reference:R,async:!1,expects:null,requirement:e,message:t,"~run"(a,r){return a.typed&&!this.requirement(a.value)&&C(this,"input",a,r),a}}}function te(e){return{kind:"validation",type:"email",reference:te,expects:null,async:!1,requirement:Rr,message:e,"~run"(t,a){return t.typed&&!this.requirement.test(t.value)&&C(this,"email",t,a),t}}}function ha(e){return{kind:"validation",type:"finite",reference:ha,async:!1,expects:null,requirement:Number.isFinite,message:e,"~run"(t,a){return t.typed&&!this.requirement(t.value)&&C(this,"finite",t,a),t}}}function La(e,t){return{kind:"validation",type:"gt_value",reference:La,async:!1,expects:`>${e instanceof Date?e.toJSON():Q(e)}`,requirement:e,message:t,"~run"(a,r){return a.typed&&!(a.value>this.requirement)&&C(this,"value",a,r,{received:a.value instanceof Date?a.value.toJSON():Q(a.value)}),a}}}function ya(e){return{kind:"validation",type:"integer",reference:ya,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(t,a){return t.typed&&!this.requirement(t.value)&&C(this,"integer",t,a),t}}}function re(e){return{kind:"validation",type:"iso_timestamp",reference:re,async:!1,expects:null,requirement:qr,message:e,"~run"(t,a){return t.typed&&!this.requirement.test(t.value)&&C(this,"timestamp",t,a),t}}}function me(e,t){return{kind:"validation",type:"max_length",reference:me,async:!1,expects:`<=${e}`,requirement:e,message:t,"~run"(a,r){return a.typed&&a.value.length>this.requirement&&C(this,"length",a,r,{received:`${a.value.length}`}),a}}}function X(e,t){return{kind:"validation",type:"max_value",reference:X,async:!1,expects:`<=${e instanceof Date?e.toJSON():Q(e)}`,requirement:e,message:t,"~run"(a,r){return a.typed&&!(a.value<=this.requirement)&&C(this,"value",a,r,{received:a.value instanceof Date?a.value.toJSON():Q(a.value)}),a}}}function U(e,t){return{kind:"validation",type:"min_length",reference:U,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(a,r){return a.typed&&a.value.length<this.requirement&&C(this,"length",a,r,{received:`${a.value.length}`}),a}}}function b(e,t){return{kind:"validation",type:"min_value",reference:b,async:!1,expects:`>=${e instanceof Date?e.toJSON():Q(e)}`,requirement:e,message:t,"~run"(a,r){return a.typed&&!(a.value>=this.requirement)&&C(this,"value",a,r,{received:a.value instanceof Date?a.value.toJSON():Q(a.value)}),a}}}function Ia(e){return{kind:"validation",type:"non_empty",reference:Ia,async:!1,expects:"!0",message:e,"~run"(t,a){return t.typed&&t.value.length===0&&C(this,"length",t,a,{received:"0"}),t}}}function de(e,t){return{kind:"validation",type:"regex",reference:de,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(a,r){return a.typed&&!this.requirement.test(a.value)&&C(this,"format",a,r),a}}}function he(e){return{kind:"validation",type:"safe_integer",reference:he,async:!1,expects:null,requirement:Number.isSafeInteger,message:e,"~run"(t,a){return t.typed&&!this.requirement(t.value)&&C(this,"safe integer",t,a),t}}}function ce(e){return{kind:"transformation",type:"transform",reference:ce,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function Or(){return{kind:"transformation",type:"trim",reference:Or,async:!1,"~run"(e){return e.value=e.value.trim(),e}}}function ue(e){return{kind:"validation",type:"uuid",reference:ue,async:!1,expects:null,requirement:Er,message:e,"~run"(t,a){return t.typed&&!this.requirement.test(t.value)&&C(this,"UUID",t,a),t}}}var at={abortEarly:!0};function we(e,t,a){return typeof e.fallback=="function"?e.fallback(t,a):e.fallback}function oe(e,t,a){return typeof e.default=="function"?e.default(t,a):e.default}function be(e,t){return!e["~run"]({value:t},at).issues}function v(e,t){return{kind:"schema",type:"array",reference:v,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){let o=a.value;if(Array.isArray(o)){a.typed=!0,a.value=[];for(let u=0;u<o.length;u++){let s=o[u],i=this.item["~run"]({value:s},r);if(i.issues){let f={type:"array",origin:"value",input:o,key:u,value:s};for(let c of i.issues)c.path?c.path.unshift(f):c.path=[f],a.issues?.push(c);if(a.issues||(a.issues=i.issues),r.abortEarly){a.typed=!1;break}}i.typed||(a.typed=!1),a.value.push(i.value)}}else C(this,"type",a,r);return a}}}function L(e){return{kind:"schema",type:"boolean",reference:L,expects:"boolean",async:!1,message:e,get"~standard"(){return D(this)},"~run"(t,a){return typeof t.value=="boolean"?t.typed=!0:C(this,"type",t,a),t}}}function Ae(e,t){return{kind:"schema",type:"custom",reference:Ae,expects:"unknown",async:!1,check:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){return this.check(a.value)?a.typed=!0:C(this,"type",a,r),a}}}function Pe(e){return{kind:"schema",type:"function",reference:Pe,expects:"Function",async:!1,message:e,get"~standard"(){return D(this)},"~run"(t,a){return typeof t.value=="function"?t.typed=!0:C(this,"type",t,a),t}}}function E(e,t){return{kind:"schema",type:"literal",reference:E,expects:Q(e),async:!1,literal:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){return a.value===this.literal?a.typed=!0:C(this,"type",a,r),a}}}function $(e,t){return{kind:"schema",type:"loose_object",reference:$,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){let o=a.value;if(o&&typeof o=="object"){a.typed=!0,a.value={};for(let u in this.entries){let s=this.entries[u];if(u in o||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){let i=u in o?o[u]:oe(s),f=s["~run"]({value:i},r);if(f.issues){let c={type:"object",origin:"value",input:o,key:u,value:i};for(let h of f.issues)h.path?h.path.unshift(c):h.path=[c],a.issues?.push(h);if(a.issues||(a.issues=f.issues),r.abortEarly){a.typed=!1;break}}f.typed||(a.typed=!1),a.value[u]=f.value}else if(s.fallback!==void 0)a.value[u]=we(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(C(this,"key",a,r,{input:void 0,expected:`"${u}"`,path:[{type:"object",origin:"key",input:o,key:u,value:o[u]}]}),r.abortEarly))break}if(!a.issues||!r.abortEarly)for(let u in o)ca(o,u)&&!(u in this.entries)&&(a.value[u]=o[u])}else C(this,"type",a,r);return a}}}function p(e,t){return{kind:"schema",type:"nullable",reference:p,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return D(this)},"~run"(a,r){return a.value===null&&(this.default!==void 0&&(a.value=oe(this,a,r)),a.value===null)?(a.typed=!0,a):this.wrapped["~run"](a,r)}}}function q(e,t){return{kind:"schema",type:"nullish",reference:q,expects:`(${e.expects} | null | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return D(this)},"~run"(a,r){return(a.value===null||a.value===void 0)&&(this.default!==void 0&&(a.value=oe(this,a,r)),a.value===null||a.value===void 0)?(a.typed=!0,a):this.wrapped["~run"](a,r)}}}function I(e){return{kind:"schema",type:"number",reference:I,expects:"number",async:!1,message:e,get"~standard"(){return D(this)},"~run"(t,a){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:C(this,"type",t,a),t}}}function d(e,t){return{kind:"schema",type:"object",reference:d,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){let o=a.value;if(o&&typeof o=="object"){a.typed=!0,a.value={};for(let u in this.entries){let s=this.entries[u];if(u in o||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){let i=u in o?o[u]:oe(s),f=s["~run"]({value:i},r);if(f.issues){let c={type:"object",origin:"value",input:o,key:u,value:i};for(let h of f.issues)h.path?h.path.unshift(c):h.path=[c],a.issues?.push(h);if(a.issues||(a.issues=f.issues),r.abortEarly){a.typed=!1;break}}f.typed||(a.typed=!1),a.value[u]=f.value}else if(s.fallback!==void 0)a.value[u]=we(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(C(this,"key",a,r,{input:void 0,expected:`"${u}"`,path:[{type:"object",origin:"key",input:o,key:u,value:o[u]}]}),r.abortEarly))break}}else C(this,"type",a,r);return a}}}function De(e,t,a){return{kind:"schema",type:"object_with_rest",reference:De,expects:"Object",async:!1,entries:e,rest:t,message:a,get"~standard"(){return D(this)},"~run"(r,o){let u=r.value;if(u&&typeof u=="object"){r.typed=!0,r.value={};for(let s in this.entries){let i=this.entries[s];if(s in u||(i.type==="exact_optional"||i.type==="optional"||i.type==="nullish")&&i.default!==void 0){let f=s in u?u[s]:oe(i),c=i["~run"]({value:f},o);if(c.issues){let h={type:"object",origin:"value",input:u,key:s,value:f};for(let S of c.issues)S.path?S.path.unshift(h):S.path=[h],r.issues?.push(S);if(r.issues||(r.issues=c.issues),o.abortEarly){r.typed=!1;break}}c.typed||(r.typed=!1),r.value[s]=c.value}else if(i.fallback!==void 0)r.value[s]=we(i);else if(i.type!=="exact_optional"&&i.type!=="optional"&&i.type!=="nullish"&&(C(this,"key",r,o,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:u,key:s,value:u[s]}]}),o.abortEarly))break}if(!r.issues||!o.abortEarly){for(let s in u)if(ca(u,s)&&!(s in this.entries)){let i=this.rest["~run"]({value:u[s]},o);if(i.issues){let f={type:"object",origin:"value",input:u,key:s,value:u[s]};for(let c of i.issues)c.path?c.path.unshift(f):c.path=[f],r.issues?.push(c);if(r.issues||(r.issues=i.issues),o.abortEarly){r.typed=!1;break}}i.typed||(r.typed=!1),r.value[s]=i.value}}}else C(this,"type",r,o);return r}}}function n(e,t){return{kind:"schema",type:"optional",reference:n,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return D(this)},"~run"(a,r){return a.value===void 0&&(this.default!==void 0&&(a.value=oe(this,a,r)),a.value===void 0)?(a.typed=!0,a):this.wrapped["~run"](a,r)}}}function x(e,t){return{kind:"schema",type:"picklist",reference:x,expects:pa(e.map(Q),"|"),async:!1,options:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){return this.options.includes(a.value)?a.typed=!0:C(this,"type",a,r),a}}}function J(e,t,a){return{kind:"schema",type:"record",reference:J,expects:"Object",async:!1,key:e,value:t,message:a,get"~standard"(){return D(this)},"~run"(r,o){let u=r.value;if(u&&typeof u=="object"){r.typed=!0,r.value={};for(let s in u)if(ca(u,s)){let i=u[s],f=this.key["~run"]({value:s},o);if(f.issues){let h={type:"object",origin:"key",input:u,key:s,value:i};for(let S of f.issues)S.path=[h],r.issues?.push(S);if(r.issues||(r.issues=f.issues),o.abortEarly){r.typed=!1;break}}let c=this.value["~run"]({value:i},o);if(c.issues){let h={type:"object",origin:"value",input:u,key:s,value:i};for(let S of c.issues)S.path?S.path.unshift(h):S.path=[h],r.issues?.push(S);if(r.issues||(r.issues=c.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!c.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=c.value)}}else C(this,"type",r,o);return r}}}function O(e,t){return{kind:"schema",type:"strict_object",reference:O,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){let o=a.value;if(o&&typeof o=="object"){a.typed=!0,a.value={};for(let u in this.entries){let s=this.entries[u];if(u in o||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){let i=u in o?o[u]:oe(s),f=s["~run"]({value:i},r);if(f.issues){let c={type:"object",origin:"value",input:o,key:u,value:i};for(let h of f.issues)h.path?h.path.unshift(c):h.path=[c],a.issues?.push(h);if(a.issues||(a.issues=f.issues),r.abortEarly){a.typed=!1;break}}f.typed||(a.typed=!1),a.value[u]=f.value}else if(s.fallback!==void 0)a.value[u]=we(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(C(this,"key",a,r,{input:void 0,expected:`"${u}"`,path:[{type:"object",origin:"key",input:o,key:u,value:o[u]}]}),r.abortEarly))break}if(!a.issues||!r.abortEarly){for(let u in o)if(!(u in this.entries)){C(this,"key",a,r,{input:u,expected:"never",path:[{type:"object",origin:"key",input:o,key:u,value:o[u]}]});break}}}else C(this,"type",a,r);return a}}}function ga(e,t){return{kind:"schema",type:"strict_tuple",reference:ga,expects:"Array",async:!1,items:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){let o=a.value;if(Array.isArray(o)){a.typed=!0,a.value=[];for(let u=0;u<this.items.length;u++){let s=o[u],i=this.items[u]["~run"]({value:s},r);if(i.issues){let f={type:"array",origin:"value",input:o,key:u,value:s};for(let c of i.issues)c.path?c.path.unshift(f):c.path=[f],a.issues?.push(c);if(a.issues||(a.issues=i.issues),r.abortEarly){a.typed=!1;break}}i.typed||(a.typed=!1),a.value.push(i.value)}!(a.issues&&r.abortEarly)&&this.items.length<o.length&&C(this,"type",a,r,{input:o[this.items.length],expected:"never",path:[{type:"array",origin:"value",input:o,key:this.items.length,value:o[this.items.length]}]})}else C(this,"type",a,r);return a}}}function l(e){return{kind:"schema",type:"string",reference:l,expects:"string",async:!1,message:e,get"~standard"(){return D(this)},"~run"(t,a){return typeof t.value=="string"?t.typed=!0:C(this,"type",t,a),t}}}function et(e){let t;if(e)for(let a of e)if(t)for(let r of a.issues)t.push(r);else t=a.issues;return t}function Z(e,t){return{kind:"schema",type:"union",reference:Z,expects:pa(e.map(a=>a.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return D(this)},"~run"(a,r){let o,u,s;for(let i of this.options){let f=i["~run"]({value:a.value},r);if(f.typed)if(f.issues)u?u.push(f):u=[f];else{o=f;break}else s?s.push(f):s=[f]}if(o)return o;if(u){if(u.length===1)return u[0];C(this,"type",a,r,{issues:et(u)}),a.typed=!0}else{if(s?.length===1)return s[0];C(this,"type",a,r,{issues:et(s)})}return a}}}function N(){return{kind:"schema",type:"unknown",reference:N,expects:"unknown",async:!1,get"~standard"(){return D(this)},"~run"(e){return e.typed=!0,e}}}function Le(e,t,a){return{kind:"schema",type:"variant",reference:Le,expects:"Object",async:!1,key:e,options:t,message:a,get"~standard"(){return D(this)},"~run"(r,o){let u=r.value;if(u&&typeof u=="object"){let s,i=0,f=this.key,c=[],h=(S,H)=>{for(let G of S.options){if(G.type==="variant")h(G,new Set(H).add(G.key));else{let V=!0,W=0;for(let B of H){let F=G.entries[B];if(B in u?F["~run"]({typed:!1,value:u[B]},at).issues:F.type!=="exact_optional"&&F.type!=="optional"&&F.type!=="nullish"){V=!1,f!==B&&(i<W||i===W&&B in u&&!(f in u))&&(i=W,f=B,c=[]),f===B&&c.push(G.entries[B].expects);break}W++}if(V){let B=G["~run"]({value:u},o);(!s||!s.typed&&B.typed)&&(s=B)}}if(s&&!s.issues)break}};if(h(this,new Set([this.key])),s)return s;C(this,"type",r,o,{input:u[f],expected:pa(c,"|"),path:[{type:"object",origin:"value",input:u,key:f,value:u[f]}]})}else C(this,"type",r,o);return r}}}function M(e,t,a){let r=e["~run"]({value:t},da(a));if(r.issues)throw new ma(r.issues);return r.value}function _(e,t){let a=r=>M(e,r,t);return a.schema=e,a.config=t,a}function m(...e){return{...e[0],pipe:e,get"~standard"(){return D(this)},"~run"(t,a){for(let r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!a.abortEarly&&!a.abortPipeEarly)&&(t=r["~run"](t,a))}return t}}}function Me(e,t,a){let r=e["~run"]({value:t},da(a));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}var y=m(l(),Ia(),R(e=>e.trim().length>0)),Fe=n(p(l()),null);function A(e){return m(I(),he(),b(e))}var rt=m(v(N()),ce(e=>e.filter(t=>{let{archivedAt:a}=M($({archivedAt:n(p(y))}),t);return!a}))),Ur=d({id:y,label:y}),tt=m(rt,v(Ur),U(2),R(e=>new Set(e.map(({id:t})=>t)).size===e.length,"Expected unique custom field option IDs.")),Te={id:y,label:y,paymentOptionIds:n(v(y)),required:L()},Hr=Le("type",[d({...Te,type:x(["text","textarea"])}),d({...Te,type:x(["checkbox"])}),d({...Te,options:tt,type:x(["radio","select"])}),d({...Te,options:tt,type:x(["checkboxes","multi_select"])})]),xa=m(n(rt,[]),v(Hr),R(e=>new Set(e.map(({id:t})=>t)).size===e.length,"Expected unique custom field IDs.")),ut=d({fieldId:y,value:Z([L(),l(),v(l())])});var Be="0.2.258",j=class extends Error{failureKind;code;operation;reportable;recoveryRecommended;sdkVersion;serverCode;status;constructor({failureKind:e,code:t,message:a,operation:r,reportable:o,recoveryRecommended:u=!1,serverCode:s,status:i}){super(a),this.name="LockerverseSdkError",this.failureKind=e,this.code=t,this.operation=r,this.reportable=o,this.recoveryRecommended=u,this.sdkVersion=Be,this.serverCode=s,this.status=i}};function Re(e){let t=new Object(e);if(t!==e||Object.isFrozen(t))return e;for(let a of Object.values(t))Re(a);return Object.freeze(e)}var ot=/\/+$/,Gr=new Set(["localhost","127.0.0.1","[::1]"]),Vr={development:{sentryDsn:"https://1977371f7bc44480935a7bc9726ca296@o1338376.ingest.sentry.io/6631829"},production:{sentryDsn:"https://43d2d853c129415cf77531c914511174@o1338376.ingest.us.sentry.io/4511911476133888"}};function Ca(e,t,a="apiBaseUrl"){if(!be(l(),e))throw TypeError(`${a} must be a valid HTTP or HTTPS URL.`);let r;try{r=new URL(e)}catch{throw TypeError(`${a} must be a valid HTTP or HTTPS URL.`)}if(r.protocol!=="http:"&&r.protocol!=="https:")throw TypeError(`${a} must be a valid HTTP or HTTPS URL.`);if(r.username||r.password)throw TypeError(`${a} must not include credentials.`);if(r.search||r.hash)throw TypeError(`${a} must not include a query or fragment.`);if(r.protocol!=="https:"&&!(t==="development"&&(Gr.has(r.hostname)||r.hostname.endsWith(".localhost"))))throw TypeError(`${a} must use HTTPS except for development loopback endpoints.`);return r.pathname=r.pathname.replace(ot,""),r.toString().replace(ot,"")}function Nr(e,t){let a="requestTimeoutMs must be a positive integer no greater than 2147483647.",r=o=>m(l(`${o} must be a non-empty string.`),R(u=>u.trim().length>0,`${o} must be a non-empty string.`));try{let o=M($({apiBaseUrl:n(l("apiBaseUrl must be a valid HTTP or HTTPS URL.")),communitySlug:r("communitySlug"),environment:n(x(["development","production"],"environment must be either development or production.")),fetch:n(Ae(u=>be(Pe(),u),"fetch must be a function when provided.")),onError:n(Ae(u=>be(Pe(),u),"onError must be a function when provided.")),requestTimeoutMs:n(m(I(a),he(a),b(1,a),X(2147483647,a))),sentryDsn:n(p(l("sentryDsn must be a string or null when provided.")))},"Expected an object."),e);return{apiBaseUrl:o.apiBaseUrl,communitySlug:o.communitySlug,environment:o.environment,fetch:o.fetch,onError:o.onError,requestTimeoutMs:o.requestTimeoutMs,resourceSlugValue:M(r(t),o[t]),sentryDsn:o.sentryDsn}}catch(o){let u=o instanceof ma?o.issues[0]?.message??"Invalid SDK options.":"Invalid SDK options.";throw TypeError(u)}}function st(e,t){let a=Nr(e,t),r=a.environment;if(a.apiBaseUrl!==void 0&&r===void 0)throw TypeError("environment is required when apiBaseUrl is provided.");if(a.apiBaseUrl===void 0&&r==="development")throw TypeError("apiBaseUrl is required when environment is development.");let o=r===void 0?"production":r,{communitySlug:u,resourceSlugValue:s}=a,i=a.fetch??globalThis.fetch,f=a.apiBaseUrl===void 0?"https://portal.lockerverse.com/api":Ca(a.apiBaseUrl,o),c=Vr[o],h=a.sentryDsn,S=h===null?null:h??c.sentryDsn;return{apiBaseUrl:f,communitySlug:encodeURIComponent(u),communitySlugValue:u,environment:o,fetchImplementation:i,onError:a.onError,requestTimeoutMs:a.requestTimeoutMs??2e4,resourceSlug:encodeURIComponent(s),resourceSlugValue:s,sentryDsn:S}}function zr(){return globalThis.window}function lt({communitySlug:e,environment:t,getContext:a,onError:r,resourceContextName:o,sentryDsn:u}){let s=null;return function(i){try{Promise.resolve(r?.(i)).catch(()=>{})}catch{}let f=zr();if(i.reportable&&u&&f!==void 0){let c=s??import("./telemetry-6KTBIZ2M.js");s=c;let h={communitySlug:e,...a()},S=i.status===void 0?h:{...h,status:i.status};c.then(({captureSdkError:H})=>H({context:S,contextName:o,dsn:u,environment:t,error:i})).catch(()=>{s===c&&(s=null)})}return i}}function nt(e,t,a){function r(u,s){let i=new j({code:u.code,failureKind:s,message:u.message,operation:u.operation,reportable:!0});return u.report===!1?i:t(i)}async function o(u,s,i,f,c,h){let S=new AbortController,H=s?.signal??void 0,G=()=>S.abort(H?.reason);H?.aborted?G():H?.addEventListener("abort",G,{once:!0});let V,W=new Promise((K,ae)=>{V=()=>ae(S.signal.reason??new DOMException("The request was aborted.","AbortError")),S.signal.aborted?V():S.signal.addEventListener("abort",V,{once:!0})}),B=!1;function F(K,ae){return H?.aborted?"aborted":B?"timeout":S.signal.aborted||ae instanceof Error&&ae.name==="AbortError"?"aborted":K}let le=setTimeout(()=>{B=!0,S.abort(new DOMException("The request timed out.","TimeoutError"))},a);try{let K;try{K=await Promise.race([e(u,{...s,signal:S.signal}),W])}catch(Ie){throw r(f,F("network",Ie))}if(!K.ok)try{return{errorValue:h?await Promise.race([h(K),W]):void 0,ok:!1,response:K}}catch{throw r(f,"invalid_response")}let ae;try{ae=await Promise.race([K.json(),W])}catch(Ie){throw r(c,F(Ie instanceof TypeError?"network":"invalid_response",Ie))}try{return{ok:!0,response:K,value:i(ae)}}catch{throw r(c,"invalid_response")}}finally{clearTimeout(le),H?.removeEventListener("abort",G),V&&S.signal.removeEventListener("abort",V)}}return{requestJson:o}}function it(e,t){if(t===void 0)return e;e.mediaBaseUrl=t;let a=r=>r?.startsWith("https://media.lockerverse.com/")?`${t}/${r.slice(30)}`:r;e.configuration.image=a(e.configuration.image),e.community&&(e.community.banner=a(e.community.banner),e.community.thumbnail=a(e.community.thumbnail));for(let r of e.items)r.image=a(r.image),r.images=r.images.map(a);return e}var T=m(l(),U(1)),k=A(0),Y=m(l(),re()),ft=x(["draft","active","finished"]),dt=d({additionalUnitAmountCents:k,category:x(["shipping","handling","other"]),firstUnitAmountCents:k,name:T}),Wr=d({additionalCharge:n(p(dt)),auctionId:T,availableQuantity:p(k),bidCount:k,bidIncrementAmount:p(k),buyNowPriceAmount:p(k),collectShippingAddress:L(),communityId:T,createdAt:Y,description:p(l()),endAt:n(p(Y)),finalizedBidCount:k,finishedAt:n(p(Y)),id:T,image:p(l()),images:v(l()),inventoryQuantity:p(k),isSoldOut:L(),maxBidAmount:p(k),maxQuantityPerOrder:n(p(m(k,b(1)))),minBidAmount:p(k),name:l(),paidQuantity:k,path:T,position:k,reservedQuantity:k,saleMode:x(["auction","buy_now","hybrid"]),slug:T,startAt:n(p(Y)),status:ft,supportsMaximumBids:n(L()),updatedAt:Y}),ct=d({collectShippingAddress:L(),community:n(d({banner:n(p(l())),color:n(p(l())),name:n(l()),thumbnail:n(p(l()))})),communityId:T,configuration:d({collectShippingAddress:L(),endTimeEnabled:n(p(L())),image:p(l()),serviceFeeDefaultChecked:L(),serviceFeeEnabled:L(),startTimeEnabled:n(p(L()))}),createdAt:Y,description:p(l()),endAt:Y,id:T,items:v(Wr),name:l(),path:T,payment:n(d({connectedAccountId:p(T),currency:E("usd"),publishableKey:T})),position:k,pricingPolicy:d({currency:E("usd"),serviceFeeRateBasisPoints:k}),serviceFeeDefaultChecked:L(),serviceFeeEnabled:L(),slug:T,startAt:Y,status:ft,updatedAt:Y}),va={additionalCharge:n(p(dt)),additionalChargeCents:n(k,0),serviceFeeCents:k,serviceFeeRateBasisPoints:k,subtotalCents:k,totalCents:k},qe=e=>e.totalCents===e.subtotalCents+e.serviceFeeCents+(e.additionalChargeCents??0),pt={...va,clientSecret:p(T),requiresAction:L()},jr=m(d(pt),R(e=>qe(e)),R(e=>!e.requiresAction||e.clientSecret!==null)),mt=m(d({...pt,id:T,purchaseId:T,quantity:m(k,b(1)),status:x(["pending_payment","paid","payment_failed","expired","canceled","refunded"]),totalAmount:k}),R(e=>qe(e)),R(e=>e.id===e.purchaseId&&(!e.requiresAction||e.clientSecret!==null))),Xr=m(d({...va,quantity:m(k,b(1)),totalAmount:k,unitAmount:k}),R(e=>qe(e))),ht={confirmationToken:T,email:m(l(),te()),expectedAdditionalChargeCents:n(k),expectedServiceFeeCents:n(k),expectedSubtotalCents:n(k),expectedTotalCents:n(k),includeServiceFee:n(L()),phone:m(l(),de(/^\+[1-9]\d{1,14}$/))},$r=d({...ht,amount:m(k,b(100)),bidType:n(x(["fixed","maximum"]))}),Kr=d({...ht,clientRequestId:T,paymentMethodTypes:n(ga([E("card")])),quantity:m(k,b(1))}),Qr=e=>M(ct,e),Jr=e=>M(v(ct),e),Zr=e=>M(jr,e),Yr=e=>M(mt,e),eu=e=>M(Xr,e),au=e=>M($r,e),tu=e=>M(Kr,e),ru=e=>M(p(mt),e),uu=e=>M(m(d(va),R(t=>qe(t))),e),ou=e=>M(d({includeServiceFee:n(L()),quantity:m(k,b(1))}),e);function su(e,t,a){let r=e+t.map(o=>`/${encodeURIComponent(M(T,o))}`).join("");return a===void 0?r:`${r}?${new URLSearchParams({previewItem:M(T,a)})}`}function Os(e){let t=st(e,"communitySlug"),a=e.mediaBaseUrl===void 0?void 0:Ca(e.mediaBaseUrl,t.environment,"mediaBaseUrl"),r=f=>it(Qr(f),a),o=lt({communitySlug:t.communitySlugValue,environment:t.environment,getContext:()=>({}),onError:t.onError,resourceContextName:"lockerverse_auction",sentryDsn:t.sentryDsn}),{requestJson:u}=nt(t.fetchImplementation,o,t.requestTimeoutMs),s=`${t.apiBaseUrl}/auctions/communities/slug/${t.communitySlug}`;async function i(f,c,h,S,H,G=!1){let V=!!S&&!G,W,B;try{W=su(s,c,H),S&&(B={body:JSON.stringify(S.parse(S.value)),headers:{"content-type":"application/json"},method:"POST"})}catch{throw o(new j({...f,message:"Lockerverse auction input is invalid.",reportable:!1}))}try{let F=await u(W,B,h,{...f,report:!1},{...f,report:!1});if(!F.ok){let{status:le}=F.response;throw new j({...f,recoveryRecommended:V&&(le>=500||le===408),reportable:le>=500,status:le})}return Re(F.value)}catch(F){throw F instanceof j?o(new j({...f,recoveryRecommended:F.recoveryRecommended||V&&F.status===void 0,reportable:F.reportable,...F.status===void 0?void 0:{status:F.status}})):o(new j({...f,recoveryRecommended:V,reportable:!0}))}}return{createBid:(f,c,h)=>i({code:"auction_bid_failed",message:"Unable to submit Lockerverse auction bid.",operation:"create_auction_bid"},["path",f,"items",c,"bids"],Zr,{parse:au,value:h}),createPurchase:(f,c,h)=>i({code:"auction_purchase_failed",message:"Unable to submit Lockerverse auction purchase.",operation:"create_auction_purchase"},["path",f,"items",c,"purchases"],Yr,{parse:tu,value:h}),getPurchaseQuote:(f,c,h)=>i({code:"auction_load_failed",message:"Unable to load Lockerverse auction purchase quote.",operation:"load_auction"},["path",f,"items",c,"purchase-quote"],uu,{parse:ou,value:h},void 0,!0),getPurchaseReceipt:(f,c,h)=>i({code:"auction_receipt_failed",message:"Unable to load Lockerverse auction purchase receipt.",operation:"get_auction_purchase_receipt"},["path",f,"items",c,"purchases",h],eu),getPurchaseStatus:(f,c,h)=>i({code:"auction_purchase_status_failed",message:"Unable to load Lockerverse auction purchase status.",operation:"get_auction_purchase_status"},["path",f,"items",c,"purchase-status",h],ru),list:()=>i({code:"auction_load_failed",message:"Unable to load Lockerverse auctions.",operation:"list_auctions"},[],f=>Jr(f).map(c=>it(c,a))),load:(f,c)=>i({code:"auction_load_failed",message:"Unable to load Lockerverse auction.",operation:"load_auction"},["path",f],r,void 0,c?.previewItemSlug)}}function ee(e){if(!Number.isSafeInteger(e)||e<0)throw TypeError("Auction amounts must be non-negative safe integers.")}function _s(e,t,a=!1,r=0){if(ee(t),ee(r),a&&!e.serviceFeeEnabled)throw TypeError("The service fee is not available for this auction.");let o=a?e.pricingPolicy.serviceFeeRateBasisPoints:0;ee(o);let u=Math.round(t*o/1e4),s=t+u+r;ee(u),ee(s);let i={serviceFeeCents:u,serviceFeeRateBasisPoints:o,subtotalCents:t,totalCents:s};return r>0&&(i.additionalChargeCents=r),Re(i)}function Us(e){let t=e.minBidAmount??100,a=e.bidIncrementAmount??100;if(ee(t),ee(a),e.maxBidAmount===null)return t;ee(e.maxBidAmount);let r=Math.max(t,e.maxBidAmount+a);return ee(r),r}var lu=De({percentageOff:n(I()),amountOffCents:n(I()),message:n(l()),source:x(["email_list","promo_code"])},N()),nu=d({acceptsDiscounts:L(),eventId:p(l()),fulfillmentType:x(["none","event_admission"]),listingId:l(),listingSlug:l(),paymentOption:x(["one-time","monthly","annually","every-six-months"]),pricingMode:x(["fixed","custom"]),productId:l(),productName:l(),quantity:I(),subtotalCents:I(),unitAmountCents:I()}),Lt=d({checkoutId:l(),checkoutStatus:x(["action_required","failed","pending","success"]),clientSecret:p(l()),paymentReference:l(),paymentRequired:L(),requiresAction:L(),status:p(l())}),Sa=d({amountCents:I(),appliedDiscount:p(lu),connectedAccountId:p(l()),discountableSubtotalCents:I(),discountCents:I(),lineItems:v(nu),paymentOption:x(["one-time","monthly","annually","every-six-months"]),serviceFeeCents:I(),subtotalCents:I(),tipCents:I(),totalCents:I()}),iu=d({name:l(),partySize:m(I(),b(1))});d({nextCursor:p(l()),registrations:v(iu),totalAttendees:m(I(),b(0))});var fu=d({connectedAccountId:p(l()),currency:x(["usd"]),publishableKey:l()}),yt=d({amountCents:n(m(I(),b(100))),optionId:n(m(l(),ue())),productId:n(m(l(),ue())),quantity:n(m(I(),b(1)))}),du=d({color:l(),name:l(),thumbnail:p(l())}),cu=d({fieldId:l(),value:q(Z([L(),l(),v(l())]))}),pu=d({archivedAt:q(l()),id:l(),label:l()}),mu=d({archivedAt:q(l()),id:l(),label:l(),options:n(v(pu)),paymentOptionIds:n(m(v(m(l(),U(1))),U(1))),required:L(),type:x(["text","textarea","select","multi_select","radio","checkbox","checkboxes"])}),hu=d({description:p(l()),endAt:m(l(),re()),id:l(),location:p(l()),name:l(),startAt:m(l(),re()),status:x(["draft","active","finished","cancelled"])}),Lu=De({percentageOff:n(m(I(),b(0),X(100))),amountOffCents:n(m(I(),ya(),La(0),X(9007199254740991))),message:n(m(l(),me(200))),source:x(["email_list","promo_code"])},N()),yu=d({memberId:L(),merchSize:L(),phone:L(),promoCode:L(),serviceFee:L(),shipping:L(),tipping:L()}),Iu=d({customFields:v(mu),fields:yu,requiredShipping:n(O({productId:l(),triggerProductIds:v(l()),additionalUnitAmountCents:n(I())}))}),gu=d({currency:x(["usd"]),serviceFeeRateBasisPoints:I()}),xu=d({amountCents:p(I()),description:p(l()),fulfillmentType:x(["none","event_admission"]),id:l(),inventoryQuantity:p(I()),maxQuantity:p(I()),minimumAmountCents:p(I()),minQuantity:p(I()),name:l(),paymentOption:x(["one-time","monthly","annually","every-six-months"]),pricingMode:x(["fixed","custom"])}),Cu=d({acceptsDiscounts:L(),id:l(),maxQuantityPerOrder:p(I()),product:xu,productId:l(),slug:l()});d({email:n(m(l(),te())),includeServiceFee:n(L()),items:v(yt),promoCode:n(m(l(),me(255))),tipCents:n(m(I(),b(0)))});var It=d({community:du,config:Iu,description:p(l()),event:p(hu),id:l(),name:l(),payment:fu,pricingPolicy:gu,products:v(Cu),quote:n(Sa),showCommunityBranding:L(),title:p(l())}),vu=d({city:l(),country:l(),line1:l(),line2:n(l()),postal_code:l(),state:l()}),Su=d({address:vu,name:l()});d({confirmationToken:n(l()),customFieldAnswers:n(v(cu)),email:m(l(),te()),expectedAmountCents:n(m(I(),b(0))),expectedAppliedDiscount:q(Lu),expectedConnectedAccountId:q(l()),expectedDiscountableSubtotalCents:n(m(I(),b(0))),expectedDiscountCents:n(m(I(),b(0))),expectedServiceFeeCents:n(m(I(),b(0))),expectedSubtotalCents:n(m(I(),b(100))),expectedTipCents:n(m(I(),b(0))),expectedTotalCents:n(m(I(),b(0))),includeServiceFee:n(L()),items:v(yt),memberId:n(l()),merchSize:n(x(["XS","S","M","L","XL","XXL","XXXL"])),metadata:n(J(l(),l())),name:n(m(l(),me(255))),paymentReference:n(m(l(),ue())),phone:n(l()),promoCode:n(l()),quoteContractVersion:n(m(I(),b(1),X(1))),shipping:n(Su),tipCents:n(m(I(),b(0)))});var ku=d({city:l(),country:l(),line1:l(),line2:q(l()),postalCode:l(),state:l()}),wu=d({fieldId:l(),value:q(Z([L(),l(),v(l())]))}),bu=d({archivedAt:q(l()),id:l(),label:l()}),Au=d({archivedAt:q(l()),id:l(),label:l(),options:n(v(bu)),required:L(),type:x(["text","textarea","select","multi_select","radio","checkbox","checkboxes"])}),ye=d({enabled:L(),required:L()}),Pu=d({address:ye,email:ye,name:ye,participantCount:ye,phone:ye}),Du=d({builtInFields:Pu,customFields:v(Au)}),Gs=d({config:Du,coverImageUrl:p(l()),description:p(l()),eventId:q(m(l(),ue())),id:l(),isActive:L(),name:l(),slug:l(),title:p(l())});d({address:q(ku),answers:n(v(wu)),email:q(m(l(),te())),honeypot:n(l()),name:l(),participantCount:q(m(I(),b(1))),phone:q(l()),submissionReference:n(m(l(),ue()))});var Vs=d({id:l(),submittedAt:m(l(),re())});var Ee=x(["one-time","monthly","annually","every-six-months"]),ka=x(["none","event_admission"]),z=p(A(0)),gt=x(["available","sold_out"]),Ct=n(d({listings:v(d({listingId:y,maxPurchasableQuantity:z,remainingQuantity:z,status:gt})),sharedLimits:v(d({id:y,listingIds:v(y),listingWeights:n(J(y,A(1)),{}),remainingQuantity:A(0),status:gt}))}),{listings:[],sharedLimits:[]}),vt=m(l(),de(/^pk_(?:test|live)_\S+$/,"Invalid publishable key.")),xt={description:Fe,fulfillmentType:ka,id:y,inventoryQuantity:z,maxQuantity:z,minimumAmountCents:z,minQuantity:z,name:y,paymentOption:Ee},St=d({description:p(l()),endAt:y,id:y,location:p(l()),name:y,startAt:y,status:x(["draft","active","finished","cancelled"])}),Mu=Le("pricingMode",[d({...xt,amountCents:A(0),pricingMode:E("fixed")}),d({...xt,amountCents:z,pricingMode:E("custom")})]),Tu=d({acceptsDiscounts:n(L(),!1),id:y,maxQuantityPerOrder:n(z,null),product:Mu,productId:y,slug:y}),kt=n(d({memberId:n(L(),!1),merchSize:n(L(),!1),phone:n(L(),!1),promoCode:n(L(),!1),serviceFee:n(L(),!1),shipping:n(L(),!1),tipping:n(L(),!1)}),{}),wt=n(d({additionalUnitAmountCents:n(m(A(0),X(2147483647))),productId:y,triggerProductIds:v(y)})),Fu=m(d({availability:Ct,community:n(d({color:l(),memberIdLabel:n(p(l())),name:y,thumbnail:p(l()),widgetAchEnabled:n(L())})),config:n(d({customFields:xa,fields:kt,requiredShipping:wt})),description:Fe,event:p(St),id:n(l(),""),name:n(l(),"Lockerverse widget"),payment:d({connectedAccountId:n(p(y),null),currency:E("usd"),publishableKey:vt}),pricingPolicy:n(d({currency:n(E("usd"),"usd"),serviceFeeRateBasisPoints:n(A(0),0)})),products:n(v(Tu),[]),showCommunityBranding:n(L(),!0),title:Fe}),ce(e=>({...e,config:{customFields:e.config?.customFields??[],fields:{memberId:e.config?.fields?.memberId??!1,merchSize:e.config?.fields?.merchSize??!1,phone:e.config?.fields?.phone??!1,promoCode:e.config?.fields?.promoCode??!1,serviceFee:e.config?.fields?.serviceFee??!1,shipping:e.config?.fields?.shipping??!1,tipping:e.config?.fields?.tipping??!1},requiredShipping:e.config?.requiredShipping},pricingPolicy:e.pricingPolicy??{currency:"usd",serviceFeeRateBasisPoints:0}}))),Bu=d({acceptsDiscounts:L(),amountCents:p(A(0)),description:p(l()),fulfillmentType:ka,id:y,inventoryQuantity:z,listingId:y,maximumQuantity:z,minimumAmountCents:z,minimumQuantity:z,name:y,paymentOption:Ee,pricingMode:x(["fixed","custom"]),slug:y}),Ru=d({availability:Ct,community:p(d({accentColor:l(),imageUrl:p(l()),memberIdLabel:n(p(l())),name:y,widgetAchEnabled:n(L())})),event:p(St),payment:d({connectedAccountId:n(p(y),null),currency:E("usd"),publishableKey:vt}),pricingPolicy:d({currency:E("usd"),serviceFeeRateBasisPoints:A(0)}),products:v(Bu),widget:d({customFields:xa,description:p(l()),fields:kt,id:l(),name:y,requiredShipping:wt,showCommunityBranding:L(),title:p(l())})}),qu=p(d({amountOffCents:n(A(0)),message:n(l()),percentageOff:n(m(I(),ha(),b(0),X(100))),source:x(["email_list","promo_code"])})),Eu=d({acceptsDiscounts:L(),eventId:p(y),fulfillmentType:ka,listingId:y,listingSlug:y,paymentOption:Ee,pricingMode:x(["fixed","custom"]),productId:y,productName:y,quantity:A(1),subtotalCents:A(0),unitAmountCents:A(0)}),Ou=m(Sa,d({amountCents:A(0),appliedDiscount:qu,connectedAccountId:p(y),discountableSubtotalCents:A(0),discountCents:A(0),lineItems:v(Eu),paymentOption:Ee,serviceFeeCents:A(0),subtotalCents:A(0),tipCents:A(0),totalCents:A(0)}),R(({lineItems:e,paymentOption:t})=>e.length===0||e.some(a=>a.paymentOption!==t)?!1:t==="one-time"||e.length===1&&e[0]?.pricingMode==="fixed"&&e[0].quantity===1,"Invalid checkout cadence composition.")),_u=m(d({...Lt.entries,retryUrl:n(m(y,de(/^https:\/\//)))}),R(e=>e.checkoutId.trim()&&e.paymentReference.trim()?e.checkoutStatus==="action_required"?e.paymentRequired&&(e.requiresAction&&!!e.clientSecret?.trim()||!e.requiresAction&&e.clientSecret===null&&!!e.retryUrl):!e.requiresAction&&e.clientSecret===null:!1,"Invalid payment result state.")),Uu=_(Ou),$s=_(Ru),Ks=_(_u),Qs=_(It),Js=_(Fu);var Hu={email:n(l()),includeServiceFee:n(L()),promoCode:n(l()),tipCents:n(A(0))},bt=O(Hu),Zs=_(n(bt,{})),Gu=O({confirmationToken:n(y),customFieldAnswers:n(v(ut)),email:l(),memberId:n(l()),merchSize:n(x(["XS","S","M","L","XL","XXL","XXXL"])),metadata:n(J(l(),l())),paymentMethodConfiguration:n(E("explicit")),phone:n(l()),shipping:n(O({address:O({city:l(),country:l(),line1:l(),line2:n(l()),postal_code:l(),state:l()}),name:l()}))}),Vu=Z([O({amountCents:A(1),productId:y}),O({productId:y,quantity:A(1)}),O({productId:y})]),Nu=Z([O({amountCents:A(1),productSlug:y}),O({productSlug:y,quantity:A(1)}),O({productSlug:y})]),At=m(v(Vu),U(1)),wa=m(v(Nu),U(1)),zu=d({selection:wa}),Wu=$({catalog:n(N()),email:n(N()),includeServiceFee:n(N()),items:n(At),promoCode:n(N()),selection:n(wa),tipCents:n(N())}),Pt=m($({authoritative:E(!0),items:At,payment:d({connectedAccountId:p(y),currency:E("usd"),publishableKey:m(l(),U(1))}),paymentReference:m(l(),U(1)),pricing:bt}),ce(e=>{let{items:t,payment:a,paymentReference:r,pricing:o,...u}=e,s=Uu({...u,connectedAccountId:a.connectedAccountId}),{connectedAccountId:i,...f}=s;return{items:t,pricing:o,quote:{...f,authoritative:!0,payment:{connectedAccountId:i,currency:"usd",publishableKey:a.publishableKey},paymentOption:s.paymentOption,paymentReference:r}}})),ju=$({checkout:Pt,submission:Gu}),Xu=y,Ys=_($({})),el=_(Wu);var al=_(zu),tl=_(Xu);_(Pt);var rl=_(ju),ul=_(wa);var ol=d({code:x(["PAYMENT_WIDGET_PHONE_INVALID","PAYMENT_WIDGET_PHONE_REQUIRED","PAYMENT_WIDGET_SALES_LIMIT_REACHED"])});var Dt="https://analytics-be.lockerverse.com/api/v1/s/batch",$u={development:"lv_sdk_web_dev_3bf70e974e34c8de",production:"lv_sdk_web_b98c074ff66a5fbd"},Mt="lv_sdk_anonymous_id",Et="lv_sdk_attribution",Tt="lv_sdk_session",Ku="lv_sdk_analytics_optout",Qu=/[?#]/,Ju=1800*1e3,Zu=3e3,Yu=20,eo=100,ao=200,to=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],Ot=[...to,"campaign_id","ref","referral"],_t=new WeakMap,Aa=new Map,Ft=new Set,Oe,Bt=!1,Rt,ba;function Ue(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function Pa(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function Da(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function ro(){let e=globalThis.navigator;return"globalPrivacyControl"in e&&e.globalPrivacyControl===!0||e.doNotTrack==="1"||Ue(Ku)==="1"}function se(e){return e.slice(0,ao)}function Ut(){let e=Ue(Mt);return e||(ba??=Da(),Pa(Mt,ba),ba)}function uo(){let e=Date.now(),t="";try{let a=Me(p(d({id:l(),seen:n(I())})),JSON.parse(Ue(Tt)??"null"));a.success&&a.output?.id&&e-(a.output.seen??0)<Ju&&({id:t}=a.output)}catch{}return t||=Da(),Pa(Tt,JSON.stringify({id:t,seen:e})),t}function He(e){let t=new URLSearchParams(e),a=new URLSearchParams;for(let o of Ot){let u=t.get(o);u&&a.set(o,se(u))}let r=a.toString();return r?`?${r}`:""}function oo(){let{href:e,search:t}=globalThis.location,a=new URLSearchParams(t),r={};for(let i of Ot){let f=a.get(i);f&&(r[i==="ref"?"referral":i]=se(f))}let o="";try{let i=new URL(document.referrer);i.host!==globalThis.location.host&&(o=se(`${i.origin}${i.pathname}`))}catch{}if(o&&(r.referrer=o),Object.keys(r).length===0)return;let{origin:u,pathname:s}=new URL(e);return r.landing_url=se(`${u}${s}${He(t)}`),r}function Ht(){try{let e=Me(d({first:n(J(l(),l())),last:n(J(l(),l()))}),JSON.parse(Ue(Et)??"{}"));return e.success?e.output:{}}catch{return{}}}function Gt(){let e=Ht(),t=oo();if(t&&(e.last=t),!e.first){let{origin:a,pathname:r,search:o}=globalThis.location;e.first=t??{landing_url:se(`${a}${r}${He(o)}`)}}return Pa(Et,JSON.stringify(e)),e}function so(e,t){let{origin:a,pathname:r,search:o}=globalThis.location,u=He(o),s=t.last??{};return{campaign:{content:s.utm_content,medium:s.utm_medium,name:s.utm_campaign,source:s.utm_source,term:s.utm_term},groupId:e,library:{name:"@lockerverse/sdk",version:Be},page:{path:r,referrer:document.referrer?se(document.referrer.split(Qu)[0]??""):"",search:u,title:se(document.title),url:`${a}${r}${u}`},sessionId:uo()}}function _e(e=!1){clearTimeout(Oe),Oe=void 0;for(let[t,a]of Aa){let r=a.splice(0);if(r.length===0)continue;let o=JSON.stringify({batch:r,sentAt:new Date().toISOString(),writeKey:$u[t]});try{e&&globalThis.navigator.sendBeacon?.(Dt,new Blob([o],{type:"text/plain"}))||globalThis.fetch(Dt,{body:o,credentials:"omit",keepalive:o.length<6e4,method:"POST",mode:"no-cors"}).catch(()=>{})}catch{}}}function lo(){Bt||(Bt=!0,globalThis.addEventListener("pagehide",()=>_e(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&_e(!0)}))}function qt(e,t,a,r,o){let u=Gt(),s=Aa.get(e)??[];Aa.set(e,s);let i={anonymousId:Ut(),context:so(t,u),messageId:Da(),properties:{...o,surface:"sdk"},timestamp:new Date().toISOString(),type:a};a==="track"&&(i.event=r),s.push(i),s.length>eo&&s.shift(),s.length>=Yu?_e():Oe===void 0&&(Oe=setTimeout(()=>_e(),Zu))}var no=new Map([["landing_url","landingUrl"],["referral","referral_user_id"],["referrer","checkoutReferrer"]]);function io(){let{first:e,last:t}=Ht(),{origin:a,pathname:r}=globalThis.location,o=Object.entries(t??{}).map(([s,i])=>[no.get(s)??s,i]),u=Object.entries(e??{}).map(([s,i])=>[`first_${s}`,i]);return Object.fromEntries([["landingUrl",`${a}${r}`],...o,...u,["analyticsAnonymousId",Ut()]])}function fo(e){let{communitySlug:t,environment:a}=e,r=t,o=()=>e.enabled&&"document"in globalThis&&"location"in globalThis&&!ro(),u=(s,i,f)=>{try{if(!o())return;lo();let{pathname:c,search:h}=globalThis.location,S=`${c}${He(h)}`;S!==Rt&&(Rt=S,qt(a,r,"page","Page Viewed",{})),s==="track"&&qt(a,r,s,i,f)}catch{}};return{attribution(){try{return o()?(Gt(),io()):{}}catch{return{}}},group(s){r=s},once(s,i,f){let c=`${a}:${t}:${s}`;Ft.has(c)||(Ft.add(c),u("track",i,f))},track:(s,i)=>u("track",s,i)}}function Vt(e,t){let a=fo(t);return _t.set(e,a),a}function Ma(e){return _t.get(e)}function cl(e,t){return Vt(e,{communitySlug:t.communitySlug,enabled:t.enabled,environment:t.environment??"production"})}function pl(e,t){t&&(e.group(t.communityId),e.once(`widget:${t.id}`,"Widget Viewed",{auction_id:t.id,widget_id:t.id,widget_type:"auction"}),e.once(`auction:${t.id}`,"Auction Viewed",{auction_id:t.id}))}function ml(e,t,a){let r=Ma(e);r?.group(t.communityId),r?.once(`item:${a}`,"Auction Item Viewed",{auction_id:t.id,auction_item_id:a})}function hl(e,t,a,r,o){let u=Ma(e),s={auction_action:o?"purchase":"bid",auction_id:t.id,auction_item_id:a.id,checkout_type:"auction",currency:"USD",value:r.totalCents/100,widget_id:t.id,widget_type:"auction"};return{confirmed(i){u?.once(`order:${i}`,"Order Confirmation Viewed",s)},failed(i){o&&u?.track("Payment Failed",{...s,reason:i instanceof j?i.code:"payment_error"})},pressed(){u?.track("Payment Info Entered",s)},started(){u?.once(`checkout:${a.id}:${s.auction_action}`,"Checkout Started",s)}}}export{$e as a,Qe as b,fe as c,Ze as d,Je as e,Ye as f,ea as g,aa as h,ta as i,ra as j,ua as k,oa as l,sa as m,la as n,na as o,ia as p,fa as q,kr as r,Za as s,Cs as t,vs as u,wr as v,br as w,Ss as x,R as y,te as z,Ia as A,de as B,ce as C,Or as D,L as E,E as F,p as G,d as H,n as I,l as J,m as K,Me as L,j as M,Os as N,_s as O,Us as P,cl as Q,pl as R,ml as S,hl as T};
2
+ /*! For license information please see chunk-TQFXE7YH.js.LEGAL.txt */
@@ -1,2 +1,2 @@
1
- import{a as O,r as _}from"./chunk-AZY7R6CO.js";import{a as z,c as b}from"./chunk-DCANE7XH.js";var le=z(d=>{"use strict";var $e=O();function de(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(){}var f={d:{f:v,r:function(){throw Error(de(522))},D:v,C:v,L:v,m:v,X:v,S:v,M:v},p:0,findDOMNode:null},qe=Symbol.for("react.portal");function Fe(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qe,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}var L=$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;d.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(de(299));return Fe(t,e,null,r)};d.flushSync=function(t){var e=L.T,r=f.p;try{if(L.T=null,f.p=2,t)return t()}finally{L.T=e,f.p=r,f.d.f()}};d.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,f.d.C(t,e))};d.prefetchDNS=function(t){typeof t=="string"&&f.d.D(t)};d.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin),i=typeof e.integrity=="string"?e.integrity:void 0,a=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;r==="style"?f.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:a}):r==="script"&&f.d.X(t,{crossOrigin:n,integrity:i,fetchPriority:a,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};d.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var r=x(e.as,e.crossOrigin);f.d.M(t,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&f.d.M(t)};d.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin);f.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};d.preloadModule=function(t,e){if(typeof t=="string")if(e){var r=x(e.as,e.crossOrigin);f.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else f.d.m(t)};d.requestFormReset=function(t){f.d.r(t)};d.unstable_batchedUpdates=function(t,e){return t(e)};d.useFormState=function(t,e,r){return L.H.useFormState(t,e,r)};d.useFormStatus=function(){return L.H.useHostTransitionStatus()};d.version="19.2.8"});var Ve=z((ct,me)=>{"use strict";function ge(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ge)}catch(t){console.error(t)}}ge(),me.exports=le()});var he={grad:.9,turn:360,rad:360/(2*Math.PI)},p=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},u=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},l=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Q=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},B=function(t){return{r:l(t.r,0,255),g:l(t.g,0,255),b:l(t.b,0,255),a:l(t.a)}},I=function(t){return{r:u(t.r),g:u(t.g),b:u(t.b),a:u(t.a,3)}},be=/^#([0-9a-f]{3,8})$/i,R=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Z=function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=Math.max(e,r,n),o=a-Math.min(e,r,n),s=o?a===e?(r-n)/o:a===r?2+(n-e)/o:4+(e-r)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},ee=function(t){var e=t.h,r=t.s,n=t.v,i=t.a;e=e/360*6,r/=100,n/=100;var a=Math.floor(e),o=n*(1-r),s=n*(1-(e-a)*r),c=n*(1-(1-e+a)*r),m=a%6;return{r:255*[n,s,o,o,c,n][m],g:255*[c,n,n,s,o,o][m],b:255*[o,o,c,n,n,s][m],a:i}},K=function(t){return{h:Q(t.h),s:l(t.s,0,100),l:l(t.l,0,100),a:l(t.a)}},G=function(t){return{h:u(t.h),s:u(t.s),l:u(t.l),a:u(t.a,3)}},W=function(t){return ee((r=(e=t).s,{h:e.h,s:(r*=((n=e.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}));var e,r,n},A=function(t){return{h:(e=Z(t)).h,s:(i=(200-(r=e.s))*(n=e.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,n,i},pe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ye=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ve=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ke=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,D={string:[[function(t){var e=be.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?u(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?u(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=ve.exec(t)||ke.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:B({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=pe.exec(t)||ye.exec(t);if(!e)return null;var r,n,i=K({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(he[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return W(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=i===void 0?1:i;return p(e)&&p(r)&&p(n)?B({r:Number(e),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,r=t.s,n=t.l,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=K({h:Number(e),s:Number(r),l:Number(n),a:Number(a)});return W(o)},"hsl"],[function(t){var e=t.h,r=t.s,n=t.v,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=(function(s){return{h:Q(s.h),s:l(s.s,0,100),v:l(s.v,0,100),a:l(s.a)}})({h:Number(e),s:Number(r),v:Number(n),a:Number(a)});return ee(o)},"hsv"]]},X=function(t,e){for(var r=0;r<e.length;r++){var n=e[r][0](t);if(n)return[n,e[r][1]]}return[null,void 0]},_e=function(t){return typeof t=="string"?X(t.trim(),D.string):typeof t=="object"&&t!==null?X(t,D.object):[null,void 0]};var M=function(t,e){var r=A(t);return{h:r.h,s:l(r.s+100*e,0,100),l:r.l,a:r.a}},H=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Y=function(t,e){var r=A(t);return{h:r.h,s:r.s,l:l(r.l+100*e,0,100),a:r.a}},P=(function(){function t(e){this.parsed=_e(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return u(H(this.rgba),2)},t.prototype.isDark=function(){return H(this.rgba)<.5},t.prototype.isLight=function(){return H(this.rgba)>=.5},t.prototype.toHex=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,o=(a=e.a)<1?R(u(255*a)):"","#"+R(r)+R(n)+R(i)+o;var e,r,n,i,a,o},t.prototype.toRgb=function(){return I(this.rgba)},t.prototype.toRgbString=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,(a=e.a)<1?"rgba("+r+", "+n+", "+i+", "+a+")":"rgb("+r+", "+n+", "+i+")";var e,r,n,i,a},t.prototype.toHsl=function(){return G(A(this.rgba))},t.prototype.toHslString=function(){return e=G(A(this.rgba)),r=e.h,n=e.s,i=e.l,(a=e.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+a+")":"hsl("+r+", "+n+"%, "+i+"%)";var e,r,n,i,a},t.prototype.toHsv=function(){return e=Z(this.rgba),{h:u(e.h),s:u(e.s),v:u(e.v),a:u(e.a,3)};var e},t.prototype.invert=function(){return g({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,-e))},t.prototype.grayscale=function(){return g(M(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?g({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):u(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=A(this.rgba);return typeof e=="number"?g({h:e,s:r.s,l:r.l,a:r.a}):u(r.h)},t.prototype.isEqual=function(e){return this.toHex()===g(e).toHex()},t})(),g=function(t){return t instanceof P?t:new P(t)},J=[],te=function(t){t.forEach(function(e){J.indexOf(e)<0&&(e(P,D),J.push(e))})};function re(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var a={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,m=n[this.toHex()];if(m)return m;if(o?.closest){var k=this.toRgb(),y=1/0,E="black";if(!a.length)for(var T in r)a[T]=new t(r[T]).toRgb();for(var h in r){var j=(s=k,c=a[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));j<y&&(y=j,E=h)}return E}},e.string.push([function(o){var s=o.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new t(c).toRgb():null},"name"])}var we=/^#([\da-f]{3}|[\da-f]{6})$/i,Se=/^([\da-f]{3}|[\da-f]{6})$/i;function U(t){let e=t.trim();return Se.test(e)?`#${e}`:e}function Ne(t){let e=we.exec(U(t));if(!e)return;let[,r]=e;if(!r)return;let n=r.length===3?Array.from(r,i=>`${i}${i}`).join(""):r;return[0,2,4].map(i=>Number.parseInt(n.slice(i,i+2),16))}function $([t,e,r]){let[n=0,i=0,a=0]=[t,e,r].map((m=0)=>{let k=m/255;return k<=.04045?k/12.92:((k+.055)/1.055)**2.4}),o=.2126*n+.7152*i+.0722*a,s=(o+.05)/.05,c=1.05/(o+.05);return s>=c?"#000":"#fff"}function Be(t){let e=Ne(t);if(e)return $(e)}te([re]);var ne="c062f2a0-f356-4fa1-bde8-3f08d42c2858",Ee="#6f8f6d";function Ae(t,e){let r=g(t);if(!r.isValid())return;let{r:n,g:i,b:a,a:o}=r.toRgb(),s=e==="dark"?5:255;return $([n,i,a].map(c=>c*o+s*(1-o)))}function Le(t,e={},r="light"){let n=t.community?.color?.trim(),i=e["--lockerverse-accent"]??(n?U(n):Ee),a={"--lockerverse-font-family":"inherit",...e,"--lockerverse-accent":i,"--lockerverse-accent-contrast":e["--lockerverse-accent-contrast"]??Ae(i,r)??"#000"};return t.id===ne&&!a["--lockerverse-auction-catalog-columns"]&&(a["--lockerverse-auction-catalog-columns"]="2"),a}function Ye(t,e={},r="light"){let n=Le(t,e,r),i={className:"lockerverse-auctions--embed",style:n},a=t.id===ne?"light":void 0;return{catalog:{className:i.className,showFilters:!1,showHeader:!1,showLineup:!1,style:n},defaultTheme:a,item:i}}var q=b(_(),1);function Qe({href:t,onBack:e,className:r,children:n,elementRef:i}){return t?(0,q.jsx)("a",{className:r,href:t,onClick:a=>{e&&a.button===0&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&(a.preventDefault(),e())},ref:i,children:n}):e?(0,q.jsx)("button",{className:r,onClick:e,ref:i,type:"button",children:n}):null}var w=b(O(),1),ae=b(_(),1),Te=(0,w.createContext)(void 0),Oe=[96,192,320,480,640,960,1280,1920],Re=/\.(jpe?g|png|webp|avif)$/i,Ce=/\/+$/,xe=new Set(["media.lockerverse.com","dev-media.lockerverse.com"]);function Ie(t,e){if(xe.has(t.hostname)&&!t.port)return t.pathname;if(!e)return;let r=new URL(e),n=`${r.pathname.replace(Ce,"")}/`;if(!(r.username||r.password||r.search||r.hash||t.origin!==r.origin||!t.pathname.startsWith(n)))return`/${t.pathname.slice(n.length)}`}function Me(t,e){if(t)try{let r=new URL(t),n=Ie(r,e);return r.protocol!=="https:"||!n||r.username||r.password||r.search||r.hash||n.startsWith("/__image/")||n.includes("/chat-media/")||!Re.test(n)?void 0:r}catch{}}function ie(t,e){return t.searchParams.set("w",String(e)),t.searchParams.set("f","webp"),t.href}function et({alt:t,width:e,height:r,src:n,maxWidth:i,onError:a,decoding:o="async",...s}){let[c,m]=(0,w.useState)(),k=(0,w.useContext)(Te),y=c===n?void 0:Me(n,k),E=Oe.filter(h=>h<=i),T=E.at(-1)??96;return(0,ae.jsx)("img",{...s,alt:t,decoding:o,height:r,onError:h=>{y?m(n):a?.(h)},src:y?ie(y,T):n,srcSet:y?E.map(h=>`${ie(y,h)} ${h}w`).join(", "):void 0,width:e})}var C=b(O(),1),S=new Map,F,se=0,He=2147483647;function V(){clearTimeout(F),F=void 0;let t=Date.now(),e=Number.POSITIVE_INFINITY;for(let r of S.values())for(let n of r)n>t&&(e=Math.min(e,n));Number.isFinite(e)&&(F=setTimeout(ue,Math.min(e-t+1,He)))}function ue(){se+=1;for(let t of S.keys())t();V()}function oe(){document.hidden||ue()}var De=()=>se,Pe=()=>0;function rt(t,e,r=[]){let n=[t,e,...r.flatMap(a=>[a.startAt??t,a.endAt??e])].join(","),i=(0,C.useCallback)(a=>(S.size||document.addEventListener("visibilitychange",oe),S.set(a,n.split(",").map(Date.parse)),V(),()=>{S.delete(a),V(),S.size||document.removeEventListener("visibilitychange",oe)}),[n]);(0,C.useSyncExternalStore)(i,De,Pe)}var Ue=/<\/?(?:p|br|strong|em|u|s|ul|ol|li|blockquote|pre|code|hr|h[1-6]|a)(?:\s|\/?>)/i;function ce(t){return Ue.test(t)?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n|\r|\n/g,"<br>")}var fe=b(_(),1);function ot({description:t,className:e,id:r}){return(0,fe.jsx)("div",{className:["lockerverse-auctions__description",e].filter(Boolean).join(" "),dangerouslySetInnerHTML:{__html:ce(t)},id:r})}var N=b(O(),1);function ft(){let t=(0,N.useRef)(null),[e,r]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let n=t.current;if(!(n&&"IntersectionObserver"in window))return;let i=!1,a=()=>r(i&&!document.hidden),o=new IntersectionObserver(([s])=>{i=!!(s?.isIntersecting&&s.intersectionRatio>0),a()});return o.observe(n),document.addEventListener("visibilitychange",a),()=>{o.disconnect(),document.removeEventListener("visibilitychange",a)}},[]),{ref:t,visible:e}}export{Ve as a,Be as b,Le as c,Ye as d,Qe as e,ot as f,Te as g,et as h,ft as i,rt as j};
2
- /*! For license information please see chunk-RSE2YFEO.js.LEGAL.txt */
1
+ import{a as O,r as _}from"./chunk-TQFXE7YH.js";import{a as z,c as b}from"./chunk-DCANE7XH.js";var le=z(d=>{"use strict";var $e=O();function de(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(){}var f={d:{f:v,r:function(){throw Error(de(522))},D:v,C:v,L:v,m:v,X:v,S:v,M:v},p:0,findDOMNode:null},qe=Symbol.for("react.portal");function Fe(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qe,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}var L=$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;d.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(de(299));return Fe(t,e,null,r)};d.flushSync=function(t){var e=L.T,r=f.p;try{if(L.T=null,f.p=2,t)return t()}finally{L.T=e,f.p=r,f.d.f()}};d.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,f.d.C(t,e))};d.prefetchDNS=function(t){typeof t=="string"&&f.d.D(t)};d.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin),i=typeof e.integrity=="string"?e.integrity:void 0,a=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;r==="style"?f.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:a}):r==="script"&&f.d.X(t,{crossOrigin:n,integrity:i,fetchPriority:a,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};d.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var r=x(e.as,e.crossOrigin);f.d.M(t,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&f.d.M(t)};d.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin);f.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};d.preloadModule=function(t,e){if(typeof t=="string")if(e){var r=x(e.as,e.crossOrigin);f.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else f.d.m(t)};d.requestFormReset=function(t){f.d.r(t)};d.unstable_batchedUpdates=function(t,e){return t(e)};d.useFormState=function(t,e,r){return L.H.useFormState(t,e,r)};d.useFormStatus=function(){return L.H.useHostTransitionStatus()};d.version="19.2.8"});var Ve=z((ct,me)=>{"use strict";function ge(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ge)}catch(t){console.error(t)}}ge(),me.exports=le()});var he={grad:.9,turn:360,rad:360/(2*Math.PI)},p=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},u=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},l=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Q=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},B=function(t){return{r:l(t.r,0,255),g:l(t.g,0,255),b:l(t.b,0,255),a:l(t.a)}},I=function(t){return{r:u(t.r),g:u(t.g),b:u(t.b),a:u(t.a,3)}},be=/^#([0-9a-f]{3,8})$/i,R=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Z=function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=Math.max(e,r,n),o=a-Math.min(e,r,n),s=o?a===e?(r-n)/o:a===r?2+(n-e)/o:4+(e-r)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},ee=function(t){var e=t.h,r=t.s,n=t.v,i=t.a;e=e/360*6,r/=100,n/=100;var a=Math.floor(e),o=n*(1-r),s=n*(1-(e-a)*r),c=n*(1-(1-e+a)*r),m=a%6;return{r:255*[n,s,o,o,c,n][m],g:255*[c,n,n,s,o,o][m],b:255*[o,o,c,n,n,s][m],a:i}},K=function(t){return{h:Q(t.h),s:l(t.s,0,100),l:l(t.l,0,100),a:l(t.a)}},G=function(t){return{h:u(t.h),s:u(t.s),l:u(t.l),a:u(t.a,3)}},W=function(t){return ee((r=(e=t).s,{h:e.h,s:(r*=((n=e.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}));var e,r,n},A=function(t){return{h:(e=Z(t)).h,s:(i=(200-(r=e.s))*(n=e.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,n,i},pe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ye=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ve=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ke=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,D={string:[[function(t){var e=be.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?u(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?u(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=ve.exec(t)||ke.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:B({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=pe.exec(t)||ye.exec(t);if(!e)return null;var r,n,i=K({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(he[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return W(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=i===void 0?1:i;return p(e)&&p(r)&&p(n)?B({r:Number(e),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,r=t.s,n=t.l,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=K({h:Number(e),s:Number(r),l:Number(n),a:Number(a)});return W(o)},"hsl"],[function(t){var e=t.h,r=t.s,n=t.v,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=(function(s){return{h:Q(s.h),s:l(s.s,0,100),v:l(s.v,0,100),a:l(s.a)}})({h:Number(e),s:Number(r),v:Number(n),a:Number(a)});return ee(o)},"hsv"]]},X=function(t,e){for(var r=0;r<e.length;r++){var n=e[r][0](t);if(n)return[n,e[r][1]]}return[null,void 0]},_e=function(t){return typeof t=="string"?X(t.trim(),D.string):typeof t=="object"&&t!==null?X(t,D.object):[null,void 0]};var M=function(t,e){var r=A(t);return{h:r.h,s:l(r.s+100*e,0,100),l:r.l,a:r.a}},H=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Y=function(t,e){var r=A(t);return{h:r.h,s:r.s,l:l(r.l+100*e,0,100),a:r.a}},P=(function(){function t(e){this.parsed=_e(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return u(H(this.rgba),2)},t.prototype.isDark=function(){return H(this.rgba)<.5},t.prototype.isLight=function(){return H(this.rgba)>=.5},t.prototype.toHex=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,o=(a=e.a)<1?R(u(255*a)):"","#"+R(r)+R(n)+R(i)+o;var e,r,n,i,a,o},t.prototype.toRgb=function(){return I(this.rgba)},t.prototype.toRgbString=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,(a=e.a)<1?"rgba("+r+", "+n+", "+i+", "+a+")":"rgb("+r+", "+n+", "+i+")";var e,r,n,i,a},t.prototype.toHsl=function(){return G(A(this.rgba))},t.prototype.toHslString=function(){return e=G(A(this.rgba)),r=e.h,n=e.s,i=e.l,(a=e.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+a+")":"hsl("+r+", "+n+"%, "+i+"%)";var e,r,n,i,a},t.prototype.toHsv=function(){return e=Z(this.rgba),{h:u(e.h),s:u(e.s),v:u(e.v),a:u(e.a,3)};var e},t.prototype.invert=function(){return g({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,-e))},t.prototype.grayscale=function(){return g(M(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?g({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):u(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=A(this.rgba);return typeof e=="number"?g({h:e,s:r.s,l:r.l,a:r.a}):u(r.h)},t.prototype.isEqual=function(e){return this.toHex()===g(e).toHex()},t})(),g=function(t){return t instanceof P?t:new P(t)},J=[],te=function(t){t.forEach(function(e){J.indexOf(e)<0&&(e(P,D),J.push(e))})};function re(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var a={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,m=n[this.toHex()];if(m)return m;if(o?.closest){var k=this.toRgb(),y=1/0,E="black";if(!a.length)for(var T in r)a[T]=new t(r[T]).toRgb();for(var h in r){var j=(s=k,c=a[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));j<y&&(y=j,E=h)}return E}},e.string.push([function(o){var s=o.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new t(c).toRgb():null},"name"])}var we=/^#([\da-f]{3}|[\da-f]{6})$/i,Se=/^([\da-f]{3}|[\da-f]{6})$/i;function U(t){let e=t.trim();return Se.test(e)?`#${e}`:e}function Ne(t){let e=we.exec(U(t));if(!e)return;let[,r]=e;if(!r)return;let n=r.length===3?Array.from(r,i=>`${i}${i}`).join(""):r;return[0,2,4].map(i=>Number.parseInt(n.slice(i,i+2),16))}function $([t,e,r]){let[n=0,i=0,a=0]=[t,e,r].map((m=0)=>{let k=m/255;return k<=.04045?k/12.92:((k+.055)/1.055)**2.4}),o=.2126*n+.7152*i+.0722*a,s=(o+.05)/.05,c=1.05/(o+.05);return s>=c?"#000":"#fff"}function Be(t){let e=Ne(t);if(e)return $(e)}te([re]);var ne="c062f2a0-f356-4fa1-bde8-3f08d42c2858",Ee="#6f8f6d";function Ae(t,e){let r=g(t);if(!r.isValid())return;let{r:n,g:i,b:a,a:o}=r.toRgb(),s=e==="dark"?5:255;return $([n,i,a].map(c=>c*o+s*(1-o)))}function Le(t,e={},r="light"){let n=t.community?.color?.trim(),i=e["--lockerverse-accent"]??(n?U(n):Ee),a={"--lockerverse-font-family":"inherit",...e,"--lockerverse-accent":i,"--lockerverse-accent-contrast":e["--lockerverse-accent-contrast"]??Ae(i,r)??"#000"};return t.id===ne&&!a["--lockerverse-auction-catalog-columns"]&&(a["--lockerverse-auction-catalog-columns"]="2"),a}function Ye(t,e={},r="light"){let n=Le(t,e,r),i={className:"lockerverse-auctions--embed",style:n},a=t.id===ne?"light":void 0;return{catalog:{className:i.className,showFilters:!1,showHeader:!1,showLineup:!1,style:n},defaultTheme:a,item:i}}var q=b(_(),1);function Qe({href:t,onBack:e,className:r,children:n,elementRef:i}){return t?(0,q.jsx)("a",{className:r,href:t,onClick:a=>{e&&a.button===0&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&(a.preventDefault(),e())},ref:i,children:n}):e?(0,q.jsx)("button",{className:r,onClick:e,ref:i,type:"button",children:n}):null}var w=b(O(),1),ae=b(_(),1),Te=(0,w.createContext)(void 0),Oe=[96,192,320,480,640,960,1280,1920],Re=/\.(jpe?g|png|webp|avif)$/i,Ce=/\/+$/,xe=new Set(["media.lockerverse.com","dev-media.lockerverse.com"]);function Ie(t,e){if(xe.has(t.hostname)&&!t.port)return t.pathname;if(!e)return;let r=new URL(e),n=`${r.pathname.replace(Ce,"")}/`;if(!(r.username||r.password||r.search||r.hash||t.origin!==r.origin||!t.pathname.startsWith(n)))return`/${t.pathname.slice(n.length)}`}function Me(t,e){if(t)try{let r=new URL(t),n=Ie(r,e);return r.protocol!=="https:"||!n||r.username||r.password||r.search||r.hash||n.startsWith("/__image/")||n.includes("/chat-media/")||!Re.test(n)?void 0:r}catch{}}function ie(t,e){return t.searchParams.set("w",String(e)),t.searchParams.set("f","webp"),t.href}function et({alt:t,width:e,height:r,src:n,maxWidth:i,onError:a,decoding:o="async",...s}){let[c,m]=(0,w.useState)(),k=(0,w.useContext)(Te),y=c===n?void 0:Me(n,k),E=Oe.filter(h=>h<=i),T=E.at(-1)??96;return(0,ae.jsx)("img",{...s,alt:t,decoding:o,height:r,onError:h=>{y?m(n):a?.(h)},src:y?ie(y,T):n,srcSet:y?E.map(h=>`${ie(y,h)} ${h}w`).join(", "):void 0,width:e})}var C=b(O(),1),S=new Map,F,se=0,He=2147483647;function V(){clearTimeout(F),F=void 0;let t=Date.now(),e=Number.POSITIVE_INFINITY;for(let r of S.values())for(let n of r)n>t&&(e=Math.min(e,n));Number.isFinite(e)&&(F=setTimeout(ue,Math.min(e-t+1,He)))}function ue(){se+=1;for(let t of S.keys())t();V()}function oe(){document.hidden||ue()}var De=()=>se,Pe=()=>0;function rt(t,e,r=[]){let n=[t,e,...r.flatMap(a=>[a.startAt??t,a.endAt??e])].join(","),i=(0,C.useCallback)(a=>(S.size||document.addEventListener("visibilitychange",oe),S.set(a,n.split(",").map(Date.parse)),V(),()=>{S.delete(a),V(),S.size||document.removeEventListener("visibilitychange",oe)}),[n]);(0,C.useSyncExternalStore)(i,De,Pe)}var Ue=/<\/?(?:p|br|strong|em|u|s|ul|ol|li|blockquote|pre|code|hr|h[1-6]|a)(?:\s|\/?>)/i;function ce(t){return Ue.test(t)?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n|\r|\n/g,"<br>")}var fe=b(_(),1);function ot({description:t,className:e,id:r}){return(0,fe.jsx)("div",{className:["lockerverse-auctions__description",e].filter(Boolean).join(" "),dangerouslySetInnerHTML:{__html:ce(t)},id:r})}var N=b(O(),1);function ft(){let t=(0,N.useRef)(null),[e,r]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let n=t.current;if(!(n&&"IntersectionObserver"in window))return;let i=!1,a=()=>r(i&&!document.hidden),o=new IntersectionObserver(([s])=>{i=!!(s?.isIntersecting&&s.intersectionRatio>0),a()});return o.observe(n),document.addEventListener("visibilitychange",a),()=>{o.disconnect(),document.removeEventListener("visibilitychange",a)}},[]),{ref:t,visible:e}}export{Ve as a,Be as b,Le as c,Ye as d,Qe as e,ot as f,Te as g,et as h,ft as i,rt as j};
2
+ /*! For license information please see chunk-VYRBMRIO.js.LEGAL.txt */
@@ -0,0 +1,2 @@
1
+ import{a as So,c as tn,e as Dt,f as Lr,g as Mr,h as at,i as Fr,j as Ft}from"./chunk-VYRBMRIO.js";import{a as Vr,d as nn,e as Ur,o as Wr,p as $r,q as zr}from"./chunk-OMS5LFW5.js";import{P as Br,S as Hr,a as N,b as ht,c as wr,d as Pr,e as Nt,f as Dn,g as Ar,h as Co,i as Or,j as Ir,l as Nr,m as Dr,n as _n,p as Ln,q as _r,r as he,s as et,t as _t,u as Fe,v as Lt,x as Mt}from"./chunk-TQFXE7YH.js";import{a as Nn,b as gt,c as C}from"./chunk-DCANE7XH.js";var ss=Nn(is=>{"use strict";var Kt=N();function Tu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ku=typeof Object.is=="function"?Object.is:Tu,wu=Kt.useState,Pu=Kt.useEffect,Au=Kt.useLayoutEffect,Ou=Kt.useDebugValue;function Iu(e,t){var n=t(),o=wu({inst:{value:n,getSnapshot:t}}),r=o[0].inst,i=o[1];return Au(function(){r.value=n,r.getSnapshot=t,cr(r)&&i({inst:r})},[e,n,t]),Pu(function(){return cr(r)&&i({inst:r}),e(function(){cr(r)&&i({inst:r})})},[e]),Ou(n),n}function cr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ku(e,n)}catch{return!0}}function Nu(e,t){return t()}var Du=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Nu:Iu;is.useSyncExternalStore=Kt.useSyncExternalStore!==void 0?Kt.useSyncExternalStore:Du});var ar=Nn((Zm,cs)=>{"use strict";cs.exports=ss()});var us=Nn(as=>{"use strict";var oo=N(),_u=ar();function Lu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mu=typeof Object.is=="function"?Object.is:Lu,Fu=_u.useSyncExternalStore,Bu=oo.useRef,Hu=oo.useEffect,Vu=oo.useMemo,Uu=oo.useDebugValue;as.useSyncExternalStoreWithSelector=function(e,t,n,o,r){var i=Bu(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Vu(function(){function u(p){if(!c){if(c=!0,l=p,p=o(p),r!==void 0&&s.hasValue){var d=s.value;if(r(d,p))return f=d}return f=p}if(d=f,Mu(l,p))return d;var h=o(p);return r!==void 0&&r(d,h)?(l=p,d):(l=p,f=h)}var c=!1,l,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,o,r]);var a=Fu(e,i[0],i[1]);return Hu(function(){s.hasValue=!0,s.value=a},[a]),Uu(a),a}});var fs=Nn((tg,ls)=>{"use strict";ls.exports=us()});var Ce=C(N(),1);var ho=C(N(),1);var st={};gt(st,{Backdrop:()=>ai,Close:()=>gi,Description:()=>vi,Handle:()=>Sn,Popup:()=>Ws,Portal:()=>Ks,Root:()=>rc,Title:()=>ac,Trigger:()=>fc,Viewport:()=>sc,createHandle:()=>dc});var ci=C(N(),1);function Vc(e,t){return function(o,...r){let i=new URL(e);return i.searchParams.set("code",o.toString()),r.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${o}; visit ${i} for the full message.`}}var Uc=Vc("https://base-ui.com/production-error","Base UI"),ze=Uc;var on=C(N(),1),Mn=on.createContext(!1),To=on.createContext(void 0);function Ie(e){let t=on.useContext(To);if(e===!1&&t===void 0)throw new Error(ze(27));return t}var yt=C(N(),1);var Yr=C(N(),1),jr={};function Xe(e,t){let n=Yr.useRef(jr);return n.current===jr&&(n.current=e(t)),n}function Bt(e,t,n,o){let r=Xe(Kr).current;return Wc(r,e,t,n,o)&&qr(r,[e,t,n,o]),r.callback}function Gr(e){let t=Xe(Kr).current;return $c(t,e)&&qr(t,e),t.callback}function Kr(){return{callback:null,cleanup:null,refs:[]}}function Wc(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function $c(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function qr(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=i(n);typeof s=="function"&&(o[r]=s);break}case"object":{i.current=n;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=o[r];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var Jr=C(N(),1);var Xr=C(N(),1),zc=parseInt(Xr.version,10);function Ht(e){return zc>=e}function ko(e){if(!Jr.isValidElement(e))return null;let t=e,n=t.props;return(Ht(19)?n?.ref:t.ref)??null}function rn(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Vt(){}var Af=Object.freeze([]),ye=Object.freeze({});function Qr(e,t){let n={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let i=t[o](r);i!=null&&Object.assign(n,i);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function Zr(e,t){return typeof e=="function"?e(t):e}function ei(e,t){return typeof e=="function"?e(t):e}var wo={};function cn(e,t,n,o,r){if(!n&&!o&&!r&&!e)return Fn(t);let i=Fn(e);return t&&(i=sn(i,t)),n&&(i=sn(i,n)),o&&(i=sn(i,o)),r&&(i=sn(i,r)),i}function ti(e){if(e.length===0)return wo;if(e.length===1)return Fn(e[0]);let t=Fn(e[0]);for(let n=1;n<e.length;n+=1)t=sn(t,e[n]);return t}function Fn(e){return Po(e)?{...oi(e,wo)}:jc(e)}function sn(e,t){return Po(t)?oi(t,e):Yc(e,t)}function jc(e){let t={...e};for(let n in t){let o=t[n];ni(n,o)&&(t[n]=ri(o))}return t}function Yc(e,t){if(!t)return e;for(let n in t){let o=t[n];switch(n){case"style":{e[n]=rn(e.style,o);break}case"className":{e[n]=Ao(e.className,o);break}default:ni(n,o)?e[n]=Gc(e[n],o):e[n]=o}}return e}function ni(e,t){let n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function Po(e){return typeof e=="function"}function oi(e,t){return Po(e)?e(t):e??wo}function Gc(e,t){return t?e?(...n)=>{let o=n[0];if(ii(o)){let i=o;an(i);let s=t(...n);return i.baseUIHandlerPrevented||e?.(...n),s}let r=t(...n);return e?.(...n),r}:ri(t):e}function ri(e){return e&&((...t)=>{let n=t[0];return ii(n)&&an(n),e(...t)})}function an(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ao(e,t){return t?e?t+" "+e:t:e}function ii(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Oo=C(N(),1);function _e(e,t,n={}){let o=t.render,r=Kc(t,n);if(n.enabled===!1)return null;let i=n.state??ye;return Jc(e,o,r,i)}function Kc(e,t={}){let{className:n,style:o,render:r}=e,{state:i=ye,ref:s,props:a,stateAttributesMapping:u,enabled:c=!0}=t,l=c?Zr(n,i):void 0,f=c?ei(o,i):void 0,m=c?Qr(i,u):ye,p=c&&a?qc(a):void 0,d=c?rn(m,p)??{}:ye;return typeof document<"u"&&(c?Array.isArray(s)?d.ref=Gr([d.ref,ko(r),...s]):d.ref=Bt(d.ref,ko(r),s):Bt(null,null)),c?(l!==void 0&&(d.className=Ao(d.className,l)),f!==void 0&&(d.style=rn(d.style,f)),d):ye}function qc(e){return Array.isArray(e)?ti(e):cn(void 0,e)}var Xc=Symbol.for("react.lazy");function Jc(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);let r=cn(n,t.props);r.ref=n.ref;let i=t;return i?.$$typeof===Xc&&(i=yt.Children.toArray(t)[0]),yt.cloneElement(i,r)}if(e&&typeof e=="string")return Qc(e,n);throw new Error(ze(8))}function Qc(e,t){return e==="button"?(0,Oo.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Oo.createElement)("img",{alt:"",...t,key:t.key}):yt.createElement(e,t)}var bt=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),Zc={[bt.startingStyle]:""},ea={[bt.endingStyle]:""},Ut={transitionStatus(e){return e==="starting"?Zc:e==="ending"?ea:null}};var We=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=bt.startingStyle]="startingStyle",e[e.endingStyle=bt.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Io=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),ta={[Io.popupOpen]:""},Kf={[Io.popupOpen]:"",[Io.pressed]:""},na={[We.open]:""},oa={[We.closed]:""},ra={[We.anchorHidden]:""},si={open(e){return e?ta:null}};var Wt={open(e){return e?na:oa},anchorHidden(e){return e?ra:null}};var ia={...Wt,...Ut},ai=ci.forwardRef(function(t,n){let{render:o,className:r,style:i,forceRender:s=!1,...a}=t,{store:u}=Ie(),c=u.useState("open"),l=u.useState("nested"),f=u.useState("mounted"),m=u.useState("transitionStatus");return _e("div",t,{state:{open:c,transitionStatus:m},ref:[u.context.backdropRef,n],stateAttributesMapping:ia,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:s||!l})});var mi=C(N(),1);var $t=C(N(),1);function Bn(){return typeof window<"u"}function Le(e){return Hn(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sa(e){var t;return(t=(Hn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hn(e){return Bn()?e instanceof Node||e instanceof je(e).Node:!1}function ut(e){return Bn()?e instanceof Element||e instanceof je(e).Element:!1}function Ne(e){return Bn()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function tt(e){return!Bn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}function Vn(e){let{overflow:t,overflowX:n,overflowY:o,display:r}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Un(e){return/^(html|body|#document)$/.test(Le(e))}function vt(e){return je(e).getComputedStyle(e)}function ui(e){if(Le(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tt(e)&&e.host||sa(e);return tt(t)?t.host:t}var ca=C(N(),1),un={...ca};var No=un.useInsertionEffect,aa=No&&No!==un.useLayoutEffect?No:e=>e();function oe(e){let t=Xe(ua).current;return t.next=e,aa(t.effect),t.trampoline}function ua(){let e={next:void 0,callback:la,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function la(){}var li=C(N(),1),fa=()=>{},X=typeof document<"u"?li.useLayoutEffect:fa;var Wn=C(N(),1),da=Wn.createContext(void 0);function fi(e=!1){let t=Wn.useContext(da);if(t===void 0&&!e)throw new Error(ze(16));return t}var di=C(N(),1);function pi(e){let{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:r=0,isNativeButton:i}=e,s=o&&t!==!1,a=o&&t===!1;return{props:di.useMemo(()=>{let c={onKeyDown(l){n&&t&&l.key!=="Tab"&&l.preventDefault()}};return o||(c.tabIndex=r,!i&&n&&(c.tabIndex=t?r:-1)),(i&&(t||s)||!i&&n)&&(c["aria-disabled"]=n),i&&(!t||a)&&(c.disabled=n),c},[o,n,t,s,a,i,r])}}function ln(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0,composite:i}=e,s=$t.useRef(null),a=fi(!0),u=i??a!==void 0,{props:c}=pi({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:o,isNativeButton:r}),l=$t.useCallback(()=>{let p=s.current;Do(p)&&u&&t&&c.disabled===void 0&&p.disabled&&(p.disabled=!1)},[t,c.disabled,u]);X(l,[l]);let f=$t.useCallback((p={})=>{let{onClick:d,onMouseDown:h,onKeyUp:y,onKeyDown:g,onPointerDown:b,...E}=p;return cn({onClick(v){if(t){v.preventDefault();return}d?.(v)},onMouseDown(v){t||h?.(v)},onKeyDown(v){if(t||(an(v),g?.(v),v.baseUIHandlerPrevented))return;let R=v.target===v.currentTarget,w=v.currentTarget,S=Do(w),k=!r&&pa(w),P=R&&(r?S:!k),L=v.key==="Enter",I=v.key===" ",U=w.getAttribute("role"),D=U?.startsWith("menuitem")||U==="option"||U==="gridcell";if(R&&u&&I){if(v.defaultPrevented&&D)return;v.preventDefault(),k||r&&S?(w.click(),v.preventBaseUIHandler()):P&&(d?.(v),v.preventBaseUIHandler());return}P&&(!r&&(I||L)&&v.preventDefault(),!r&&L&&d?.(v))},onKeyUp(v){if(!t){if(an(v),y?.(v),v.target===v.currentTarget&&r&&u&&Do(v.currentTarget)&&v.key===" "){v.preventDefault();return}v.baseUIHandlerPrevented||v.target===v.currentTarget&&!r&&!u&&v.key===" "&&d?.(v)}},onPointerDown(v){if(t){v.preventDefault();return}b?.(v)}},r?{type:"button"}:{role:"button"},c,E)},[t,c,u,r]),m=oe(p=>{s.current=p,l()});return{getButtonProps:f,buttonRef:m}}function Do(e){return Ne(e)&&e.tagName==="BUTTON"}function pa(e){return!!(e?.tagName==="A"&&e?.href)}var be={};gt(be,{cancelOpen:()=>Ua,chipRemovePress:()=>Sa,clearPress:()=>xa,closePress:()=>Ea,closeWatcher:()=>_a,decrementPress:()=>ka,disabled:()=>$a,drag:()=>Ba,escapeKey:()=>Da,focusOut:()=>Na,imperativeAction:()=>Ya,incrementPress:()=>Ta,initial:()=>ja,inputBlur:()=>Aa,inputChange:()=>wa,inputClear:()=>Pa,inputPaste:()=>Oa,inputPress:()=>Ia,itemPress:()=>va,keyboard:()=>Ma,linkPress:()=>Ra,listNavigation:()=>La,missing:()=>za,none:()=>ma,outsidePress:()=>ba,pointer:()=>Fa,scrub:()=>Va,siblingOpen:()=>Wa,swipe:()=>Ga,trackPress:()=>Ca,triggerFocus:()=>ya,triggerHover:()=>ha,triggerPress:()=>ga,wheel:()=>Ha,windowResize:()=>Ka});var ma="none",ga="trigger-press",ha="trigger-hover",ya="trigger-focus",ba="outside-press",va="item-press",Ea="close-press",Ra="link-press",xa="clear-press",Sa="chip-remove-press",Ca="track-press",Ta="increment-press",ka="decrement-press",wa="input-change",Pa="input-clear",Aa="input-blur",Oa="input-paste",Ia="input-press",Na="focus-out",Da="escape-key",_a="close-watcher",La="list-navigation",Ma="keyboard",Fa="pointer",Ba="drag",Ha="wheel",Va="scrub",Ua="cancel-open",Wa="sibling-open",$a="disabled",za="missing",ja="initial",Ya="imperative-action",Ga="swipe",Ka="window-resize";function Pe(e,t,n,o){let r=!1,i=!1,s=o??ye;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){i=!0},get isCanceled(){return r},get isPropagationAllowed(){return i},trigger:n,...s}}var gi=mi.forwardRef(function(t,n){let{render:o,className:r,style:i,disabled:s=!1,nativeButton:a=!0,...u}=t,{store:c}=Ie(),l=c.useState("open"),{getButtonProps:f,buttonRef:m}=ln({disabled:s,native:a}),p={disabled:s};function d(h){l&&c.setOpen(!1,Pe(be.closePress,h.nativeEvent))}return _e("button",t,{state:p,ref:[n,m],props:[{onClick:d},u,f]})});var bi=C(N(),1);var $n=C(N(),1);var hi=0;function qa(e,t="mui"){let[n,o]=$n.useState(e),r=e||n;return $n.useEffect(()=>{n==null&&(hi+=1,o(`${t}-${hi}`))},[n,t]),r}var yi=un.useId;function zt(e,t){if(yi!==void 0){let n=yi();return e??(t?`${t}-${n}`:n)}return qa(e,t)}function jt(e){return zt(e,"base-ui")}var vi=bi.forwardRef(function(t,n){let{render:o,className:r,style:i,id:s,...a}=t,{store:u}=Ie(),c=jt(s);return u.useSyncedValueWithCleanup("descriptionElementId",c),_e("p",t,{ref:n,props:[{id:c},a]})});var Vs=C(N(),1);var Ei=C(N(),1),Xa=[];function zn(e){Ei.useEffect(e,Xa)}var fn=0,ot=class e{static create(){return new e}currentId=fn;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=fn,n()},t)}isStarted(){return this.currentId!==fn}clear=()=>{this.currentId!==fn&&(clearTimeout(this.currentId),this.currentId=fn)};disposeEffect=()=>this.clear};function lt(){let e=Xe(ot.create).current;return zn(e.disposeEffect),e}var Oe={};gt(Oe,{engine:()=>Bo,env:()=>Vo,os:()=>Mo,screenReader:()=>Ho});var Mo={};gt(Mo,{android:()=>Si,apple:()=>Lo,ios:()=>_o,linux:()=>tu,mac:()=>Ci,windows:()=>eu});function Ja(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Qa,platform:Za,maxTouchPoints:Ri}=Ja(),Et=Qa.toLowerCase(),Rt=Za.toLowerCase();var _o=/^i(os$|p)/.test(Rt)||Rt==="macintel"&&Ri>1,xi="android",Si=Rt===xi||Et.includes(xi),Ci=!_o&&Rt.startsWith("mac"),eu=Rt.startsWith("win"),tu=!Si&&/^(linux|chrome os)/.test(Rt),Lo=Ci||_o;var Bo={};gt(Bo,{blink:()=>ou,gecko:()=>nu,webkit:()=>Fo});var Fo=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),nu=!Fo&&Et.includes("firefox"),ou=!Fo&&Et.includes("chrom");var Ho={};gt(Ho,{voiceOver:()=>ru});var ru=Lo;var Vo={};gt(Vo,{jsdom:()=>iu});var iu=/jsdom|happydom/.test(Et);function Ti(e){e.preventDefault(),e.stopPropagation()}function ki(e){return"nativeEvent"in e}function wi(e){return e.pointerType===""&&e.isTrusted?!0:Oe.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Pi(e){return Oe.env.jsdom?!1:!Oe.os.android&&e.width===0&&e.height===0||Oe.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Uo(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ai(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var dn="data-base-ui-focusable";var Oi="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ye(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function J(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&tt(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function He(e){return"composedPath"in e?e.composedPath()[0]:e.target}function jn(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Ii(e){return e.matches("html,body")}function pn(e){return Ne(e)&&e.matches(Oi)}function Wo(e){return e?e.getAttribute("role")==="combobox"&&pn(e):!1}function $o(e){return e?e.hasAttribute(dn)?e:e.querySelector(`[${dn}]`)||e:null}var Me=C(N(),1);function re(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function rt(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function mn(e){let t=Xe(su,e).current;return t.next=e,X(t.effect),t}function su(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Yn=null,ap=globalThis.requestAnimationFrame,zo=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let n=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let r=0;r<n.length;r+=1)n[r]?.(t)};request(t){let n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){let n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}},Gn=new zo,Ge=class e{static create(){return new e}static request(t){return Gn.request(t)}static cancel(t){return Gn.cancel(t)}currentId=Yn;request(t){this.cancel(),this.currentId=Gn.request(()=>{this.currentId=Yn,t()})}cancel=()=>{this.currentId!==Yn&&(Gn.cancel(this.currentId),this.currentId=Yn)};disposeEffect=()=>this.cancel};function Yt(){let e=Xe(Ge.create).current;return zn(e.disposeEffect),e}function ve(e){return e?.ownerDocument||document}var Kn=C(N(),1);var Ni={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Di={...Ni,position:"fixed",top:0,left:0},dp={...Ni,position:"absolute"};var _i=C(he(),1),Gt=Kn.forwardRef(function(t,n){let[o,r]=Kn.useState();return X(()=>{Oe.screenReader.voiceOver&&Oe.engine.webkit&&r("button")},[]),(0,_i.jsx)("span",{...t,ref:n,style:Di,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});function cu(e){return e.visibility==="hidden"||e.visibility==="collapse"}function qn(e,t=e?vt(e):null){return!e||!e.isConnected||!t||cu(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var au='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function uu(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return tt(n)?n.host:null}function Yo(e){for(let t of Array.from(e.children))if(Le(t)==="summary")return t;return null}function lu(e,t){let n=Yo(t);return!!n&&(e===n||J(n,e))}function Li(e){let t=e?Le(e):"";return e!=null&&e.matches(au)&&(t!=="summary"||e.parentElement!=null&&Le(e.parentElement)==="details"&&Yo(e.parentElement)===e)&&(t!=="details"||Yo(e)==null)&&(t!=="input"||e.type!=="hidden")}function Mi(e){if(!Li(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=uu(t)){let n=t!==e,o=Le(t)==="slot";if(t.hasAttribute("inert")||n&&Le(t)==="details"&&!t.open&&!lu(e,t)||t.hasAttribute("hidden")||!o&&!fu(t,n))return!1}return!0}function fu(e,t){let n=vt(e);return t?n.display!=="none":qn(e,n)}function Fi(e){let t=e.tabIndex;if(t<0){let n=Le(e);if(n==="details"||n==="audio"||n==="video"||Ne(e)&&e.isContentEditable)return 0}return t}function jo(e){if(Le(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function du(e,t){let n=jo(e);if(!n)return!0;let o=t.find(r=>{let i=jo(r);return i?.name===n.name&&i.form===n.form&&i.checked});return o?o===n:t.find(r=>{let i=jo(r);return i?.name===n.name&&i.form===n.form})===n}function Bi(e){if(Ne(e)&&Le(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ne(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Hi(e,t){Bi(e).forEach(n=>{Li(n)&&t.push(n),Hi(n,t)})}function Vi(e,t,n){Bi(e).forEach(o=>{Ne(o)&&o.matches(t)&&n.push(o),Vi(o,t,n)})}function Xn(e){return Mi(e)&&Fi(e)>=0}function Go(e){let t=[];return Hi(e,t),t.filter(Mi)}function gn(e){let t=Go(e);return t.filter(n=>Fi(n)>=0&&du(n,t))}function Ui(e,t){let n=gn(e),o=n.length;if(o===0)return;let r=Ye(ve(e)),i=n.indexOf(r),s=i===-1?t===1?0:o-1:i+t;return n[s]}function Jn(e){return Ui(ve(e).body,1)||e}function Qn(e){return Ui(ve(e).body,-1)||e}function xt(e,t){let n=t||e.currentTarget,o=e.relatedTarget;return!o||!J(n,o)}function Wi(e){gn(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Ko(e){let t=[];Vi(e,"[data-tabindex]",t),t.forEach(n=>{let o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function St(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!n||r.context?.open?[r]:[],...St(e,r.id,n)])}function qo(e,t){let n=[],o=e.find(r=>r.id===t)?.parentId;for(;o;){let r=e.find(i=>i.id===o);o=r?.parentId,r&&(n=n.concat(r))}return n}function Ct(e){return`data-base-ui-${e}`}var Zn=0;function eo(e,t={}){let{preventScroll:n=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(Zn);function i(){r&&!r()||e?.focus({preventScroll:n})}if(o)return i(),Vt;let s=requestAnimationFrame(i);return Zn=s,()=>{Zn===s&&(cancelAnimationFrame(s),Zn=0)}}var Xo={inert:new WeakMap,"aria-hidden":new WeakMap},$i="data-base-ui-inert",Qo={inert:new WeakSet,"aria-hidden":new WeakSet},hn=new WeakMap,Jo=0;function pu(e){return Qo[e]}function Gi(e){return e?tt(e)?e.host:Gi(e.parentNode):null}var zi=(e,t)=>t.map(n=>{if(e.contains(n))return n;let o=Gi(n);return e.contains(o)?o:null}).filter(n=>n!=null),ji=e=>{let t=new Set;return e.forEach(n=>{let o=n;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},Yi=(e,t,n)=>{let o=[],r=i=>{!i||n.has(i)||Array.from(i.children).forEach(s=>{Le(s)!=="script"&&(t.has(s)?r(s):o.push(s))})};return r(e),o};function mu(e,t,n,o,{mark:r=!0}){let i=null;o?i="inert":n&&(i="aria-hidden");let s=null,a=null,u=zi(t,e),c=r?Yi(t,ji(u),new Set(u)):[],l=[],f=[];if(i){let m=Xo[i],p=pu(i);a=p,s=m;let d=zi(t,Array.from(t.querySelectorAll("[aria-live]"))),h=u.concat(d);Yi(t,ji(h),new Set(h)).forEach(g=>{let b=g.getAttribute(i),E=b!==null&&b!=="false",v=(m.get(g)||0)+1;m.set(g,v),l.push(g),v===1&&E&&p.add(g),E||g.setAttribute(i,i==="inert"?"":"true")})}return r&&c.forEach(m=>{let p=(hn.get(m)||0)+1;hn.set(m,p),f.push(m),p===1&&m.setAttribute($i,"")}),Jo+=1,()=>{s&&l.forEach(m=>{let d=(s.get(m)||0)-1;s.set(m,d),d||(!a?.has(m)&&i&&m.removeAttribute(i),a?.delete(m))}),r&&f.forEach(m=>{let p=(hn.get(m)||0)-1;hn.set(m,p),p||m.removeAttribute($i)}),Jo-=1,Jo||(Xo.inert=new WeakMap,Xo["aria-hidden"]=new WeakMap,Qo.inert=new WeakSet,Qo["aria-hidden"]=new WeakSet,hn=new WeakMap)}}function Zo(e,t={}){let{ariaHidden:n=!1,inert:o=!1,mark:r=!0}=t,i=ve(e[0]).body;return mu(e,i,n,o,{mark:r})}var Ee=C(N(),1),er=C(So(),1);var to="data-base-ui-click-trigger",gu="data-base-ui-swipe-ignore",hu="data-swipe-ignore",Np=`[${gu}]`,Dp=`[${hu}]`;var Ki={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Tt=C(he(),1),qi=Ee.createContext(null),tr=()=>Ee.useContext(qi),yu=Ct("portal");function Xi(e={}){let{ref:t,container:n,componentProps:o=ye,elementProps:r}=e,i=zt(),a=tr()?.portalNode,[u,c]=Ee.useState(null),[l,f]=Ee.useState(null),m=oe(y=>{y!==null&&f(y)}),p=Ee.useRef(null);X(()=>{if(n===null){p.current&&(p.current=null,f(null),c(null));return}if(i==null)return;let y=(n&&(Hn(n)?n:n.current))??a??document.body;if(y==null){p.current&&(p.current=null,f(null),c(null));return}p.current!==y&&(p.current=y,f(null),c(y))},[n,a,i]);let d=_e("div",o,{ref:[t,m],props:[{id:i,[yu]:""},r]});return{portalNode:l,portalSubtree:u&&d?er.createPortal(d,u):null}}var nr=Ee.forwardRef(function(t,n){let{render:o,className:r,style:i,children:s,container:a,renderGuards:u,...c}=t,{portalNode:l,portalSubtree:f}=Xi({container:a,ref:n,componentProps:t,elementProps:c}),m=Ee.useRef(null),p=Ee.useRef(null),d=Ee.useRef(null),h=Ee.useRef(null),[y,g]=Ee.useState(null),b=Ee.useRef(!1),E=y?.modal,v=y?.open,R=typeof u=="boolean"?u:!!y&&!y.modal&&y.open&&!!l;Ee.useEffect(()=>{if(!l||E)return;function S(k){l&&k.relatedTarget&&xt(k)&&(k.type==="focusin"?b.current&&(Ko(l),b.current=!1):(Wi(l),b.current=!0))}return rt(re(l,"focusin",S,!0),re(l,"focusout",S,!0))},[l,E]),X(()=>{!l||v!==!0||!b.current||(Ko(l),b.current=!1)},[v,l]);let w=Ee.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:d,afterInsideRef:h,portalNode:l,setFocusManagerState:g}),[l]);return(0,Tt.jsxs)(Ee.Fragment,{children:[f,(0,Tt.jsxs)(qi.Provider,{value:w,children:[R&&l&&(0,Tt.jsx)(Gt,{"data-type":"outside",ref:m,onFocus:S=>{if(xt(S,l))d.current?.focus();else{let k=y?y.domReference:null;Qn(k)?.focus()}}}),R&&l&&(0,Tt.jsx)("span",{"aria-owns":l.id,style:Ki}),l&&er.createPortal(s,l),R&&l&&(0,Tt.jsx)(Gt,{"data-type":"outside",ref:p,onFocus:S=>{if(xt(S,l))h.current?.focus();else{let k=y?y.domReference:null;Jn(k)?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,Pe(be.focusOut,S.nativeEvent))}}})]})]})});var kt=C(N(),1);function Ji(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var bu=C(he(),1),vu=kt.createContext(null),Eu=kt.createContext(null),Qi=()=>kt.useContext(vu)?.id||null,no=e=>{let t=kt.useContext(Eu);return e??t};function Je(e){return e==null?e:"current"in e?e.current:e}var yn=C(he(),1);function Ru(e,t){let n=je(He(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var Zi=20,ft=[];function or(){ft=ft.filter(e=>e.deref()?.isConnected)}function es(e){or(),e&&Le(e)!=="body"&&(ft.push(new WeakRef(e)),ft.length>Zi&&(ft=ft.slice(-Zi)))}function ts(){return or(),ft[ft.length-1]?.deref()}function xu(e){return e?Xn(e)?e:gn(e)[0]||e:null}function ns(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let n=Go(e).filter(r=>{let i=r.getAttribute("data-tabindex")||"";return Xn(r)||r.hasAttribute("data-tabindex")&&!i.startsWith("-")}),o=e.getAttribute("tabindex");n.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function rr(e){let{context:t,children:n,disabled:o=!1,initialFocus:r=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:u=!0,openInteractionType:c="",nextFocusableElement:l,previousFocusableElement:f,beforeContentFocusGuardRef:m,externalTree:p,getInsideElements:d}=e,h="rootStore"in t?t.rootStore:t,y=h.useState("open"),g=h.useState("domReferenceElement"),b=h.useState("floatingElement"),{events:E,dataRef:v}=h.context,R=oe(()=>v.current.floatingContext?.nodeId),w=r===!1,S=Wo(g)&&w,k=mn(r),P=mn(i),L=mn(c),I=mn(y),U=no(p),D=tr(),_=Me.useRef(!1),te=Me.useRef(!1),ue=Me.useRef(!1),j=Me.useRef(null),V=Me.useRef(""),Q=Me.useRef(""),ie=Me.useRef(null),Te=Me.useRef(null),$=Bt(ie,m,D?.beforeInsideRef),fe=Bt(Te,D?.afterInsideRef),pe=lt(),T=lt(),W=Yt(),de=D!=null,A=$o(b),we=oe((x=A)=>x?gn(x):[]),me=oe(()=>d?.().filter(x=>x!=null)??[]);Me.useEffect(()=>{if(o||!a)return;function x(Y){Y.key==="Tab"&&J(A,Ye(ve(A)))&&we().length===0&&!S&&Ti(Y)}let B=ve(A);return re(B,"keydown",x)},[o,A,a,S,we]),Me.useEffect(()=>{if(o||!y)return;let x=ve(A);function B(){ue.current=!1}function Y(ge){let M=He(ge),q=me(),H=J(b,M)||J(g,M)||J(D?.portalNode,M)||q.some(se=>se===M||J(se,M));ue.current=!H,Q.current=ge.pointerType||"keyboard",M?.closest(`[${to}]`)&&(te.current=!0,T.start(0,()=>{te.current=!1}))}function Z(){Q.current="keyboard"}return rt(re(x,"pointerdown",Y,!0),re(x,"pointerup",B,!0),re(x,"pointercancel",B,!0),re(x,"keydown",Z,!0),B)},[o,b,g,A,y,D,T,me]),Me.useEffect(()=>{if(o||!u)return;let x=ve(A);function B(){te.current=!0,T.start(0,()=>{te.current=!1})}function Y(q){let H=He(q);Xn(H)&&(j.current=H)}function Z(q){let H=q.relatedTarget,se=q.currentTarget,xe=He(q);a&&H==null&&xe!=null&&J(b,xe)&&es(xe),queueMicrotask(()=>{let ce=R(),Ze=h.context.triggerElements,O=me(),F=H?.hasAttribute(Ct("focus-guard"))&&[ie.current,Te.current,D?.beforeInsideRef.current,D?.afterInsideRef.current,D?.beforeOutsideRef.current,D?.afterOutsideRef.current,Je(f),Je(l)].includes(H),De=!(J(g,H)||J(b,H)||J(H,b)||J(D?.portalNode,H)||O.some(ee=>ee===H||J(ee,H))||H!=null&&Ze.hasElement(H)||Ze.hasMatchingElement(ee=>J(ee,H))||F||U&&(St(U.nodesRef.current,ce).find(ee=>J(ee.context?.elements.floating,H)||J(ee.context?.elements.domReference,H))||qo(U.nodesRef.current,ce).find(ee=>[ee.context?.elements.floating,$o(ee.context?.elements.floating)].includes(H)||ee.context?.elements.domReference===H)));if(se===g&&A&&ns(A),s&&se!==g&&!qn(xe)&&Ye(x)===x.body){if(Ne(A)&&(A.focus(),s==="popup")){W.request(()=>{A.focus()});return}let ee=we(),qe=j.current,nt=(qe&&ee.includes(qe)?qe:null)||ee[ee.length-1]||A;Ne(nt)&&nt.focus()}if(v.current.insideReactTree){v.current.insideReactTree=!1;return}(S||!a)&&H&&De&&!te.current&&(S||H!==ts())&&(_.current=!0,h.setOpen(!1,Pe(be.focusOut,q)))})}function ge(){ue.current||(v.current.insideReactTree=!0,pe.start(0,()=>{v.current.insideReactTree=!1}))}let M=Ne(g)?g:null;if(!(!b&&!M))return rt(M&&re(M,"focusout",Z),M&&re(M,"pointerdown",B),b&&re(b,"focusin",Y),b&&re(b,"focusout",Z),b&&D&&re(b,"focusout",ge,!0))},[o,g,b,A,a,U,D,h,u,s,we,S,R,v,pe,T,W,l,f,me]),Me.useEffect(()=>{if(o||!b||!y)return;let x=Array.from(D?.portalNode?.querySelectorAll(`[${Ct("portal")}]`)||[]),Y=(U?qo(U.nodesRef.current,R()):[]).find(se=>Wo(se.context?.elements.domReference||null))?.context?.elements.domReference,ge=[...[b,...x,ie.current,Te.current,D?.beforeOutsideRef.current,D?.afterOutsideRef.current,...me()],Y,Je(f),Je(l),S?g:null].filter(se=>se!=null),M=Zo(ge,{ariaHidden:a||S,mark:!1}),q=[b,...x].filter(se=>se!=null),H=Zo(q);return()=>{H(),M()}},[y,o,g,b,a,D,S,U,R,l,f,me]),X(()=>{if(!y||o||!Ne(A))return;let x=ve(A),B=Ye(x);queueMicrotask(()=>{let Y=k.current,Z=typeof Y=="function"?Y(L.current||""):Y;if(Z===void 0||Z===!1||J(A,B))return;let M=null,q=()=>(M==null&&(M=we(A)),M[0]||A),H;Z===!0||Z===null?H=q():H=Je(Z),H=H||q();let se=J(A,Ye(x));eo(H,{preventScroll:H===A,shouldFocus(){if(!I.current)return!1;if(se)return!0;let xe=Ye(x);return!(xe!==H&&J(A,xe))}})})},[o,y,A,we,k,L,I]),X(()=>{if(o||!A)return;let x=ve(A),B=Ye(x),Y=L.current==null;es(B);function Z(M){if(M.open||(V.current=Ru(M.nativeEvent,Q.current)),M.reason===be.triggerHover&&M.nativeEvent.type==="mouseleave"&&(_.current=!0),M.reason===be.outsidePress)if(M.nested)_.current=!1;else if(wi(M.nativeEvent)||Pi(M.nativeEvent))_.current=!1;else{let q=!1;ve(A).createElement("div").focus({get preventScroll(){return q=!0,!1}}),q?_.current=!1:_.current=!0}}E.on("openchange",Z);function ge(){let M=P.current,q=typeof M=="function"?M(V.current):M;if(q===void 0||q===!1)return null;q===null&&(q=!0);let H=g?.isConnected?g:null,se=B?.isConnected&&Le(B)!=="body"?B:null,xe=Y?se||H:H||se;return xe||(xe=ts()||null),typeof q=="boolean"?xe:Je(q)||xe||null}return()=>{E.off("openchange",Z);let M=Ye(x),q=me(),H=J(b,M)||q.some(ce=>ce===M||J(ce,M))||U&&St(U.nodesRef.current,R(),!1).some(ce=>J(ce.context?.elements.floating,M)),se=P.current,xe=ge();queueMicrotask(()=>{let ce=xu(xe),Ze=typeof se!="boolean";se&&!_.current&&Ne(ce)&&(!(!Ze&&ce!==M&&M!==x.body)||H)&&ce.focus({preventScroll:!0}),_.current=!1})}},[o,b,A,P,L,E,U,g,R,me]),X(()=>{if(!Oe.engine.webkit||y||!b)return;let x=Ye(ve(b));!Ne(x)||!pn(x)||J(b,x)&&x.blur()},[y,b]),X(()=>{if(!(o||!D))return D.setFocusManagerState({modal:a,closeOnFocusOut:u,open:y,onOpenChange:h.setOpen,domReference:g}),()=>{D.setFocusManagerState(null)}},[o,D,a,y,h,u,g]),X(()=>{if(!(o||!A))return ns(A),()=>{queueMicrotask(or)}},[o,A]);let ne=!o&&(a?!S:!0)&&(de||a);return(0,yn.jsxs)(Me.Fragment,{children:[ne&&(0,yn.jsx)(Gt,{"data-type":"inside",ref:$,onFocus:x=>{if(a){let B=we();eo(B[B.length-1])}else D?.portalNode&&(_.current=!1,xt(x,D.portalNode)?Jn(g)?.focus():Je(f??D.beforeOutsideRef)?.focus())}}),n,ne&&(0,yn.jsx)(Gt,{"data-type":"inside",ref:fe,onFocus:x=>{a?eo(we()[0]):D?.portalNode&&(u&&(_.current=!0),xt(x,D.portalNode)?Qn(g)?.focus():Je(l??D.afterOutsideRef)?.focus())}})]})}var bn=C(N(),1);function ir(e,t={}){let{enabled:n=!0,event:o="click",toggle:r=!0,ignoreMouse:i=!1,stickIfOpen:s=!0,touchOpenDelay:a=0,reason:u=be.triggerPress}=t,c="rootStore"in e?e.rootStore:e,l=c.context.dataRef,f=bn.useRef(void 0),m=Yt(),p=lt(),d=bn.useMemo(()=>{function h(g,b,E,v){let R=Pe(u,b,E);g&&v==="touch"&&a>0?p.start(a,()=>{c.setOpen(!0,R)}):c.setOpen(g,R)}function y(g,b,E){let v=l.current.openEvent,R=c.select("domReferenceElement")!==b;return g&&R||!g||!r?!0:v&&s?!E(v.type):!1}return{onPointerDown(g){f.current=g.pointerType},onMouseDown(g){let b=f.current,E=g.nativeEvent,v=c.select("open");if(g.button!==0||o==="click"||Uo(b,!0)&&i)return;let R=y(v,g.currentTarget,k=>k==="click"||k==="mousedown"),w=He(E);if(pn(w)){h(R,E,w,b);return}let S=g.currentTarget;m.request(()=>{h(R,E,S,b)})},onClick(g){if(o==="mousedown-only")return;let b=f.current;if(o==="mousedown"&&b){f.current=void 0;return}if(Uo(b,!0)&&i)return;let E=c.select("open"),v=y(E,g.currentTarget,R=>R==="click"||R==="mousedown"||R==="keydown"||R==="keyup");h(v,g.nativeEvent,g.currentTarget,b)},onKeyDown(){f.current=void 0}}},[l,o,i,u,c,s,r,m,p,a]);return bn.useMemo(()=>n?{reference:d}:ye,[n,d])}var Ve=C(N(),1);function Su(){return!1}function Cu(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function sr(e,t={}){let{enabled:n=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:i="sloppy",referencePress:s=Su,bubbles:a,externalTree:u}=t,c="rootStore"in e?e.rootStore:e,l=c.useState("open"),f=c.useState("floatingElement"),{dataRef:m}=c.context,p=no(u),d=oe(typeof r=="function"?r:()=>!1),h=typeof r=="function"?d:r,y=h!==!1,g=oe(()=>i),{escapeKey:b,outsidePress:E}=Cu(a),v=Ve.useRef(!1),R=Ve.useRef(!1),w=Ve.useRef(!1),S=Ve.useRef(!1),k=Ve.useRef(""),P=Ve.useRef(null),L=lt(),I=lt(),U=oe(()=>{I.clear(),m.current.insideReactTree=!1}),D=oe($=>{let fe=m.current.floatingContext?.nodeId;return(p?St(p.nodesRef.current,fe):[]).some(T=>T.context?.open&&!T.context.dataRef.current[$])}),_=oe($=>jn($,c.select("floatingElement"))||jn($,c.select("domReferenceElement"))),te=oe($=>{s()&&c.setOpen(!1,Pe(be.triggerPress,$.nativeEvent))}),ue=oe($=>{if(!l||!n||!o||$.key!=="Escape"||S.current||!b&&D("__escapeKeyBubbles"))return;let fe=ki($)?$.nativeEvent:$,pe=Pe(be.escapeKey,fe);c.setOpen(!1,pe),pe.isCanceled||$.preventDefault(),!b&&!pe.isPropagationAllowed&&$.stopPropagation()}),j=oe(()=>{m.current.insideReactTree=!0,I.start(0,U)}),V=oe($=>{if(!l||!n||$.button!==0)return;let fe=He($.nativeEvent);J(c.select("floatingElement"),fe)&&(v.current||(v.current=!0,R.current=!1))}),Q=oe($=>{!l||!n||($.defaultPrevented||$.nativeEvent.defaultPrevented)&&v.current&&(R.current=!0)});Ve.useEffect(()=>{if(!l||!n)return;m.current.__escapeKeyBubbles=b,m.current.__outsidePressBubbles=E;let $=new ot,fe=new ot;function pe(){$.clear(),S.current=!0}function T(){$.start(Oe.engine.webkit?5:0,()=>{S.current=!1})}function W(){w.current=!0,fe.start(0,()=>{w.current=!1})}function de(){v.current=!1,R.current=!1}function A(){let O=k.current,F=O==="pen"||!O?"mouse":O,De=g(),ee=typeof De=="function"?De():De;return typeof ee=="string"?ee:ee[F]}function we(O){let F=A();return F==="intentional"&&O.type!=="click"||F==="sloppy"&&O.type==="click"}function me(O){let F=m.current.floatingContext?.nodeId,De=p&&St(p.nodesRef.current,F).some(ee=>jn(O,ee.context?.elements.floating));return _(O)||De}function ne(O){if(we(O)){O.type!=="click"&&!_(O)&&(fe.clear(),w.current=!1),U();return}if(m.current.insideReactTree){U();return}let F=He(O),De=`[${Ct("inert")}]`,ee=ut(F)?F.getRootNode():null,qe=Array.from((tt(ee)?ee:ve(c.select("floatingElement"))).querySelectorAll(De)),nt=c.context.triggerElements;if(F&&(nt.hasElement(F)||nt.hasMatchingElement(Be=>J(Be,F))))return;let $e=ut(F)?F:null;for(;$e&&!Un($e);){let Be=ui($e);if(Un(Be)||!ut(Be))break;$e=Be}if(!(qe.length&&ut(F)&&!Ii(F)&&!J(F,c.select("floatingElement"))&&qe.every(Be=>!J($e,Be)))){if(Ne(F)&&!("touches"in O)){let Be=Un(F),pt=vt(F),mt=/auto|scroll/,yo=Be||mt.test(pt.overflowX),bo=Be||mt.test(pt.overflowY),vo=yo&&F.clientWidth>0&&F.scrollWidth>F.clientWidth,Eo=bo&&F.clientHeight>0&&F.scrollHeight>F.clientHeight,Ro=pt.direction==="rtl",In=Eo&&(Ro?O.offsetX<=F.offsetWidth-F.clientWidth:O.offsetX>F.clientWidth),xo=vo&&O.offsetY>F.clientHeight;if(In||xo)return}if(!me(O)){if(A()==="intentional"&&w.current){fe.clear(),w.current=!1;return}typeof h=="function"&&!h(O)||D("__outsidePressBubbles")||(c.setOpen(!1,Pe(be.outsidePress,O)),U())}}}function x(O){A()!=="sloppy"||O.pointerType==="touch"||!c.select("open")||!n||_(O)||ne(O)}function B(O){if(A()!=="sloppy"||!c.select("open")||!n||_(O))return;let F=O.touches[0];F&&(P.current={startTime:Date.now(),startX:F.clientX,startY:F.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},L.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}function Y(O,F){let De=He(O);if(!De)return;let ee=re(De,O.type,()=>{F(O),ee()})}function Z(O){k.current="touch",Y(O,B)}function ge(O){L.clear(),O.type==="pointerdown"&&(k.current=O.pointerType),!(O.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)&&Y(O,F=>{F.type==="pointerdown"?x(F):ne(F)})}function M(O){if(!v.current)return;let F=R.current;if(de(),A()==="intentional"){if(O.type==="pointercancel"){F&&W();return}if(!me(O)){if(F){W();return}typeof h=="function"&&!h(O)||(fe.clear(),w.current=!0,U())}}}function q(O){if(A()!=="sloppy"||!P.current||_(O))return;let F=O.touches[0];if(!F)return;let De=Math.abs(F.clientX-P.current.startX),ee=Math.abs(F.clientY-P.current.startY),qe=Math.sqrt(De*De+ee*ee);qe>5&&(P.current.dismissOnTouchEnd=!0),qe>10&&(ne(O),L.clear(),P.current=null)}function H(O){Y(O,q)}function se(O){A()!=="sloppy"||!P.current||_(O)||(P.current.dismissOnTouchEnd&&ne(O),L.clear(),P.current=null)}function xe(O){Y(O,se)}let ce=ve(f),Ze=rt(o&&rt(re(ce,"keydown",ue),re(ce,"compositionstart",pe),re(ce,"compositionend",T)),y&&rt(re(ce,"click",ge,!0),re(ce,"pointerdown",ge,!0),re(ce,"pointerup",M,!0),re(ce,"pointercancel",M,!0),re(ce,"mousedown",ge,!0),re(ce,"mouseup",M,!0),re(ce,"touchstart",Z,!0),re(ce,"touchmove",H,!0),re(ce,"touchend",xe,!0)));return()=>{Ze(),$.clear(),fe.clear(),de(),w.current=!1}},[m,f,o,y,h,l,n,b,E,ue,U,g,D,_,p,c,L]),Ve.useEffect(U,[h,U]);let ie=Ve.useMemo(()=>({onKeyDown:ue,onPointerDown:te,onClick:te}),[ue,te]),Te=Ve.useMemo(()=>({onKeyDown:ue,onPointerDown:Q,onMouseDown:Q,onClickCapture:j,onMouseDownCapture($){j(),V($)},onPointerDownCapture($){j(),V($)},onMouseUpCapture:j,onTouchEndCapture:j,onTouchMoveCapture:j}),[ue,j,V,Q]);return Ve.useMemo(()=>n?{reference:ie,floating:Te,trigger:ie}:{},[n,ie,Te])}var Xt=C(N(),1),Ju=C(So(),1);var os=C(N(),1);function rs(e){let t=os.useRef(!0);t.current&&(t.current=!1,e())}var hs=C(N(),1);var K=(e,t,n,o,r,i,...s)=>{if(s.length>0)throw new Error(ze(1));let a;if(e&&t&&n&&o&&r&&i)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f),d=n(u,c,l,f),h=o(u,c,l,f),y=r(u,c,l,f);return i(m,p,d,h,y,c,l,f)};else if(e&&t&&n&&o&&r)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f),d=n(u,c,l,f),h=o(u,c,l,f);return r(m,p,d,h,c,l,f)};else if(e&&t&&n&&o)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f),d=n(u,c,l,f);return o(m,p,d,c,l,f)};else if(e&&t&&n)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f);return n(m,p,c,l,f)};else if(e&&t)a=(u,c,l,f)=>{let m=e(u,c,l,f);return t(m,c,l,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var ms=C(N(),1),ur=C(ar(),1),gs=C(fs(),1);var Wu=C(N(),1);var $u=[],zu;function ds(){return zu}function ps(e){$u.push(e)}var ju=Ht(19),Yu=ju?Ku:qu;function ro(e,t,n,o,r){return Yu(e,t,n,o,r)}function Gu(e,t,n,o,r){let i=ms.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return(0,ur.useSyncExternalStore)(e.subscribe,i,i)}ps({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let o=e.syncHooks[n],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let r of e.syncHooks)n.add(r.store);let o=[];for(let r of n)o.push(r.subscribe(t));return()=>{for(let r of o)r()}}),(0,ur.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ku(e,t,n,o,r){let i=ds();if(!i)return Gu(e,t,n,o,r);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,n)||!Object.is(a.a2,o)||!Object.is(a.a3,r))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=o,a.a3=r,a.value=t(e.getSnapshot(),n,o,r))):(a={store:e,selector:t,a1:n,a2:o,a3:r,value:t(e.getSnapshot(),n,o,r)},i.syncHooks.push(a)),a.value}function qu(e,t,n,o,r){return(0,gs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,o,r))}var io=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let n=this.updateTick;for(let o of this.listeners){if(n!==this.updateTick)return;o(t)}}update(t){for(let n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){let t={...this.state};this.setState(t)}use(t,n,o,r){return ro(this,t,n,o,r)}};var wt=C(N(),1);var qt=class extends io{constructor(t,n={},o){super(t),this.context=n,this.selectors=o}useSyncedValue(t,n){wt.useDebugValue(t);let o=this;X(()=>{o.state[t]!==n&&o.set(t,n)},[o,t,n])}useSyncedValueWithCleanup(t,n){let o=this;X(()=>(o.state[t]!==n&&o.set(t,n),()=>{o.set(t,void 0)}),[o,t,n])}useSyncedValues(t){let n=this,o=Object.values(t);X(()=>{n.update(t)},[n,...o])}useControlledProp(t,n){wt.useDebugValue(t);let o=this,r=n!==void 0;X(()=>{r&&!Object.is(o.state[t],n)&&o.setState({...o.state,[t]:n})},[o,t,n,r])}select(t,n,o,r){let i=this.selectors[t];return i(this.state,n,o,r)}useState(t,n,o,r){return wt.useDebugValue(t),ro(this,this.selectors[t],n,o,r)}useContextCallback(t,n){wt.useDebugValue(t);let o=oe(n??Vt);this.context[t]=o}useStateSetter(t){let n=wt.useRef(void 0);return n.current===void 0&&(n.current=o=>{this.set(t,o)}),n.current}observe(t,n){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return n(r,r,this),this.subscribe(i=>{let s=o(i);if(!Object.is(r,s)){let a=r;r=s,n(s,a,this)}})}};var Xu={open:K(e=>e.open),transitionStatus:K(e=>e.transitionStatus),domReferenceElement:K(e=>e.domReferenceElement),referenceElement:K(e=>e.positionReference??e.referenceElement),floatingElement:K(e=>e.floatingElement),floatingId:K(e=>e.floatingId)},dt=class extends qt{constructor(t){let{syncOnly:n,nested:o,onOpenChange:r,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Ji(),nested:o,triggerElements:i},Xu),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&Ai(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);let o={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",o)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}};function ys(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:o,floatingId:r,nested:i,onOpenChange:s}=e,a=t.useState("open"),u=t.useState("activeTriggerElement"),c=t.useState(n?"popupElement":"positionerElement"),l=t.context.triggerElements,f=s,m=hs.useRef(null);o===void 0&&m.current===null&&(m.current=new dt({open:a,transitionStatus:void 0,referenceElement:u,floatingElement:c,triggerElements:l,onOpenChange:f,floatingId:r,syncOnly:!0,nested:i}));let p=o??m.current;return t.useSyncedValue("floatingId",r),X(()=>{let d={open:a,floatingId:r,referenceElement:u,floatingElement:c};ut(u)&&(d.domReferenceElement=u),p.state.positionReference===p.state.referenceElement&&(d.positionReference=u),p.update(d)},[a,r,u,c,p]),p.context.onOpenChange=f,p.context.nested=i,p}var lr=C(N(),1);function bs(e,t=!1,n=!1){let[o,r]=lr.useState(e&&t?"idle":void 0),[i,s]=lr.useState(e);return e&&!i&&(s(!0),r("starting")),!e&&i&&o!=="ending"&&!n&&r("ending"),!e&&!i&&o==="ending"&&r(void 0),X(()=>{if(!e&&i&&o!=="ending"&&n){let a=Ge.request(()=>{r("ending")});return()=>{Ge.cancel(a)}}},[e,i,o,n]),X(()=>{if(!e||t)return;let a=Ge.request(()=>{r(void 0)});return()=>{Ge.cancel(a)}},[t,e]),X(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&r("starting");let a=Ge.request(()=>{r("idle")});return()=>{Ge.cancel(a)}},[t,e,i,o]),{mounted:i,setMounted:s,transitionStatus:o}}var Rs=C(N(),1);var vs=C(So(),1);function Es(e,t=!1,n=!0){let o=Yt();return oe((r,i=null)=>{o.cancel();let s=Je(e);if(s==null)return;let a=s,u=()=>{vs.flushSync(r)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function c(){Promise.all(a.getAnimations().map(l=>l.finished)).then(()=>{i?.aborted||u()}).catch(()=>{if(n){i?.aborted||u();return}let l=a.getAnimations();!i?.aborted&&l.length>0&&l.some(f=>f.pending||f.playState!=="finished")&&c()})}if(t){let l=bt.startingStyle;if(!a.hasAttribute(l)){o.request(c);return}let f=new MutationObserver(()=>{a.hasAttribute(l)||(f.disconnect(),c())});f.observe(a,{attributes:!0,attributeFilter:[l]}),i?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}o.request(c)})}function so(e){let{enabled:t=!0,open:n,ref:o,onComplete:r}=e,i=oe(r),s=Es(o,n,!1);Rs.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,n,i,s])}var xs={tabIndex:-1,[dn]:""};function Ss(e){return t=>t==="touch"?e.current:!0}function Cs(e,t,n=!1){let o=zt(),r=Qi()!=null,i=Xt.useRef(null);e===void 0&&i.current===null&&(i.current=t(o,r));let s=e??i.current;return ys({popupStore:s,treatPopupAsFloatingElement:n,floatingRootContext:s.state.floatingRootContext,floatingId:o,nested:r,onOpenChange:s.setOpen}),{store:s,internalStore:i.current}}function Qu(e,t){let n=Xt.useRef(null),o=Xt.useRef(null);return Xt.useCallback(r=>{if(e===void 0)return;let i=!1;if(n.current!==null){let s=n.current,a=o.current,u=t.context.triggerElements.getById(s);a&&u===a&&(t.context.triggerElements.delete(s),i=!0),n.current=null,o.current=null}if(r!==null&&(n.current=e,o.current=r,t.context.triggerElements.add(e,r),i=!0),i){let s=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==s&&t.set("triggerCount",s)}},[t,e])}function Ts(e,t,n,o=!1){t?e.preventUnmountingOnClose=!1:o&&(e.preventUnmountingOnClose=!0);let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function ks(e,t,n,o){let r=n.useState("isMountedByTrigger",e),i=Qu(e,n),s=oe(a=>{if(i(a),!a)return;let u=n.select("open"),c=n.select("activeTriggerId");if(c===e){n.update({activeTriggerElement:a,...u?o:null});return}c==null&&u&&n.update({activeTriggerId:e,activeTriggerElement:a,...o})});return X(()=>{r&&n.update({activeTriggerElement:t.current,...o})},[r,n,t,...Object.values(o)]),{registerTrigger:s,isMountedByThisTrigger:r}}function ws(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,o=e.useState("open"),r=e.useState("triggerCount");X(()=>{if(!o){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let i=e.context.triggerElements.size,s={};e.state.triggerCount!==i&&(s.triggerCount=i);let a=e.select("activeTriggerId"),u=null;if(a){let c=e.context.triggerElements.getById(a);c?c!==e.state.activeTriggerElement&&(s.activeTriggerElement=c):u=a}if(!u&&!a&&i===1){let c=e.context.triggerElements.entries().next();if(!c.done){let[l,f]=c.value;s.activeTriggerId=l,s.activeTriggerElement=f}}(s.triggerCount!==void 0||s.activeTriggerId!==void 0||s.activeTriggerElement!==void 0)&&e.update(s),u&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===u&&!e.context.triggerElements.getById(u)){let c=Pe(be.none);e.setOpen(!1,c),c.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,r,n])}function Ps(e,t,n){let{mounted:o,setMounted:r,transitionStatus:i}=bs(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:o,transitionStatus:i,preventUnmountingOnClose:a});let u=oe(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return so({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:i}}function As(e,t){e.useSyncedValues(t),X(()=>()=>{e.update({activeTriggerProps:ye,inactiveTriggerProps:ye,popupProps:ye})},[e])}function Os(e,t){X(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),X(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}var Jt=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){let o=this.idMap.get(t);o!==n&&(o!==void 0&&this.elementsSet.delete(o),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){let n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Is(){return new dt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Jt,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Ds(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Is(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ye,inactiveTriggerProps:ye,popupProps:ye}}function _s(e,t,n=!1){return new dt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var vn=K(e=>e.triggerIdProp??e.activeTriggerId),fr=K(e=>e.openProp??e.open),Ns=K(e=>(e.popupElement?.id??e.floatingId)||void 0);function Ls(e,t){return t!==void 0&&fr(e)&&vn(e)===t}function Zu(e,t){return Ls(e,t)?!0:t!==void 0&&fr(e)&&vn(e)==null&&e.triggerCount===1}var Ms={open:fr,mounted:K(e=>e.mounted),transitionStatus:K(e=>e.transitionStatus),floatingRootContext:K(e=>e.floatingRootContext),triggerCount:K(e=>e.triggerCount),preventUnmountingOnClose:K(e=>e.preventUnmountingOnClose),payload:K(e=>e.payload),activeTriggerId:vn,activeTriggerElement:K(e=>e.mounted?e.activeTriggerElement:null),popupId:Ns,isTriggerActive:K((e,t)=>t!==void 0&&vn(e)===t),isOpenedByTrigger:K((e,t)=>Ls(e,t)),isMountedByTrigger:K((e,t)=>t!==void 0&&vn(e)===t&&e.mounted),triggerProps:K((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:K((e,t)=>Zu(e,t)?Ns(e):void 0),popupProps:K(e=>e.popupProps),popupElement:K(e=>e.popupElement),positionerElement:K(e=>e.positionerElement)};var Fs=(function(e){return e.nestedDialogs="--nested-dialogs",e})({});var Bs=(function(e){return e[e.open=We.open]="open",e[e.closed=We.closed]="closed",e[e.startingStyle=We.startingStyle]="startingStyle",e[e.endingStyle=We.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});var co=C(N(),1),dr=co.createContext(void 0);function ao(){let e=co.useContext(dr);if(e===void 0)throw new Error(ze(26));return e}var el="ArrowUp",tl="ArrowDown",nl="ArrowLeft",ol="ArrowRight",rl="Home",il="End";var sl=new Set([nl,ol]);var cl=new Set([el,tl]);var al=new Set([...sl,...cl]),Hs=new Set([...al,rl,il]);var Us=C(he(),1),ul={...Wt,...Ut,nestedDialogOpen(e){return e?{[Bs.nestedDialogOpen]:""}:null}},Ws=Vs.forwardRef(function(t,n){let{render:o,className:r,style:i,finalFocus:s,initialFocus:a,...u}=t,{store:c}=Ie(),l=c.useState("descriptionElementId"),f=c.useState("disablePointerDismissal"),m=c.useState("floatingRootContext"),p=c.useState("popupProps"),d=c.useState("modal"),h=c.useState("mounted"),y=c.useState("nested"),g=c.useState("nestedOpenDialogCount"),b=c.useState("open"),E=c.useState("openMethod"),v=c.useState("titleElementId"),R=c.useState("transitionStatus"),w=c.useState("role"),S=m.useState("floatingId"),k=u.id??S;ao(),so({open:b,ref:c.context.popupRef,onComplete(){b&&c.context.onOpenChangeComplete?.(!0)}});let P=a===void 0?Ss(c.context.popupRef):a,L=g>0,I=c.useStateSetter("popupElement"),D=_e("div",t,{state:{open:b,nested:y,transitionStatus:R,nestedDialogOpen:L},props:[p,{id:k,"aria-labelledby":v??void 0,"aria-describedby":l??void 0,role:w,...xs,hidden:!h,onKeyDown(_){Hs.has(_.key)&&_.stopPropagation()},style:{[Fs.nestedDialogs]:g}},u],ref:[n,c.context.popupRef,I],stateAttributesMapping:ul});return(0,Us.jsx)(rr,{context:m,openInteractionType:E,disabled:!h,closeOnFocusOut:!f,initialFocus:P,returnFocus:s,modal:d!==!1,restoreFocus:"popup",children:D})});var Gs=C(N(),1);function $s(e){return Ht(19)?e:e?"true":void 0}var zs=C(N(),1),js=C(he(),1),Ys=zs.forwardRef(function(t,n){let{cutout:o,...r}=t,i;if(o){let s=o.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,js.jsx)("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});var En=C(he(),1),Ks=Gs.forwardRef(function(t,n){let{keepMounted:o=!1,...r}=t,{store:i}=Ie(),s=i.useState("mounted"),a=i.useState("modal"),u=i.useState("open");return s||o?(0,En.jsx)(dr.Provider,{value:o,children:(0,En.jsxs)(nr,{ref:n,...r,children:[s&&a===!0&&(0,En.jsx)(Ys,{ref:i.context.internalBackdropRef,inert:$s(!u)}),t.children]})}):null});var oc=C(N(),1);var tc=C(N(),1);var it=C(N(),1);var qs={},Xs={},Js="";function ll(e){if(typeof document>"u")return!1;let t=ve(e);return je(t).innerWidth-t.documentElement.clientWidth>0}function fl(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let n=ve(e),o=n.documentElement,r=n.body,i=Vn(o)?o:r,s=i.style.overflowY,a=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",i.style.overflowY="scroll";let u=i.offsetWidth;i.style.overflowY="hidden";let c=i.offsetWidth;return i.style.overflowY=s,o.style.scrollbarGutter=a,u===c}function dl(e){let t=ve(e),n=t.documentElement,o=t.body,r=Vn(n)?n:o,i={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,i)}}function pl(e){let t=ve(e),n=t.documentElement,o=t.body,r=je(n),i=0,s=0,a=!1,u=Ge.create();if(Oe.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function c(){let p=r.getComputedStyle(n),d=r.getComputedStyle(o),g=(p.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,s=n.scrollLeft,qs={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Js=n.style.scrollBehavior,Xs={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let b=n.scrollHeight>n.clientHeight,E=n.scrollWidth>n.clientWidth,v=p.overflowY==="scroll"||d.overflowY==="scroll",R=p.overflowX==="scroll"||d.overflowX==="scroll",w=Math.max(0,r.innerWidth-o.clientWidth),S=Math.max(0,r.innerHeight-o.clientHeight),k=parseFloat(d.marginTop)+parseFloat(d.marginBottom),P=parseFloat(d.marginLeft)+parseFloat(d.marginRight),L=Vn(n)?n:o;if(a=fl(e),a){n.style.scrollbarGutter=g,L.style.overflowY="hidden",L.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(b||v)&&(n.style.overflowY="scroll"),(E||R)&&(n.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:k||S?`calc(100dvh - ${k+S}px)`:"100dvh",width:P||w?`calc(100vw - ${P+w}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),o.scrollTop=i,o.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function l(){Object.assign(n.style,qs),Object.assign(o.style,Xs),a||(n.scrollTop=i,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=Js)}function f(){l(),u.request(c)}c();let m=re(r,"resize",f);return()=>{u.cancel(),l(),typeof r.removeEventListener=="function"&&m()}}var pr=class{lockCount=0;restore=null;timeoutLock=ot.create();timeoutUnlock=ot.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let o=ve(t).documentElement,r=je(o).getComputedStyle(o).overflowY;if(r==="hidden"||r==="clip"){this.restore=Vt;return}let i=Oe.os.ios||!ll(t);this.restore=i?dl(t):pl(t)}},ml=new pr;function Qs(e=!0,t=null){X(()=>{if(e)return ml.acquire(t)},[e,t])}function Zs(e){let{store:t,actionsRef:n}=e,o=t.useState("open");Os(t,o),ws(t);let{forceUnmount:r}=Ps(o,t),i=it.useCallback(()=>{t.setOpen(!1,Pe(be.imperativeAction))},[t]);it.useImperativeHandle(n,()=>({unmount:r,close:i}),[r,i])}function ec({store:e,parentContext:t,isDrawer:n}){let o=e.useState("open"),r=e.useState("disablePointerDismissal"),i=e.useState("modal"),s=e.useState("popupElement"),a=e.useState("floatingRootContext"),[u,c]=it.useState(0),[l,f]=it.useState(0),m=u===0,p=sr(a,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:i==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(g){if(!e.context.outsidePressEnabledRef.current||"button"in g&&g.button!==0||"touches"in g&&g.touches.length!==1)return!1;let b=He(g);return m&&!r?i&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===b||e.context.backdropRef.current===b||J(b,s)&&!b?.hasAttribute("data-base-ui-portal"):!0:!1},escapeKey:m});Qs(o&&i===!0,s),e.useContextCallback("onNestedDialogOpen",(g,b)=>{c(g),f(b)}),e.useContextCallback("onNestedDialogClose",()=>{c(0),f(0)}),it.useEffect(()=>(t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(u+1,l+(n?1:0)),t?.onNestedDialogClose&&!o&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&o&&t.onNestedDialogClose()}),[n,o,u,l,t]);let d=p.reference??ye,h=p.trigger??ye,y=p.floating??ye;return As(e,{activeTriggerProps:d,inactiveTriggerProps:h,popupProps:y,nestedOpenDialogCount:u,nestedOpenDrawerCount:l}),null}var uo=C(N(),1);var gl={...Ms,modal:K(e=>e.modal),nested:K(e=>e.nested),nestedOpenDialogCount:K(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:K(e=>e.nestedOpenDrawerCount),disablePointerDismissal:K(e=>e.disablePointerDismissal),openMethod:K(e=>e.openMethod),descriptionElementId:K(e=>e.descriptionElementId),titleElementId:K(e=>e.titleElementId),viewportElement:K(e=>e.viewportElement),role:K(e=>e.role)},Qt=class e extends qt{constructor(t,n,o=!1){let r=new Jt,i=hl(t);i.floatingRootContext=_s(r,n,o),super(i,{popupRef:uo.createRef(),backdropRef:uo.createRef(),internalBackdropRef:uo.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},gl)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,n);let o={open:t};Ts(o,t,n.trigger),this.update(o)};static useStore(t,n){return Cs(t,(r,i)=>new e(n,r,i),!0).store}};function hl(e={}){return{...Ds(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}var Rn=C(he(),1);function nc(e,t="dialog"){let{children:n,open:o,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:s,disablePointerDismissal:a=!1,modal:u=!0,actionsRef:c,handle:l,triggerId:f,defaultTriggerId:m=null}=e,p=t==="drawer",d=t==="alert-dialog",h=d?!0:u,y=d||a,g=d?"alertdialog":"dialog",b=Ie(!0),v={modal:h,disablePointerDismissal:y,nested:!!b,role:g},R=Qt.useStore(l?.store,{open:r,openProp:o,activeTriggerId:m,triggerIdProp:f,...v});rs(()=>{let I=o===void 0&&R.state.open===!1&&r===!0?{open:!0,activeTriggerId:m}:null;d?R.update(I?{...v,...I}:v):I&&R.update(I)}),R.useControlledProp("openProp",o),R.useControlledProp("triggerIdProp",f),R.useSyncedValues(v),R.useContextCallback("onOpenChange",i),R.useContextCallback("onOpenChangeComplete",s);let w=R.useState("open"),S=R.useState("mounted"),k=R.useState("payload");Zs({store:R,actionsRef:c});let P=w||S,L=tc.useMemo(()=>({store:R}),[R]);return(0,Rn.jsx)(Mn.Provider,{value:!1,children:(0,Rn.jsxs)(To.Provider,{value:L,children:[P&&(0,Rn.jsx)(ec,{store:R,parentContext:b?.store.context,isDrawer:p}),typeof n=="function"?n({payload:k}):n]})})}function rc(e){let t=oc.useContext(Mn)?"drawer":"dialog";return nc(e,t)}var ic=C(N(),1);var mr=(function(e){return e[e.open=We.open]="open",e[e.closed=We.closed]="closed",e[e.startingStyle=We.startingStyle]="startingStyle",e[e.endingStyle=We.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});var yl={...Wt,...Ut,nested(e){return e?{[mr.nested]:""}:null},nestedDialogOpen(e){return e?{[mr.nestedDialogOpen]:""}:null}},sc=ic.forwardRef(function(t,n){let{render:o,className:r,style:i,children:s,...a}=t,u=ao(),{store:c}=Ie(),l=c.useState("open"),f=c.useState("nested"),m=c.useState("transitionStatus"),p=c.useState("nestedOpenDialogCount"),d=c.useState("mounted"),h=c.useStateSetter("viewportElement"),y=p>0;return _e("div",t,{enabled:u||d,state:{open:l,nested:f,transitionStatus:m,nestedDialogOpen:y},ref:[n,h],stateAttributesMapping:yl,props:[{role:"presentation",hidden:!d,style:{pointerEvents:l?void 0:"none"},children:s},a]})});var cc=C(N(),1);var ac=cc.forwardRef(function(t,n){let{render:o,className:r,style:i,id:s,...a}=t,{store:u}=Ie(),c=jt(s);return u.useSyncedValueWithCleanup("titleElementId",c),_e("h2",t,{ref:n,props:[{id:c},a]})});var lo=C(N(),1);var gr=C(N(),1);var xn=C(N(),1);function uc(e){let t=xn.useRef(""),n=xn.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:xn.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:n}}function lc(e,t){let n=oe((i,s)=>{(typeof e=="function"?e():e)||t(s||(Oe.os.ios?"touch":""))}),{onClick:o,onPointerDown:r}=uc(n);return gr.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}var fc=lo.forwardRef(function(t,n){let{render:o,className:r,style:i,disabled:s=!1,nativeButton:a=!0,id:u,payload:c,handle:l,...f}=t,m=Ie(!0),p=l?.store??m?.store;if(!p)throw new Error(ze(79));let d=jt(u),h=p.useState("floatingRootContext"),y=p.useState("isOpenedByTrigger",d),g=p.useState("triggerPopupId",d),b=lo.useRef(null),{registerTrigger:E,isMountedByThisTrigger:v}=ks(d,b,p,{payload:c}),{getButtonProps:R,buttonRef:w}=ln({disabled:s,native:a}),S=ir(h,{enabled:h!=null}),k=lc(()=>p.select("open"),I=>{p.set("openMethod",I)}),P={disabled:s,open:y},L=p.useState("triggerProps",v);return _e("button",t,{state:P,ref:[w,n,E,b],props:[S.reference,L,k,{[to]:"",id:d,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":g},f,R],stateAttributesMapping:si})});var Sn=class{constructor(t){this.store=t??new Qt}open(t){let n=t?this.store.context.triggerElements.getById(t):void 0;this.store.setOpen(!0,Pe(be.imperativeAction,void 0,n))}openWithPayload(t){this.store.set("payload",t),this.store.setOpen(!0,Pe(be.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,Pe(be.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function dc(){return new Sn}var Zt=C(N(),1);var ke=C(N(),1);var bl={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function vl(e,t){let n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function El(e,t){let n=e.rootNode();return t&&t(n)||n}function fo(e={}){let t,n,o,r,i=null,s=0,a=!1,u=!1,c=!1,l=!1;function f(_,te){n=_;let{mergeOptions:ue,optionsAtMedia:j}=te,V=ue(bl,fo.globalOptions),Q=ue(V,e);if(t=j(Q),n.scrollSnapList().length<=1)return;l=t.jump,o=!1,r=vl(n,t.delay);let{eventStore:ie,ownerDocument:Te}=n.internalEngine(),$=!!n.internalEngine().options.watchDrag,fe=El(n,t.rootNode);ie.add(Te,"visibilitychange",g),$&&n.on("pointerDown",E),$&&!t.stopOnInteraction&&n.on("pointerUp",v),t.stopOnMouseEnter&&ie.add(fe,"mouseenter",R),t.stopOnMouseEnter&&!t.stopOnInteraction&&ie.add(fe,"mouseleave",w),t.stopOnFocusIn&&n.on("slideFocusStart",y),t.stopOnFocusIn&&!t.stopOnInteraction&&ie.add(n.containerNode(),"focusout",h),t.playOnInit&&h()}function m(){n.off("pointerDown",E).off("pointerUp",v).off("slideFocusStart",y),y(),o=!0,a=!1}function p(){let{ownerWindow:_}=n.internalEngine();_.clearTimeout(s),s=_.setTimeout(I,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function d(){let{ownerWindow:_}=n.internalEngine();_.clearTimeout(s),s=0,i=null,n.emit("autoplay:timerstopped")}function h(){if(!o){if(b()){c=!0;return}a||n.emit("autoplay:play"),p(),a=!0}}function y(){o||(a&&n.emit("autoplay:stop"),d(),a=!1)}function g(){if(b())return c=a,y();c&&h()}function b(){let{ownerDocument:_}=n.internalEngine();return _.visibilityState==="hidden"}function E(){u||y()}function v(){u||h()}function R(){u=!0,y()}function w(){u=!1,h()}function S(_){typeof _<"u"&&(l=_),h()}function k(){a&&y()}function P(){a&&h()}function L(){return a}function I(){let{index:_}=n.internalEngine(),te=_.clone().add(1).get(),ue=n.scrollSnapList().length-1,j=t.stopOnLastSnap&&te===ue;if(n.canScrollNext()?n.scrollNext(l):n.scrollTo(0,l),n.emit("autoplay:select"),j)return y();h()}function U(){if(!i)return null;let _=r[n.selectedScrollSnap()],te=new Date().getTime()-i;return _-te}return{name:"autoplay",options:e,init:f,destroy:m,play:S,stop:k,reset:P,isPlaying:L,timeUntilNext:U}}fo.globalOptions=void 0;var Ke=C(N(),1);function Rl(e){return Object.prototype.toString.call(e)==="[object Object]"}function pc(e){return Rl(e)||Array.isArray(e)}function gc(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function po(e,t){let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;let r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(s=>{let a=e[s],u=t[s];return typeof a=="function"?`${a}`==`${u}`:!pc(a)||!pc(u)?a===u:po(a,u)})}function mc(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function hc(e,t){if(e.length!==t.length)return!1;let n=mc(e),o=mc(t);return n.every((r,i)=>{let s=o[i];return po(r,s)})}function br(e){return typeof e=="number"}function hr(e){return typeof e=="string"}function mo(e){return typeof e=="boolean"}function yc(e){return Object.prototype.toString.call(e)==="[object Object]"}function Re(e){return Math.abs(e)}function vr(e){return Math.sign(e)}function Tn(e,t){return Re(e-t)}function xl(e,t){if(e===0||t===0||Re(e)<=Re(t))return 0;let n=Tn(Re(e),Re(t));return Re(n/e)}function Sl(e){return Math.round(e*100)/100}function kn(e){return wn(e).map(Number)}function Qe(e){return e[An(e)]}function An(e){return Math.max(0,e.length-1)}function Er(e,t){return t===An(e)}function bc(e,t=0){return Array.from(Array(e),(n,o)=>t+o)}function wn(e){return Object.keys(e)}function vc(e,t){return[e,t].reduce((n,o)=>(wn(o).forEach(r=>{let i=n[r],s=o[r],a=yc(i)&&yc(s);n[r]=a?vc(i,s):s}),n),{})}function yr(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Cl(e,t){let n={start:o,center:r,end:i};function o(){return 0}function r(u){return i(u)/2}function i(u){return t-u}function s(u,c){return hr(e)?n[e](u):e(t,u,c)}return{measure:s}}function Pn(){let e=[];function t(r,i,s,a={passive:!0}){let u;if("addEventListener"in r)r.addEventListener(i,s,a),u=()=>r.removeEventListener(i,s,a);else{let c=r;c.addListener(s),u=()=>c.removeListener(s)}return e.push(u),o}function n(){e=e.filter(r=>r())}let o={add:t,clear:n};return o}function Tl(e,t,n,o){let r=Pn(),i=1e3/60,s=null,a=0,u=0;function c(){r.add(e,"visibilitychange",()=>{e.hidden&&d()})}function l(){p(),r.clear()}function f(y){if(!u)return;s||(s=y,n(),n());let g=y-s;for(s=y,a+=g;a>=i;)n(),a-=i;let b=a/i;o(b),u&&(u=t.requestAnimationFrame(f))}function m(){u||(u=t.requestAnimationFrame(f))}function p(){t.cancelAnimationFrame(u),s=null,a=0,u=0}function d(){s=null,a=0}return{init:c,destroy:l,start:m,stop:p,update:n,render:o}}function kl(e,t){let n=t==="rtl",o=e==="y",r=o?"y":"x",i=o?"x":"y",s=!o&&n?-1:1,a=l(),u=f();function c(d){let{height:h,width:y}=d;return o?h:y}function l(){return o?"top":n?"right":"left"}function f(){return o?"bottom":n?"left":"right"}function m(d){return d*s}return{scroll:r,cross:i,startEdge:a,endEdge:u,measureSize:c,direction:m}}function Pt(e=0,t=0){let n=Re(e-t);function o(c){return c<e}function r(c){return c>t}function i(c){return o(c)||r(c)}function s(c){return i(c)?o(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:s,reachedAny:i,reachedMax:r,reachedMin:o,removeOffset:a}}function Ec(e,t,n){let{constrain:o}=Pt(0,e),r=e+1,i=s(t);function s(m){return n?Re((r+m)%r):o(m)}function a(){return i}function u(m){return i=s(m),f}function c(m){return l().set(a()+m)}function l(){return Ec(e,a(),n)}let f={get:a,set:u,add:c,clone:l};return f}function wl(e,t,n,o,r,i,s,a,u,c,l,f,m,p,d,h,y,g,b){let{cross:E,direction:v}=e,R=["INPUT","SELECT","TEXTAREA"],w={passive:!1},S=Pn(),k=Pn(),P=Pt(50,225).constrain(p.measure(20)),L={mouse:300,touch:400},I={mouse:500,touch:600},U=d?43:25,D=!1,_=0,te=0,ue=!1,j=!1,V=!1,Q=!1;function ie(x){if(!b)return;function B(Z){(mo(b)||b(x,Z))&&W(Z)}let Y=t;S.add(Y,"dragstart",Z=>Z.preventDefault(),w).add(Y,"touchmove",()=>{},w).add(Y,"touchend",()=>{}).add(Y,"touchstart",B).add(Y,"mousedown",B).add(Y,"touchcancel",A).add(Y,"contextmenu",A).add(Y,"click",we,!0)}function Te(){S.clear(),k.clear()}function $(){let x=Q?n:t;k.add(x,"touchmove",de,w).add(x,"touchend",A).add(x,"mousemove",de,w).add(x,"mouseup",A)}function fe(x){let B=x.nodeName||"";return R.includes(B)}function pe(){return(d?I:L)[Q?"mouse":"touch"]}function T(x,B){let Y=f.add(vr(x)*-1),Z=l.byDistance(x,!d).distance;return d||Re(x)<P?Z:y&&B?Z*.5:l.byIndex(Y.get(),0).distance}function W(x){let B=yr(x,o);Q=B,V=d&&B&&!x.buttons&&D,D=Tn(r.get(),s.get())>=2,!(B&&x.button!==0)&&(fe(x.target)||(ue=!0,i.pointerDown(x),c.useFriction(0).useDuration(0),r.set(s),$(),_=i.readPoint(x),te=i.readPoint(x,E),m.emit("pointerDown")))}function de(x){if(!yr(x,o)&&x.touches.length>=2)return A(x);let Y=i.readPoint(x),Z=i.readPoint(x,E),ge=Tn(Y,_),M=Tn(Z,te);if(!j&&!Q&&(!x.cancelable||(j=ge>M,!j)))return A(x);let q=i.pointerMove(x);ge>h&&(V=!0),c.useFriction(.3).useDuration(.75),a.start(),r.add(v(q)),x.preventDefault()}function A(x){let Y=l.byDistance(0,!1).index!==f.get(),Z=i.pointerUp(x)*pe(),ge=T(v(Z),Y),M=xl(Z,ge),q=U-10*M,H=g+M/50;j=!1,ue=!1,k.clear(),c.useDuration(q).useFriction(H),u.distance(ge,!d),Q=!1,m.emit("pointerUp")}function we(x){V&&(x.stopPropagation(),x.preventDefault(),V=!1)}function me(){return ue}return{init:ie,destroy:Te,pointerDown:me}}function Pl(e,t){let o,r;function i(f){return f.timeStamp}function s(f,m){let d=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(yr(f,t)?f:f.touches[0])[d]}function a(f){return o=f,r=f,s(f)}function u(f){let m=s(f)-s(r),p=i(f)-i(o)>170;return r=f,p&&(o=f),m}function c(f){if(!o||!r)return 0;let m=s(r)-s(o),p=i(f)-i(o),d=i(f)-i(r)>170,h=m/p;return p&&!d&&Re(h)>.1?h:0}return{pointerDown:a,pointerMove:u,pointerUp:c,readPoint:s}}function Al(){function e(n){let{offsetTop:o,offsetLeft:r,offsetWidth:i,offsetHeight:s}=n;return{top:o,right:r+i,bottom:o+s,left:r,width:i,height:s}}return{measure:e}}function Ol(e){function t(o){return e*(o/100)}return{measure:t}}function Il(e,t,n,o,r,i,s){let a=[e].concat(o),u,c,l=[],f=!1;function m(y){return r.measureSize(s.measure(y))}function p(y){if(!i)return;c=m(e),l=o.map(m);function g(b){for(let E of b){if(f)return;let v=E.target===e,R=o.indexOf(E.target),w=v?c:l[R],S=m(v?e:o[R]);if(Re(S-w)>=.5){y.reInit(),t.emit("resize");break}}}u=new ResizeObserver(b=>{(mo(i)||i(y,b))&&g(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>u.observe(b))})}function d(){f=!0,u&&u.disconnect()}return{init:p,destroy:d}}function Nl(e,t,n,o,r,i){let s=0,a=0,u=r,c=i,l=e.get(),f=0;function m(){let w=o.get()-e.get(),S=!u,k=0;return S?(s=0,n.set(o),e.set(o),k=w):(n.set(e),s+=w/u,s*=c,l+=s,e.add(s),k=l-f),a=vr(k),f=l,R}function p(){let w=o.get()-t.get();return Re(w)<.001}function d(){return u}function h(){return a}function y(){return s}function g(){return E(r)}function b(){return v(i)}function E(w){return u=w,R}function v(w){return c=w,R}let R={direction:h,duration:d,velocity:y,seek:m,settled:p,useBaseFriction:b,useBaseDuration:g,useFriction:v,useDuration:E};return R}function Dl(e,t,n,o,r){let i=r.measure(10),s=r.measure(50),a=Pt(.1,.99),u=!1;function c(){return!(u||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function l(p){if(!c())return;let d=e.reachedMin(t.get())?"min":"max",h=Re(e[d]-t.get()),y=n.get()-t.get(),g=a.constrain(h/s);n.subtract(y*g),!p&&Re(y)<i&&(n.set(e.constrain(n.get())),o.useDuration(25).useBaseFriction())}function f(p){u=!p}return{shouldConstrain:c,constrain:l,toggleActive:f}}function _l(e,t,n,o,r){let i=Pt(-t+e,0),s=f(),a=l(),u=m();function c(d,h){return Tn(d,h)<=1}function l(){let d=s[0],h=Qe(s),y=s.lastIndexOf(d),g=s.indexOf(h)+1;return Pt(y,g)}function f(){return n.map((d,h)=>{let{min:y,max:g}=i,b=i.constrain(d),E=!h,v=Er(n,h);return E?g:v||c(y,b)?y:c(g,b)?g:b}).map(d=>parseFloat(d.toFixed(3)))}function m(){if(t<=e+r)return[i.max];if(o==="keepSnaps")return s;let{min:d,max:h}=a;return s.slice(d,h)}return{snapsContained:u,scrollContainLimit:a}}function Ll(e,t,n){let o=t[0],r=n?o-e:Qe(t);return{limit:Pt(r,o)}}function Ml(e,t,n,o){let i=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:u}=Pt(i,s);function c(m){return m===1?u(n.get()):m===-1?a(n.get()):!1}function l(m){if(!c(m))return;let p=e*(m*-1);o.forEach(d=>d.add(p))}return{loop:l}}function Fl(e){let{max:t,length:n}=e;function o(i){let s=i-t;return n?s/-n:0}return{get:o}}function Bl(e,t,n,o,r){let{startEdge:i,endEdge:s}=e,{groupSlides:a}=r,u=f().map(t.measure),c=m(),l=p();function f(){return a(o).map(h=>Qe(h)[s]-h[0][i]).map(Re)}function m(){return o.map(h=>n[i]-h[i]).map(h=>-Re(h))}function p(){return a(c).map(h=>h[0]).map((h,y)=>h+u[y])}return{snaps:c,snapsAligned:l}}function Hl(e,t,n,o,r,i){let{groupSlides:s}=r,{min:a,max:u}=o,c=l();function l(){let m=s(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?m:m.slice(a,u).map((d,h,y)=>{let g=!h,b=Er(y,h);if(g){let E=Qe(y[0])+1;return bc(E)}if(b){let E=An(i)-Qe(y)[0]+1;return bc(E,Qe(y)[0])}return d})}return{slideRegistry:c}}function Vl(e,t,n,o,r){let{reachedAny:i,removeOffset:s,constrain:a}=o;function u(d){return d.concat().sort((h,y)=>Re(h)-Re(y))[0]}function c(d){let h=e?s(d):a(d),y=t.map((b,E)=>({diff:l(b-h,0),index:E})).sort((b,E)=>Re(b.diff)-Re(E.diff)),{index:g}=y[0];return{index:g,distance:h}}function l(d,h){let y=[d,d+n,d-n];if(!e)return d;if(!h)return u(y);let g=y.filter(b=>vr(b)===h);return g.length?u(g):Qe(y)-n}function f(d,h){let y=t[d]-r.get(),g=l(y,h);return{index:d,distance:g}}function m(d,h){let y=r.get()+d,{index:g,distance:b}=c(y),E=!e&&i(y);if(!h||E)return{index:g,distance:d};let v=t[g]-b,R=d+l(v,0);return{index:g,distance:R}}return{byDistance:m,byIndex:f,shortcut:l}}function Ul(e,t,n,o,r,i,s){function a(f){let m=f.distance,p=f.index!==t.get();i.add(m),m&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(f.index),s.emit("select"))}function u(f,m){let p=r.byDistance(f,m);a(p)}function c(f,m){let p=t.clone().set(f),d=r.byIndex(p.get(),m);a(d)}return{distance:u,index:c}}function Wl(e,t,n,o,r,i,s,a){let u={passive:!0,capture:!0},c=0;function l(p){if(!a)return;function d(h){if(new Date().getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let b=n.findIndex(E=>E.includes(h));br(b)&&(r.useDuration(0),o.index(b,0),s.emit("slideFocus"))}i.add(document,"keydown",f,!1),t.forEach((h,y)=>{i.add(h,"focus",g=>{(mo(a)||a(p,g))&&d(y)},u)})}function f(p){p.code==="Tab"&&(c=new Date().getTime())}return{init:l}}function Cn(e){let t=e;function n(){return t}function o(u){t=s(u)}function r(u){t+=s(u)}function i(u){t-=s(u)}function s(u){return br(u)?u:u.get()}return{get:n,set:o,add:r,subtract:i}}function Rc(e,t){let n=e.scroll==="x"?s:a,o=t.style,r=null,i=!1;function s(m){return`translate3d(${m}px,0px,0px)`}function a(m){return`translate3d(0px,${m}px,0px)`}function u(m){if(i)return;let p=Sl(e.direction(m));p!==r&&(o.transform=n(p),r=p)}function c(m){i=!m}function l(){i||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:l,to:u,toggleActive:c}}function $l(e,t,n,o,r,i,s,a,u){let l=kn(r),f=kn(r).reverse(),m=g().concat(b());function p(S,k){return S.reduce((P,L)=>P-r[L],k)}function d(S,k){return S.reduce((P,L)=>p(P,k)>0?P.concat([L]):P,[])}function h(S){return i.map((k,P)=>({start:k-o[P]+.5+S,end:k+t-.5+S}))}function y(S,k,P){let L=h(k);return S.map(I=>{let U=P?0:-n,D=P?n:0,_=P?"end":"start",te=L[I][_];return{index:I,loopPoint:te,slideLocation:Cn(-1),translate:Rc(e,u[I]),target:()=>a.get()>te?U:D}})}function g(){let S=s[0],k=d(f,S);return y(k,n,!1)}function b(){let S=t-s[0]-1,k=d(l,S);return y(k,-n,!0)}function E(){return m.every(({index:S})=>{let k=l.filter(P=>P!==S);return p(k,t)<=.1})}function v(){m.forEach(S=>{let{target:k,translate:P,slideLocation:L}=S,I=k();I!==L.get()&&(P.to(I),L.set(I))})}function R(){m.forEach(S=>S.translate.clear())}return{canLoop:E,clear:R,loop:v,loopPoints:m}}function zl(e,t,n){let o,r=!1;function i(u){if(!n)return;function c(l){for(let f of l)if(f.type==="childList"){u.reInit(),t.emit("slidesChanged");break}}o=new MutationObserver(l=>{r||(mo(n)||n(u,l))&&c(l)}),o.observe(e,{childList:!0})}function s(){o&&o.disconnect(),r=!0}return{init:i,destroy:s}}function jl(e,t,n,o){let r={},i=null,s=null,a,u=!1;function c(){a=new IntersectionObserver(d=>{u||(d.forEach(h=>{let y=t.indexOf(h.target);r[y]=h}),i=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:o}),t.forEach(d=>a.observe(d))}function l(){a&&a.disconnect(),u=!0}function f(d){return wn(r).reduce((h,y)=>{let g=parseInt(y),{isIntersecting:b}=r[g];return(d&&b||!d&&!b)&&h.push(g),h},[])}function m(d=!0){if(d&&i)return i;if(!d&&s)return s;let h=f(d);return d&&(i=h),d||(s=h),h}return{init:c,destroy:l,get:m}}function Yl(e,t,n,o,r,i){let{measureSize:s,startEdge:a,endEdge:u}=e,c=n[0]&&r,l=d(),f=h(),m=n.map(s),p=y();function d(){if(!c)return 0;let b=n[0];return Re(t[a]-b[a])}function h(){if(!c)return 0;let b=i.getComputedStyle(Qe(o));return parseFloat(b.getPropertyValue(`margin-${u}`))}function y(){return n.map((b,E,v)=>{let R=!E,w=Er(v,E);return R?m[E]+l:w?m[E]+f:v[E+1][a]-b[a]}).map(Re)}return{slideSizes:m,slideSizesWithGaps:p,startGap:l,endGap:f}}function Gl(e,t,n,o,r,i,s,a,u){let{startEdge:c,endEdge:l,direction:f}=e,m=br(n);function p(g,b){return kn(g).filter(E=>E%b===0).map(E=>g.slice(E,E+b))}function d(g){return g.length?kn(g).reduce((b,E,v)=>{let R=Qe(b)||0,w=R===0,S=E===An(g),k=r[c]-i[R][c],P=r[c]-i[E][l],L=!o&&w?f(s):0,I=!o&&S?f(a):0,U=Re(P-I-(k+L));return v&&U>t+u&&b.push(E),S&&b.push(g.length),b},[]).map((b,E,v)=>{let R=Math.max(v[E-1]||0);return g.slice(R,b)}):[]}function h(g){return m?p(g,n):d(g)}return{groupSlides:h}}function Kl(e,t,n,o,r,i,s){let{align:a,axis:u,direction:c,startIndex:l,loop:f,duration:m,dragFree:p,dragThreshold:d,inViewThreshold:h,slidesToScroll:y,skipSnaps:g,containScroll:b,watchResize:E,watchSlides:v,watchDrag:R,watchFocus:w}=i,S=2,k=Al(),P=k.measure(t),L=n.map(k.measure),I=kl(u,c),U=I.measureSize(P),D=Ol(U),_=Cl(a,U),te=!f&&!!b,ue=f||!!b,{slideSizes:j,slideSizesWithGaps:V,startGap:Q,endGap:ie}=Yl(I,P,L,n,ue,r),Te=Gl(I,U,y,f,P,L,Q,ie,S),{snaps:$,snapsAligned:fe}=Bl(I,_,P,L,Te),pe=-Qe($)+Qe(V),{snapsContained:T,scrollContainLimit:W}=_l(U,pe,fe,b,S),de=te?T:fe,{limit:A}=Ll(pe,de,f),we=Ec(An(de),l,f),me=we.clone(),ne=kn(n),x=({dragHandler:$e,scrollBody:Be,scrollBounds:pt,options:{loop:mt}})=>{mt||pt.constrain($e.pointerDown()),Be.seek()},B=({scrollBody:$e,translate:Be,location:pt,offsetLocation:mt,previousLocation:yo,scrollLooper:bo,slideLooper:vo,dragHandler:Eo,animation:Ro,eventHandler:In,scrollBounds:xo,options:{loop:xr}},Sr)=>{let Cr=$e.settled(),Bc=!xo.shouldConstrain(),Tr=xr?Cr:Cr&&Bc,kr=Tr&&!Eo.pointerDown();kr&&Ro.stop();let Hc=pt.get()*Sr+yo.get()*(1-Sr);mt.set(Hc),xr&&(bo.loop($e.direction()),vo.loop()),Be.to(mt.get()),kr&&In.emit("settle"),Tr||In.emit("scroll")},Y=Tl(o,r,()=>x(nt),$e=>B(nt,$e)),Z=.68,ge=de[we.get()],M=Cn(ge),q=Cn(ge),H=Cn(ge),se=Cn(ge),xe=Nl(M,H,q,se,m,Z),ce=Vl(f,de,pe,A,se),Ze=Ul(Y,we,me,xe,ce,se,s),O=Fl(A),F=Pn(),De=jl(t,n,s,h),{slideRegistry:ee}=Hl(te,b,de,W,Te,ne),qe=Wl(e,n,ee,Ze,xe,F,s,w),nt={ownerDocument:o,ownerWindow:r,eventHandler:s,containerRect:P,slideRects:L,animation:Y,axis:I,dragHandler:wl(I,e,o,r,se,Pl(I,r),M,Y,Ze,xe,ce,we,s,D,p,d,g,Z,R),eventStore:F,percentOfView:D,index:we,indexPrevious:me,limit:A,location:M,offsetLocation:H,previousLocation:q,options:i,resizeHandler:Il(t,s,r,n,I,E,k),scrollBody:xe,scrollBounds:Dl(A,H,se,xe,D),scrollLooper:Ml(pe,A,H,[M,H,q,se]),scrollProgress:O,scrollSnapList:de.map(O.get),scrollSnaps:de,scrollTarget:ce,scrollTo:Ze,slideLooper:$l(I,U,pe,j,V,$,de,H,n),slideFocus:qe,slidesHandler:zl(t,s,v),slidesInView:De,slideIndexes:ne,slideRegistry:ee,slidesToScroll:Te,target:se,translate:Rc(I,t)};return nt}function ql(){let e={},t;function n(c){t=c}function o(c){return e[c]||[]}function r(c){return o(c).forEach(l=>l(t,c)),u}function i(c,l){return e[c]=o(c).concat([l]),u}function s(c,l){return e[c]=o(c).filter(f=>f!==l),u}function a(){e={}}let u={init:n,emit:r,off:s,on:i,clear:a};return u}var Xl={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Jl(e){function t(i,s){return vc(i,s||{})}function n(i){let s=i.breakpoints||{},a=wn(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,c)=>t(u,c),{});return t(i,a)}function o(i){return i.map(s=>wn(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:o}}function Ql(e){let t=[];function n(i,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),s.reduce((a,u)=>Object.assign(a,{[u.name]:u}),{})}function o(){t=t.filter(i=>i.destroy())}return{init:n,destroy:o}}function On(e,t,n){let o=e.ownerDocument,r=o.defaultView,i=Jl(r),s=Ql(i),a=Pn(),u=ql(),{mergeOptions:c,optionsAtMedia:l,optionsMediaQueries:f}=i,{on:m,off:p,emit:d}=u,h=I,y=!1,g,b=c(Xl,On.globalOptions),E=c(b),v=[],R,w,S;function k(){let{container:ne,slides:x}=E;w=(hr(ne)?e.querySelector(ne):ne)||e.children[0];let Y=hr(x)?w.querySelectorAll(x):x;S=[].slice.call(Y||w.children)}function P(ne){let x=Kl(e,w,S,o,r,ne,u);if(ne.loop&&!x.slideLooper.canLoop()){let B=Object.assign({},ne,{loop:!1});return P(B)}return x}function L(ne,x){y||(b=c(b,ne),E=l(b),v=x||v,k(),g=P(E),f([b,...v.map(({options:B})=>B)]).forEach(B=>a.add(B,"change",I)),E.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(me),g.eventHandler.init(me),g.resizeHandler.init(me),g.slidesHandler.init(me),g.options.loop&&g.slideLooper.loop(),w.offsetParent&&S.length&&g.dragHandler.init(me),R=s.init(me,v)))}function I(ne,x){let B=Te();U(),L(c({startIndex:B},ne),x),u.emit("reInit")}function U(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),s.destroy(),a.clear()}function D(){y||(y=!0,a.clear(),U(),u.emit("destroy"),u.clear())}function _(ne,x,B){!E.active||y||(g.scrollBody.useBaseFriction().useDuration(x===!0?0:E.duration),g.scrollTo.index(ne,B||0))}function te(ne){let x=g.index.add(1).get();_(x,ne,-1)}function ue(ne){let x=g.index.add(-1).get();_(x,ne,1)}function j(){return g.index.add(1).get()!==Te()}function V(){return g.index.add(-1).get()!==Te()}function Q(){return g.scrollSnapList}function ie(){return g.scrollProgress.get(g.offsetLocation.get())}function Te(){return g.index.get()}function $(){return g.indexPrevious.get()}function fe(){return g.slidesInView.get()}function pe(){return g.slidesInView.get(!1)}function T(){return R}function W(){return g}function de(){return e}function A(){return w}function we(){return S}let me={canScrollNext:j,canScrollPrev:V,containerNode:A,internalEngine:W,destroy:D,off:p,on:m,emit:d,plugins:T,previousScrollSnap:$,reInit:h,rootNode:de,scrollNext:te,scrollPrev:ue,scrollProgress:ie,scrollSnapList:Q,scrollTo:_,selectedScrollSnap:Te,slideNodes:we,slidesInView:fe,slidesNotInView:pe};return L(t,n),setTimeout(()=>u.emit("init"),0),me}On.globalOptions=void 0;function go(e={},t=[]){let n=(0,Ke.useRef)(e),o=(0,Ke.useRef)(t),[r,i]=(0,Ke.useState)(),[s,a]=(0,Ke.useState)(),u=(0,Ke.useCallback)(()=>{r&&r.reInit(n.current,o.current)},[r]);return(0,Ke.useEffect)(()=>{po(n.current,e)||(n.current=e,u())},[e,u]),(0,Ke.useEffect)(()=>{hc(o.current,t)||(o.current=t,u())},[t,u]),(0,Ke.useEffect)(()=>{if(gc()&&s){On.globalOptions=go.globalOptions;let c=On(s,n.current,o.current);return i(c),()=>c.destroy()}else i(void 0)},[s,i]),[a,r]}go.globalOptions=void 0;var Ue=C(N(),1),At=6e3;function xc(e,t){let n=(0,Ue.useRef)(At),o=(0,Ue.useRef)(null),[r,i]=(0,Ue.useState)(At),s=(0,Ue.useMemo)(()=>fo({delay:r,playOnInit:!1,stopOnFocusIn:!1,stopOnInteraction:!0,stopOnMouseEnter:!1}),[r]),[a,u]=go({duration:t?0:25,loop:!0},[s]),c=(0,Ue.useCallback)(()=>{o.current&&(o.current.style.transform=`scaleX(${1-n.current/At})`)},[]),l=(0,Ue.useCallback)(()=>{let m=s.timeUntilNext();m!==null&&(n.current=Math.max(1,Math.min(At,m))),s.stop(),c()},[s,c]),f=(0,Ue.useCallback)(()=>{n.current=At,i(At),s.reset(),c()},[s,c]);return(0,Ue.useEffect)(()=>{u&&(e?r===n.current?s.play():i(n.current):l())},[u,e,s,r,i,n,l]),(0,Ue.useEffect)(()=>{if(!u)return;let m=0,p=()=>{let g=s.timeUntilNext();!e||g===null||(n.current=Math.max(0,Math.min(At,g)),c(),m=requestAnimationFrame(p))},d=()=>{cancelAnimationFrame(m),e&&(m=requestAnimationFrame(p))},h=()=>cancelAnimationFrame(m),y=()=>{e&&s.play()};return u.on("select",f).on("reInit",y).on("autoplay:timerset",d).on("autoplay:timerstopped",h),c(),d(),()=>{h(),u.off("select",f).off("reInit",y).off("autoplay:timerset",d).off("autoplay:timerstopped",h)}},[u,s,e,n,f,c]),{embla:u,freeze:l,progressRef:o,reset:f,viewportRef:a}}var le=C(he(),1);function Sc({photos:e,name:t,imageSizes:n="(max-width: 1279px) 100vw, 45vw",selected:o,paused:r=!1,photoButtonRef:i,onSelect:s,onExpand:a}){let u=(0,ke.useRef)(null),c=(0,ke.useRef)(null),l=(0,ke.useRef)([]),[f,m]=(0,ke.useState)(!0),[p,d]=(0,ke.useState)(!1),[h,y]=(0,ke.useState)(!1),[g,b]=(0,ke.useState)(!1),[E,v]=(0,ke.useState)(!1),{ref:R,visible:w}=Fr(),[S,k]=(0,ke.useState)(!1),[P,L]=(0,ke.useState)(!0),I=(0,ke.useRef)(null),D=`lockerverse-auction-gallery__control ${P||S||h?"is-visible":""}`,_=()=>{I.current&&clearTimeout(I.current),I.current=setTimeout(()=>k(!1),2e3)},te=T=>{if(T.pointerType!=="mouse"){L(!0);return}k(!0),I.current&&clearTimeout(I.current),T.target instanceof Element&&T.target.closest("[data-gallery-control]")||_()};(0,ke.useEffect)(()=>{let T=window.matchMedia("(hover: none), (pointer: coarse)"),W=()=>L(T.matches);return W(),T.addEventListener("change",W),()=>{T.removeEventListener("change",W),clearTimeout(I.current??void 0)}},[]);let ue=!(r||f||p||h||g||E)&&w,j=e.length,V=j?(o%j+j)%j:0,{viewportRef:Q,embla:ie,progressRef:Te,freeze:$,reset:fe}=xc(ue&&j>1,f);(0,ke.useEffect)(()=>{let T=window.matchMedia("(prefers-reduced-motion: reduce)"),W=()=>m(T.matches);return W(),T.addEventListener("change",W),()=>T.removeEventListener("change",W)},[]),(0,ke.useEffect)(()=>{if(!ie)return;let T=()=>s(ie.selectedScrollSnap());return ie.on("select",T).on("reInit",T),()=>{ie.off("select",T).off("reInit",T)}},[ie,s]),(0,ke.useEffect)(()=>{ie&&ie.selectedScrollSnap()!==V&&ie.scrollTo(V,!0)},[ie,V]),(0,ke.useEffect)(()=>{let T=()=>{document.hidden&&$()},W=()=>v(!1);return T(),document.addEventListener("visibilitychange",T,!0),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),()=>{document.removeEventListener("visibilitychange",T,!0),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W)}},[$]);let pe=T=>{ie?.scrollTo((T+j)%j,f),fe()};return(0,ke.useEffect)(()=>{let T=c.current;c.current=null,T&&document.activeElement===T&&R.current?.querySelector('.lockerverse-auction-gallery__photo[tabindex="0"]')?.focus({preventScroll:!0})},[V,R]),(0,ke.useEffect)(()=>{let T=u.current,W=l.current[V];if(!(T&&W))return;let de=T.getBoundingClientRect(),A=W.getBoundingClientRect();A.left<de.left?T.scrollLeft-=de.left-A.left:A.right>de.right&&(T.scrollLeft+=A.right-de.right)},[V,j]),(0,le.jsxs)("section",{"aria-label":`${t} photos`,className:"lockerverse-auction-gallery",onBlurCapture:T=>{T.currentTarget.contains(T.relatedTarget)||y(!1)},onFocusCapture:T=>y(T.target.matches(":focus-visible")),onKeyDown:T=>{j<2||T.altKey||T.ctrlKey||T.metaKey||T.shiftKey||(T.key==="ArrowLeft"||T.key==="ArrowRight")&&(T.preventDefault(),T.target instanceof HTMLButtonElement&&T.target.classList.contains("lockerverse-auction-gallery__photo")&&(c.current=T.target),pe(V+(T.key==="ArrowRight"?1:-1)))},onPointerEnter:T=>{T.pointerType==="mouse"&&d(!0)},onPointerLeave:T=>{T.pointerType==="mouse"&&d(!1)},ref:R,children:[j?(0,le.jsxs)("div",{className:"lockerverse-auction-gallery__stage",onPointerEnter:te,onPointerLeave:_,onPointerMove:te,children:[(0,le.jsx)("div",{className:"lockerverse-auction-gallery__viewport",onPointerDownCapture:()=>{$(),v(!0)},ref:Q,children:(0,le.jsx)("div",{className:"lockerverse-auction-gallery__track",children:e.map((T,W)=>(0,le.jsx)("div",{"aria-hidden":W!==V,className:"lockerverse-auction-gallery__slide",children:(0,le.jsx)("button",{"aria-label":`View photo ${W+1} of ${t} at full size`,className:"lockerverse-auction-gallery__photo",onClick:()=>{a(W)},ref:W===V?i:void 0,tabIndex:W===V?0:-1,type:"button",children:(0,le.jsx)(at,{alt:`${t}, ${W+1} of ${j}`,className:"lockerverse-auction-gallery__image",draggable:!1,fetchPriority:W===0?"high":"auto",height:900,loading:W===V?"eager":"lazy",maxWidth:1920,sizes:W===V?n:`auto, ${n}`,src:T,width:1200})})},`${T}-${W}`))})}),j>1&&!f&&(0,le.jsxs)("div",{className:"lockerverse-auction-gallery__rotation",children:[(0,le.jsx)("div",{"aria-hidden":"true",className:"lockerverse-auction-gallery__progress-track",children:(0,le.jsx)("div",{className:"lockerverse-auction-gallery__progress",ref:Te,style:{transform:"scaleX(0)"}})}),(0,le.jsx)("button",{"aria-label":g?"Play photo rotation":"Pause photo rotation",className:`lockerverse-auction-gallery__play ${D}`,"data-gallery-control":!0,onClick:()=>b(T=>!T),title:g?"Play photo rotation":"Pause photo rotation",type:"button",children:g?(0,le.jsx)(Dr,{"aria-hidden":"true",size:13}):(0,le.jsx)(Nr,{"aria-hidden":"true",size:13})})]}),j>1&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)("button",{"aria-label":"Previous photo",className:`lockerverse-auction-gallery__previous ${D}`,"data-gallery-control":!0,onClick:()=>pe(V-1),type:"button",children:(0,le.jsx)(Nt,{"aria-hidden":"true",className:"lockerverse-auction-gallery__chevron"})}),(0,le.jsx)("button",{"aria-label":"Next photo",className:`lockerverse-auction-gallery__next ${D}`,"data-gallery-control":!0,onClick:()=>pe(V+1),type:"button",children:(0,le.jsx)(Dn,{"aria-hidden":"true",className:"lockerverse-auction-gallery__chevron"})})]})]}):(0,le.jsx)("div",{className:"lockerverse-auction-gallery__empty",children:"No photo available"}),j>1&&(0,le.jsx)("section",{"aria-label":"Choose a photo",className:"lockerverse-auction-gallery__strip",ref:u,children:(0,le.jsx)("div",{className:"lockerverse-auction-gallery__thumbnails",children:e.map((T,W)=>(0,le.jsx)("button",{"aria-label":`Show photo ${W+1} of ${j}`,"aria-pressed":V===W,className:`lockerverse-auction-gallery__thumbnail ${V===W?"is-selected":""}`,onClick:()=>pe(W),ref:de=>{l.current[W]=de},type:"button",children:(0,le.jsx)(at,{alt:"",className:"lockerverse-auction-gallery__thumbnail-image",height:66,loading:"lazy",maxWidth:192,sizes:"88px",src:T,width:88})},`${T}-${W}`))})})]})}var Se=C(he(),1);function Cc({images:e,fallbackImage:t,name:n,imageSizes:o}){let r=[...new Set(e.filter(Boolean))];!r.length&&t&&r.push(t);let[i,s]=(0,Zt.useState)(0),[a,u]=(0,Zt.useState)(!1),c=(0,Zt.useRef)(null),l=(0,Zt.useRef)(null),f=c.current?.getRootNode(),m=f&&f instanceof ShadowRoot?f:void 0,p=r.length,d=p?(i%p+p)%p:0;return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(Sc,{imageSizes:o,name:n,onExpand:h=>{s(h),u(!0)},onSelect:s,paused:a,photoButtonRef:c,photos:r,selected:d}),p>0&&(0,Se.jsx)(st.Root,{onOpenChange:u,open:a,children:(0,Se.jsxs)(st.Portal,{container:m,children:[(0,Se.jsx)(st.Backdrop,{className:"lockerverse-auction-gallery__backdrop"}),(0,Se.jsxs)(st.Popup,{"aria-describedby":void 0,className:"lockerverse-auction-gallery__viewer",finalFocus:c,onKeyDown:h=>{p<2||h.altKey||h.ctrlKey||h.metaKey||h.shiftKey||(h.key==="ArrowLeft"||h.key==="ArrowRight")&&(h.preventDefault(),s((d+(h.key==="ArrowRight"?1:-1)+p)%p))},children:[(0,Se.jsxs)(st.Title,{className:"lockerverse-auction-gallery__sr-only",children:[n," \xB7 Photo ",d+1," of ",p]}),(0,Se.jsxs)("div",{className:"lockerverse-auction-gallery__full-image",onTouchCancel:()=>{l.current=null},onTouchEnd:h=>{let y=l.current;l.current=null;let g=h.changedTouches.item(0);if(!(y&&g)||p<2)return;let b=g.clientX-y.x,E=g.clientY-y.y;Math.abs(b)>=45&&Math.abs(b)>Math.abs(E)*1.3&&s((d+(b<0?1:-1)+p)%p)},onTouchMove:h=>{h.touches.length!==1&&(l.current=null)},onTouchStart:h=>{let y=h.touches.item(0);l.current=h.touches.length===1&&y?{x:y.clientX,y:y.clientY}:null},children:[(0,Se.jsx)(at,{alt:`${n}, ${d+1} of ${p}`,height:900,maxWidth:1920,sizes:"100vw",src:r[d],width:1200}),a&&p>1&&(0,Se.jsx)(at,{alt:"","aria-hidden":"true",className:"lockerverse-auction-gallery__preload",height:900,loading:"eager",maxWidth:1920,sizes:"100vw",src:r[(d+1)%p],width:1200})]}),(0,Se.jsx)(st.Close,{"aria-label":"Close photo viewer",className:"lockerverse-auction-gallery__viewer-close",children:(0,Se.jsx)(_r,{"aria-hidden":"true",size:22})}),p>1&&(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("button",{"aria-label":"Previous photo",className:"lockerverse-auction-gallery__viewer-previous",onClick:()=>s((d-1+p)%p),type:"button",children:(0,Se.jsx)(Nt,{"aria-hidden":"true",size:28})}),(0,Se.jsx)("button",{"aria-label":"Next photo",className:"lockerverse-auction-gallery__viewer-next",onClick:()=>s((d+1)%p),type:"button",children:(0,Se.jsx)(Dn,{"aria-hidden":"true",size:28})})]})]})]})})]})}var ae=C(he(),1),Zl={1:"h1",2:"h2"};function ef(e){return e==="Buy Now"?(0,ae.jsx)(_n,{"aria-hidden":"true",size:16}):e==="Available"||e==="Increment"?(0,ae.jsx)(Ln,{"aria-hidden":"true",size:16}):(0,ae.jsx)(Or,{"aria-hidden":"true",size:16})}function tf(e,t){return e.saleMode==="buy_now"?[["Buy Now",Fe(e.buyNowPriceAmount??0)],["Available",e.availableQuantity===null?"Available":String(e.availableQuantity)]]:t==="finished"?[["Final bid",e.maxBidAmount?Fe(e.maxBidAmount):"No bids"]]:[["Current bid",Fe(e.maxBidAmount??0)],["Floor",Fe(e.minBidAmount??0)],["Increment",Fe(e.bidIncrementAmount??100)]]}function Tc({auction:e,item:t,itemHeadingLevel:n=2,galleryImageSizes:o}){Ft(t.startAt??e.startAt,t.endAt??e.endAt);let[r,i]=(0,ho.useState)(!1),s=(0,ho.useId)(),a=Lt(e,t),u={active:"Closes",draft:"Opens",finished:"Closed"}[a],c=_t(e,a,t),l=t.saleMode==="buy_now",f=(t.description??"").trim().length>240,m=tf(t,a),p=Zl[n];return(0,ae.jsxs)("section",{className:"lockerverse-auctions__item-summary",children:[(0,ae.jsx)(Cc,{fallbackImage:t.image??e.configuration.image??e.community?.banner??e.community?.thumbnail??null,imageSizes:o,images:t.images,name:t.name}),(0,ae.jsxs)("div",{className:"lockerverse-auctions__item-copy",children:[(0,ae.jsx)(p,{children:t.name}),t.description?(0,ae.jsxs)("div",{className:"lockerverse-auctions__item-description",children:[(0,ae.jsx)(Lr,{className:!r&&f?"lockerverse-auctions__description-clamped":void 0,description:t.description,id:s}),f?(0,ae.jsxs)("button",{"aria-controls":s,"aria-expanded":r,className:"lockerverse-auctions__description-toggle",onClick:()=>i(!r),type:"button",children:[r?"Hide description":"Read full description"," ",(0,ae.jsx)(Pr,{"aria-hidden":"true",size:16,style:{transform:r?"rotate(180deg)":void 0}})]}):null]}):null,(0,ae.jsxs)("dl",{className:"lockerverse-auctions__stat-panel",children:[m.map(([d,h])=>(0,ae.jsxs)("div",{className:"lockerverse-auctions__stat-row",children:[(0,ae.jsxs)("dt",{children:[ef(d),d]}),(0,ae.jsx)("dd",{children:h})]},d)),(0,ae.jsxs)("div",{className:"lockerverse-auctions__stat-row",children:[(0,ae.jsxs)("dt",{children:[(0,ae.jsx)(Ar,{"aria-hidden":"true",size:16}),u]}),(0,ae.jsx)("dd",{className:"lockerverse-auctions__stat-date",children:c})]}),!l&&a==="finished"?(0,ae.jsxs)("div",{className:"lockerverse-auctions__stat-footer",children:[(0,ae.jsxs)("div",{children:[(0,ae.jsx)("dt",{children:"Floor"}),(0,ae.jsx)("dd",{children:Fe(t.minBidAmount??0)})]}),(0,ae.jsxs)("div",{children:[(0,ae.jsx)("dt",{children:"Bid increment"}),(0,ae.jsx)("dd",{children:Fe(t.bidIncrementAmount??100)})]})]}):null]})]})]})}var Ot=C(N(),1);var G=C(he(),1),nf={1:"h2",2:"h3"},kc=/^\d+$/;function of(e,t){let n=Number(e),o=n*(t.buyNowPriceAmount??0);if(!(kc.test(e)&&Number.isSafeInteger(o))||n<1)return"Enter a whole-number quantity.";if(!t.additionalCharge)return`Total: ${Fe(o)}`;let r=t.additionalCharge.firstUnitAmountCents+t.additionalCharge.additionalUnitAmountCents*(n-1),i=o+r;return Number.isSafeInteger(i)?`Subtotal: ${Fe(o)} \xB7 ${t.additionalCharge.name}: ${Fe(r)} \xB7 Total: ${Fe(i)}`:"Enter a valid quantity."}function rf(e,t,n){return String(e?t?t.quantity:1:t?t.amount/100:n)}function sf(e,t){return Mt(e)?"This item is sold out.":t==="draft"?"This item is not open yet.":t==="finished"?e.saleMode==="buy_now"?"Purchases are closed for this item.":"Bidding is closed for this item.":"This item is not available."}function cf(e,t,n){return Mt(t)?"All available quantities have been purchased.":n==="draft"?`This item opens ${_t(e,"draft",t)}.`:t.saleMode==="buy_now"?"This item is no longer available to purchase.":"Bidding has closed for this item."}function af(e,t,n,o,r){let i={amount:t?0:Number(o)*100,includeServiceFee:n?n.includeServiceFee:e.serviceFeeEnabled&&e.serviceFeeDefaultChecked,quantity:t?Number(o):1};return t||(i.bidType=r),i}function wc({auction:e,item:t,initialSelection:n,onContinue:o,onError:r,onBack:i,backHref:s,itemHeadingLevel:a=2}){let u=nf[a],c=t.saleMode==="buy_now",l=Math.ceil(Br(t)/100),[f,m]=(0,Ot.useState)(rf(c,n,l)),[p,d]=(0,Ot.useState)(n?.bidType??"fixed"),[h,y]=(0,Ot.useState)(null),g=(0,Ot.useId)();Ft(t.startAt??e.startAt,t.endAt??e.endAt);let b=Lt(e,t),E=b==="active"&&!Mt(t)&&t.saleMode!=="hybrid";function v(R){if(R.preventDefault(),!kc.test(f)){y(c?"Enter a whole-number quantity.":"Enter a whole-dollar bid amount.");return}let w=af(e,c,n,f,p),S=Ur(e,t,w);if(S){y(S),r(S);return}try{nn(e,t,w)}catch{y("Enter a valid amount or quantity.");return}o(w)}return E?(0,G.jsxs)("form",{className:"lockerverse-auctions__selection",onSubmit:v,children:[(0,G.jsx)(uf,{buyNow:c,headingTag:u,item:t}),(0,G.jsxs)("div",{className:"lockerverse-auctions__selection-body",children:[(0,G.jsx)(df,{bidType:p,enabled:!c&&!!t.supportsMaximumBids,id:g,onChange:R=>{d(R),y(null)}}),(0,G.jsxs)("label",{className:"lockerverse-auctions__field",htmlFor:g,children:[ff(c,p),(0,G.jsxs)("span",{className:"lockerverse-auctions__amount-control",children:[c?null:(0,G.jsx)("span",{"aria-hidden":"true",children:"$"}),(0,G.jsx)("input",{"aria-describedby":c?`${g}-help`:void 0,"aria-invalid":!!h,autoComplete:"off",id:g,inputMode:"numeric",onChange:R=>{m(R.target.value),y(null)},placeholder:c?"1":String(l),required:!0,value:f})]})]}),h?(0,G.jsx)("p",{role:"alert",children:h}):null,c&&(0,G.jsx)("p",{id:`${g}-help`,children:of(f,t)}),(0,G.jsx)(lf,{item:t}),(0,G.jsxs)("div",{className:"lockerverse-auctions__selection-footer",children:[(0,G.jsx)("p",{children:c?"You pay at checkout.":"We charge your card only if you win."}),(0,G.jsxs)("button",{className:"lockerverse-auctions__button",disabled:!e.payment,type:"submit",children:[c?"Continue to Checkout":"Continue to Payment"," ",(0,G.jsx)(ht,{"aria-hidden":"true",size:16})]})]}),e.payment?null:(0,G.jsx)("p",{role:"alert",children:"Payments are not configured for this auction."})]})]}):(0,G.jsxs)("div",{className:"lockerverse-auctions__selection lockerverse-auctions__read-only",children:[(0,G.jsx)("p",{className:"lockerverse-auctions__eyebrow",children:"Item status"}),(0,G.jsx)(u,{children:sf(t,b)}),(0,G.jsx)("p",{children:cf(e,t,b)}),(0,G.jsxs)(Dt,{className:"lockerverse-auctions__button",href:s,onBack:i,children:["Browse auction items ",(0,G.jsx)(ht,{"aria-hidden":"true",size:16})]})]})}function uf({headingTag:e,item:t,buyNow:n}){return(0,G.jsxs)("div",{className:"lockerverse-auctions__selection-header",children:[(0,G.jsx)("p",{className:"lockerverse-auctions__eyebrow",children:"Step 1 of 2"}),(0,G.jsx)(e,{children:n?"Buy this item":"Place your bid"}),n?(0,G.jsxs)("p",{children:[Fe(t.buyNowPriceAmount??0)," each",t.availableQuantity===null?"":` \xB7 ${t.availableQuantity} available`]}):null]})}function lf({item:e}){return e.saleMode==="buy_now"||!e.additionalCharge?null:(0,G.jsxs)("p",{children:[e.additionalCharge.name,":"," ",Fe(e.additionalCharge.firstUnitAmountCents)," if you win."]})}function ff(e,t){return e?"Quantity":t==="maximum"?"Your maximum bid":"Your bid amount"}function df({bidType:e,enabled:t,id:n,onChange:o}){return t?(0,G.jsxs)("fieldset",{className:"lockerverse-auctions__bid-types",children:[(0,G.jsx)("legend",{children:"Bid type"}),["fixed","maximum"].map(r=>(0,G.jsxs)("div",{className:"lockerverse-auctions__bid-type",children:[(0,G.jsxs)("label",{children:[(0,G.jsx)("input",{checked:e===r,name:`${n}-bid-type`,onChange:()=>o(r),type:"radio",value:r}),(0,G.jsx)("span",{children:r==="fixed"?"Fixed bid":"Maximum bid"})]}),(0,G.jsx)(pf,{id:`${n}-${r}-help`,type:r})]},r))]}):null}function pf({id:e,type:t}){let[n,o]=(0,Ot.useState)(!1);return(0,G.jsxs)("button",{"aria-describedby":n?e:void 0,"aria-label":`About ${t==="fixed"?"fixed":"maximum"} bids`,className:"lockerverse-auctions__bid-help-button",onBlur:()=>o(!1),onClick:()=>o(!0),onFocus:()=>o(!0),onKeyDown:r=>{r.key==="Escape"&&o(!1)},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),type:"button",children:[(0,G.jsx)(Ir,{"aria-hidden":"true",size:16}),n&&(0,G.jsx)("span",{className:"lockerverse-auctions__bid-tip",id:e,role:"tooltip",children:t==="fixed"?"Bid this exact amount. It will not increase automatically.":"We bid only what is needed to lead, up to your private limit. Accepted bids cannot be changed or canceled. A new bid is separate."})]})}var It=C(N(),1);var Pc=C(N(),1);var Oc=C(he(),1),Rr=()=>{};function Ac(e){let t=(0,Pc.useId)(),{auction:n,item:o,selection:r,resumePurchase:i}=e,s=i?i.pricing:nn(n,o,r),a=!!i||o.saleMode==="buy_now";return(0,Oc.jsx)($r,{billingFields:null,buttonText:a?"Buy Now":"Authorize Bid",communityName:e.communityName??n.name,contactErrors:{},email:e.contact.email,id:t,includeServiceFee:r.includeServiceFee,isMaximumBid:!a&&r.bidType==="maximum",isPurchase:a,isTerminal:!1,item:o,locked:!0,message:null,onBack:i||e.interactionLocked?void 0:e.onBack,onEmailChange:Rr,onIncludeServiceFeeChange:e.onIncludeServiceFeeChange,onPhoneChange:Rr,onSameAsBillingChange:Rr,onSubmit:u=>u.preventDefault(),paymentFields:null,phone:e.contact.phone,phoneCountry:Wr(e.contact.phone),pricing:s,quantity:r.quantity,sameAsBilling:!0,serviceFeeCents:i?s.serviceFeeCents:nn(n,o,{...r,includeServiceFee:n.serviceFeeEnabled}).serviceFeeCents,serviceFeeEnabled:n.serviceFeeEnabled,shippingFields:null,showFields:!i,submitDisabled:!0})}var ct=C(he(),1),Ic,Nc=null;function Dc(){return Ic??=import("./auction-payment-view-JOK2WFRJ.js").then(e=>(Nc=e.AuctionPayment,e)),Ic}function _c(e,t,n){let o=e?.publishableKey,r=e?.connectedAccountId,[i,s]=(0,It.useState)(null);return(0,It.useEffect)(()=>{if(!(n&&o))return;let a=Dc().then(u=>u.loadAuctionStripe(o,r,t)).catch(()=>null);s({connectedAccountId:r,publishableKey:o,stripe:a,stripeLoader:t})},[n,o,r,t]),i?.publishableKey===o&&i?.connectedAccountId===r&&i?.stripeLoader===t?i?.stripe:void 0}function Lc(e){let[t,n]=(0,It.useState)(()=>Nc),[o,r]=(0,It.useState)(!1),i=!!(e.resumePurchase||e.interactionLocked);return(0,It.useEffect)(()=>{let s=!0;return Dc().then(({AuctionPayment:a})=>{s&&n(()=>a)},()=>{s&&r(!0)}),()=>{s=!1}},[]),t?(0,ct.jsx)(t,{...e}):o?(0,ct.jsxs)("div",{children:[(0,ct.jsx)("p",{role:"alert",children:"Payment details could not load."}),i&&(0,ct.jsx)("p",{children:"Your purchase status is not confirmed. Keep this page open and contact the auction organizer before you try another purchase."}),i?null:(0,ct.jsx)("button",{onClick:e.onBack,type:"button",children:"Back to item"}),!i&&(0,ct.jsx)("button",{onClick:()=>window.location.reload(),type:"button",children:"Reload page to try again"})]}):(0,ct.jsx)(Ac,{...e})}var en=C(N(),1);var z=C(he(),1);function Mc({action:e,secondary:t=!1}){let n=`lockerverse-auction-result__action${t?" lockerverse-auction-result__action--secondary":""}`,o=(0,z.jsxs)(z.Fragment,{children:[e.label,t?null:(0,z.jsx)(ht,{"aria-hidden":"true",size:18})]});return e.href?(0,z.jsx)("a",{className:n,href:e.href,onClick:e.onClick,children:o}):(0,z.jsx)("button",{className:n,onClick:e.onClick,type:"button",children:o})}var mf={bid:{assurance:"A bid is not a purchase. Payment is collected only if you win at settlement.",assuranceTitle:"Bid authorization saved",badge:"Bid submitted",description:"Your bid and payment method are recorded. You have not been charged for this bid.",next:"Other bidders can still place bids until the item closes.",nextTitle:"Follow the auction",receiptLabel:"Bid summary",steps:["Your bid is recorded. This does not confirm that you have won.","Your saved payment method can be charged if you win at settlement.","Watch your email for bid updates and return to the item to check its status."],title:"Bid received"},purchase:{assurance:"This receipt shows the amount paid for your purchase.",assuranceTitle:"Payment processed",badge:"Purchase confirmed",description:"Your payment is confirmed and your purchase is recorded.",next:"The community handles delivery or collection for this item.",nextTitle:"Next steps",receiptLabel:"Purchase receipt",steps:["Your payment is complete and your purchase is recorded.","The community can review your buyer and delivery details.","Keep your receipt number. Contact the community if you need help with your order."],title:"Purchase complete"},receipt:{assurance:"The amounts below are the recorded purchase amounts, not proof of payment.",assuranceTitle:"Recorded purchase",badge:"Purchase details",description:"Payment status is not confirmed on this page.",next:"Contact the community if you need to confirm your payment or order status.",nextTitle:"Next steps",receiptLabel:"Purchase receipt",steps:["These are the recorded purchase details. They do not confirm payment.","Check your purchase confirmation for the payment result.","Contact the community with your receipt number if you need help."],title:"Purchase details"}};function gf(e){let t=[];return e.amountCents!==void 0&&t.push([e.bidType==="maximum"?"Maximum bid":"Bid amount",et(e.amountCents)]),e.additionalCharge&&t.push([e.additionalCharge.name,et(e.additionalChargeCents??0)]),(e.additionalCharge||e.bidType==="maximum")&&((e.serviceFeeCents??0)>0&&t.push([e.bidType==="maximum"?"Maximum service fee":"Service fee",et(e.serviceFeeCents??0)]),e.totalCents!==void 0&&t.push([e.bidType==="maximum"?"Maximum total if I win":"Total if I win",et(e.totalCents)])),t}function hf({outcome:e,auctionName:t,communityName:n,closesAtLabel:o}){let r=[];return e.kind==="bid"?r.push(...gf(e)):(r.push(["Unit price",et(e.unitAmountCents)],["Quantity",String(e.quantity)],["Subtotal",et(e.subtotalCents)]),e.additionalCharge&&r.push([e.additionalCharge.name,et(e.additionalChargeCents??0)]),e.serviceFeeCents>0&&r.push(["Service fee",et(e.serviceFeeCents)]),r.push([e.kind==="purchase"?"Total paid":"Total",et(e.totalCents)],["Receipt",e.purchaseId])),t&&r.push(["Auction",t]),n&&r.push(["Community",n]),o&&r.push(["Closes",o]),r}function Fc(e){let{outcome:t,itemName:n,imageUrl:o,communityName:r,primaryAction:i,secondaryAction:s,className:a,theme:u="dark",style:c}=e,l=(0,en.useId)(),f=(0,en.useRef)(null);(0,en.useEffect)(()=>{e.focusHeading&&f.current?.focus()},[e.focusHeading]);let m=mf[t.kind],p=t.kind==="receipt"?Co:wr,d=t.kind==="receipt"?Co:_n,h=hf(e);return(0,z.jsx)("section",{"aria-labelledby":l,className:["lockerverse-auctions lockerverse-auction-result",a].filter(Boolean).join(" "),"data-lockerverse-theme":u,style:tn({},c,u),children:(0,z.jsxs)("div",{className:"lockerverse-auction-result__layout",children:[(0,z.jsxs)("div",{className:"lockerverse-auction-result__summary",children:[(0,z.jsxs)("span",{className:"lockerverse-auction-result__badge",children:[(0,z.jsx)(p,{"aria-hidden":"true",size:18}),m.badge]}),r?(0,z.jsx)("p",{className:"lockerverse-auction-result__community",children:r}):null,(0,z.jsxs)("h2",{className:"lockerverse-auction-result__title",id:l,ref:f,tabIndex:e.focusHeading?-1:void 0,children:[m.title," for ",n,"."]}),(0,z.jsxs)("p",{className:"lockerverse-auction-result__description",children:[m.description,t.kind==="bid"&&t.bidType==="maximum"?" We bid for you up to your private maximum. If you win, you pay the final winning price plus applicable fees. This submission does not confirm that you are leading.":""]}),(0,z.jsxs)("div",{className:"lockerverse-auction-result__assurance",children:[(0,z.jsx)(d,{"aria-hidden":"true",size:22}),(0,z.jsxs)("div",{children:[(0,z.jsx)("strong",{children:m.assuranceTitle}),(0,z.jsx)("p",{children:m.assurance})]})]}),(0,z.jsxs)("div",{className:"lockerverse-auction-result__assurance",children:[(0,z.jsx)(Ln,{"aria-hidden":"true",size:22}),(0,z.jsxs)("div",{children:[(0,z.jsx)("strong",{children:m.nextTitle}),(0,z.jsx)("p",{children:m.next})]})]}),i||s?(0,z.jsxs)("div",{className:"lockerverse-auction-result__actions",children:[i?(0,z.jsx)(Mc,{action:i}):null,s?(0,z.jsx)(Mc,{action:s,secondary:!0}):null]}):null]}),(0,z.jsxs)("aside",{"aria-label":m.receiptLabel,className:"lockerverse-auction-result__receipt",children:[o?(0,z.jsx)(at,{alt:n,className:"lockerverse-auction-result__image",height:300,maxWidth:960,sizes:"100vw",src:o,width:420}):null,(0,z.jsxs)("div",{className:"lockerverse-auction-result__receipt-body",children:[(0,z.jsx)("p",{className:"lockerverse-auction-result__eyebrow",children:m.receiptLabel}),(0,z.jsx)("h3",{className:"lockerverse-auction-result__receipt-title",children:n}),(0,z.jsx)("dl",{className:"lockerverse-auction-result__details",children:h.map(([y,g])=>(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:y}),(0,z.jsx)("dd",{children:g})]},y))}),(0,z.jsx)("h4",{children:"What happens next"}),(0,z.jsx)("ol",{className:"lockerverse-auction-result__steps",role:"list",children:m.steps.map((y,g)=>(0,z.jsxs)("li",{children:[(0,z.jsx)("span",{"aria-hidden":"true",className:"lockerverse-auction-result__step-number",children:String(g+1).padStart(2,"0")}),(0,z.jsx)("span",{children:y})]},y))})]})]})]})})}var Ae=C(he(),1);function yf(e){let{auction:t,item:n,outcome:o}=e,r;return e.backHref?r={href:e.backHref,label:"View auction items"}:e.onBack&&(r={label:"View auction items",onClick:e.onBack}),(0,Ae.jsx)(Fc,{auctionName:t.name,className:e.className,closesAtLabel:_t(t,"active",n),communityName:e.communityName??t.community?.name,focusHeading:!0,imageUrl:n.image??n.images[0]??t.configuration.image??void 0,itemName:n.name,outcome:o,primaryAction:e.returnToItemHref?{href:e.returnToItemHref,label:"Return to item"}:r,secondaryAction:e.returnToItemHref?r:void 0,style:tn(t,e.style,e.theme??"dark"),theme:e.theme})}function bf(e){let{auction:t,itemId:n,resumePurchase:o,className:r,theme:i="dark",style:s}=e,a=(0,Ce.useRef)(null),[u,c]=(0,Ce.useState)(t),l=(0,Ce.useRef)(t),f=u.items.find(V=>V.id===n)??o?.item;Ft(f?.startAt??u.startAt,f?.endAt??u.endAt);let[m,p]=(0,Ce.useState)(()=>o?{amount:0,includeServiceFee:o.submission.includeServiceFee??!1,quantity:o.submission.quantity}:null),[d,h]=(0,Ce.useState)(!!o),y=(0,Ce.useRef)(!0),g=(0,Ce.useRef)(e);g.current=e;let b=(0,Ce.useRef)(null),E=(0,Ce.useCallback)(V=>{y.current&&h(V),b.current!==V&&(b.current=V,zr(g.current.onInteractionLockChange,V))},[]),v=!!o;(0,Ce.useEffect)(()=>(y.current=!0,E(v),()=>{y.current=!1}),[v,E]);let[R,w]=(0,Ce.useState)({email:"",phone:""}),[S,k]=(0,Ce.useState)(null),[P,L]=(0,Ce.useState)(!!o),[I,U]=(0,Ce.useState)(null),[D,_]=(0,Ce.useState)(null);(0,Ce.useEffect)(()=>{!(P||d||o)&&l.current!==t&&(l.current=t,c(t))},[t,P,d,o]);let te=_c(o?.payment??u.payment,e.stripeLoader,!!o||!!(f&&Lt(u,f)==="active"&&!Mt(f)&&f.saleMode!=="hybrid"));function ue(V,Q){E(!1),l.current=g.current.auction,c(V),p(null),L(!1),U(Q)}function j(V){let Q=Vr();k(Q),Q&&!(R.email||R.phone)&&w({email:Q.email,phone:Q.phone}),U(null),p(V),L(!0)}return f?D?(0,Ae.jsx)(yf,{...e,auction:u,item:f,outcome:D}):(0,Ae.jsxs)("section",{className:["lockerverse-auctions",r].filter(Boolean).join(" "),"data-lockerverse-theme":i,ref:a,style:tn(u,s,i),children:[d?null:(0,Ae.jsxs)(Dt,{className:"lockerverse-auctions__back",href:e.backHref,onBack:e.onBack,children:[(0,Ae.jsx)(Nt,{"aria-hidden":"true",size:16})," All items"]}),(0,Ae.jsxs)("div",{className:"lockerverse-auctions__detail",children:[(0,Ae.jsx)(Tc,{auction:u,galleryImageSizes:e.galleryImageSizes,item:f,itemHeadingLevel:e.itemHeadingLevel}),(0,Ae.jsxs)("div",{className:"lockerverse-auctions__transaction",children:[I?(0,Ae.jsx)("p",{className:"lockerverse-auctions__notice",role:"alert",children:I}):null,P&&m?(0,Ae.jsx)(Lc,{...e,appearanceRoot:a,auction:u,communityName:e.communityName??u.community?.name,contact:R,interactionLocked:d,item:f,onBack:()=>L(!1),onContactChange:w,onIncludeServiceFeeChange:V=>p(Q=>Q&&{...Q,includeServiceFee:u.serviceFeeEnabled&&V}),onInteractionLockChange:E,onResult:_,onReview:ue,savedBidder:S,selection:m,stripePromise:te}):(0,Ae.jsx)(wc,{auction:u,backHref:e.backHref,initialSelection:m,item:f,itemHeadingLevel:e.itemHeadingLevel,onBack:e.onBack,onContinue:j,onError:U}),d?null:(0,Ae.jsxs)(Dt,{className:"lockerverse-auctions__footer-back",href:e.backHref,onBack:e.onBack,children:["Back to auction items ",(0,Ae.jsx)(ht,{"aria-hidden":"true",size:16})]})]})]})]}):(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("p",{role:"alert",children:"This auction item is no longer available."}),(0,Ae.jsx)(Dt,{href:e.backHref,onBack:e.onBack,children:"Back to auction items"})]})}function Qb(e){let t=(0,Ce.useRef)({auctionId:e.auction.id,client:e.client,itemId:e.itemId});if(t.current.client!==e.client||t.current.auctionId!==e.auction.id||t.current.itemId!==e.itemId)throw new TypeError("Auction item identity cannot change. Remount with a new React key.");if(e.resumePurchase&&(e.resumePurchase.auctionId!==e.auction.id||e.resumePurchase.itemId!==e.itemId||e.resumePurchase.item.id!==e.itemId||e.resumePurchase.item.auctionId!==e.auction.id))throw new TypeError("The purchase recovery record belongs to a different auction item.");let{auction:n,client:o,itemId:r}=e;return(0,Ce.useEffect)(()=>{Hr(o,n,r)},[o,r]),(0,Ae.jsx)(Mr.Provider,{value:e.auction.mediaBaseUrl,children:(0,Ae.jsx)(bf,{...e})})}export{Qb as LockerverseAuctionItem};
2
+ /*! For license information please see lockerverse-auction-item-NQTUMZBG.js.LEGAL.txt */